:root {
  --navy: #071b2f;
  --navy-2: #0d2b48;
  --blue: #1469aa;
  --blue-soft: #eaf2fb;
  --ink: #102a49;
  --muted: #647791;
  --line: #dce6f0;
  --surface: #ffffff;
  --page: #eef4f9;
  --green: #22a65a;
  --shadow: 0 10px 28px rgba(39, 78, 113, .08);
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--page); }
body { margin: 0; padding-left: env(safe-area-inset-left); padding-right: env(safe-area-inset-right); color: var(--ink); background: var(--page); font-family: 'DM Sans', Arial, sans-serif; font-size: 15px; }
button, a { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }

.stage-admin-list { display: grid; gap: 10px; }
.stage-admin-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px; border: 1px solid var(--line); border-radius: 9px; background: #f8fbfe; }
.stage-admin-row strong, .stage-admin-row small { display: block; }
.stage-admin-row small { margin-top: 4px; color: var(--muted); font-size: 12px; }
.stage-admin-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; }
.stage-admin-actions form { display: inline-flex; }
.stage-admin-actions a, .stage-admin-actions button { min-height: 38px; padding: 8px 10px; border: 0; border-radius: 7px; color: #fff; background: var(--blue); font-size: 12px; font-weight: 700; }
.stage-admin-actions a { display: inline-flex; align-items: center; background: #eaf2fb; color: var(--blue); }
.point-list-card > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.point-list-card > div > a { flex: 1; }
.stay-plan-list { display: grid; gap: 10px; }
.stay-plan-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding: 16px; border: 1px solid var(--line); border-radius: 10px; background: #f8fbfe; }
.stay-plan-copy { flex: 1 1 auto; min-width: 0; }
.stay-plan-row strong, .stay-plan-row small, .stay-plan-row span { display: block; }
.stay-plan-row strong { font-size: 16px; line-height: 1.35; }
.stay-plan-row small { margin-top: 5px; color: var(--muted); font-size: 14px; line-height: 1.45; }
.stay-plan-row .stay-plan-saved { margin-top: 8px; color: #17864a; font-size: 14px; font-weight: 700; }
.stay-plan-row .stay-plan-missing { margin-top: 8px; color: var(--muted); font-size: 14px; }
.stay-plan-row .secondary-action { flex: 0 0 auto; width: auto; min-width: 0; padding: 0 14px; white-space: nowrap; }
.point-order-actions { display: inline-flex; gap: 5px; }
.point-order-actions button { min-width: 44px; min-height: 44px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 7px; color: var(--blue); background: #fff; font-weight: 700; }
.point-order-actions button:hover { background: #eaf2fb; }
.budget-breakdown h3 { margin: 20px 0 8px; font-size: 16px; }

.backend-shell { display: flex; min-height: 100vh; }
.sidebar { position: sticky; top: 0; z-index: 10; display: flex; flex: 0 0 224px; flex-direction: column; min-height: 100vh; max-height: 100vh; overflow-y: auto; padding: 26px 14px 18px; color: #fff; background: linear-gradient(180deg, #071b2f 0%, #092540 100%); }
.brand-mark { display: flex; align-items: center; justify-content: center; height: 62px; margin: 0 8px 22px; }
.brand-mark img { display: block; width: 170px; max-height: 60px; object-fit: contain; filter: brightness(0) invert(1); }
.side-nav { display: grid; gap: 3px; }
.nav-item { display: flex; align-items: center; gap: 13px; min-height: 44px; padding: 8px 13px; border-radius: 10px; color: #eef7ff; font-size: 14px; font-weight: 600; transition: background .18s, transform .18s; }
.nav-item:hover, .nav-item.is-active { background: linear-gradient(90deg, #0f68aa, #155789); }
.advanced-fields { grid-column: 1 / -1; margin: 2px 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: 9px; background: #f7fbfe; }
.advanced-fields summary { cursor: pointer; color: var(--blue); font-size: 13px; font-weight: 700; }
.advanced-fields .hint { margin: 9px 0 10px; color: var(--muted); font-size: 12px; }
.advanced-fields-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 8px; }
.nav-item:hover { transform: translateX(2px); }
.nav-icon { display: grid; width: 21px; place-items: center; color: #fff; font-size: 18px; line-height: 1; }
.sidebar-account { display: grid; grid-template-columns: 38px 1fr 28px; gap: 10px; align-items: center; margin-top: auto; padding: 18px 10px 2px; border-top: 1px solid rgba(255,255,255,.1); }
.avatar { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 50%; color: var(--navy); background: #f6fbff; font-weight: 800; }
.sidebar-account strong, .sidebar-account small { display: block; }
.sidebar-account strong { font-size: 13px; }
.sidebar-account small { margin-top: 2px; color: #a9c1d8; font-size: 11px; }
.logout { min-width: 44px; min-height: 44px; border: 0; color: #f2f7fb; background: transparent; font-size: 23px; }

.workspace { min-width: 0; flex: 1; }
.topbar { display: flex; min-height: 84px; align-items: center; gap: 22px; padding: 17px 30px 15px; background: rgba(255,255,255,.92); border-bottom: 1px solid var(--line); }
.page-heading { min-width: 200px; }
.page-heading h1 { margin: 0; font-family: Manrope, Arial, sans-serif; font-size: 25px; line-height: 1.1; letter-spacing: -.04em; }
.page-heading p { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.topbar-tools { display: flex; flex: 1; align-items: center; justify-content: flex-end; gap: 18px; color: var(--muted); font-size: 12px; }
.online { color: #168a49; font-weight: 700; }
.online i { display: inline-block; width: 7px; height: 7px; margin-right: 7px; border-radius: 50%; background: var(--green); }
.current-date { white-space: nowrap; }
.tool-button, .mobile-menu { position: relative; border: 0; color: var(--ink); background: transparent; font-size: 24px; line-height: 1; }
.tool-button { display: inline-flex; align-items: center; justify-content: center; }
.tool-button:hover { color: var(--blue); }
.notification-button b { position: absolute; top: -7px; right: -8px; display: grid; width: 17px; height: 17px; place-items: center; border-radius: 50%; color: #fff; background: #dc3e47; font-size: 10px; }
.top-slogan { margin-left: 7px; color: var(--navy); font-family: Caveat, cursive; font-size: 24px; font-weight: 700; white-space: nowrap; transform: rotate(-3deg); }
.locale-switcher { display: inline-flex; gap: 3px; margin-left: 4px; }
.locale-switcher a { padding: 4px 5px; border-radius: 5px; color: var(--muted); font-size: 10px; font-weight: 800; }
.locale-switcher a.is-active { color: #fff; background: var(--blue); }
.mobile-menu { display: none; }

.dashboard-content { width: min(100%, 1440px); margin: 0 auto; padding: 18px 30px 34px; }
.hero-panel { position: relative; min-height: 184px; overflow: hidden; border-radius: 14px; color: #fff; box-shadow: var(--shadow); }
.hero-panel::after { position: absolute; inset: 0; content: ''; background: linear-gradient(90deg, rgba(7,27,47,.85) 0%, rgba(7,27,47,.47) 48%, rgba(7,27,47,.08) 82%); }
.hero-panel > img { display: block; width: 100%; height: 184px; object-fit: cover; object-position: center 53%; }
.hero-copy { position: absolute; z-index: 1; left: 20px; bottom: 17px; max-width: 690px; }
.hero-copy p { margin: 0 0 3px; font-size: 13px; font-weight: 600; }
.hero-copy h2 { margin: 0 0 5px; color: #fff; font-family: Manrope, Arial, sans-serif; font-size: clamp(20px, 2.25vw, 29px); letter-spacing: -.04em; }
.hero-copy strong { font-size: 16px; }
.hero-weather { position: absolute; z-index: 2; top: 23px; right: 22px; width: 142px; padding: 13px 15px; border-radius: 10px; color: #fff; background: rgba(7,27,47,.72); backdrop-filter: blur(6px); }
.hero-weather small, .hero-weather strong { display: block; }
.hero-weather small { font-size: 11px; opacity: .84; }
.hero-weather strong { margin: 3px 0 7px; font-size: 16px; }
.weather-reading { display: flex; align-items: center; gap: 10px; }
.weather-reading span { font-size: 30px; line-height: 1; }
.weather-reading b { font-size: 24px; }

.dashboard-summary { display: grid; grid-template-columns: 1.5fr repeat(5, minmax(110px, 1fr)); gap: 10px; margin-top: 14px; padding: 14px; border: 1px solid rgba(211,224,237,.8); border-radius: 12px; background: #fff; box-shadow: var(--shadow); }
.summary-intro { padding-right: 10px; }
.summary-intro h2 { margin: 4px 0 3px; font-family: Manrope, Arial, sans-serif; font-size: 19px; letter-spacing: -.04em; }
.summary-intro p { margin: 0; color: var(--muted); font-size: 11px; }
.summary-metric { display: flex; min-width: 0; flex-direction: column; justify-content: center; padding: 8px 10px; border-left: 1px solid #edf1f5; }
.summary-metric small { color: var(--muted); font-size: 10px; font-weight: 700; }
.summary-metric strong { margin: 5px 0 2px; font-family: Manrope, Arial, sans-serif; font-size: 19px; letter-spacing: -.04em; }
.summary-metric span, .summary-metric a { color: var(--muted); font-size: 10px; }
.summary-metric a { color: var(--blue); font-weight: 700; }
.dashboard-weather-alerts { display: block; margin-top: 5px; color: #a12838 !important; font-weight: 700; }
.backup-tools { display: grid; gap: 14px; }
.backup-tools h2 { margin: 0; font-size: 17px; }
.backup-tools .hint { margin: 4px 0 0; }
.backup-actions { display: flex; flex-wrap: wrap; align-items: end; gap: 10px; }
.backup-actions > .secondary-action { width: auto; min-width: 190px; padding: 0 16px; }
.backup-import-form { display: flex; flex: 1 1 430px; align-items: end; gap: 10px; }
.backup-import-form button { flex: 0 0 auto; }
.backup-file { display: grid; flex: 1 1 auto; gap: 5px; color: var(--muted); font-size: 11px; font-weight: 700; }
.backup-file input { width: 100%; min-height: 44px; padding: 9px; border: 1px solid var(--line); border-radius: 8px; background: #f8fbfe; color: var(--ink); font: inherit; }
.media-upload-card { display: grid; gap: 12px; }
.media-upload-card h2 { margin: 0; font-size: 17px; }
.media-upload-card .hint { margin: 4px 0 0; max-width: 720px; }
.media-upload-form { margin-top: 0; }
.media-file-field input { min-height: 48px; padding: 10px; border: 1px dashed #9db8d2; border-radius: 8px; background: #f8fbfe; }
.media-file-field small { color: var(--muted); font-size: 11px; font-weight: 600; }
.media-preview-link { display: block; width: 78px; }
.media-preview { display: block; width: 78px; height: 52px; border-radius: 7px; background: #dce8f1; object-fit: cover; }

.dashboard-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 14px; }
.dashboard-card { min-width: 0; padding: 13px 15px 15px; border: 1px solid rgba(211,224,237,.8); border-radius: 12px; background: var(--surface); box-shadow: var(--shadow); }
.card-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 9px; }
.card-heading h3 { margin: 0; font-size: 14px; font-weight: 800; }
.card-menu { border: 0; color: var(--muted); background: transparent; font-size: 22px; line-height: 1; }
.stage-photo { position: relative; height: 100px; overflow: hidden; border-radius: 7px; }
.stage-photo::after { position: absolute; inset: 0; content: ''; background: linear-gradient(180deg, transparent 55%, rgba(7,27,47,.26)); }
.stage-photo img { width: 100%; height: 100%; display: block; object-fit: cover; }
.stage-photo b { position: absolute; z-index: 1; top: 8px; right: 8px; padding: 5px 7px; border-radius: 6px; color: var(--ink); background: #fff; font-size: 11px; }
.stage-card h2 { margin: 8px 0 1px; font-family: Manrope, Arial, sans-serif; font-size: 17px; letter-spacing: -.03em; }
.location { margin: 0 0 10px; color: var(--muted); font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.weather-alerts { display: flex; flex-wrap: wrap; gap: 5px; margin: -3px 0 10px; }
.weather-alerts span { padding: 4px 7px; border-radius: 999px; color: #8a4a00; background: #fff3d8; font-size: 10px; font-weight: 700; }
.weather-details { margin-top: 12px; color: var(--muted); font-size: 12px; }
.weather-details summary { cursor: pointer; color: var(--blue); font-weight: 700; }
.weather-detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; margin-top: 8px; }
.weather-detail-grid span { display: grid; gap: 2px; padding: 7px 8px; border: 1px solid var(--line); border-radius: 7px; background: #fff; }
.weather-detail-grid small { color: var(--muted); font-size: 10px; }
.weather-detail-grid b { color: var(--ink); font-size: 12px; }
.progress-line { position: relative; height: 18px; margin: 0 0 11px; background: transparent; }
.progress-line::before { position: absolute; top: 5px; right: 69px; left: 0; height: 8px; content: ''; border-radius: 10px; background: #e9eff5; }
.progress-line i { position: absolute; top: 5px; left: 0; display: block; max-width: calc(100% - 69px); height: 8px; border-radius: inherit; background: var(--green); }
.progress-line span { position: absolute; top: 1px; right: 0; white-space: nowrap; color: var(--muted); font-size: 10px; }
.progress-line.muted i { background: #a7b9ca; }
.primary-action, .secondary-action { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 34px; border: 0; border-radius: 8px; font-size: 12px; font-weight: 700; text-decoration: none; }
.primary-action { color: #fff; background: #09609e; }
.secondary-action { color: #12385c; background: #edf4fb; }
.primary-action:hover, .secondary-action:hover, .quick-action:hover { filter: brightness(.97); transform: translateY(-1px); }
.progress-card { display: flex; flex-direction: column; align-items: center; }
.progress-card .card-heading { width: 100%; align-self: stretch; }
.donut { --progress: 27%; display: grid; width: 124px; height: 124px; margin: 8px auto 13px; place-items: center; border-radius: 50%; background: conic-gradient(var(--green) 0 var(--progress), #e8eef4 var(--progress) 100%); }
.donut::before { width: 91px; height: 91px; position: absolute; content: ''; border-radius: 50%; background: #fff; }
.donut span { z-index: 1; font-family: Manrope, Arial, sans-serif; font-size: 25px; font-weight: 800; }
.donut small { font-size: 14px; }
.progress-card > strong { font-size: 11px; font-weight: 600; }
.quick-card { padding-left: 12px; padding-right: 12px; }
.quick-action { display: flex; width: 100%; align-items: center; gap: 10px; min-height: 29px; margin: 0 0 5px; padding: 5px 10px; border: 0; border-radius: 7px; color: #183858; background: #edf4fb; text-align: left; font-size: 11px; transition: transform .18s, filter .18s; }
.quick-action:last-child { margin-bottom: 0; }
.quick-action span { width: 16px; color: var(--blue); font-size: 16px; text-align: center; }

.bottom-grid { display: grid; grid-template-columns: 1.17fr 1.28fr .82fr; gap: 16px; margin-top: 14px; }
.post-row { display: grid; grid-template-columns: 69px 1fr auto; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid #edf1f5; }
.post-row:last-child { border-bottom: 0; }
.post-row img { width: 69px; height: 55px; border-radius: 6px; object-fit: cover; }
.post-row strong, .post-row small { display: block; }
.post-row strong { font-size: 12px; }
.post-row small { margin-top: 4px; color: var(--muted); font-size: 10px; }
.post-row em { padding: 5px 8px; border-radius: 6px; color: #177548; background: #ddf5e7; font-size: 10px; font-style: normal; white-space: nowrap; }
.post-row em.draft { color: #627992; background: #e8eef4; }
.mini-map { position: relative; overflow: hidden; height: 180px; border-radius: 8px; background: #c5e1ca; }
.mini-map::after { position: absolute; inset: 0; content: ''; opacity: .4; background: repeating-linear-gradient(26deg, transparent 0 28px, rgba(255,255,255,.5) 29px 31px), repeating-linear-gradient(112deg, transparent 0 45px, rgba(122,166,118,.3) 46px 48px); }
.mini-map svg { position: relative; z-index: 1; width: 100%; height: 100%; }
.route-water { fill: #c9e7f4; }
.route-road { fill: none; stroke: #1269b1; stroke-dasharray: 3 7; stroke-linecap: round; stroke-width: 7; }
.route-ferry { fill: none; stroke: #e86c42; stroke-dasharray: 7 10; stroke-linecap: round; stroke-width: 5; }
.live-tracking-map { min-height: 420px; }
.mini-map circle { fill: #1269b1; stroke: #fff; stroke-width: 4; }
.mini-map text { fill: #234b56; font-family: 'DM Sans', sans-serif; font-size: 10px; font-weight: 700; }
.map-open { position: absolute; z-index: 2; right: 10px; bottom: 10px; display: flex; align-items: center; min-height: 31px; padding: 0 12px; border: 0; border-radius: 7px; color: #fff; background: #07538e; font-size: 11px; font-weight: 700; }
.country-row { display: grid; grid-template-columns: 28px 1fr auto; align-items: center; min-height: 28px; border-bottom: 1px solid #edf1f5; font-size: 12px; }
.country-row:last-child { border-bottom: 0; }
.country-row b { font-size: 17px; }
.country-row strong { font-weight: 700; }
.country-row span { color: var(--muted); font-size: 10px; }
.country-guide-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 16px; }
.country-guide-card header, .country-guide-card footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.country-guide-card header { margin-bottom: 14px; }
.country-guide-card header h2 { margin: 3px 0 0; font-size: 22px; }
.country-guide-card header > strong { color: var(--blue); font-size: 14px; white-space: nowrap; }
.country-guide-items { display: grid; gap: 9px; }
.country-guide-items > div { padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: #f8fbfe; }
.country-guide-items b { display: block; color: var(--muted); font-size: 11px; }
.country-guide-items p { margin: 4px 0 0; color: var(--ink); font-size: 13px; line-height: 1.4; white-space: normal; }
.country-guide-items p:empty { min-height: 18px; }
.country-guide-card footer { margin-top: 14px; }
.country-guide-card footer a { color: var(--blue); font-size: 12px; font-weight: 700; }

.mobile-nav { display: none; }
.toast { position: fixed; z-index: 30; right: 26px; bottom: 24px; padding: 12px 16px; border-radius: 9px; color: #fff; background: var(--navy); box-shadow: 0 12px 30px rgba(7,27,47,.25); font-size: 13px; opacity: 0; pointer-events: none; transform: translateY(10px); transition: opacity .2s, transform .2s; }
.toast.is-visible { opacity: 1; transform: translateY(0); }

@media (max-width: 1000px) {
  .sidebar { flex-basis: 205px; }
  .topbar { padding-left: 22px; padding-right: 22px; }
  .dashboard-content { padding-left: 22px; padding-right: 22px; }
  .dashboard-summary { grid-template-columns: 1fr 1fr 1fr; }
  .summary-intro { grid-column: 1 / -1; padding-bottom: 5px; }
  .summary-metric { border-left: 0; }
  .topbar-tools { gap: 11px; }
  .top-slogan { font-size: 21px; }
  .dashboard-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bottom-grid { grid-template-columns: 1fr 1fr; }
  .countries-card { grid-column: span 2; }
  .countries-card { display: grid; grid-template-columns: auto repeat(5, 1fr); align-items: center; gap: 10px; }
  .countries-card .card-heading { margin: 0; }
  .country-row { border-bottom: 0; }
}

@media (max-width: 760px) {
  body { padding-bottom: calc(71px + env(safe-area-inset-bottom)); }
  .backend-shell { display: block; }
  .sidebar { position: fixed; inset: 0 auto 0 0; z-index: 20; width: min(270px, 86vw); min-height: 100vh; padding-top: 20px; transform: translateX(-102%); transition: transform .24s ease; box-shadow: 10px 0 30px rgba(5,26,45,.22); }
  .sidebar.is-open { transform: translateX(0); }
  .country-guide-grid { grid-template-columns: 1fr; }
  .topbar { min-height: 69px; padding: calc(11px + env(safe-area-inset-top)) 15px 11px; gap: 11px; }
  .mobile-menu { display: inline-flex; flex: 0 0 44px; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0; font-size: 20px; }
  .page-heading { min-width: 0; }
  .page-heading h1 { font-size: 19px; }
  .page-heading p { font-size: 11px; white-space: nowrap; }
  .topbar-tools { gap: 8px; }
  .online, .current-date, .top-slogan, .topbar-tools > .tool-button:last-child { display: none; }
  .tool-button { min-width: 44px; min-height: 44px; font-size: 22px; }
  .locale-switcher a { display: inline-flex; align-items: center; justify-content: center; min-width: 32px; min-height: 44px; padding: 4px 5px; }
  .dashboard-content { padding: 11px 12px 23px; }
  .hero-panel, .hero-panel > img { min-height: 270px; height: 270px; }
  .hero-panel > img { object-position: 61% center; }
  .hero-panel::after { background: linear-gradient(0deg, rgba(7,27,47,.85) 3%, rgba(7,27,47,.17) 88%); }
  .hero-copy { left: 15px; right: 15px; bottom: 18px; }
  .hero-copy p { font-size: 11px; }
  .hero-copy h2 { max-width: 300px; font-size: 23px; line-height: 1.07; }
  .hero-copy strong { display: block; max-width: 250px; font-size: 13px; line-height: 1.3; }
  .hero-weather { top: 14px; right: 14px; width: 121px; padding: 9px 11px; }
  .hero-weather strong { font-size: 14px; }
  .weather-reading span { font-size: 25px; }
  .weather-reading b { font-size: 21px; }
  .dashboard-row, .bottom-grid { grid-template-columns: 1fr; gap: 11px; margin-top: 11px; }
  .dashboard-summary { grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 11px; padding: 11px; }
  .summary-intro { grid-column: 1 / -1; padding: 2px 4px 8px; }
  .summary-intro h2 { font-size: 17px; }
  .summary-metric { padding: 8px 6px; }
  .dashboard-card { padding: 12px; }
  .stage-photo { height: 145px; }
  .progress-card { min-height: 236px; }
  .bottom-grid .countries-card { display: block; }
  .countries-card .card-heading { margin-bottom: 8px; }
  .country-row { border-bottom: 1px solid #edf1f5; }
  .country-row:last-child { border-bottom: 0; }
  .mini-map { height: 220px; }
  .mobile-nav { position: fixed; z-index: 25; right: 0; bottom: 0; left: 0; display: grid; grid-template-columns: repeat(4, 1fr); height: calc(70px + env(safe-area-inset-bottom)); padding: 8px 12px calc(9px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: rgba(255,255,255,.97); box-shadow: 0 -6px 22px rgba(39,78,113,.08); }
  .mobile-nav a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: #71839a; font-size: 10px; font-weight: 700; }
  .mobile-nav a span { font-size: 20px; line-height: 1; }
  .mobile-nav a.is-active { color: #0a61a0; }
  .toast { right: 13px; bottom: 83px; left: 13px; text-align: center; }
  .stage-admin-row { align-items: stretch; flex-direction: column; }
  .stage-admin-actions { justify-content: flex-start; }
  .backup-actions { display: grid; }
  .backup-actions > .secondary-action { width: 100%; }
  .backup-import-form { display: grid; gap: 9px; }
  .backup-import-form button { width: 100%; }
}

@media (min-width: 761px) and (max-width: 1050px) {
  .top-slogan { display: none; }
  .topbar-tools { gap: 12px; }
}

/* Family-facing admin UI: readable labels and touch-friendly actions. */
.page-heading p { font-size: 14px; }
.summary-intro p,.summary-metric small,.summary-metric span,.summary-metric a { font-size: 12px; }
.location { font-size: 13px; }
.weather-alerts span { font-size: 12px; }
.progress-line span { font-size: 12px; }
.summary-metric .progress-line.mini { margin: 7px 0 5px; }
.summary-metric .progress-line.mini i { min-width: 0; }
.primary-action,.secondary-action { min-height: 44px; font-size: 13px; }
.quick-action { min-height: 44px; font-size: 13px; }
.module-form button,.nice-form button,.module-tools button,.point-action-list button,.delete-button { min-height: 44px; }
.module-back,.module-head a,.primary-button,.stay-candidate button,.point-list-card a,.country-guide-card footer a { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
.emergency-quick-card { display: grid; grid-template-columns: 1fr auto auto; gap: 14px; align-items: center; border-color: #f1c9c9; background: #fff8f8; }
.emergency-quick-card h2 { margin-bottom: 4px; }
.emergency-call-button { display: inline-flex; min-width: 118px; min-height: 68px; padding: 8px 15px; flex-direction: column; align-items: center; justify-content: center; gap: 2px; border-radius: 10px; color: #fff; background: #b42318; font-size: 12px; font-weight: 700; text-align: center; }
.emergency-call-button span { font-size: 25px; line-height: 1; }
.emergency-quick-card .secondary-action { min-height: 44px; padding: 0 14px; }
.quick-memory-card { border-color: #b9d9ed; background: linear-gradient(135deg, #fff 0%, #f5fbff 100%); }
.quick-memory-card h2 { margin-bottom: 4px; }
.quick-memory-form { margin-bottom: 0; }
.post-row strong { font-size: 14px; }
.post-row small,.post-row em { font-size: 12px; }
.map-open { min-height: 44px; font-size: 13px; }
.country-row { min-height: 40px; font-size: 13px; }
.country-row span { font-size: 12px; }
.stage-admin-row small { font-size: 13px; }
.stage-admin-actions a,.stage-admin-actions button { min-height: 44px; font-size: 13px; }
.mobile-nav a { min-height: 44px; font-size: 12px; }
.route-view-switcher { display: flex; flex-wrap: wrap; gap: 7px; margin: 0 0 14px; }
.route-view-switcher a { min-height: 44px; display: inline-flex; align-items: center; padding: 0 14px; border: 1px solid var(--line); border-radius: 9px; color: var(--blue); background: #fff; font-size: 13px; font-weight: 700; }
.route-view-switcher a.is-active { color: #fff; border-color: var(--blue); background: var(--blue); }
.calendar-intro h2 { margin: 0 0 4px; }
.calendar-intro p { margin: 0 0 16px; color: var(--muted); font-size: 13px; }
.route-calendar { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.calendar-day { display: flex; min-height: 190px; flex-direction: column; padding: 15px; border: 1px solid var(--line); border-radius: 12px; background: #f8fbfe; }
.calendar-day-head { display: flex; justify-content: space-between; gap: 8px; color: var(--blue); font-size: 13px; }
.calendar-day-head span { color: var(--muted); font-size: 12px; }
.calendar-day h3 { margin: 17px 0 7px; color: var(--ink); font-size: 18px; }
.calendar-day h3 span { color: var(--blue); }
.calendar-day p,.calendar-day small { margin: 0 0 7px; color: var(--muted); font-size: 13px; }
.calendar-day .secondary-action { margin-top: auto; min-height: 44px; }
.admin-map .leaflet-popup-content { font-size: 15px; line-height: 1.45; }
.admin-map .leaflet-popup-content-wrapper { border-radius: 12px; }
.fuel-plan-marker { fill: #0b6b68; stroke: #ffffff; stroke-width: 2; }
.fuel-plan-label { fill: #ffffff; font-size: 14px; font-weight: 700; }
.fuel-planner-card { margin-top: 16px; }
.fuel-plan-list { display: grid; gap: 10px; }
.fuel-plan-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 16px; align-items: center; padding: 14px 0; border-top: 1px solid #dbe5ed; }
.fuel-plan-row > div { display: grid; gap: 4px; }
.fuel-plan-row small { color: #5b718b; line-height: 1.4; }
.fuel-plan-row a { white-space: nowrap; }
.fuel-provider-note { margin-top: 12px; }
@media (max-width: 760px) { .fuel-plan-row { grid-template-columns: 1fr auto; gap: 8px 12px; } .fuel-plan-row > div:nth-child(2) { text-align: right; } .fuel-plan-row a { grid-column: 1 / -1; } }
@media (max-width: 760px) { .admin-map .leaflet-popup-content { width: min(300px, calc(100vw - 64px)) !important; margin: 14px 16px; } .admin-map .leaflet-popup-content .admin-map-popup-photo { max-width: 100%; height: auto; max-height: 180px; } .admin-map .leaflet-popup-content a { font-size: 15px; } }
@media (max-width: 1050px) { .route-calendar { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .route-calendar { grid-template-columns: 1fr; } .route-view-switcher { overflow-x: auto; flex-wrap: nowrap; } .route-view-switcher a { white-space: nowrap; } }
@media (max-width: 760px) {
  .stay-plan-row { align-items: flex-start; flex-direction: column; }
  .stay-plan-row .secondary-action { width: auto; min-height: 44px; }
  .page-heading p { font-size: 12px; }
  .hero-copy p { font-size: 13px; }
  .summary-metric small,.summary-metric span,.summary-metric a { font-size: 12px; }
  .quick-action { font-size: 13px; }
  .emergency-quick-card { grid-template-columns: 1fr 1fr; }
  .emergency-quick-card > div { grid-column: 1 / -1; }
  .emergency-call-button,.emergency-quick-card .secondary-action { width: 100%; }
}

/* Dashboard layout: give the family app clear touch targets and breathing room. */
@media (min-width: 1001px) {
  .dashboard-summary { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .dashboard-summary .summary-intro { grid-column: span 2; }
}
@media (min-width: 761px) and (max-width: 1000px) {
  .dashboard-summary { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .dashboard-summary .summary-intro { grid-column: 1 / -1; }
}
.mobile-dashboard-actions { display: none; }
.receipt-camera-action { cursor: pointer; }
.receipt-camera-action input { position: absolute; width: 1px; height: 1px; overflow: hidden; opacity: 0; pointer-events: none; }
.receipt-review[hidden] { display: none; }
.receipt-review { position: fixed; z-index: 1200; inset: 0; display: grid; place-items: center; padding: 16px; background: rgba(4,24,43,.72); }
.receipt-review-card { width: min(100%, 620px); max-height: calc(100dvh - 32px); overflow: auto; padding: 20px; border-radius: 16px; background: #fff; box-shadow: 0 22px 60px rgba(0,0,0,.3); }
.receipt-review-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.receipt-review-head h2 { margin: 0 0 5px; }
.receipt-review-head p { margin: 0; color: var(--muted); }
.receipt-review-head > button { flex: 0 0 auto; width: 42px; height: 42px; border: 0; border-radius: 50%; color: var(--ink); background: #edf4fb; font-size: 24px; }
.receipt-review-card > img { display: block; width: 100%; max-height: 220px; margin: 16px 0; object-fit: contain; border-radius: 10px; background: #eef4f8; }
.receipt-analysis-status,.receipt-confidence { margin: 10px 0; padding: 11px 12px; border-radius: 9px; background: #edf4fb; font-weight: 700; }
.receipt-confidence.is-uncertain { color: #7a4b00; background: #fff3cd; }
.receipt-review-fields { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
.receipt-review-fields label { display: grid; gap: 6px; font-weight: 700; }
.receipt-review-fields .wide { grid-column: 1 / -1; }
.receipt-review-fields input,.receipt-review-fields select,.receipt-review-fields textarea { width: 100%; min-height: 44px; padding: 9px 11px; border: 1px solid var(--line); border-radius: 8px; background: #f8fbfe; font: inherit; }
.receipt-review-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 16px; }
.receipt-review-actions .primary-action,.receipt-review-actions .secondary-action { width: auto; padding: 0 16px; }
.receipt-review-open { overflow: hidden; }
.language-settings-card { margin-bottom: 18px; }
.language-settings-card h2 { margin: 0 0 5px; font-size: 20px; }
.language-settings-form { display: flex; flex-wrap: wrap; align-items: end; gap: 12px; }
.language-settings-form label { display: grid; min-width: 180px; gap: 6px; color: var(--ink); font-size: 14px; font-weight: 700; }
.language-settings-form select { min-height: 44px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 7px; color: var(--ink); background: #f8fbfe; font: inherit; }
.language-settings-form button { min-height: 44px; padding: 0 18px; border: 0; border-radius: 7px; color: #fff; background: var(--blue); font-weight: 700; }
@media (max-width: 760px) {
  .hero-copy { left: 15px; right: 15px; max-width: calc(100% - 30px); }
  .hero-copy h2 { max-width: calc(100% - 126px); }
  .mobile-dashboard-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 13px; }
  .mobile-dashboard-action { display: flex; min-height: 112px; flex-direction: column; align-items: flex-start; justify-content: center; gap: 6px; padding: 15px; border: 1px solid #cdddeb; border-radius: 14px; color: var(--ink); background: #fff; box-shadow: var(--shadow); }
  .mobile-dashboard-action:active { transform: scale(.98); }
  .mobile-dashboard-action > span { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 11px; color: #fff; background: var(--blue); font-size: 22px; }
  .mobile-dashboard-action strong { font-size: 14px; line-height: 1.15; }
  .mobile-dashboard-action small { color: var(--muted); font-size: 11px; }
  .receipt-review { align-items: end; padding: 0; }
  .receipt-review-card { width: 100%; max-height: 94dvh; padding: 18px 15px calc(18px + env(safe-area-inset-bottom)); border-radius: 18px 18px 0 0; }
  .receipt-review-fields { grid-template-columns: 1fr; }
  .receipt-review-fields .wide { grid-column: auto; }
  .receipt-review-actions { position: sticky; bottom: 0; padding-top: 10px; background: #fff; }
  .dashboard-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 14px; padding: 0; border: 0; background: transparent; box-shadow: none; }
  .dashboard-summary .summary-intro { grid-column: 1 / -1; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: var(--shadow); }
  .dashboard-summary .summary-metric { min-height: 126px; padding: 15px 13px; border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: var(--shadow); justify-content: flex-start; }
  .dashboard-summary .summary-metric strong { font-size: 22px; line-height: 1.15; }
  .dashboard-summary .summary-metric small,.dashboard-summary .summary-metric span,.dashboard-summary .summary-metric a { font-size: 12px; line-height: 1.35; }
  .top-cards .quick-card { display: none; }
  .language-settings-form { display: grid; grid-template-columns: 1fr; align-items: stretch; }
  .language-settings-form label { min-width: 0; }
  .language-settings-form button { width: 100%; }
}
