/* ── RESET & VARIABLES ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --bg: #0a0d16; --s0: #10141f; --s1: #161b28; --s2: #1d2333; --s3: #242a3c;
  --bd: rgba(255,255,255,.11); --bd2: rgba(255,255,255,.18);
  --tx: #dce4f0; --tx2: #8fa0b8; --tx3: rgba(255,255,255,.32);
  --ac: #3d9eff; --ac2: rgba(61,158,255,.12); --acb: rgba(61,158,255,.4);
  --or: #ff6b35; --or2: rgba(255,107,53,.12); --orb: rgba(255,107,53,.4);
  --gr: #22d48a; --ye: #ffd166;
  --xc: #e85b5b; --yc: #4fd87e; --zc: #4d94ff;
  --r: 6px; --f: 'DM Sans', sans-serif; --m: 'IBM Plex Mono', monospace;
}
html, body { height: 100%; overflow: hidden; font-family: var(--f); font-size: 11px; background: var(--bg); color: var(--tx); -webkit-font-smoothing: antialiased; }
button, input { font-family: var(--f); }

/* Smooth scrolling for touch devices */
* { -webkit-overflow-scrolling: touch; scroll-behavior: smooth; }

/* ── APP SHELL ── */
#app { display: grid; grid-template-rows: 38px 1fr 20px; height: 100vh; }
#main {
  display: grid;
  grid-template-columns: 76px var(--scene-w, 214px) 1fr var(--rp-w, 272px);
  overflow: hidden;
  transition: grid-template-columns .22s ease;
}

/* ── TOPBAR ── */
#top { background: var(--s0); border-bottom: 1px solid var(--bd); display: flex; align-items: center; padding: 0 10px; gap: 0; z-index: 100; user-select: none; flex-wrap: wrap; }
.logo { display: flex; align-items: center; gap: 0; margin-right: 14px; padding-right: 14px; border-right: 1px solid var(--bd); flex-shrink: 0; }
.logo-img { width: 36px; height: 36px; object-fit: contain; flex-shrink: 0; }
.logo:hover .logo-img { filter: drop-shadow(0 2px 10px rgba(61,158,255,.45)) brightness(1.05); transform: scale(1.04); }

.mn-wrap { position: relative; flex-shrink: 0; }
.mn { height: 30px; padding: 0 9px; border-radius: 4px; border: none; background: transparent; color: var(--tx2); font-size: 10px; font-weight: 500; transition: .1s; cursor: pointer; }
.mn:hover { background: rgba(255,255,255,.05); color: var(--tx); }
.mn.active { background: rgba(255,255,255,.08); color: var(--tx); }

/* ── FILE DROPDOWN MENU ── */
.file-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 280px;
  max-width: 320px;
  background: rgba(8,11,22,.98);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 10px;
  box-shadow: 0 12px 48px rgba(0,0,0,.85);
  backdrop-filter: blur(20px);
  z-index: 9999;
  display: none;
  padding: 6px;
  max-height: 580px;
  overflow-y: auto;
}
.file-dropdown.open { display: block; animation: fdFade .15s ease; }
@keyframes fdFade { from { opacity:0; transform: translateY(-4px); } to { opacity:1; transform: translateY(0); } }

.fd-section { display: flex; flex-direction: column; gap: 2px; }
.fd-item {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 36px;
  padding: 0 10px;
  border-radius: 6px;
  border: none;
  background: transparent;
  color: rgba(255,255,255,.75);
  font-family: var(--f);
  font-size: 10.5px;
  cursor: pointer;
  transition: .1s;
  text-align: left;
  white-space: nowrap;
}
.fd-item:hover { background: rgba(255,255,255,.08); color: #fff; }
.fd-icon { font-size: 14px; width: 20px; text-align: center; flex-shrink: 0; }
.fd-label { flex: 1; }
.fd-key {
  font-size: 8px;
  font-family: var(--m);
  color: rgba(255,255,255,.35);
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 3px;
  padding: 2px 6px;
}

.fd-divider {
  height: 1px;
  background: rgba(255,255,255,.1);
  margin: 6px 4px;
}

.fd-section-title {
  font-size: 8.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: rgba(255,255,255,.35);
  padding: 8px 10px 4px;
}

.fd-new-version {
  background: rgba(61,158,255,.08);
  color: var(--ac);
  border: 1px solid rgba(61,158,255,.2);
  margin-top: 4px;
}
.fd-new-version:hover {
  background: rgba(61,158,255,.16);
  border-color: rgba(61,158,255,.35);
}

/* Version items in dropdown */
.fd-versions {
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-height: 240px;
  overflow-y: auto;
  margin-bottom: 4px;
}
.fd-versions::-webkit-scrollbar { width: 3px; }
.fd-versions::-webkit-scrollbar-thumb { background: rgba(255,255,255,.1); border-radius: 2px; }

.fd-version {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  border-radius: 6px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.06);
  cursor: pointer;
  transition: .1s;
}
.fd-version:hover {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.12);
}
.fd-version-thumb {
  width: 48px;
  height: 36px;
  border-radius: 4px;
  background: linear-gradient(180deg, #0061ff 0%, #1a8aee 50%, #60efff 100%);
  border: 1px solid rgba(255,255,255,.1);
  flex-shrink: 0;
  object-fit: cover;
  background-size: cover;
  background-position: center;
}
.fd-version-info {
  flex: 1;
  min-width: 0;
}
.fd-version-name {
  font-size: 10px;
  font-weight: 600;
  color: rgba(255,255,255,.85);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-bottom: 2px;
}
.fd-version-meta {
  font-size: 8px;
  color: rgba(255,255,255,.35);
  font-family: var(--m);
}
.fd-version-actions {
  display: flex;
  gap: 4px;
  opacity: 0;
  transition: opacity .1s;
}
.fd-version:hover .fd-version-actions {
  opacity: 1;
}
.fd-version-btn {
  width: 24px;
  height: 24px;
  border-radius: 4px;
  border: none;
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.6);
  font-size: 10px;
  cursor: pointer;
  transition: .1s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.fd-version-btn:hover {
  background: rgba(61,158,255,.2);
  color: var(--ac);
}
.fd-version-btn.delete:hover {
  background: rgba(200,50,50,.2);
  color: #f88;
}

.fd-empty {
  padding: 20px;
  text-align: center;
  color: rgba(255,255,255,.25);
  font-size: 9px;
}
.tg { display: flex; gap: 1px; background: rgba(0,0,0,.2); border: 1px solid var(--bd); border-radius: 8px; padding: 3px; margin: 0 8px; flex-shrink: 0; }
.tb { width: 30px; height: 28px; border-radius: 5px; border: none; background: transparent; color: var(--tx2); display: flex; align-items: center; justify-content: center; transition: .1s; cursor: pointer; position: relative; flex-shrink: 0; }
.tb:hover { background: rgba(255,255,255,.06); color: var(--tx); }
.tb.on { background: var(--ac2); color: var(--ac); }
.tb[title]:hover::after { content: attr(title); position: absolute; top: calc(100% + 8px); left: 50%; transform: translateX(-50%); background: rgba(2,4,14,.97); color: #9ab; padding: 4px 8px; border-radius: 4px; font-size: 9px; white-space: nowrap; pointer-events: none; border: 1px solid var(--bd2); z-index: 9999; font-family: var(--m); }
#ebanner { display: none; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: 6px; background: rgba(34,212,138,.07); border: 1px solid rgba(34,212,138,.18); color: var(--gr); font-size: 9px; font-weight: 600; letter-spacing: .07em; margin-left: 6px; flex-shrink: 0; }
#ebanner.on { display: flex; }
.es { padding: 2px 7px; border-radius: 3px; cursor: pointer; opacity: .4; transition: .1s; }
.es:hover { opacity: .8; }
.es.on { opacity: 1; background: rgba(34,212,138,.16); }
.ex { cursor: pointer; opacity: .35; font-size: 13px; margin-left: 2px; transition: .1s; }
.ex:hover { opacity: 1; }
.rhs { margin-left: auto; display: flex; gap: 3px; align-items: center; flex-shrink: 0; }
.pill { height: 27px; padding: 0 12px; border-radius: 5px; border: 1px solid var(--bd); background: transparent; color: var(--tx2); font-size: 9.5px; font-weight: 600; transition: .1s; cursor: pointer; }
.pill:hover { background: rgba(255,255,255,.05); color: var(--tx); }
.pill.blue { background: var(--ac2); border-color: var(--acb); color: var(--ac); }
.pill.blue:hover { background: rgba(61,158,255,.2); }

/* ── LEFT ICON BAR ── */
#lt { background: var(--s0); border-right: 1px solid var(--bd); display: flex; flex-direction: column; align-items: center; padding: 8px 0; gap: 2px; overflow: hidden; }
.lt-sep { width: 48px; height: 1px; background: var(--bd2); margin: 6px 0; flex-shrink: 0; }
.lt-lbl { font-size: 8px; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; color: var(--tx3); margin: 6px 0 3px; }
.lt-b { width: 62px; height: 56px; border-radius: 11px; border: 1px solid transparent; background: transparent; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: rgba(255,255,255,.6); transition: .12s; position: relative; flex-shrink: 0; font-family: var(--f); }
.lt-b:hover { background: rgba(255,255,255,.09); border-color: var(--bd2); color: rgba(255,255,255,.92); }
.lt-b.on { background: var(--ac2); border-color: var(--acb); color: var(--ac); }
.lt-i { font-size: 26px; line-height: 1; pointer-events: none; }
.lt-k { font-size: 9px; font-weight: 700; letter-spacing: .03em; pointer-events: none; opacity: .75; }
.lt-b[data-tip]::after { content: attr(data-tip); position: absolute; left: calc(100% + 10px); top: 50%; transform: translateY(-50%); background: rgba(2,4,14,.97); color: #b0c8e8; padding: 5px 11px; border-radius: 5px; font-size: 10px; white-space: nowrap; pointer-events: none; opacity: 0; z-index: 9999; transition: opacity .12s; border: 1px solid var(--bd2); font-family: var(--m); }
.lt-b:hover[data-tip]::after { opacity: 1; }

/* ── SCENE PANEL ── */
#scene { background: var(--s0); border-right: 1px solid var(--bd); display: flex; flex-direction: column; overflow: hidden; transition: opacity .18s; min-width: 0; position: relative; }
#scene.collapsed { opacity: 0; pointer-events: none; }
.ph { height: 30px; padding: 0 10px; display: flex; align-items: center; border-bottom: 1px solid var(--bd); flex-shrink: 0; }
.ph-t { font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; color: var(--tx2); }
.ph-r { margin-left: auto; display: flex; gap: 2px; }
.ib { width: 17px; height: 17px; border-radius: 3px; border: none; background: transparent; color: var(--tx2); cursor: pointer; font-size: 9px; display: flex; align-items: center; justify-content: center; transition: .1s; }
.ib:hover { background: rgba(255,255,255,.06); color: var(--tx); }
#slist { flex: 1; overflow-y: auto; padding: 3px; }
#slist::-webkit-scrollbar { width: 3px; }
#slist::-webkit-scrollbar-thumb { background: rgba(255,255,255,.07); border-radius: 2px; }
.si { height: 27px; padding: 0 7px; border-radius: 5px; display: flex; align-items: center; gap: 5px; cursor: pointer; transition: .1s; user-select: none; }
.si:hover { background: rgba(255,255,255,.04); }
.si.sel { background: var(--or2); outline: 1px solid var(--orb); outline-offset: -1px; }
.si-ic { font-size: 12px; opacity: .65; width: 14px; text-align: center; flex-shrink: 0; }
.si-nm { flex: 1; font-size: 10.5px; color: rgba(255,255,255,.68); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.si.sel .si-nm { color: var(--or); }
.si-del { width: 14px; height: 14px; border-radius: 3px; border: none; background: transparent; color: var(--tx2); cursor: pointer; font-size: 8px; display: flex; align-items: center; justify-content: center; opacity: 0; transition: .1s; flex-shrink: 0; }
.si:hover .si-del { opacity: 1; }
.si-del:hover { color: #f88; background: rgba(200,50,50,.14); }
.s-empty { padding: 24px 10px; text-align: center; color: var(--tx3); font-size: 9.5px; line-height: 2.2; }

/* ── VIEWPORT ── */
#vp { position: relative; overflow: hidden; background: linear-gradient(180deg, #0061ff 0%, #1a8aee 50%, #60efff 100%); }
#vc, #oc { display: block; position: absolute; inset: 0; width: 100%; height: 100%; }
#oc { pointer-events: none; z-index: 2; }
.vbadge { padding: 4px 9px; border-radius: 5px; background: rgba(0,0,0,.42); border: 1px solid rgba(255,255,255,.09); font-size: 8.5px; font-weight: 600; letter-spacing: .07em; color: rgba(255,255,255,.45); backdrop-filter: blur(8px); }
#vlabels { position: absolute; top: 12px; left: 12px; display: flex; gap: 5px; pointer-events: none; z-index: 4; }
.vb-cam { color: var(--ye); border-color: rgba(255,209,102,.2); }
.vb-mode { color: var(--tx2); }
.vb-edit { color: var(--gr); border-color: rgba(34,212,138,.22); }
.vcam-btns { position: absolute; top: 12px; right: 12px; display: flex; flex-direction: column; gap: 3px; z-index: 4; }
.vcb { width: 27px; height: 27px; border-radius: 5px; border: 1px solid rgba(255,255,255,.13); background: rgba(0,0,0,.38); color: rgba(255,255,255,.5); font-size: 9px; font-weight: 700; font-family: var(--m); backdrop-filter: blur(8px); cursor: pointer; transition: .1s; }
.vcb:hover { background: rgba(255,255,255,.1); color: #fff; }
.vhints { position: absolute; bottom: 12px; left: 12px; pointer-events: none; z-index: 4; font-size: 8px; color: rgba(255,255,255,.18); line-height: 2.1; font-family: var(--m); }
#toast { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); background: rgba(255,209,102,.95); color: #1a0d00; padding: 5px 16px; border-radius: 20px; font-size: 9.5px; font-weight: 700; letter-spacing: .07em; pointer-events: none; opacity: 0; transition: opacity .2s; z-index: 10; white-space: nowrap; box-shadow: 0 2px 18px rgba(0,0,0,.4); }
#dghost { position: fixed; background: rgba(61,158,255,.1); border: 1.5px dashed rgba(61,158,255,.5); border-radius: 8px; padding: 6px 14px; font-size: 10px; font-weight: 600; color: var(--ac); pointer-events: none; display: none; z-index: 9999; backdrop-filter: blur(6px); }

/* ── RIGHT PANEL ── */
#rp { display: flex; border-left: 1px solid var(--bd); overflow: hidden; min-width: 0; transition: opacity .18s; position: relative; }
#rp.collapsed { opacity: 0; pointer-events: none; }
#rtabs { width: 32px; background: rgba(0,0,0,.18); border-right: 1px solid var(--bd); display: flex; flex-direction: column; align-items: center; padding: 5px 0; gap: 2px; flex-shrink: 0; }

/* ── Panel collapse handles ── */
/* Scene panel: collapse arrow on the right edge of the scene header */
.panel-collapse-btn {
  width: 18px; height: 18px; border-radius: 3px; border: none;
  background: transparent; color: var(--tx2);
  font-size: 8px; cursor: pointer; display: flex;
  align-items: center; justify-content: center;
  transition: .12s; flex-shrink: 0; padding: 0;
}
.panel-collapse-btn:hover { background: rgba(255,255,255,.1); color: var(--ac); }

/* Collapse btn inside #rtabs — sits at top, full-width strip */
#rtabs .panel-collapse-btn {
  width: 22px; height: 22px;
  font-size: 9px;
  color: var(--tx2);
  border-radius: 4px;
  order: -1;  /* always first in rtabs */
}

/* Collapsed-state re-open tabs — thin strips on the left/right of viewport */
.panel-reopen {
  position: fixed; top: 38px; bottom: 20px;
  width: 14px;
  background: var(--s0);
  border: 1px solid var(--bd);
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 50;
  transition: background .12s;
}
.panel-reopen:hover { background: var(--s1); }
.panel-reopen span {
  font-size: 8px; color: var(--tx2); writing-mode: vertical-rl;
  text-orientation: mixed; letter-spacing: .1em; font-weight: 700;
  text-transform: uppercase; pointer-events: none; user-select: none;
}
#scene-reopen { left: 76px; border-radius: 0 4px 4px 0; border-left: none; }
#rp-reopen    { right: 0;   border-radius: 4px 0 0 4px; border-right: none; }
.panel-reopen.visible { display: flex; }
.rt { width: 22px; height: 22px; border-radius: 4px; border: none; background: transparent; color: var(--tx2); font-size: 11px; display: flex; align-items: center; justify-content: center; transition: .1s; position: relative; cursor: pointer; }
.rt:hover { background: rgba(255,255,255,.05); color: var(--tx); }
.rt.on { background: var(--or2); color: var(--or); }
.rt[data-tip]::after { content: attr(data-tip); position: absolute; right: 30px; top: 50%; transform: translateY(-50%); background: rgba(2,4,14,.97); color: #9ab; padding: 3px 8px; border-radius: 4px; font-size: 9.5px; white-space: nowrap; pointer-events: none; opacity: 0; transition: opacity .12s; border: 1px solid var(--bd2); z-index: 9999; font-family: var(--m); }
.rt:hover[data-tip]::after { opacity: 1; }
#rc { flex: 1; overflow-y: auto; overflow-x: hidden; min-width: 0; }
#rc::-webkit-scrollbar { width: 3px; }
#rc::-webkit-scrollbar-thumb { background: rgba(255,255,255,.07); border-radius: 2px; }

/* ── PROPERTY COMPONENTS ── */
.ro { border-bottom: 1px solid var(--bd); }
.roh { height: 30px; padding: 0 10px; display: flex; align-items: center; gap: 5px; cursor: pointer; background: var(--s1); user-select: none; transition: .1s; }
.roh:hover { background: var(--s2); }
.roa { font-size: 7px; color: var(--tx2); transition: transform .14s; }
.roa.o { transform: rotate(90deg); }
.rot- { font-size: 8px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: rgba(255,255,255,.28); }
.rob { display: none; padding: 8px 10px; }
.rob.o { display: block; }
.oh { padding: 8px 10px; border-bottom: 1px solid var(--bd); }
.on-in { width: 100%; height: 24px; background: rgba(0,0,0,.22); border: 1px solid rgba(255,255,255,.07); border-radius: 5px; color: #fff; font-family: var(--f); font-size: 10.5px; font-weight: 600; padding: 0 8px; outline: none; transition: .1s; margin-bottom: 3px; }
.on-in:focus { border-color: rgba(255,107,53,.4); }
.oty { font-size: 8px; color: var(--tx2); }
.pr { display: flex; align-items: center; gap: 4px; height: 22px; margin-bottom: 2px; }
.pl { font-size: 9px; color: var(--tx); opacity: .65; flex: 0 0 52px; text-align: right; padding-right: 5px; white-space: nowrap; }
.al { font-size: 8px; font-weight: 700; width: 11px; flex-shrink: 0; text-align: center; }
.al.x { color: var(--xc); } .al.y { color: var(--yc); } .al.z { color: var(--zc); }
.ni { flex: 1; height: 20px; background: rgba(0,0,0,.28); border: 1px solid rgba(255,255,255,.07); border-radius: 4px; color: var(--tx); font-family: var(--m); font-size: 9.5px; padding: 0 5px; text-align: right; outline: none; transition: .1s; }
.ni:focus { border-color: rgba(255,107,53,.45); background: rgba(255,107,53,.03); }
.ni:hover { border-color: rgba(255,255,255,.13); }
.sl { font-size: 7.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: rgba(255,255,255,.18); margin: 6px 0 3px; }
.cr { display: flex; align-items: center; gap: 6px; margin-bottom: 7px; }
.cs { width: 28px; height: 28px; border-radius: 5px; border: 1px solid rgba(255,255,255,.12); cursor: pointer; position: relative; overflow: hidden; flex-shrink: 0; }
.cs input[type=color] { position: absolute; inset: -4px; opacity: 0; cursor: pointer; width: calc(100% + 8px); height: calc(100% + 8px); }
.hx { flex: 1; height: 24px; background: rgba(0,0,0,.22); border: 1px solid rgba(255,255,255,.07); border-radius: 4px; color: var(--tx); font-family: var(--m); font-size: 10px; padding: 0 6px; outline: none; transition: .1s; }
.hx:focus { border-color: rgba(255,107,53,.4); }
.slr { margin-bottom: 6px; }
.slrh { display: flex; justify-content: space-between; margin-bottom: 3px; }
.slrl { font-size: 9px; color: var(--tx); opacity: .75; }
.slrv { font-size: 9px; color: rgba(255,255,255,.55); font-family: var(--m); }
input[type=range] { width: 100%; height: 3px; -webkit-appearance: none; appearance: none; background: rgba(255,255,255,.09); border-radius: 2px; outline: none; cursor: pointer; }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 11px; height: 11px; border-radius: 50%; background: var(--or); cursor: pointer; box-shadow: 0 0 5px rgba(255,107,53,.35); }
.trow { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.tl { font-size: 8.5px; color: var(--tx2); }
.tog { width: 28px; height: 15px; border-radius: 8px; background: rgba(255,255,255,.09); cursor: pointer; position: relative; transition: .14s; border: none; flex-shrink: 0; }
.tog.on { background: var(--or); }
.tog::after { content: ''; position: absolute; width: 11px; height: 11px; border-radius: 50%; background: #fff; top: 2px; left: 2px; transition: .14s; }
.tog.on::after { transform: translateX(13px); }
.ab { flex: 1; height: 25px; border-radius: 5px; border: none; font-family: var(--f); font-size: 9px; font-weight: 600; transition: .1s; cursor: pointer; }
.ab-d { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.09) !important; color: rgba(255,255,255,.35); }
.ab-d:hover { background: rgba(255,255,255,.08); color: #fff; }
.ab-x { background: rgba(180,40,40,.07); border: 1px solid rgba(220,50,50,.18) !important; color: rgba(255,100,100,.55); }
.ab-x:hover { background: rgba(200,50,50,.14); color: #f99; }
.arow { padding: 5px 8px; display: flex; gap: 3px; }
.nosel { padding: 36px 12px; text-align: center; }
.nsi { font-size: 24px; opacity: .07; margin-bottom: 12px; }
.nst { font-size: 9.5px; color: var(--tx3); line-height: 2.2; }

/* ── CREATE PANE ── */
.cc { display: flex; gap: 2px; padding: 6px 8px; border-bottom: 1px solid var(--bd); }
.ct { flex: 1; height: 22px; border-radius: 4px; border: 1px solid var(--bd); background: transparent; color: var(--tx2); font-family: var(--f); font-size: 8px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; cursor: pointer; transition: .1s; }
.ct:hover { background: rgba(255,255,255,.04); color: var(--tx); }
.ct.on { background: var(--or2); color: var(--or); border-color: rgba(255,107,53,.3); }
.sg { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; padding: 6px 8px; }
.sb { height: 48px; border-radius: 6px; border: 1px solid var(--bd); background: var(--s1); cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--tx2); transition: .12s; font-family: var(--f); user-select: none; }
.sb:hover { background: var(--s2); border-color: var(--bd2); color: var(--tx); transform: translateY(-1px); }
.sb:active { transform: none; }
.sb.on { background: var(--or2); border-color: var(--orb); color: var(--or); }
.sbi { font-size: 16px; line-height: 1; pointer-events: none; }
.sbl { font-size: 7.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; pointer-events: none; }
.pt { padding: 6px 10px 4px; font-size: 8px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--or); border-bottom: 1px solid var(--bd); }
.pf { padding: 7px 8px; display: flex; flex-direction: column; gap: 3px; }
.cbtn { width: calc(100% - 16px); margin: 6px 8px; height: 28px; border-radius: 6px; border: none; background: var(--or); color: #fff; font-family: var(--f); font-size: 10px; font-weight: 700; cursor: pointer; transition: .12s; }
.cbtn:hover { background: #ff8855; }
.cbtn:active { transform: scale(.98); }

/* ── EDIT POLY ── */
.einfo { padding: 8px; font-size: 9px; color: rgba(34,212,138,.5); line-height: 1.9; border-bottom: 1px solid var(--bd); }
.epg { display: flex; flex-direction: column; gap: 3px; padding: 8px; }
.eb { height: 26px; border-radius: 4px; border: 1px solid rgba(34,212,138,.16); background: rgba(34,212,138,.04); color: rgba(80,230,160,.85); font-family: var(--f); font-size: 9px; font-weight: 600; cursor: pointer; transition: .1s; }
.eb:hover { background: rgba(34,212,138,.1); border-color: rgba(34,212,138,.32); color: var(--gr); }

/* ── DISPLAY PANE ── */
.bgp { display: flex; flex-wrap: wrap; gap: 4px; padding: 4px 0; }
.bgpb { width: 32px; height: 24px; border-radius: 4px; cursor: pointer; border: 1.5px solid transparent; transition: .1s; flex-shrink: 0; }
.bgpb:hover { transform: scale(1.1); border-color: rgba(255,255,255,.3); }

/* ── CONTEXT MENU ── */
#ctx { position: fixed; background: rgba(5,7,18,.97); border: 1px solid rgba(255,255,255,.11); border-radius: 10px; padding: 4px; min-width: 192px; z-index: 9999; box-shadow: 0 14px 60px rgba(0,0,0,.85); backdrop-filter: blur(20px); display: none; user-select: none; }
#ctx.on { display: block; }
.ci { padding: 6px 10px 6px 8px; border-radius: 5px; cursor: pointer; display: flex; align-items: center; gap: 7px; color: rgba(255,255,255,.78); font-size: 10.5px; transition: .07s; white-space: nowrap; position: relative; }
.ci:hover { background: rgba(255,107,53,.13); color: #ff8855; }
.ci.ci-act { background: rgba(61,158,255,.12); color: var(--ac); }
.ci.ci-green { color: rgba(34,212,138,.9); }
.ci.ci-green:hover { background: rgba(34,212,138,.1); color: var(--gr); }
.ci-ic { width: 14px; font-size: 11px; text-align: center; flex-shrink: 0; opacity: .85; }
.ci-la { flex: 1; }
.ci-ke { font-size: 9px; color: rgba(255,255,255,.35); font-family: var(--m); }
.ci-ar { font-size: 7px; color: rgba(255,255,255,.22); margin-left: 2px; }
.cs- { height: 1px; background: rgba(255,255,255,.12); margin: 3px 4px; }
.ch { padding: 4px 10px 2px; font-size: 8.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; color: rgba(255,255,255,.42); }
.sub { position: absolute; left: calc(100% - 4px); top: -4px; background: rgba(5,7,18,.97); border: 1px solid rgba(255,255,255,.11); border-radius: 9px; padding: 4px; min-width: 165px; display: none; box-shadow: 0 10px 40px rgba(0,0,0,.75); backdrop-filter: blur(20px); z-index: 10001; }
.ci:hover .sub { display: block; }

/* ── STATUS BAR ── */
#st { background: var(--s0); border-top: 1px solid var(--bd); display: flex; align-items: center; padding: 0 12px; gap: 16px; }
.sb- { font-size: 8.5px; color: var(--tx2); }
.sb- span { color: rgba(255,255,255,.38); }

/* ── UNDO / REDO BUTTONS ── */
.undo-grp { display: flex; gap: 2px; align-items: center; margin-left: 4px; flex-shrink: 0; }
.undo-btn { width: 28px; height: 27px; border-radius: 5px; border: 1px solid var(--bd); background: transparent; color: var(--tx2); font-size: 14px; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: .1s; }
.undo-btn:hover { background: rgba(255,255,255,.06); color: var(--tx); }
.hist-ct { font-size: 7.5px; color: var(--tx3); font-family: var(--m); white-space: nowrap; padding: 0 3px; }

/* ── VERSION CONTROL PANEL ── */
.vc-panel { position: fixed; left: 50%; top: 50%; transform: translate(-50%,-50%); width: 420px; max-height: 520px; background: rgba(8,11,22,.98); border: 1px solid rgba(255,255,255,.12); border-radius: 14px; box-shadow: 0 24px 80px rgba(0,0,0,.85); z-index: 9998; display: none; flex-direction: column; overflow: hidden; backdrop-filter: blur(20px); font-family: var(--f); }
.vc-head { height: 44px; padding: 0 14px; display: flex; align-items: center; border-bottom: 1px solid var(--bd); flex-shrink: 0; }
.vc-title { font-size: 12px; font-weight: 700; color: #fff; flex: 1; letter-spacing: -.3px; }
.vc-x { width: 22px; height: 22px; border-radius: 4px; border: none; background: transparent; color: var(--tx2); cursor: pointer; font-size: 11px; transition: .1s; }
.vc-x:hover { background: rgba(255,255,255,.08); color: #fff; }
.vc-new { padding: 10px 14px; display: flex; gap: 6px; border-bottom: 1px solid var(--bd); flex-shrink: 0; }
.vc-name-in { flex: 1; height: 28px; background: rgba(0,0,0,.3); border: 1px solid rgba(255,255,255,.1); border-radius: 6px; color: var(--tx); font-family: var(--f); font-size: 10px; padding: 0 9px; outline: none; }
.vc-name-in:focus { border-color: rgba(255,107,53,.5); }
.vc-savebtn { height: 28px; padding: 0 14px; border-radius: 6px; border: none; background: var(--or); color: #fff; font-family: var(--f); font-size: 10px; font-weight: 700; cursor: pointer; transition: .1s; white-space: nowrap; }
.vc-savebtn:hover { background: #ff8855; }
.vc-list { flex: 1; overflow-y: auto; padding: 6px 8px; }
.vc-list::-webkit-scrollbar { width: 4px; }
.vc-list::-webkit-scrollbar-thumb { background: rgba(255,255,255,.08); border-radius: 2px; }
.vc-item { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 7px; border: 1px solid transparent; margin-bottom: 3px; transition: .1s; }
.vc-item:hover { background: rgba(255,255,255,.04); border-color: var(--bd); }
.vc-thumb {
  width: 64px;
  height: 48px;
  border-radius: 5px;
  background: linear-gradient(180deg, #0061ff 0%, #1a8aee 50%, #60efff 100%);
  border: 1px solid rgba(255,255,255,.12);
  flex-shrink: 0;
  background-size: cover;
  background-position: center;
  cursor: pointer;
  transition: transform .1s;
}
.vc-thumb:hover {
  transform: scale(1.05);
}

/* Thumbnail preview popup */
.thumb-preview {
  position: fixed;
  z-index: 99999;
  pointer-events: none;
  opacity: 0;
  transition: opacity .15s ease;
  max-width: 400px;
  max-height: 300px;
}
.thumb-preview.show {
  opacity: 1;
}
.thumb-preview img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  border: 2px solid rgba(255,255,255,.2);
  box-shadow: 0 12px 48px rgba(0,0,0,.9);
  background: #000;
}
.vc-info { flex: 1; min-width: 0; }
.vc-vname { font-size: 11px; font-weight: 600; color: rgba(255,255,255,.7); margin-bottom: 3px; }
.vc-vdate { font-size: 8.5px; color: rgba(255,255,255,.45); font-family: var(--m); margin-bottom: 2px; }
.vc-vmeta { font-size: 8px; color: var(--tx3); font-family: var(--m); }
.vc-btns { display: flex; gap: 4px; flex-shrink: 0; }
.vc-rbtn { height: 24px; padding: 0 12px; border-radius: 5px; border: 1px solid rgba(61,158,255,.3); background: rgba(61,158,255,.08); color: var(--ac); font-family: var(--f); font-size: 9px; font-weight: 700; cursor: pointer; transition: .1s; }
.vc-rbtn:hover { background: rgba(61,158,255,.18); }
.vc-dbtn { width: 24px; height: 24px; border-radius: 5px; border: none; background: transparent; color: rgba(255,100,100,.4); cursor: pointer; font-size: 9px; transition: .1s; }
.vc-dbtn:hover { background: rgba(200,50,50,.12); color: #f88; }
.vc-empty { padding: 28px; text-align: center; color: var(--tx3); font-size: 10px; }

/* ── EXPORT MODAL ── */
.exp-modal { position: fixed; inset: 0; background: rgba(0,0,0,.6); z-index: 9998; display: none; align-items: center; justify-content: center; backdrop-filter: blur(4px); }
.exp-box { width: 360px; background: rgba(8,11,22,.98); border: 1px solid rgba(255,255,255,.12); border-radius: 14px; box-shadow: 0 24px 80px rgba(0,0,0,.85); overflow: hidden; font-family: var(--f); }
.exp-head { height: 44px; padding: 0 14px; display: flex; align-items: center; border-bottom: 1px solid var(--bd); }
.exp-title { font-size: 12px; font-weight: 700; color: #fff; flex: 1; }
.exp-x { width: 22px; height: 22px; border-radius: 4px; border: none; background: transparent; color: var(--tx2); cursor: pointer; font-size: 11px; transition: .1s; }
.exp-x:hover { background: rgba(255,255,255,.08); color: #fff; }
.exp-body { padding: 14px; }
.exp-sect { font-size: 8px; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--tx3); margin: 10px 0 6px; }
.exp-sect:first-child { margin-top: 0; }
.exp-grid { display: flex; gap: 6px; }
.exp-fmt { flex: 1; height: 34px; border-radius: 7px; border: 1px solid var(--bd); background: var(--s1); color: var(--tx2); font-family: var(--f); font-size: 10px; font-weight: 600; cursor: pointer; transition: .12s; }
.exp-fmt:hover { background: var(--s2); color: var(--tx); }
.exp-fmt.on { background: var(--or2); border-color: var(--orb); color: var(--or); }
.exp-fmt.exp-dis { opacity: .3; cursor: not-allowed; }
.exp-hint { font-size: 9px; color: var(--tx3); text-align: center; margin: 10px 0; font-family: var(--m); }
.exp-go { width: 100%; height: 36px; border-radius: 8px; border: none; background: var(--or); color: #fff; font-family: var(--f); font-size: 11px; font-weight: 700; cursor: pointer; margin-top: 6px; transition: .12s; }
.exp-go:hover { background: #ff8855; }



/* ── ABOUT MODAL — Photoshop style ── */
.about-modal { position: fixed; inset: 0; background: rgba(0,0,0,.75); z-index: 9999; display: none; align-items: center; justify-content: center; backdrop-filter: blur(12px); }
.about-modal.on { display: flex; animation: abFade .18s ease; }
@keyframes abFade { from { opacity:0; transform: scale(.97); } to { opacity:1; transform: scale(1); } }
.about-box { width: 420px; background: #0d1017; border: 1px solid rgba(255,255,255,.1); border-radius: 12px; box-shadow: 0 40px 120px rgba(0,0,0,.95), 0 0 0 1px rgba(255,255,255,.04); overflow: hidden; font-family: var(--f); }

/* Splash panel */
.about-splash { position: relative; height: 210px; background: #060a18; display: flex; flex-direction: column; align-items: center; justify-content: center; overflow: hidden; border-bottom: 1px solid rgba(255,255,255,.06); }
.about-fight-bg { position: absolute; inset: 0; background-size: cover; background-position: center 25%; filter: saturate(1.1) brightness(0.55); }
.about-splash-overlay { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(4,10,28,.45) 0%, rgba(4,10,28,.55) 50%, rgba(4,10,28,.92) 100%); }
.about-noise { position: absolute; inset: 0; z-index: 2; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E"); opacity: .4; pointer-events:none; }
.about-splash::before { content:''; position:absolute; inset:0; background: radial-gradient(ellipse 60% 50% at 50% 60%, rgba(61,158,255,.15) 0%, transparent 70%); }
.about-splash::after { content:''; position:absolute; bottom:0; left:0; right:0; height:1px; background: linear-gradient(90deg, transparent, rgba(61,158,255,.3), transparent); }
.about-logo-wrap { position: relative; z-index: 3; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.about-hexwrap { filter: drop-shadow(0 0 18px rgba(61,158,255,.35)); }
.about-appname { font-size: 28px; font-weight: 900; color: #fff; letter-spacing: -1px; line-height: 1; }
.about-tagline { font-size: 9px; color: rgba(255,255,255,.55); letter-spacing: .2em; text-transform: uppercase; font-family: var(--m); text-shadow: 0 1px 6px rgba(0,0,0,.9); }
.about-version-badge { position: absolute; top: 14px; right: 16px; font-size: 9px; font-weight: 700; color: rgba(255,255,255,.85); background: rgba(0,0,0,.55); border: 1px solid rgba(255,255,255,.2); border-radius: 4px; padding: 3px 8px; font-family: var(--m); letter-spacing: .08em; z-index: 4; backdrop-filter: blur(4px); }

/* Body */
.about-body { padding: 22px 28px 24px; text-align: center; }
.about-heart-row { display: flex; align-items: center; justify-content: center; gap: 7px; margin-bottom: 6px; }
.about-heart { font-size: 14px; color: #e8445a; filter: drop-shadow(0 0 6px rgba(232,68,90,.5)); animation: heartbeat 1.8s ease-in-out infinite; }
@keyframes heartbeat { 0%,100%{transform:scale(1)} 14%{transform:scale(1.25)} 28%{transform:scale(1)} 42%{transform:scale(1.15)} }
.about-heart-txt { font-size: 11px; color: rgba(255,255,255,.45); letter-spacing: .04em; }
.about-studio-name { font-size: 26px; font-weight: 900; color: #fff; letter-spacing: -.8px; line-height: 1; margin-bottom: 3px; }
.about-studio-url { font-size: 10px; color: var(--ac); font-family: var(--m); letter-spacing: .08em; margin-bottom: 18px; }
.about-divider { height: 1px; background: linear-gradient(90deg, transparent, rgba(255,255,255,.1), transparent); margin: 0 0 18px; }
.about-credit-row { margin-bottom: 18px; }
.about-credit-label { font-size: 9px; text-transform: uppercase; letter-spacing: .18em; color: rgba(255,255,255,.28); margin-bottom: 5px; }
.about-credit-name { font-size: 18px; font-weight: 800; color: rgba(255,255,255,.88); letter-spacing: -.3px; margin-bottom: 8px; }
.about-credit-links { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; }
.about-al { font-size: 9px; color: rgba(255,255,255,.35); text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.12); padding-bottom: 1px; transition: .1s; font-family: var(--m); }
.about-al:hover { color: var(--ac); border-color: var(--ac); }
.about-meta { font-size: 9px; color: rgba(255,255,255,.2); font-family: var(--m); margin-bottom: 28px; letter-spacing: .04em; }
.about-close { width: 100%; height: 38px; border-radius: 7px; border: none; background: linear-gradient(135deg, #1a4fc4, #0061ff); color: #fff; font-family: var(--f); font-size: 11px; font-weight: 700; cursor: pointer; transition: .15s; letter-spacing: .03em; }
.about-close:hover { background: linear-gradient(135deg, #2560d8, #1a7aff); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(61,158,255,.3); }

/* ── QUAD VIEW DIVIDER ── */
/* .quad-active removed — no dark override needed, panels match viewport gradient */

/* ── PILL ACTIVE STATE ── */
.pill.active { background: var(--ac2); border-color: var(--acb); color: var(--ac); }

/* ── LOGO IMAGE ── */
.about-logo-img { 
  width: 200px; height: auto; 
  object-fit: contain; 
  background: none;
  filter: drop-shadow(0 2px 20px rgba(0,0,0,1)) drop-shadow(0 0 30px rgba(61,158,255,.35));
  margin-bottom: 4px;
}
.about-hexwrap { display: none; } /* deprecated */
.about-appname { display: none; } /* name is now in the logo image */

/* ── XYZ NUDGE MODAL ── */
#sel-modal {
  position: fixed; inset: 0;
  display: none; pointer-events: none;
  z-index: 8000;
}
#sel-modal.on { display: block; pointer-events: all; }
#sel-modal-box {
  position: absolute; top: 52px; right: 318px;
  width: 224px;
  background: rgba(14,18,30,0.97);
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 10px;
  padding: 12px 14px 14px;
  box-shadow: 0 8px 40px rgba(0,0,0,.7);
  backdrop-filter: blur(16px);
  pointer-events: all;
}
#sel-modal-head {
  display: flex; align-items: center;
  justify-content: space-between;
  margin-bottom: 9px;
}
#sel-modal-title {
  font-size: 10px; font-weight: 700;
  letter-spacing: .07em; color: var(--tx);
}
#sel-modal-head button {
  background: none; border: none;
  color: rgba(255,255,255,.35); cursor: pointer;
  font-size: 11px; padding: 2px 5px; border-radius: 4px;
}
#sel-modal-head button:hover { color: #fff; background: rgba(255,255,255,.08); }
.sel-modal-hint {
  font-size: 8px; color: var(--tx3);
  letter-spacing: .04em; margin-bottom: 5px; line-height: 1.6;
}
.sm-row { display: flex; align-items: center; gap: 8px; margin-bottom: 5px; }
.sm-axis {
  font-size: 9px; font-weight: 800;
  font-family: var(--m); width: 12px;
  flex-shrink: 0; text-align: center;
}
.sm-axis.x { color: var(--xc); }
.sm-axis.y { color: var(--yc); }
.sm-axis.z { color: var(--zc); }
.sm-val {
  font-family: var(--m); font-size: 9px;
  color: rgba(255,255,255,.5); min-width: 54px;
  background: rgba(0,0,0,.3);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 4px; padding: 3px 6px;
}
.sm-slider {
  flex: 1; height: 3px; cursor: pointer;
  -webkit-appearance: none; appearance: none;
  border-radius: 2px; outline: none;
  background: rgba(255,255,255,.1);
}
.sm-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 13px; height: 13px; border-radius: 50%;
  cursor: pointer; background: var(--or);
  border: 2px solid rgba(255,255,255,.25);
  box-shadow: 0 0 6px rgba(255,107,53,.45);
}

/* ── RADIAL MARKING MENU ── */
#radial-bg {
  position: fixed; inset: 0;
  display: none; z-index: 10000;
  background: transparent;
}
#radial-inner {
  position: absolute;
  width: 320px; height: 320px;
  margin-left: -160px; margin-top: -160px;
  pointer-events: all;
}
#radial-inner.rp {
  animation: rPop .13s cubic-bezier(.22,.9,.42,1.12) forwards;
}
@keyframes rPop {
  from { transform: scale(.55); opacity: 0; }
  to   { transform: scale(1);   opacity: 1; }
}
/* Wedge segments */
.rs {
  fill: rgba(255,255,255,.03);
  stroke: rgba(255,255,255,.07);
  stroke-width: .8;
  cursor: pointer;
  transition: fill .08s, stroke .08s;
}
.rs:hover,
.rs[data-hov] {
  fill: rgba(61,158,255,.22);
  stroke: rgba(61,158,255,.6);
  stroke-width: 1.2;
}
.rs[data-hov="danger"],
.rs[data-hov="danger"]:hover {
  fill: rgba(255,80,80,.22);
  stroke: rgba(255,100,100,.65);
}
/* Labels around the ring */
.rl {
  position: absolute;
  transform: translate(-50%, -50%);
  display: flex; flex-direction: column;
  align-items: center; gap: 2px;
  pointer-events: none;
  text-align: center;
  min-width: 54px;
  cursor: pointer;
  transition: opacity .07s;
}
.rl[data-hov] .rl-i,
.rl[data-hov] .rl-t { color: #fff; opacity: 1; }
.rl-i {
  font-size: 14px; line-height: 1;
  color: rgba(255,255,255,.65);
  transition: color .08s;
}
.rl-t {
  font-size: 9px; font-weight: 700;
  letter-spacing: .04em;
  color: rgba(255,255,255,.55);
  font-family: var(--f);
  white-space: nowrap;
  transition: color .08s;
}
.rl-k {
  font-size: 8px;
  color: rgba(255,255,255,.25);
  font-family: var(--m);
}
/* Center label */
#radial-clbl {
  position: absolute;
  left: 160px; top: 160px;
  transform: translate(-50%, -50%);
  font-size: 9px; font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: rgba(255,255,255,.45);
  font-family: var(--f);
  white-space: nowrap;
  pointer-events: none;
  text-align: center;
}

/* ── CHAMFER HUD ── */
#chf-hud {
  position: fixed; inset: 0;
  display: none; pointer-events: none;
  z-index: 8100;
}
#chf-hud.on { display: block; pointer-events: none; }
#chf-hud-box {
  position: absolute;
  top: 52px; left: 50%; transform: translateX(-50%);
  width: 260px;
  background: rgba(10,14,26,0.97);
  border: 1px solid rgba(34,212,138,.28);
  border-radius: 10px;
  padding: 12px 14px 14px;
  box-shadow: 0 8px 40px rgba(0,0,0,.7), 0 0 0 1px rgba(34,212,138,.08);
  backdrop-filter: blur(18px);
  pointer-events: all;
}
#chf-hud-head {
  display: flex; align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
#chf-hud-title {
  font-size: 10px; font-weight: 700;
  letter-spacing: .08em; color: var(--gr);
}
#chf-hud-head button {
  background: none; border: none;
  color: rgba(255,255,255,.3); cursor: pointer;
  font-size: 11px; padding: 2px 5px; border-radius: 4px;
}
#chf-hud-head button:hover { color: #fff; background: rgba(255,255,255,.08); }
.chf-hint {
  font-size: 8px; color: var(--tx3);
  letter-spacing: .04em; margin-bottom: 10px;
}
.chf-row {
  display: flex; align-items: center; gap: 8px; margin-bottom: 12px;
}
.chf-lbl {
  font-size: 9px; color: rgba(255,255,255,.55);
  flex-shrink: 0; width: 46px;
}
.chf-slider {
  flex: 1; height: 4px; cursor: pointer;
  -webkit-appearance: none; appearance: none;
  border-radius: 2px; outline: none;
  background: linear-gradient(to right, rgba(34,212,138,.7) 0%, rgba(34,212,138,.7) var(--pct,30%), rgba(255,255,255,.1) var(--pct,30%));
}
.chf-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px; height: 16px; border-radius: 50%;
  cursor: pointer; background: var(--gr);
  border: 2px solid rgba(255,255,255,.3);
  box-shadow: 0 0 8px rgba(34,212,138,.5);
}
.chf-val {
  font-family: var(--m); font-size: 9px;
  color: var(--gr); min-width: 36px;
  text-align: right;
}
.chf-btns {
  display: flex; gap: 6px;
}
.chf-cancel {
  flex: 1; height: 26px; border-radius: 5px;
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(255,255,255,.04);
  color: rgba(255,255,255,.4);
  font-family: var(--f); font-size: 9px; font-weight: 600;
  cursor: pointer; transition: .1s;
}
.chf-cancel:hover { background: rgba(255,255,255,.08); color: #fff; }
.chf-apply {
  flex: 2; height: 26px; border-radius: 5px;
  border: none; background: var(--gr);
  color: #061a0e;
  font-family: var(--f); font-size: 9px; font-weight: 700;
  cursor: pointer; transition: .12s;
}
.chf-apply:hover { background: #3dffa0; }

/* ── QUAD PANEL LABELS ── */
#quad-labels {
  display: none;
  position: absolute; inset: 0;
  pointer-events: none;
  z-index: 5;
}
#quad-labels.on { display: block; }

/* Panel divider lines drawn via CSS — clean 1px separators */
#quad-labels.on::before {
  content: '';
  position: absolute; inset: 0;
  background:
    linear-gradient(to right, transparent calc(50% - 0.5px), rgba(255,255,255,.18) calc(50% - 0.5px), rgba(255,255,255,.18) calc(50% + 0.5px), transparent calc(50% + 0.5px)),
    linear-gradient(to bottom, transparent calc(50% - 0.5px), rgba(255,255,255,.18) calc(50% - 0.5px), rgba(255,255,255,.18) calc(50% + 0.5px), transparent calc(50% + 0.5px));
  pointer-events: none;
}

/* Flat corner label — no border, no pill, sits flush in the top-left of each panel */
.ql {
  position: absolute;
  pointer-events: all;
  padding: 5px 9px 4px 8px;
  border: none;
  border-radius: 0 0 6px 0;
  background: rgba(0,0,0,.32);
  color: rgba(255,255,255,.72);
  font-family: var(--f); font-size: 9.5px; font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
  backdrop-filter: blur(4px);
  transition: background .1s, color .1s;
  white-space: nowrap;
}
.ql:hover { background: rgba(61,158,255,.28); color: #fff; }

/* Each label anchors to the top-left corner of its quadrant */
#ql-0 { top: 0; left: 0; }
#ql-1 { top: 0; left: 50%; }
#ql-2 { top: 50%; left: 0; }
#ql-3 { top: 50%; left: 50%; }

/* ═══════════════════════════════════════════════
   FORGE TOOLTIP
═══════════════════════════════════════════════ */
#ft {
  position: fixed;
  z-index: 99999;
  pointer-events: none;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity .12s ease, transform .12s ease;
  max-width: 220px;

  background: rgba(6, 9, 20, 0.97);
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 7px;
  padding: 7px 10px 8px;
  box-shadow: 0 6px 28px rgba(0,0,0,.75), 0 0 0 1px rgba(255,255,255,.03);
  backdrop-filter: blur(14px);
}
#ft.on {
  opacity: 1;
  transform: translateY(0);
}
#ft-name {
  font-size: 10.5px;
  font-weight: 700;
  color: rgba(255,255,255,.92);
  letter-spacing: .03em;
  margin-bottom: 3px;
  font-family: var(--f);
}
#ft-desc {
  font-size: 9px;
  color: rgba(255,255,255,.48);
  line-height: 1.55;
  font-family: var(--f);
}
#ft-key {
  display: inline-block;
  margin-top: 5px;
  font-size: 8px;
  font-family: var(--m);
  font-weight: 600;
  color: var(--ye);
  background: rgba(255,209,102,.08);
  border: 1px solid rgba(255,209,102,.22);
  border-radius: 4px;
  padding: 1px 6px;
  letter-spacing: .06em;
}

/* ═══════════════════════════════════════════════
   HELP MODAL
═══════════════════════════════════════════════ */
#help-modal {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.7);
  z-index: 9990;
  display: none;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
}
#help-modal.on { display: flex; animation: helpFade .16s ease; }
@keyframes helpFade { from { opacity:0; } to { opacity:1; } }

#help-box {
  width: 820px;
  max-width: calc(100vw - 32px);
  height: 600px;
  max-height: calc(100vh - 48px);
  background: #080c18;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 14px;
  box-shadow: 0 32px 100px rgba(0,0,0,.95), 0 0 0 1px rgba(255,255,255,.04);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  font-family: var(--f);
}

/* Header */
#help-head {
  height: 52px;
  padding: 0 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  flex-shrink: 0;
  background: rgba(255,255,255,.02);
}
#help-logo {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-shrink: 0;
}
#help-logo-icon {
  font-size: 14px;
  color: var(--ac);
  filter: drop-shadow(0 0 6px rgba(61,158,255,.6));
}
#help-title {
  font-size: 12px;
  font-weight: 700;
  color: rgba(255,255,255,.85);
  letter-spacing: -.2px;
  white-space: nowrap;
}
#help-search-wrap {
  flex: 1;
  max-width: 260px;
  margin-left: auto;
}
#help-search {
  width: 100%;
  height: 28px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 6px;
  color: var(--tx);
  font-family: var(--f);
  font-size: 10px;
  padding: 0 10px;
  outline: none;
  transition: .1s;
}
#help-search::placeholder { color: rgba(255,255,255,.25); }
#help-search:focus { border-color: rgba(61,158,255,.45); background: rgba(61,158,255,.04); }
#help-close {
  width: 26px; height: 26px;
  border-radius: 6px;
  border: none;
  background: transparent;
  color: rgba(255,255,255,.3);
  cursor: pointer;
  font-size: 11px;
  transition: .1s;
  flex-shrink: 0;
}
#help-close:hover { background: rgba(255,255,255,.08); color: #fff; }

/* Body layout */
#help-body {
  display: flex;
  flex: 1;
  overflow: hidden;
}

/* Side nav */
#help-nav {
  width: 130px;
  flex-shrink: 0;
  border-right: 1px solid rgba(255,255,255,.07);
  display: flex;
  flex-direction: column;
  padding: 10px 6px;
  gap: 1px;
  overflow-y: auto;
  background: rgba(0,0,0,.2);
}
#help-nav::-webkit-scrollbar { display: none; }
.hn {
  width: 100%;
  height: 30px;
  border-radius: 6px;
  border: none;
  background: transparent;
  color: rgba(255,255,255,.4);
  font-family: var(--f);
  font-size: 10px;
  font-weight: 500;
  text-align: left;
  padding: 0 10px;
  cursor: pointer;
  transition: .1s;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hn:hover { background: rgba(255,255,255,.05); color: rgba(255,255,255,.75); }
.hn.on { background: rgba(61,158,255,.12); color: var(--ac); border: 1px solid rgba(61,158,255,.2); }

/* Content */
#help-content {
  flex: 1;
  overflow-y: auto;
  padding: 24px 28px 32px;
}
#help-content::-webkit-scrollbar { width: 4px; }
#help-content::-webkit-scrollbar-thumb { background: rgba(255,255,255,.08); border-radius: 2px; }

.hs { display: none; }
.hs:first-child { display: block; }

.hs-h {
  font-size: 16px;
  font-weight: 800;
  color: rgba(255,255,255,.9);
  letter-spacing: -.3px;
  margin-bottom: 8px;
}
.hs-p {
  font-size: 10.5px;
  color: rgba(255,255,255,.45);
  line-height: 1.7;
  margin-bottom: 16px;
  max-width: 580px;
}

/* Help cards */
.hcard {
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 8px;
  padding: 10px 14px;
  margin-bottom: 8px;
  transition: .12s;
}
.hcard.hl {
  border-color: rgba(61,158,255,.35);
  background: rgba(61,158,255,.05);
}
.hcard-label {
  font-size: 10.5px;
  font-weight: 700;
  color: rgba(255,255,255,.78);
  margin-bottom: 4px;
}
.hcard-label kbd {
  display: inline-block;
  font-family: var(--m);
  font-size: 8.5px;
  color: var(--ye);
  background: rgba(255,209,102,.08);
  border: 1px solid rgba(255,209,102,.2);
  border-radius: 3px;
  padding: 0 5px;
  margin-left: 4px;
  vertical-align: middle;
}
.hcard-desc {
  font-size: 9.5px;
  color: rgba(255,255,255,.45);
  line-height: 1.65;
}
.hcard-desc kbd {
  font-family: var(--m);
  font-size: 8px;
  color: rgba(255,255,255,.7);
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 3px;
  padding: 0 5px;
}
.hcard-desc strong { color: rgba(255,255,255,.7); }
.hcard-desc code {
  font-family: var(--m);
  font-size: 8.5px;
  color: var(--ac);
  background: rgba(61,158,255,.08);
  border-radius: 3px;
  padding: 0 4px;
}

/* Shortcuts table */
.hkb-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 12px;
  max-width: 500px;
}
.hkb-sec {
  grid-column: 1 / -1;
  font-size: 8px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: rgba(255,255,255,.25);
  margin-top: 14px;
  margin-bottom: 2px;
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.hkb-row {
  display: contents;
}
.hkb-row span {
  font-size: 10px;
  color: rgba(255,255,255,.55);
  padding: 2px 0;
  align-self: center;
}
.hkb-row kbd {
  font-family: var(--m);
  font-size: 8.5px;
  color: var(--ye);
  background: rgba(255,209,102,.07);
  border: 1px solid rgba(255,209,102,.2);
  border-radius: 4px;
  padding: 2px 7px;
  white-space: nowrap;
  align-self: center;
  justify-self: end;
}

/* ── Loop Cut HUD (reuses chamfer HUD layout) ──────────────────────── */
#lc-hud {
  position: fixed; inset: 0;
  display: none; pointer-events: none;
  z-index: 800;
}
#lc-hud.on { display: block; pointer-events: none; }
#lc-hud-box {
  position: absolute;
  top: 60px; left: 50%; transform: translateX(-50%);
  background: rgba(18,24,34,.96);
  border: 1px solid rgba(0,229,255,.25);
  border-radius: 10px;
  padding: 12px 16px 10px;
  min-width: 280px;
  pointer-events: all;
  box-shadow: 0 4px 32px rgba(0,0,0,.6);
}
#lc-hud-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 8px;
}
#lc-hud-head span { font-size: 12px; font-weight: 700; color: #00e5ff; letter-spacing: .05em; }
#lc-hud-head button {
  background: none; border: none; color: rgba(255,255,255,.5);
  font-size: 13px; cursor: pointer; padding: 2px 6px; border-radius: 4px;
}
#lc-hud-head button:hover { color: #fff; background: rgba(255,255,255,.08); }

/* Accent styles for new Loop/Ring buttons */
.eb-hi {
  border-left: 2px solid rgba(0,229,255,.5) !important;
}
.eb-cut {
  border-left: 2px solid rgba(255,209,102,.6) !important;
  color: rgba(255,209,102,.9) !important;
}

/* ═══════════════════════════════════════════════ RENDER MODAL ══ */
#render-modal {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.72);
  z-index: 9992;
  display: none;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
}
#render-modal.on { display: flex; animation: helpFade .14s ease; }

#render-box {
  width: 760px;
  max-width: calc(100vw - 24px);
  max-height: calc(100vh - 40px);
  background: #080c18;
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 14px;
  box-shadow: 0 32px 100px rgba(0,0,0,.95);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  font-family: var(--f);
}

#render-head {
  height: 48px;
  padding: 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255,255,255,.08);
  flex-shrink: 0;
}
#render-title {
  font-size: 12px;
  font-weight: 700;
  color: rgba(255,255,255,.85);
  letter-spacing: .02em;
}
#render-close {
  width: 26px; height: 26px;
  border-radius: 6px; border: none;
  background: transparent;
  color: rgba(255,255,255,.3);
  cursor: pointer; font-size: 11px;
}
#render-close:hover { background: rgba(255,255,255,.08); color: #fff; }

#render-body {
  display: flex;
  flex: 1;
  overflow: hidden;
  min-height: 0;
}

/* Left — preview */
#render-preview-wrap {
  flex: 1;
  background: #040710;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px;
  gap: 8px;
  min-width: 0;
}
#render-preview {
  max-width: 100%;
  max-height: 340px;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,.07);
  object-fit: contain;
}
#render-preview-hint {
  font-size: 9px;
  color: rgba(255,255,255,.2);
  letter-spacing: .05em;
  text-transform: uppercase;
}

/* Right — settings */
#render-settings {
  width: 230px;
  flex-shrink: 0;
  border-left: 1px solid rgba(255,255,255,.07);
  overflow-y: auto;
  padding: 14px 14px 20px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
#render-settings::-webkit-scrollbar { width: 3px; }
#render-settings::-webkit-scrollbar-thumb { background: rgba(255,255,255,.08); }

.rs-section {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: rgba(255,255,255,.25);
  margin-top: 12px;
  margin-bottom: 4px;
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.rs-section:first-child { margin-top: 0; }

.rs-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 3px 4px;
  border-radius: 5px;
  cursor: pointer;
  transition: background .08s;
  font-size: 10.5px;
  color: rgba(255,255,255,.65);
}
.rs-row:hover { background: rgba(255,255,255,.04); }
.rs-row input[type="checkbox"] {
  accent-color: var(--ac);
  width: 13px; height: 13px;
  flex-shrink: 0;
  cursor: pointer;
}
.rs-row input[type="color"] {
  width: 22px; height: 22px;
  border: none; border-radius: 4px;
  padding: 0; cursor: pointer;
  flex-shrink: 0;
}
.rs-sub { padding-left: 18px; }

.rs-format-row { gap: 6px; padding: 4px 0; }
.rs-fmt {
  flex: 1;
  height: 28px;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(255,255,255,.04);
  color: rgba(255,255,255,.45);
  font-family: var(--f);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: .1s;
}
.rs-fmt.on { background: rgba(61,158,255,.18); border-color: rgba(61,158,255,.45); color: var(--ac); }
.rs-fmt:hover:not(.on) { background: rgba(255,255,255,.07); color: rgba(255,255,255,.7); }

.rs-size-row { gap: 8px; padding: 4px 0; }
.rs-lbl { font-size: 10px; color: rgba(255,255,255,.35); flex-shrink: 0; }
#ro-res {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 5px;
  color: rgba(255,255,255,.7);
  font-family: var(--f);
  font-size: 10px;
  padding: 3px 6px;
  cursor: pointer;
  flex: 1;
}
#ro-res option { background: #10141e; }

/* Footer */
#render-footer {
  height: 52px;
  padding: 0 18px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  border-top: 1px solid rgba(255,255,255,.07);
  flex-shrink: 0;
}
#render-cancel {
  height: 30px; padding: 0 14px;
  border-radius: 7px;
  border: 1px solid rgba(255,255,255,.1);
  background: transparent;
  color: rgba(255,255,255,.45);
  font-family: var(--f); font-size: 11px;
  cursor: pointer;
}
#render-cancel:hover { background: rgba(255,255,255,.06); color: rgba(255,255,255,.8); }
#render-go {
  height: 30px; padding: 0 18px;
  border-radius: 7px;
  border: none;
  background: var(--ac);
  color: #fff;
  font-family: var(--f); font-size: 11px; font-weight: 700;
  cursor: pointer;
  transition: .1s;
}
#render-go:hover { filter: brightness(1.15); }

/* ═══════════════════════════════════════════════
   RESPONSIVE / COLLAPSIBLE PANELS
   Collapse is JS-driven via CSS vars on #main.
   Breakpoints auto-collapse panels on small screens.
═══════════════════════════════════════════════ */

/* Scene & right panel transition for collapse */
#scene, #rp {
  transition: opacity .18s ease;
}

/* ── Auto-collapse panels on smaller screens ── */
@media (max-width: 1100px) {
  :root {
    --rp-w: 0px;
  }
  #rp { opacity: 0; pointer-events: none; }
  #rp-reopen { display: flex; }
}

@media (max-width: 900px) {
  :root {
    --scene-w: 0px;
  }
  #scene { opacity: 0; pointer-events: none; }
  #scene-reopen { display: flex; }
  #lt { width: 60px; padding: 6px 0; }
  .lt-b { width: 54px; height: 50px; }
  .lt-i { font-size: 22px; }
  .lt-k { font-size: 8px; }
}

/* ── ≤ 768px: tablet optimization ── */
@media (max-width: 768px) {
  #top { padding: 0 6px; gap: 4px; }
  .logo { margin-right: 8px; padding-right: 8px; }
  .logo-img { width: 30px; height: 30px; }
  .tg { margin: 0 4px; }
  .pill { font-size: 9px; padding: 0 10px; height: 32px; }
  .undo-grp { gap: 1px; }
  .undo-btn { width: 32px; height: 32px; font-size: 12px; }
}

/* ── ≤ 640px: compact mobile — show bottom bar ── */
@media (max-width: 640px) {
  /* Compact topbar on mobile */
  .mn:not(:first-of-type) { display: none; }
  .undo-grp { display: none; }
  #snpB, #wirB, #xrayB { display: none; }
  .pill:not(.blue) { display: none; }
  #top { padding: 0 4px; gap: 2px; height: 48px; }
  .logo { margin-right: 6px; padding-right: 6px; }
  .logo-img { width: 28px; height: 28px; }
  .tg { padding: 2px; }
  .tb { width: 36px; height: 36px; }

  /* Mobile file menu adjustments */
  .file-dropdown {
    left: 4px;
    right: 4px;
    min-width: auto;
    max-width: none;
    width: calc(100vw - 8px);
  }
  .fd-version-thumb { width: 56px; height: 42px; }
  .fd-version { gap: 8px; padding: 10px; }
  .fd-version-name { font-size: 11px; }
  .fd-version-meta { font-size: 9px; }

  /* Hide left toolbar on mobile */
  #lt { display: none; }
  :root { --scene-w: 0px; }
  #scene { display: none; }

  /* Adjust main layout for mobile */
  #main { grid-template-columns: 1fr; }

  /* Mobile bottom action bar */
  #mobile-bar { display: flex !important; }

  /* Adjust viewport for mobile */
  #vp { padding-bottom: 60px; }

  /* Adjust modals for mobile */
  .about-box { width: 90%; max-width: 380px; }
  #help-box { width: 95%; height: 80vh; }
  #help-nav { width: 100px; }
  #render-box { width: 95%; }
  #render-body { flex-direction: column; }
  #render-preview-wrap { min-height: 200px; }
  #render-settings { width: 100%; border-left: none; border-top: 1px solid rgba(255,255,255,.07); }
  .exp-box { width: 90%; }
  .vc-panel { width: 90%; }

  /* Mobile radial menu */
  #radial-inner { width: 280px; height: 280px; margin-left: -140px; margin-top: -140px; }

  /* Mobile chamfer/loop cut HUD */
  #chf-hud-box, #lc-hud-box, #sel-modal-box { width: 90%; max-width: 300px; }

  /* Make labels easier to tap */
  .vbadge { font-size: 9px; padding: 5px 10px; }
  .vcb { width: 38px; height: 38px; font-size: 10px; }

  /* Status bar */
  #st { font-size: 7.5px; padding: 0 8px; gap: 8px; }
  .sb- { font-size: 7.5px; }
}

/* ── Mobile landscape adjustments ── */
@media (max-width: 900px) and (orientation: landscape) {
  #top { height: 42px; }
  #app { grid-template-rows: 42px 1fr 18px; }
  #mobile-bar { height: 50px; }
  #mobile-bar button { height: 44px; font-size: 18px; }
  #mobile-bar button span { font-size: 7px; }
  #vp { padding-bottom: 50px; }
  #st { height: 18px; }
}

/* ── Prevent zoom on input focus (iOS Safari) ── */
@media (max-width: 640px) {
  input, select, textarea { font-size: 16px !important; }
}

/* ── Landscape orientation notice for very small heights ── */
@media (max-height: 500px) and (orientation: landscape) {
  .vcam-btns { display: none; }
  #vlabels { top: 6px; left: 6px; }
  .vbadge { padding: 3px 6px; font-size: 7px; }
}

/* ── Quad label opacity transition ── */
#vlabels, .vcam-btns {
  transition: opacity .2s;
}

/* ── Mobile bottom bar (hidden by default, shown at ≤640px) ── */
#mobile-bar {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: 60px;
  background: var(--s0);
  border-top: 1px solid var(--bd);
  align-items: center;
  justify-content: space-evenly;
  padding: 0 8px;
  z-index: 300;
  box-shadow: 0 -2px 10px rgba(0,0,0,.3);
}
#mobile-bar button {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px;
  min-width: 56px; height: 52px;
  border-radius: 10px;
  border: none;
  background: transparent;
  color: var(--tx2);
  font-size: 20px;
  cursor: pointer;
  transition: .12s;
  padding: 4px 8px;
  flex: 1;
  max-width: 80px;
}
#mobile-bar button span {
  font-size: 8px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--tx2);
}
#mobile-bar button:active {
  transform: scale(.95);
}
#mobile-bar button.active {
  background: var(--ac2);
  color: var(--ac);
}
#mobile-bar button.active span {
  color: var(--ac);
}

/* ── Prevent text selection on touch interactions ── */
#vp, #lt, canvas {
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

/* ── Touch target sizes — minimum 44px for iPad usability ── */
@media (pointer: coarse) {
  .tb { width: 44px; height: 44px; }
  .vcb { width: 44px; height: 44px; }
  .si { height: 44px; padding: 0 12px; }
  .mn { height: 44px; padding: 0 12px; font-size: 11px; }
  .ab { height: 44px; }
  .ql { padding: 10px 14px 8px; font-size: 11px; }
  .lt-b { width: 70px; height: 70px; }
  .pill { height: 44px; padding: 0 16px; font-size: 11px; }
  .rt { width: 44px; height: 44px; font-size: 14px; }
  .ib { width: 32px; height: 32px; font-size: 12px; }
  .ci { padding: 10px 14px; font-size: 12px; min-height: 44px; }
  .rs-row { padding: 8px 6px; min-height: 44px; }
  .hcard { padding: 14px 18px; }
  input[type=range] { height: 6px; }
  input[type=range]::-webkit-slider-thumb { width: 16px; height: 16px; }
  .ni { height: 36px; font-size: 11px; padding: 0 8px; }
}

