:root {
    --bg: #000;
    --ink: #f5f7fb;
    --ink-dim: #8a94a6;
    --teal: #5eead4;
    --cyan: #67e8f9;
    --gold: #facc15;
    --warm: #fde68a;
    --violet: #c084fc;
    --rose: #fb7185;
    --line: rgba(103, 232, 249, 0.22);
    --panel: rgba(0, 0, 0, 0.66);
  }
  * { box-sizing: border-box; }
  html, body { margin: 0; height: 100%; overflow: hidden; background: var(--bg); }
  body {
    color: var(--ink);
    font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Pretendard", "Noto Sans KR", sans-serif;
    -webkit-font-smoothing: antialiased;
  }
  #stage { position: fixed; inset: 0; background: #000; }
  #stage canvas { display: block; }
  .labels { position: absolute; inset: 0; pointer-events: none; }
  .tag { display: flex; flex-direction: column; align-items: flex-start; transform: translate(10px, -8px); white-space: nowrap; pointer-events: none; filter: opacity(var(--dim, 1)); }
  .tag .pill {
    display: inline-flex; align-items: center; gap: 6px; padding: 2px 8px 2px 7px; border-radius: 4px;
    background: rgba(0, 0, 0, 0.72); border-left: 2px solid currentColor;
    font-size: 12.5px; font-weight: 800; letter-spacing: -0.01em; color: var(--ink);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.25);
  }
  .tag .dot { display: none; }
  .tag .doing { font-size: 11px; font-weight: 700; color: var(--teal); padding: 1px 9px; max-width: 220px; overflow: hidden; text-overflow: ellipsis; text-shadow: 0 0 8px rgba(94, 234, 212, 0.45); }
  .tag.idle { opacity: 0.55; }
  .tag.idle .doing { color: var(--ink-dim); text-shadow: none; }
  .tag.flash .pill { animation: flash 1.8s ease-out; }
  @keyframes flash { 0% { background: rgba(250, 204, 21, 0.55); box-shadow: 0 0 24px rgba(250, 204, 21, 0.8); } 100% { background: rgba(0, 0, 0, 0.72); box-shadow: none; } }
  .tag.sub .pill { font-size: 10.5px; font-weight: 700; padding: 1px 6px; }
  .tag.sub .doing { font-size: 10px; }
  .tag.job .pill { font-size: 10px; font-weight: 700; padding: 1px 6px; }
  .tag.job .doing { font-size: 9.5px; }
  .zone-label { font-size: 10px; letter-spacing: 0.14em; color: rgba(103, 232, 249, 0.6); white-space: nowrap; padding: 1px 4px; border-bottom: 1px dashed rgba(103, 232, 249, 0.35); }
  .place-label { font-size: 11.5px; font-weight: 800; color: #e0fbff; white-space: nowrap; text-shadow: 0 0 10px rgba(103, 232, 249, 0.6); }
  .place-label small { display: block; font-size: 10.5px; color: var(--teal); font-weight: 700; }
  .measure { font-size: 10.5px; font-weight: 700; color: var(--teal); white-space: nowrap; }
  .boss .pill { color: var(--gold); }
  .mz { display: inline-block; vertical-align: -3px; background-size: 100% 100%; image-rendering: pixelated; border-radius: 2px; }
  .hud { position: fixed; pointer-events: none; }
  .hud button { pointer-events: auto; }
  #title { top: 18px; left: 24px; }
  #title h1 { margin: 0; font-size: 26px; line-height: 1.18; font-weight: 900; letter-spacing: -0.03em; }
  #title h1 .l2 { display: block; color: var(--gold); }
  #title .sub { margin-top: 8px; font-size: 12.5px; color: var(--ink-dim); display: flex; gap: 12px; align-items: center; }
  .live { display: inline-flex; align-items: center; gap: 6px; color: var(--teal); font-weight: 800; }
  .live i { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 10px var(--teal); animation: blink 1.6s infinite; }
  .live.off { color: var(--rose); }
  .live.off i { background: var(--rose); box-shadow: 0 0 10px var(--rose); }
  @keyframes blink { 50% { opacity: 0.3; } }
  #timeline { top: 22px; left: 50%; transform: translateX(-50%); width: min(520px, 34vw); }
  #timeline .tl-head { display: flex; justify-content: space-between; font-size: 11px; color: var(--ink-dim); margin-bottom: 7px; }
  #timeline .tl-head b { color: var(--ink); font-weight: 800; }
  .tl-track { position: relative; height: 22px; }
  .tl-bars { position: absolute; left: 0; right: 0; bottom: 11px; height: 18px; display: flex; align-items: flex-end; gap: 2px; opacity: 0.85; }
  .tl-bars span { flex: 1; background: linear-gradient(180deg, rgba(103, 232, 249, 0.75), rgba(103, 232, 249, 0.12)); border-radius: 1px 1px 0 0; min-height: 1px; }
  .tl-base { position: absolute; left: 0; right: 0; top: 10px; height: 2px; background: rgba(148, 163, 184, 0.28); border-radius: 2px; }
  .tl-fill { position: absolute; left: 0; top: 9px; height: 4px; border-radius: 3px; background: linear-gradient(90deg, rgba(94, 234, 212, 0.45), var(--teal)); box-shadow: 0 0 12px rgba(94, 234, 212, 0.7); }
  .tl-dot { position: absolute; top: 7px; width: 8px; height: 8px; margin-left: -4px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 10px var(--gold); }
  .tl-now { position: absolute; top: -4px; width: 30px; height: 30px; margin-left: -15px; border-radius: 50%; border: 1px solid rgba(94, 234, 212, 0.55); box-shadow: 0 0 14px rgba(94, 234, 212, 0.35); }
  .tl-now::after { content: ""; position: absolute; left: 50%; top: 50%; width: 5px; height: 14px; margin: -7px 0 0 -2.5px; border-radius: 2px; background: #fff; box-shadow: 0 0 12px #fff; }
  .tl-ticks { display: flex; justify-content: space-between; margin-top: 6px; font-size: 10px; color: var(--ink-dim); }
  #kpis { top: 18px; right: 24px; display: grid; grid-template-columns: repeat(4, minmax(92px, auto)); gap: 7px; }
  .kpi { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 8px 11px 7px; }
  .kpi .k { font-size: 10.5px; color: var(--ink-dim); }
  .kpi .v { font-size: 21px; font-weight: 900; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; margin-top: 1px; }
  .kpi .v small { font-size: 11px; font-weight: 800; color: var(--teal); margin-left: 4px; }
  #feed { top: 158px; right: 24px; width: 330px; max-height: calc(100vh - 250px); overflow: hidden; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 9px 12px; }
  #feed h2 { margin: 0 0 5px; font-size: 11px; color: var(--ink-dim); font-weight: 700; letter-spacing: 0.08em; }
  #feed ul { list-style: none; margin: 0; padding: 0; }
  #feed li { display: grid; grid-template-columns: 54px 8px 1fr; gap: 7px; align-items: center; font-size: 12px; padding: 4px 0; border-top: 1px solid rgba(255, 255, 255, 0.06); animation: slidein 0.45s ease-out; }
  #feed li:first-child { border-top: 0; }
  #feed time { color: var(--ink-dim); font-variant-numeric: tabular-nums; font-size: 11px; }
  #feed li i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 8px currentColor; }
  #feed li span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink); }
  #feed li b { font-weight: 800; }
  @keyframes slidein { from { opacity: 0; transform: translateX(10px); } to { opacity: 1; transform: none; } }
  #legend { left: 24px; bottom: 22px; display: flex; flex-wrap: wrap; gap: 6px 14px; max-width: 46vw; font-size: 11.5px; color: var(--ink-dim); }
  #legend span { display: inline-flex; align-items: center; gap: 6px; }
  #legend i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 8px currentColor; }
  #legend em { color: var(--ink-dim); font-style: normal; }
  #controls { right: 24px; bottom: 20px; display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
  #controls button { font: inherit; font-size: 12px; font-weight: 800; color: var(--ink); cursor: pointer; background: var(--panel); border: 1px solid var(--line); border-radius: 6px; padding: 7px 11px; }
  #controls button:hover { border-color: rgba(103, 232, 249, 0.6); }
  #controls button.on { border-color: var(--teal); color: var(--teal); box-shadow: 0 0 12px rgba(94, 234, 212, 0.3); }
  #controls button:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
  #controls button.mac { border-color: rgba(250, 204, 21, 0.6); color: var(--gold); }
  #controlsInner { right: 24px; bottom: 20px; display: none; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
  #controlsInner button { font: inherit; font-size: 12px; font-weight: 800; color: var(--ink); cursor: pointer; background: var(--panel); border: 1px solid var(--line); border-radius: 6px; padding: 7px 11px; }
  #controlsInner button:hover { border-color: rgba(103, 232, 249, 0.6); }
  #controlsInner button.on { border-color: var(--teal); color: var(--teal); box-shadow: 0 0 12px rgba(94, 234, 212, 0.3); }
  #controlsInner button.out { border-color: rgba(250, 204, 21, 0.6); color: var(--gold); }
  body.inner #controlsInner { display: flex; }
  body.inner #legend { display: none; }   
  body.inner #controls, body.inner #banner, body.inner #empty { display: none !important; }
  #warp { position: fixed; inset: 0; pointer-events: none; z-index: 30; opacity: 0;
    background: radial-gradient(circle at 50% 50%, rgba(240, 253, 255, 0.95), rgba(103, 232, 249, 0.6) 32%, rgba(0, 0, 0, 0) 68%); }
  body.warping #warp { animation: warp 1.2s ease-out; }
  @keyframes warp { 0% { opacity: 0; transform: scale(0.5); } 32% { opacity: 1; transform: scale(1.3); } 100% { opacity: 0; transform: scale(2.4); } }
  .mac-label { pointer-events: auto; cursor: pointer; display: flex; flex-direction: column; align-items: center; padding: 5px 12px 6px; border: 1px solid rgba(250, 204, 21, 0.75); border-radius: 8px; background: rgba(0, 0, 0, 0.74); box-shadow: 0 0 16px rgba(250, 204, 21, 0.28); white-space: nowrap; }
  .mac-label b { font-size: 12.5px; font-weight: 900; color: var(--gold); }
  .mac-label small { font-size: 10.5px; font-weight: 800; color: var(--teal); }
  .mac-label.hover, .mac-label:hover { background: rgba(40, 32, 6, 0.92); box-shadow: 0 0 24px rgba(250, 204, 21, 0.6); }
  .tag.unit .pill { font-size: 10.5px; padding: 1px 6px; }
  .tag.unit .doing { font-size: 9.5px; max-width: 130px; }
  .floor-label { white-space: nowrap; }
  .floor-label > span { display: inline-block; transform: translateX(-54%); text-align: right; font-size: 11.5px; font-weight: 800; color: #e0fbff; text-shadow: 0 0 10px rgba(0, 0, 0, 0.9); }
  .floor-label b { color: var(--gold); margin-right: 4px; }
  .floor-label small { display: block; font-size: 10.5px; color: var(--teal); font-weight: 700; }
  .svc-label { white-space: nowrap; font-size: 9.5px; font-weight: 800; color: #e0fbff; background: rgba(0, 0, 0, 0.62); border: 1px solid var(--line); border-radius: 5px; padding: 1px 6px; display: inline-flex; align-items: center; gap: 4px; }
  .svc-label i { width: 6px; height: 6px; border-radius: 50%; display: inline-block; }
  .svc-label small { color: var(--ink-dim); font-weight: 700; }
  .studio-label em { display: block; font-style: normal; font-size: 10.5px; font-weight: 800; color: var(--gold); margin-top: 2px; }
  .arch-label > span { display: inline-block; transform: translateX(-54%); text-align: right; }
  .arch-label small { display: block; color: var(--gold); }
  .sky-label { text-align: center; font-size: 12px; text-shadow: 0 0 12px rgba(0, 0, 0, 0.95), 0 0 6px rgba(0, 0, 0, 0.9); }
  .sky-label small { color: #cbd5e1; font-size: 10px; }
  .brand-label { text-align: center; font-size: 14px; color: #fff; text-shadow: 0 0 14px rgba(103, 232, 249, 0.85), 0 0 4px rgba(0, 0, 0, 0.9); }
  .brand-label small { color: var(--gold); font-size: 10.5px; }
  .pin-label { display: flex; flex-direction: column; align-items: center; padding: 6px 14px 7px; border-radius: 10px; background: rgba(0, 0, 0, 0.8);
    border: 1.5px solid var(--pc, #facc15); box-shadow: 0 0 22px color-mix(in srgb, var(--pc, #facc15) 55%, transparent); white-space: nowrap; pointer-events: none; }
  .pin-label b { font-size: 16px; font-weight: 900; color: #fff; letter-spacing: -0.02em; }
  .pin-label small { margin-top: 1px; font-size: 11px; font-weight: 800; color: var(--pc, #facc15); }
  body.plan .labels .tag, body.plan .labels .place-label, body.plan .labels .measure, body.plan .labels .mac-label, body.plan .labels .chip-label, body.plan .labels .map-label { visibility: hidden !important; }
  .brand-label.core-brand { font-size: 17px; }
  .brand-label.core-brand small { font-size: 11px; }
  .chip-label { font-size: 9.5px; font-weight: 800; color: #ecfccb; white-space: nowrap; text-shadow: 0 0 8px rgba(0, 0, 0, 0.95); opacity: 0.92; }
  #feed li { pointer-events: auto; cursor: pointer; border-radius: 5px; transition: background 0.15s; }
  #feed li:hover { background: rgba(103, 232, 249, 0.1); }
  #feed li.picked { background: rgba(250, 204, 21, 0.16); animation: picked 0.8s ease-out; }
  @keyframes picked { 0% { background: rgba(250, 204, 21, 0.55); box-shadow: 0 0 0 0 rgba(250, 204, 21, 0.7); } 100% { background: rgba(250, 204, 21, 0.16); box-shadow: 0 0 0 10px rgba(250, 204, 21, 0); } }
  #feed h2 small { font-weight: 700; letter-spacing: 0; margin-left: 6px; color: var(--ink-dim); opacity: 0.85; }
  #detail { left: 24px; top: 150px; width: 300px; max-height: calc(100vh - 260px); overflow: hidden; display: none; pointer-events: auto; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px 10px; }
  #detail.show { display: block; }
  #detail h3 { margin: 0 22px 6px 0; font-size: 15px; font-weight: 900; display: flex; align-items: center; gap: 7px; }
  #detail h3 i { width: 9px; height: 9px; border-radius: 50%; box-shadow: 0 0 8px currentColor; flex: none; }
  #detail p { margin: 0 0 6px; font-size: 12px; color: var(--ink-dim); }
  #detail p b.on { color: var(--teal); }
  #detail p.now { color: var(--ink); font-weight: 700; }
  #detail p.dim { color: var(--ink-dim); }
  #detail ul { list-style: none; margin: 6px 0 0; padding: 0; border-top: 1px solid var(--line); }
  #detail li { display: grid; grid-template-columns: 58px 1fr; gap: 6px; font-size: 11.5px; padding: 4px 0; border-top: 1px solid rgba(103, 232, 249, 0.08); }
  #detail li:first-child { border-top: 0; }
  #detail time { color: var(--ink-dim); font-variant-numeric: tabular-nums; }
  #detail .x { position: absolute; right: 8px; top: 6px; font: inherit; font-size: 16px; font-weight: 800; color: var(--ink-dim); background: none; border: 0; cursor: pointer; }
  #detail ul.tech-ul li { grid-template-columns: 18px 1fr; padding: 6px 0; }
  #detail ul.tech-ul li > b { font-size: 13px; font-weight: 900; text-align: center; }
  #detail ul.tech-ul em { font-style: normal; font-weight: 900; color: var(--ink); font-size: 12.5px; }
  #detail ul.tech-ul i { font-style: normal; color: var(--ink-dim); font-size: 11px; }
  #detail ul.tech-ul small { color: #b6c2d6; font-size: 11px; }
  #detail ul.tech-ul small.st { color: var(--teal); }
  .place-label.tech-title { font-size: 13px; color: #fff7d6; text-shadow: 0 0 12px rgba(250, 204, 21, 0.55); }
  .place-label.tech-title small { color: var(--gold); font-size: 11px; }
  #controlsInner button.techb { border-color: rgba(250, 204, 21, 0.45); }
  #controlsInner button.jrb { border-color: rgba(74, 222, 128, 0.5); }
  #controlsInner button.cmpb { border-color: rgba(148, 163, 184, 0.5); }
  #controlsInner button.cmpb.on { border-color: #e2e8f0; color: #f8fafc; box-shadow: 0 0 12px rgba(226, 232, 240, 0.3); }
  .ap { text-align: center; text-shadow: none; }
  .ap > .w { display: inline-block; }
  .ap .sg { display: inline-flex; align-items: stretch; background: rgba(4, 7, 13, 0.92); border: 2px solid var(--c); border-radius: 9px; overflow: hidden; box-shadow: 0 0 22px -6px var(--c); }
  .ap .pic { display: flex; align-items: center; justify-content: center; width: 48px; background: var(--c); }
  .ap .pic .ic { width: 33px; height: 33px; color: #05080e; }
  .ap .tx { display: flex; flex-direction: column; justify-content: center; padding: 5px 12px 6px 10px; text-align: left; }
  .ap .tx b { font-size: 22px; font-weight: 900; color: #fff; line-height: 1.05; letter-spacing: -0.02em; white-space: nowrap; }
  .ap .tx b em { font-style: normal; display: inline-flex; align-items: center; justify-content: center; width: 21px; height: 21px; border-radius: 50%; background: var(--c); color: #05080e; font-size: 13.5px; font-weight: 900; margin-right: 7px; vertical-align: 3px; }
  .ap .tx i { font-style: normal; font-size: 10px; font-weight: 800; letter-spacing: 0.18em; color: var(--c); margin-top: 3px; white-space: nowrap; }
  .ap .ar { display: flex; align-items: center; padding: 0 9px; border-left: 1px solid rgba(255, 255, 255, 0.14); }
  .ap .ar .ic { width: 24px; height: 24px; color: var(--c); }
  .ap .ch { display: flex; gap: 4px; justify-content: center; margin-top: 5px; }
  .ap .ch > span { display: inline-flex; align-items: center; gap: 3px; height: 20px; padding: 0 6px 0 4px; border-radius: 5px; background: var(--k); color: #05080e; font-size: 11.5px; font-weight: 900; white-space: nowrap; }
  .ap .ch .ic { width: 14px; height: 14px; }
  .ap .cp { display: inline-flex; flex-direction: column; gap: 3px; margin-top: 5px; padding: 5px 9px; background: rgba(4, 7, 13, 0.9); border-radius: 7px; border: 1px solid rgba(148, 163, 184, 0.3); text-align: left; }
  .ap .cp span { display: flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 800; white-space: nowrap; }
  .ap .cp .ic { width: 15px; height: 15px; flex: none; }
  .ap .cp em { font-style: normal; font-size: 9.5px; font-weight: 900; letter-spacing: 0.04em; padding: 1px 4px; border-radius: 3px; }
  .ap .cp .o { color: #94a3b8; } .ap .cp .o em { background: #475569; color: #e2e8f0; }
  .ap .cp .n { color: #fde68a; } .ap .cp .n em { background: #facc15; color: #1a1300; }
  .ap small.ex { display: block; margin-top: 4px; font-size: 9.5px; font-weight: 700; color: #64748b; }
  .ap.jr-crowd > .w { transform: translateY(56%); }
  .ap.jr-shop > .w { transform: translateY(40%); }
  .ap.ap-core .pic { width: 40px; } .ap.ap-core .pic .ic { width: 28px; height: 28px; }
  .ap.ap-core .tx b { font-size: 18px; } .ap.ap-core .tx i { letter-spacing: 0.12em; }
  .ap.jr-dim { opacity: 0.38; }
  .ap.jr-on .sg { box-shadow: 0 0 30px -2px var(--c); }
  .jr-old > span { border-color: rgba(148, 163, 184, 0.45); color: #cbd5e1; font-size: 11.5px; }
  .jr-old > span small { color: #94a3b8; }
  .jr-ai > span { border-color: rgba(250, 204, 21, 0.5); color: #fef3c7; font-size: 11.5px; }
  .jr-ai > span small { color: #fde68a; }
  .jr-pop { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 900; color: #052e16; background: #4ade80; border-radius: 11px; padding: 3px 10px 3px 7px; box-shadow: 0 0 16px rgba(74, 222, 128, 0.75); white-space: nowrap; pointer-events: none; }
  .jr-pop .ic { width: 16px; height: 16px; }
  #jrLegend { top: 104px; left: 50%; transform: translateX(-50%); display: none; gap: 18px; align-items: center; padding: 6px 14px; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; font-size: 12px; font-weight: 800; white-space: nowrap; }
  body.inner.jr-compare #jrLegend { display: flex; }
  #jrLegend .a { color: #fde68a; } #jrLegend .b { color: #cbd5e1; }
  #jrLegend i { display: inline-block; width: 26px; height: 0; vertical-align: middle; margin-right: 7px; }
  #jrLegend .a i { border-top: 3px solid #facc15; box-shadow: 0 0 8px #facc15; } #jrLegend .b i { border-top: 2px dashed #cbd5e1; }
  #jrLegend small { color: var(--ink-dim); font-weight: 700; margin-left: 4px; }
  #detail p.jr-h { margin: 8px 0 0; color: var(--teal); font-weight: 800; font-size: 11.5px; }
  #detail ul.jr-ul li { grid-template-columns: 62px 1fr; padding: 5px 0; font-size: 12px; }
  #detail ul.jr-ul li > b { font-size: 11px; font-weight: 900; }
  #detail ul.jr-ul li > span { color: var(--ink); font-weight: 700; }
  #detail .jr-cmp { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin: 8px 0 6px; }
  #detail .jr-cmp > div { border-radius: 7px; padding: 6px 8px; font-size: 11.5px; line-height: 1.45; }
  #detail .jr-cmp em { display: block; font-style: normal; font-size: 10.5px; font-weight: 900; letter-spacing: 0.04em; margin-bottom: 3px; }
  #detail .jr-cmp .o { background: rgba(148, 163, 184, 0.08); border: 1px dashed rgba(148, 163, 184, 0.4); color: #cbd5e1; }
  #detail .jr-cmp .o em { color: #94a3b8; }
  #detail .jr-cmp .n { background: rgba(250, 204, 21, 0.08); border: 1px solid rgba(250, 204, 21, 0.5); color: #fef9c3; font-weight: 700; }
  #detail .jr-cmp .n em { color: var(--gold); }
  #banner { left: 50%; bottom: 70px; transform: translateX(-50%); display: none; padding: 10px 22px; background: rgba(0, 0, 0, 0.82); font-size: 18px; font-weight: 900; letter-spacing: -0.02em; white-space: nowrap; text-align: center; }
  #banner b { color: var(--gold); }
  body.demo #banner { display: block; }
  #empty { left: 50%; top: 46%; transform: translate(-50%, -50%); display: none; color: var(--ink-dim); font-size: 14px; }
  @media (max-width: 1100px) { #timeline { display: none; } }
  @media (max-width: 900px) {
    #feed, #legend { display: none; }
    #kpis { grid-template-columns: repeat(2, minmax(110px, auto)); top: auto; bottom: 66px; right: 16px; }
    #title { left: 16px; top: 16px; }
    #title h1 { font-size: 21px; }
    #controls { right: 16px; bottom: 16px; }
    #banner { bottom: auto; top: 100px; font-size: 13px; white-space: normal; width: calc(100% - 32px); }
  }
  @media (prefers-reduced-motion: reduce) { #feed li, .live i { animation: none; } }
  #controls button.mapb { display: none; border-color: rgba(125, 211, 252, 0.5); color: #bae6fd; }
  body.has-map #controls button.mapb { display: inline-block; }
  body.has-map #controls button.mapb.on { border-color: var(--teal); color: var(--teal); }
  #mapHud { right: 24px; bottom: 62px; display: none; align-items: center; gap: 12px; font-size: 11px; color: var(--ink-dim); pointer-events: none;
    padding: 5px 12px 5px 6px; border-radius: 22px; background: rgba(2, 8, 20, 0.78); border: 1px solid rgba(125, 211, 252, 0.22); }
  body.has-map #mapHud { display: flex; }
  #mapHud .cmp { position: relative; width: 30px; height: 30px; border-radius: 50%; border: 1px solid rgba(125, 211, 252, 0.45); background: rgba(2, 8, 20, 0.7); }
  #mapNeedle { position: absolute; inset: 0; }
  #mapNeedle::before { content: ''; position: absolute; left: 50%; top: 3px; transform: translateX(-50%); border-left: 5px solid transparent; border-right: 5px solid transparent; border-bottom: 12px solid #f87171; }
  #mapNeedle::after { content: ''; position: absolute; left: 50%; bottom: 3px; transform: translateX(-50%); border-left: 5px solid transparent; border-right: 5px solid transparent; border-top: 12px solid #cbd5e1; }
  #mapHud .sc { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 2px; }
  #mapScaleBar { display: block; height: 5px; min-width: 16px; border: 1.5px solid #e0f2fe; border-top: 0; }
  #mapHud em { font-style: normal; color: #e2e8f0; font-weight: 700; }
  #mapCoord, #mapAlt { font-variant-numeric: tabular-nums; color: #cbd5e1; font-weight: 700; }
  #mapAttr { right: 24px; bottom: 3px; font-size: 9.5px; color: rgba(186, 198, 214, 0.85); pointer-events: none; display: none; text-shadow: 0 0 3px #000, 0 0 6px #000; }
  body.has-map #mapAttr { display: block; }
  body.inner #mapHud, body.inner #mapAttr { display: none; }
  .map-label { font-size: 12px; font-weight: 800; color: #e2e8f0; white-space: nowrap; letter-spacing: 0.02em; pointer-events: none; text-align: center;
    text-shadow: 0 0 4px #000, 0 0 10px #000, 0 0 18px rgba(0, 0, 0, 0.9); }
  .map-label small { display: block; font-size: 9px; font-weight: 800; letter-spacing: 0.18em; color: #7dd3fc; }
  .map-label.k-area { font-size: 17px; color: #fff; }
  .map-label.k-water, .map-label.k-river { color: #93c5fd; font-style: italic; }
  .map-label.k-river { font-size: 15px; letter-spacing: 0.32em; }
  .map-label.k-peak { color: #d9f99d; font-size: 11.5px; }
  .map-label .tri { display: inline-block; margin-right: 4px; vertical-align: 1px; border-left: 5px solid transparent; border-right: 5px solid transparent; border-bottom: 8px solid #a3e635; }
  .map-label.k-road { font-size: 11px; color: #fde68a; padding: 1px 8px; border: 1px solid rgba(253, 230, 138, 0.6); border-radius: 9px; background: rgba(20, 16, 4, 0.75); }
  .map-label.k-hq .in { display: block; transform: translateY(-62%); padding: 6px 12px 5px; border: 2px solid #67e8f9; border-radius: 9px; background: rgba(2, 10, 22, 0.86); box-shadow: 0 0 18px rgba(103, 232, 249, 0.45); }
  .map-label.k-hq b { display: block; font-size: 15px; color: #fff; }
  .map-label.k-hq small { color: #67e8f9; letter-spacing: 0.04em; font-size: 10.5px; }
  .map-label.k-city .in { display: block; transform: translate(54%, -2px); font-size: 12px; color: #fde68a; }
  .map-label.k-city.big .in { font-size: 15px; }
  .map-label.k-country { font-size: 30px; font-weight: 900; color: #e0f2fe; letter-spacing: 0.42em; }
  .map-label.k-country small { font-size: 11px; letter-spacing: 0.5em; }
  body.under .labels .map-label { opacity: 0.4; }
  body.far:not(.inner) .labels .tag, body.far:not(.inner) .labels .place-label, body.far:not(.inner) .labels .measure, body.far:not(.inner) .labels .mac-label,
  body.far:not(.inner) .labels .chip-label, body.far:not(.inner) .labels .pin-label { visibility: hidden !important; }
  @media (max-aspect-ratio: 9/10) { #mapHud { display: none !important; } #mapAttr { left: 12px; right: auto; } }
  #controls button.bidb { border-color: rgba(96, 165, 250, 0.6); color: #93c5fd; }
  #controls button.bidb.on { border-color: #60a5fa; color: #bfdbfe; box-shadow: 0 0 12px rgba(96, 165, 250, 0.35); }
  #bidsPanel { position: fixed; z-index: 50; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(1120px, calc(100vw - 48px)); max-height: min(74vh, 820px);
    display: flex; flex-direction: column; pointer-events: auto; background: rgba(4, 8, 16, 0.88); border: 1px solid rgba(103, 232, 249, 0.28); border-radius: 14px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
  #bidsPanel[hidden] { display: none; }
  .bp-head { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 4px 14px; padding: 16px 20px 12px; border-bottom: 1px solid rgba(103, 232, 249, 0.14); }
  .bp-title { display: flex; align-items: center; gap: 12px; }
  .bp-title b { font-size: 20px; font-weight: 900; letter-spacing: -0.02em; }
  .bp-live { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 800; color: var(--teal); }
  .bp-live i { width: 7px; height: 7px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 10px var(--teal); animation: bpPulse 1.6s ease-in-out infinite; }
  @keyframes bpPulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }
  .bp-sub { grid-column: 1; font-size: 12px; color: var(--ink-dim); }
  .bp-tabs { grid-row: 1 / 3; grid-column: 2; display: inline-flex; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line); border-radius: 8px; padding: 3px; }
  .bp-tabs button, .bp-x { font: inherit; font-size: 12.5px; font-weight: 800; color: var(--ink-dim); background: transparent; border: 0; border-radius: 6px; padding: 6px 12px; cursor: pointer; }
  .bp-tabs button.on { background: rgba(94, 234, 212, 0.16); color: var(--teal); }
  .bp-x { grid-row: 1 / 3; grid-column: 3; border: 1px solid var(--line); }
  .bp-x:hover, .bp-tabs button:hover { color: var(--ink); }
  .bp-body { overflow: auto; padding: 6px 14px 6px; }
  .bp-row { display: grid; gap: 8px; align-items: stretch; padding: 6px; border-bottom: 1px solid rgba(255, 255, 255, 0.05); }
  .bp-hrow { position: sticky; top: 0; background: rgba(4, 8, 16, 0.97); z-index: 1; border-bottom: 1px solid rgba(103, 232, 249, 0.18); }
  .bp-name { display: flex; align-items: center; font-size: 13.5px; font-weight: 800; color: var(--ink); }
  .bp-hrow .bp-name { color: var(--ink-dim); font-size: 12px; }
  .bp-mh { font-size: 13px; font-weight: 900; color: var(--mc); border-left: 3px solid var(--mc); padding-left: 8px; }
  .bp-mh small { margin-left: 6px; font-size: 11px; color: var(--ink-dim); font-weight: 700; }
  .bp-cell { border-radius: 8px; padding: 7px 10px; background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.05); min-height: 50px; }
  .bp-cell.none { display: flex; align-items: center; color: #334155; background: transparent; border-color: transparent; }
  .bp-cell .s { display: flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 900; }
  .bp-cell .s .dot { width: 7px; height: 7px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 8px rgba(34, 197, 94, 0.7); flex: none; }
  .bp-cell.st-chg .s .dot { background: var(--gold); box-shadow: 0 0 8px rgba(250, 204, 21, 0.8); }
  .bp-cell.st-err .s .dot { background: var(--rose); box-shadow: 0 0 8px rgba(251, 113, 133, 0.8); }
  .bp-cell.st-off .s .dot { background: #475569; box-shadow: none; }
  .bp-cell .m { margin-top: 3px; font-size: 11.5px; color: #94a3b8; font-weight: 600; }
  .bp-cell .c { margin-top: 4px; font-size: 11.5px; color: var(--warm); }
  .bp-cell .c span { color: #94a3b8; margin-left: 4px; }
  .bp-fold { display: flex; align-items: center; gap: 8px; padding: 10px 12px 4px; font-size: 12px; color: #94a3b8; }
  .bp-fold .dot { width: 7px; height: 7px; border-radius: 50%; background: #475569; flex: none; }
  .bp-mix { display: flex; height: 4px; border-radius: 3px; overflow: hidden; margin-top: 6px; background: rgba(255, 255, 255, 0.06); }
  .bp-mix i { display: block; height: 100%; }
  .bp-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; padding: 8px 4px 10px; }
  .bp-card { border-radius: 10px; padding: 14px 14px 12px; background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.06); border-top: 3px solid var(--mc); }
  .bp-card .h { font-size: 17px; font-weight: 900; color: var(--mc); }
  .bp-card .h small { margin-left: 8px; font-size: 12px; color: var(--ink-dim); font-weight: 700; }
  .bp-card .bp-mix { height: 8px; margin-top: 12px; }
  .bp-card .lg { list-style: none; margin: 10px 0 0; padding: 0; font-size: 12px; color: #cbd5e1; }
  .bp-card .lg li { display: flex; align-items: center; gap: 7px; padding: 2px 0; }
  .bp-card .lg li i { width: 8px; height: 8px; border-radius: 2px; flex: none; }
  .bp-card .lg li b { margin-left: auto; color: var(--ink); }
  .bp-card .f { margin-top: 10px; font-size: 12.5px; color: var(--warm); }
  .bp-card .f span { margin-left: 6px; color: #94a3b8; }
  .bp-card .w { margin-top: 6px; font-size: 11.5px; color: var(--teal); }
  .bp-foot { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; padding: 10px 20px 14px; border-top: 1px solid rgba(103, 232, 249, 0.12); font-size: 11.5px; color: #94a3b8; }
  .bp-foot .k { display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: 6px; vertical-align: -1px; }
  .bp-foot .k.smart { background: #5eead4; }
  .bp-foot .k.manual { background: #fde68a; }
  .bp-foot .k.rule { background: #c4b5fd; }
  .bp-foot .k.off { background: #64748b; }
  .bp-foot .r { margin-left: auto; }
  body.bids-open #feed, body.bids-open #legend, body.bids-open #banner { opacity: 0.2; }
  .bp-cell .mk { display: none; }
  .bp-row > *, .bp-head > *, .bp-cards > * { min-width: 0; }
  #bidsPanel { max-width: calc(100vw - 24px); overflow: hidden; }
  @media (max-width: 700px) {                       
    #bidsPanel { width: calc(100vw - 24px); max-height: 84vh; }
    .bp-head { grid-template-columns: 1fr auto; padding: 12px 14px 10px; }
    .bp-title b { font-size: 17px; }
    .bp-tabs { grid-row: 3; grid-column: 1 / -1; justify-self: start; }
    .bp-x { grid-row: 1; grid-column: 2; }
    .bp-hrow { display: none; }
    .bp-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important; }
    .bp-body { overflow-x: hidden; }
    .bp-sub { font-size: 11px; }
    .bp-row .bp-name { grid-column: 1 / -1; padding-top: 4px; }
    .bp-cell.none { display: none; }
    .bp-cell .mk { display: block; font-size: 10.5px; font-weight: 900; color: var(--mc); margin-bottom: 2px; }
    .bp-foot .r { margin-left: 0; }
  }
#btnMode{display:none!important}

@media (max-width: 600px) {
  #title { left: 14px; top: 12px; }
  #title h1 { font-size: 19px; }
  #title .sub { font-size: 11px; gap: 8px; flex-wrap: wrap; }
  #banner { top: 96px; bottom: auto; left: 12px; right: 12px; width: auto; transform: none; font-size: 12.5px; padding: 8px 12px; white-space: normal; }
  #kpis { left: 10px; right: 10px; top: auto; bottom: 58px; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 5px; }
  #kpis .kpi { padding: 6px 7px 5px; min-width: 0; }
  #kpis .kpi .k { font-size: 9.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  #kpis .kpi .v { font-size: 16px; white-space: nowrap; }
  #kpis .kpi .v small { font-size: 9px; margin-left: 2px; }
  #kpis .kpi:nth-child(n+5) { display: none; }
  #controls, #controlsInner { left: 10px; right: 10px; bottom: 10px; flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  #controls::-webkit-scrollbar, #controlsInner::-webkit-scrollbar { display: none; }
  #controls button, #controlsInner button { flex: 0 0 auto; padding: 8px 11px; }
  #mapAttr { top: 4px; right: 8px; left: auto; bottom: auto; max-width: 58%; text-align: right; font-size: 8.5px; }
  #detail { left: 10px; right: 10px; width: auto; top: 150px; max-height: 42vh; }
}
