/* Trip's typography, color roles and controls; LCD layout is isolated in lcd.css. */
:root{font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;font-size:13px;color:var(--ink);background:var(--paper);--ink:#243e37;--muted:#75817a;--subtle:#89928d;--accent:#285e4d;--accent-hover:#214f40;--accent-pale:#e8f0e9;--accent-border:#9bb6a7;--accent-soft:#dbe8df;--paper:#f4f6f2;--surface:#fff;--surface-subtle:#f9faf8;--line:#e1e7e1;--line-soft:#edf0e9;--strong:#214b42;--strong-ink:#f3f8f4;--strong-muted:#bed1c4;--danger:#a34238;--on-accent:#fff}
*{box-sizing:border-box;scrollbar-width:none}*::-webkit-scrollbar{display:none}body{margin:0}button,input,select{font:inherit}button{cursor:pointer;border:0;color:inherit}button:disabled{cursor:default;opacity:.45}a{color:inherit;text-decoration:none}button,a,input,select{touch-action:manipulation}input,select{min-width:0;width:100%;border:1px solid var(--line);border-radius:6px;background:var(--surface);color:var(--ink);padding:10px;outline:none}input::placeholder{color:var(--subtle)}input:focus,select:focus{border-color:var(--accent);box-shadow:0 0 0 2px color-mix(in srgb,var(--accent) 10%,transparent)}button:focus-visible,a:focus-visible{outline:2px solid var(--accent);outline-offset:3px}h1,h2,p{margin:0}h1{font-size:20px;font-weight:600;letter-spacing:-.04em}h2{font-size:14px;font-weight:600}.hidden{display:none!important}.muted{color:var(--muted)}
.topbar{height:64px;display:flex;align-items:center;justify-content:space-between;padding:0 24px;border-bottom:1px solid var(--line);background:var(--surface-subtle);flex:none;gap:16px}.brand{display:flex;gap:10px;align-items:center;font-size:16px;font-weight:600;letter-spacing:-.5px}.brand-mark{display:grid;place-items:center;width:28px;height:28px;background:var(--accent);color:var(--on-accent);border-radius:8px;font-size:19px;font-weight:750;line-height:1;flex:none}.topbar-actions{display:flex;gap:10px;align-items:center}.button{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:36px;padding:8px 14px;border-radius:7px;font-size:12px;font-weight:550;white-space:nowrap;transition:background .18s,border-color .18s,color .18s}.button-primary{background:var(--accent);color:var(--on-accent)}.button-primary:hover:not(:disabled){background:var(--accent-hover)}.button-ghost{background:var(--surface);border:1px solid var(--line)}.button-ghost:hover:not(:disabled){background:var(--paper)}.button-wide{width:100%;min-height:44px}.text-button{padding:0;background:transparent;color:var(--accent);font-size:11px;white-space:nowrap}.text-button:hover:not(:disabled){text-decoration:underline}.settings-entry{display:flex;align-items:center;gap:6px}.settings-entry svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round}
.section-kicker{font-size:11px;color:var(--muted);margin-bottom:7px}.section-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:20px;gap:10px}.section-heading>span{font-size:10px}.trip-head{padding:22px 20px;border-radius:12px;background:var(--strong);color:var(--strong-ink);box-shadow:0 5px 16px #00000010}.trip-head .section-kicker{color:var(--strong-muted);font-size:10px;letter-spacing:.12em;margin-bottom:11px}.trip-title{font-size:22px;font-weight:600;margin-bottom:16px;letter-spacing:-.5px;overflow-wrap:anywhere}.trip-meta-row{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:11px;color:var(--strong-muted)}.trip-stats{display:flex;justify-content:space-between;margin-top:20px;padding-top:17px;border-top:1px solid #ffffff23}.stat strong{display:block;font-size:23px;font-weight:500;font-variant-numeric:tabular-nums}.stat span{display:block;color:var(--strong-muted);margin-top:5px;font-size:10px}
.modal-head{display:flex;justify-content:space-between;align-items:center;gap:15px}.modal-head h2{font-size:23px;font-weight:550}.modal-close{width:28px;height:28px;border-radius:50%;background:var(--paper);color:var(--muted);font-size:18px}.settings-header{padding:28px;border-bottom:1px solid var(--line);background:var(--surface-subtle)}.settings-body{overflow:auto;flex:1;min-height:0;padding:0 28px 25px}.preference-section{padding-top:23px}.preference-section h3{font-size:11px;font-weight:600;color:var(--muted);margin:0 0 8px;letter-spacing:.06em}.preference-row{position:relative;display:flex;align-items:center;justify-content:space-between;gap:18px;padding:15px 0;border-bottom:1px solid var(--line-soft);cursor:pointer}.preference-row>span:first-child{flex:1;min-width:0}.preference-row strong{font-size:13px;line-height:1.5;font-weight:500;display:block}.preference-row small{display:block;color:var(--muted);font-size:11px;margin-top:5px;line-height:1.6}.preference-row input[type=checkbox]{position:absolute;right:0;top:50%;transform:translateY(-50%);width:36px;height:22px;opacity:0;margin:0;z-index:2;cursor:pointer}.switch-track{display:block;width:36px;height:22px;background:var(--line);border-radius:20px;flex:none;transition:background .18s}.switch-track:after{content:"";display:block;width:16px;height:16px;border-radius:50%;background:var(--surface);margin:3px;transition:transform .18s}.preference-row input:checked+.switch-track{background:var(--accent)}.preference-row input:checked+.switch-track:after{transform:translateX(14px);background:var(--on-accent)}.preference-row input:focus-visible+.switch-track{outline:2px solid var(--accent);outline-offset:3px}.select-row select{width:125px;padding:8px;font-size:12px}.settings-footer{display:flex;align-items:center;gap:8px;padding:18px 28px;border-top:1px solid var(--line);color:var(--muted);font-size:11px;background:var(--surface-subtle)}.saved-dot{width:6px;height:6px;border-radius:50%;background:var(--accent)}
.visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
