/* Dark theme: neutral near-black surfaces with the UGC Lab yellow accent. Used when Settings › Appearance is Dark
   (or System on a dark device); it replaces the older warm-brown look, keeping the same layout. */
body.lab, body.lab.light, body.lab[data-page], body.lab[data-page].light {
  --ds-glass-1: #18181b; --ds-glass-2: #1c1c20; --ds-glass-3: #27272a; --ds-glass-solid: #18181b; --ds-well: #141416;
  --ds-stroke: #2a2a2e; --ds-stroke-hi: #2a2a2e; --ds-ink: #f4f4f5; --ds-ink-2: #d4d4d8; --ds-ink-3: #a1a1aa; --ds-ink-4: #71717a;
  --ds-accent-hi: #FFD84D; --ds-on-accent: #14120E; --ds-shadow: 0 1px 2px rgba(0,0,0,.4);
  --bg: #0e0e10 !important; --panel: #18181b !important; --panel2: #1c1c20 !important; --border: #2a2a2e !important; --text: #f4f4f5 !important; --muted: #a1a1aa !important;
  --lab-sidebar: #111113; --lab-inner: #18181b; --lab-line: #2a2a2e; --lab-row: #1c1c20; --lab-sub: #d4d4d8; --lab-dim: #a1a1aa; --lab-faint: #71717a; --lab-hover: #222226 !important;
  background: #0e0e10 !important; color: #f4f4f5 !important;
}
body.lab::before, body.lab::after, .ds-glass::before, .ds-glass::after { display: none !important; }
body.lab .ds-glass { background: #18181b !important; border: 1px solid #2a2a2e; box-shadow: none; }
body.lab #sidebar, body.lab[data-page] #sidebar, body.lab.light #sidebar { background: #111113 !important; border-right: 1px solid #222226 !important; -webkit-backdrop-filter: none; backdrop-filter: none; }
body.lab #topbar, body.lab[data-page] #topbar, body.lab.light #topbar { background: #111113 !important; border-bottom: 1px solid #222226 !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; box-shadow: none !important; }
body.lab #sidebar a:hover, body.lab #sidebar button:hover, body.lab #sidebar .on, body.lab #sidebar [aria-current] { background-color: #222226 !important; }
body.lab input, body.lab select, body.lab textarea { background: #141416 !important; color: #f4f4f5 !important; border: 1px solid #2a2a2e !important; box-shadow: none !important; }
body.lab .ds-btn { background: #1c1c20 !important; color: #f4f4f5 !important; border: 1px solid #2a2a2e !important; box-shadow: none !important; }
body.lab .ds-btn-primary, body.lab a.ds-btn-primary, body.lab .pl-newmain, body.lab .pl-newcaret { background: #FFD84D !important; background-image: none !important; color: #14120E !important; border-color: transparent !important; }
body.lab .ds-seg { background: #141416 !important; box-shadow: none !important; }
body.lab .ds-seg button[aria-pressed="true"] { background: #27272a !important; color: #f4f4f5 !important; box-shadow: none !important; }
body.lab dialog, body.lab dialog form, body.lab .ds-vmenu, body.lab .ds-bubble, body.lab .ds-caltip, body.lab .lab-drawer { background: #18181b !important; color: #f4f4f5 !important; border-color: #2a2a2e !important; }
body.lab .rf-board th, body.lab .lv0 { background: #222226 !important; } body.lab .rf-board tr.you td { background: #2a2610 !important; }
body.lab .ds-pop { background: #18181b !important; color: #f4f4f5 !important; box-shadow: 0 16px 40px -12px rgba(0,0,0,.6), inset 0 0 0 1px #2a2a2e !important; }
body.lab .ds-pop .ds-pop-opt.active, body.lab .ds-pop .ds-pop-opt:hover { background: #27272a !important; }
body.lab .wl .wl-brands button[aria-pressed="true"] { background: #232428 !important; border: 1.5px solid #f4f4f5 !important; color: #f4f4f5 !important; font-weight: 700; }
/* Dark popups: neutral sticky footer (no old brown band), styled file picker and checkboxes. */
body.lab .ds-postform .actions, body.lab .ds-dform .actions, body.lab .ds-cf-form .actions { background: #18181b !important; border-top: 1px solid #2a2a2e !important; box-shadow: 0 -10px 24px -16px rgba(0,0,0,.6) !important; }
body.lab dialog input[type=file] { color: #a1a1aa; font-size: 13px; }
body.lab dialog input[type=file]::file-selector-button { margin-right: 12px; padding: 8px 14px; border: 1px solid #3a3a40; border-radius: 10px; background: #232328; color: #f4f4f5; font-weight: 600; cursor: pointer; }
body.lab dialog input[type=file]::file-selector-button:hover { background: #2c2c32; }
body.lab dialog input[type=checkbox] { accent-color: #FFD84D; width: 16px; height: 16px; }
body.lab .post-video-drop, body.lab [data-post-drop] { background: #1c1c20 !important; border: 1px dashed #3a3a40 !important; }
body.lab .post-video-drop strong, body.lab [data-post-drop] strong { color: #f4f4f5 !important; }
body.lab .post-video-drop span, body.lab [data-post-drop] span { color: #a1a1aa !important; }
