/* ===========================================================================
   Studio - the app pages' visual language
   ---------------------------------------------------------------------------
   landing.html already speaks this language (warm paper, olive ink, one
   terracotta accent, a serif for display type). The app pages behind it did
   not: they were the stock slate-and-electric-blue dark UI, Inter everywhere,
   heavy rounding and glow - the look every generated dashboard shares. This
   layer carries the landing's language into the top-level app pages
   (index.html, pages/*.html, the root tools) WITHOUT touching their markup.

   It works the same way design-system.254abf175d7a.css does: it re-points the --ds-*
   tokens, and every legacy name (--bg, --accent, --must ...) already follows
   those. Linked after design-system.254abf175d7a.css, and one specificity step above it
   so source order never matters:
     dark   html:not([data-ds-theme="light"]):root   (0,2,1) > html:root (0,1,1)
     light  html[data-ds-theme="light"]:root:root    (0,3,1) > (0,2,1)

   Linked from every page that links design-system.254abf175d7a.css, generated phase/topic/
   lab pages included (their generators emit it right after design-system.254abf175d7a.css).
   pages/roadmap.html and pages/hr-questions.html link it too: their inline
   :root / [data-theme="dark"] palettes were already outranked by the tokens,
   so the skin reaches them the same way; their own html[data-theme="dark"]
   layer only covers the hardcoded status tints.

   Contrast figures: dark against --ds-bg #151612, light against #F8F6F0.
   =========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&display=swap');
@import url("motion.254abf175d7a.css");
@import url("design-new.254abf175d7a.css");
@import url("buttons.254abf175d7a.css");

html[data-ds-palette="studio"]:not([data-ds-theme="light"]):root {
  --ds-bg:            #151612;
  --ds-bg-sunken:     #10110E;
  --ds-surface:       #191A16;
  --ds-surface-2:     #1E201B;
  --ds-surface-3:     #1C1E19;
  --ds-surface-4:     #25281F;
  --ds-border:        #3A3D33;
  --ds-border-subtle: #2A2C25;
  --ds-border-strong: #535747;

  --ds-text:          #F3F1E9;  /* 16.1:1 */
  --ds-text-2:        #D5D3C7;  /* 12.1:1 */
  --ds-text-muted:    #A6A697;  /*  7.4:1 */
  --ds-text-subtle:   #787A6C;  /*  4.1:1 - large/decorative only */

  --ds-accent:        #EC9270;  /*  7.7:1 - links, icons */
  --ds-accent-fill:   #B8431F;  /* white on it 5.4:1 */
  --ds-accent-hover:  #9E3818;
  --ds-accent-quiet:  rgba(236, 146, 112, .12);
  --ds-accent-line:   rgba(236, 146, 112, .32);

  --ds-success:       #9CC48C;
  --ds-success-fill:  #3E6541;
  --ds-success-quiet: rgba(156, 196, 140, .12);
  --ds-warning:       #E4B866;
  --ds-warning-fill:  #895410;
  --ds-warning-quiet: rgba(228, 184, 102, .12);
  --ds-danger:        #EF8E7E;
  --ds-danger-fill:   #A8321F;
  --ds-danger-quiet:  rgba(239, 142, 126, .12);
  --ds-purple:        #C7B8E0;
  --ds-purple-fill:   #5E4A8C;
  --ds-purple-quiet:  rgba(199, 184, 224, .12);

  --ds-shadow-sm: 0 1px 2px rgba(0, 0, 0, .30);
  --ds-shadow:    0 2px 8px rgba(0, 0, 0, .30);
  --ds-shadow-lg: 0 8px 24px rgba(0, 0, 0, .40);
  --ds-shadow-xl: 0 18px 48px rgba(0, 0, 0, .50);

  --good-bd: rgba(199, 184, 224, .30);
  --good-border: rgba(199, 184, 224, .30);
  --done-bd: rgba(156, 196, 140, .30);
  --done-border: rgba(156, 196, 140, .30);
  --warn-border: rgba(228, 184, 102, .30);
  --hl-kw: #E7A48A;
  --hl-type: #A9C7C0;
  --hl-cls: #D9A6C0;
  --on-accent: #151612;
}

html[data-ds-palette="studio"][data-ds-theme="light"]:root:root {
  --ds-bg:            #F8F6F0;
  --ds-bg-sunken:     #EFEDE4;
  --ds-surface:       #FFFEF9;
  --ds-surface-2:     #F1F1E9;
  --ds-surface-3:     #FFFEF9;
  --ds-surface-4:     #F3F2EA;
  --ds-border:        #C4C7B7;
  --ds-border-subtle: #DCDDD1;
  --ds-border-strong: #969A86;

  --ds-text:          #232820;  /* 13.9:1 */
  --ds-text-2:        #3B4137;  /* ~10:1 */
  --ds-text-muted:    #474D43;  /*  8.4:1 */
  --ds-text-subtle:   #585E52;  /*  6.3:1 */

  --ds-accent:        #A33A19;  /*  6.1:1 */
  --ds-accent-fill:   #BA421E;  /* white on it 5.4:1 */
  --ds-accent-hover:  #9A3517;
  --ds-accent-quiet:  rgba(186, 66, 30, .09);
  --ds-accent-line:   rgba(186, 66, 30, .28);

  --ds-success:       #3E6541;
  --ds-success-fill:  #3E6541;
  --ds-success-quiet: rgba(62, 101, 65, .10);
  --ds-warning:       #895410;
  --ds-warning-fill:  #895410;
  --ds-warning-quiet: rgba(137, 84, 16, .10);
  --ds-danger:        #A8321F;
  --ds-danger-fill:   #A8321F;
  --ds-danger-quiet:  rgba(168, 50, 31, .09);
  --ds-purple:        #5E4A8C;
  --ds-purple-fill:   #5E4A8C;
  --ds-purple-quiet:  rgba(94, 74, 140, .09);

  --ds-shadow-sm: 0 1px 2px rgba(35, 40, 32, .05);
  --ds-shadow:    0 2px 8px rgba(35, 40, 32, .06);
  --ds-shadow-lg: 0 8px 24px rgba(35, 40, 32, .09);
  --ds-shadow-xl: 0 18px 48px rgba(35, 40, 32, .14);

  --hl-kw:   #8A3417;
  --hl-fn:   #3D5A80;
  --hl-cls:  #8C3A63;
  --on-accent: #FFFFFF;
}

/* --- Shape ----------------------------------------------------------------
   Tighter radii and a quieter cast in both themes. Big pill-soft cards with
   a glow are most of what makes a generated UI read as generated. */
html[data-ds-palette="studio"]:root:root {
  --ds-radius-sm: 4px;
  --ds-radius:    6px;
  --ds-radius-lg: 8px;
  --ds-radius-xl: 12px;
  --r: var(--ds-radius-sm);
  --ds-font-display: var(--ds-font-sans);
}

/* --- Display type ---------------------------------------------------------
   The page title gets the display face, --ds-font-display above - the
   system UI stack, not a webfont: the app pages load Inter and JetBrains
   Mono only, and a serif named here would silently fall back per OS. (This
   comment used to promise Instrument Serif, which is the LANDING's display
   face; the token had already moved on.) The title is not bold - weight 400
   carries the page without shouting, and a synthetic bold is exactly the
   smear we are removing. */
/* A page's <h1> is its title, so the element itself is the selector,
   whatever wrapper each page put it in. */
html[data-ds-palette="studio"] h1:not(.sr-only) {
  /* !important because each page styles its own h1 inline, at every
     specificity from `h1` to `.hero .wrap h1`; this is one declaration set
     for the one element whose job it is, not a cascade fight per page. */
  font-family: var(--ds-user-font, var(--ds-font-display)) !important;
  font-weight: 400 !important;
  letter-spacing: -.005em !important;
  line-height: 1.05;
  /* Gradient-clipped headline text was the loudest tell. Give it its ink back. */
  background: none !important;
  -webkit-background-clip: border-box !important;
  background-clip: border-box !important;
  -webkit-text-fill-color: currentColor !important;
  color: var(--ds-text);
}
html[data-ds-palette="studio"] h1 em { font-style: italic; color: var(--ds-accent); }

/* --- Palettes ---------------------------------------------------------------
   The user's theme choice (Settings > Themes, assets/js/theme-palettes.js),
   stamped pre-paint as data-ds-palette by the ds-early-theme snippet. No
   attribute (or "classic") is the default: design-system.254abf175d7a.css's own slate
   surfaces, blue accent and Inter titles, untouched. "studio" is the blocks
   above, all gated on [data-ds-palette="studio"]. The others re-point only the accent family on top of it.
     dark   html[data-ds-palette=x]:root:root                        (0,3,1)
     light  html[data-ds-palette=x][data-ds-theme="light"]:root:root  (0,4,1) */
html[data-ds-palette="ocean"]:root:root {
  --ds-accent: #2DD4BF; --ds-accent-fill: #0F766E; --ds-accent-hover: #115E59;
  --ds-accent-quiet: rgba(45, 212, 191, .12); --ds-accent-line: rgba(45, 212, 191, .32);
}
html[data-ds-palette="ocean"][data-ds-theme="light"]:root:root {
  --ds-accent: #0F766E; --ds-accent-fill: #0F766E; --ds-accent-hover: #115E59;
  --ds-accent-quiet: rgba(15, 118, 110, .10); --ds-accent-line: rgba(15, 118, 110, .28);
}
html[data-ds-palette="forest"]:root:root {
  --ds-accent: #4ADE80; --ds-accent-fill: #15803D; --ds-accent-hover: #166534;
  --ds-accent-quiet: rgba(74, 222, 128, .12); --ds-accent-line: rgba(74, 222, 128, .32);
}
html[data-ds-palette="forest"][data-ds-theme="light"]:root:root {
  --ds-accent: #15803D; --ds-accent-fill: #15803D; --ds-accent-hover: #166534;
  --ds-accent-quiet: rgba(21, 128, 61, .10); --ds-accent-line: rgba(21, 128, 61, .28);
}
html[data-ds-palette="violet"]:root:root {
  --ds-accent: #A78BFA; --ds-accent-fill: #7C3AED; --ds-accent-hover: #6D28D9;
  --ds-accent-quiet: rgba(167, 139, 250, .12); --ds-accent-line: rgba(167, 139, 250, .32);
}
html[data-ds-palette="violet"][data-ds-theme="light"]:root:root {
  --ds-accent: #6D28D9; --ds-accent-fill: #7C3AED; --ds-accent-hover: #5B21B6;
  --ds-accent-quiet: rgba(109, 40, 217, .10); --ds-accent-line: rgba(109, 40, 217, .28);
}
html[data-ds-palette="rose"]:root:root {
  --ds-accent: #FB7185; --ds-accent-fill: #E11D48; --ds-accent-hover: #BE123C;
  --ds-accent-quiet: rgba(251, 113, 133, .12); --ds-accent-line: rgba(251, 113, 133, .32);
}
html[data-ds-palette="rose"][data-ds-theme="light"]:root:root {
  --ds-accent: #BE123C; --ds-accent-fill: #E11D48; --ds-accent-hover: #9F1239;
  --ds-accent-quiet: rgba(190, 18, 60, .10); --ds-accent-line: rgba(190, 18, 60, .28);
}

/* Full-surface palettes: well-known editor themes, each with its own light
   counterpart (Dracula's Alucard, Nord's Snow Storm, Solarized Light, Gruvbox
   Light, Tokyo Night Day, Catppuccin Latte). They replace every surface, text
   and semantic token, not just the accent. Fills are darkened from the
   originals where needed so white text on them stays >= 4.5:1. */
html[data-ds-palette="dracula"]:root:root {
  --ds-bg: #282A36; --ds-bg-sunken: #21222C;
  --ds-surface: #2B2D3A; --ds-surface-2: #343746; --ds-surface-3: #303241; --ds-surface-4: #3C3F52;
  --ds-border: #44475A; --ds-border-subtle: #363949; --ds-border-strong: #6272A4;
  --ds-text: #F8F8F2; --ds-text-2: #E2E2DC; --ds-text-muted: #B4B8D0; --ds-text-subtle: #8A93BF;
  --ds-accent: #BD93F9; --ds-accent-fill: #7C4DDB; --ds-accent-hover: #6A3CC7;
  --ds-accent-quiet: rgba(189, 147, 249, .12); --ds-accent-line: rgba(189, 147, 249, .32);
  --ds-success: #50FA7B; --ds-success-fill: #1F8A45; --ds-success-quiet: rgba(80, 250, 123, .12);
  --ds-warning: #F1FA8C; --ds-warning-fill: #8A6D10; --ds-warning-quiet: rgba(241, 250, 140, .12);
  --ds-danger: #FF5555; --ds-danger-fill: #C0303A; --ds-danger-quiet: rgba(255, 85, 85, .12);
  --ds-purple: #FF79C6; --ds-purple-quiet: rgba(255, 121, 198, .12);
}
html[data-ds-palette="dracula"][data-ds-theme="light"]:root:root {
  --ds-bg: #F8F8F2; --ds-bg-sunken: #EEEEE6;
  --ds-surface: #FFFFFF; --ds-surface-2: #F1F1EA; --ds-surface-3: #FFFFFF; --ds-surface-4: #EDEDE5;
  --ds-border: #D6D6CC; --ds-border-subtle: #E6E6DD; --ds-border-strong: #A9A99C;
  --ds-text: #1F1F2A; --ds-text-2: #3A3A4A; --ds-text-muted: #5A5A6E; --ds-text-subtle: #6E6E80;
  --ds-accent: #6A3CC7; --ds-accent-fill: #7C4DDB; --ds-accent-hover: #5B2FB0;
  --ds-accent-quiet: rgba(106, 60, 199, .10); --ds-accent-line: rgba(106, 60, 199, .28);
  --ds-success: #14713A; --ds-success-fill: #14713A; --ds-success-quiet: rgba(20, 113, 58, .10);
  --ds-warning: #8A5A00; --ds-warning-fill: #8A5A00; --ds-warning-quiet: rgba(138, 90, 0, .10);
  --ds-danger: #B3202B; --ds-danger-fill: #B3202B; --ds-danger-quiet: rgba(179, 32, 43, .10);
  --ds-purple: #A3206E; --ds-purple-quiet: rgba(163, 32, 110, .10);
}
html[data-ds-palette="nord"]:root:root {
  --ds-bg: #2E3440; --ds-bg-sunken: #272C36;
  --ds-surface: #323846; --ds-surface-2: #3B4252; --ds-surface-3: #373E4C; --ds-surface-4: #434C5E;
  --ds-border: #4C566A; --ds-border-subtle: #3B4252; --ds-border-strong: #616E88;
  --ds-text: #ECEFF4; --ds-text-2: #D8DEE9; --ds-text-muted: #AEB6C6; --ds-text-subtle: #8490A6;
  --ds-accent: #88C0D0; --ds-accent-fill: #4C7A9E; --ds-accent-hover: #3F6788;
  --ds-accent-quiet: rgba(136, 192, 208, .12); --ds-accent-line: rgba(136, 192, 208, .32);
  --ds-success: #A3BE8C; --ds-success-fill: #4E7A3A; --ds-success-quiet: rgba(163, 190, 140, .12);
  --ds-warning: #EBCB8B; --ds-warning-fill: #8A6420; --ds-warning-quiet: rgba(235, 203, 139, .12);
  --ds-danger: #BF616A; --ds-danger-fill: #A33E48; --ds-danger-quiet: rgba(191, 97, 106, .12);
  --ds-purple: #B48EAD; --ds-purple-quiet: rgba(180, 142, 173, .12);
}
html[data-ds-palette="nord"][data-ds-theme="light"]:root:root {
  --ds-bg: #ECEFF4; --ds-bg-sunken: #E1E6EE;
  --ds-surface: #FFFFFF; --ds-surface-2: #E5E9F0; --ds-surface-3: #FFFFFF; --ds-surface-4: #E5E9F0;
  --ds-border: #C8D0DC; --ds-border-subtle: #D8DEE9; --ds-border-strong: #99A5B8;
  --ds-text: #2E3440; --ds-text-2: #3B4252; --ds-text-muted: #4C566A; --ds-text-subtle: #5E6A80;
  --ds-accent: #3F6788; --ds-accent-fill: #4C7A9E; --ds-accent-hover: #35587A;
  --ds-accent-quiet: rgba(63, 103, 136, .10); --ds-accent-line: rgba(63, 103, 136, .28);
  --ds-success: #3F6A2C; --ds-success-fill: #3F6A2C; --ds-success-quiet: rgba(63, 106, 44, .10);
  --ds-warning: #8A5A10; --ds-warning-fill: #8A5A10; --ds-warning-quiet: rgba(138, 90, 16, .10);
  --ds-danger: #A33E48; --ds-danger-fill: #A33E48; --ds-danger-quiet: rgba(163, 62, 72, .10);
  --ds-purple: #7E5478; --ds-purple-quiet: rgba(126, 84, 120, .10);
}
html[data-ds-palette="solarized"]:root:root {
  --ds-bg: #002B36; --ds-bg-sunken: #00232C;
  --ds-surface: #03303C; --ds-surface-2: #073642; --ds-surface-3: #06343F; --ds-surface-4: #0B4150;
  --ds-border: #1E5463; --ds-border-subtle: #0B3D49; --ds-border-strong: #3F6E7A;
  --ds-text: #FDF6E3; --ds-text-2: #DDD6C1; --ds-text-muted: #A3AFAF; --ds-text-subtle: #7C8F92;
  --ds-accent: #6CB4E8; --ds-accent-fill: #1F6FAE; --ds-accent-hover: #185C92;
  --ds-accent-quiet: rgba(108, 180, 232, .12); --ds-accent-line: rgba(108, 180, 232, .32);
  --ds-success: #A5B83A; --ds-success-fill: #5C6B00; --ds-success-quiet: rgba(165, 184, 58, .12);
  --ds-warning: #E0B23A; --ds-warning-fill: #8A6000; --ds-warning-quiet: rgba(224, 178, 58, .12);
  --ds-danger: #F0706A; --ds-danger-fill: #B42A26; --ds-danger-quiet: rgba(240, 112, 106, .12);
  --ds-purple: #A9A5F0; --ds-purple-quiet: rgba(169, 165, 240, .12);
}
html[data-ds-palette="solarized"][data-ds-theme="light"]:root:root {
  --ds-bg: #FDF6E3; --ds-bg-sunken: #F3EBD3;
  --ds-surface: #FFFBF0; --ds-surface-2: #EEE8D5; --ds-surface-3: #FFFBF0; --ds-surface-4: #EEE8D5;
  --ds-border: #D9D1B8; --ds-border-subtle: #E8E1CA; --ds-border-strong: #A8A48E;
  --ds-text: #073642; --ds-text-2: #2F4A52; --ds-text-muted: #4F6068; --ds-text-subtle: #5E6E74;
  --ds-accent: #1F6FAE; --ds-accent-fill: #1F6FAE; --ds-accent-hover: #185C92;
  --ds-accent-quiet: rgba(31, 111, 174, .10); --ds-accent-line: rgba(31, 111, 174, .28);
  --ds-success: #566400; --ds-success-fill: #566400; --ds-success-quiet: rgba(86, 100, 0, .10);
  --ds-warning: #8A5A00; --ds-warning-fill: #8A5A00; --ds-warning-quiet: rgba(138, 90, 0, .10);
  --ds-danger: #B42A26; --ds-danger-fill: #B42A26; --ds-danger-quiet: rgba(180, 42, 38, .10);
  --ds-purple: #5652B0; --ds-purple-quiet: rgba(86, 82, 176, .10);
}
html[data-ds-palette="gruvbox"]:root:root {
  --ds-bg: #282828; --ds-bg-sunken: #1D2021;
  --ds-surface: #2C2B2A; --ds-surface-2: #32302F; --ds-surface-3: #302E2C; --ds-surface-4: #3C3836;
  --ds-border: #504945; --ds-border-subtle: #3C3836; --ds-border-strong: #665C54;
  --ds-text: #FBF1C7; --ds-text-2: #EBDBB2; --ds-text-muted: #BDAE93; --ds-text-subtle: #928374;
  --ds-accent: #FE8019; --ds-accent-fill: #AF3A03; --ds-accent-hover: #963203;
  --ds-accent-quiet: rgba(254, 128, 25, .12); --ds-accent-line: rgba(254, 128, 25, .32);
  --ds-success: #B8BB26; --ds-success-fill: #79740E; --ds-success-quiet: rgba(184, 187, 38, .12);
  --ds-warning: #FABD2F; --ds-warning-fill: #935F0A; --ds-warning-quiet: rgba(250, 189, 47, .12);
  --ds-danger: #FB4934; --ds-danger-fill: #9D0006; --ds-danger-quiet: rgba(251, 73, 52, .12);
  --ds-purple: #D3869B; --ds-purple-quiet: rgba(211, 134, 155, .12);
}
html[data-ds-palette="gruvbox"][data-ds-theme="light"]:root:root {
  --ds-bg: #FBF1C7; --ds-bg-sunken: #F2E5BC;
  --ds-surface: #FFF8DC; --ds-surface-2: #F2E5BC; --ds-surface-3: #FFF8DC; --ds-surface-4: #EBDBB2;
  --ds-border: #D5C4A1; --ds-border-subtle: #E6D6AE; --ds-border-strong: #A89984;
  --ds-text: #282828; --ds-text-2: #3C3836; --ds-text-muted: #504945; --ds-text-subtle: #665C54;
  --ds-accent: #AF3A03; --ds-accent-fill: #AF3A03; --ds-accent-hover: #963203;
  --ds-accent-quiet: rgba(175, 58, 3, .10); --ds-accent-line: rgba(175, 58, 3, .28);
  --ds-success: #79740E; --ds-success-fill: #79740E; --ds-success-quiet: rgba(121, 116, 14, .10);
  --ds-warning: #8A5A08; --ds-warning-fill: #8A5A08; --ds-warning-quiet: rgba(138, 90, 8, .10);
  --ds-danger: #9D0006; --ds-danger-fill: #9D0006; --ds-danger-quiet: rgba(157, 0, 6, .10);
  --ds-purple: #8F3F71; --ds-purple-quiet: rgba(143, 63, 113, .10);
}
html[data-ds-palette="tokyonight"]:root:root {
  --ds-bg: #1A1B26; --ds-bg-sunken: #16161E;
  --ds-surface: #1E2030; --ds-surface-2: #24283B; --ds-surface-3: #222436; --ds-surface-4: #2F334D;
  --ds-border: #3B4261; --ds-border-subtle: #292E42; --ds-border-strong: #565F89;
  --ds-text: #E0E6FF; --ds-text-2: #C0CAF5; --ds-text-muted: #A0A8CD; --ds-text-subtle: #737AA2;
  --ds-accent: #7AA2F7; --ds-accent-fill: #3D59A1; --ds-accent-hover: #324A8A;
  --ds-accent-quiet: rgba(122, 162, 247, .12); --ds-accent-line: rgba(122, 162, 247, .32);
  --ds-success: #9ECE6A; --ds-success-fill: #41743A; --ds-success-quiet: rgba(158, 206, 106, .12);
  --ds-warning: #E0AF68; --ds-warning-fill: #8A5F18; --ds-warning-quiet: rgba(224, 175, 104, .12);
  --ds-danger: #F7768E; --ds-danger-fill: #B42A45; --ds-danger-quiet: rgba(247, 118, 142, .12);
  --ds-purple: #BB9AF7; --ds-purple-quiet: rgba(187, 154, 247, .12);
}
html[data-ds-palette="tokyonight"][data-ds-theme="light"]:root:root {
  --ds-bg: #E1E2E7; --ds-bg-sunken: #D5D6DB;
  --ds-surface: #F0F1F5; --ds-surface-2: #E9E9ED; --ds-surface-3: #F4F4F7; --ds-surface-4: #E4E5EA;
  --ds-border: #C4C8DA; --ds-border-subtle: #D6D8E2; --ds-border-strong: #9699A3;
  --ds-text: #1F2335; --ds-text-2: #343B58; --ds-text-muted: #4C5374; --ds-text-subtle: #5F6582;
  --ds-accent: #2E5BB8; --ds-accent-fill: #2E5BB8; --ds-accent-hover: #244A99;
  --ds-accent-quiet: rgba(46, 91, 184, .10); --ds-accent-line: rgba(46, 91, 184, .28);
  --ds-success: #33635C; --ds-success-fill: #33635C; --ds-success-quiet: rgba(51, 99, 92, .10);
  --ds-warning: #8F5E15; --ds-warning-fill: #8F5E15; --ds-warning-quiet: rgba(143, 94, 21, .10);
  --ds-danger: #B01E4A; --ds-danger-fill: #B01E4A; --ds-danger-quiet: rgba(176, 30, 74, .10);
  --ds-purple: #6B3FB8; --ds-purple-quiet: rgba(107, 63, 184, .10);
}
html[data-ds-palette="catppuccin"]:root:root {
  --ds-bg: #1E1E2E; --ds-bg-sunken: #181825;
  --ds-surface: #232334; --ds-surface-2: #2A2A3C; --ds-surface-3: #262637; --ds-surface-4: #313244;
  --ds-border: #45475A; --ds-border-subtle: #313244; --ds-border-strong: #6C7086;
  --ds-text: #E6EAFA; --ds-text-2: #CDD6F4; --ds-text-muted: #A6ADC8; --ds-text-subtle: #7F849C;
  --ds-accent: #CBA6F7; --ds-accent-fill: #8250C8; --ds-accent-hover: #6E40B0;
  --ds-accent-quiet: rgba(203, 166, 247, .12); --ds-accent-line: rgba(203, 166, 247, .32);
  --ds-success: #A6E3A1; --ds-success-fill: #2E7D32; --ds-success-quiet: rgba(166, 227, 161, .12);
  --ds-warning: #F9E2AF; --ds-warning-fill: #8A6410; --ds-warning-quiet: rgba(249, 226, 175, .12);
  --ds-danger: #F38BA8; --ds-danger-fill: #B4234A; --ds-danger-quiet: rgba(243, 139, 168, .12);
  --ds-purple: #F5C2E7; --ds-purple-quiet: rgba(245, 194, 231, .12);
}
html[data-ds-palette="catppuccin"][data-ds-theme="light"]:root:root {
  --ds-bg: #EFF1F5; --ds-bg-sunken: #E6E9EF;
  --ds-surface: #FFFFFF; --ds-surface-2: #E6E9EF; --ds-surface-3: #FFFFFF; --ds-surface-4: #DCE0E8;
  --ds-border: #CCD0DA; --ds-border-subtle: #DCE0E8; --ds-border-strong: #9CA0B0;
  --ds-text: #4C4F69; --ds-text-2: #4C4F69; --ds-text-muted: #5C5F77; --ds-text-subtle: #6C6F85;
  --ds-accent: #7439D6; --ds-accent-fill: #8839EF; --ds-accent-hover: #6A28C8;
  --ds-accent-quiet: rgba(116, 57, 214, .10); --ds-accent-line: rgba(116, 57, 214, .28);
  --ds-success: #2D7A1E; --ds-success-fill: #2D7A1E; --ds-success-quiet: rgba(45, 122, 30, .10);
  --ds-warning: #8A5500; --ds-warning-fill: #8A5500; --ds-warning-quiet: rgba(138, 85, 0, .10);
  --ds-danger: #B3123A; --ds-danger-fill: #B3123A; --ds-danger-quiet: rgba(179, 18, 58, .10);
  --ds-purple: #A3308A; --ds-purple-quiet: rgba(163, 48, 138, .10);
}

/* Custom: the user's own accent (both modes) and optional canvas colour.
   The values arrive as inline --ds-custom-* properties on <html>; the canvas
   only applies in the mode it was picked for (data-ds-custom-bg), so a dark
   background never sits under light-mode text after the toggle. */
html[data-ds-palette="custom"]:root:root,
html[data-ds-palette="custom"][data-ds-theme="light"]:root:root {
  --ds-accent:       var(--ds-custom-accent, var(--ds-accent-fill));
  --ds-accent-fill:  var(--ds-custom-accent, #2563EB);
  --ds-accent-hover: color-mix(in srgb, var(--ds-custom-accent, #2563EB) 82%, black);
  --ds-accent-quiet: color-mix(in srgb, var(--ds-custom-accent, #2563EB) 12%, transparent);
  --ds-accent-line:  color-mix(in srgb, var(--ds-custom-accent, #2563EB) 32%, transparent);
}
html[data-ds-palette="custom"][data-ds-custom-bg="dark"]:not([data-ds-theme="light"]):root,
html[data-ds-palette="custom"][data-ds-custom-bg="light"][data-ds-theme="light"]:root {
  --ds-bg:            var(--ds-custom-bg);
  --ds-bg-sunken:     color-mix(in srgb, var(--ds-custom-bg) 92%, black);
  --ds-surface:       color-mix(in srgb, var(--ds-custom-bg) 94%, var(--ds-text));
  --ds-surface-2:     color-mix(in srgb, var(--ds-custom-bg) 91%, var(--ds-text));
  --ds-surface-3:     color-mix(in srgb, var(--ds-custom-bg) 92%, var(--ds-text));
  --ds-surface-4:     color-mix(in srgb, var(--ds-custom-bg) 87%, var(--ds-text));
  --ds-border:        color-mix(in srgb, var(--ds-custom-bg) 75%, var(--ds-text));
  --ds-border-subtle: color-mix(in srgb, var(--ds-custom-bg) 86%, var(--ds-text));
  --ds-border-strong: color-mix(in srgb, var(--ds-custom-bg) 62%, var(--ds-text));
}

/* Inline code inside prose (a long method or class name) wraps rather than
   pushing a phone-width page sideways. Code BLOCKS keep their own scroll. */
p code, li code, td code, .topic-desc code { overflow-wrap: anywhere; }

/* --- High contrast --------------------------------------------------------
   The dark palette above is (0,2,1), the same weight as design-system.254abf175d7a.css's
   high-contrast block, and later - so without this it silently switched the
   accessibility setting off on every page that links this file. Re-asserted
   one step higher - above every palette too; keep it last. */
html[data-ds-contrast="high"]:root:root:root:root {
  --ds-text-2:      #FFFFFF;
  --ds-text-muted:  #E2E8F0;
  --ds-text-subtle: #CBD5E1;
  --ds-border:      #64748B;
  --ds-border-subtle: #475569;
  --ds-bg:          #0B0C09;
}
html[data-ds-palette="studio"][data-ds-contrast="high"]:root:root:root:root {
  --ds-accent:      #F5B79C;  /* 11.3:1, the terracotta accent brightened */
}
