/* 철도종합시험선로 디지털트윈 플랫폼 · 스타일 */
:root{
  --bg:#0b0f0e; --panel:#111816; --panel2:#16201c; --line:#1e2824; --line2:#2c3833;
  --ink:#ecf1ed; --ink2:rgba(236,241,237,.76); --muted:#8e9b94; --accent:#7fd1c1; --accent-ink:#06231d; --accent-ring:rgba(127,209,193,.18); --warn:#f2b45a;
  --glass:rgba(13,18,16,.62); --glass-line:rgba(255,255,255,.13);
  --font:'Pretendard Variable',Pretendard,-apple-system,'Apple SD Gothic Neo','Malgun Gothic',sans-serif;
}
*{box-sizing:border-box}
html,body{height:100%;margin:0}
body{background:var(--bg);color:var(--ink);font-family:var(--font);letter-spacing:-.03em;font-size:14px;line-height:1.5;-webkit-font-smoothing:antialiased;word-break:keep-all;overflow-wrap:break-word;overflow:hidden}
button{font:inherit;letter-spacing:inherit;color:inherit;cursor:pointer}
button:focus-visible,a:focus-visible,input:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
a{color:var(--accent)}
.hidden,[hidden]{display:none!important}
.tn{font-variant-numeric:tabular-nums}

/* ---------- 3D(iframe) ---------- */
#tour{position:fixed;left:0;top:0;width:100vw;height:100vh;border:0;background:#111715;z-index:1;transition:opacity .3s}
body[data-view=splat] #tour{visibility:hidden}
#tour-cover{position:fixed;inset:0;z-index:50;display:grid;place-items:center;background:var(--bg);color:var(--ink2);text-align:center;padding:24px}
#tour-cover.off{display:none}
#tour-cover .box{max-width:520px;padding:28px 28px 24px;border-radius:16px;background:var(--panel);box-shadow:inset 0 0 0 1px var(--line2)}
#tour-cover h2{margin:0 0 6px;font-size:18px;font-weight:600;color:var(--ink)}
#tour-cover p{margin:0 0 14px;font-size:13px;line-height:1.65}
#tour-cover input{width:100%;height:40px;padding:0 12px;border:1px solid var(--line2);border-radius:10px;background:var(--panel2);color:var(--ink);font:inherit;font-size:13.5px}
#tour-cover .row{display:flex;gap:8px;margin-top:10px}
#tour-cover .conn{margin-top:10px;font-size:12px;color:var(--muted)}

/* ---------- 공통 조각 ---------- */
.pill{display:inline-flex;align-items:center;gap:7px;height:36px;padding:0 16px;border:0;border-radius:999px;background:var(--glass);-webkit-backdrop-filter:blur(14px) saturate(140%);backdrop-filter:blur(14px) saturate(140%);box-shadow:inset 0 0 0 1px var(--glass-line),0 10px 30px rgba(0,0,0,.35);color:var(--ink);font-size:13.5px;text-shadow:none;white-space:nowrap}
.pill svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
.pill.on,.seg .on{background:var(--accent);color:var(--accent-ink);font-weight:600;box-shadow:0 6px 18px rgba(0,0,0,.32)}
.seg{display:inline-flex;align-items:center;gap:2px;padding:3px;border-radius:999px;background:var(--glass);-webkit-backdrop-filter:blur(14px) saturate(140%);backdrop-filter:blur(14px) saturate(140%);box-shadow:inset 0 0 0 1px var(--glass-line),0 10px 30px rgba(0,0,0,.35);text-shadow:none}
.seg button{display:inline-flex;align-items:center;gap:7px;height:36px;padding:0 14px;border:0;border-radius:999px;background:transparent;color:var(--ink);font-size:13.5px;white-space:nowrap}
.seg button.on{padding:0 16px}
.seg svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
.flash{position:fixed;left:50%;top:72px;z-index:40;transform:translateX(-50%);padding:9px 16px;border-radius:999px;background:var(--glass);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);box-shadow:inset 0 0 0 1px var(--glass-line);font-size:13px;opacity:0;pointer-events:none;transition:opacity .25s}
.flash.on{opacity:1}

/* ---------- 둘러보기 (PC) ---------- */
#tourview{position:fixed;inset:0;z-index:5;pointer-events:none}
#tourview .shade{position:absolute;pointer-events:none}
#tourview .shade.top{left:0;right:0;top:0;height:160px;background:linear-gradient(to bottom,rgba(4,7,6,.62),rgba(4,7,6,0))}
#tourview .shade.left{left:0;top:0;width:min(440px,36%);height:72%;background:linear-gradient(to right,rgba(4,7,6,.66),rgba(4,7,6,0));-webkit-mask-image:linear-gradient(to bottom,#000 55%,transparent);mask-image:linear-gradient(to bottom,#000 55%,transparent)}
#tourview .shade.right{top:0;right:0;bottom:0;width:min(580px,48%);background:linear-gradient(to left,rgba(4,7,6,.84),rgba(4,7,6,.66) 42%,rgba(4,7,6,0))}
#tourview .shade.bottom{left:0;right:0;bottom:0;height:min(480px,54%);background:linear-gradient(to top,rgba(4,7,6,.88),rgba(4,7,6,.5) 55%,rgba(4,7,6,0))}
#tourview .shade.bl{left:0;bottom:0;width:min(780px,62%);height:64%;background:linear-gradient(to right,rgba(4,7,6,.74),rgba(4,7,6,.38) 55%,rgba(4,7,6,0));-webkit-mask-image:linear-gradient(to top,#000 62%,transparent);mask-image:linear-gradient(to top,#000 62%,transparent)}
body[data-shade=off] #tourview .shade{display:none}

.hdr{position:absolute;z-index:8;top:0;left:0;right:0;padding:22px 32px 0;display:flex;align-items:flex-start;gap:14px;text-shadow:0 1px 14px rgba(0,0,0,.55);pointer-events:none}
.hdr>*{pointer-events:auto}
.hdr .brand{display:flex;flex-direction:column;gap:3px;min-width:0}
.hdr .brand .k{font-size:12px;font-weight:600;color:var(--accent)}
.hdr .brand .t{display:flex;flex-wrap:wrap;align-items:baseline;gap:2px 10px}
.hdr .brand b{font-size:16px;font-weight:600}
.hdr .brand span{font-size:13.5px;font-weight:300;color:var(--ink2)}
.hdr .sp{flex:1 1 auto;pointer-events:none}

#tourview .grid{position:absolute;inset:0;z-index:7;display:grid;grid-template-columns:minmax(0,1fr) minmax(250px,300px);grid-template-rows:minmax(0,1fr) auto auto auto;grid-template-areas:'chap fig' 'cap fig' 'ctl ctl' 'strip strip';column-gap:28px;padding:104px 32px 0;pointer-events:none}
#tourview .grid>*{pointer-events:auto}
.chap{grid-area:chap;align-self:start;justify-self:start;position:relative;text-shadow:0 1px 14px rgba(0,0,0,.55)}
.chap .rail{position:absolute;left:13.5px;top:16px;width:1px;background:rgba(255,255,255,.24)}
.chap ol{position:relative;list-style:none;margin:0;padding:0}
.chap button{display:flex;align-items:center;gap:13px;height:42px;padding:0 10px 0 0;border:0;background:none;color:var(--ink2);font-size:14px;font-weight:300;text-align:left}
.chap button .n{flex:none;width:28px;height:28px;border-radius:50%;display:grid;place-items:center;font-size:11px;font-weight:500;background:rgba(10,14,13,.72);box-shadow:inset 0 0 0 1px rgba(255,255,255,.34);text-shadow:none}
.chap button.on{color:#fff;font-weight:600}
.chap button.on .n{background:var(--accent);color:var(--accent-ink);font-weight:700;box-shadow:0 0 0 5px var(--accent-ring),0 6px 16px rgba(0,0,0,.4)}
.chap button.on::after{content:'';width:36px;height:1px;background:var(--accent)}
.chap button.nolink .n{opacity:.55}

.cap{grid-area:cap;align-self:end;justify-self:start;max-width:640px;padding:0 0 22px;text-shadow:0 1px 14px rgba(0,0,0,.55)}
.cap .sub{margin:0;font-size:14.5px;font-weight:300;color:var(--ink2)}
.cap .rule{display:block;width:56px;height:1px;margin:16px 0 15px;background:var(--accent)}
.cap h1{margin:0;font-size:clamp(34px,2.6vw + 14px,60px);line-height:1.08;font-weight:200;letter-spacing:-.03em;text-wrap:balance}
.cap h1 b{font-weight:500}
.cap .body{margin:16px 0 0;max-width:36em;font-size:15.5px;line-height:1.7;font-weight:400;color:var(--ink2)}

.fig{grid-area:fig;align-self:stretch;min-height:0;overflow:auto;display:flex;flex-direction:column;gap:22px;padding:2px 2px 24px 4px;text-shadow:0 1px 8px rgba(0,0,0,.65);scrollbar-width:thin}
.fig h3{margin:0;font-size:13px;font-weight:600}
.fig .sub{margin:0;font-size:12px;line-height:1.55;font-weight:300;color:var(--muted)}
.fig .blk{display:flex;flex-direction:column;gap:8px}
.bars{list-style:none;margin:4px 0 0;padding:0;display:flex;flex-direction:column;gap:8px}
.bars li{display:grid;grid-template-columns:80px minmax(0,1fr) 56px;align-items:center;gap:10px;font-size:12.5px;font-weight:300;color:var(--ink2)}
.bars li.on{font-weight:500;color:var(--ink)}
.bars .tr{display:block;height:6px;border-radius:3px;background:rgba(255,255,255,.1)}
.bars .tr i{display:block;height:100%;border-radius:3px;background:rgba(255,255,255,.42)}
.bars li.on .tr i{background:var(--accent)}
.bars .v{text-align:right;font-weight:600;color:var(--ink)}
.bars.tun li{grid-template-columns:58px minmax(0,1fr) 54px}
.dots{list-style:none;margin:2px 0 0;padding:0;display:flex;flex-direction:column;gap:7px}
.dots li{display:flex;align-items:center;gap:10px;font-size:12.5px;font-weight:300;color:var(--ink2)}
.dots li::before{content:'';flex:none;width:8px;height:8px;border-radius:2px;background:rgba(127,209,193,.7)}
.nlist{list-style:none;margin:2px 0 0;padding:0;display:flex;flex-direction:column}
.nlist li{display:flex;align-items:flex-start;gap:11px;padding:9px 0;border-top:1px solid rgba(255,255,255,.12)}
.nlist li:last-child{border-bottom:1px solid rgba(255,255,255,.12)}
.nlist .n{flex:none;display:inline-grid;place-items:center;width:19px;height:19px;border-radius:50%;background:var(--accent);color:var(--accent-ink);font-size:10.5px;font-weight:700;text-shadow:none}
.nlist .t{display:flex;flex-direction:column;gap:2px}
.nlist .t b{font-size:13.5px;font-weight:500}
.nlist .t span{font-size:12px;font-weight:300;color:var(--muted)}
.fig .note{margin:0;font-size:11.5px;line-height:1.6;font-weight:300;color:var(--muted)}
.fig .thumb{display:block;width:100%;border-radius:10px;overflow:hidden;background:#000;aspect-ratio:16/10}
.fig .thumb img{display:block;width:100%;height:100%;object-fit:cover}

.ctl{grid-area:ctl;display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:10px;padding:0 0 14px}
.strip{grid-area:strip;position:relative;display:flex;align-items:stretch;margin:0 -32px;padding:14px 32px 18px;overflow-x:auto;border-top:1px solid rgba(255,255,255,.12);background:linear-gradient(to top,rgba(4,7,6,.72),rgba(4,7,6,.5));scrollbar-width:none}
.strip button{position:relative;flex:none;display:flex;flex-direction:column;gap:5px;min-width:118px;padding:2px 24px;border:0;border-left:1px solid rgba(255,255,255,.14);background:none;color:var(--ink);text-align:left}
.strip button:first-child{padding-left:0;border-left:0}
.strip button .l{font-size:12px;font-weight:300;color:var(--ink2);white-space:nowrap}
.strip button .v{font-size:24px;line-height:1.1;font-weight:500;white-space:nowrap}
.strip button .v small{margin-left:3px;font-size:13px;font-weight:300;color:var(--ink2)}
.strip button .bar{display:block;width:118px;height:8px;position:relative}
.strip button .bar::before{content:'';position:absolute;left:0;top:3.2px;width:100%;height:1.6px;border-radius:.8px;background:rgba(255,255,255,.2)}
.strip button .bar i{position:absolute;left:0;top:2px;height:4px;border-radius:2px;background:var(--accent)}
.strip button.on .l{font-weight:500;color:var(--ink)}
.strip button.on::before{content:'';position:absolute;left:24px;right:24px;top:-15px;height:3px;border-radius:0 0 3px 3px;background:var(--accent)}
.strip button.on:first-child::before{left:0}

/* ---------- 관리 (PC) ---------- */
#manageview{position:fixed;inset:0;z-index:5;display:grid;grid-template-columns:72px minmax(0,1fr) 300px;grid-template-rows:56px minmax(0,1fr);pointer-events:none}
#manageview .mbar,#manageview .rail,#manageview aside,#manageview #m-slider,#manageview .cell{pointer-events:auto;background:var(--bg)}
#manageview .mbar{grid-column:1/4;display:flex;align-items:center;gap:16px;padding:0 18px 0 22px;border-bottom:1px solid var(--line)}
#manageview .mbar b{font-size:15px;font-weight:600}
#manageview .mbar .sub{font-size:13px;font-weight:300;color:var(--muted)}
#manageview .tabs{display:flex;gap:4px;margin-left:16px}
#manageview .tabs button{height:36px;padding:0 12px;border:0;background:none;color:var(--ink2);font-size:14px;border-bottom:2px solid transparent;border-radius:0}
#manageview .tabs button.on{color:var(--ink);font-weight:600;border-bottom-color:var(--accent)}
#manageview .mbar .meta{margin-left:auto;font-size:12.5px;font-weight:300;color:var(--muted)}
#manageview .rail{display:flex;flex-direction:column;gap:6px;padding:12px 8px;border-right:1px solid var(--line)}
#manageview .rail button{display:flex;flex-direction:column;align-items:center;gap:5px;height:62px;padding:8px 0;border:0;border-radius:12px;background:none;color:var(--ink2);font-size:11.5px}
#manageview .rail button svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
#manageview .rail button.on{background:var(--panel2);color:var(--ink)}
#manageview main{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-template-rows:minmax(0,1fr) minmax(0,1fr) auto;min-width:0;min-height:0}
#manageview .cell{position:relative;display:flex;flex-direction:column;min-width:0;min-height:0;overflow:hidden;border-right:1px solid var(--line);border-bottom:1px solid var(--line)}
#manageview .cell .ch{display:flex;flex-wrap:wrap;align-items:baseline;gap:2px 12px;padding:11px 16px 4px}
#manageview .cell .ch h2{margin:0;font-size:13.5px;font-weight:600}
#manageview .cell .ch span{margin-left:auto;font-size:12px;font-weight:300;color:var(--muted)}
#manageview .cell .cb{flex:1 1 auto;min-height:0;padding:4px 16px 12px;overflow:auto;scrollbar-width:thin}
#m-tour{background:transparent!important;pointer-events:none!important}
#m-tour .ov,#m-tour .lbl{pointer-events:auto}
#m-tour .slot{position:absolute;inset:0}
#m-tour .ov{position:absolute;left:12px;top:12px;z-index:3;display:flex;gap:4px}
#m-tour .ov button{height:32px;padding:0 12px;border:0;border-radius:999px;background:var(--glass);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);box-shadow:inset 0 0 0 1px var(--glass-line);color:var(--ink);font-size:12.5px}
#m-tour .ov button.on{background:var(--accent);color:var(--accent-ink);font-weight:600}
#m-tour .lbl{position:absolute;left:12px;bottom:12px;z-index:3;padding:6px 12px;border-radius:999px;background:var(--glass);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);box-shadow:inset 0 0 0 1px var(--glass-line);font-size:12.5px}
#m-route svg{display:block;width:100%;height:auto;max-height:100%}
#m-route .leg{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:6px 16px}
#m-route .leg li{display:flex;align-items:center;gap:8px;font-size:12px;font-weight:300;color:var(--ink2)}
#m-route .leg i{display:block;width:18px;height:4px;border-radius:2px;background:var(--ink)}
#m-route .leg i.b{background:var(--warn)}
#m-route .leg i.c{width:9px;height:9px;border-radius:50%;background:var(--accent)}
#m-thermal .cb{position:relative;padding:0;margin:4px 16px 12px;border-radius:10px;overflow:hidden;background:var(--bg)}
#m-thermal img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:50% 48%;cursor:zoom-in}
#m-thermal .lg{position:absolute;left:10px;right:10px;bottom:10px;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:7px 11px;border-radius:999px;background:var(--glass);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);box-shadow:inset 0 0 0 1px var(--glass-line);font-size:12px;font-weight:300;color:rgba(236,241,237,.86)}
#m-thermal .lg .sc{display:flex;align-items:center;gap:7px}
#m-thermal .lg .sc i{display:block;width:72px;height:6px;border-radius:3px;background:linear-gradient(to right,#3b0a0a,#c0271b,#f28a1a,#ffe36b)}
#m-thermal .btn{position:absolute;left:10px;top:10px;height:28px;padding:0 11px;border:0;border-radius:999px;background:var(--glass);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);box-shadow:inset 0 0 0 1px var(--glass-line);color:var(--ink);font-size:12px}
.kv{display:flex;flex-direction:column}
.kv div{display:flex;justify-content:space-between;gap:12px;padding:8px 0 9px;border-bottom:1px solid var(--line)}
.kv div span:first-child{font-size:12.5px;font-weight:300;color:var(--ink2)}
.kv div span:last-child{font-size:14px;font-weight:600;text-align:right}
.kv small{margin-left:3px;font-size:11.5px;font-weight:300;color:var(--muted)}
.chips{display:flex;flex-wrap:wrap;gap:6px;margin-top:14px}
.chips button{display:inline-flex;align-items:center;gap:6px;height:32px;padding:0 12px;border:0;border-radius:999px;background:var(--panel2);box-shadow:inset 0 0 0 1px var(--line2);color:var(--ink);font-size:12.5px}
.cnote{margin:12px 0 0;font-size:11.5px;line-height:1.6;font-weight:300;color:var(--muted)}
#m-slider{grid-column:1/3;display:flex;flex-wrap:wrap;align-items:center;gap:8px 16px;padding:9px 18px}
#m-slider label{font-size:12.5px;font-weight:500;color:var(--ink2)}
#m-slider input[type=range]{flex:1 1 240px;min-width:160px;height:30px;accent-color:var(--accent)}
#m-slider output{min-width:62px;font-size:16px;font-weight:600}
#m-slider .jump{display:flex;gap:4px}
#m-slider .jump button{height:28px;padding:0 10px;border:0;border-radius:999px;background:var(--panel2);color:var(--ink2);font-size:12px}
#m-slider .jump button.on{background:var(--accent);color:var(--accent-ink);font-weight:600}
#m-slider .hint{font-size:12px;font-weight:300;color:var(--muted)}
#manageview aside{display:flex;flex-direction:column;gap:20px;min-width:0;padding:18px 20px 28px;border-left:1px solid var(--line);overflow-y:auto;scrollbar-width:thin}
#manageview aside h2{margin:0;font-size:12px;font-weight:600;color:var(--muted)}
#manageview aside .cur{display:flex;gap:12px;align-items:flex-start;padding-bottom:16px;border-bottom:1px solid var(--line)}
#manageview aside .cur i{flex:none;width:9px;height:9px;margin-top:6px;border-radius:50%;background:var(--accent);box-shadow:0 0 0 4px var(--accent-ring)}
#manageview aside .cur strong{display:block;font-size:15px;font-weight:600}
#manageview aside .cur p{margin:5px 0 0;font-size:12.5px;line-height:1.6;font-weight:300;color:var(--ink2)}
.alist{list-style:none;margin:0;padding:0;display:flex;flex-direction:column}
.alist li{display:flex;justify-content:space-between;gap:10px;padding:7px 0;border-bottom:1px solid var(--line);font-size:12.5px}
.alist li span:first-child{font-weight:300;color:var(--ink2)}
.alist li span:last-child{font-weight:500}
#manageview details{border-top:1px solid var(--line);padding-top:12px}
#manageview summary{cursor:pointer;font-size:12.5px;font-weight:500;color:var(--ink2)}
#manageview details ul{margin:10px 0 0;padding-left:16px;font-size:12px;line-height:1.6;font-weight:300;color:var(--ink2)}
#manageview details p{margin:10px 0 0;font-size:12px;font-weight:300;color:var(--muted)}
#manageview details textarea{width:100%;height:80px;margin-top:8px;padding:8px;border:1px solid var(--line2);border-radius:8px;background:var(--panel2);color:var(--ink);font:inherit;font-size:12.5px}
#manageview details .csv{margin-top:10px;font-size:12px;color:var(--muted)}
#manageview details input[type=file]{font-size:12px;color:var(--ink2)}

/* ---------- 3DGS (PC) ---------- */
#splatview{position:fixed;inset:0;z-index:5;background:var(--bg)}
#splatview .bg{position:absolute;inset:0}
#splatview .bg img{display:block;width:100%;height:100%;object-fit:cover;object-position:100% 42%}
#splatview canvas{position:absolute;inset:0;width:100%;height:100%}
#splatview .shade{position:absolute;pointer-events:none}
#splatview .tags{position:absolute;z-index:8;left:32px;top:104px;display:flex;flex-direction:column;gap:8px;text-shadow:0 1px 10px rgba(0,0,0,.6)}
#splatview .tags span{display:inline-flex;align-items:center;gap:8px;height:30px;padding:0 12px;border-radius:999px;background:var(--glass);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);box-shadow:inset 0 0 0 1px var(--glass-line);font-size:12.5px;color:rgba(236,241,237,.86);text-shadow:none}
#splatview .tags i{width:8px;height:8px;border-radius:50%;background:var(--accent)}
#splatview .traj svg{display:block;width:100%;height:auto;overflow:visible}

/* ---------- 큰 보기(열화상) ---------- */
#lightbox{position:fixed;inset:0;z-index:60;display:none;place-items:center;background:rgba(4,7,6,.9);padding:40px}
#lightbox.on{display:grid}
#lightbox img{max-width:100%;max-height:100%;border-radius:12px}
#lightbox .x{position:absolute;right:20px;top:20px}
#lightbox .cap{position:absolute;left:28px;bottom:22px;max-width:60%}

/* ---------- 휴대폰 ---------- */
#mobileview{position:fixed;inset:0;z-index:5;display:none;flex-direction:column;color:#161816;pointer-events:none}
#mobileview header,#mobileview nav,#mobileview .pane.light,#mobileview .btns,#mobileview .sheet{pointer-events:auto;background:#f7f7f3}
#mobileview header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 10px 6px 20px}
#mobileview h1{margin:0;font-size:20px;line-height:1.25;font-weight:600}
#mobileview header span{display:block;font-size:12.5px;font-weight:300;color:#656b66}
#mobileview .menu{display:grid;place-items:center;width:44px;height:44px;border:0;border-radius:50%;background:none;color:#161816}
#mobileview .menu svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
#mobileview nav{display:flex;margin:0;padding:2px 16px 12px;position:relative}
#mobileview nav::after{content:'';position:absolute;left:16px;right:16px;bottom:12px;height:1px;background:#e1e2db}
#mobileview nav button{position:relative;flex:1 1 0;height:44px;border:0;background:none;color:#656b66;font-size:14px}
#mobileview nav button.on{color:#161816;font-weight:600}
#mobileview nav button.on::after{content:'';position:absolute;left:0;right:0;bottom:-12px;height:3px;border-radius:3px;background:#161816;z-index:1}
#mobileview .pane{position:relative;flex:1 1 auto;min-height:0;overflow:hidden;color:var(--ink)}
#mobileview .pane .modes,#mobileview .pane .modes button{pointer-events:auto}
#mobileview .pane.light{background:#f7f7f3;color:#161816;overflow:auto;padding:16px 20px}
#mobileview .pane .slot{position:absolute;inset:0}
#mobileview .pane .grad{position:absolute;left:0;right:0;bottom:0;height:58%;pointer-events:none;background:linear-gradient(to top,rgba(4,7,6,.88),rgba(4,7,6,.45) 55%,rgba(4,7,6,0))}
#mobileview .pane .modes{position:absolute;left:12px;right:12px;top:12px;display:flex;gap:6px}
#mobileview .pane .modes button{height:32px;padding:0 12px;border:0;border-radius:999px;background:var(--glass);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);box-shadow:inset 0 0 0 1px var(--glass-line);color:var(--ink);font-size:12.5px}
#mobileview .pane .modes button.on{background:var(--accent);color:var(--accent-ink);font-weight:600}
#mobileview .pane .mcap{position:absolute;left:20px;right:20px;bottom:20px;text-shadow:0 1px 12px rgba(0,0,0,.6);pointer-events:none}
#mobileview .mcap .s{margin:0;font-size:12.5px;font-weight:300;color:rgba(236,241,237,.8)}
#mobileview .mcap .r{display:block;width:40px;height:1px;margin:12px 0 11px;background:var(--accent)}
#mobileview .mcap .t{margin:0;font-size:28px;line-height:1.12;font-weight:200}
#mobileview .mcap .t b{font-weight:500}
#mobileview .mcap .b{margin:10px 0 0;font-size:13.5px;line-height:1.6;font-weight:400;color:rgba(236,241,237,.8)}
#mobileview .btns{display:flex;gap:10px;padding:12px 16px 16px;border-top:1px solid #e1e2db;background:#f7f7f3}
#mobileview .btns button{display:inline-flex;align-items:center;justify-content:center;gap:8px;height:50px;padding:0 18px;border:1px solid #c9ccc3;border-radius:14px;background:transparent;color:#161816;font-size:15px;font-weight:500}
#mobileview .btns button.pri{flex:1 1 auto;border-color:#161816;background:#161816;color:#f7f7f3}
#mobileview .btns svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
#mobileview .pane.light h2{margin:0 0 8px;font-size:13px;font-weight:600;color:#656b66}
#mobileview .pane.light .kv div{border-bottom-color:#e1e2db}
#mobileview .pane.light .kv div span:first-child{color:#656b66}
#mobileview .pane.light .bars li{color:#3d423e}
#mobileview .pane.light .bars li.on{color:#161816}
#mobileview .pane.light .bars .tr{background:#e1e2db}
#mobileview .pane.light .bars .tr i{background:#b4b2a9}
#mobileview .pane.light .bars li.on .tr i{background:#1f6f5f}
#mobileview .pane.light .bars .v{color:#161816}
#mobileview .pane.light svg text{fill:#656b66}
#mobileview .sheet{position:absolute;inset:0;z-index:9;display:none;flex-direction:column;background:#f7f7f3}
#mobileview .sheet.on{display:flex}
#mobileview .sheet ol{list-style:none;margin:0;padding:8px 20px 20px;overflow:auto}
#mobileview .sheet li button{display:flex;align-items:center;gap:14px;width:100%;height:52px;border:0;border-bottom:1px solid #e1e2db;background:none;color:#161816;font-size:15px;text-align:left}
#mobileview .sheet li button .n{flex:none;width:28px;height:28px;border-radius:50%;display:grid;place-items:center;font-size:11px;font-weight:600;background:#e1e2db;color:#161816}
#mobileview .sheet li button.on .n{background:#161816;color:#f7f7f3}

@media (max-width:760px){
  #tourview,#manageview,#splatview{display:none!important}
  #mobileview{display:flex}
}
@media (min-width:761px){
  #mobileview{display:none!important}
}
