:root{color-scheme:dark;--bg:#151c19;--panel:#1d2621;--surface:#29332c;--line:#354036;--ink:#f0f1e8;--muted:#acb7a6;--accent:#edaa7c;--accent-ink:#252b22}*{box-sizing:border-box}html,body{margin:0;height:100%;background:var(--bg)}body{font-family:system-ui,'Noto Sans CJK KR','Malgun Gothic',sans-serif;color:var(--ink);font-size:18px;letter-spacing:-.5px;-webkit-font-smoothing:antialiased}button,input,select{font:inherit}button,a,input,select{touch-action:manipulation;-webkit-tap-highlight-color:transparent}button{color:inherit;background:none;border:0;cursor:pointer}button:disabled{opacity:.4;cursor:default}a{color:inherit;text-decoration:none}button:focus-visible,a:focus-visible,select:focus-visible,input:focus-visible{outline:3px solid var(--accent);outline-offset:3px}svg{width:28px;height:28px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;flex:none}h1,h2,h3,p{margin:0}h1,h2,h3{font-weight:500}button,select{transition:background .15s,border-color .15s,color .15s}[hidden]{display:none!important}.svg-defs{position:absolute;height:0;width:0;overflow:hidden}.visually-hidden{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);pointer-events:none}
.overline{font-size:11px;letter-spacing:2px;color:#a4b395;font-weight:500;margin-bottom:13px}
.settings-time{margin-bottom:20px;width:100%}
.settings-time button{font-size:18px}
/* Parked interaction sheets. */
dialog{border:1px solid #5d6b4c;border-radius:18px;background:#202b22;color:var(--ink);padding:0;max-width:calc(100% - 64px);max-height:calc(100dvh - 48px);box-shadow:0 25px 120px #07120b99;scrollbar-color:#697e53 transparent;scrollbar-width:thin}dialog::backdrop{background:#080f0aaa;backdrop-filter:blur(6px)}dialog[open]{display:flex;flex-direction:column}.settings-dialog{width:760px;max-height:calc(100dvh - 48px)}.dialog-header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 16px 8px;flex:none}.dialog-header h2{font-size:24px;letter-spacing:-1px;line-height:1.25}.dialog-header .overline{margin-bottom:3px;font-size:10px}.dialog-close{min-width:76px;min-height:76px;display:grid;place-items:center;border:1px solid #4a5b3e;background:#2d3c28;border-radius:12px;flex:none}.dialog-close svg{width:30px;height:30px}.dialog-close:hover{background:#3c4e32}.settings-tabs{display:flex;margin:0 16px;border-bottom:1px solid #526044;flex:none;gap:6px}.settings-tabs button{flex:1;min-height:76px;position:relative;font-size:21px;color:#9caf89}.settings-tabs button.selected{color:#f1e0c8}.settings-tabs button.selected:after{content:'';position:absolute;bottom:0;left:12px;right:12px;height:3px;background:var(--accent);border-radius:3px}.settings-content{padding:12px 16px;min-height:0;overflow:auto;flex:1}.setting-row{display:flex;align-items:center;justify-content:space-between;gap:20px;min-height:76px;font-size:18px}.setting-row select{min-height:76px;min-width:240px;border:1px solid #596b48;border-radius:10px;padding:0 20px;background:#2b3b27;color:#e1e9d4;font-size:19px;cursor:pointer}.settings-page h3{font-size:18px;margin:14px 0 8px;font-weight:500}.settings-page h3>span{font-size:13px;font-weight:400;color:#a1b48a;margin-left:8px}.mood-options{display:grid;grid-template-columns:1fr 1fr;gap:6px}.mood-options button,.weather-types button,.vehicle-options button{min-height:76px;border:1px solid #526544;border-radius:10px;background:#2b3a28;color:#b8cba4;font-size:19px}.mood-options button.selected,.weather-types button.selected,.vehicle-options button.selected{border-color:#c3a077;background:#41472e;color:#f0d8b9}.walk-setting{min-height:86px;display:flex;align-items:center;gap:20px;cursor:pointer;border-bottom:1px solid #45583a;margin-top:10px;font-size:18px}.walk-setting input{position:absolute;opacity:0}.switch{width:54px;height:30px;border-radius:20px;background:#4b5a3d;border:1px solid #6b7c55;margin-left:auto;position:relative}.switch:after{content:'';width:22px;height:22px;position:absolute;top:3px;left:4px;border-radius:50%;background:#8ea174}.walk-setting input:checked~.switch{background:#b3956e;border-color:#d1ad7e}.walk-setting input:checked~.switch:after{left:26px;background:#f6e1c0}.walk-setting input:focus-visible~.switch{outline:3px solid var(--accent);outline-offset:5px}.location-setting{display:flex;gap:14px;align-items:center;justify-content:space-between;margin-top:18px}.location-setting>span{font-size:13px;color:#a1b68c;line-height:1.8;max-width:45%}.location-setting button{min-height:76px;padding:0 18px;display:flex;align-items:center;gap:13px;border:1px solid #536746;border-radius:10px;font-size:16px}.settings-note{font-size:13px;line-height:1.9;color:#9bb285;margin:18px 0 0}.vehicle-options{display:flex;gap:15px}.vehicle-options button{flex:1;min-height:110px;display:flex;align-items:center;justify-content:center;gap:8px}.vehicle-note{display:flex;gap:17px;align-items:center;color:#a8bd93;border-top:1px solid #43573a;padding:28px 0;margin-top:28px}.vehicle-note p{font-size:17px;line-height:1.8}.stepper{display:grid;grid-template-columns:90px 1fr 90px;min-height:80px;gap:6px;margin-bottom:12px}.stepper button{border:1px solid #5c714b;background:#30432b;border-radius:11px;font-size:30px;font-weight:400}.stepper output{display:grid;place-items:center;border-radius:11px;background:#293926;font-size:30px;font-family:Arial,sans-serif;color:#ebeedb}.weather-source{border:1px solid #4b603e;border-radius:11px;padding:8px 10px;display:flex;align-items:center;justify-content:space-between;gap:8px}.weather-source>span{font-size:13px;color:#b0c59b;line-height:1.8;max-width:50%}.weather-source button{display:flex;align-items:center;gap:12px;font-size:16px;min-height:76px;color:#e4d4b6}.weather-types{display:flex;gap:12px}.weather-types button{flex:1;display:flex;align-items:center;justify-content:center;gap:5px}.dialog-footer{flex:none;display:flex;justify-content:space-between;align-items:center;gap:10px;border-top:1px solid #4a603d;padding:8px 16px;background:#243321}.dialog-footer>span{font-size:13px;color:#9fb888;line-height:1.7}.dialog-footer .button-primary{min-width:180px;font-size:16px}.dialog-footer .button-primary svg{margin-left:auto}.location-dialog{width:800px}.location-body{padding:12px 28px 28px;overflow:auto}.location-body>label{font-size:15px;color:#b8cca3}.location-body input{display:block;width:100%;min-height:76px;padding:0 22px;font-size:21px;border:1px solid #627950;border-radius:11px;background:#2c3e26;color:#edf1df;margin-top:12px}.city-choices{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin-top:22px}.city-choices button{min-height:76px;border:1px solid #5a7148;border-radius:10px;background:#2d4027;color:#dfebcf;font-size:19px}.city-choices button:hover{background:#435b35}.city-choices p{font-size:18px;line-height:1.8;grid-column:1/-1}.about-dialog{width:780px}.about-body{padding:5px 28px 30px;overflow:auto}.about-body>p{font-size:20px;line-height:1.9;color:#d5e1c6}.about-body dl{display:grid;gap:23px;margin:25px 0}.about-body dl>div{border-top:1px solid #4f653e;padding-top:18px}.about-body dt{font-size:18px;margin-bottom:9px}.about-body dd{margin:0;font-size:15px;color:#adbf9a;line-height:1.95}.about-body>a{min-height:76px;display:flex;align-items:center;font-size:16px;color:var(--accent)}.detail-dialog{width:1000px}#detailContent{display:flex;flex-direction:column;min-height:0;overflow:hidden} .detail-top{padding:10px 16px;display:flex;align-items:center;justify-content:space-between;gap:10px;border-bottom:1px solid #4a603b;flex:none}.detail-top .overline{margin-bottom:3px}.detail-top h2{font-size:26px;line-height:1.25;letter-spacing:-1.2px}.detail-top p:last-child{font-size:15px;color:#b4c79f;margin-top:6px}.detail-scroll{display:grid;grid-template-columns:1fr 1fr;gap:16px;padding:12px 16px;overflow:auto;min-height:0}.detail-metrics{display:flex;gap:12px;border-bottom:1px solid #546a43;padding-bottom:10px}.detail-metrics>div{flex:1}.detail-metrics span{display:block;font-size:13px;color:#acbf95;margin-bottom:7px}.detail-metrics strong{font-size:25px;font-weight:500;line-height:1.5;color:#ecedda;white-space:nowrap}.detail-section-title{font-size:18px;margin:14px 0 8px;color:#e2e9cf}.detail-reasons{font-size:15px;line-height:1.9;color:#becea9;list-style:none;padding:0;margin:0}.detail-reasons li{position:relative;padding:0 0 7px 12px}.detail-reasons li:before{content:'';height:4px;width:4px;border-radius:50%;background:#c3a578;position:absolute;left:0;top:12px}.timeline{list-style:none;margin:0;padding:0}.timeline li{padding:0 0 10px 14px;margin-left:4px;position:relative;border-left:1px solid #6f8656}.timeline li:before{content:'';position:absolute;left:-5px;top:5px;width:9px;height:9px;border-radius:50%;background:#cfb082;border:2px solid #30402a}.timeline li:last-child{border-left-color:transparent;padding-bottom:0}.timeline small{font-size:12px;color:#9fb58a;letter-spacing:.4px}.timeline b{display:block;font-size:18px;font-weight:500;line-height:1.65;margin-top:4px}.timeline p{font-size:13px;line-height:1.8;color:#a2ba8e;margin-top:4px}.ev-box{margin-top:20px;padding:17px 19px;border:1px solid #6b774b;background:#35422c;border-radius:10px;font-size:14px;line-height:1.9;color:#c5d1ac}.ev-box strong{display:block;font-size:16px;color:#f1d3a6;margin-bottom:4px}.detail-notice{padding:17px 19px;background:#2c3c26;border-radius:9px;color:#a9bf93;font-size:12px;line-height:1.9;margin-top:20px}.detail-footer{padding:8px 16px;border-top:1px solid #526740;background:#293b24;display:flex;gap:8px;justify-content:space-between;flex:none}.detail-footer button,.detail-footer a{min-height:76px;min-width:108px;border:1px solid #697e51;border-radius:10px;padding:0 12px;display:flex;align-items:center;justify-content:center;gap:6px;font-size:16px;color:#e4eccf}.detail-footer .button-primary{background:var(--accent);color:var(--accent-ink);border-color:var(--accent)}.detail-footer .detail-save.saved{color:var(--accent)}.detail-save.saved svg{fill:var(--accent)}.detail-footer>a{min-width:170px;font-size:16px}.detail-footer>a:hover,.detail-footer>button:hover{background:#455a34}.detail-footer>.button-primary:hover{background:#f7bd8e}
/* A restrained glance view; the state here is a preview, not a vehicle sensor. */
.drive-summary{padding:16px;grid-column:1;grid-row:1;background:#1e2d20;z-index:5;overflow:auto}.drive-mode-tag{display:inline-block;font-size:13px;border:1px solid #617a4d;padding:8px 12px;border-radius:6px;color:#c5d5af}.drive-route-icon{margin-top:10px;color:var(--accent)}.drive-route-icon svg{width:32px;height:32px}.drive-summary>p:not(.drive-note){font-size:17px;color:#adc396;margin-top:8px}.drive-summary h2{font-size:26px;line-height:1.25;letter-spacing:-1.3px;margin-top:4px}.drive-metrics{display:flex;gap:12px;margin-top:14px;border-top:1px solid #5b7448;padding-top:10px}.drive-metrics span{display:block;font-size:14px;color:#adc297;margin-bottom:4px}.drive-metrics b{display:block;font-size:22px;line-height:1.5;font-weight:500;white-space:nowrap}.next-stop{border-top:1px solid #587245;padding-top:10px;margin-top:12px}.next-stop>span{font-size:14px;color:#adc297}.next-stop b{display:block;font-size:22px;margin-top:8px;line-height:1.5;font-weight:500}.drive-note{font-size:13px;line-height:1.9;color:#94ac7d;margin-top:12px}.drive-preview .route-panel,.drive-preview .trip-context,.drive-preview .main-action,.drive-preview .map-tools{display:none!important}.drive-preview #terrainCanvas{pointer-events:none}.drive-preview .system-bar .view-mode{color:var(--accent)}.drive-preview .system-bar .park-indicator{border-color:#d4a56e}.drive-preview .action-bar{justify-content:flex-end}.drive-preview .rail-button{opacity:.35;pointer-events:none}.drive-preview .rail-bottom{display:none}.drive-preview .brand{pointer-events:none}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{transition:none!important;animation:none!important;scroll-behavior:auto!important}}
.vehicle-access{margin:24px 0;padding:18px;border:1px solid #51653f;border-radius:12px}.vehicle-access h3{margin:0 0 10px}.vehicle-access p{line-height:1.6}.vehicle-access .access-url{overflow-wrap:anywhere;color:#f0bc92}.access-actions{display:flex;flex-wrap:wrap;gap:10px}.access-actions button{min-height:64px}.vehicle-access summary{cursor:pointer;min-height:48px;padding-top:14px}.vehicle-access [role=status]{font-size:13px}
.tesla-navigation{grid-column:1/-1;margin-top:8px}.tesla-navigation select{max-width:100%;min-height:48px}.tesla-navigation li{margin:8px 0}
dialog,.settings-dialog{
  max-height:calc(100vh - 24px);
  max-height:calc(100dvh - 24px);
  max-width:calc(100% - 24px);
}
.location-summary { font-size:13px; line-height:1.65; color:var(--ink); margin:8px 0; overflow-wrap:anywhere; }
.origin-environment { display:flex; align-items:center; gap:8px; font-size:13px; margin:8px 0; }
.origin-environment select { min-width:0; flex:1; min-height:44px; border:1px solid #596b48; border-radius:8px; background:#2b3b27; color:var(--ink); padding:6px; }
.location-source-note { font-size:12px; line-height:1.5; color:#b8cca3; margin:6px 0; }
.dialog-close,.settings-tabs button,.setting-row,.setting-row select,
.mood-options button,.weather-types button,.location-setting button,.weather-source button,
.location-body input,.city-choices button,.about-body>a,.detail-footer button,.detail-footer a {
  min-height:var(--tap);
}
.dialog-close { min-width:var(--tap); }
.vehicle-options button,.walk-setting,.stepper { min-height:var(--tap); }
.detail-scroll>div,.vehicle-note>div { min-width:0; }
.weather-types svg,.vehicle-options svg,.about-body>a svg,.ev-box strong svg { width:18px; height:18px; }
.about-body>a { gap:5px; }
.ev-box strong svg { vertical-align:middle; margin-right:4px; }
.detail-metrics strong { white-space:normal; }
.detail-footer { flex-wrap:wrap; }
.vehicle-note p,.vehicle-access p,.detail-notice { overflow-wrap:anywhere; }


@media (max-width:680px) {
  .dialog-header,.settings-content,.dialog-footer,.location-body,.about-body,
  .detail-top,.detail-scroll,.detail-footer { padding-inline:14px; }
  .dialog-header,.detail-top { gap:8px; }
  .dialog-header h2,.detail-top h2 { font-size:23px; }
  .settings-tabs { margin-inline:14px; gap:4px; }
  .settings-tabs button { font-size:18px; }
  .setting-row { gap:8px; }
  .setting-row select { min-width:0; max-width:60%; padding-inline:8px; font-size:16px; }
  .location-setting,.weather-source { display:grid; gap:8px; }
  .location-setting>span,.weather-source>span { max-width:none; }
  .weather-types,.vehicle-options { gap:6px; }
  .weather-types button,.vehicle-options button { font-size:16px; }
  .stepper { grid-template-columns:var(--tap) minmax(0,1fr) var(--tap); }
  .city-choices { grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
  .city-choices button { font-size:16px; }
  .dialog-footer>span { display:none; }
  .dialog-footer .button-primary { width:100%; min-width:0; }
  .detail-scroll { display:block; }
  .detail-metrics strong { font-size:20px; }
  .detail-footer { gap:6px; }
  .detail-footer button,.detail-footer a { min-width:0; padding-inline:10px; font-size:15px; }
}
