:root{color-scheme:dark;--bg:#060a08;--paper:#0e1511;--ink:#f1f8f2;--muted:#a9baae;--line:#25372b;--fill:#17251c;--active:#2b4934;--accent:#a1f478;font:16px/1.35 system-ui,-apple-system,sans-serif}
body{background:radial-gradient(ellipse at 50% 5%,#193723 0%,#090f0b 44%,#060a08 78%);min-height:100vh}
.phone{border-color:#304737;box-shadow:0 24px 70px #0009,inset 0 1px #ffffff13;background:linear-gradient(155deg,#16231a,var(--paper) 270px)}
.bar{height:65px}.bar-title{font-size:15px;font-weight:650;letter-spacing:-.02em}.bar .back{color:var(--accent);border-radius:11px}.bar .back:hover,.bar .pill:hover{background:#263b2b}.bar .pill,.bar .saved{color:var(--accent);background:#253a2b}
.device-top{display:none}.panel{padding-bottom:25px}h1{font-size:25px;font-weight:680;line-height:1.04;letter-spacing:-.045em}h2{font-size:16px;font-weight:670;letter-spacing:-.02em}
.field{border:1px solid #293d30;background:linear-gradient(110deg,#203026,#152219);border-radius:13px}.field small{display:block;font-size:10px;text-transform:uppercase;letter-spacing:.11em}.field strong{font-weight:620}.dot{background:#101a13;border-color:#76cf78;box-shadow:0 0 10px #8df87645}.dot.end{background:#99ed79;border-color:#99ed79}
.chip,.secondary{background:#19281e;border:1px solid #334637;color:#d9ebdc;border-radius:20px}.chip[aria-pressed=true]{color:#b4fa92;background:#2c482e;border-color:#699d60;box-shadow:none}.primary{color:#10210e;background:#a1f478;border:1px solid #b6fb95;border-radius:13px;font-weight:780;box-shadow:0 5px 20px #97f27522}.primary:hover{background:#bcffa1}.chip:hover,.secondary:hover,.card:hover{background:#263d2d}.primary:active,.card:active,.chip:active{transform:scale(.98)}
.card,.chip,.primary,.secondary{transition:background .18s ease,transform .18s ease,border-color .18s ease}.card:focus-visible,.chip:focus-visible,.primary:focus-visible,button:focus-visible,a:focus-visible,summary:focus-visible{outline-color:var(--accent)}.card strong{font-weight:610}.card small{color:#a7baa9}.preview .card{background:linear-gradient(145deg,#203328,#15231a);border:1px solid #2e4433;border-radius:13px}.time{color:#b1fa8f;font-size:12px;font-weight:700;background:#29402b;padding:4px 7px;border-radius:6px;max-width:max-content}
.map canvas{filter:none;height:215px}.map{background:#10241a}.legend{background:#111c15e8;color:#c5d7c8}.detail-image{height:142px;position:relative;overflow:hidden;border:1px solid #345941;border-radius:15px;background:radial-gradient(ellipse at 81% 0%,#83db66 0%,#367b48 20%,#193f2e 44%,#101b15 76%)}.detail-image:before{content:'';position:absolute;inset:-70px -16px -105px -85px;transform:rotate(-25deg);background:repeating-radial-gradient(ellipse at 55% 52%,transparent 0 10px,#9df17b55 11px 12px,transparent 13px 19px);mask-image:linear-gradient(125deg,#000 15%,#0007 70%,transparent)}.detail-image:after{content:'';position:absolute;width:18px;height:18px;border:1px solid #e3ffdc;border-radius:50%;background:#a1f478;box-shadow:0 0 0 7px #a1f47836,0 0 24px #d5fca9;top:48%;left:58%}
.stats div{border:1px solid #2b4030;border-radius:10px;background:#18271d}.stats b{font-size:14px;color:#dcf7de;font-weight:750}.stats div:first-child b{color:var(--accent)}.timeline:before{background:#355d3b}.timeline strong{font-weight:650}.remove{color:#b3cab9}.grid[data-screen=suggestions] .card{padding:9px 0}.note{font-size:11px}.status input{background:#16241b;color:#e4f6e8;border:1px solid #4f7754}
@keyframes enter{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:translateY(0)}}
.panel.enter{animation:enter .24s ease-out}
/* Compact layout for the proportional phone gallery. */
html.device{font-size:14px}
html.device body{background:var(--paper)}
html.device .shell{margin:0;padding:0;width:100%}
html.device .phone{display:flex;flex-direction:column;height:100dvh;min-height:0;border:0;border-radius:0;box-shadow:none}
html.device .grid{flex:1;min-height:0;overflow:auto;scrollbar-width:thin}
html.device .grid>*{flex-shrink:0}
html.device .device-top{display:flex;position:relative;flex:none;justify-content:space-between;align-items:center;padding:8px 18px 2px;height:32px;font-size:10px;font-weight:750}
html.device .device-top:after{content:'';background:#020302;width:75px;height:20px;border-radius:999px;position:absolute;left:50%;top:7px;transform:translateX(-50%);box-shadow:inset -12px 0 12px -10px #293e37}
html.device .bar{flex:none;height:43px;grid-template-columns:37px minmax(0,1fr) 52px;padding:0 10px}
html.device .bar-title{font-size:13px}
html.device .bar .back{width:34px;height:34px}
html.device .bar .pill{font-size:11px;padding:5px 6px}
html.device .panel{padding:0 12px 12px}
html.device h1{font-size:21px;margin-bottom:5px}
html.device h2{font-size:14px;margin-bottom:6px}
html.device .route{gap:5px}
html.device .field{padding:5px 8px;gap:8px}
html.device .block{margin-top:9px}
html.device .choices{gap:4px}
html.device .chip{font-size:11px;padding:6px}
html.device .preview{margin:10px -12px 0;padding:10px 12px 0}
html.device .cards{margin-top:4px}
html.device .preview .cards{gap:5px}
html.device .preview .card{min-height:0;padding:6px;line-height:1.2}
html.device .card small{font-size:11px;margin-top:2px}
html.device .time{font-size:10px;padding:3px 5px}
html.device .wide{margin-top:8px}
html.device .map canvas{height:clamp(96px,21dvh,144px)}
html.device .legend{font-size:10px}
html.device [data-screen=suggestions] .panel{padding-top:8px}
html.device [data-screen=suggestions] .card{padding:4px 0;line-height:1.2}
html.device .filters{margin-top:6px;font-size:12px}
html.device .filters summary{min-height:28px;padding-block:5px}
html.device .detail-image{height:clamp(90px,22dvh,145px);margin-bottom:8px}
html.device .section-rule{margin-top:8px;padding-top:8px}
html.device .timeline{margin:5px 0}
html.device .timeline li{min-height:32px;padding:4px 0;gap:6px}
html.device .timeline small{font-size:11px}
html.device .remove{font-size:0;text-decoration:none;padding:0 3px;border-radius:5px}
html.device .remove::after{content:'×';font-size:17px;line-height:1}
html.device [data-screen=itinerary] .actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
html.device [data-screen=itinerary] .actions .primary{grid-column:1/-1}
html.device [data-screen=itinerary] .actions .secondary{align-items:center;padding:5px}
html.device [data-screen=itinerary] .timeline li>div{min-width:0}
html.device .stats{gap:4px;margin:8px 0}
html.device .stats div{padding:5px}
html.device .stats b{font-size:12px}
html.device .stats small{font-size:10px}
html.device .actions{gap:5px;margin-top:8px}
html.device .primary{padding:8px;min-height:36px}
html.device .actions .secondary{font-size:11px;padding:6px 8px;min-height:30px}
html.device .note{font-size:10px;margin-top:7px}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important}}

.gallery-link{padding:15px 16px;text-align:center;font-size:13px;color:var(--accent)}
html.device .gallery-link{display:none}
