/* Layout: una colonna da telefono. Copertina a gradiente "tramonto sul mare" per ogni schermata principale,
   carte tipo biglietto per i viaggi, timeline con icone colorate per categoria, barra di navigazione fluttuante. */
:root {
  --bg: #eef3f8;
  --glow: rgba(242, 98, 46, .13);
  --surface: #ffffff;
  --ink: #0b1f33;
  --muted: #5a6b7d;
  --line: #dae3ec;
  --accent: #c2410c;
  --accent2: #c4500e;
  --accent-ink: #ffffff;
  --sea: #0b758d;
  --sea-soft: #ddf3f8;
  --warn: #c0262d;
  --ok: #147c44;
  --shadow: 0 10px 28px rgba(11, 31, 51, .14);
  --shadow-sm: 0 2px 8px rgba(11, 31, 51, .08);
  --hero: linear-gradient(155deg, #0b1f33 0%, #0e4a68 52%, #0b6379 82%, #a63a0b 135%);
  /* contrasto WCAG 2.1 AA: testo normale 4,5:1, testo grande e controlli 3:1; --field = bordo dei campi, --on-* = testo sopra ok/warn/sea/categorie */
  --field: #64778b; --on-c: #ffffff; --on-ok: #ffffff; --on-warn: #ffffff; --on-sea: #ffffff;
  --c-trasporti: #1d4ed8; --c-alloggio: #6d28d9; --c-cibo: #b45309; --c-attivita: #0f766e; --c-shopping: #be185d; --c-altro: #475569;
  --f-display: "Bricolage Grotesque", "Trebuchet MS", system-ui, sans-serif;
  --f-body: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "DM Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  color-scheme: light;
}
/* tema scuro: automatico (come il telefono) oppure scelto nel profilo con data-theme sull'elemento radice */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #08131d; --glow: rgba(255, 138, 87, .10); --surface: #0f2233; --ink: #e8f1f8; --muted: #8ea5b8; --line: #1e3a50;
    --accent: #ff8a57; --accent2: #ffb26b; --accent-ink: #1a0a02; --sea: #4fd0e8; --sea-soft: #10323f;
    --warn: #f28b8b; --ok: #6fd391; --shadow: 0 10px 28px rgba(0, 0, 0, .5); --shadow-sm: 0 2px 8px rgba(0, 0, 0, .35);
    --field: #6b8aa5; --on-c: #08131d; --on-ok: #05200f; --on-warn: #2a0505; --on-sea: #08131d;
    --c-trasporti: #60a5fa; --c-alloggio: #a78bfa; --c-cibo: #fb923c; --c-attivita: #2dd4bf; --c-shopping: #f472b6; --c-altro: #94a3b8;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #08131d; --glow: rgba(255, 138, 87, .10); --surface: #0f2233; --ink: #e8f1f8; --muted: #8ea5b8; --line: #1e3a50;
  --accent: #ff8a57; --accent2: #ffb26b; --accent-ink: #1a0a02; --sea: #4fd0e8; --sea-soft: #10323f;
  --warn: #f28b8b; --ok: #6fd391; --shadow: 0 10px 28px rgba(0, 0, 0, .5); --shadow-sm: 0 2px 8px rgba(0, 0, 0, .35);
  --field: #6b8aa5; --on-c: #08131d; --on-ok: #05200f; --on-warn: #2a0505; --on-sea: #08131d;
  --c-trasporti: #60a5fa; --c-alloggio: #a78bfa; --c-cibo: #fb923c; --c-attivita: #2dd4bf; --c-shopping: #f472b6; --c-altro: #94a3b8;
  color-scheme: dark;
}
.seg.seg3 { grid-template-columns: repeat(3, 1fr); }
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; color: var(--ink); font: 400 16px/1.45 var(--f-body);
  background: radial-gradient(900px 420px at 85% -80px, var(--glow), transparent 70%), var(--bg);
  background-attachment: fixed;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
  padding-block: max(16px, env(safe-area-inset-top, 0px)) 120px;
}
.wrap { max-width: 560px; margin: 0 auto; display: flex; flex-direction: column; gap: 18px; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; transition: transform .12s ease, box-shadow .2s ease, background-color .2s ease; }
button:active { transform: scale(.97); }
:focus-visible { outline: 3px solid var(--sea); outline-offset: 2px; }
.num { font-variant-numeric: tabular-nums; }
.plain { background: none; border: 0; padding: 0; text-align: left; }
svg.i { width: 1.25em; height: 1.25em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }

h1 { font: 800 clamp(32px, 10vw, 44px)/1 var(--f-display); margin: 0; text-wrap: balance; letter-spacing: -.02em; overflow-wrap: anywhere; }
h2 { font: 700 22px/1.15 var(--f-display); margin: 0; text-wrap: balance; letter-spacing: -.01em; }
.eyebrow { font: 500 12px/1.3 var(--f-mono); letter-spacing: .09em; text-transform: uppercase; opacity: .94; }
.sub { color: var(--muted); font-size: 14px; }
.hint { font-size: 13px; color: var(--muted); margin: 0; }
.err { color: var(--warn); font-size: 14px; margin: 0; min-height: 1.3em; }

/* pulsanti */
.btn { background: linear-gradient(135deg, var(--accent), var(--accent2)); color: var(--accent-ink); border: 0; border-radius: 14px; padding: 13px 18px; font-weight: 700; box-shadow: 0 6px 16px color-mix(in srgb, var(--accent) 38%, transparent); display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.btn.small { padding: 9px 15px; font-size: 14px; border-radius: 12px; }
.btn.secondary { background: var(--surface); color: var(--ink); border: 1px solid var(--line); box-shadow: none; }
.btn.danger { background: transparent; color: var(--warn); border: 1px solid var(--warn); box-shadow: none; }
.btn:disabled { opacity: .6; }
.ghost { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 9px 14px; font-weight: 600; font-size: 14px; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; box-shadow: var(--shadow-sm); }
.linkish { background: none; border: 0; padding: 0; color: var(--sea); text-decoration: underline; font-size: inherit; box-shadow: none; }

/* copertina del viaggio */
.cover { position: relative; overflow: hidden; background: var(--hero); color: #fff; border-radius: 26px; padding: 18px 18px 20px; display: flex; flex-direction: column; gap: 10px; box-shadow: var(--shadow); isolation: isolate; }
.cover::before { content: ""; position: absolute; width: 220px; height: 220px; right: -70px; top: -90px; border-radius: 50%; background: radial-gradient(circle at 40% 40%, #ffd48a, rgba(255, 154, 61, .0) 68%); opacity: .75; z-index: -1; }
.cover .route { position: absolute; right: 14px; bottom: 62px; width: 50%; max-width: 240px; color: #fff; opacity: .3; z-index: -1; }
.auth .cover .route { bottom: 20px; }
.cover-top { display: flex; justify-content: space-between; gap: 10px; align-items: center; margin-bottom: 14px; }
.pill-btn { background: rgba(255, 255, 255, .16); color: #fff; border: 1px solid rgba(255, 255, 255, .28); backdrop-filter: blur(6px); border-radius: 99px; padding: 8px 14px; font-weight: 600; font-size: 14px; display: inline-flex; align-items: center; gap: 6px; }
.cover-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 6px; }
.tag { background: rgba(255, 255, 255, .18); border: 1px solid rgba(255, 255, 255, .24); border-radius: 99px; padding: 5px 12px; font-size: 13px; font-weight: 700; }
.savestate { font: 500 12px/1 var(--f-mono); opacity: .94; }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: rgba(0, 0, 0, .24); border: 1px solid rgba(255, 255, 255, .55); display: grid; place-items: center; font: 800 18px/1 var(--f-display); text-transform: uppercase; }

/* accesso */
.auth { max-width: 440px; width: 100%; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; }
.auth .cover { padding: 28px 22px 34px; min-height: 230px; justify-content: flex-end; }
.auth .cover p { margin: 4px 0 0; opacity: .96; max-width: 28ch; }
.card-form { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 18px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 14px; margin-top: -8px; }
.seg { display: grid; grid-template-columns: 1fr 1fr; background: var(--bg); border-radius: 14px; padding: 4px; gap: 4px; }
.seg button { border: 0; background: none; border-radius: 11px; padding: 10px; font-weight: 700; color: var(--muted); }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }

.section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cta { display: flex; gap: 10px; flex-wrap: wrap; }
.cta .btn { flex: 1 1 220px; padding: 16px 18px; font-size: 17px; border-radius: 18px; }

/* biglietti dei viaggi */
.list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.list.gaps { gap: 12px; }
.passli { position: relative; }
.pass-del { position: absolute; top: 10px; right: 10px; z-index: 2; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; padding: 0; background: var(--surface); border: 1px solid var(--line); color: var(--muted); box-shadow: var(--shadow-sm); font-size: 17px; }
.pass-del:hover, .pass-del:focus-visible { color: var(--warn); border-color: var(--warn); }
.passli .pass-main { padding-right: 48px; }
.passli .pass-go { display: none; }
.btn.danger-fill { background: var(--warn); color: var(--on-warn); box-shadow: none; }
.confirm-text { margin: 0; line-height: 1.5; overflow-wrap: anywhere; }
.pass { position: relative; display: grid; grid-template-columns: 92px 1fr auto; align-items: stretch; width: 100%; padding: 0; text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-sm); overflow: hidden; }
.pass:hover { box-shadow: var(--shadow); }
.pass-side { background: linear-gradient(155deg, var(--g1), var(--g2)); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 16px 8px; gap: 2px; border-right: 2px dashed color-mix(in srgb, var(--bg) 85%, transparent); }
.pass-side b { font: 800 38px/1 var(--f-display); }
.pass-side i { font: 500 11px/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; font-style: normal; opacity: .96; }
.pass::before, .pass::after { content: ""; position: absolute; left: 82px; width: 20px; height: 20px; border-radius: 50%; background: var(--bg); z-index: 1; }
.pass::before { top: -11px; } .pass::after { bottom: -11px; }
.pass-main { display: flex; flex-direction: column; gap: 3px; padding: 14px 6px 14px 16px; min-width: 0; justify-content: center; }
.pass-main .title { font: 700 18px/1.2 var(--f-display); overflow-wrap: anywhere; }
.pass-main .meta { font-size: 13px; color: var(--muted); }
.pass-main .when { font: 500 12px/1 var(--f-mono); color: var(--sea); margin-top: 4px; }
.pass-go { display: grid; place-items: center; padding-right: 14px; color: var(--muted); font-size: 22px; }

/* giorni */
.days { display: flex; gap: 8px; overflow-x: auto; padding: 4px 12px 18px; margin: -4px -12px -10px; scrollbar-width: none; }
.days::-webkit-scrollbar { display: none; }
.chip { flex: 0 0 auto; width: 62px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 8px 6px 10px; display: flex; flex-direction: column; align-items: center; gap: 1px; box-shadow: var(--shadow-sm); }
.chip b { font: 500 11px/1 var(--f-mono); color: var(--muted); letter-spacing: .05em; }
.chip .dn { font: 800 24px/1.1 var(--f-display); }
.chip small { font-size: 12px; color: var(--muted); text-transform: capitalize; }
.chip[aria-pressed="true"] { background: var(--hero); border-color: transparent; box-shadow: 0 8px 18px color-mix(in srgb, var(--sea) 40%, transparent); }
.chip[aria-pressed="true"] b, .chip[aria-pressed="true"] small { color: rgba(255, 255, 255, .95); }
.chip[aria-pressed="true"] .dn { color: #fff; }
.chip.today:not([aria-pressed="true"]) { border-color: var(--accent); }

/* timeline delle tappe */
.stop { display: grid; grid-template-columns: 50px 1fr; gap: 0 10px; }
.stop .t { font: 500 13px/1.2 var(--f-mono); color: var(--muted); padding-top: 18px; text-align: right; }
.stop .body { border-left: 2px dashed var(--line); padding: 4px 0 14px 18px; position: relative; min-width: 0; }
.stop .body::before { content: ""; position: absolute; left: -7px; top: 18px; width: 12px; height: 12px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 4px color-mix(in srgb, var(--c) 20%, var(--bg)); }
.stop:last-child .body { padding-bottom: 4px; border-left-color: transparent; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 12px; display: flex; gap: 12px; align-items: flex-start; width: 100%; text-align: left; box-shadow: var(--shadow-sm); }
.badge { width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center; color: var(--c); background: color-mix(in srgb, var(--c) 16%, var(--surface)); font-size: 20px; flex: 0 0 auto; }
.card .main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.card .title { font-weight: 700; overflow-wrap: anywhere; line-height: 1.25; }
.stop.done .title { text-decoration: line-through; color: var(--muted); }
.stop.done .card { opacity: .72; }
.stop .card { flex-wrap: wrap; }
.acts { flex: 1 0 100%; display: flex; gap: 8px; justify-content: flex-end; padding-top: 8px; border-top: 1px dashed var(--line); }
.mini { background: none; border: 1px solid var(--line); border-radius: 99px; padding: 5px 11px; font-size: 13px; font-weight: 600; display: inline-flex; align-items: center; gap: 5px; color: var(--ink); }
.mini.warn { color: var(--warn); }
.mini:hover, .mini:focus-visible { border-color: currentColor; }
.alts { display: flex; flex-direction: column; gap: 10px; }
.alts:empty { display: none; }
.alt { display: flex; gap: 12px; align-items: flex-start; text-align: left; width: 100%; padding: 12px; background: var(--bg); border: 1.5px solid transparent; border-radius: 16px; }
.alt:hover, .alt:focus-visible { border-color: var(--c); }
.alt .main { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.alt .main b { overflow-wrap: anywhere; line-height: 1.25; }
.alt .main small { color: var(--muted); font-size: 13px; }
.langsel { width: auto; max-width: 140px; background: rgba(0, 0, 0, .22); color: #fff; border: 1px solid rgba(255, 255, 255, .7); border-radius: 99px; padding: 6px 12px; font-size: 14px; font-weight: 600; }
.langsel option { color: #10242b; }
.meta { display: flex; flex-wrap: wrap; gap: 3px 10px; font-size: 13px; color: var(--muted); }
.side { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.cost { font: 500 13px/1.2 var(--f-mono); white-space: nowrap; background: var(--bg); border-radius: 8px; padding: 4px 7px; }
.tick { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--field); background: none; display: grid; place-items: center; padding: 0; color: transparent; }
.tick svg { width: 15px; height: 15px; stroke-width: 3; }
.stop.done .tick { background: var(--ok); border-color: var(--ok); color: var(--on-ok); }
.pill { align-self: flex-start; font: 500 11px/1 var(--f-mono); letter-spacing: .05em; text-transform: uppercase; color: var(--c); background: color-mix(in srgb, var(--c) 14%, transparent); padding: 4px 7px; border-radius: 6px; }
.c-trasporti { --c: var(--c-trasporti); } .c-alloggio { --c: var(--c-alloggio); } .c-cibo { --c: var(--c-cibo); }
.c-attivita { --c: var(--c-attivita); } .c-shopping { --c: var(--c-shopping); } .c-altro { --c: var(--c-altro); }

.empty { border: 2px dashed var(--line); border-radius: 22px; padding: 26px 18px; text-align: center; color: var(--muted); display: flex; flex-direction: column; gap: 12px; align-items: center; background: color-mix(in srgb, var(--surface) 60%, transparent); }
.empty svg.art { width: 84px; height: 84px; color: var(--sea); }

/* idea del viaggio */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 16px; display: flex; flex-direction: column; gap: 12px; box-shadow: var(--shadow-sm); }
.idea { padding: 0; }
.idea summary { cursor: pointer; padding: 14px 16px; font-weight: 700; display: flex; align-items: center; gap: 10px; list-style: none; }
.idea summary::-webkit-details-marker { display: none; }
.idea summary::before { content: "✦"; color: var(--accent); }
.idea p { margin: 0; padding: 0 16px 16px; color: var(--muted); }

/* mappa degli spostamenti */
.mapbox { padding: 0; }
.mapbox summary { cursor: pointer; padding: 14px 16px; font-weight: 700; display: flex; align-items: center; gap: 8px; list-style: none; }
.mapbox summary::-webkit-details-marker { display: none; }
.mapbox summary svg { color: var(--accent); }
.mapin { padding: 0 14px 16px; display: flex; flex-direction: column; gap: 12px; }
.seg.small { padding: 3px; border-radius: 12px; }
.seg.small button { padding: 8px 6px; font-size: 13px; border-radius: 9px; }
.mapview { position: relative; z-index: 0; isolation: isolate; }
.lmap { height: 320px; border-radius: 16px; border: 1px solid var(--line); overflow: hidden; z-index: 0; }
.leaflet-container { font-family: var(--f-body); }
.lmicon { background: none; border: 0; }
.lm { width: 30px; height: 30px; border-radius: 50%; background: var(--c); color: var(--on-c); border: 3px solid #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, .35); display: grid; place-items: center; font: 800 14px/1 var(--f-display); }
.ghost.sm { padding: 6px 12px; font-size: 13px; text-decoration: none; color: var(--ink); margin-left: auto; }
.legs li > .lt { flex: 1; }
.map-svg { width: 100%; height: auto; border-radius: 16px; background: color-mix(in srgb, var(--sea) 9%, var(--surface)); border: 1px solid var(--line); }
.map-svg .gl { stroke: color-mix(in srgb, var(--sea) 18%, transparent); stroke-width: 1; }
.map-svg .route-line { fill: none; stroke: var(--accent); stroke-width: 3; stroke-dasharray: 2 7; stroke-linecap: round; stroke-linejoin: round; }
.map-svg .mk circle { fill: var(--c); stroke: var(--surface); stroke-width: 3; }
.map-svg .mk text { fill: #fff; font: 800 13px var(--f-display); }
.legs { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.legs li { display: flex; gap: 10px; align-items: center; }
.legs .n { width: 26px; height: 26px; border-radius: 50%; background: var(--c); color: var(--on-c); display: grid; place-items: center; font: 800 13px/1 var(--f-display); flex: 0 0 auto; }
.legs .lt { display: flex; flex-direction: column; min-width: 0; font-size: 14px; }
.legs .lt b { overflow-wrap: anywhere; line-height: 1.25; }
.legs .lt small { color: var(--muted); font-size: 12px; }
.map-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.map-foot a { text-decoration: none; color: var(--ink); }

/* prenotazioni */
.bk { display: flex; flex-direction: column; gap: 10px; }
.bk-top { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.bk-top > button { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; }
.ref { font: 500 14px/1.2 var(--f-mono); letter-spacing: .04em; background: var(--bg); border: 1px dashed var(--line); border-radius: 8px; padding: 5px 9px; align-self: flex-start; overflow-wrap: anywhere; }
.paid { border: 1px solid var(--warn); background: none; border-radius: 99px; padding: 5px 12px; font-size: 13px; font-weight: 700; color: var(--warn); }
.paid.on { background: var(--ok); border-color: var(--ok); color: var(--on-ok); }

/* budget */
.budget-hero { background: var(--hero); color: #fff; border-radius: 26px; padding: 20px; display: grid; grid-template-columns: 140px 1fr; gap: 16px; align-items: center; box-shadow: var(--shadow); }
.budget-hero.over { background: linear-gradient(155deg, #3a0f14, #8c1d27 70%, #f2622e 140%); }
.ring { position: relative; width: 140px; height: 140px; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 11; }
.ring .rt { stroke: rgba(255, 255, 255, .2); }
.ring .rf { stroke: #ffc27a; stroke-linecap: round; transition: stroke-dasharray .6s ease; }
.ring-in { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.ring-in .big { font: 800 24px/1 var(--f-display); }
.ring-in .lbl { font: 500 10px/1.2 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; opacity: .94; margin-top: 4px; }
.b-side { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.b-side div { display: flex; flex-direction: column; gap: 2px; }
.b-side span { font: 500 11px/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; opacity: .94; }
.b-side b { font: 700 20px/1.1 var(--f-display); }
.bar-row { display: grid; grid-template-columns: 30px 82px 1fr 82px; gap: 10px; align-items: center; font-size: 14px; }
.bar-row .badge { width: 30px; height: 30px; border-radius: 10px; font-size: 16px; }
.bar-row.plainrow { grid-template-columns: 82px 1fr 82px; }
.track { height: 10px; border-radius: 99px; background: var(--bg); overflow: hidden; }
.fill { height: 100%; border-radius: 99px; background: var(--c, var(--sea)); }
.bar-row .v { text-align: right; font: 500 13px/1 var(--f-mono); }

/* navigazione fluttuante */
.nav { position: fixed; left: 0; right: 0; bottom: 0; padding: 0 max(16px, env(safe-area-inset-right, 0px)) calc(12px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); z-index: 5; pointer-events: none; }
.nav-in { pointer-events: auto; max-width: 420px; margin: 0 auto; display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; padding: 6px; background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: blur(14px); border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow); }
.nav button { background: none; border: 0; border-radius: 18px; padding: 9px 4px 8px; font-weight: 700; font-size: 12px; color: var(--muted); display: flex; flex-direction: column; align-items: center; gap: 3px; }
.nav button svg { font-size: 22px; }
.nav button[aria-current="page"] { background: var(--hero); color: #fff; box-shadow: 0 6px 14px color-mix(in srgb, var(--sea) 40%, transparent); }

/* moduli */
.back { position: fixed; inset: 0; background: rgba(5, 15, 25, .6); backdrop-filter: blur(3px); z-index: 20; display: flex; align-items: flex-end; justify-content: center; }
.sheet { background: var(--surface); width: 100%; max-width: 560px; max-height: 92%; overflow-y: auto; border-radius: 28px 28px 0 0; padding: 12px max(18px, env(safe-area-inset-left, 0px)) calc(22px + env(safe-area-inset-bottom, 0px)) max(18px, env(safe-area-inset-right, 0px)); box-shadow: var(--shadow); }
.sheet::before { content: ""; display: block; width: 44px; height: 5px; border-radius: 99px; background: var(--line); margin: 0 auto 14px; }
form { display: flex; flex-direction: column; gap: 14px; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.fields .full { grid-column: 1 / -1; }
label { display: flex; flex-direction: column; gap: 5px; font-size: 13px; font-weight: 700; color: var(--muted); min-width: 0; }
input, select, textarea { width: 100%; min-width: 0; background: var(--bg); border: 1.5px solid var(--field); border-radius: 13px; padding: 12px 13px; font-size: 16px; font-weight: 400; color: var(--ink); transition: border-color .15s ease, background-color .15s ease; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--sea); background: var(--surface); }
textarea { resize: vertical; min-height: 66px; }
.check { flex-direction: row; align-items: center; gap: 10px; }
.check input { width: 22px; height: 22px; accent-color: var(--accent); }
.legend { font-size: 13px; font-weight: 700; color: var(--muted); margin-bottom: 8px; }
.best { display: flex; flex-direction: column; gap: 8px; background: color-mix(in srgb, var(--accent) 7%, var(--surface)); border-radius: 14px; padding: 12px; }
.best .legend { margin: 0; }
.bestline b { font-size: 16px; text-transform: capitalize; }
.mstrip { display: grid; grid-template-columns: repeat(12, 1fr); gap: 3px; }
.mo { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 2px; height: 76px; padding: 4px 0 3px; border: 1.5px solid transparent; border-radius: 9px; background: transparent; color: var(--muted); font: inherit; cursor: pointer; }
.mo .mbar { display: block; width: 62%; flex: 0 0 auto; border-radius: 4px 4px 2px 2px; background: color-mix(in srgb, var(--muted) 45%, var(--surface)); max-height: 38px; }
.mo.best .mbar { background: var(--accent); }
.mo.bad .mbar { background: color-mix(in srgb, #c0392b 55%, var(--surface)); }
.mo .mlab { font-size: 11px; font-weight: 700; text-transform: uppercase; }
.mo .mt { font-size: 10px; }
.mo.sel { border-color: var(--ink); color: var(--ink); }
.mo:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.chips { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.chips .check { font-weight: 600; color: var(--ink); background: var(--bg); border: 1.5px solid transparent; border-radius: 13px; padding: 11px; font-size: 14px; }
.chips .check:has(input:checked) { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, var(--surface)); }
.chips .check input { width: 18px; height: 18px; flex: 0 0 auto; }
.chips .check .attr { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.chips .check .attr small { font-weight: 400; font-size: 12px; color: var(--muted); }
.chips .check { align-items: flex-start; }
#attr-box { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }
#attr-box[hidden] { display: none; }
#attr-list:empty { display: none; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; }
.actions .btn { flex: 1 1 auto; }
.toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(96px + env(safe-area-inset-bottom, 0px)); background: var(--ink); color: var(--bg); padding: 11px 18px; border-radius: 99px; font-size: 14px; font-weight: 600; z-index: 30; max-width: calc(100% - 32px); text-align: center; box-shadow: var(--shadow); }

@media (max-width: 400px) {
  .fields { grid-template-columns: 1fr; }
  .chips { grid-template-columns: 1fr; }
  .budget-hero { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .b-side { flex-direction: row; gap: 24px; }
  .bar-row { grid-template-columns: 30px 1fr 74px; }
  .bar-row .lab { display: none; }
  .bar-row.plainrow { grid-template-columns: 70px 1fr 74px; }
  .pass { grid-template-columns: 78px 1fr auto; }
  .pass::before, .pass::after { left: 68px; }
}
/* profilo */
button.avatar { padding: 0; cursor: pointer; color: #fff; }
button.avatar:hover { background: rgba(0, 0, 0, .36); }
.prof { display: flex; align-items: center; gap: 12px; }
.prof .avatar { width: 52px; height: 52px; font-size: 22px; background: var(--hero); color: #fff; border-color: transparent; flex: 0 0 auto; }
.prof b { font-size: 18px; overflow-wrap: anywhere; }
.shl { gap: 0; }
.shrow { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; padding: 10px 0; border-bottom: 1px dashed var(--line); }

/* Oggi, riordino, percorso */
.today { background: linear-gradient(135deg, #0b4f6c, #0d6a82); color: #fff; border-radius: 22px; padding: 16px 18px; display: flex; flex-direction: column; gap: 6px; box-shadow: var(--shadow); }
.today.fin { background: linear-gradient(135deg, #14532d, #2fa06a); }
.today h2 { margin: 0; font: 800 22px/1.2 var(--f-display); overflow-wrap: anywhere; }
.today p { margin: 0; font-size: 14px; opacity: .92; }
.today .sub { color: rgba(255, 255, 255, .94); }
.tlabel { font: 500 12px/1 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; opacity: .94; }
.tact { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 2px; }
.tact .btn { background: #fff; color: #0b4f6c; box-shadow: none; text-decoration: none; }
.tact .ghost { background: rgba(255, 255, 255, .16); color: #fff; border-color: rgba(255, 255, 255, .35); box-shadow: none; }
.mvs { display: flex; gap: 6px; margin-right: auto; }
.mini:disabled { opacity: .35; }
.dayacts { display: flex; gap: 8px; margin-bottom: -6px; }
.optnote { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 8px 12px; border-radius: 14px; font-size: 13px; background: color-mix(in srgb, #22b573 14%, var(--surface)); border: 1px solid color-mix(in srgb, #22b573 40%, transparent); }
.optnote span { flex: 1; min-width: 0; }

/* modificare insieme */
.who { font-size: 12px; color: var(--sea); font-weight: 600; }
.cochips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.co { display: inline-flex; align-items: center; gap: 4px; background: var(--bg); border: 1px solid var(--line); border-radius: 99px; padding: 4px 6px 4px 12px; font-size: 14px; }
.co.own { padding-right: 12px; }
.co small { color: var(--muted); }
.cox { font-size: 18px; line-height: 1; color: var(--muted); padding: 0 6px; }

/* meteo, spese reali, valigia */
.wx { font-size: 14px; color: var(--ink); margin-bottom: -8px; }
.wx small { color: var(--muted); font-size: 12px; }
.wxc { display: flex; align-items: center; justify-content: center; gap: 2px; margin-top: 3px; font: 600 12px/1 var(--f-body); }
.wxc.typ { font-style: italic; }
.chip { min-width: 62px; }
.wxwarn { margin-top: 8px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; padding: 8px 12px; border-radius: 14px; font-size: 13px; line-height: 1.35; background: color-mix(in srgb, #2b7fd6 13%, var(--surface)); border: 1px solid color-mix(in srgb, #2b7fd6 35%, transparent); }
.wxwarn.hi { background: color-mix(in srgb, #2b7fd6 20%, var(--surface)); border-color: #2b7fd6; font-weight: 600; }
.wxwarn.typ { background: var(--surface); border-color: var(--line); color: var(--muted); }
.chip { position: relative; }
.rainb { position: absolute; top: -7px; right: -4px; font-style: normal; font-size: 15px; line-height: 1; }
.exsum { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.exsum div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.exsum span { font-size: 12px; color: var(--muted); }
.exsum b { font-size: 16px; overflow-wrap: anywhere; }
.exsum b.over { color: var(--warn); }
.exl { gap: 2px; }
.exrow { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.exd { font: 500 12px/1 var(--f-mono); color: var(--muted); min-width: 26px; }
.ext { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ext b { overflow-wrap: anywhere; line-height: 1.25; }
.ext small { color: var(--muted); font-size: 12px; }
.pktrack { height: 8px; }
.pkadd { display: flex; flex-direction: row; gap: 8px; align-items: center; }
.pkadd input { flex: 1; }
.pkcat { margin: 6px 0 -4px; font: 500 12px/1 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.pkl { gap: 6px; }
.pk { display: flex; align-items: center; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 8px 10px 8px 12px; }
.pk span { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.pk.done span { text-decoration: line-through; color: var(--muted); }
.pkchk { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--field); background: none; display: grid; place-items: center; padding: 0; color: transparent; flex: 0 0 auto; }
.pkchk[aria-pressed="true"] { background: var(--sea); border-color: var(--sea); color: var(--on-sea); }
.pkx { font-size: 22px; line-height: 1; color: var(--muted); padding: 0 6px; }

/* foto della destinazione sulle card e sulla copertina */
.pass-main.has { background: linear-gradient(90deg, var(--surface) 0%, color-mix(in srgb, var(--surface) 90%, transparent) 40%, color-mix(in srgb, var(--surface) 10%, transparent) 100%), var(--ph) center / cover; }
.cover.has { background: linear-gradient(135deg, rgba(6, 34, 52, .94) 0%, rgba(6, 34, 52, .84) 55%, rgba(6, 34, 52, .78) 100%), var(--ph) center / cover; }
.cover.has::before { opacity: .35; }
.pill-btn.iconly { padding: 8px 11px; font-size: 18px; }
.cover-top { flex-wrap: wrap; }
.phcredit { align-self: flex-end; font-size: 11px; opacity: 1; margin-top: -4px; }
.phcredit a { color: inherit; }
.cta .btn { flex: 1 1 100%; }
.cta .ghost { flex: 1 1 calc(50% - 5px); justify-content: center; }

/* offline, tempi tra le tappe, cambio valuta, condivisione, consumi */
.netbar { max-width: 560px; margin: -6px auto 10px; display: flex; align-items: center; justify-content: center; gap: 7px; flex-wrap: wrap; font: 500 12px/1.3 var(--f-mono); letter-spacing: .04em; color: var(--muted); }
.netbar i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex: 0 0 auto; }
.netbar.on i { background: #22b573; box-shadow: 0 0 0 3px color-mix(in srgb, #22b573 25%, transparent); }
.netbar b { font-weight: 700; text-transform: uppercase; }
.netbar span { font-family: var(--f-body); letter-spacing: 0; }
.netbar.off { background: color-mix(in srgb, var(--warn) 14%, var(--surface)); color: var(--warn); border: 1px solid color-mix(in srgb, var(--warn) 40%, transparent); border-radius: 14px; padding: 7px 12px; }
.netbar.off i { background: var(--warn); }
.leg .body { padding: 0 0 8px 18px; }
.legtxt { margin: 0; font-size: 13px; color: var(--muted); }
.leg.tight .legtxt { color: var(--warn); }
.tightsub { color: var(--warn); font-weight: 600; }
.fxout { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.fxout b { font-size: 22px; }
.exp { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.shbox { display: flex; flex-direction: column; gap: 8px; }
.urow { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.urow span { min-width: 0; overflow-wrap: anywhere; }
a.ghost { text-decoration: none; color: inherit; }

/* barra dell'assistente AI, sopra la barra delle schede */
.aibox { pointer-events: auto; max-width: 420px; margin: 0 auto 8px; display: flex; flex-direction: column; gap: 6px; }
.aiform { display: flex; flex-direction: row; align-items: center; gap: 6px; padding: 5px 5px 5px 14px; background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: blur(14px); border: 1px solid var(--field); border-radius: 24px; box-shadow: var(--shadow); }
.aiform:focus-within { border-color: var(--sea); }
.aiicon { color: var(--sea); font-size: 20px; display: grid; }
.aiform input, .aiform input:focus { flex: 1; width: auto; min-width: 0; border: 0; background: none; border-radius: 0; padding: 9px 4px; font-size: 16px; outline: 0; }
.aisend { width: 40px; height: 40px; border-radius: 50%; border: 0; display: grid; place-items: center; padding: 0; background: var(--hero); color: #fff; font-size: 19px; flex: 0 0 auto; }
.aipanel { display: flex; gap: 10px; align-items: flex-start; padding: 12px 12px 12px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); max-height: 38vh; }
.aitext { flex: 1; min-width: 0; overflow-y: auto; max-height: calc(38vh - 24px); font-size: 14px; }
.aitext p { margin: 0; }
.aitext p + .aichg { margin-top: 8px; }
.aichg { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 3px; color: var(--muted); }
.aichg b { display: inline-block; width: 1.2em; color: var(--sea); }
.aibtn { display: flex; flex-direction: column; gap: 6px; align-items: flex-end; flex: 0 0 auto; }
body.has-ai { padding-bottom: 190px; }

/* foto dei luoghi */
.phs { gap: 14px; }
.sph { flex: 1 0 100%; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.sph:empty { display: none; }
.sph img { display: block; width: 100%; aspect-ratio: 16 / 9; max-width: 100%; object-fit: cover; border-radius: 12px; background: var(--bg); }
.sph-load { width: 100%; aspect-ratio: 16 / 9; border-radius: 12px; background: var(--bg); }
.fl { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.fl .mini[aria-pressed="true"] { background: var(--hero); color: #fff; border-color: transparent; }
.ph-day { font: 500 12px/1 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding: 12px 2px 0; }
.ph-day:first-child { padding-top: 0; }
.ph { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; box-shadow: var(--shadow-sm); }
.ph-img { position: relative; aspect-ratio: 16 / 10; max-width: 100%; background: var(--bg); }
.ph-img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ph-empty { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; color: var(--muted); font-size: 13px; }
.ph-empty svg { font-size: 30px; }
.ph-cap { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.ph-cap b { overflow-wrap: anywhere; line-height: 1.25; }
.ph-credit { font-size: 12px; color: var(--muted); }
.ph-credit a, a.ph-credit { color: inherit; text-decoration: underline; }
.nav button { min-width: 0; font-size: 11px; }
.nav button span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (prefers-reduced-motion: no-preference) {
  .sph-load { animation: phpulse 1.4s ease-in-out infinite; }
  .ph-empty.loading { animation: phpulse 1.4s ease-in-out infinite; }
  @keyframes phpulse { 50% { opacity: .45; } }
  .wrap.enter > *, .wrap.enter .list > li { animation: rise .35s ease both; }
  .wrap.enter .list > li:nth-child(2) { animation-delay: .04s; } .wrap.enter .list > li:nth-child(3) { animation-delay: .08s; } .wrap.enter .list > li:nth-child(4) { animation-delay: .12s; }
  .sheet { animation: up .22s ease-out; }
  @keyframes rise { from { opacity: 0; transform: translateY(10px); } }
  @keyframes up { from { transform: translateY(30px); opacity: 0; } }
}

/* cerca, importa/esporta, email */
.cover-right { display: inline-flex; gap: 8px; align-items: center; }
.xcard { display: flex; flex-direction: column; gap: 8px; }
.xcard .legend { margin: 0; }
.xbtn { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 12px 14px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); text-decoration: none; font: inherit; cursor: pointer; }
.xbtn .i { width: 22px; height: 22px; flex: 0 0 auto; stroke: var(--accent); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.xbtn span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.xbtn b { font-size: 15px; }
.xbtn small { font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
.xbtn:hover { border-color: var(--accent); }
.xbtn:disabled { opacity: .55; cursor: default; }
.srlist { display: flex; flex-direction: column; gap: 6px; max-height: 46vh; overflow-y: auto; }
.srtrip { margin-top: 8px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.srhit { display: grid; grid-template-columns: auto 1fr; column-gap: 10px; align-items: baseline; text-align: left; width: 100%; padding: 10px 12px; border-radius: 12px; background: var(--bg); border: 1.5px solid transparent; color: var(--ink); font: inherit; cursor: pointer; }
.srhit:hover, .srhit:focus-visible { border-color: var(--accent); }
.srwhen { font-size: 12px; font-weight: 700; color: var(--accent); white-space: nowrap; }
.srtitle { font-weight: 600; min-width: 0; overflow-wrap: anywhere; }
.srhit small { grid-column: 2; color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
.clwarn { color: var(--warn); font-weight: 600; }
.tdwrap { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line, color-mix(in srgb, var(--muted) 25%, transparent)); }
.tdhead { margin-top: 0; }
.tdwrap .hint { margin-top: 12px; }
.dayacts { flex-wrap: wrap; }
.flchips { display: flex; flex-wrap: wrap; gap: 8px; }
.mo.flc { width: auto; min-width: 84px; height: auto; flex-direction: column; align-items: flex-start; gap: 2px; padding: 8px 12px; text-align: left; }
.mo.flc b { font-size: 15px; }
.mo.flc span, .mo.flc small { font-size: 12px; color: var(--muted); }
.sug { display: flex; flex-direction: column; gap: 6px; margin-top: -4px; }
.sugi { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; width: 100%; text-align: left; padding: 9px 12px; border-radius: 12px; border: 1px solid color-mix(in srgb, var(--muted) 30%, transparent); background: var(--surface); color: inherit; font: inherit; cursor: pointer; }
.sugi:hover, .sugi:focus-visible { border-color: var(--accent); outline: none; }
.sugi span { font-size: 12px; color: var(--muted); }
.sugi i { font-style: normal; }
.flrow { display: flex; align-items: baseline; gap: 8px; margin: 10px 0 6px; font-size: 13px; }
.fchead { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 10px 0 6px; }
.fchead > div { flex: 1; text-align: center; font-size: 13px; }
.fchead.flret { justify-content: center; margin-top: 16px; }
.fcm { font-family: var(--f-display, inherit); font-size: 16px; font-weight: 600; text-transform: capitalize; margin-top: 2px; }
.fcm2 { margin: 8px 0 4px; font-size: 13px; font-weight: 600; text-transform: capitalize; color: var(--muted); }
.fcnav { width: 38px; height: 38px; border-radius: 50%; border: 1px solid color-mix(in srgb, var(--muted) 30%, transparent); background: var(--surface); color: inherit; font-size: 20px; line-height: 1; cursor: pointer; }
.fcnav:disabled { opacity: .35; cursor: default; }
.fcal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; }
.fcw { text-align: center; font: 500 11px/1 var(--f-mono, monospace); color: var(--muted); padding: 4px 0; text-transform: uppercase; }
.fcd { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; min-height: 44px; padding: 3px 0; border: 1px solid transparent; border-radius: 10px; background: var(--surface); color: inherit; font: inherit; cursor: pointer; }
.fcd b { font-size: 12px; font-weight: 500; color: var(--muted); }
.fcd span { font-size: 13px; font-weight: 700; min-height: 15px; }
.fcd.lo { background: color-mix(in srgb, #2e9e5b 24%, var(--surface)); }
.fcd.mid { background: color-mix(in srgb, #e0a82e 22%, var(--surface)); }
.fcd.hi { background: color-mix(in srgb, #d9622b 24%, var(--surface)); }
.fcd.none { background: transparent; cursor: default; opacity: .4; }
.fcd.sel { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent); }
.fcd.mark { border-color: var(--muted); border-style: dashed; }
.fcd:not(:disabled):hover, .fcd:focus-visible { border-color: var(--accent); outline: none; }
.fcleg { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; margin-top: 8px; font-size: 12px; }
.fcleg i { display: inline-block; width: 12px; height: 12px; border-radius: 4px; margin-right: 5px; vertical-align: -2px; }
.fcleg i.lo { background: color-mix(in srgb, #2e9e5b 55%, var(--surface)); }
.fcleg i.mid { background: color-mix(in srgb, #e0a82e 55%, var(--surface)); }
.fcleg i.hi { background: color-mix(in srgb, #d9622b 55%, var(--surface)); }
.flmap { height: 240px; border-radius: 14px; overflow: hidden; margin-top: 12px; isolation: isolate; }
.flpin { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 26px; padding: 0 8px; border-radius: 13px; font: 700 12px/1 var(--f-mono, monospace); color: #fff; background: #0b6379; box-shadow: 0 1px 4px rgba(0,0,0,.35); }
.flpin.b { background: #b53f0b; }
.fltip { font-size: 12px; line-height: 1.35; text-align: center; padding: 4px 8px; }
.fcsub { margin-top: 2px; font-size: 12px; color: var(--muted); }
.flcheck { margin-top: 10px; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.flaskbtn { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.fltimes { display: flex; flex-direction: column; gap: 4px; margin-top: 8px; padding: 10px 12px; border-radius: 12px; background: var(--surface); }
.fth { font-size: 13px; }
.flopt { display: grid; grid-template-columns: auto 1fr auto; align-items: baseline; gap: 10px; font-size: 14px; padding: 4px 0; }
.flopt > b:first-child { font-size: 17px; }
.flopt > span { color: var(--muted); font-size: 13px; }
.chip[aria-pressed="true"] .wxc { color: #fff; }
.flstops { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 4px; }
.flstops .mini { padding: 7px 12px; }
.flstops .mini[aria-pressed="true"] { background: var(--hero); color: #fff; border-color: transparent; }
.flnear { margin-bottom: 8px; padding: 10px 12px; border-radius: 12px; background: var(--surface); }
.flnchips { display: flex; flex-direction: column; gap: 6px; margin-top: 6px; }
.mini.flnc { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; width: 100%; padding: 8px 12px; text-align: left; white-space: normal; }
.mini.flnc span { font-size: 12px; color: var(--muted); font-weight: 400; }
.flopt > b:first-child { white-space: nowrap; }
@media (max-width: 420px) { .flopt { grid-template-columns: 1fr auto; } .flopt > span { grid-column: 1 / -1; order: 3; } }
.planbbar { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; margin-top: 8px; padding: 8px 12px; border-radius: 14px; font-size: 13px; background: color-mix(in srgb, var(--sea) 14%, var(--surface)); border: 1px solid color-mix(in srgb, var(--sea) 40%, transparent); }
.pbtag { font: 500 11px/1 var(--f-mono); letter-spacing: .05em; text-transform: uppercase; padding: 4px 7px; border-radius: 6px; background: color-mix(in srgb, var(--sea) 18%, var(--surface)); color: var(--ink); }
.pbrow { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.pbrow input { width: 22px; height: 22px; margin-top: 2px; flex: 0 0 auto; accent-color: var(--sea); }
.hint.bag { margin-top: 6px; }
.te { display: block; font-size: 11px; font-weight: 400; color: var(--muted); }
.dl { font-weight: 600; }
.dl-hi { color: var(--warn); }
.vok { color: var(--ok); font-weight: 600; }
button.flopt { background: none; border: 1px solid transparent; border-radius: 10px; padding: 6px 8px; width: 100%; text-align: left; color: inherit; font: inherit; cursor: pointer; }
button.flopt[aria-pressed="true"] { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 8%, var(--surface)); }
.flusechk { margin-top: 8px; }
.wxwarn.hol { background: color-mix(in srgb, #e0a82e 16%, var(--surface)); border-color: color-mix(in srgb, #e0a82e 45%, transparent); }
.holb { left: 4px; right: auto; }
.vcur, .vrow { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 10px 12px; border-radius: 12px; background: var(--surface); }
.vcur > div, .vrow > div:first-child { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.vlist { display: flex; flex-direction: column; gap: 8px; margin: 8px 0; }
.vact { display: flex; gap: 6px; }
.vact .mini[aria-pressed="true"] { background: var(--hero); color: #fff; border-color: transparent; }
.vcmp { margin-top: 8px; padding: 10px 12px; border-radius: 12px; background: var(--surface); }
.vcols { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.vcols > div { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.vhead { padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.vday { margin-top: 10px; font: 500 12px/1 var(--f-mono); letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.vi { font-size: 13px; line-height: 1.35; }
