/* Living — design tokens, taken from the STUDIOSME VR Console redesign (10/2026).
   Dark sidebar, white main area, hairline-separated sections, uppercase micro-labels,
   underline inputs, pill buttons, purple accent. Inter everywhere. */
:root {
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --page-bg: #eef0f4;
  --bg: #ffffff;
  --fg: #1c1c24;
  --fg-2: #3a3a46;
  --fg-3: #5a5a68;
  --muted: #9a9aa6;
  --muted-2: #8a8a98;
  --hair: #ececf1;
  --hair-2: #f3f3f6;
  --border: #e4e4ea;
  --underline: #d6d6e0;
  --soft: #f0f0f4;
  --accent: #5b53e0;
  --accent-hover: #443cc4;
  --accent-soft: #f6f5fe;
  --accent-soft-2: #eceafd;
  --accent-ink: #ffffff;
  --accent-shadow: 0 2px 10px rgba(91, 83, 224, .35);
  --success: #1d7a3f;
  --warning: #a06b12;
  --danger: #b04a4a;
  --side-bg: #0e0e16;
  --side-fg: #c9c9d6;
  --side-label: #6d6d80;
  --side-hover: #1c1c2a;
  --side-active: rgba(91, 83, 224, .32);
  --side-hair: #1e1e2c;
  --toast-bg: #1c1c24;
  --radius-s: 6px;
  --radius-m: 9px;
  --radius-l: 14px;
  --radius-xl: 16px;
  --shadow-card: 0 8px 30px rgba(20, 20, 40, .08);
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; font-family: var(--font); font-size: 13.5px; line-height: 1.5; color: var(--fg); background: var(--bg); -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, p { margin: 0; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); text-decoration: underline; }
input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }

/* Micro label */
.lbl { font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.meta { font-size: 12.5px; color: var(--muted); }
.meta-2 { font-size: 12px; color: var(--fg-3); }
.num { font-variant-numeric: tabular-nums; }
.mono { font-family: ui-monospace, 'JetBrains Mono', Menlo, monospace; font-size: 11.5px; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; background: var(--accent); color: var(--accent-ink); font-size: 13px; font-weight: 600; padding: 10px 20px; border-radius: 999px; box-shadow: var(--accent-shadow); white-space: nowrap; transition: background .15s; }
.btn:hover { background: var(--accent-hover); }
.btn:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; }
.btn.sm { padding: 7px 14px; font-size: 12.5px; }
.btn.ghost { background: transparent; color: var(--fg-2); box-shadow: none; border: 1px solid var(--border); }
.btn.ghost:hover { background: var(--soft); color: var(--fg); }
.link { font-size: 12.5px; font-weight: 600; color: var(--fg-2); }
.link:hover { color: var(--accent); text-decoration: none; }
.link.accent { color: var(--accent); }
.link.danger { color: var(--danger); }
.link:disabled { opacity: .4; cursor: default; }

/* Inputs: underline only */
.in { border: 0; border-bottom: 1.5px solid var(--underline); background: transparent; padding: 6px 0; width: 100%; min-width: 0; font-size: 13.5px; outline: none; border-radius: 0; }
.in:focus { border-bottom-color: var(--accent); }
.in.right { text-align: right; }
select.in { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 10px) 50%, calc(100% - 5px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 20px; }
.search { display: flex; align-items: center; gap: 8px; border: 1px solid var(--border); border-radius: 10px; padding: 8px 12px; color: var(--muted); font-size: 13px; }
.search input { border: 0; outline: 0; flex: 1; min-width: 0; background: transparent; }
.kbd { font-size: 10px; font-weight: 600; color: var(--muted-2); border: 1px solid var(--border); border-radius: 6px; padding: 1px 6px; }

/* Status dot */
.st { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; white-space: nowrap; }
.st::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--muted); flex: none; }
.st.ok::before { background: var(--success); }
.st.warn::before { background: var(--warning); }
.st.acc::before { background: var(--accent); }
.st.danger::before { background: var(--danger); }

/* Hairline tables */
.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.tbl th { text-align: left; padding: 8px 10px 8px 0; border-bottom: 1px solid var(--hair); font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.tbl td { padding: 10px 10px 10px 0; border-bottom: 1px solid var(--hair-2); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl .r { text-align: right; padding-right: 0; }
.tbl tr:hover td { background: #fafafc; }
.tblwrap { overflow-x: auto; }

/* Sections */
.sec { border-top: 1px solid var(--hair); padding: 22px 0; }
.sec-h { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; flex-wrap: wrap; }
.sec-h h2 { font-size: 15px; font-weight: 700; letter-spacing: -.01em; }
.sec-h .sp { flex: 1; }
.field { display: flex; flex-direction: column; gap: 7px; border-top: 1px solid var(--hair-2); padding: 11px 0 2px; min-width: 0; }
.field .row1 { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--fg-2); }
.field .row1 .acts { margin-left: auto; display: flex; gap: 14px; font-size: 12.5px; font-weight: 600; }

/* Drop zone */
.drop { border: 1.5px dashed var(--underline); border-radius: var(--radius-xl); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: var(--muted); cursor: pointer; padding: 28px; text-align: center; transition: .15s; }
.drop:hover, .drop.over { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.drop b { font-size: 15px; font-weight: 600; color: var(--fg-2); }

/* Toast */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); display: flex; align-items: center; gap: 16px; background: var(--toast-bg); color: #fff; font-size: 13px; padding: 11px 12px 11px 18px; border-radius: 999px; box-shadow: 0 10px 30px rgba(20, 20, 40, .25); white-space: nowrap; z-index: 50; max-width: calc(100vw - 32px); }
.toast .tick { color: #a9a4f5; margin-right: 6px; }
.toast button { background: rgba(255, 255, 255, .12); font-weight: 600; padding: 5px 12px; border-radius: 999px; color: #fff; }

/* Pills (used sparingly: status counts, previews) */
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 600; padding: 2px 9px; border-radius: 999px; background: var(--soft); color: var(--fg-3); white-space: nowrap; }
.pill.acc { background: var(--accent-soft-2); color: var(--accent); }
.pill.warn { background: #fbf1df; color: var(--warning); }
.pill.ok { background: #e3f3e8; color: var(--success); }
.pill.dark { background: var(--fg); color: #fff; }

/* Toggle */
.tgl { width: 28px; height: 16px; border-radius: 999px; background: var(--border); position: relative; flex: none; transition: .15s; }
.tgl::after { content: ''; position: absolute; top: 2px; left: 2px; width: 12px; height: 12px; border-radius: 50%; background: #fff; transition: .15s; }
.tgl.on { background: var(--accent); }
.tgl.on::after { left: 14px; }

/* Progress bar */
.bar { height: 6px; border-radius: 999px; background: var(--hair); overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--accent); }

/* Focus */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
