/* Paper · Editorial — the look chosen on 2026-11-10 (docs/superpowers/specs/2026-11-10-ui-redo-paper-design.md).
   Loaded after every other stylesheet. It resets the design tokens for each theme and restyles the
   shared pieces, so existing screens take the look without markup changes. Reference: mocks/ui-redo. */

@font-face { font-family: "DM Sans"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("/fonts/dm-sans.woff2") format("woff2"); }
@font-face { font-family: "Young Serif"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/young-serif.woff2") format("woff2"); }

/* ---------- tokens ---------- */
:root {
  --bg: #f2ebdf; --panel: #fffbf4; --header: #fffbf4; --surface: #fffbf4; --field: #f6f0e5;
  --line: rgba(43, 36, 28, 0.09); --line-strong: rgba(43, 36, 28, 0.2); --raise: none;
  --text: #2b241c; --muted: #6e6457; --ink: #2b241c; --on-ink: #fffbf4;
  --btn-bg: #2f6b4f; --btn-fg: #ffffff; --btn-border: transparent; --btn-bg-hover: #285c44;
  --accent: #2f6b4f; --live: #2e8b57; --amber: #9a5b00; --danger: #c4472f;
  --focus-ring: color-mix(in srgb, var(--accent) 38%, transparent);
  --shadow: 0 18px 50px rgba(60, 45, 25, 0.18);
  --shadow-soft: 0 1px 2px rgba(60, 45, 25, 0.06), 0 6px 20px rgba(60, 45, 25, 0.06);
  --radius: 20px; --radius-card: 16px; --radius-ctl: 12px;
  --sans: "DM Sans", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --serif: "Young Serif", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --heading: #2b241c; --heading-soft: #2f6b4f;
  --paper-raised: #ebe2d3;
  --logo-filter: hue-rotate(-14deg) saturate(0.72);
}
:root[data-theme="dark"] {
  --bg: #171412; --panel: #211d1a; --header: #211d1a; --surface: #262220; --field: #2b2723;
  --line: rgba(255, 244, 230, 0.08); --line-strong: rgba(255, 244, 230, 0.18); --raise: none;
  --text: #f2ede6; --muted: #b5aba0; --ink: #f2ede6; --on-ink: #171412;
  --btn-bg: #7fcf9f; --btn-fg: #10231a; --btn-border: transparent; --btn-bg-hover: #96dab0;
  --accent: #7fcf9f; --live: #6fcf97; --amber: #f0b45a; --danger: #f08a76;
  --shadow: 0 20px 56px rgba(0, 0, 0, 0.5); --shadow-soft: 0 0 0 1px rgba(255, 244, 230, 0.06);
  --heading: #f7f2eb; --heading-soft: #a5dcbb;
  --paper-raised: #2e2925;
  --code-bg: #14110f; --code-text: #ece6de; --code-line: rgba(255, 244, 230, 0.1);
  --logo-filter: hue-rotate(-22deg) saturate(0.8) brightness(1.08);
}
:root[data-theme="dark"][data-palette="midnight"] {
  --bg: #0e1320; --panel: #161d2e; --header: #161d2e; --surface: #1a2236; --field: #1b2338;
  --line: rgba(220, 232, 255, 0.08); --line-strong: rgba(220, 232, 255, 0.18);
  --text: #eaf0fa; --muted: #a9b5cc; --ink: #eaf0fa; --on-ink: #0e1320;
  --btn-bg: #7fcf9f; --btn-fg: #10231a; --btn-border: transparent; --btn-bg-hover: #96dab0;
  --accent: #7fcf9f; --heading: #f3f6fc; --heading-soft: #a5dcbb;
  --paper-raised: #212b44;
  --code-bg: #0b101b; --code-text: #e3ebf8; --code-line: rgba(220, 232, 255, 0.1);
  --logo-filter: hue-rotate(-22deg) saturate(0.8) brightness(1.08);
}
:root[data-theme="dark"][data-palette="graphite"] {
  --bg: #1a1a1b; --panel: #252527; --header: #252527; --surface: #29292c; --field: #2b2b2e;
  --line: rgba(255, 255, 255, 0.08); --line-strong: rgba(255, 255, 255, 0.18);
  --text: #efefef; --muted: #b2b2b5; --ink: #efefef; --on-ink: #1a1a1b;
  --btn-bg: #7fcf9f; --btn-fg: #10231a; --btn-border: transparent; --btn-bg-hover: #96dab0;
  --accent: #7fcf9f; --heading: #f6f6f6; --heading-soft: #a5dcbb;
  --paper-raised: #313134;
  --code-bg: #141416; --code-text: #ebebed; --code-line: rgba(255, 255, 255, 0.1);
  --logo-filter: hue-rotate(-22deg) saturate(0.8) brightness(1.08);
}
:root[data-theme="light"][data-palette="sepia"] {
  --bg: #efe6d4; --panel: #fbf5e8; --header: #fbf5e8; --surface: #fbf5e8; --field: #f3ebda;
  --line: rgba(43, 33, 24, 0.1); --line-strong: rgba(43, 33, 24, 0.22);
  --text: #2b2118; --muted: #6a5b49; --ink: #2b2118; --on-ink: #fbf5e8;
  --btn-bg: #2f6b4f; --btn-fg: #ffffff; --btn-border: transparent; --btn-bg-hover: #285c44;
  --accent: #2f6b4f; --heading: #2b2118; --heading-soft: #2f6b4f;
  --paper-raised: #e4d8c1;
  --logo-filter: hue-rotate(-14deg) saturate(0.72);
}

/* ---------- Classic Dark palettes (VS Code) ---------- */
:root[data-theme="dark"][data-palette="dracula"] {
  --bg: #1e1f29; --panel: #282a36; --header: #282a36; --surface: #303341; --field: #343746;
  --line: rgba(248, 248, 242, 0.09); --line-strong: rgba(248, 248, 242, 0.2);
  --text: #f8f8f2; --muted: #9aa5ce; --ink: #f8f8f2; --on-ink: #1e1f29;
  --btn-bg: #bd93f9; --btn-fg: #1e1f29; --btn-border: transparent; --btn-bg-hover: #caa8ff;
  --accent: #bd93f9; --live: #50fa7b; --amber: #ffb86c; --danger: #ff5555;
  --heading: #f8f8f2; --heading-soft: #ff79c6;
  --paper-raised: #44475a;
  --code-bg: #21222c; --code-text: #f8f8f2; --code-line: rgba(248, 248, 242, 0.12);
  --logo-filter: hue-rotate(99deg) saturate(1.15) brightness(1.08);
}
:root[data-theme="dark"][data-palette="tokyo-night"] {
  --bg: #16161e; --panel: #1a1b26; --header: #1a1b26; --surface: #202333; --field: #24283b;
  --line: rgba(192, 202, 245, 0.09); --line-strong: rgba(192, 202, 245, 0.2);
  --text: #c0caf5; --muted: #7882a8; --ink: #c0caf5; --on-ink: #16161e;
  --btn-bg: #7aa2f7; --btn-fg: #131521; --btn-border: transparent; --btn-bg-hover: #8db0ff;
  --accent: #7aa2f7; --live: #9ece6a; --amber: #e0af68; --danger: #f7768e;
  --heading: #dde4ff; --heading-soft: #7dcfff;
  --paper-raised: #292e42;
  --code-bg: #13141c; --code-text: #c0caf5; --code-line: rgba(192, 202, 245, 0.12);
  --logo-filter: hue-rotate(55deg) saturate(1.1) brightness(1.08);
}
:root[data-theme="dark"][data-palette="catppuccin-mocha"] {
  --bg: #181825; --panel: #1e1e2e; --header: #1e1e2e; --surface: #252538; --field: #29293d;
  --line: rgba(205, 214, 244, 0.09); --line-strong: rgba(205, 214, 244, 0.2);
  --text: #cdd6f4; --muted: #9399b2; --ink: #cdd6f4; --on-ink: #181825;
  --btn-bg: #cba6f7; --btn-fg: #181825; --btn-border: transparent; --btn-bg-hover: #d7b9fa;
  --accent: #cba6f7; --live: #a6e3a1; --amber: #f9e2af; --danger: #f38ba8;
  --heading: #e4e9fc; --heading-soft: #89b4fa;
  --paper-raised: #313244;
  --code-bg: #14141f; --code-text: #cdd6f4; --code-line: rgba(205, 214, 244, 0.12);
  --logo-filter: hue-rotate(101deg) saturate(1.05) brightness(1.12);
}
:root[data-theme="dark"][data-palette="nord"] {
  --bg: #242933; --panel: #2e3440; --header: #2e3440; --surface: #353c4a; --field: #3b4252;
  --line: rgba(236, 239, 244, 0.09); --line-strong: rgba(236, 239, 244, 0.2);
  --text: #eceff4; --muted: #9aa7bd; --ink: #eceff4; --on-ink: #242933;
  --btn-bg: #88c0d0; --btn-fg: #1c222b; --btn-border: transparent; --btn-bg-hover: #9bcdda;
  --accent: #88c0d0; --live: #a3be8c; --amber: #ebcb8b; --danger: #bf616a;
  --heading: #f5f7fa; --heading-soft: #8fbcbb;
  --paper-raised: #434c5e;
  --code-bg: #20252e; --code-text: #eceff4; --code-line: rgba(236, 239, 244, 0.12);
  --logo-filter: hue-rotate(27deg) saturate(0.74) brightness(1.06);
}
:root[data-theme="dark"][data-palette="one-dark-pro"] {
  --bg: #21252b; --panel: #282c34; --header: #282c34; --surface: #2e333d; --field: #323842;
  --line: rgba(220, 223, 228, 0.09); --line-strong: rgba(220, 223, 228, 0.19);
  --text: #dcdfe4; --muted: #9097a5; --ink: #dcdfe4; --on-ink: #21252b;
  --btn-bg: #61afef; --btn-fg: #182029; --btn-border: transparent; --btn-bg-hover: #7bbdf2;
  --accent: #61afef; --live: #98c379; --amber: #e5c07b; --danger: #e06c75;
  --heading: #f0f2f5; --heading-soft: #56b6c2;
  --paper-raised: #3a404c;
  --code-bg: #1c2026; --code-text: #dcdfe4; --code-line: rgba(220, 223, 228, 0.11);
  --logo-filter: hue-rotate(41deg) saturate(1.12) brightness(1.06);
}
:root[data-theme="dark"][data-palette="vscode-dark"] {
  --bg: #181818; --panel: #1e1e1e; --header: #1e1e1e; --surface: #252526; --field: #2d2d30;
  --line: rgba(255, 255, 255, 0.09); --line-strong: rgba(255, 255, 255, 0.2);
  --text: #d4d4d4; --muted: #969696; --ink: #d4d4d4; --on-ink: #181818;
  --btn-bg: #3794ff; --btn-fg: #0e1926; --btn-border: transparent; --btn-bg-hover: #58a6ff;
  --accent: #3794ff; --live: #4ec9b0; --amber: #d7ba7d; --danger: #f48771;
  --heading: #f3f3f3; --heading-soft: #4fc1ff;
  --paper-raised: #37373d;
  --code-bg: #141414; --code-text: #d4d4d4; --code-line: rgba(255, 255, 255, 0.11);
  --logo-filter: hue-rotate(46deg) saturate(1.2) brightness(1.04);
}
:root[data-theme="dark"][data-palette="github-dark"] {
  --bg: #010409; --panel: #0d1117; --header: #0d1117; --surface: #161b22; --field: #1c2128;
  --line: rgba(240, 246, 252, 0.1); --line-strong: rgba(240, 246, 252, 0.22);
  --text: #e6edf3; --muted: #8b949e; --ink: #e6edf3; --on-ink: #010409;
  --btn-bg: #58a6ff; --btn-fg: #081629; --btn-border: transparent; --btn-bg-hover: #79b8ff;
  --accent: #58a6ff; --live: #3fb950; --amber: #d29922; --danger: #f85149;
  --heading: #f0f6fc; --heading-soft: #79c0ff;
  --paper-raised: #21262d;
  --code-bg: #090d13; --code-text: #e6edf3; --code-line: rgba(240, 246, 252, 0.12);
  --logo-filter: hue-rotate(46deg) saturate(1.18) brightness(1.06);
}
:root[data-theme="dark"][data-palette="night-owl"] {
  --bg: #01111d; --panel: #011627; --header: #011627; --surface: #072136; --field: #0b2942;
  --line: rgba(214, 222, 235, 0.1); --line-strong: rgba(214, 222, 235, 0.22);
  --text: #d6deeb; --muted: #7e97ac; --ink: #d6deeb; --on-ink: #01111d;
  --btn-bg: #82aaff; --btn-fg: #041326; --btn-border: transparent; --btn-bg-hover: #9bbbff;
  --accent: #82aaff; --live: #addb67; --amber: #f78c6c; --danger: #ef5350;
  --heading: #edf2fa; --heading-soft: #c792ea;
  --paper-raised: #123654;
  --code-bg: #010e1a; --code-text: #d6deeb; --code-line: rgba(214, 222, 235, 0.12);
  --logo-filter: hue-rotate(55deg) saturate(1.15) brightness(1.08);
}
:root[data-theme="dark"][data-palette="palenight"] {
  --bg: #212432; --panel: #292d3e; --header: #292d3e; --surface: #30354a; --field: #343a52;
  --line: rgba(238, 255, 255, 0.09); --line-strong: rgba(238, 255, 255, 0.2);
  --text: #eeffff; --muted: #959dcb; --ink: #eeffff; --on-ink: #212432;
  --btn-bg: #c792ea; --btn-fg: #1d1529; --btn-border: transparent; --btn-bg-hover: #d5abef;
  --accent: #c792ea; --live: #c3e88d; --amber: #f78c6c; --danger: #f07178;
  --heading: #ffffff; --heading-soft: #82aaff;
  --paper-raised: #3e4461;
  --code-bg: #1d202d; --code-text: #eeffff; --code-line: rgba(238, 255, 255, 0.11);
  --logo-filter: hue-rotate(110deg) saturate(1.05) brightness(1.1);
}
:root[data-theme="dark"][data-palette="synthwave"] {
  --bg: #1c1629; --panel: #262335; --header: #262335; --surface: #2e2940; --field: #342f49;
  --line: rgba(244, 238, 255, 0.1); --line-strong: rgba(244, 238, 255, 0.22);
  --text: #f4eeff; --muted: #a699c4; --ink: #f4eeff; --on-ink: #1c1629;
  --btn-bg: #ff7edb; --btn-fg: #201226; --btn-border: transparent; --btn-bg-hover: #ff9be4;
  --accent: #ff7edb; --live: #72f1b8; --amber: #ff8b39; --danger: #fe4450;
  --heading: #ffffff; --heading-soft: #36f9f6;
  --paper-raised: #413a5c;
  --code-bg: #181324; --code-text: #f4eeff; --code-line: rgba(244, 238, 255, 0.12);
  --logo-filter: hue-rotate(150deg) saturate(1.25) brightness(1.1);
}
:root[data-theme="dark"][data-palette="gruvbox-dark"] {
  --bg: #1d2021; --panel: #282828; --header: #282828; --surface: #32302f; --field: #363331;
  --line: rgba(235, 219, 178, 0.1); --line-strong: rgba(235, 219, 178, 0.22);
  --text: #ebdbb2; --muted: #a89984; --ink: #ebdbb2; --on-ink: #1d2021;
  --btn-bg: #fe8019; --btn-fg: #1d2021; --btn-border: transparent; --btn-bg-hover: #ff943b;
  --accent: #fe8019; --live: #b8bb26; --amber: #fe8019; --danger: #fb4934;
  --heading: #fbf1c7; --heading-soft: #8ec07c;
  --paper-raised: #3c3836;
  --code-bg: #191b1c; --code-text: #ebdbb2; --code-line: rgba(235, 219, 178, 0.12);
  --logo-filter: hue-rotate(-139deg) saturate(1.15) brightness(1.04);
}
:root[data-theme="dark"][data-palette="monokai-pro"] {
  --bg: #221f22; --panel: #2d2a2e; --header: #2d2a2e; --surface: #353236; --field: #39363a;
  --line: rgba(252, 252, 250, 0.09); --line-strong: rgba(252, 252, 250, 0.2);
  --text: #fcfcfa; --muted: #9b9a9b; --ink: #fcfcfa; --on-ink: #221f22;
  --btn-bg: #ff6188; --btn-fg: #1d1418; --btn-border: transparent; --btn-bg-hover: #ff7c9c;
  --accent: #ff6188; --live: #a9dc76; --amber: #fc9867; --danger: #ff6188;
  --heading: #fcfcfa; --heading-soft: #78dce8;
  --paper-raised: #444046;
  --code-bg: #1c191c; --code-text: #fcfcfa; --code-line: rgba(252, 252, 250, 0.11);
  --logo-filter: hue-rotate(179deg) saturate(1.2) brightness(1.05);
}
:root[data-theme="dark"][data-palette="solarized-dark"] {
  --bg: #00212b; --panel: #002b36; --header: #002b36; --surface: #073642; --field: #0a3c49;
  --line: rgba(238, 232, 213, 0.1); --line-strong: rgba(238, 232, 213, 0.22);
  --text: #eee8d5; --muted: #839496; --ink: #eee8d5; --on-ink: #00212b;
  --btn-bg: #2aa198; --btn-fg: #00212b; --btn-border: transparent; --btn-bg-hover: #38b8ae;
  --accent: #2aa198; --live: #859900; --amber: #cb4b16; --danger: #dc322f;
  --heading: #fdf6e3; --heading-soft: #268bd2;
  --paper-raised: #104958;
  --code-bg: #001c24; --code-text: #eee8d5; --code-line: rgba(238, 232, 213, 0.12);
  --logo-filter: hue-rotate(9deg) saturate(0.92);
}
:root[data-theme="dark"][data-palette="rose-pine"] {
  --bg: #191724; --panel: #1f1d2e; --header: #1f1d2e; --surface: #26233a; --field: #2b2740;
  --line: rgba(224, 222, 244, 0.09); --line-strong: rgba(224, 222, 244, 0.2);
  --text: #e0def4; --muted: #908caa; --ink: #e0def4; --on-ink: #191724;
  --btn-bg: #ebbcba; --btn-fg: #191724; --btn-border: transparent; --btn-bg-hover: #f2ccca;
  --accent: #ebbcba; --live: #9ccfd8; --amber: #f6c177; --danger: #eb6f92;
  --heading: #f0eefc; --heading-soft: #c4a7e7;
  --paper-raised: #34304c;
  --code-bg: #151320; --code-text: #e0def4; --code-line: rgba(224, 222, 244, 0.11);
  --logo-filter: hue-rotate(-164deg) saturate(0.85) brightness(1.12);
}
:root[data-theme="dark"][data-palette="kanagawa"] {
  --bg: #16161d; --panel: #1f1f28; --header: #1f1f28; --surface: #272734; --field: #2a2a37;
  --line: rgba(220, 215, 186, 0.09); --line-strong: rgba(220, 215, 186, 0.2);
  --text: #dcd7ba; --muted: #938aa9; --ink: #dcd7ba; --on-ink: #16161d;
  --btn-bg: #7e9cd8; --btn-fg: #16161d; --btn-border: transparent; --btn-bg-hover: #95b0e4;
  --accent: #7e9cd8; --live: #98bb6c; --amber: #e6c384; --danger: #e46876;
  --heading: #ece7cc; --heading-soft: #7fb4ca;
  --paper-raised: #363646;
  --code-bg: #121218; --code-text: #dcd7ba; --code-line: rgba(220, 215, 186, 0.11);
  --logo-filter: hue-rotate(54deg) saturate(0.85) brightness(1.06);
}

/* ---------- Classic Light palettes (VS Code) ---------- */
:root[data-theme="light"][data-palette="vscode-light"] {
  --bg: #f3f3f3; --panel: #ffffff; --header: #ffffff; --surface: #f8f8f8; --field: #ececec;
  --line: rgba(31, 31, 31, 0.1); --line-strong: rgba(31, 31, 31, 0.22);
  --text: #1f1f1f; --muted: #616161; --ink: #1f1f1f; --on-ink: #ffffff;
  --btn-bg: #0066b8; --btn-fg: #ffffff; --btn-border: transparent; --btn-bg-hover: #005499;
  --accent: #0066b8; --live: #16825d; --amber: #bf5a00; --danger: #cd3131;
  --heading: #1f1f1f; --heading-soft: #0066b8;
  --paper-raised: #e4e6f1;
  --logo-filter: hue-rotate(41deg) saturate(1.18) brightness(0.92);
}
:root[data-theme="light"][data-palette="catppuccin-latte"] {
  --bg: #e6e9ef; --panel: #eff1f5; --header: #eff1f5; --surface: #f7f8fb; --field: #e6e9ef;
  --line: rgba(76, 79, 105, 0.1); --line-strong: rgba(76, 79, 105, 0.22);
  --text: #4c4f69; --muted: #6c6f85; --ink: #4c4f69; --on-ink: #eff1f5;
  --btn-bg: #8839ef; --btn-fg: #ffffff; --btn-border: transparent; --btn-bg-hover: #7628dd;
  --accent: #8839ef; --live: #40a02b; --amber: #fe640b; --danger: #d20f39;
  --heading: #3b3e54; --heading-soft: #8839ef;
  --paper-raised: #dce0e8;
  --logo-filter: hue-rotate(100deg) saturate(1.18) brightness(0.95);
}
:root[data-theme="light"][data-palette="solarized-light"] {
  --bg: #eee8d5; --panel: #fdf6e3; --header: #fdf6e3; --surface: #f7f0dd; --field: #eee8d5;
  --line: rgba(7, 54, 66, 0.1); --line-strong: rgba(7, 54, 66, 0.22);
  --text: #073642; --muted: #657b83; --ink: #073642; --on-ink: #fdf6e3;
  --btn-bg: #268bd2; --btn-fg: #ffffff; --btn-border: transparent; --btn-bg-hover: #1e78b8;
  --accent: #268bd2; --live: #859900; --amber: #cb4b16; --danger: #dc322f;
  --heading: #002b36; --heading-soft: #2aa198;
  --paper-raised: #e3dcc8;
  --logo-filter: hue-rotate(39deg) saturate(1.05) brightness(0.95);
}
:root[data-theme="light"][data-palette="github-light"] {
  --bg: #f6f8fa; --panel: #ffffff; --header: #ffffff; --surface: #f6f8fa; --field: #f0f3f6;
  --line: rgba(31, 35, 40, 0.1); --line-strong: rgba(31, 35, 40, 0.22);
  --text: #1f2328; --muted: #656d76; --ink: #1f2328; --on-ink: #ffffff;
  --btn-bg: #0969da; --btn-fg: #ffffff; --btn-border: transparent; --btn-bg-hover: #0757b8;
  --accent: #0969da; --live: #1a7f37; --amber: #9a6700; --danger: #cf222e;
  --heading: #1f2328; --heading-soft: #0969da;
  --paper-raised: #eaeef2;
  --logo-filter: hue-rotate(46deg) saturate(1.2) brightness(0.92);
}
:root[data-theme="light"][data-palette="gruvbox-light"] {
  --bg: #ebdbb2; --panel: #fbf1c7; --header: #fbf1c7; --surface: #f2e5bc; --field: #ebdbb2;
  --line: rgba(60, 56, 54, 0.12); --line-strong: rgba(60, 56, 54, 0.25);
  --text: #3c3836; --muted: #7c6f64; --ink: #282828; --on-ink: #fbf1c7;
  --btn-bg: #af3a03; --btn-fg: #fbf1c7; --btn-border: transparent; --btn-bg-hover: #943002;
  --accent: #af3a03; --live: #79740e; --amber: #af3a03; --danger: #9d0006;
  --heading: #282828; --heading-soft: #427b58;
  --paper-raised: #dfd0a3;
  --logo-filter: hue-rotate(-146deg) saturate(1.1) brightness(0.9);
}

/* The logo's teal (166° hue) rotates to match each theme's accent. */
:root img[src^="/icon"] { filter: var(--logo-filter); }
:root .app-boot-mark { filter: var(--logo-filter) drop-shadow(0 18px 28px rgba(20, 22, 24, 0.18)); }

/* ---------- scrollbars ---------- */
/* Every scroll box gets the thin, quiet bar the lists already had (Bob's chat, the composer and the cards did not). The same
   variables as everywhere else, so Safari keeps its WebKit fallback in styles.css; a box that hides its bar says so itself. */
* { scrollbar-width: var(--sb-width, thin); scrollbar-color: var(--sb-color, var(--line-strong) transparent); }

/* ---------- type ---------- */
body { font-family: var(--sans); }
/* Young Serif has one weight; a bolder setting would be faked by the browser. */
h1, h2, .app-boot-wordmark, .brand-copy strong, .message-content.md :is(h1, h2, h3, h4, h5, h6),
.focus-controls > header strong, body.focus-ui .queued-editor-top strong { font-weight: 400; letter-spacing: 0; }

/* Labels drop the monospaced capitals. Group and section labels take the serif; pills and badges stay sans. */
:is(.eyebrow, .status-pill, .chat-badge, .model-dialog-group, .credential-state,
  .brand-copy span, .chat-project-name, .chat-control > span, .queued-badge, .activity-rule-kind,
  .harness-switch-notice, .github-group-default, .skill-option-scope,
  .git-review-kind, .resources-badge, .budget-head, .focus-setting-label, .activity-usage h3) {
  font-family: var(--sans); text-transform: none; letter-spacing: 0;
}
:is(.section-title, .project-group-summary, .settings-group-label, .phase-settings legend, .panel-rail-label, .cluster-section-title) {
  font-family: var(--serif); font-weight: 400; text-transform: none; letter-spacing: 0;
}
.section-title { font-size: 14px; color: var(--muted); }
.settings-group-label { font-size: 13.5px; }
.phase-settings legend { font-size: 14.5px; color: var(--text); }
.eyebrow { font-size: 12.5px; }

/* ---------- pieces ---------- */
.primary, .send { border-radius: var(--radius-ctl); }
.ghost:hover:not(:disabled) { background: var(--field); }
.status-pill, .chat-badge { border-radius: 999px; }

:is(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]), select, textarea):focus-visible {
  outline: none; box-shadow: 0 0 0 2px var(--accent);
}

dialog::backdrop { background: color-mix(in srgb, var(--ink) 28%, transparent); backdrop-filter: blur(3px); }
.dialog-card { border-radius: 24px; box-shadow: var(--shadow); }

/* The new-conversation buttons carry each agent's own colour, so they sit on a quiet fill, not the accent. */
.new-chat-harness-button { background: var(--paper-raised); border-color: transparent; }
.new-chat-harness-button:hover:not(:disabled) { background: color-mix(in srgb, var(--paper-raised) 80%, var(--ink)); }
/* Buttons and counts inside a serif section label stay in the sans. */
.section-title > :not(:first-child) { font-family: var(--sans); }
/* Your own messages sit on a warm neutral fill, as in the mock; the accent is kept for what you can act on. */
.message.user:not(.queued) { background: var(--paper-raised); border-color: transparent; }
.worktree-subsection-title, .worktree-subsection-title > span { text-transform: none; letter-spacing: 0; font-family: var(--serif); font-weight: 400; font-size: 14px; }
/* Every dropdown leaves room for its chevron; the control center's compact pickers set their own padding. */
.control-chat-settings label > select { padding-right: 28px; }
.control-chat-filters select { padding-right: 26px; }

/* ---------- final QA ---------- */
/* Who wrote a message is a quiet line beside its time, not a second line of the message. */
.message-author { font-size: 12px; }
/* A radio's focus ring follows its shape. */
input[type="radio"]:focus-visible { border-radius: 50%; outline: 2px solid var(--accent); outline-offset: 2px; box-shadow: none; }
/* Sliders, checkboxes and radios take the accent, not the browser's blue. */
input:is([type="range"], [type="checkbox"], [type="radio"]) { accent-color: var(--accent); }
/* The quick Appearance dialog: grouped color themes (Built-in, Classic Dark, Classic Light) with swatches in 3-column rows. */
#appearanceThemes { display: grid; gap: 8px; }
.appearance-theme-group { display: grid; gap: 6px; }
.appearance-theme-group-label {
  display: flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 500; color: var(--muted);
}
.appearance-theme-group-label::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.appearance-theme-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.appearance-theme-choice {
  display: flex; align-items: center; justify-content: flex-start; gap: 7px; padding: 6px 9px;
  min-width: 0; text-align: left; font-size: 12.5px;
}
.appearance-theme-choice[aria-pressed="true"] {
  background: color-mix(in srgb, var(--accent) 10%, transparent); font-weight: 600;
}
.appearance-theme-swatch {
  flex-shrink: 0; width: 14px; height: 14px; border-radius: 50%;
  background: linear-gradient(90deg, var(--swatch-bg) 0 50%, var(--swatch-accent) 50%);
  box-shadow: inset 0 0 0 1px rgba(127, 127, 127, 0.35);
}
.appearance-theme-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* Git review › Story: the pull-request box shares its line with Explain PR instead of taking a line of its own, so
   the flow diagram under the head keeps its height (in a 900 px window its lower steps were cut off). */
.git-story .gs-head > .gs-state-actions input { flex: 1 1 220px; width: auto; max-width: 460px; }
