/* ==========================================================================
   skins.css - the template layer.

   A "skin" is a palette plus a shape language, applied by an attribute on <html>:

       <html data-theme="light" data-skin="paper">

   Nothing in the markup changes between skins. Every skin only overrides CSS
   custom properties, plus a handful of rules where a skin needs a different
   *form* rather than a different colour (metro has no radii, brutal has hard
   offsets, paper has serif headings). That is what makes this a template system
   rather than ten forks of the interface: app.css owns the structure, this file
   owns the personality.

   Loaded AFTER brand.css on purpose. A skin defines its own accent; a custom
   [branding] accent applies to the default skin. See docs/DESIGN.md.

   Rules every skin must follow:
     - no new layout, no new markup, no font that is not on Windows XP
     - light and dark both have to be usable
     - no animation, no gradient on a content surface, no glass
   ========================================================================== */

/* ---------------------------------------------------------------- default
   The stock 2008 chrome. Intentionally empty: everything comes from app.css
   and an optional brand.css. Listed here so the picker has a stable id. */

html[data-skin="branded"] { /* nothing */ }

/* ------------------------------------------------------------------- aero
   2007 Vista gloss, tamed. White glassy panels with a bright top edge, a
   deeper bar, softer curves. The "gloss" is one inset highlight, not a blur -
   glass blur is what makes this kind of skin expensive and mushy. */

html[data-skin="aero"] {
  --radius: 12px;
  --radius-sm: 8px;
  --bg: #dfe7f0;
  --bg-glow: radial-gradient(1200px 560px at 50% -12%, #f7fbff 0%, rgba(247,251,255,0) 70%);
  --panel: #ffffff;
  --panel-2: #eef3f9;
  --panel-3: #e4ecf5;
  --head: linear-gradient(#ffffff, #e8eff7);
  --head-strong: linear-gradient(#7fb2e0, #3f79b5 55%, #2e5f95);
  --border: #cfdcea;
  --border-2: #b6c9dd;
  --text: #1d2b3d;
  --text-soft: #354a63;
  --muted: #6a7f97;
  --link: #2f6fae;
  --link-hi: #235b93;
  --accent: #2f7fd6;
  --accent-hi: #5ea4e8;
  --accent-lo: #1f5fa6;
  --accent-soft: rgba(47,127,214,.12);
  --shadow: 0 1px 1px rgba(28,48,72,.06), 0 6px 18px rgba(28,48,72,.09);
  --shadow-hi: 0 18px 44px rgba(28,48,72,.2);
  --inset: inset 0 1px 0 rgba(255,255,255,.95);
  --topbar: linear-gradient(#89b9e4, #4a86c2 52%, #2d6096);
  --field: #ffffff;
  --field-border: #c2d3e4;
  --hover: #eaf1f8;
  --bubble-in: #eef3f9;
  --bubble-out: #d6e8fa;
  --cover: linear-gradient(120deg, #6ba6d8, #3f79b5 45%, #2b5c8f);
}
html[data-skin="aero"][data-theme="dark"] {
  --bg: #0f1722;
  --panel: #17222f;
  --panel-2: #1c2938;
  --panel-3: #131d28;
  --head: linear-gradient(#22303f, #1a2634);
  --head-strong: linear-gradient(#2f5f8f, #23496e 55%, #1a3a58);
  --border: #2a3a4c;
  --border-2: #3a4f66;
  --text: #dbe7f4;
  --text-soft: #bccfe2;
  --muted: #8ba0b8;
  --link: #7fb6e8;
  --link-hi: #a3cdf5;
  --accent: #4a90d9;
  --accent-hi: #6aabe8;
  --accent-lo: #2a5f96;
  --accent-soft: rgba(74,144,217,.16);
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.32);
  --shadow-hi: 0 20px 50px rgba(0,0,0,.55);
  --inset: inset 0 1px 0 rgba(255,255,255,.07);
  --topbar: linear-gradient(#2a4d70, #1c3a56 60%, #152c42);
  --field: #131d28;
  --field-border: #33475d;
  --hover: #1f2c3b;
  --bubble-in: #1c2938;
  --bubble-out: #234763;
  --cover: linear-gradient(120deg, #1e3a55, #16293d 55%, #10202f);
}
html[data-skin="aero"] .card,
html[data-skin="aero"] .post,
html[data-skin="aero"] .composer { border-radius: 12px; }
html[data-skin="aero"] .topbar { box-shadow: 0 2px 14px rgba(20,40,65,.3), inset 0 1px 0 rgba(255,255,255,.35); }

/* ------------------------------------------------------------------ metro
   2012 flat tiles. No gradients anywhere, no shadows, no radii. The accent
   becomes a solid block behind card headers - the one loud move, used once. */

html[data-skin="metro"] {
  --radius: 0px;
  --radius-sm: 0px;
  --radius-xs: 0px;
  --bg: #f2f2f2;
  --bg-glow: none;
  --panel: #ffffff;
  --panel-2: #f7f7f7;
  --panel-3: #ededed;
  --head: #ffffff;
  --head-strong: #1f1f1f;
  --border: #dcdcdc;
  --border-2: #b8b8b8;
  --text: #1a1a1a;
  --text-soft: #333333;
  --muted: #6e6e6e;
  --link: #0067b8;
  --link-hi: #005494;
  --accent: #0078d4;
  --accent-hi: #0078d4;
  --accent-lo: #005a9e;
  --accent-soft: rgba(0,120,212,.1);
  --shadow: none;
  --shadow-hi: none;
  --inset: none;
  --topbar: #1f1f1f;
  --topbar-text: #ffffff;
  --field: #ffffff;
  --field-border: #c8c8c8;
  --hover: #f0f0f0;
  --bubble-in: #f0f0f0;
  --bubble-out: #d9ecfb;
  --cover: #0078d4;
}
html[data-skin="metro"][data-theme="dark"] {
  --bg: #141414;
  --panel: #1f1f1f;
  --panel-2: #262626;
  --panel-3: #1a1a1a;
  --head: #1f1f1f;
  --head-strong: #2b2b2b;
  --border: #333333;
  --border-2: #4a4a4a;
  --text: #f2f2f2;
  --text-soft: #d0d0d0;
  --muted: #9a9a9a;
  --link: #5ab0f0;
  --link-hi: #8ac9f7;
  --accent: #2b88d8;
  --accent-hi: #2b88d8;
  --accent-lo: #1a5f9e;
  --accent-soft: rgba(43,136,216,.18);
  --topbar: #0a0a0a;
  --field: #141414;
  --field-border: #3d3d3d;
  --hover: #2a2a2a;
  --bubble-in: #262626;
  --bubble-out: #1d3c55;
  --cover: #1a5f9e;
}
html[data-skin="metro"] .card,
html[data-skin="metro"] .post,
html[data-skin="metro"] .composer { border-color: #e4e4e4; box-shadow: none; }
html[data-skin="metro"] .card-h {
  background: var(--accent);
  color: #fff;
  border-bottom: 0;
  text-transform: none;
  letter-spacing: 0;
  font-size: 13px;
  padding: 10px 12px;
}
html[data-skin="metro"] .card-h i { color: #fff; }
html[data-skin="metro"] .btn,
html[data-skin="metro"] .btn-primary,
html[data-skin="metro"] .btn-ok,
html[data-skin="metro"] .btn-danger { background: var(--accent); color: #fff; border: 0; text-shadow: none; box-shadow: none; }
html[data-skin="metro"] .btn:hover { background: var(--accent-lo); color: #fff; }
html[data-skin="metro"] .btn-ghost { background: transparent; color: var(--muted); }
html[data-skin="metro"] .tab.active::after { border-radius: 0; left: 0; right: 0; height: 3px; }
html[data-skin="metro"] .feed-tabs .tab2 { border-radius: 0; }
html[data-skin="metro"] .avatar { border-radius: 0; }

/* ------------------------------------------------------------------ paper
   Print. Warm cream stock, oxblood ink, serif headings, hairline rules and no
   shadows at all. The one skin where text is set for reading, not for scanning. */

html[data-skin="paper"] {
  --font: "Segoe UI", Tahoma, Verdana, Arial, sans-serif;
  --font-display: Georgia, "Times New Roman", serif;
  --radius: 2px;
  --radius-sm: 2px;
  --radius-xs: 2px;
  --bg: #f3ede2;
  --bg-glow: none;
  --panel: #fffdf7;
  --panel-2: #f8f2e7;
  --panel-3: #efe7d8;
  --head: #fffdf7;
  --head-strong: #2b2620;
  --border: #ddd2bd;
  --border-2: #c6b89d;
  --text: #2a2620;
  --text-soft: #4a4338;
  --muted: #8a7f6d;
  --link: #8c3b2e;
  --link-hi: #6f2c21;
  --accent: #8c3b2e;
  --accent-hi: #a9503f;
  --accent-lo: #6f2c21;
  --accent-soft: rgba(140,59,46,.09);
  --shadow: none;
  --shadow-hi: 0 12px 30px rgba(70,55,35,.14);
  --inset: none;
  --topbar: #2b2620;
  --topbar-text: #f6efe2;
  --field: #fffdf7;
  --field-border: #cfc2aa;
  --hover: #f5eee1;
  --bubble-in: #f6efe2;
  --bubble-out: #ece0cc;
  --cover: linear-gradient(120deg, #b98a63, #8c3b2e 60%, #5e261c);
}
html[data-skin="paper"][data-theme="dark"] {
  --bg: #191712;
  --panel: #211e18;
  --panel-2: #262219;
  --panel-3: #1c1914;
  --head: #211e18;
  --head-strong: #3a3428;
  --border: #353024;
  --border-2: #4a4335;
  --text: #eae2d2;
  --text-soft: #cfc5b2;
  --muted: #9b9080;
  --link: #e0917f;
  --link-hi: #f0b0a0;
  --accent: #c1654f;
  --accent-hi: #d9836c;
  --accent-lo: #8c3b2e;
  --accent-soft: rgba(193,101,79,.14);
  --topbar: #12100c;
  --topbar-text: #efe6d6;
  --field: #1c1914;
  --field-border: #403a2c;
  --hover: #2a251b;
  --bubble-in: #262219;
  --bubble-out: #3a2a22;
  --cover: linear-gradient(120deg, #4a2a20, #2a1a14 60%, #1a100c);
}
html[data-skin="paper"] .card-h {
  background: transparent;
  border-bottom: 1px solid var(--border-2);
  font-family: Georgia, "Times New Roman", serif;
  text-transform: none;
  letter-spacing: 0;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text);
}
html[data-skin="paper"] .post-body { font-size: 14px; line-height: 1.62; }
html[data-skin="paper"] .landing h1,
html[data-skin="paper"] .profile-head h1 { font-family: Georgia, "Times New Roman", serif; font-weight: 700; letter-spacing: -.2px; }
html[data-skin="paper"] .btn { background: transparent; }
html[data-skin="paper"] .btn-primary { background: var(--accent); color: #fff; }

/* --------------------------------------------------------------- terminal
   A console. Monospace everywhere, amber on near-black, square corners, and
   one accent line under the bar. Not a joke skin: the density is the point. */

html[data-skin="terminal"] {
  --font: Consolas, "Lucida Console", "Courier New", monospace;
  --font-display: Consolas, "Lucida Console", "Courier New", monospace;
  --radius: 0px;
  --radius-sm: 0px;
  --radius-xs: 0px;
  --bg: #0a0c0a;
  --bg-glow: none;
  --panel: #0f120f;
  --panel-2: #131713;
  --panel-3: #0c0f0c;
  --head: #131713;
  --head-strong: #1a201a;
  --border: #263026;
  --border-2: #38473a;
  --text: #d6c9a8;
  --text-soft: #c0b493;
  --muted: #7f8a72;
  --link: #8fd98f;
  --link-hi: #b0f0b0;
  --accent: #7ad17a;
  --accent-hi: #9be89b;
  --accent-lo: #3f8a3f;
  --accent-soft: rgba(122,209,122,.1);
  --ok: #7ad17a;
  --warn: #d8a95a;
  --err: #e07a6a;
  --info: #6fb0d8;
  --gold: #d8b45a;
  --shadow: none;
  --shadow-hi: 0 0 0 1px #2b3a2c, 0 10px 26px rgba(0,0,0,.8);
  --inset: inset 0 1px 0 rgba(255,255,255,.03);
  --topbar: #060806;
  --topbar-text: #cfe3c9;
  --field: #0c0f0c;
  --field-border: #2f3c2f;
  --hover: #182018;
  --bubble-in: #131713;
  --bubble-out: #16261a;
  --cover: linear-gradient(120deg, #16261a, #0c140e 60%, #070a07);
}
html[data-skin="terminal"] .topbar { border-bottom: 1px solid var(--accent); box-shadow: none; }
html[data-skin="terminal"] .card-h {
  text-transform: none; letter-spacing: 0; font-size: 12px;
  border-bottom: 1px solid var(--border-2);
}
html[data-skin="terminal"] .card-h::before { content: "$ "; color: var(--accent); }
html[data-skin="terminal"] .btn { background: transparent; border-color: var(--border-2); }
html[data-skin="terminal"] .btn-primary { background: var(--accent); color: #06120a; border-color: var(--accent); text-shadow: none; }
html[data-skin="terminal"] .avatar { border-radius: 0; }
html[data-skin="terminal"] .feed-tabs .tab2 { border-radius: 0; }
html[data-skin="terminal"] .post { border-left: 2px solid var(--border-2); }

/* ------------------------------------------------------------------- soft
   2026 restraint. Rounded, borderless, very soft depth, and an inverted topbar
   (light chrome with dark text) so it reads as a different product at a glance. */

html[data-skin="soft"] {
  --radius: 16px;
  --radius-sm: 12px;
  --radius-xs: 8px;
  --bg: #f6f7fa;
  --bg-glow: radial-gradient(1000px 500px at 50% -8%, #ffffff 0%, rgba(255,255,255,0) 72%);
  --panel: #ffffff;
  --panel-2: #f9fafc;
  --panel-3: #f1f3f8;
  --head: #ffffff;
  --head-strong: #eef0f7;
  --border: #eaedf4;
  --border-2: #dbe0eb;
  --text: #171a23;
  --text-soft: #3b4152;
  --muted: #767e92;
  --link: #4f5fd8;
  --link-hi: #3b49b8;
  --accent: #5b6ee1;
  --accent-hi: #7b8bf0;
  --accent-lo: #4453c4;
  --accent-soft: rgba(91,110,225,.09);
  --shadow: 0 1px 2px rgba(20,25,50,.03), 0 8px 24px rgba(20,25,50,.05);
  --shadow-hi: 0 24px 60px rgba(20,25,50,.14);
  --inset: none;
  --topbar: #ffffff;
  --topbar-text: #171a23;
  --field: #f7f8fc;
  --field-border: #e3e7f0;
  --hover: #f2f4f9;
  --bubble-in: #f2f4f9;
  --bubble-out: #e6e9fb;
  --cover: linear-gradient(120deg, #8b97ee, #5b6ee1 55%, #4453c4);
}
html[data-skin="soft"][data-theme="dark"] {
  --bg: #0e1015;
  --panel: #161920;
  --panel-2: #1a1e26;
  --panel-3: #12151b;
  --head: #161920;
  --head-strong: #232833;
  --border: #22262f;
  --border-2: #313744;
  --text: #eceff6;
  --text-soft: #c3c9d6;
  --muted: #858d9e;
  --link: #9aa8f5;
  --link-hi: #b8c2ff;
  --accent: #7b8bf0;
  --accent-hi: #97a5ff;
  --accent-lo: #5563c9;
  --accent-soft: rgba(123,139,240,.14);
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 10px 30px rgba(0,0,0,.35);
  --shadow-hi: 0 26px 64px rgba(0,0,0,.6);
  --topbar: #12151b;
  --topbar-text: #eceff6;
  --field: #12151b;
  --field-border: #2b313d;
  --hover: #1d222b;
  --bubble-in: #1a1e26;
  --bubble-out: #29304d;
  --cover: linear-gradient(120deg, #2b3154, #1c2033 60%, #14171f);
}
html[data-skin="soft"] .topbar { border-bottom: 1px solid var(--border); box-shadow: none; }
html[data-skin="soft"] .tab { color: var(--muted); text-shadow: none; }
html[data-skin="soft"] .tab:hover { background: var(--hover); color: var(--text); }
html[data-skin="soft"] .tab.active { background: var(--accent-soft); color: var(--accent); }
html[data-skin="soft"] .tab.active::after { display: none; }
html[data-skin="soft"] .brand-text b { text-shadow: none; }
html[data-skin="soft"] .brand-mark {
  background: linear-gradient(135deg, var(--accent-hi), var(--accent-lo));
  border-color: transparent;
  color: #fff;
}
html[data-skin="soft"] .topsearch input { background: var(--field); border-color: var(--field-border); color: var(--text); }
html[data-skin="soft"] .card-h {
  background: transparent; border-bottom: 0;
  text-transform: none; letter-spacing: 0; font-size: 13px; color: var(--text);
}
html[data-skin="soft"] .btn { background: var(--panel-2); border-color: transparent; }
html[data-skin="soft"] .btn-primary { background: var(--accent); color: #fff; border-color: transparent; }
html[data-skin="soft"] .avatar { border-radius: 14px; }

/* ----------------------------------------------------------------- brutal
   Thick rules, hard offset shadows, zero radius. High contrast, deliberately
   unpolished - the counterweight to "soft", and the only skin allowed 2px borders. */

html[data-skin="brutal"] {
  --radius: 0px;
  --radius-sm: 0px;
  --radius-xs: 0px;
  --bg: #fdfcf3;
  --bg-glow: none;
  --panel: #ffffff;
  --panel-2: #f5f3e6;
  --panel-3: #ecead9;
  --head: #ffffff;
  --head-strong: #111111;
  --border: #111111;
  --border-2: #111111;
  --text: #111111;
  --text-soft: #222222;
  --muted: #5a5a4f;
  --link: #b8370f;
  --link-hi: #8f290b;
  --accent: #ff5c00;
  --accent-hi: #ff7a2b;
  --accent-lo: #cc4a00;
  --accent-soft: rgba(255,92,0,.14);
  --ok: #1a7f4b;
  --warn: #a35c00;
  --err: #c22b1b;
  --shadow: 4px 4px 0 #111111;
  --shadow-hi: 6px 6px 0 #111111;
  --inset: none;
  --topbar: #111111;
  --topbar-text: #ffffff;
  --field: #ffffff;
  --field-border: #111111;
  --hover: #fff3e6;
  --bubble-in: #ffffff;
  --bubble-out: #ffe3cc;
  --cover: #ff5c00;
}
html[data-skin="brutal"][data-theme="dark"] {
  --bg: #14140f;
  --panel: #1c1c15;
  --panel-2: #23231a;
  --panel-3: #17170f;
  --head: #1c1c15;
  --head-strong: #2c2c20;
  --border: #6b6b52;
  --border-2: #8a8a6b;
  --text: #f2f0e0;
  --text-soft: #d8d5c0;
  --muted: #9a9780;
  --link: #ff9b6b;
  --link-hi: #ffbd97;
  --accent: #ff7a2b;
  --accent-hi: #ff9b5c;
  --accent-lo: #cc4a00;
  --accent-soft: rgba(255,122,43,.16);
  --shadow: 4px 4px 0 #6b6b52;
  --shadow-hi: 6px 6px 0 #8a8a6b;
  --topbar: #0a0a06;
  --field: #17170f;
  --field-border: #6b6b52;
  --hover: #2a2a1e;
  --bubble-in: #23231a;
  --bubble-out: #3a2a1a;
  --cover: #cc4a00;
}
html[data-skin="brutal"] .card,
html[data-skin="brutal"] .post,
html[data-skin="brutal"] .composer,
html[data-skin="brutal"] .modal { border-width: 2px; }
html[data-skin="brutal"] .card-h {
  background: var(--head);
  border-bottom: 2px solid var(--border);
  text-transform: uppercase;
  letter-spacing: .5px;
}
html[data-skin="brutal"] .btn { background: #fff; border-width: 2px; box-shadow: 2px 2px 0 var(--border); color: #111; }
html[data-skin="brutal"] .btn:hover { transform: translate(-1px, -1px); box-shadow: 3px 3px 0 var(--border); }
html[data-skin="brutal"] .btn:active { transform: translate(2px, 2px); box-shadow: none; }
html[data-skin="brutal"] .btn-primary { background: var(--accent); color: #111; text-shadow: none; }
html[data-skin="brutal"] .avatar { border-radius: 0; }
html[data-skin="brutal"] .feed-tabs .tab2 { border-width: 2px; border-radius: 0; }
html[data-skin="brutal"] .tab.active::after { height: 4px; border-radius: 0; }

/* ------------------------------------------------------------------- neon
   Night mode as a skin rather than a theme: violet and cyan on near-black, thin
   glowing edges. Glow is a 1px ring plus a soft outer shadow - never a blur filter. */

html[data-skin="neon"] {
  --radius: 6px;
  --radius-sm: 5px;
  --radius-xs: 3px;
  --bg: #07060d;
  --bg-glow: radial-gradient(900px 460px at 50% -10%, #170f2e 0%, rgba(23,15,46,0) 70%);
  --panel: #0e0b17;
  --panel-2: #120e1e;
  --panel-3: #0a0812;
  --head: #120e1e;
  --head-strong: #1a1030;
  --border: #241a3c;
  --border-2: #3a2a5c;
  --text: #e9e3f7;
  --text-soft: #c8bfe0;
  --muted: #8d82a8;
  --link: #7fe3ff;
  --link-hi: #a6ecff;
  --accent: #a86bff;
  --accent-hi: #c08dff;
  --accent-lo: #6f3fc4;
  --accent-soft: rgba(168,107,255,.14);
  --ok: #4fe0a0;
  --warn: #f0c05a;
  --err: #ff6b8a;
  --info: #6fc8ff;
  --gold: #f0c05a;
  --shadow: 0 0 0 1px rgba(168,107,255,.14), 0 8px 26px rgba(0,0,0,.6);
  --shadow-hi: 0 0 0 1px rgba(168,107,255,.3), 0 18px 46px rgba(0,0,0,.75);
  --inset: inset 0 1px 0 rgba(255,255,255,.05);
  --topbar: #0a0713;
  --topbar-text: #e9e3f7;
  --field: #0a0812;
  --field-border: #2e2248;
  --hover: #17112a;
  --bubble-in: #120e1e;
  --bubble-out: #241436;
  --cover: linear-gradient(120deg, #3a1f66, #1c1030 60%, #0c0716);
}
html[data-skin="neon"] .topbar { border-bottom: 1px solid rgba(168,107,255,.35); box-shadow: 0 1px 18px rgba(168,107,255,.12); }
html[data-skin="neon"] .card-h {
  text-transform: none; letter-spacing: 0; font-size: 12.5px;
  color: var(--accent);
  border-bottom: 1px solid var(--border);
}
html[data-skin="neon"] .card-h i { color: var(--link); }
html[data-skin="neon"] .btn { background: transparent; border-color: var(--border-2); color: var(--text-soft); }
html[data-skin="neon"] .btn-primary {
  background: linear-gradient(var(--accent-hi), var(--accent));
  color: #0a0713; border-color: transparent; text-shadow: none;
  box-shadow: 0 0 18px rgba(168,107,255,.4);
}
html[data-skin="neon"] .tab.active::after { background: var(--link); box-shadow: 0 0 10px var(--link); }
html[data-skin="neon"] .avatar { box-shadow: 0 0 0 1px rgba(255,255,255,.08); }

/* ------------------------------------------------------------------- warm
   Earthy, mid-century: terracotta and cream, serif headings, soft but not
   round. The warm counterpart to paper - same idea, much more saturated. */

html[data-skin="warm"] {
  --font-display: Georgia, "Times New Roman", serif;
  --radius: 10px;
  --radius-sm: 7px;
  --bg: #f0e4d2;
  --bg-glow: none;
  --panel: #fdf7ec;
  --panel-2: #f7eddc;
  --panel-3: #eee0c9;
  --head: linear-gradient(#fdf7ec, #f5e9d5);
  --head-strong: linear-gradient(#c9762f, #a8541f 55%, #8a4318);
  --border: #dcc9aa;
  --border-2: #c4ab86;
  --text: #3a2a1c;
  --text-soft: #5a4430;
  --muted: #8d7358;
  --link: #a8541f;
  --link-hi: #8a4318;
  --accent: #c05621;
  --accent-hi: #d97a3f;
  --accent-lo: #94400f;
  --accent-soft: rgba(192,86,33,.1);
  --ok: #4f7a3f;
  --warn: #a8681a;
  --err: #a83a24;
  --gold: #b8860b;
  --shadow: 0 1px 1px rgba(90,60,30,.05), 0 5px 16px rgba(90,60,30,.08);
  --shadow-hi: 0 16px 38px rgba(90,60,30,.18);
  --inset: inset 0 1px 0 rgba(255,255,255,.7);
  --topbar: linear-gradient(#b4682c, #8f4a1c 60%, #713a14);
  --topbar-text: #fdf3e4;
  --field: #fffdf8;
  --field-border: #cfb894;
  --hover: #f6ebd9;
  --bubble-in: #f7eddc;
  --bubble-out: #f2ddc0;
  --cover: linear-gradient(120deg, #d08a4a, #a8541f 50%, #7a3a14);
}
html[data-skin="warm"][data-theme="dark"] {
  --bg: #1c150f;
  --panel: #251c14;
  --panel-2: #2b2118;
  --panel-3: #1f1810;
  --head: linear-gradient(#2b2118, #241b13);
  --head-strong: linear-gradient(#7a4a24, #5c3417 55%, #452610);
  --border: #3d2f21;
  --border-2: #55422e;
  --text: #f0e3d2;
  --text-soft: #d6c3a8;
  --muted: #a08a70;
  --link: #e0a068;
  --link-hi: #f0bc8c;
  --accent: #d97a3f;
  --accent-hi: #e89a66;
  --accent-lo: #a8541f;
  --accent-soft: rgba(217,122,63,.16);
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 22px rgba(0,0,0,.3);
  --shadow-hi: 0 18px 44px rgba(0,0,0,.55);
  --inset: inset 0 1px 0 rgba(255,255,255,.05);
  --topbar: linear-gradient(#5c3417, #3f2210 60%, #2e180a);
  --field: #1f1810;
  --field-border: #463726;
  --hover: #2e2419;
  --bubble-in: #2b2118;
  --bubble-out: #3d2a1a;
  --cover: linear-gradient(120deg, #5c3417, #3f2210 60%, #2a1508);
}
html[data-skin="warm"] .landing h1,
html[data-skin="warm"] .profile-head h1,
html[data-skin="warm"] .card-h { font-family: Georgia, "Times New Roman", serif; }
html[data-skin="warm"] .card-h {
  text-transform: none; letter-spacing: 0; font-size: 13px; color: var(--text);
}

/* ------------------------------------------------------------------ slate
   The professional tool: cool grey, one teal accent, hairlines, no gradients
   at all, and a light topbar. Closest to "modern app" without leaving the
   dense three-column shape. */

html[data-skin="slate"] {
  --radius: 6px;
  --radius-sm: 5px;
  --radius-xs: 3px;
  --bg: #f1f3f5;
  --bg-glow: none;
  --panel: #ffffff;
  --panel-2: #f6f8f9;
  --panel-3: #eceff2;
  --head: #ffffff;
  --head-strong: #e7ebef;
  --border: #dfe3e8;
  --border-2: #c8cfd7;
  --text: #1c2530;
  --text-soft: #3a4652;
  --muted: #6b7885;
  --link: #0f766e;
  --link-hi: #0b5c55;
  --accent: #0f766e;
  --accent-hi: #149c92;
  --accent-lo: #0b5c55;
  --accent-soft: rgba(15,118,110,.09);
  --ok: #157f4a;
  --warn: #9a6a10;
  --err: #b03030;
  --info: #2563a8;
  --shadow: 0 1px 2px rgba(20,32,45,.04), 0 2px 8px rgba(20,32,45,.05);
  --shadow-hi: 0 12px 32px rgba(20,32,45,.14);
  --inset: none;
  --topbar: #ffffff;
  --topbar-text: #1c2530;
  --field: #ffffff;
  --field-border: #d3dae1;
  --hover: #eff2f5;
  --bubble-in: #f1f4f6;
  --bubble-out: #dff0ee;
  --cover: linear-gradient(120deg, #2e8f86, #0f766e 55%, #0b5c55);
}
html[data-skin="slate"][data-theme="dark"] {
  --bg: #101418;
  --panel: #171c22;
  --panel-2: #1c222a;
  --panel-3: #13181d;
  --head: #171c22;
  --head-strong: #232b34;
  --border: #252d36;
  --border-2: #36404b;
  --text: #e3e9ef;
  --text-soft: #bcc7d2;
  --muted: #7f8c9a;
  --link: #4fd1c5;
  --link-hi: #74e0d6;
  --accent: #2aa79b;
  --accent-hi: #3fc4b7;
  --accent-lo: #15766d;
  --accent-soft: rgba(42,167,155,.14);
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 6px 18px rgba(0,0,0,.3);
  --shadow-hi: 0 16px 40px rgba(0,0,0,.55);
  --topbar: #13181d;
  --topbar-text: #e3e9ef;
  --field: #13181d;
  --field-border: #2e3742;
  --hover: #1e252d;
  --bubble-in: #1c222a;
  --bubble-out: #17332f;
  --cover: linear-gradient(120deg, #17443f, #102e2b 60%, #0b1f1d);
}
html[data-skin="slate"] .topbar { border-bottom: 1px solid var(--border); box-shadow: none; }
html[data-skin="slate"] .tab { color: var(--muted); text-shadow: none; }
html[data-skin="slate"] .tab:hover { background: var(--hover); color: var(--text); }
html[data-skin="slate"] .tab.active { background: transparent; color: var(--accent); }
html[data-skin="slate"] .tab.active::after { height: 2px; background: var(--accent); left: 8px; right: 8px; }
html[data-skin="slate"] .brand-text b { text-shadow: none; }
html[data-skin="slate"] .brand-mark { background: var(--accent); border-color: transparent; color: #fff; }
html[data-skin="slate"] .topsearch input { background: var(--field); border-color: var(--field-border); color: var(--text); }
html[data-skin="slate"] .card-h {
  background: transparent; border-bottom: 1px solid var(--border);
  text-transform: none; letter-spacing: 0; font-size: 12.5px; color: var(--text-soft);
}
html[data-skin="slate"] .btn { background: #fff; border-color: var(--field-border); box-shadow: none; }
html[data-skin="slate"] .btn-primary { background: var(--accent); border-color: var(--accent); color: #fff; text-shadow: none; box-shadow: none; }

/* ------------------------------------------------------------------ matrix
   The green terminal taken seriously: near-black, phosphor green, monospace and
   a faint rain behind everything (the rain itself is effects.css, data-fx). */

html[data-skin="matrix"] {
  --font: Consolas, "Lucida Console", "Courier New", monospace;
  --font-display: Consolas, "Lucida Console", "Courier New", monospace;
  --radius: 2px;
  --radius-sm: 2px;
  --radius-xs: 2px;
  --bg: #04080a;
  --bg-glow: radial-gradient(900px 460px at 50% -10%, #0a1a12 0%, rgba(10,26,18,0) 70%);
  --panel: #061009;
  --panel-2: #08160d;
  --panel-3: #040b07;
  --head: #08160d;
  --head-strong: #0a2013;
  --border: #12331f;
  --border-2: #1d4a2c;
  --text: #b8f0c0;
  --text-soft: #96d9a0;
  --muted: #5f9a6c;
  --link: #7ad17a;
  --link-hi: #a2f0a2;
  --accent: #4fd76a;
  --accent-hi: #7be88f;
  --accent-lo: #2a9440;
  --accent-soft: rgba(79,215,106,.12);
  --ok: #4fd76a;
  --warn: #c9d76a;
  --err: #e06a6a;
  --info: #6ad7c9;
  --gold: #d7d76a;
  --shadow: 0 0 0 1px rgba(79,215,106,.06), 0 8px 24px rgba(0,0,0,.8);
  --shadow-hi: 0 0 0 1px rgba(79,215,106,.18), 0 16px 40px rgba(0,0,0,.9);
  --inset: inset 0 1px 0 rgba(122,209,122,.06);
  --topbar: #03070a;
  --topbar-text: #b8f0c0;
  --field: #040b07;
  --field-border: #17402a;
  --hover: #0b1f13;
  --bubble-in: #08160d;
  --bubble-out: #0d2a18;
  --cover: linear-gradient(120deg, #0d2a18, #061009 60%, #03070a);
}
html[data-skin="matrix"] .topbar { border-bottom: 1px solid rgba(79,215,106,.4); box-shadow: 0 0 20px rgba(79,215,106,.12); }
html[data-skin="matrix"] .card-h { text-transform: none; letter-spacing: 0; color: var(--accent); border-bottom: 1px solid var(--border); }
html[data-skin="matrix"] .card-h::before { content: "> "; color: var(--muted); }
html[data-skin="matrix"] .btn { background: transparent; border-color: var(--border-2); color: var(--text-soft); }
html[data-skin="matrix"] .btn-primary { background: var(--accent); color: #03120a; border-color: var(--accent); text-shadow: none; }
html[data-skin="matrix"] .avatar { border-radius: 2px; }
html[data-skin="matrix"] .feed-tabs .tab2 { border-radius: 2px; }
html[data-skin="matrix"] .tab.active::after { border-radius: 0; background: var(--accent); box-shadow: 0 0 8px var(--accent); }

/* --------------------------------------------------------------- cyberpunk
   Magenta and cyan on deep indigo, square, with a hard 1px neon rule. Yellow is
   the warning colour, used only for counters - the classic three-way split. */

html[data-skin="cyberpunk"] {
  --radius: 2px;
  --radius-sm: 2px;
  --radius-xs: 2px;
  --bg: #0b0818;
  --bg-glow: radial-gradient(1000px 500px at 50% -10%, #1a0f33 0%, rgba(26,15,51,0) 70%);
  --panel: #120d22;
  --panel-2: #171130;
  --panel-3: #0d0a1a;
  --head: #171130;
  --head-strong: #241344;
  --border: #2d1f4d;
  --border-2: #472f78;
  --text: #f0e9ff;
  --text-soft: #d3c6f0;
  --muted: #9385b8;
  --link: #00f0ff;
  --link-hi: #6ff8ff;
  --accent: #ff2d8f;
  --accent-hi: #ff6bb0;
  --accent-lo: #c40f66;
  --accent-soft: rgba(255,45,143,.14);
  --ok: #4dffc3;
  --warn: #ffd23f;
  --err: #ff4d5e;
  --info: #00f0ff;
  --gold: #ffd23f;
  --shadow: 0 0 0 1px rgba(255,45,143,.12), 0 8px 26px rgba(0,0,0,.65);
  --shadow-hi: 0 0 0 1px rgba(0,240,255,.25), 0 18px 44px rgba(0,0,0,.8);
  --inset: inset 0 1px 0 rgba(255,255,255,.05);
  --topbar: #0a0616;
  --topbar-text: #f0e9ff;
  --field: #0d0a1a;
  --field-border: #3a2863;
  --hover: #1d1538;
  --bubble-in: #171130;
  --bubble-out: #2b1040;
  --cover: linear-gradient(120deg, #3b1055, #1a0f33 55%, #0b0818);
}
html[data-skin="cyberpunk"] .topbar {
  border-bottom: 1px solid rgba(0,240,255,.45);
  box-shadow: 0 2px 22px rgba(255,45,143,.2);
}
html[data-skin="cyberpunk"] .card-h {
  text-transform: uppercase; letter-spacing: .8px; font-size: 11px;
  color: var(--link); border-bottom: 1px solid var(--border-2);
}
html[data-skin="cyberpunk"] .card-h i { color: var(--accent); }
html[data-skin="cyberpunk"] .btn { background: transparent; border-color: var(--border-2); color: var(--text-soft); }
html[data-skin="cyberpunk"] .btn:hover { border-color: var(--link); color: var(--link); }
html[data-skin="cyberpunk"] .btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-lo));
  color: #0b0818; border-color: transparent; text-shadow: none;
  box-shadow: 0 0 16px rgba(255,45,143,.4);
}
html[data-skin="cyberpunk"] .tab.active::after { border-radius: 0; background: var(--link); box-shadow: 0 0 10px var(--link); }
html[data-skin="cyberpunk"] .avatar { border-radius: 2px; }
html[data-skin="cyberpunk"] .feed-tabs .tab2 { border-radius: 2px; }
html[data-skin="cyberpunk"] .post { border-left: 2px solid var(--accent); }

/* ---------------------------------------------------------------- newyear
   Midnight blue with warm gold and a cold white. Festive without tinsel: the
   gold is the accent, snow is the effect, and nothing sparkles. */

html[data-skin="newyear"] {
  --radius: 12px;
  --radius-sm: 8px;
  --bg: #0c1424;
  --bg-glow: radial-gradient(1000px 500px at 50% -12%, #1b2b47 0%, rgba(27,43,71,0) 72%);
  --panel: #131f33;
  --panel-2: #17253c;
  --panel-3: #0f1a2b;
  --head: linear-gradient(#1b2a44, #142034);
  --head-strong: linear-gradient(#2c4a72, #1e3556 55%, #16273f);
  --border: #23334d;
  --border-2: #33496a;
  --text: #e8eefb;
  --text-soft: #c6d4ea;
  --muted: #8ba0bf;
  --link: #9fc4f0;
  --link-hi: #c0dbff;
  --accent: #d4af37;
  --accent-hi: #f0cf6a;
  --accent-lo: #a3831f;
  --accent-soft: rgba(212,175,55,.14);
  --ok: #56c98a;
  --warn: #e0a83f;
  --err: #e0655b;
  --info: #6fa8e0;
  --gold: #f0cf6a;
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.4);
  --shadow-hi: 0 18px 46px rgba(0,0,0,.6);
  --inset: inset 0 1px 0 rgba(255,255,255,.06);
  --topbar: linear-gradient(#1e3556, #142438 60%, #0f1a2b);
  --topbar-text: #f2f6ff;
  --field: #0f1a2b;
  --field-border: #2c3f5c;
  --hover: #1a2740;
  --bubble-in: #17253c;
  --bubble-out: #24395a;
  --cover: linear-gradient(120deg, #2c4a72, #1b2b47 55%, #0c1424);
}
html[data-skin="newyear"] .card-h {
  text-transform: none; letter-spacing: 0; font-size: 12.5px;
  color: var(--gold);
}
html[data-skin="newyear"] .card-h i { color: var(--gold); }
html[data-skin="newyear"] .btn-primary {
  background: linear-gradient(var(--accent-hi), var(--accent) 55%, var(--accent-lo));
  color: #1a1405; text-shadow: none; border-color: var(--accent-lo);
}
html[data-skin="newyear"] .tab.active::after { background: var(--gold); }
html[data-skin="newyear"] .brand-mark {
  background: linear-gradient(135deg, var(--accent-hi), var(--accent-lo));
  color: #1a1405;
}

/* ----------------------------------------------------------------- autumn
   Burnt orange, moss and parchment. The warm skin of the set, but darker and
   with more contrast - October evening rather than August afternoon. */

html[data-skin="autumn"] {
  --font-display: Georgia, "Times New Roman", serif;
  --radius: 8px;
  --radius-sm: 6px;
  --bg: #efe2cd;
  --bg-glow: radial-gradient(1000px 480px at 50% -10%, #fbf3e4 0%, rgba(251,243,228,0) 70%);
  --panel: #fdf7ec;
  --panel-2: #f6ecdb;
  --panel-3: #ecdfc9;
  --head: linear-gradient(#fdf7ec, #f4e8d4);
  --head-strong: linear-gradient(#b8642a, #8f4718 55%, #6f3612);
  --border: #d9c5a5;
  --border-2: #c0a780;
  --text: #33261a;
  --text-soft: #55402c;
  --muted: #8a7154;
  --link: #9c4a18;
  --link-hi: #7c3a12;
  --accent: #c25a1e;
  --accent-hi: #d97a3f;
  --accent-lo: #93400f;
  --accent-soft: rgba(194,90,30,.1);
  --ok: #5a7a3a;
  --warn: #a8681a;
  --err: #a83a24;
  --info: #4a6a8a;
  --gold: #b8860b;
  --shadow: 0 1px 1px rgba(80,55,30,.06), 0 5px 16px rgba(80,55,30,.09);
  --shadow-hi: 0 16px 38px rgba(80,55,30,.18);
  --inset: inset 0 1px 0 rgba(255,255,255,.75);
  --topbar: linear-gradient(#a85a24, #85431a 60%, #6a3412);
  --topbar-text: #fdf3e4;
  --field: #fffdf8;
  --field-border: #cdb591;
  --hover: #f4e9d6;
  --bubble-in: #f6ecdb;
  --bubble-out: #f0dcbe;
  --cover: linear-gradient(120deg, #d08a4a, #9c4a18 50%, #6f3612);
}
html[data-skin="autumn"][data-theme="dark"] {
  --bg: #1a140e;
  --panel: #241b12;
  --panel-2: #2a2016;
  --panel-3: #1e160f;
  --head: linear-gradient(#2a2016, #221a11);
  --head-strong: linear-gradient(#7a4420, #5a3014 55%, #42230e);
  --border: #3b2d1e;
  --border-2: #55402b;
  --text: #f2e6d4;
  --text-soft: #d6c3a6;
  --muted: #a08a6c;
  --link: #e0a068;
  --link-hi: #f0bc8c;
  --accent: #d97a3f;
  --accent-hi: #e89a66;
  --accent-lo: #a8541f;
  --accent-soft: rgba(217,122,63,.16);
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 22px rgba(0,0,0,.3);
  --shadow-hi: 0 18px 44px rgba(0,0,0,.55);
  --inset: inset 0 1px 0 rgba(255,255,255,.05);
  --topbar: linear-gradient(#5a3014, #3e210f 60%, #2c180a);
  --field: #1e160f;
  --field-border: #46351f;
  --hover: #2c2217;
  --bubble-in: #2a2016;
  --bubble-out: #3b2a19;
  --cover: linear-gradient(120deg, #5a3014, #3e210f 60%, #28160a);
}
html[data-skin="autumn"] .card-h {
  text-transform: none; letter-spacing: 0; font-size: 13px;
  font-family: Georgia, "Times New Roman", serif; color: var(--text);
}
html[data-skin="autumn"] .landing h1,
html[data-skin="autumn"] .profile-head h1 { font-family: Georgia, "Times New Roman", serif; }

/* ------------------------------------------------------------------ horror
   Black, blood and bone. Deliberately low-chroma so the red is the only colour
   in the room, and the VHS effect (effects.css) supplies the motion. Serif
   headings because a horror title is never set in a sans. */

html[data-skin="horror"] {
  --font-display: Georgia, "Times New Roman", serif;
  --radius: 3px;
  --radius-sm: 2px;
  --radius-xs: 2px;
  --bg: #0a0708;
  --bg-glow: radial-gradient(900px 460px at 50% -10%, #1a0a0c 0%, rgba(26,10,12,0) 70%);
  --panel: #120c0e;
  --panel-2: #170f12;
  --panel-3: #0d090a;
  --head: #170f12;
  --head-strong: #1f0d10;
  --border: #2a1519;
  --border-2: #442027;
  --text: #e6dcd4;
  --text-soft: #c4b6ac;
  --muted: #8a7670;
  --link: #d96a5a;
  --link-hi: #f08a78;
  --accent: #b81f2a;
  --accent-hi: #d93a44;
  --accent-lo: #7a1018;
  --accent-soft: rgba(184,31,42,.16);
  --ok: #6a9a5a;
  --warn: #c99a3a;
  --err: #d92f2f;
  --info: #5a7a9a;
  --gold: #c9a83a;
  --shadow: 0 0 0 1px rgba(184,31,42,.1), 0 8px 26px rgba(0,0,0,.85);
  --shadow-hi: 0 0 0 1px rgba(184,31,42,.28), 0 18px 44px rgba(0,0,0,.92);
  --inset: inset 0 1px 0 rgba(255,255,255,.03);
  --topbar: #070405;
  --topbar-text: #e6dcd4;
  --field: #0d090a;
  --field-border: #351a1f;
  --hover: #1c1013;
  --bubble-in: #170f12;
  --bubble-out: #2a1216;
  --cover: linear-gradient(120deg, #2a1216, #120c0e 60%, #0a0708);
}
html[data-skin="horror"] .topbar {
  border-bottom: 1px solid rgba(184,31,42,.45);
  box-shadow: 0 2px 20px rgba(120,0,0,.25);
}
html[data-skin="horror"] .card-h {
  text-transform: uppercase; letter-spacing: 1.2px; font-size: 11px;
  font-family: Georgia, "Times New Roman", serif;
  color: var(--accent-hi);
  border-bottom: 1px solid var(--border-2);
}
html[data-skin="horror"] .card-h i { color: var(--accent); }
html[data-skin="horror"] .btn { background: transparent; border-color: var(--border-2); color: var(--text-soft); }
html[data-skin="horror"] .btn-primary {
  background: linear-gradient(var(--accent-hi), var(--accent-lo));
  color: #fff; border-color: var(--accent-lo); text-shadow: 0 1px 0 rgba(0,0,0,.5);
}
html[data-skin="horror"] .landing h1,
html[data-skin="horror"] .profile-head h1 {
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: .4px;
}
html[data-skin="horror"] .tab.active::after { background: var(--accent); border-radius: 0; }
html[data-skin="horror"] .avatar { border-radius: 3px; }
html[data-skin="horror"] .post { border-left: 2px solid var(--border-2); }

/* ======================================================== picker: the list
   Templates are shown as a scrollable list, not a wall of tiles: each row has a
   swatch, a name, a one-line description and a tick when it is active. Grouped,
   so fifteen entries stay scannable. Sticky headers keep the context while the
   list scrolls. */

.skin-list {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--panel);
  max-height: 340px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}
.skin-list::-webkit-scrollbar { width: 8px; }
.skin-list::-webkit-scrollbar-thumb { background: var(--border-2); border-radius: 4px; }

.skin-group-h {
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 6px 10px;
  background: var(--panel-2);
  border-bottom: 1px solid var(--border);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .6px;
  color: var(--muted);
}
.skin-group-h + .skin-row { border-top: 0; }

.skin-row {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px 10px;
  border: 0;
  border-top: 1px solid var(--border);
  background: transparent;
  text-align: left;
  cursor: pointer;
  color: var(--text-soft);
  transition: background .15s var(--ease), color .15s var(--ease);
}
.skin-row:hover { background: var(--hover); color: var(--text); }
.skin-row:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.skin-row.active { background: var(--accent-soft); color: var(--text); }
.skin-row:disabled { opacity: .55; cursor: default; }
.skin-row:disabled:hover { background: transparent; color: var(--text-soft); }

.skin-row .txt { flex: 1; min-width: 0; }
.skin-row .nm { display: block; font-size: 12.5px; font-weight: 700; color: inherit; }
.skin-row .ds { display: block; font-size: 11px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.skin-row .tick { flex: none; color: var(--accent); font-size: 12px; opacity: 0; }
.skin-row.active .tick { opacity: 1; }

/* ------------------------------------------------------------- the swatch
   Not a colour chip: a 34x34 miniature of the interface, drawn from four
   variables per template, so it shows the bar, the panel, the accent and the
   corner radius all at once. A new template costs five lines here instead of
   two CSS rules, and the preview cannot drift from the theme it describes.

     --sw-bar      the topbar gradient
     --sw-panel    the page / card fill
     --sw-accent   the accent stripe
     --sw-line     body text lines
     --sw-radius   the template's own corner radius, so the shape reads too

   Defaults are the branded palette, so a template that forgets to set these
   still renders a sensible blue tile rather than an empty box. */

.skin-row .sw {
  position: relative;
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: var(--sw-radius, 4px);
  border: 1px solid var(--border-2);
  overflow: hidden;
  background: var(--sw-panel, #ffffff);
}
/* the topbar strip */
.skin-row .sw::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 9px;
  background: var(--sw-bar, linear-gradient(#6f9bc9, #4a76a8 55%, #3a5f8c));
}
/* an accent rule and two body lines: enough to read as "a page", not a blob */
.skin-row .sw::after {
  content: "";
  position: absolute;
  left: 4px; right: 4px; top: 13px; bottom: 3px;
  border-radius: 1px;
  background-image:
    linear-gradient(var(--sw-accent, #4a76a8), var(--sw-accent, #4a76a8)),
    linear-gradient(var(--sw-line, #c9d5e3), var(--sw-line, #c9d5e3)),
    linear-gradient(var(--sw-line, #c9d5e3), var(--sw-line, #c9d5e3));
  background-repeat: no-repeat;
  background-size: 46% 3px, 100% 2px, 68% 2px;
  background-position: 0 0, 0 7px, 0 12px;
  opacity: .95;
}

.skin-row[data-skin="branded"] {
  --sw-bar: linear-gradient(#6f9bc9, #4a76a8 55%, #3a5f8c);
  --sw-panel: #ffffff; --sw-accent: #4472a4; --sw-line: #d7e0ea; --sw-radius: 4px;
}
.skin-row[data-skin="aero"] {
  --sw-bar: linear-gradient(#89b9e4, #4a86c2 52%, #2d6096);
  --sw-panel: #ffffff; --sw-accent: #2f7fd6; --sw-line: #dbe6f2; --sw-radius: 8px;
}
.skin-row[data-skin="metro"] {
  --sw-bar: #1f1f1f;
  --sw-panel: #ffffff; --sw-accent: #0078d4; --sw-line: #dcdcdc; --sw-radius: 0px;
}
.skin-row[data-skin="paper"] {
  --sw-bar: #2b2620;
  --sw-panel: #fffdf7; --sw-accent: #8c3b2e; --sw-line: #ddd2bd; --sw-radius: 2px;
}
.skin-row[data-skin="terminal"] {
  --sw-bar: #060806;
  --sw-panel: #0f120f; --sw-accent: #7ad17a; --sw-line: #2a3a2c; --sw-radius: 0px;
}
.skin-row[data-skin="soft"] {
  --sw-bar: #ffffff;
  --sw-panel: #f9fafc; --sw-accent: #5b6ee1; --sw-line: #e6e9f2; --sw-radius: 10px;
}
.skin-row[data-skin="brutal"] {
  --sw-bar: #111111;
  --sw-panel: #ffffff; --sw-accent: #ff5c00; --sw-line: #111111; --sw-radius: 0px;
}
.skin-row[data-skin="neon"] {
  --sw-bar: #0a0713;
  --sw-panel: #120e1e; --sw-accent: #a86bff; --sw-line: #33224d; --sw-radius: 5px;
}
.skin-row[data-skin="warm"] {
  --sw-bar: linear-gradient(#b4682c, #8f4a1c 60%, #713a14);
  --sw-panel: #fdf7ec; --sw-accent: #c05621; --sw-line: #e0cfb2; --sw-radius: 6px;
}
.skin-row[data-skin="slate"] {
  --sw-bar: #ffffff;
  --sw-panel: #ffffff; --sw-accent: #0f766e; --sw-line: #dfe3e8; --sw-radius: 4px;
}
.skin-row[data-skin="matrix"] {
  --sw-bar: #03070a;
  --sw-panel: #061009; --sw-accent: #4fd76a; --sw-line: #1d4a2c; --sw-radius: 0px;
}
.skin-row[data-skin="cyberpunk"] {
  --sw-bar: #0a0616;
  --sw-panel: #120d22; --sw-accent: #ff2d8f; --sw-line: #3a2863; --sw-radius: 0px;
}
.skin-row[data-skin="newyear"] {
  --sw-bar: linear-gradient(#1e3556, #142438 60%, #0f1a2b);
  --sw-panel: #131f33; --sw-accent: #d4af37; --sw-line: #2c3f5c; --sw-radius: 8px;
}
.skin-row[data-skin="autumn"] {
  --sw-bar: linear-gradient(#a85a24, #85431a 60%, #6a3412);
  --sw-panel: #fdf7ec; --sw-accent: #c25a1e; --sw-line: #ddc9a8; --sw-radius: 5px;
}
.skin-row[data-skin="horror"] {
  --sw-bar: #070405;
  --sw-panel: #120c0e; --sw-accent: #b81f2a; --sw-line: #3a1a1f; --sw-radius: 2px;
}

@media (max-width: 560px) {
  .skin-list { max-height: 260px; }
  .skin-row .ds { display: none; }
}
