:root { color-scheme:dark; font-family:-apple-system,BlinkMacSystemFont,"Hiragino Kaku Gothic ProN","Noto Sans JP",sans-serif; background:#101011; color:#f2f2ed; font-size:16px; }
*{box-sizing:border-box} body{margin:0;min-height:100vh;background:radial-gradient(ellipse at 50% 18%,#1a1b1b,#101011 62%)} button,select,input{font:inherit}button{cursor:pointer}button:focus-visible,summary:focus-visible,input:focus-visible{outline:2px solid #f6f4de;outline-offset:3px} .page{max-width:620px;margin:0 auto;padding:60px 22px 45px;padding-top:max(55px,env(safe-area-inset-top));padding-bottom:max(45px,env(safe-area-inset-bottom))}
.hero{text-align:center;margin:0 0 41px}.eyebrow{font-weight:800;letter-spacing:.29em;color:#979896;font-size:11px}.hero h1{font-size:clamp(30px,7.4vw,50px);font-weight:850;letter-spacing:.025em;line-height:1.32;margin:13px 0 15px}.hero p{color:#b2b2b0;font-size:15px;font-weight:650;line-height:1.7;margin:0}
.dial-card{border:1px solid #414242;border-radius:35px;background:linear-gradient(155deg,#202121,#141516 74%);padding:17px 14px 29px;box-shadow:0 12px 35px #0003}.dial-box{width:100%;margin:0 auto}#compass{width:100%;display:block;max-width:520px;margin:auto;overflow:visible;filter:drop-shadow(0 3px 8px #0003)}.ring{fill:none;stroke:#585a5b;stroke-width:1.35;opacity:.78}.ring.faint{stroke-width:4;opacity:.13}.north-letter{font-size:16px;fill:#bdbebd;font-weight:800;dominant-baseline:middle;text-anchor:middle}.tick{stroke:#aaa;opacity:.33;stroke-width:1.1}.crossline{stroke:#5d6062;opacity:.26;stroke-width:1}.needle{stroke-linecap:round;stroke-width:6.5;opacity:1}.needle-glow{stroke-linecap:round;stroke-width:9.5;opacity:.31;filter:url(#needle-glow)}.leader{stroke-width:1.2;opacity:.6}.target-label-bg{fill:#171819;fill-opacity:.93;stroke-width:1}.target-label-name{font-size:11.5px;font-weight:750;fill:#f8f8f5}.target-label-dist{font-size:10.5px;fill:#c8c9c9}.readout{display:flex;flex-direction:column;gap:10px;align-items:center;text-align:center}.readout strong{font-size:23px;font-weight:800}.readout span{font-size:14px;font-weight:650;color:#a7a8a9}
.big-status{display:flex;align-items:center;justify-content:center;min-height:72px;border-radius:24px;background:#b5b5b2;color:#151515;font-weight:800;font-size:17px;margin-top:24px;text-align:center;padding:10px}.sensor-cards{display:grid;grid-template-columns:1fr 1fr;gap:13px;margin-top:16px}.sensor-card{border-radius:19px;background:#1b1c1d;padding:17px 19px;min-width:0}.sensor-card small{display:block;color:#999b9c;font-size:12px;font-weight:700;margin-bottom:11px}.sensor-card strong{font-size:14px;font-weight:800;overflow-wrap:anywhere}.actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:20px 0}.actions button,.advanced button{border-radius:12px;background:#242627;border:1px solid #3f4143;color:#eee;min-height:47px;padding:9px 11px;font-size:12px;font-weight:800}.actions .primary{background:#e2e1dc;color:#171718;border-color:#e2e1dc}
.settings details,.advanced{background:#1b1c1d;border-radius:18px;overflow:hidden;border:1px solid #282a2b;margin-top:12px}.settings summary,.advanced summary{list-style:none;cursor:pointer;font-size:15px;font-weight:750;padding:20px 19px;position:relative}.settings summary::-webkit-details-marker,.advanced summary::-webkit-details-marker{display:none}.settings summary:before,.advanced summary:before{content:'▶';display:inline-block;font-size:12px;color:#b6b7b8;margin-right:11px;transition:transform .1s}.settings details[open] summary:before,.advanced[open] summary:before{transform:rotate(90deg)}.settings summary span{display:block;color:#929596;font-size:12px;margin:7px 0 0 26px;font-weight:500}.setting-list{border-top:1px solid #343638}.setting-row{display:flex;align-items:center;gap:10px;padding:13px 17px;border-bottom:1px solid #2d2f30}.setting-swatch{flex:none;height:14px;width:14px;border-radius:50%}.setting-name{flex:1;min-width:0;font-size:13px;font-weight:700}.setting-row select{border:1px solid #444;background:#27292a;color:white;border-radius:9px;min-width:77px;padding:8px 11px;font-size:14px;font-weight:650}.reset-button{margin:13px 17px 16px;padding:9px 13px;background:#333536;border:1px solid #555;border-radius:9px;color:#eee;font-size:12px;font-weight:650}.warning{color:#f9c995;font-size:12px;line-height:1.7;white-space:pre-wrap;margin:12px 4px}.warning:empty{display:none}
.places{margin-top:25px}.section-top{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:11px}.section-top h2{font-size:19px;margin:0}.section-top small{font-size:11px;color:#a4a5a5}.places-list{display:grid;gap:9px}.place{background:#1b1c1d;border:1px solid #333637;border-radius:15px;display:flex;gap:11px;padding:13px 12px;align-items:center}.place-color{width:6px;height:52px;border-radius:3px;flex:none}.place-body{flex:1;min-width:0}.place-title{font-size:14px;font-weight:750;overflow-wrap:anywhere}.place-meta{font-size:12px;color:#adaeae;line-height:1.65;margin-top:5px;overflow-wrap:anywhere}.place-hours{color:#d9d4a9;font-size:12px;margin-top:3px;overflow-wrap:anywhere}.place-map{font-size:11px;background:#292b2c;border:1px solid #424446;border-radius:8px;color:#dbdcdd;padding:8px;flex:none;text-decoration:none}.empty{font-size:13px;line-height:1.7;color:#b3b6b8;padding:17px;background:#1b1c1d;border-radius:13px}.group-title{font-size:13px;color:#b7b9ba;margin-top:14px;margin-bottom:4px;font-weight:800}.group-title:first-child{margin-top:0}.small-note{font-size:11px;color:#929493;display:block;margin-top:11px;line-height:1.6}
.advanced{margin-top:22px}.advanced-inner{padding:0 17px 18px;font-size:13px}.manual-row label{display:flex;justify-content:space-between}.manual-row input{width:100%;margin:15px 0;accent-color:#eee}.manual-pos{display:grid;grid-template-columns:1fr 1fr;gap:10px}.manual-pos input{width:100%;display:block;background:#27292b;color:#fff;border:1px solid #454748;border-radius:8px;padding:10px;margin:5px 0 12px}.advanced-inner p{font-size:11px;color:#aaa;line-height:1.6}footer{color:#929495;font-size:11px;line-height:1.8;margin-top:30px;border-top:1px solid #2f3030;padding-top:11px}footer a{color:#b9d6f8}
@media(max-width:420px){.page{padding:49px 14px 35px}.hero{margin-bottom:32px}.hero h1{font-size:32px}.hero p{font-size:13px}.dial-card{border-radius:29px;padding:7px 4px 23px}.readout strong{font-size:19px}.readout span{font-size:12px}.sensor-card{padding:16px 11px}.sensor-card strong{font-size:12px}.big-status{font-size:15px;border-radius:18px}.actions button{font-size:11px}}

/* V3 emergency-place information and disaster selector */
.place-hazards{color:#b9e8e8;font-size:12px;line-height:1.6;margin-top:5px;overflow-wrap:anywhere}
.place-entrance{color:#b8b9bb;font-size:11px;line-height:1.6;margin-top:3px}
.disaster-setting{border-top:1px solid #444;margin-top:14px;padding-top:13px;color:#d7dddd}
.disaster-setting label{font-size:13px;font-weight:700;display:block;margin-bottom:8px}
.disaster-setting select{max-width:100%;background:#26282a;border:1px solid #5a6063;border-radius:9px;color:#f5f5ef;padding:10px;font-size:13px}
.disaster-setting p{font-size:11px;color:#bbb;line-height:1.6}
.safety-note{border-left:3px solid #60dedb;padding:10px 12px;color:#d4e7e7;font-size:12px;line-height:1.7;background:#202627;border-radius:4px}
/* V5: explicit consent before geolocation or compass access. */
body.consent-pending{overflow:hidden}
.usage-consent{position:fixed;inset:0;z-index:1000;display:grid;place-items:center;padding:max(16px,env(safe-area-inset-top)) 14px max(16px,env(safe-area-inset-bottom));background:rgba(6,8,10,.95);overflow-y:auto}
.usage-consent[hidden]{display:none!important}
.consent-panel{width:min(100%,540px);max-height:calc(100dvh - 32px);overflow-y:auto;border:1px solid #565959;background:linear-gradient(155deg,#252728,#17191a);border-radius:23px;box-shadow:0 20px 55px #0009;padding:25px 23px;color:#f1f3f1}
.consent-eyebrow{font-size:11px;letter-spacing:.16em;color:#8fd9d7;font-weight:800}
.consent-panel h2{font-size:clamp(21px,5vw,27px);margin:9px 0 15px;line-height:1.4}
.consent-copy{font-size:13px;line-height:1.75;color:#d2d5d6}
.consent-copy p{margin:0 0 11px}
.consent-copy strong{color:#fafbfa}
.consent-accept{display:block;width:100%;margin-top:20px;padding:14px 12px;min-height:52px;border:none;border-radius:12px;background:#dbefea;color:#112320;font-weight:800;font-size:15px}
.consent-accept:focus-visible{outline:3px solid #f8fbbf;outline-offset:3px}
.consent-hint{margin:12px 0 0;font-size:11px;line-height:1.7;color:#adb2b4;text-align:center}
@media(max-width:420px){.consent-panel{padding:20px 17px;border-radius:17px}.consent-copy{font-size:12px}.consent-panel h2{font-size:21px}}

/* TERMS-LANDMARKS-V6-START */
.landmark-settings{background:#1b1c1d;border:1px solid #323536;border-radius:18px;margin:13px 0 5px;padding:17px 18px 15px}
.landmark-settings h2{font-size:16px;margin:0 0 5px}
.landmark-settings p{font-size:12px;line-height:1.7;color:#b7bab9;margin:0 0 12px}
.landmark-options{display:flex;flex-wrap:wrap;gap:11px}
.landmark-options label{display:flex;align-items:center;gap:8px;cursor:pointer;border:1px solid #55595a;background:#282a2b;border-radius:11px;padding:10px 12px;font-size:13px;font-weight:730}
.landmark-options input{width:17px;height:17px;accent-color:#cddbd5;margin:0}
.landmark-dot{width:10px;height:10px;border-radius:50%;background:var(--dot)}
.landmark-settings small{display:block;color:#9fa2a3;font-size:11px;line-height:1.6;margin-top:12px}
.terms-section{color:#c0c2c3;font-size:12px;line-height:1.8;padding:20px 0 12px;margin-top:24px;border-top:1px solid #444848}
.terms-section h2{font-size:20px;line-height:1.5;margin:0 0 6px;color:#f2f3f0}
.terms-date{color:#a4aaac;font-size:11px;margin:0 0 12px}
.terms-intro{margin:0 0 15px}
.terms-articles{margin:0;padding-left:20px}
.terms-articles>li{padding-left:2px;margin-bottom:15px}
.terms-articles h3{color:#e5e7e7;font-weight:750;font-size:13px;margin:0 0 4px}
.terms-articles p{margin:0}
.consent-terms{border:1px solid #5b6163;border-radius:11px;background:#1a1e20;overflow:hidden;margin:15px 0 0}
.consent-terms summary{cursor:pointer;padding:11px 14px;color:#d5ebe5;font-weight:750;font-size:13px}
.consent-terms summary:focus-visible{outline:2px solid #d8f0ec;outline-offset:-2px}
.consent-terms-body{max-height:33vh;overflow-y:auto;border-top:1px solid #45494b;padding:14px;font-size:11.5px;line-height:1.85;color:#cdd0d0}
.consent-terms-body .terms-articles h3{font-size:12px}
.consent-terms-body .terms-articles>li{margin-bottom:12px}
/* TERMS-LANDMARKS-V6-END */

/* COMPACT-CONSENT-V7: show controls as high as possible without changing the compass design. */
.page{max-width:600px;padding: max(8px,env(safe-area-inset-top)) 12px max(24px,env(safe-area-inset-bottom));}
.dial-card{border-radius:22px;padding:5px 7px 12px;}
.dial-box{width:100%;max-width:480px;margin:0 auto;}
.readout{gap:3px;}
.readout strong{font-size:18px;}
.readout span{font-size:12px;}
.big-status{min-height:42px;margin-top:8px;border-radius:13px;font-size:14px;padding:7px 10px;}
.sensor-cards{gap:8px;margin-top:8px;}
.sensor-card{padding:10px 12px;border-radius:13px;}
.sensor-card small{margin-bottom:4px;font-size:11px;}
.sensor-card strong{font-size:12px;}
.actions{margin:9px 0 7px;gap:8px;}
.actions button{min-height:44px;}
.settings details{margin-top:7px;}
.settings summary{padding:13px 14px;}
.landmark-settings{margin:8px 0 5px;padding:12px 14px;}
.places{margin-top:16px;}
.visually-hidden-v7{position:absolute!important;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0;}
.usage-consent[hidden]{display:none!important;pointer-events:none!important;}
@media(max-width:420px){
 .page{padding: max(5px,env(safe-area-inset-top)) 8px max(20px,env(safe-area-inset-bottom));}
 .dial-card{border-radius:16px;padding:2px 3px 9px;}
 .readout strong{font-size:16px;}
 .readout span{font-size:11px;}
 .big-status{min-height:40px;margin-top:7px;font-size:13px;}
 .sensor-card{padding:9px 9px;}
 .actions button{font-size:11px;}
}
/* COMPACT-CONSENT-V7-END */

/* LIFELINE-PHASE1-V16-20261013; additional layout is in phase1_v16.css. */

/* LIFELINENAVI_GPS_POWER_V17: scoped controls only */
.lifeline-gps-power{margin:12px 0;padding:12px 14px;border:1px solid rgba(171,190,202,.25);border-radius:12px;display:flex;flex-wrap:wrap;align-items:center;gap:9px;background:rgba(125,155,165,.06)}
.lifeline-gps-power label{margin-right:8px;flex:0 0 auto}
.lifeline-gps-power select{min-height:40px;max-width:100%;background:#20272c;color:#fafafa;border:1px solid #66727b;border-radius:8px;padding:8px}
.lifeline-gps-power small{display:block;flex-basis:100%;color:#c5ced4;line-height:1.5}

/* LIFELINENAVI_CATEGORY_VISIBILITY_V18: independent of other CSS and GPS. */
.setting-row input.category-visible{
 flex:none;appearance:auto;width:20px;height:20px;margin:0 2px 0 0;
 accent-color:#93e5ae;cursor:pointer;touch-action:manipulation;
}
.setting-row label.setting-name{cursor:pointer}
.setting-row.category-hidden .setting-name,.setting-row.category-hidden .setting-swatch{opacity:.43}
.setting-row.category-hidden select{opacity:.75}
.setting-row:focus-within{outline:2px solid rgba(158,215,255,.6);outline-offset:-2px}
@media(max-width:420px){.setting-row{gap:8px;padding:12px 11px}.setting-row select{min-width:72px;padding:7px 6px}}

/* LIFELINENAVI_MY_SPOTS_V19: premium preview UI, scoped styles. */
.myspots-panel{background:#1b1d1f;border:1px solid #454950;border-radius:18px;padding:14px 16px;margin:13px 0}
.myspots-panel h2{font-size:17px;margin:0 0 6px}
.myspots-panel .myspots-caption{font-size:12px;color:#ccd1d4;line-height:1.7;margin:4px 0 10px}
.myspots-premium{font-size:11px;color:#e5dc91;font-weight:700;margin-left:5px}
.myspots-slots{display:grid;gap:10px}
.myspots-slot{margin:0;min-width:0;border:1px solid #4a4f52;border-radius:12px;padding:11px 10px 12px}
.myspots-slot legend{color:#ecf3f5;font-size:13px;font-weight:750;padding:0 5px}
.myspots-grid{display:grid;grid-template-columns:1fr 1fr;gap:9px}
.myspots-field{min-width:0;font-size:12px;line-height:1.6;color:#d4d6da;font-weight:650}
.myspots-field:first-child{grid-column:1/-1}
.myspots-field input{width:100%;min-width:0;min-height:40px;display:block;margin-top:3px;border:1px solid #646a6c;border-radius:8px;background:#242729;color:#fff;padding:8px}
.myspots-field input[type=color]{padding:3px;width:100%;cursor:pointer}
.myspots-actions{display:flex;gap:9px;align-items:center;flex-wrap:wrap;margin-top:10px}
.myspots-show{display:inline-flex;align-items:center;gap:5px;font-size:12px;margin-right:auto}
.myspots-show input{width:18px;height:18px;accent-color:#8adbb6}
.myspots-actions button{border:1px solid #606669;color:#f3f3f3;background:#2b3032;border-radius:9px;padding:9px 15px;min-height:40px;font-size:12px;font-weight:750}
.myspots-actions button:disabled{opacity:.48;cursor:not-allowed}
.myspots-status{font-size:12px;color:#d6dfa6;min-height:1.6em;margin-top:10px;line-height:1.5}
.myspots-meta{display:flex;justify-content:space-between;gap:9px;align-items:center}
.myspots-counter{font-size:12px;color:#bddde9}
@media(max-width:440px){.myspots-panel{padding:12px 10px}.myspots-grid{gap:7px}.myspots-field input{padding:7px}}

/* LIFELINENAVI_PREFS_DISTANCE_V20 */
.pref-save-status{font-size:.84rem;color:#9ce8b0;margin:4px 6px 12px}
.pref-save-status.save-warning{color:#ffc079}
.category-setting-block{border-bottom:1px solid rgba(255,255,255,.11);padding-bottom:8px}
.category-setting-block:last-child{border-bottom:0}
.distance-slots{padding:5px 10px 12px 35px;background:rgba(255,255,255,.035);border-radius:8px;margin:2px 0 9px}
.distance-slots[hidden]{display:none!important}
.distance-help{font-size:.78rem;color:#c9cfd2;margin:3px 0 8px;line-height:1.6}
.distance-slot-row{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:5px 0;border-top:1px solid rgba(255,255,255,.06)}
.distance-slot-title{min-width:3em;font-size:.82rem;white-space:nowrap}
.distance-slot-field{display:flex;align-items:center;gap:5px;font-size:.76rem}
.distance-slot-field input{box-sizing:border-box;width:98px;max-width:22vw;padding:6px 7px;background:#202628;color:#fff;border:1px solid #676d6f;border-radius:6px;font-size:16px}
.distance-slot-row.distance-invalid input{border-color:#ff7979}
@media(max-width:420px){.distance-slots{padding-left:10px}.distance-slot-row{gap:6px}.distance-slot-field input{width:75px}}

/* LIFELINENAVI_DISTANCE_MULTIPLIER_V21 */
.distance-multiplier-panel{padding:8px 10px 10px 35px;margin:2px 0 9px;background:rgba(255,255,255,.035);border-radius:8px}
.distance-multiplier-panel[hidden]{display:none!important}
.distance-multiplier-label{display:flex;align-items:center;gap:8px;flex-wrap:wrap;font-size:.87rem}
.distance-multiplier-label input{box-sizing:border-box;width:72px;padding:6px 7px;background:#202628;color:#fff;border:1px solid #676d6f;border-radius:6px;font-size:16px}
@media(max-width:420px){.distance-multiplier-panel{padding-left:10px}}
