.custom-css-source { box-sizing: border-box; width: 100%; min-height: 18rem; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; line-height: 1.5; white-space: pre; overflow: auto; resize: vertical; tab-size: 2; }
.custom-css-conflict pre { max-height: 15rem; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; }
/* BiliBridge design system 4.1 — 简约指挥舱 (quiet control deck).
   A plain blue-black canvas, white type and cool grey for everything secondary.
   Colour has three fixed jobs and nothing is decorative: the logo's pink marks
   the brand, the main action and live state; cyan draws data (charts) and
   nothing else; white light marks selection and focus. Sheets are flat dark
   panels inside hairline borders, with no glows or corner marks, and figures
   use a monospaced face. Names mirror web/home.css so the console, login and
   docs read as one site. */
:root {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", "PingFang SC", "HarmonyOS Sans SC", "MiSans", "Microsoft YaHei", "Noto Sans SC", "Noto Sans CJK SC", sans-serif;
  color-scheme: dark; color: var(--text); background: var(--canvas);
  font-size: 14px; line-height: 1.65; font-synthesis: none;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility;
  --mono: "SF Mono", SFMono-Regular, ui-monospace, "JetBrains Mono", "Cascadia Mono", "Roboto Mono", Menlo, Consolas, monospace;
  /* The logo's pink family, named as on the homepage: the brand and the main action. */
  --pink: #ef5794; --pink-soft: #ff9cc9; --pink-pale: #ffd8e8; --pink-deep: #c2306f; --pink-hot: #e14182;
  /* Cyan draws data (charts) and nothing else; violet only tints one badge category. */
  --cyan: #3be1ff; --cyan-soft: #8decff; --cyan-pale: #d2f8ff; --cyan-deep: #12a9cd; --violet: #9b7dff; --violet-soft: #c4b4ff;
  --grad: linear-gradient(100deg, #ffffff, #ffc4dc 32%, #ef5794 70%, #c2306f);
  --heading-fill: linear-gradient(180deg, #ffffff 30%, #a7b3cc);
  --brand: var(--pink); --brand-hi: var(--pink-soft); --brand-soft: rgb(239 87 148 / .34); --brand-pale: rgb(239 87 148 / .1); --brand-deep: var(--pink-soft); --brand-ink: var(--pink-pale);
  --brand-glow: rgb(239 87 148 / .6); --brand-ring: rgb(239 87 148 / .16);
  --data: var(--cyan); --data-soft: var(--cyan-soft); --data-ring: rgb(59 225 255 / .18);
  /* White light marks the current selection and keyboard focus. */
  --select-fill: rgb(255 255 255 / .085); --select-edge: rgb(255 255 255 / .16);
  --focus: rgb(226 232 245 / .82); --focus-edge: rgb(226 232 245 / .42); --focus-ring: rgb(226 232 245 / .08);
  /* Neutrals: white type on blue-black, cool grey for everything secondary. */
  --ink: #eef2fb; --ink-soft: #d0d6e4; --on-ink: #05070d;
  --text: #eef2fb; --muted: #9ba5b9; --tertiary: #7c869b; --quiet: #626b80;
  --canvas: #05070d; --accent: var(--pink); --accent-dark: var(--pink-soft); --accent-soft: rgb(239 87 148 / .12);
  --on-accent: #12090d; --primary: var(--pink); --primary-hover: #f46aa3;
  --primary-fill: linear-gradient(180deg, #f46aa3, #ea4d8c);
  --border: rgb(140 170 255 / .11); --border-strong: rgb(140 170 255 / .18); --border-hover: rgb(190 205 235 / .3); --hairline: rgb(140 170 255 / .07); --line: var(--border);
  --surface: #0a0e17; --surface-soft: #0f1421; --surface-sunken: #070a12; --surface-raise: #141b2a; --chrome: rgb(5 7 13 / .76);
  /* Sheets are flat panels: faint blue glass inside a hairline border. */
  --sheet: linear-gradient(180deg, rgb(130 160 255 / .04), rgb(130 160 255 / .01) 65%), #080b13;
  --glass-chrome: var(--chrome); --glass-panel: var(--sheet); --glass-modal: linear-gradient(180deg, rgb(130 160 255 / .05), transparent 30%), #0b0f19;
  --window-fill: var(--canvas); --workspace-fill: var(--canvas); --sidebar-fill: transparent; --nav-selection: rgb(255 255 255 / .07);
  --window-shadow: none;
  --ambient-a: rgb(239 87 148 / .1); --ambient-b: rgb(140 170 255 / .06);
  --control: rgb(140 170 255 / .06); --control-hover: rgb(140 170 255 / .12); --field: rgb(2 4 10 / .55); --modal: #0b0f19; --scrim: rgb(2 4 9 / .7);
  /* Status keeps its meaning (green, amber, red), tuned for a blue-black page. */
  --success: #4fe0a4; --success-fill: rgb(79 224 164 / .1); --success-edge: rgb(79 224 164 / .28);
  --warning: #f6c25e; --warning-fill: rgb(246 194 94 / .1); --warning-edge: rgb(246 194 94 / .28);
  --danger: #ff6b81; --danger-fill: rgb(255 107 129 / .1); --danger-edge: rgb(255 107 129 / .32);
  /* Categories follow the two accents: cyan, violet and pale pink. */
  --blue: var(--cyan-soft); --blue-fill: rgb(59 225 255 / .08); --blue-edge: rgb(59 225 255 / .24);
  --purple: var(--violet-soft); --purple-fill: rgb(155 125 255 / .1); --purple-edge: rgb(155 125 255 / .28);
  --gold: var(--pink-pale); --gold-fill: rgb(255 216 232 / .08); --gold-edge: rgb(255 216 232 / .22);
  --code: rgb(140 170 255 / .08); --toast: rgb(9 13 22 / .9); --switch-fill: linear-gradient(90deg, #ef5794, #f46aa3);
  --radius: 12px; --radius-sm: 6px; --radius-md: 9px; --radius-lg: 16px;
  /* Controls are crisp rounded rectangles; the pill name stays for its old users. */
  --radius-control: 10px; --radius-pill: var(--radius-control);
  --shadow-xs: inset 0 1px 0 rgb(255 255 255 / .04);
  --shadow-sm: inset 0 1px 0 rgb(255 255 255 / .05), 0 8px 20px -10px rgb(0 2 8 / .75);
  --shadow-md: inset 0 1px 0 rgb(255 255 255 / .06), 0 24px 60px -24px rgb(0 2 8 / .9);
  --shadow-lg: inset 0 1px 0 rgb(255 255 255 / .08), 0 50px 120px -30px rgb(0 2 8 / .92);
  --shadow-brand: 0 10px 26px -12px rgb(239 87 148 / .6);
  --ease-out: cubic-bezier(.22, 1, .36, 1); --ease-spring: cubic-bezier(.34, 1.4, .64, 1);
  --motion-spring: cubic-bezier(.2, 1.35, .35, 1); --motion-ease: cubic-bezier(.22, 1, .36, 1);
}
* { box-sizing: border-box; }
body { display: flow-root; isolation: isolate; margin: 0; min-width: 320px; min-height: 100dvh; background-color: var(--canvas); }
/* The canvas glow is one fixed layer; a fixed background would repaint the whole
   page on every scroll. */
body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(ellipse 62% 46% at 86% -12%, var(--ambient-a), transparent 70%),
    radial-gradient(ellipse 56% 44% at 4% -10%, var(--ambient-b), transparent 70%); }
body::after { content: ""; position: fixed; inset: 0; z-index: 90; pointer-events: none; background-image: var(--grain); background-size: var(--grain-size, 160px); opacity: .05; }
::selection { background: rgb(239 87 148 / .3); color: #fff; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea, summary { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
button, summary { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .5; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
[hidden] { display: none !important; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: 28px; line-height: 1.3; font-weight: 650; letter-spacing: -.8px; }
h2 { font-size: 17px; line-height: 1.5; font-weight: 620; letter-spacing: -.2px; }
h3 { font-size: 15px; font-weight: 620; letter-spacing: -.1px; }
small { font-size: 12px; }
code, pre, .mono { font-family: var(--mono); }
code { font-size: 12px; padding: 2px 6px; color: var(--pink-pale); background: var(--code); border: 1px solid var(--hairline); border-radius: 6px; overflow-wrap: anywhere; }
.muted, .hint { color: var(--muted); }
.hint { font-size: 12px; line-height: 1.8; }
/* Icons keep their own tone of pink, cyan or violet so every destination stays recognizable. */
.icon { --icon-color: #ff9cc9; display: block; width: 20px; height: 20px; flex: 0 0 auto; }
.icon:is([data-icon=live], [data-icon=room], [data-icon=chat]) { --icon-color: #ef5794; }
.icon:is([data-icon=users], [data-icon=user], [data-icon=storage], [data-icon=invite], [data-icon=info]) { --icon-color: #ffd8e8; }
.icon:is([data-icon=market], [data-icon=gift], [data-icon=music], [data-icon=target]) { --icon-color: #ff7aa8; }
.icon:is([data-icon=activity], [data-icon=bars], [data-icon=send], [data-icon=shield]) { --icon-color: #f5f5f5; }
.icon:is([data-icon=ticket], [data-icon=trophy], [data-icon=workflow], [data-icon=sparkles]) { --icon-color: #ffc4dc; }
:is(.page-related-nav, .mobile-shortcuts, .console-search-results, .overview-shortcuts .button:not(.primary), .account-avatar, .sidebar-assistance) .icon { color: var(--icon-color); }
.eyebrow, .section-kicker { font-size: 11px; letter-spacing: 1.4px; font-weight: 600; color: var(--accent); margin-bottom: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 100; top: -100px; left: 20px; padding: 12px 20px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface); box-shadow: var(--shadow-md); }
.skip-link:focus { top: 15px; }

#content { outline: none; }

.console-actions, .welcome-actions, .dialog-actions, .danger-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

.button, .icon-button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 36px; border: 1px solid var(--border-strong); border-radius: var(--radius-pill); background: var(--control); color: var(--text); padding: 7px 16px; font-size: 13px; font-weight: 600; line-height: 1.5; box-shadow: var(--shadow-xs); transition: background .25s, border-color .25s, color .25s, box-shadow .35s var(--ease-out); }
.button:hover:not(:disabled) { background: var(--control-hover); border-color: var(--border-hover); }
.button.primary { color: var(--on-accent); background: var(--primary-fill); border-color: transparent; box-shadow: inset 0 1px 0 rgb(255 255 255 / .35), 0 8px 20px -12px rgb(239 87 148 / .55); }
.button.primary:hover:not(:disabled) { background: var(--primary-fill); border-color: transparent; box-shadow: inset 0 1px 0 rgb(255 255 255 / .45), var(--shadow-brand); }
.button .icon { width: 16px; height: 16px; }
.button.danger { color: var(--danger); border-color: var(--danger-edge); background: rgb(255 107 107 / .05); }
.button.danger:hover:not(:disabled) { background: var(--danger-fill); border-color: rgb(255 107 107 / .5); }
.button.small { min-height: 36px; padding: 7px 12px; font-size: 12px; }
.icon-button { width: 40px; height: 40px; padding: 8px; flex-shrink: 0; background: transparent; border-color: transparent; box-shadow: none; font-size: 20px; color: var(--muted); }
.icon-button:hover { background: rgb(255 255 255 / .07); color: var(--text); }
.text-button { border: 0; background: transparent; color: var(--accent); padding: 9px 0; min-height: 40px; font-size: 12px; font-weight: 550; cursor: pointer; }
.text-button:hover { text-decoration: underline; text-decoration-color: var(--brand-soft); text-decoration-thickness: 2px; text-underline-offset: 4px; }

.badge { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--border); border-radius: var(--radius-pill); padding: 2px 10px; font-size: 11px; font-weight: 550; line-height: 1.7; white-space: nowrap; color: var(--muted); background: rgb(255 255 255 / .04); }
.badge.green { color: var(--success); background: var(--success-fill); border-color: var(--success-edge); }
.badge.amber { color: var(--warning); background: var(--warning-fill); border-color: var(--warning-edge); }
.badge.red { color: var(--danger); background: var(--danger-fill); border-color: var(--danger-edge); }
.badge.blue { color: var(--blue); background: var(--blue-fill); border-color: var(--blue-edge); }

.incident-center { overflow: hidden; }
.incident-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 20px 22px; border-bottom: 1px solid var(--border); }
.incident-heading h2 { font-size: 16px; }.incident-heading .hint { margin-top: 5px; }
.incident-row { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 17px 22px; border-bottom: 1px solid var(--border); }
.incident-row:last-child { border-bottom: 0; }.incident-row[data-status="resolved"] { opacity: .72; }
.incident-marker { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; color: var(--warning); background: var(--warning-fill); border: 1px solid var(--warning-edge); }
.incident-row[data-severity="critical"] .incident-marker { color: var(--danger); background: var(--danger-fill); border-color: var(--danger-edge); }
.incident-row[data-status="resolved"] .incident-marker { color: var(--success); background: var(--success-fill); border-color: var(--success-edge); }
.incident-marker .icon { width: 17px; height: 17px; }.incident-copy { min-width: 0; }
.incident-title { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }.incident-title strong { font-size: 13px; }
.incident-target { margin-top: 5px; color: var(--muted); font-size: 12px; }.incident-reason { margin-top: 8px; font-size: 13px; }
.incident-copy > .hint { margin-top: 5px; line-height: 1.65; }.incident-times, .incident-more { margin-top: 8px; color: var(--tertiary); font-size: 10px; font-variant-numeric: tabular-nums; }
.incident-row > .button { align-self: center; }.incident-more { margin: 0; padding: 13px 22px; border-top: 1px solid var(--border); }
.incident-actions { margin-top: 12px; }
/* 直播体检 (platform status): every room's recent per-session checkups. */
.live-checkups .checkup-list { margin-top: 14px; border-top: 1px solid var(--border); }
.checkup-row { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: start; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--border); }
.checkup-row:last-child { border-bottom: 0; }
.checkup-marker { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; color: var(--success); background: var(--success-fill); border: 1px solid var(--success-edge); }
.checkup-row[data-verdict="warning"] .checkup-marker { color: var(--warning); background: var(--warning-fill); border-color: var(--warning-edge); }
.checkup-row[data-verdict="abnormal"] .checkup-marker { color: var(--danger); background: var(--danger-fill); border-color: var(--danger-edge); }
.checkup-marker .icon { width: 17px; height: 17px; }.checkup-copy { min-width: 0; }
.checkup-title { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }.checkup-title strong { font-size: 13px; }
.checkup-copy > .hint { margin-top: 5px; font-variant-numeric: tabular-nums; }.checkup-headline { margin-top: 8px; font-size: 13px; line-height: 1.6; }
.checkup-detail { grid-column: 1 / -1; display: grid; gap: 14px; padding: 4px 0 2px 48px; }
.checkup-findings { display: grid; gap: 7px; }.checkup-findings p { display: flex; align-items: baseline; gap: 9px; font-size: 13px; line-height: 1.6; }
.checkup-findings .badge { flex: none; }
.checkup-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.checkup-block { min-width: 0; padding: 14px 15px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface-sunken); }
.checkup-block h4 { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0 0 10px; font-size: 13px; }
.checkup-block > .hint { margin-top: 6px; line-height: 1.6; }
.checkup-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 12px; margin: 0; }
.checkup-facts div { min-width: 0; }.checkup-facts dt { color: var(--tertiary); font-size: 11px; }
.checkup-facts dd { margin: 2px 0 0; font-size: 13px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.checkup-bars { display: flex; align-items: flex-end; gap: 1px; height: 54px; margin-top: 12px; padding-bottom: 1px; border-bottom: 1px solid var(--hairline); }
.checkup-bars span { flex: 1 1 0; min-width: 1px; border-radius: 2px 2px 0 0; background: var(--data); opacity: .78; }
.checkup-bars span[data-empty="true"] { height: 2px !important; background: var(--warning); opacity: .45; }
.checkup-feature { display: flex; justify-content: space-between; gap: 10px; margin-top: 6px; font-size: 12px; }.checkup-feature span { color: var(--muted); text-align: right; }
.checkup-ledger { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 9px; margin-top: 10px; font-size: 12px; }
.checkup-notes { display: grid; gap: 4px; padding: 12px 14px; border-radius: var(--radius-md); background: var(--control); font-size: 12px; }
.checkup-meta { font-size: 11px; color: var(--tertiary); }
@media (max-width: 760px) {
  .checkup-row { grid-template-columns: 30px minmax(0, 1fr); gap: 11px; }.checkup-row > .button { grid-column: 2; justify-self: start; }
  .checkup-detail { padding-left: 0; }.checkup-grid { grid-template-columns: minmax(0, 1fr); }
}
.console-panel > .plugin-filters, .feature-backends > .plugin-filters { margin-top: 18px; }.feature-backends > .list-toolbar { margin: 14px 0 12px; }
.panel { min-width: 0; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--glass-panel); box-shadow: var(--shadow-xs); }
.console-panel { padding: 26px; }
.console-panel > .muted { font-size: 13px; margin-top: 7px; }
.console-panel > .badge:first-child { float: right; margin: 3px 0 10px 14px; }
.robot-connection { position: relative; }
.robot-connection > .badge { position: absolute; top: 22px; right: 24px; }
.robot-connection h2 { padding-right: 85px; }
.robot-connection-status { margin: 20px 0 9px; }
.robot-connection-status strong { display: block; font-size: 15px; margin-bottom: 7px; }
.robot-connection .console-error:empty { display: none; }
.console-panel > .hint { margin-top: 12px; }
.console-panel > .console-form, .console-panel > .console-actions { margin-top: 22px; }
.console-panel > .button { margin-top: 16px; }
.quiet-panel { background: rgb(255 255 255 / .02); border-style: dashed; box-shadow: none; }
.quiet-panel h2 { font-size: 14px; }
.setup-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 22px; counter-reset: setup; }
.setup-step { position: relative; display: flex; gap: 12px; align-items: flex-start; border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 16px; background: var(--sheet); transition: border-color .2s, background .2s, box-shadow .25s, translate .3s var(--ease-out); }
.setup-step:hover { border-color: var(--border-strong); box-shadow: var(--shadow-md); }
.setup-step > .icon:first-child { width: 34px; height: 34px; padding: 8px; border-radius: 10px; background: color-mix(in srgb, var(--icon-color) 14%, transparent); color: var(--icon-color); }
.setup-step.is-complete > .icon:first-child { background: var(--success-fill); color: var(--success); }
.step-number { display: grid; place-items: center; width: 28px; height: 28px; border: 1px solid var(--border); background: var(--surface-soft); color: var(--tertiary); border-radius: 50%; flex-shrink: 0; font-size: 12px; }
.is-complete .step-number { border-color: var(--border); background: var(--accent-soft); color: var(--accent); }
.step-content { min-width: 0; flex: 1; }
.step-content strong { font-size: 14px; font-weight: 620; }
.step-content p { font-size: 12px; color: var(--muted); margin: 5px 0 12px; line-height: 1.7; }
.step-link { font-size: 12px; font-weight: 600; color: var(--accent); }
.is-complete .step-link { color: var(--success); }
.setup-step > .icon:last-child { width: 15px; height: 15px; color: var(--quiet); align-self: center; }
.two-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; align-items: start; }
.form-layout { display: grid; grid-template-columns: minmax(280px, 340px) minmax(0, 1fr); gap: 24px; align-items: start; }
.account-identity { display: flex; align-items: center; gap: 14px; margin-top: 25px; }
.account-avatar { display: grid; place-items: center; width: 48px; height: 48px; background: linear-gradient(135deg, rgb(239 87 148 / .24), rgb(194 48 111 / .12)); border: 1px solid rgb(255 255 255 / .1); color: var(--pink); box-shadow: 0 8px 24px -8px rgb(239 87 148 / .5); border-radius: 14px; flex-shrink: 0; }
.account-avatar .icon { width: 27px; height: 27px; }
.account-identity .hint { margin-top: 4px; }
.robot-qr:empty { display: none; }
.robot-qr { margin-top: 20px; padding: 22px; border: 1px dashed var(--border-strong); background: var(--surface-soft); border-radius: var(--radius); text-align: center; font-size: 13px; }
.robot-qr img, .console-qr { display: block; width: 208px; max-width: 100%; height: auto; margin: 14px auto; padding: 10px; border-radius: 14px; background: #fff; box-shadow: var(--shadow-md), 0 0 40px -12px rgb(239 87 148 / .45); }
.console-form { display: grid; gap: 18px; min-width: 0; }
.console-form > h3 { margin-bottom: -3px; }
.console-field { display: grid; gap: 7px; min-width: 0; font-size: 12px; color: var(--muted); font-weight: 550; }
input:not([type="checkbox"]):not([type="radio"]), select, textarea { max-width: 100%; min-width: 0; padding: 10px 13px; border: 1px solid var(--border-strong); border-radius: var(--radius-md); background: var(--field); color: var(--text); outline-offset: 2px; box-shadow: none; }
input::placeholder, textarea::placeholder { color: var(--quiet); font-weight: 400; }
input:hover:not(:disabled), select:hover:not(:disabled), textarea:hover:not(:disabled) { border-color: var(--border-hover); }
input:focus, select:focus, textarea:focus { border-color: var(--focus-edge); box-shadow: 0 0 0 4px var(--focus-ring); outline: none; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: none; }
input[type="checkbox"], input[type="radio"] { accent-color: var(--pink); width: 17px; height: 17px; flex-shrink: 0; }
input[readonly] { background: rgb(255 255 255 / .03); box-shadow: none; }
select { appearance: none; -webkit-appearance: none; padding-right: 38px; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(-45deg, transparent 50%, var(--muted) 50%); background-repeat: no-repeat; background-position: right 19px center, right 14px center; background-size: 5px 5px; }
select option { background: var(--modal); color: var(--text); }
.console-form > .button { justify-self: start; }
.check-row { display: flex; align-items: center; gap: 9px; font-size: 13px; line-height: 1.7; color: var(--muted); cursor: pointer; padding: 5px 0; }
.console-field small { color: var(--muted); font-weight: 400; }
.console-error { padding: 11px 14px 11px 40px; position: relative; background: var(--danger-fill); border: 1px solid var(--danger-edge); border-radius: var(--radius-md); color: var(--danger); font-size: 12px; line-height: 1.8; overflow-wrap: anywhere; }
.console-error::before { content: "!"; position: absolute; top: 13px; left: 14px; display: grid; place-items: center; width: 16px; height: 16px; box-sizing: border-box; border: 1.5px solid currentColor; border-radius: 50%; font-size: 10px; font-weight: 800; line-height: 1; }
.console-error:empty { display: none; }
.disclosure { border: 1px solid var(--border); border-radius: var(--radius); background: var(--glass-panel); min-width: 0; box-shadow: var(--shadow-xs); }
.disclosure > summary { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 18px 22px; list-style: none; }
.disclosure > summary::-webkit-details-marker { display: none; }
.disclosure summary strong { font-size: 14px; font-weight: 600; }
.disclosure summary small { display: block; font-size: 12px; color: var(--muted); margin-top: 4px; }
.disclosure summary > .icon { width: 16px; height: 16px; color: var(--tertiary); transition: transform .32s var(--ease-spring); }
.disclosure[open] > summary > .icon { transform: rotate(180deg); }
.disclosure-body { padding: 4px 22px 22px; }
.disclosure-body > .panel + .panel { margin-top: 18px; }
.danger-zone { order: 20; border-color: var(--danger-edge); background: var(--glass-panel); }
.danger-zone summary strong { color: var(--danger); }
.inline-notice, .target-banner { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-radius: var(--radius); border: 1px solid var(--success-edge); background: var(--success-fill); color: var(--success); font-size: 13px; }
.inline-notice .button { margin-left: auto; flex-shrink: 0; }
.inline-notice.warning, .target-banner { background: var(--warning-fill); border-color: var(--warning-edge); color: var(--warning); }
.inline-notice.critical { background: var(--danger-fill); border-color: var(--danger-edge); color: var(--danger); }
.target-banner { margin-bottom: 24px; }
.target-banner .button { margin-left: auto; }
.expiry-value { font-size: 24px; font-weight: 650; letter-spacing: -.5px; margin-top: 18px; font-variant-numeric: tabular-nums; }
.record-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--border); }
.record-row:last-child { border: 0; }
.record-row strong { color: var(--accent); }
.list-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.search-box { display: flex; align-items: center; gap: 10px; border: 1px solid var(--border-strong); background: var(--field); border-radius: var(--radius-pill); padding: 0 16px; min-width: 0; width: min(100%, 380px); box-shadow: none; transition: border-color .2s, box-shadow .25s; }
.search-box .icon { width: 18px; height: 18px; color: var(--quiet); }
.search-box input[type="search"] { width: 100%; border: 0 !important; background: transparent; border-radius: 0; padding: 12px 0 !important; outline: none; font-size: 13px; box-shadow: none !important; min-height: 0; }
.search-box:focus-within { border-color: var(--focus-edge); box-shadow: 0 0 0 4px var(--focus-ring); }
.result-count { font-size: 12px; color: var(--muted); }
.console-panel > .list-toolbar { margin: 22px 0 12px; }
.market-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.plugin-card { position: relative; padding: 24px; display: flex; flex-direction: column; overflow: hidden; transition: border-color .25s, box-shadow .35s var(--ease-out), translate .35s var(--ease-out); }
.plugin-card::before { content: ''; position: absolute; inset: 0 0 auto; height: 96px; pointer-events: none; background: radial-gradient(120% 100% at 0% 0%, color-mix(in srgb, var(--plugin-color, var(--brand)) 14%, transparent), transparent 70%); }
.plugin-card > * { position: relative; }
.plugin-card:hover { border-color: color-mix(in srgb, var(--plugin-color, var(--brand)) 26%, var(--border)); box-shadow: var(--shadow-md); }
.plugin-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.plugin-symbol { width: 44px; height: 44px; border: 1px solid color-mix(in srgb, currentColor 22%, transparent); border-radius: 13px; background-color: color-mix(in srgb, currentColor 14%, #080b13); background-image: linear-gradient(135deg, rgb(255 255 255 / .07), transparent 60%); display: grid; place-items: center; color: var(--plugin-color, #ff9cc9); box-shadow: 0 8px 24px -10px color-mix(in srgb, currentColor 55%, transparent), inset 0 1px 0 rgb(255 255 255 / .08); }
.plugin-room-control { --plugin-color: #ff9cc9; }
.plugin-song-request { --plugin-color: #ffc4dc; }
.plugin-gift-list, .plugin-gift-screenshot { --plugin-color: #ef5794; }
.plugin-first-win, .plugin-lottery { --plugin-color: #ffd8e8; }
.plugin-blind-box { --plugin-color: #ff7aa8; }
.plugin-gift-goals { --plugin-color: #e14182; }
.plugin-contribution-board { --plugin-color: #f5f5f5; }
.plugin-danmaku-overlay { --plugin-color: #c8c8cd; }
.plugin-symbol .icon { width: 25px; height: 25px; }
.plugin-card h2 { font-size: 17px; }
.plugin-description { color: var(--muted); font-size: 12px; line-height: 1.85; margin: 8px 0 13px; }
.plugin-card > .disclosure { border: 0; border-top: 1px solid var(--border); border-radius: 0; margin-top: 20px; }
.plugin-card > .disclosure > summary { padding: 15px 0; }
.plugin-card > .disclosure summary strong { font-size: 12px; }
.plugin-card > .disclosure summary small { font-size: 11px; }
.plugin-card > .disclosure > .disclosure-body { padding: 0 0 15px; }
.permission-list { list-style: none; margin: 14px 0; padding: 0; display: grid; gap: 9px; }
.permission-list li { display: flex; align-items: flex-start; gap: 8px; font-size: 12px; color: var(--muted); }
.permission-list .icon { width: 14px; height: 14px; margin-top: 3px; color: var(--accent); }
.plugin-card-footer { margin-top: auto; padding-top: 6px; display: grid; gap: 8px; }
.plugin-card-footer .button { width: 100%; }
.plugin-card-footer .hint { font-size: 11px; }
.plugin-heading { display: flex; justify-content: space-between; gap: 14px; align-items: center; }
.plugin-config { margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--border); }
.room-info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); gap: 16px; margin: 20px 0; }
.room-info-grid > div { min-width: 0; padding: 14px 16px; border-radius: 8px; background: var(--surface-soft); }
.room-info-grid dt { color: var(--muted); font-size: 12px; }.room-info-grid dd { margin: 7px 0 0; color: var(--text); font-size: 14px; overflow-wrap: anywhere; }
.room-info-source { display: block; margin-top: 5px; color: var(--tertiary); font-size: 11px; }
.plugin-config > .hint { margin-top: 5px; }
.plugin-config .console-form { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 18px; }
.plugin-config .console-form > .button, .plugin-config .console-form > .console-error { grid-column: 1 / -1; }

.plugins-overview { grid-column: 1; grid-row: 1; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.plugins-overview-intro { order: 1; }.plugins-overview-intro:has(> .hint:empty) { display: none; }
.plugins-updated { order: 2; color: var(--tertiary); font-size: 10px; }
.plugins-overview .hint:empty, .plugins-updated:empty, .plugin-save-row .hint:empty { display: none; }
.plugin-filters { display: flex; flex-wrap: wrap; gap: 4px; }
.plugin-filter { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 38px; padding: 8px 10px; border: 1px solid transparent; border-radius: 9px; background: transparent; color: var(--muted); font-size: 12px; text-align: left; white-space: nowrap; }
.plugin-filter strong { min-width: 20px; padding: 3px 5px; border-radius: 5px; background: var(--accent-soft); font-size: 11px; font-weight: 600; line-height: 1; color: var(--muted); text-align: center; }
.plugin-filter[aria-pressed="true"] { background: var(--nav-selection); border-color: var(--border); color: var(--text); }.plugin-filter[aria-pressed="true"] strong { color: var(--accent); }
.plugin-filter:focus-visible, .plugin-manager-tab:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.plugins-toolbar { grid-column: 2; grid-row: 1; }.plugins-toolbar .search-box { width: 100%; }.plugins-toolbar .search-box input[type="search"] { padding: 9px 0 !important; font-size: 12px; }.plugins-toolbar .result-count { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.plugins-feedback { grid-column: 1 / -1; padding: 13px 17px; border: 1px solid var(--warning-edge); border-radius: 14px; background: var(--warning-fill); color: var(--warning); font-size: 12px; }.plugins-feedback:empty { display: none; }

.plugin-update-badge { min-height: 0; cursor: pointer; line-height: 1.5; }.plugin-update-badge:hover { filter: brightness(.96); }.plugin-update-badge:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.plugin-version-status { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; min-height: 26px; margin: 8px 0 12px; color: var(--muted); font-size: 12px; }

body:has(.plugin-manager-dialog[open]) { overflow: hidden; }
dialog.plugin-manager-dialog { inset: 16px 16px 16px auto; margin: 0; width: min(590px, calc(100vw - 32px)); max-width: none; height: calc(100dvh - 32px); max-height: calc(100dvh - 32px); overflow: hidden; border-radius: 14px; }
.plugin-manager-dialog .dialog-body { display: flex; flex-direction: column; height: 100%; padding: 26px 0 0; }
.plugin-manager-dialog .dialog-heading { padding: 0 26px; margin-bottom: 18px; flex-shrink: 0; }.plugin-manager-dialog .dialog-heading h2 { font-size: 20px; overflow-wrap: anywhere; }
.plugin-manager-state { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 0 26px 20px; flex-shrink: 0; }.plugin-manager-state > div:first-child { min-width: 0; }.plugin-manager-state .hint { margin-top: 7px; font-size: 11px; }.plugin-manager-state .button { white-space: nowrap; }
.plugin-manager-error, .plugin-manager-message { flex-shrink: 0; margin: 0 26px 14px; }.plugin-manager-message { font-size: 12px; color: var(--accent); }.plugin-manager-message:empty { display: none; }
.plugin-manager-tabs { display: flex; gap: 22px; padding: 0 26px; border-bottom: 1px solid var(--border); flex-shrink: 0; overflow-x: auto; }
.plugin-manager-tab { border: 0; border-bottom: 2px solid transparent; background: transparent; color: var(--muted); padding: 13px 0; font-size: 13px; font-weight: 550; white-space: nowrap; }.plugin-manager-tab[aria-selected="true"] { color: var(--text); border-bottom-color: var(--ink); }
.plugin-manager-content { overflow-y: auto; min-height: 0; padding: 24px 26px max(28px, env(safe-area-inset-bottom)); overscroll-behavior: contain; }
.plugin-manager-pane { min-width: 0; outline-offset: 3px; }.plugin-manager-pane > h3 { font-size: 16px; margin-bottom: 8px; }.plugin-manager-pane > .hint { font-size: 12px; line-height: 1.9; }
.plugin-manager-pane .console-form { margin-top: 22px; }.plugin-manager-pane .check-row { flex-direction: row-reverse; justify-content: space-between; padding: 17px; border: 1px solid var(--border); background: var(--surface-soft); border-radius: 14px; gap: 20px; color: var(--text); }
.plugin-save-row { display: flex; align-items: center; gap: 15px; padding-top: 4px; }.plugin-save-row .hint { font-size: 11px; }.plugin-setting-note { margin-top: 17px; }.plugin-manager-pane > .disclosure { margin-top: 26px; }
.gift-profile-editor { min-width: 0; padding-top: 20px; border-top: 1px solid var(--border); }.gift-profile-editor > h3 { margin-bottom: 8px; font-size: 16px; }.gift-profile-editor > .hint { margin-bottom: 18px; font-size: 12px; line-height: 1.8; }.gift-profile-panel[hidden] { display: none; }.gift-profile-group { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 15px; min-width: 0; margin: 22px 0 0; padding: 17px 0 0; border: 0; border-top: 1px solid var(--border); }.gift-profile-group legend { padding: 0 10px 0 0; font-size: 12px; color: var(--muted); }.gift-profile-field { min-width: 0; }.gift-profile-field .console-field { height: 100%; }.gift-profile-field:has(.check-row) { grid-column: 1/-1; }.gift-profile-editor input,.gift-profile-editor select { min-width: 0; max-width: 100%; }.gift-category-choices { grid-column: 1/-1; display: flex; flex-wrap: wrap; gap: 12px 18px; }.gift-category-choice { display: flex; align-items: center; gap: 7px; color: var(--text); font-size: 13px; }.gift-category-choice input { width: 17px; height: 17px; padding: 0; margin: 0; accent-color: var(--accent); }.gift-profile-editor .check-row { padding: 12px 15px; font-size: 13px; }.gift-profile-editor .check-row input { flex-shrink: 0; }
.plugin-manager-empty { margin: 22px 0; padding: 18px; border: 1px dashed var(--border); border-radius: 14px; font-size: 13px; color: var(--muted); line-height: 1.9; }
.plugin-address-note { margin: 18px 0; padding: 13px 16px; border: 1px solid var(--warning-edge); border-radius: 12px; background: var(--warning-fill); color: var(--warning); font-size: 12px; line-height: 1.8; }
.plugin-view-result .hint { margin-top: 14px; font-size: 11px; }.plugin-view-result .console-secret { font-size: 12px; }.plugin-view-result .console-actions { gap: 8px; }
.plugin-manager-section { margin-top: 30px; padding-top: 25px; border-top: 1px solid var(--border); }.plugin-manager-section h3 { font-size: 15px; }.plugin-manager-section .hint { font-size: 12px; margin: 8px 0 16px; }
.plugin-manager-pane > .button { margin-top: 18px; }
.plugin-remove-section { margin-top: 30px; padding: 20px; border: 1px solid var(--danger-edge); border-radius: 16px; background: var(--surface-soft); }.plugin-remove-section h3 { font-size: 15px; color: var(--danger); }.plugin-remove-section .hint { font-size: 12px; line-height: 1.9; margin: 9px 0 15px; }.plugin-remove-data { margin-top: 24px; padding-top: 13px; border-top: 1px solid var(--danger-edge); }
.console-panel > .disclosure { margin-top: 24px; }
.danger-actions { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--border); margin-bottom: 10px; }
.table-wrap { overflow-x: auto; margin-top: 20px; max-width: 100%; }
table { border-collapse: collapse; width: 100%; font-size: 12px; text-align: left; font-variant-numeric: tabular-nums; }
th { font-size: 11px; font-weight: 550; color: var(--tertiary); background: rgb(255 255 255 / .03); padding: 12px 14px; white-space: nowrap; letter-spacing: .2px; }
td { padding: 16px 14px; border-bottom: 1px solid var(--border); vertical-align: middle; }
tbody tr:last-child td { border-bottom: 0; }
td[data-label="使用期限"], td[data-label="有效期至"], td[data-label="时间"] { font-size: 11px; color: var(--muted); }
.user-identity { display: flex; align-items: center; gap: 11px; min-width: 140px; }
.user-avatar { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid rgb(255 255 255 / .1); border-radius: 50%; background: linear-gradient(135deg, rgb(239 87 148 / .26), rgb(194 48 111 / .12)); color: var(--pink-soft); font-size: 14px; font-weight: 650; flex-shrink: 0; }
.user-identity strong { display: block; overflow-wrap: anywhere; font-size: 12px; }
.user-identity small { display: block; color: var(--tertiary); margin-top: 2px; font-size: 11px; }
.table-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-width: 190px; }
.table-actions > .button { padding: 7px 10px; min-height: 36px; font-size: 11px; }
.table-actions .disclosure { border: 0; }
.table-actions .disclosure > summary { padding: 7px 9px; min-height: 36px; border: 1px solid var(--border); border-radius: 7px; }
.table-actions .disclosure summary strong { font-size: 11px; font-weight: 500; }
.table-actions .disclosure summary > .icon { width: 13px; height: 13px; }
.table-actions .disclosure-body { display: flex; flex-direction: column; align-items: flex-start; gap: 9px; padding: 10px 0; }
.table-actions .disclosure-body .button { font-size: 11px; }
.record-details { font-size: 11px; color: var(--muted); overflow-wrap: anywhere; }
.record-details p { margin-top: 8px; }
.empty-state { position: relative; padding: 46px 24px 42px; text-align: center; border: 1px dashed var(--border-strong); border-radius: var(--radius-lg); background: radial-gradient(60% 80% at 50% 0%, var(--brand-pale), transparent 70%), var(--surface); overflow: hidden; }
.empty-state > .icon { position: relative; width: 52px; height: 52px; margin: 0 auto 18px; padding: 13px; border-radius: 16px; color: var(--icon-color); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-md), 0 0 0 6px color-mix(in srgb, var(--icon-color) 6%, transparent); }
.empty-state h2 { font-size: 16px; font-weight: 650; }
.empty-state p { margin: 8px auto 0; max-width: 400px; font-size: 13px; color: var(--muted); line-height: 1.85; }
.empty-state .button { margin-top: 22px; }
.console-panel > .empty-state { margin-top: 22px; padding: 34px 18px; }
.market-grid > .empty-state { grid-column: 1 / -1; }
/* Loading reads as a calm placeholder of the page, not a spinner in a void. */
.loading-state { display: flex; align-items: center; gap: 10px; padding: 18px 0; color: var(--tertiary); font-size: 12px; }
.loading-state::before { content: ""; flex: 0 0 64px; height: 8px; border-radius: 99px; background: linear-gradient(90deg, var(--surface-sunken) 20%, rgb(255 255 255 / .14) 50%, var(--surface-sunken) 80%) 0 0 / 300% 100%; animation: skeleton-shimmer 1.4s ease-in-out infinite; }
:is(#content, .page-body) > .loading-state { display: grid; gap: 14px; padding: 2px 0 24px; }
:is(#content, .page-body) > .loading-state::before, :is(#content, .page-body) > .loading-state::after { content: ""; display: block; height: 128px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: linear-gradient(100deg, transparent 30%, rgb(255 255 255 / .035) 50%, transparent 70%) 0 0 / 300% 100%, var(--sheet); animation: skeleton-shimmer 1.6s ease-in-out infinite; }
:is(#content, .page-body) > .loading-state::before { order: 1; }
:is(#content, .page-body) > .loading-state::after { order: 2; height: 280px; animation-delay: .18s; }
@keyframes skeleton-shimmer { from { background-position: 100% 0, 0 0; } to { background-position: 0 0, 0 0; } }
@keyframes spin { to { transform: rotate(360deg); } }
dialog { width: min(560px, calc(100vw - 32px)); max-height: calc(100dvh - 48px); border: 1px solid var(--border-strong); border-radius: var(--radius-lg); padding: 0; color: inherit; background: var(--glass-modal); box-shadow: var(--shadow-lg); overflow-y: auto; }
dialog::backdrop { background: var(--scrim); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.dialog-body { padding: 28px; }
.dialog-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.dialog-heading h2 { font-size: 20px; font-weight: 650; letter-spacing: -.4px; }
.dialog-body > .muted { font-size: 13px; margin-bottom: 20px; }
.dialog-body > .console-form { margin-top: 20px; }
.dialog-body > h3 { margin-top: 20px; }
.dialog-actions { justify-content: flex-end; margin-top: 10px; padding-top: 16px; border-top: 1px solid var(--border); }
.console-secret { display: block; width: 100%; min-width: 0; background: var(--code); border: 1px solid var(--border); border-radius: 8px; padding: 13px; font: 12px/1.9 ui-monospace, monospace; overflow-wrap: anywhere; resize: vertical; margin: 16px 0; }
.console-user-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 0; border-bottom: 1px solid var(--border); }
.console-user-row:last-child { border-bottom: 0; }
.console-user-row .hint { margin-top: 5px; }
.security-section { display: grid; gap: 22px; }
.security-section > h2 { font-size: 18px; margin-bottom: -8px; }
.security-profile { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.security-profile .hint { margin-top: 6px; }

/* Shared public documentation building blocks. */
.panel-head { padding: 23px 26px; border-bottom: 1px solid var(--border); }
.panel-head p { margin-top: 7px; color: var(--muted); }
.panel-body { padding: 25px 26px; }
.panel-body > p + p { margin-top: 12px; }
.docs-site .panel + .panel { margin-top: 22px; }
.code-panel { white-space: pre; overflow: auto; padding: 20px; border: 1px solid var(--border); border-radius: 14px; background: rgb(12 12 13 / .92); color: #dcdcdf; font-size: 12px; line-height: 1.9; }
.endpoint { display: flex; gap: 14px; padding: 17px 0; border-bottom: 1px solid var(--border); }
.endpoint > div { min-width: 0; }
.endpoint p { color: var(--muted); margin-top: 7px; }
.method { border-radius: 5px; font-size: 10px; font-weight: 650; padding: 4px 7px; align-self: flex-start; background: var(--success-fill); color: var(--success); }
.method.post { background: var(--blue-fill); color: var(--blue); }
.method.delete { background: var(--danger-fill); color: var(--danger); }
.empty { padding: 35px 20px; text-align: center; color: var(--muted); }

@media (max-width: 1250px) {

  .market-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .setup-steps { gap: 10px; }.setup-step { padding: 16px 12px; }

  .form-layout { grid-template-columns: 1fr; }.form-layout > .panel:first-child .console-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }.form-layout .console-form > .button, .form-layout .console-form > .console-error { grid-column: 1 / -1; }

}
@media (max-width: 1000px) {

.plugins-overview, .plugins-toolbar { grid-column: 1; grid-row: auto; }
  .two-columns { grid-template-columns: 1fr; }.setup-steps { grid-template-columns: 1fr; }.setup-step { padding: 18px; }
  .step-content p { margin-bottom: 7px; }

}
@media (max-width: 760px) {

  .incident-heading { align-items: flex-start; padding: 17px 18px; }.incident-row { grid-template-columns: 30px minmax(0, 1fr); padding: 16px 18px; gap: 11px; }.incident-row > .button { grid-column: 2; justify-self: start; }.incident-marker { width: 28px; height: 28px; }.incident-times { line-height: 1.7; }
  .console-panel { padding: 21px; }h2 { font-size: 17px; }.console-panel > .muted { font-size: 12px; }.setup-steps { margin-top: 20px; }.setup-step { padding: 16px; }
  .button { min-height: 44px; padding: 10px 14px; font-size: 12px; }.button.small { min-height: 40px; }.console-form > .button { width: 100%; }
  input:not([type="checkbox"]):not([type="radio"]), select, textarea { font-size: 16px; }.search-box input { font-size: 16px; }.console-field { font-size: 12px; }
  .two-columns { gap: 18px; }.form-layout { gap: 18px; }.form-layout > .panel:first-child .console-form, .plugin-config .console-form { grid-template-columns: 1fr; }.expiry-value { font-size: 18px; }
  .disclosure > summary { padding: 17px 20px; }.disclosure summary strong { font-size: 13px; }.disclosure summary small { font-size: 11px; }.disclosure-body { padding: 3px 20px 20px; }
  .disclosure-body > .console-panel { padding: 18px; }.inline-notice { flex-wrap: wrap; font-size: 12px; padding: 16px; }.inline-notice > span { flex: 1; min-width: 0; }.inline-notice .button { margin-left: 32px; }
  .target-banner { gap: 10px; flex-wrap: wrap; padding: 16px; }.target-banner > div { flex: 1; min-width: 200px; }.target-banner .button { margin-left: 30px; }
  .market-grid { grid-template-columns: 1fr; gap: 16px; }.plugin-card { padding: 23px; }.plugin-card h2 { font-size: 18px; }.plugin-description { font-size: 13px; }.plugin-card-head { margin-bottom: 18px; }
  .list-toolbar { gap: 12px; }.list-toolbar .search-box { width: 100%; }.list-toolbar > select { width: 100%; }.result-count { font-size: 11px; }
  .table-wrap { overflow: visible; margin-top: 16px; }table, tbody { display: block; }thead { display: none; }tbody tr { display: block; padding: 18px 0; border-bottom: 1px solid var(--border); }tbody tr:last-child { border-bottom: 0; }
  td { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 8px 0; border: 0; text-align: right; font-size: 12px; overflow-wrap: anywhere; }
  td::before { content: attr(data-label); color: var(--tertiary); font-size: 11px; white-space: nowrap; flex-shrink: 0; text-align: left; }td:first-child { text-align: left; justify-content: flex-start; }td:first-child::before { display: none; }
  td[data-label="使用期限"], td[data-label="有效期至"], td[data-label="时间"] { font-size: 12px; }.table-actions { min-width: 0; justify-content: flex-end; }.table-actions > .button, .table-actions .disclosure > summary { min-height: 42px; font-size: 12px; }.table-actions .disclosure summary strong { font-size: 12px; }
  .table-actions .disclosure-body { align-items: stretch; }.table-actions .disclosure-body .button { font-size: 12px; }.record-details { max-width: 100%; }.user-identity strong { font-size: 14px; }.user-identity small { font-size: 12px; }
  .empty-state { padding: 34px 20px; }.empty-state .button { width: auto; }.console-panel > .empty-state { border: 0; background: transparent; padding: 24px 0; }.console-user-row { flex-direction: column; align-items: flex-start; gap: 12px; }
  .record-row { flex-wrap: wrap; gap: 5px; }.record-row .hint { font-size: 11px; }.security-profile .console-actions { width: 100%; }
  dialog { max-height: calc(100dvh - 32px); border-radius: 14px; }.dialog-body { padding: 23px; }.dialog-heading h2 { font-size: 18px; }.dialog-actions .button { flex: 1; }.dialog-actions { gap: 8px; }

}
@media (max-width: 380px) {

.console-panel { padding: 18px; }

 }

@media (max-width: 760px) {
  .plugins-overview { gap: 8px; }.plugins-overview-intro .hint { font-size: 12px; }.plugins-updated { font-size: 10px; }.plugin-filters { gap: 4px; }.plugin-filter { min-height: 40px; padding: 8px; font-size: 11px; }.plugin-filter strong { font-size: 10px; min-width: 18px; }
  .plugins-toolbar .search-box { width: 100%; }

  dialog.plugin-manager-dialog { inset: 0; width: 100%; height: 100dvh; max-height: 100dvh; border-radius: 0; border-width: 0; }.plugin-manager-dialog .dialog-body { padding-top: max(20px, env(safe-area-inset-top)); }.plugin-manager-dialog .dialog-heading { padding: 0 20px; }.plugin-manager-dialog .dialog-heading h2 { font-size: 18px; }.plugin-manager-state { margin: 0 20px 18px; gap: 12px; }.plugin-manager-state .button { padding: 8px 12px; font-size: 12px; }.plugin-manager-error, .plugin-manager-message { margin-left: 20px; margin-right: 20px; }.plugin-manager-tabs { padding: 0 20px; gap: 24px; }.plugin-manager-tab { font-size: 13px; }.plugin-manager-content { padding: 22px 20px max(26px, env(safe-area-inset-bottom)); }.plugin-save-row { flex-wrap: wrap; gap: 10px; }.plugin-save-row .button { width: 100%; }.plugin-view-result .console-actions .button { flex: 1; }.plugin-manager-pane .check-row { font-size: 14px; }
}
@media (max-width: 380px) {

.plugin-manager-tabs { gap: 18px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

/* Console surfaces keep text contrast independent of content behind them. */

.panel, .doc-hero { -webkit-backdrop-filter: none; backdrop-filter: none; }
.panel .panel, dialog .panel { background: var(--surface-soft); box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
dialog { -webkit-backdrop-filter: none; backdrop-filter: none; }
.button:active:not(:disabled) { border-color: var(--ink); }
.button:focus-visible, .text-button:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }

input:not([type="checkbox"]):not([type="radio"]), select, textarea { transition: border-color .2s, background .2s, box-shadow .25s; }
.disclosure > summary { border-radius: inherit; transition: background .2s; }.disclosure > summary:hover { background: rgb(255 255 255 / .03); }
.plugin-card > .disclosure { background: transparent; box-shadow: none; }.plugin-card > .disclosure > summary { border-radius: 0; }
th { color: var(--tertiary); background: rgb(140 170 255 / .045); }
@media (hover: hover) { tbody tr:hover td { background: rgb(255 255 255 / .025); } }
/* A persistent setting is a switch; permission confirmations remain checkboxes. */
input.switch-control { -webkit-appearance: none; appearance: none; position: relative; width: 44px; height: 26px; margin: 0; border: 1px solid transparent; border-radius: 999px; background: var(--switch-fill) left center / 0% 100% no-repeat, rgb(140 170 255 / .16); box-shadow: inset 0 1px 2px rgb(0 0 0 / .3); cursor: pointer; transition: background-size .25s, box-shadow .25s; }
input.switch-control::after { content: ''; position: absolute; width: 20px; height: 20px; top: 2px; left: 2px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgb(0 0 0 / .45); transition: transform .2s; }
input.switch-control:checked { background-size: 100% 100%, auto; border-color: transparent; box-shadow: inset 0 1px 2px rgb(0 0 0 / .18); }input.switch-control:checked::after { transform: translateX(18px); }
input.switch-control:focus { box-shadow: 0 0 0 4px var(--focus-ring); }

@media (prefers-reduced-transparency: reduce), (prefers-contrast: more), (forced-colors: active) {
  :root { --glass-chrome: var(--surface); --glass-panel: var(--surface); --glass-modal: var(--modal); --window-fill: var(--surface); --workspace-fill: var(--surface); --sidebar-fill: var(--surface-soft); --nav-selection: var(--accent-soft); --control: var(--surface-soft); --field: var(--surface); }
  body::before { display: none; }
  *, *::before, *::after { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
}
@media (prefers-contrast: more) {
  :root { --muted: var(--text); --tertiary: var(--text); --border: var(--border-strong); }
  .button, input, select, textarea, .badge { border-color: currentColor; }.button.primary { border-color: var(--on-accent); }
}
@media (forced-colors: active) {
body, .panel, dialog, input, select, textarea { color: CanvasText; background: Canvas; border-color: CanvasText; box-shadow: none; }
  .button, .icon-button { color: ButtonText; background: ButtonFace; border: 1px solid ButtonText; box-shadow: none; }

  input.switch-control:checked { background: Highlight; }input.switch-control::after { background: ButtonText; }
  select { appearance: auto; background-image: none; }
  .page-heading h1 { background: none; color: CanvasText; }
  body::after { display: none; }
  input:focus, select:focus, textarea:focus, .search-box:focus-within { outline: 2px solid Highlight; outline-offset: 2px; }
}
.room-verification{margin:1rem 0;padding:1rem;border:1px solid var(--border,#aaa5);border-radius:12px;min-width:0}
.room-verification[hidden]{display:none}.verification-viewport{max-width:100%;overflow:auto;border-radius:8px;background:#fff;overscroll-behavior:contain}
.verification-screen{display:block;width:100%;height:auto;min-width:0;touch-action:none;user-select:none;cursor:crosshair}
.verification-viewport.zoomed .verification-screen{width:1100px;max-width:none}.room-verification .console-form{margin-top:.8rem}

.plugin-config-group { display: grid; gap: 12px; min-width: 0; margin: 0 0 16px; padding: 14px; border: 1px solid var(--border); border-radius: 12px; }
.plugin-config-group legend { padding: 0 6px; font-weight: 600; }
.plugin-config-group .check-row { flex-wrap: wrap; }
.plugin-config-group .check-row small { flex-basis: 100%; margin-left: 24px; color: var(--muted); line-height: 1.5; }

/* Receipt and screenshot workspaces share the plugin lifecycle controls. */
dialog.plugin-manager-wide{width:min(1100px,calc(100vw - 32px))}.plugin-manager-wide .console-form{grid-template-columns:repeat(2,minmax(0,1fr))}.plugin-manager-wide .gift-profile-editor,.plugin-manager-wide .plugin-save-row,.plugin-manager-wide .console-error,.plugin-manager-wide .plugin-config-group{grid-column:1/-1}.plugin-manager-wide .gift-profile-group{grid-template-columns:repeat(4,minmax(0,1fr));background:var(--surface-soft);border:1px solid var(--border);border-radius:7px;padding:16px;margin-top:20px}.plugin-manager-wide .gift-profile-group>p{grid-column:1/-1}.plugin-manager-wide .gift-profile-group>.button{justify-self:start}.receipt-workspace{min-width:0}.receipt-workspace .receipt-summary{display:grid;grid-template-columns:repeat(6,minmax(0,1fr)) minmax(135px,1.2fr);padding:20px;background:var(--surface-soft);border-radius:8px;gap:12px;margin:14px 0 10px}.receipt-summary article{display:flex;flex-direction:column;gap:10px;min-width:0}.receipt-summary article>span{font-size:11px;color:var(--muted);line-height:1.5}.receipt-summary strong{font-size:25px;font-weight:500;font-variant-numeric:tabular-nums;overflow-wrap:anywhere;color:var(--text)}.receipt-summary .receipt-total{border-left:2px solid var(--accent);padding-left:15px}.receipt-summary [data-sign=positive],.receipt-workspace [data-sign=positive]{color:var(--success)}.receipt-summary [data-sign=negative],.receipt-workspace [data-sign=negative]{color:var(--danger)}.receipt-summary [data-sign=unknown]{color:var(--gold)}.receipt-scope{font-size:12px;color:var(--muted);margin-bottom:18px}.receipt-filters{display:flex;align-items:flex-end;gap:12px;flex-wrap:wrap;padding:15px 0}.receipt-filters>.console-field{flex:1;min-width:160px}.receipt-filters .button{min-height:40px}.receipt-kinds{display:flex;align-items:center;flex-wrap:wrap;gap:12px;border:0;padding:0;margin:5px 0;width:100%}.receipt-kinds legend{font-size:11px;color:var(--muted);margin-bottom:8px}.receipt-kinds label{display:flex;align-items:center;gap:6px;font-size:12px;white-space:nowrap}.receipt-kinds input,.receipt-workspace td input{width:15px;height:15px;accent-color:var(--accent)}.receipt-toolbar{display:flex;flex-wrap:wrap;align-items:center;gap:7px;padding:12px;background:var(--surface-soft);border:1px solid var(--border);border-radius:6px 6px 0 0}.receipt-toolbar .button{min-height:30px;font-size:11px;border-radius:4px;padding:5px 9px}.receipt-toolbar .primary{background:var(--primary-fill);border-color:transparent}.receipt-toolbar>.hint{margin-left:auto;font-size:11px}.receipt-table-wrap{overflow-x:auto;border:1px solid var(--border);border-top:0;border-radius:0 0 6px 6px}.receipt-workspace table{border-collapse:collapse;width:100%;font-size:12px;white-space:nowrap}.receipt-workspace th{padding:12px 16px;background:var(--surface-soft);color:var(--muted);text-align:left;font-size:11px;font-weight:500}.receipt-workspace td{padding:10px 16px;border-top:1px solid var(--border);vertical-align:middle;font-variant-numeric:tabular-nums;color:var(--text)}.receipt-workspace tr.selected{background:var(--accent-soft)}.receipt-workspace .user-cell,.receipt-workspace .gift-cell{display:flex;align-items:center;gap:10px}.receipt-workspace .avatar-wrap{position:relative;display:grid;place-items:center;flex:none;isolation:isolate;width:44px;height:44px}.receipt-workspace .avatar{display:grid;place-items:center;position:relative;width:32px;height:32px;border-radius:50%;overflow:hidden;background:var(--code);color:var(--tertiary)}.receipt-workspace .avatar-framed .avatar{width:80%;height:80%}.receipt-workspace .avatar-frame{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;pointer-events:none}.receipt-workspace .avatar img{width:100%;height:100%;object-fit:cover;position:absolute}.receipt-workspace .image-fallback{font-size:12px}.receipt-workspace .user-info{display:flex;flex-direction:column;gap:5px}.receipt-workspace .user-name{max-width:135px;overflow:hidden;text-overflow:ellipsis;font-size:12px;font-weight:500}
.receipt-workspace .gift-icon{width:32px;height:32px;position:relative;display:grid;place-items:center;flex:none}.receipt-workspace .gift-icon img{position:absolute;width:100%;height:100%;object-fit:contain}.receipt-workspace .gift-cell small,.receipt-workspace td>small{display:block;font-size:10px;color:var(--tertiary);margin-top:4px}.receipt-workspace .receipt-message{white-space:pre-wrap;max-width:220px;max-height:80px;overflow:auto;font-size:11px;margin:5px 0 0}.receipt-value{display:inline-block;border:1px solid var(--border);background:var(--surface-soft);padding:2px 5px;font-size:11px}.receipt-value[data-tier=medium]{color:var(--warning);border-color:var(--warning-edge);background:var(--warning-fill)}.receipt-value[data-tier=high]{color:var(--danger);border-color:var(--danger-edge);background:var(--danger-fill)}.receipt-value[data-tier=unknown]{color:var(--gold)}.receipt-workspace .receipt-empty{text-align:center;padding:40px 20px;color:var(--muted);white-space:normal}.receipt-pages{display:flex;align-items:center;justify-content:flex-end;gap:8px;margin:15px 0}.receipt-pages span{margin-right:auto;font-size:12px;color:var(--muted)}.receipt-pages .button{font-size:12px;padding:6px 10px;min-height:32px}.receipt-coverage{line-height:1.9;border:1px solid var(--border);background:var(--surface-soft);padding:13px 15px;border-radius:6px;margin:15px 0}.screenshot-dashboard section{margin:22px 0;padding:18px;border:1px solid var(--border);border-radius:10px;overflow:auto}.screenshot-dashboard h3{margin:0 0 14px!important}.screenshot-dashboard table{width:100%;border-collapse:collapse;font-size:13px}.screenshot-dashboard td,.screenshot-dashboard th{text-align:left;padding:12px;border-bottom:1px solid var(--border);min-width:90px;overflow-wrap:anywhere}.screenshot-dashboard th{background:var(--surface-soft);font-weight:500;color:var(--muted)}
@media(max-width:1000px){.receipt-workspace .receipt-summary{grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}.receipt-summary .receipt-total{border-left:0;padding-left:0}.plugin-manager-wide .gift-profile-group{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){dialog.plugin-manager-wide{width:100%}.plugin-manager-wide .console-form{grid-template-columns:minmax(0,1fr)}.plugin-manager-wide .gift-profile-group{padding:12px;gap:12px}.receipt-workspace .receipt-summary{grid-template-columns:repeat(2,minmax(0,1fr));padding:16px}.receipt-summary strong{font-size:25px}.receipt-summary .receipt-total{grid-column:1/-1;border-top:1px solid var(--border);padding-top:12px}.receipt-filters>.console-field{min-width:130px}.receipt-toolbar{padding:10px}.receipt-toolbar>.hint{width:100%;margin:0}.receipt-pages{flex-wrap:wrap}.plugin-manager-wide .plugin-manager-tabs{gap:16px;overflow-x:auto;flex-shrink:0}.plugin-manager-wide .plugin-manager-tab{white-space:nowrap;font-size:12px}}
.plugin-manager-wide .gift-profile-field .console-field{height:auto;align-content:start}

/* Keep record tables readable instead of applying the administrative card layout. */
.receipt-workspace table { display: table; }
.receipt-workspace thead { display: table-header-group; }
.receipt-workspace tbody { display: table-row-group; }
.receipt-workspace tr { display: table-row; padding: 0; }
.receipt-workspace td { display: table-cell; text-align: left; }
.receipt-workspace td::before { display: none; }
.receipt-kinds { min-width: 0; }
.data-analysis { max-width: 100%; min-width: 0; overflow-x: auto; }
.data-dashboard .receipt-summary { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.data-dashboard [hidden] { display: none !important; }
.data-dashboard .receipt-filters { margin: 0; }
.data-dashboard .receipt-filters > .console-field:first-child { flex: 2; min-width: min(240px, 100%); }
.data-shortcuts { flex-wrap: wrap; margin: 20px 0 0; }
.data-dashboard .receipt-table-wrap td:nth-child(2) > .button { font-size: 11px; min-height: 26px; padding: 3px 7px; margin: 5px 0 0 54px; }
.data-dashboard .receipt-table-wrap td:nth-child(2) > .user-cell { display: flex; }
.data-dashboard .data-analysis:not(:empty) { border: 1px solid var(--border); border-radius: 8px; padding: 12px; margin-bottom: 16px; }
.data-dashboard .data-analysis summary, details.receipt-maintenance > summary { cursor: pointer; font-weight: 500; color: var(--text); }
.data-dashboard .data-analysis .hint { white-space: normal; }
.data-dashboard .receipt-scope { line-height: 1.8; overflow-wrap: anywhere; }
.data-advanced-filters { flex: 1 0 100%; min-width: 0; border: 1px solid var(--border); border-radius: 8px; padding: 12px; }
.data-advanced-filters > summary { cursor: pointer; font-size: 12px; color: var(--muted); }
.data-advanced-fields { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; margin-top: 16px; }
.data-advanced-fields > .hint { grid-column: 1/-1; }
.data-filter-chips { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 12px; }
.data-filter-chip { border: 1px solid var(--border); border-radius: 6px; background: var(--accent-soft); color: var(--text); font-size: 11px; padding: 7px 10px; cursor: pointer; max-width: 100%; overflow-wrap: anywhere; }
.data-dashboard, .data-visuals { scroll-margin-top: 90px; }
.data-visuals { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; margin: 20px 0; min-width: 0; }
.data-visuals > :first-child, .data-visuals > :last-child { grid-column: 1/-1; }
.data-visual-card { min-width: 0; padding: 20px; border: 1px solid var(--border); border-radius: 10px; background: var(--glass-panel); }
.data-visual-card h3 { margin: 0 0 9px; font-size: 15px; }
.data-visual-card > .console-field { max-width: 280px; margin-top: 14px; }
.data-bars { display: grid; gap: 7px; margin-top: 16px; }
.data-bar-row { display: grid; grid-template-columns: minmax(95px,1fr) minmax(60px,2fr) minmax(55px,auto); align-items: center; gap: 12px; width: 100%; text-align: left; border: 0; border-radius: 6px; padding: 9px 6px; color: var(--text); background: transparent; cursor: pointer; }
.data-bar-row:hover { background: var(--accent-soft); }.data-bar-row:disabled { cursor: default; opacity: .65; }
.data-bar-label { min-width: 0; overflow-wrap: anywhere; font-size: 12px; }
.data-bar-value { text-align: right; font-size: 12px; font-weight: 550; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.data-bar-track { display: block; position: relative; height: 10px; border-radius: 5px; background: var(--surface-soft); overflow: hidden; }
.data-bar-track[data-signed=true]::before { content: ''; position: absolute; left: 50%; height: 100%; width: 1px; background: var(--border-strong); }
.data-bar-fill { position: absolute; top: 0; bottom: 0; min-width: 0; background: var(--accent); border-radius: 5px; }.data-bar-fill[data-sign=negative] { background: var(--danger); }
.data-daily-details { margin-top: 16px; max-width: 100%; overflow-x: auto; }.data-daily-details > summary { cursor: pointer; color: var(--muted); font-size: 12px; margin-bottom: 12px; }
.data-record-dialog { width: min(620px,calc(100vw - 28px)); padding: 24px; }.data-record-dialog > h2 { margin-bottom: 22px; }.data-record-fields { display: grid; grid-template-columns: minmax(90px,auto) minmax(0,1fr); gap: 14px 20px; margin-bottom: 24px; }.data-record-fields dt { font-size: 12px; color: var(--muted); }.data-record-fields dd { margin: 0; font-size: 13px; white-space: pre-wrap; overflow-wrap: anywhere; }
.data-recap-metrics { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; margin: 15px 0; }.data-recap-metrics > div { display: grid; gap: 8px; padding: 14px; background: var(--surface-soft); border-radius: 8px; }.data-recap-metrics span { color: var(--muted); font-size: 12px; }.data-recap-metrics strong { font-size: 23px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
@media(max-width:600px) { .data-visuals { grid-template-columns: minmax(0,1fr); }.data-visual-card { padding: 15px; }.data-advanced-fields { grid-template-columns: minmax(0,1fr); }.data-bar-row { grid-template-columns: minmax(90px,1fr) minmax(40px,1fr) minmax(45px,auto); gap: 8px; padding: 8px 0; }.data-record-fields { gap: 12px; grid-template-columns: 80px minmax(0,1fr); } }
@media(max-width:600px) { .data-recap-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); } }
.receipt-maintenance { margin-top: 18px; }
.receipt-maintenance .inline-notice { margin-top: 18px; }
.receipt-maintenance .inline-notice > p { min-width: 0; overflow-wrap: anywhere; }
.receipt-maintenance .console-error:empty, .receipt-maintenance [role=status]:empty { display: none; }
@media (max-width: 600px) { .data-dashboard .receipt-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 380px) { .receipt-filters > .console-field { min-width: 100%; } }

.room-control-log-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 16px 0; }
.room-control-log-toolbar select { min-width: 0; max-width: 100%; padding: 9px 12px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); color: inherit; font: inherit; }
.room-control-log-list { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 12px; }
.room-control-log-entry { min-width: 0; padding: 14px; border: 1px solid var(--border); border-radius: 10px; overflow-wrap: anywhere; }
.room-control-log-heading { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px; }
.room-control-log-heading time, .room-control-log-entry small { color: var(--muted); font-size: 12px; }
.room-control-log-entry p { margin: 10px 0 6px; }
.room-control-log-entry code { display: block; font-size: 11px; color: var(--muted); white-space: normal; }
.room-control-log-entry small { display: block; margin-top: 8px; }
.room-control-log-entry[data-level="error"] { border-inline-start: 3px solid var(--danger, #dc3545); }
.room-control-log-entry[data-level="warning"] { border-inline-start: 3px solid var(--warning); }

/* Live workbench: status first, readable messages, then plugin controls. */

.workbench-overview { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--border); border-radius: 14px; background: var(--glass-panel); overflow: hidden; }
.workbench-overview > .workbench-shortcuts { grid-column: 1/-1; flex-direction: row; justify-content: flex-end; border-top: 1px solid var(--border); padding: 10px 16px; }
.danmaku-trend { margin: 20px 0; }.data-static-bar, .data-static-bar:hover { cursor: default; background: transparent; }
.workbench-metric { min-width: 0; padding: 18px 20px; border-right: 1px solid var(--border); display: flex; flex-direction: column; gap: 6px; }
.workbench-metric > span { display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--muted); }
.workbench-metric .icon { width: 15px; height: 15px; }
.workbench-metric > strong { font-size: 20px; font-weight: 600; line-height: 1.5; font-variant-numeric: tabular-nums; }
.workbench-metric > small { font-size: 11px; color: var(--muted); }
.workbench-metric[data-tone=success] > strong { color: var(--success); }
.workbench-metric[data-tone=warning] > strong { color: var(--warning); }
.workbench-shortcuts { display: flex; flex-direction: column; justify-content: center; gap: 8px; padding: 14px 18px; }
.workbench-stage { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; align-items: start; }
.workbench-stage:has(> .workbench-card) { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
.workbench-section-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.workbench-section-heading .hint { margin-top: 4px; }
.workbench-feed { min-width: 0; border: 1px solid var(--border); border-radius: 14px; background: var(--glass-panel); padding: 20px; }
.workbench-feed-toolbar { display: flex; align-items: center; gap: 10px; margin: 18px 0 12px; }
.workbench-feed select, .workbench-tools select { max-width: 100%; min-width: 0; padding: 9px 11px; border: 1px solid var(--border-strong); border-radius: 8px; color: var(--text); background: var(--field); font-size: 12px; }
.workbench-search { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0; border: 1px solid var(--border-strong); border-radius: 8px; background: var(--field); padding: 0 11px; }
.workbench-search .icon { width: 16px; height: 16px; color: var(--muted); }
.workbench-search input[type=search] { min-width: 0; width: 100%; padding: 9px 0; font-size: 12px; border: 0; background: transparent; outline: none; }
.workbench-search:focus-within { outline: 2px solid var(--focus); outline-offset: 2px; }
.workbench-events { height: 288px; overflow: auto; overscroll-behavior: contain; overflow-anchor: none; border: 1px solid var(--border); border-radius: 10px; background: var(--surface-soft); scrollbar-gutter: stable; }
.workbench-message-list { margin: 0; padding: 6px 16px; list-style: none; }
.workbench-message { padding: 10px 0; border-bottom: 1px solid var(--border); overflow-wrap: anywhere; }
.workbench-message:last-child { border-bottom: 0; }
.workbench-message-meta { display: flex; align-items: baseline; gap: 9px; margin-bottom: 3px; }
.workbench-message-meta strong { min-width: 0; font-size: 12px; font-weight: 550; }
.workbench-event-kind { flex-shrink: 0; color: var(--muted); font-size: 10px; }
.workbench-message p { font-size: 13px; white-space: pre-wrap; }
.workbench-message[data-type=gift] .workbench-event-kind, .workbench-message[data-type=guard] .workbench-event-kind { color: var(--gold); }
.workbench-message[data-type=superchat] .workbench-event-kind { color: var(--blue); }
.workbench-feed-empty { min-height: 260px; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 8px; padding: 28px 16px; text-align: center; color: var(--muted); }
.workbench-feed-empty > .icon { width: 26px; height: 26px; margin-bottom: 4px; }
.workbench-feed-empty strong { font-size: 13px; font-weight: 550; }
.workbench-feed-empty p { max-width: 340px; font-size: 12px; }
.workbench-feed-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 6px 12px; padding-top: 10px; }
.workbench-feed-footer .hint { font-size: 11px; }
.workbench-feed[data-paused=true] .workbench-feed-footer > p { color: var(--warning); }
.workbench-feed [aria-pressed=true] { background: var(--warning-fill); border-color: var(--warning-edge); color: var(--warning); }
.workbench-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 350px), 1fr)); gap: 18px; align-items: start; margin-top: -8px; }
.workbench-card { min-width: 0; border: 1px solid var(--border); border-radius: 14px; background: var(--glass-panel); padding: 20px; display: flex; flex-direction: column; gap: 16px; }
.workbench-card-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.workbench-card-identity { display: flex; align-items: center; gap: 11px; min-width: 0; }
.workbench-card-identity > div { min-width: 0; }
.workbench-card-identity .plugin-symbol { width: 38px; height: 38px; flex-shrink: 0; border-radius: 10px; }
.workbench-card-identity .plugin-symbol .icon { width: 21px; height: 21px; }
.workbench-card h2 { font-size: 16px; }
.workbench-card h3 { font-size: 13px; }
.workbench-card-meta { display: flex; align-items: center; gap: 9px; margin-top: 5px; color: var(--muted); }
.workbench-card-meta small { font-size: 10px; }
.workbench-card-meta .badge { font-size: 10px; padding: 1px 6px; }
.workbench-card .console-actions { gap: 8px; }
.workbench-card-controls { margin-left: auto; }
.workbench-card-controls .button { min-height: 32px; padding: 5px 10px; }
.workbench-card .console-error:empty, .workbench-card .workbench-result:empty, .workbench-display:empty, .workbench-plugin-actions:empty, .workbench-import-preview:empty { display: none; }
.workbench-state-hint { padding: 10px 12px; border-radius: 8px; background: var(--surface-soft); }
.workbench-display { max-height: 320px; overflow: auto; min-width: 0; overflow-wrap: anywhere; }
.workbench-display.live-widget { margin: 0; }
.workbench-display .widget-note { color: var(--muted); font-size: 11px; margin-bottom: 8px; }
.workbench-snapshot-section + .workbench-snapshot-section { margin-top: 14px; }
.workbench-snapshot-section h3 { margin-bottom: 8px; }
.workbench-snapshot-section p { font-size: 12px; padding: 3px 0; }
.workbench-pk-diagnostics { margin-top: 14px; padding: 12px; border: 1px solid var(--border); border-radius: 9px; background: var(--surface-soft); color: var(--text); font-size: 12px; }
.workbench-pk-diagnostics h3 { margin-bottom: 4px; }
.workbench-pk-diagnostics .hint { font-size: 11px; }
.workbench-pk-diagnostic-list { margin-top: 8px; }
.workbench-pk-diagnostic-list p { padding: 5px 0; border-top: 1px solid var(--border); font-size: 12px; line-height: 1.45; overflow-wrap: anywhere; }
.workbench-candidates { border: 1px solid var(--border); border-radius: 10px; padding: 14px; background: var(--surface-soft); }
.workbench-candidate-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.workbench-candidate-heading > strong { font-size: 12px; }
.workbench-candidate-heading .badge { font-size: 10px; }
.workbench-candidate-list { max-height: 300px; overflow: auto; }
.workbench-candidate { padding: 12px 0; border-bottom: 1px solid var(--border); overflow-wrap: anywhere; }
.workbench-candidate:last-child { border-bottom: 0; }
.workbench-candidate > p { margin: 10px 0; font-size: 13px; }
.workbench-candidates > .hint { margin: 10px 0; }
.workbench-candidates > .button { margin-top: 8px; }
.workbench-tools { min-width: 0; border-top: 1px solid var(--border); }
.workbench-tools > summary { padding-top: 13px; color: var(--muted); font-size: 12px; font-weight: 550; }
.workbench-tools-body { display: grid; gap: 12px; padding-top: 14px; min-width: 0; }
.workbench-tools .console-field { font-size: 12px; min-width: 0; }
.workbench-tools input { width: 100%; min-width: 0; }
.workbench-tools details > summary { font-size: 12px; color: var(--muted); }
.workbench-tools details .console-field { margin-top: 12px; }
.workbench-result { min-width: 0; font-size: 12px; padding: 11px 13px; border-left: 2px solid var(--accent); background: var(--surface-soft); border-radius: 0 8px 8px 0; overflow-wrap: anywhere; }
.workbench-result h3 { margin-bottom: 7px; }
.workbench-result p + p { margin-top: 6px; }
.workbench-memory-row { border-bottom: 1px solid var(--border); padding: 12px 0; font-size: 12px; overflow-wrap: anywhere; }
.workbench-memory-row .button { margin-top: 8px; }
.workbench-import-preview { display: grid; gap: 10px; font-size: 12px; }
.workbench-import-preview pre { max-height: 260px; overflow: auto; margin: 10px 0; padding: 12px; border-radius: 8px; background: var(--code); white-space: pre-wrap; overflow-wrap: anywhere; font-size: 11px; }
.workbench-empty { grid-column: 1 / -1; display: flex; align-items: center; flex-direction: column; gap: 12px; text-align: center; padding: 36px 20px; border: 1px dashed var(--border-strong); border-radius: 14px; }
@media (max-width: 1100px) {
  .workbench-overview { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .workbench-metric:nth-child(3) { border-right: 0; }
  .workbench-shortcuts { grid-column: 1 / -1; flex-direction: row; justify-content: flex-end; border-top: 1px solid var(--border); padding: 10px 16px; }
}
@media (max-width: 1199px) { .workbench-stage:has(> .workbench-card) { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 600px) {
  .workbench-metric { padding: 14px 12px; }
  .workbench-metric > span { font-size: 10px; gap: 5px; }
  .workbench-metric > strong { font-size: 16px; }
  .workbench-metric > small { font-size: 10px; }
  .workbench-metric .icon { display: none; }
  .workbench-shortcuts { justify-content: stretch; }
  .workbench-shortcuts .button { flex: 1; }
  .workbench-feed, .workbench-card { padding: 16px; }
  .workbench-feed > .workbench-section-heading > .console-actions { width: 100%; }
  .workbench-feed-toolbar { flex-wrap: wrap; }
  .workbench-feed-toolbar > select, .workbench-search { width: 100%; flex-basis: 100%; }
  .workbench-events { height: 270px; }
  .workbench-feed-empty { min-height: 245px; }
  .workbench-message-list { padding-left: 12px; padding-right: 12px; }
  .workbench-feed-footer > span { display: none; }
  .workbench-card-heading { align-items: flex-start; }
  .workbench-card-controls { margin-left: 0; }
  .workbench-card .button, .workbench-feed .button { min-height: 40px; }
  .workbench-candidate-heading > .hint { font-size: 11px; }
}
.feature-editor-card{border:1px solid var(--border);border-radius:12px;margin:12px 0;padding:14px}.condition-editor{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:10px;border-top:1px solid var(--border);padding:12px 0}.structured-editor button{margin:4px}.widget-items{display:flex;flex-direction:column;gap:10px}.widget-card{display:flex;gap:12px;align-items:center;border-radius:12px;background:var(--widget-bg,#ffffffdd);padding:12px}.widget-body{display:flex;flex-direction:column;min-width:0;overflow-wrap:anywhere;gap:5px}.widget-card small{font-size:12px}.widget-card p{margin:0}.widget-card progress{width:100%}.widget-emoticon{max-width:120px;max-height:60px}.widget-card .avatar-wrap{width:36px;height:36px}.live-widget{font-size:min(24px,1em)!important;margin:16px 0}.widget-card.achieved{outline:2px solid #dab14d}
.receipt-coverage>p{margin:0}.receipt-coverage details{margin-top:8px}.receipt-coverage summary{cursor:pointer;color:var(--text);font-weight:500}.receipt-coverage ul{margin:10px 0 0;padding-left:20px}.receipt-coverage li{margin:8px 0;overflow-wrap:anywhere}.receipt-coverage li strong,.receipt-coverage li span{display:block}.receipt-coverage li span{color:var(--muted)}
/* Shared plugin checks and settings stay within the existing console surface. */
.plugin-readiness { display: grid; gap: .65rem; min-width: 0; }
.plugin-readiness[hidden] { display: none; }
.plugin-readiness-row { display: flex; align-items: start; justify-content: space-between; gap: .8rem; padding: .75rem; border: 1px solid var(--line, #76839044); border-radius: 10px; min-width: 0; }
.plugin-readiness-row > div { min-width: 0; overflow-wrap: anywhere; }
.plugin-readiness-row .hint { margin: .35rem 0 0; }
.plugin-readiness-row[data-tone="warning"] { border-inline-start: 3px solid var(--warning); }
.plugin-readiness-row .button { flex-shrink: 0; }
.plugin-settings-search { display: flex; gap: .6rem; margin-block: .8rem; }
.plugin-settings-search input { flex: 1; min-width: 0; }
.plugin-settings-fields { display: grid; gap: 1rem; }
.plugin-settings-fields [hidden] { display: none !important; }
.plugin-config-conflict { display: grid; gap: .6rem; flex-basis: 100%; min-width: 0; }
.plugin-config-conflict:empty { display: none; }
.plugin-config-conflict small { display: block; overflow-wrap: anywhere; }
.plugin-save-impact { flex-basis: 100%; margin: 0; }
.plugin-manager-dialog .plugin-save-row { position: sticky; bottom: 0; z-index: 2; padding: .9rem; background: var(--surface, Canvas); border-top: 1px solid var(--line, #76839044); }
.plugin-obs-steps { padding-inline-start: 1.3rem; line-height: 1.7; }
@media (max-width: 600px) {
  .plugin-readiness-row { flex-direction: column; }
  .plugin-settings-search { flex-wrap: wrap; }
  .plugin-settings-search input { flex-basis: 100%; }
}

/* Owner controls stay separate from the transparent OBS display. */
.song-queue-panel{display:flex;flex-direction:column;gap:12px;min-width:0}.song-queue-panel h3,.song-queue-panel p{margin:0}.song-queue-panel input[type=search]{width:100%;box-sizing:border-box;min-width:0}.song-queue-list{display:flex;flex-direction:column;gap:8px}.song-queue-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px;border:1px solid var(--border,#bac4d240);border-radius:12px}.song-queue-copy{display:flex;flex-direction:column;gap:5px;min-width:0;overflow-wrap:anywhere}.song-queue-copy small{opacity:.75}.song-queue-row .console-actions{flex-shrink:0}.song-queue-row button{min-height:40px}.song-queue-panel .console-error:empty,.song-queue-panel .hint:empty{display:none}@media(max-width:420px){.song-queue-panel .console-actions{gap:6px}.song-queue-panel .console-actions .button{padding:8px 10px}.song-queue-row{padding:10px}}

/* Console hierarchy: navigation, current task, then supporting detail. */

.hint, .console-panel > .hint { font-size: 12px; }
.button { min-height: 36px; padding: 7px 14px; border-radius: var(--radius-md); font-size: 13px; font-weight: 550; }
.button.small, .table-actions > .button { min-height: 40px; font-size: 12px; }
.button:disabled { opacity: .5; }
.console-field { font-size: 13px; color: var(--text); }.console-field small { font-size: 12px; }
input:not([type=checkbox]):not([type=radio]), select, textarea { min-height: 44px; font-size: 14px; }
.console-panel { padding: 24px; }.console-panel > .muted { color: var(--muted); line-height: 1.85; }
.console-form { gap: 18px; }.console-error, .record-details { font-size: 13px; }
.disclosure > summary { min-height: 58px; }.disclosure summary small { line-height: 1.7; }
.badge { font-size: 12px; padding: 4px 9px; }

.support-disclosure { scroll-margin-top: 92px; }
.market-purpose { display: flex; gap: 10px; align-items: center; color: var(--muted); font-size: 13px; }.market-purpose select { min-width: 160px; }
.plugin-card h2 { font-size: 18px; }.plugin-description { font-size: 13px; line-height: 1.85; }.plugin-card > .hint { font-size: 12px; }
.plugin-card .disclosure > summary { align-items: flex-start; }.plugin-card .disclosure summary strong { font-size: 13px; }.plugin-card .disclosure summary small { font-size: 12px; }

.plugins-updated { font-size: 12px; }

.plugin-filter { min-height: 44px; font-size: 13px; }.plugin-filter[aria-pressed=true] { background: var(--accent-soft); color: var(--accent); }
.plugin-readiness-row { border-color: var(--border); }.plugin-readiness-row strong { font-size: 13px; }
dialog.plugin-manager-dialog:not(.plugin-manager-wide) { width: min(720px,calc(100vw - 32px)); }
.plugin-manager-content { flex: 1; }.plugin-manager-tab { min-height: 46px; }
.plugin-settings-footer { flex-shrink: 0; border-top: 1px solid var(--border); padding: 14px 26px max(14px,env(safe-area-inset-bottom)); background: var(--surface); }
.plugin-settings-footer > .console-error { margin-bottom: 12px; max-height: 120px; overflow: auto; }
.plugin-manager-dialog .plugin-settings-footer .plugin-save-row { position: static; flex-wrap: wrap; align-items: center; gap: 8px 16px; border: 0; padding: 0; }
.plugin-settings-footer .plugin-save-row > .primary { min-width: 124px; }.plugin-settings-footer .plugin-save-row .hint { font-size: 12px; line-height: 1.7; }
.plugin-settings-footer .plugin-save-impact { width: 100%; }
.feature-editor-card, .condition-editor { border-color: var(--border); }
.plugin-structured-section { min-width: 0; }.plugin-structured-section > h3 { margin-bottom: 12px; }
.feature-editor-card { display: grid; gap: 14px; min-width: 0; margin: 12px 0 16px; background: var(--surface-soft); }
.feature-editor-card > legend { padding: 0 6px; font-size: 13px; font-weight: 600; }
.feature-editor-card > div:has(> button) { display: flex; gap: 8px; flex-wrap: wrap; }
.structured-editor button { margin: 0; }.structured-editor > .button { justify-self: start; }
.feature-editor-card > .button, .condition-editor > .button { justify-self: start; }.condition-editor { min-width: 0; align-items: end; }
.feature-editor-card > .rule-text-hint { margin: -8px 0 0; }.condition-editor > .condition-hint { grid-column: 1 / -1; margin: 0; color: var(--warning); }
dialog.plugin-install-dialog { width: min(760px,calc(100vw - 40px)); height: min(820px,calc(100dvh - 48px)); max-height: calc(100dvh - 48px); overflow: hidden; }
.plugin-install-dialog .dialog-body { display: flex; flex-direction: column; height: 100%; padding: 0; }
.plugin-install-dialog .dialog-heading { flex-shrink: 0; padding: 20px 24px; margin: 0; border-bottom: 1px solid var(--border); }
.plugin-install-form { display: flex; flex-direction: column; min-height: 0; margin: 0 !important; gap: 0; flex: 1; }
.plugin-install-content { padding: 22px 24px; overflow-y: auto; overscroll-behavior: contain; min-height: 0; flex: 1; display: grid; gap: 18px; align-content: start; }
.plugin-install-content > .muted { font-size: 13px; line-height: 1.85; }.plugin-install-content > .check-row { background: var(--accent-soft); border: 1px solid var(--success-edge); border-radius: 10px; padding: 14px; color: var(--text); }
.install-send-summary.console-error { background: var(--warning-fill); border-color: var(--warning-edge); color: var(--warning); font-size: 12px; }
.plugin-install-content .plugin-settings-search { margin: 0; }.plugin-install-content > .hint { margin-top: -6px; }
.plugin-install-form > .dialog-actions { flex-shrink: 0; margin: 0; padding: 16px 24px max(16px,env(safe-area-inset-bottom)); background: var(--surface); }
.plugin-install-form > .dialog-actions > .console-error { flex-basis: 100%; max-height: 120px; overflow-y: auto; }
.plugin-install-content .gift-profile-editor { padding: 10px 0; border: 0; }
.workbench-metric > span { font-size: 13px; }.workbench-metric > small { font-size: 12px; line-height: 1.7; }.workbench-metric > strong { font-size: 23px; overflow-wrap: anywhere; }
.workbench-metric:nth-child(4n) { border-right: 0; }.data-bar-label, .data-bar-value { font-size: 13px; }
.data-daily-details table, .data-analysis table { display: table; width: 100%; }.data-daily-details tr, .data-analysis tr { display: table-row; padding: 0; }.data-daily-details th, .data-analysis th, .data-daily-details td, .data-analysis td { display: table-cell; padding: 12px; text-align: left; font-size: 13px; }.data-daily-details td::before, .data-analysis td::before { display: none; }
.receipt-toolbar .button, .receipt-pages .button { min-height: 38px; font-size: 12px; }.receipt-workspace th, .receipt-workspace td { font-size: 12px; }

@media (max-width: 1100px) {

  .workbench-metric:nth-child(3) { border-right: 1px solid var(--border); }.workbench-metric:nth-child(2n) { border-right: 0; }
}
@media (max-width: 760px) {

  .button, .button.small, .workbench-card .button, .workbench-feed .button, .receipt-toolbar .button, .receipt-pages .button { min-height: 44px; font-size: 13px; }
  .icon-button, .text-button { min-height: 44px; }
  input:not([type=checkbox]):not([type=radio]), select, textarea { font-size: 16px; }.console-field { font-size: 13px; }
  .console-panel { padding: 20px; }.console-panel > .muted, .hint { font-size: 12px; }

  .market-purpose { width: 100%; }.market-purpose select { flex: 1; }.plugin-filters { gap: 5px; }.plugin-filter { min-height: 44px; font-size: 12px; padding: 9px; }

  .workbench-metric > span { font-size: 12px; }.workbench-metric > small { font-size: 11px; }.workbench-metric > strong { font-size: 20px; }
  dialog.plugin-manager-dialog:not(.plugin-manager-wide) { width: 100%; }.plugin-settings-footer { padding: 12px 20px max(16px,env(safe-area-inset-bottom)); }.plugin-settings-footer .plugin-save-row .button { width: auto; }.plugin-settings-footer .plugin-save-impact { font-size: 11px; }
  dialog.plugin-install-dialog { width: 100%; height: 100dvh; max-height: 100dvh; max-width: 100%; margin: 0; border: 0; border-radius: 0; }.plugin-install-dialog .dialog-heading { padding: max(16px,env(safe-area-inset-top)) 20px 16px; }.plugin-install-content { padding: 20px; }.plugin-install-form > .dialog-actions { padding: 14px 20px max(16px,env(safe-area-inset-bottom)); }

}
@media (max-width: 380px) {

.console-panel { padding: 16px; }

}
@media (forced-colors: active) {
.plugin-settings-footer, .plugin-install-form > .dialog-actions { color: CanvasText; background: Canvas; border-color: CanvasText; }

}
/* Data center: category navigation, one query surface, then records.
   These rules are scoped so plugin settings and OBS displays keep their layout. */

.business-data-center, .business-category-panel, .business-data-base { display: grid; gap: 16px; min-width: 0; }
.business-data-center .console-error:empty, .business-data-status:empty { display: none; }
.business-data-tabs { display: flex; flex-wrap: wrap; align-items: center; gap: 0 22px; padding: 4px 18px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
.business-tab-group { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; padding: 4px 0; min-width: 0; }
.business-tab-group:first-child { flex-basis: 100%; border-bottom: 1px solid var(--border); }
.business-tab-label { color: var(--muted); font-size: 11px; font-weight: 600; margin-right: 10px; white-space: nowrap; }
.business-data-tabs .button { border: 1px solid transparent; background: transparent; box-shadow: none; border-radius: 8px; color: var(--muted); padding: 8px 14px; min-height: 40px; white-space: nowrap; }
.business-data-tabs .button[aria-selected=true] { color: var(--text); background: var(--select-fill); border-color: var(--select-edge); }
.business-tab-group:first-child .button { font-size: 14px; }
.business-data-heading { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px; padding-top: 3px; }
.business-data-heading h2 { font-size: 20px; margin: 0 0 4px; }
.business-data-heading .console-actions { gap: 8px; }
.business-data-heading .button { min-height: 38px; padding: 7px 12px; }
.business-data-filters { padding: 16px 20px; display: grid; gap: 12px; }
.business-filter-top { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.business-filter-top > strong { font-size: 13px; }
.business-filter-top > .hint { margin-left: auto; }
.business-date-shortcuts { display: flex; flex-wrap: wrap; gap: 3px; padding: 3px; border-radius: 8px; background: var(--surface-soft); }
.business-date-shortcuts .button { padding: 4px 12px; min-height: 32px; font-size: 12px; border: 1px solid transparent; background: transparent; box-shadow: none; color: var(--muted); }
.business-date-shortcuts .button[aria-pressed=true] { background: var(--surface); border-color: var(--border); color: var(--accent); box-shadow: 0 1px 3px rgb(0 0 0 / .05); }
.business-custom-filters { min-width: 0; }
.business-filter-fields { display: grid; grid-template-columns: minmax(150px,1.15fr) repeat(2,minmax(130px,1fr)) minmax(145px,1.2fr) auto; align-items: end; gap: 12px; }
.business-filter-fields > .console-field { min-width: 0; gap: 7px; }
.business-filter-fields input, .business-filter-fields select { width: 100%; min-width: 0; }
.business-filter-fields > .button { min-height: 44px; }
.business-filter-extra { display: flex; flex-wrap: wrap; align-items: end; gap: 12px; margin-top: 12px; }
.business-filter-extra .console-field { min-width: min(240px,100%); }
.business-filter-chips { margin: 0; min-width: 0; border-top: 1px solid var(--border); padding-top: 12px; }
.business-filter-top > .business-filter-reset { background: transparent; border-color: transparent; box-shadow: none; color: var(--muted); font-size: 12px; min-height: 34px; padding: 4px 6px; flex-shrink: 0; }
.business-data-status { margin-top: -9px; }
.business-data-status.is-pending { padding: 10px 14px; border-radius: 8px; color: var(--warning); background: var(--warning-fill); margin-top: -6px; }
.business-data-metrics { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; }
.business-data-metric { position: relative; display: flex; flex-direction: column; gap: 8px; min-width: 0; text-align: left; font: inherit; color: var(--text); padding: 16px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
button.business-data-metric:hover:not(:disabled) { border-color: var(--accent); background: var(--accent-soft); }
.business-metric-label { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 500; color: var(--muted); }
.business-metric-label .icon { width: 17px; height: 17px; color: var(--accent); }
.business-data-metric > strong { font-size: clamp(22px,2.2vw,30px); font-weight: 650; letter-spacing: -.6px; font-variant-numeric: tabular-nums; line-height: 1.3; overflow-wrap: anywhere; }
.business-data-metric strong > small { margin-left: 6px; color: var(--muted); font-size: 12px; letter-spacing: 0; font-weight: 400; }
.business-data-metric > small { font-size: 11px; color: var(--muted); line-height: 1.6; padding-right: 10px; }
.business-data-metric > .icon { position: absolute; width: 14px; height: 14px; right: 13px; bottom: 19px; color: var(--accent); }
.business-data-metrics > .hint { grid-column: 1/-1; }
.business-data-groups, .business-data-records, .business-data-history { min-width: 0; }
.business-data-records { padding: 0; overflow: hidden; }
.business-record-heading, .business-record-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding: 16px 20px; }
.business-record-heading h3 { margin: 0; font-size: 15px; }
.business-record-heading .badge { background: var(--surface-soft); border: 0; font-weight: 400; }
.business-record-footer { border-top: 1px solid var(--border); }
.business-record-footer .button { min-height: 36px; padding: 6px 12px; }
.business-data-center .table-wrap { width: 100%; max-width: 100%; min-width: 0; overflow-x: auto; margin-top: 0; }
.business-data-base table { display: table; border-collapse: collapse; width: 100%; font-size: 13px; table-layout: fixed; }
.business-data-base thead { display: table-header-group; }.business-data-base tbody { display: table-row-group; }
.business-data-base tr { display: table-row; padding: 0; }
.business-data-base th, .business-data-base td { display: table-cell; text-align: left; padding: 14px 18px; border-top: 1px solid var(--border); white-space: normal; vertical-align: middle; overflow-wrap: anywhere; }
.business-data-base td::before { display: none; }
.business-data-base th { font-size: 11px; font-weight: 500; color: var(--muted); background: var(--surface-soft); }
.business-data-base tbody tr:hover { background: var(--surface-soft); }
.business-data-records th:first-child { width: 18%; }.business-data-records th:nth-child(2) { width: 19%; }.business-data-records th:nth-child(4) { width: 11%; }.business-data-records th:last-child { width: 105px; }
.business-data-records td:first-child { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.business-data-records td > strong { display: block; font-size: 13px; font-weight: 550; }
.business-data-records td .button { min-height: 34px; padding: 5px 8px; font-size: 12px; white-space: nowrap; }
.business-data-records .business-person-link { display: block; color: var(--accent); border: 0; padding: 2px 0; background: transparent; box-shadow: none; font-size: 11px; font-weight: 400; white-space: normal; text-align: left; }
.business-record-content { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; line-height: 1.7; }
.business-record-kind { display: inline-block; border-radius: 5px; padding: 3px 7px; font-size: 11px; color: var(--muted); background: var(--surface-soft); white-space: nowrap; }
.business-record-kind[data-kind=gift], .business-record-kind[data-kind=guard], .business-record-kind[data-kind=superchat] { color: var(--gold); background: var(--gold-fill); }
.business-record-kind[data-kind=pk_round] { color: var(--purple); background: var(--purple-fill); }
.business-record-kind[data-kind=danmaku] { color: var(--accent); background: var(--accent-soft); }
.business-data-groups { padding: 18px 20px; }
.business-data-groups > .console-field { max-width: 200px; margin: 14px 0; }
.business-data-groups > .hint { margin-top: 10px; }
.business-data-groups table { min-width: 600px; }.business-data-groups .console-actions { margin-top: 14px; }
.business-data-provenance, .business-data-center > .receipt-maintenance { padding: 16px 20px; font-size: 12px; }
.business-data-provenance > summary, .business-data-center > .receipt-maintenance > summary { color: var(--muted); font-weight: 500; }
.business-data-provenance > p { margin: 12px 0; }
.business-data-provenance > .button { margin-top: 12px; }
.business-data-center > .receipt-maintenance { margin-top: 0; }
/* 直播复盘: this month on top, then one session at a time. */
.live-recaps { display: grid; gap: 20px; min-width: 0; }
.recap-month > .hint { margin: 2px 0 12px; }
.recap-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.recap-heading h3, .recap-title h3 { margin: 0; font-size: 15px; }
.recap-session > .hint { margin: 6px 0 14px; }
.recap-session .console-error:empty { display: none; }
.recap-current { display: grid; gap: 14px; min-width: 0; margin-top: 16px; }
.recap-current > details > summary, .recap-compare > summary { cursor: pointer; }
.recap-compare .table-wrap { margin-top: 12px; }
.business-data-empty { display: flex; align-items: center; flex-direction: column; text-align: center; gap: 10px; padding: 36px 16px; }
.business-data-empty > .icon { width: 36px; height: 36px; padding: 6px; background: var(--accent-soft); border-radius: 9px; color: var(--accent); }
.business-data-empty > strong { font-size: 15px; color: var(--text); }.business-data-empty > .button { margin-top: 6px; }
.business-data-history { padding: 20px; }
.business-data-history .data-shortcuts { gap: 4px; padding-bottom: 14px; border-bottom: 1px solid var(--border); }
.business-data-history .data-shortcuts .button { border-color: transparent; background: var(--surface-soft); box-shadow: none; }
.business-data-history .receipt-filters { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 14px; }
.business-data-history .receipt-filters > .console-field { min-width: 0; }
.business-data-history .receipt-filters > .console-field:first-child { grid-column: span 2; min-width: 0; }
.business-data-history .receipt-filters > .receipt-kinds, .business-data-history .receipt-filters > .data-advanced-filters { grid-column: 1/-1; }
.business-data-history .receipt-filters > .button { align-self: end; }
.business-data-history .receipt-summary { background: transparent; padding: 0; gap: 12px; margin: 18px 0 10px; }
.business-data-history .receipt-summary article { border: 1px solid var(--border); border-radius: 10px; padding: 16px; background: var(--surface-soft); }
.business-data-history .receipt-summary article > span { font-size: 12px; }
.business-data-history .receipt-toolbar { background: var(--surface-soft); border-radius: 10px 10px 0 0; padding: 12px; gap: 6px; }
.business-data-history .receipt-toolbar .button { background: var(--surface); }
.business-data-history .receipt-table-wrap { border-radius: 0 0 10px 10px; }
.business-data-history .receipt-table-wrap th, .business-data-history .receipt-table-wrap td { padding: 14px; }
.business-data-history .receipt-coverage { margin-top: 18px; padding: 14px; border-radius: 8px; background: var(--surface-soft); }
@media (max-width: 1100px) {
  .business-filter-fields { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .business-filter-fields > .button { grid-column: 1/-1; justify-self: end; min-width: 120px; }
  .business-data-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .business-data-history .receipt-filters { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 640px) {
  .business-data-center, .business-category-panel, .business-data-base { gap: 16px; }
  .business-data-tabs { padding: 6px 10px; gap: 0; }.business-tab-group { flex-basis: 100%; gap: 3px; }
  .business-tab-label { margin: 0 6px 0 0; font-size: 10px; }.business-tab-group:first-child > .business-tab-label { display: none; }
  .business-data-tabs .button, .business-tab-group:first-child .button { padding: 7px 10px; min-height: 40px; font-size: 12px; }
  .business-data-heading { gap: 12px; }.business-data-heading h2 { font-size: 18px; }
  .business-data-heading .console-actions { width: 100%; }.business-data-heading .button { flex: 1; min-height: 42px; padding: 6px 8px; font-size: 12px; }
  .business-data-filters, .business-data-history { padding: 14px; }
  .business-filter-top { gap: 8px; }.business-date-shortcuts { order: 3; width: 100%; flex-wrap: nowrap; }
  .business-date-shortcuts .button { flex: 1; min-height: 40px; padding: 5px; font-size: 12px; }
  .business-filter-fields { gap: 12px 8px; }.business-filter-fields .console-field { font-size: 12px; }
  .business-filter-fields input, .business-filter-fields select { font-size: 13px; padding-left: 8px; padding-right: 8px; }
  .business-filter-fields > .button { justify-self: stretch; }
  .business-custom-filters .business-filter-fields { margin-top: 10px; }
  .business-filter-top > .business-filter-reset { min-height: 40px; }
  .business-data-metrics { gap: 8px; }.business-data-metric { padding: 14px 12px; gap: 9px; border-radius: 10px; }
  .business-data-metric > strong { font-size: 24px; }.business-metric-label { font-size: 12px; gap: 6px; }
  .business-metric-label .icon { width: 14px; height: 14px; }.business-data-metric > small { font-size: 10px; padding-right: 0; }
  .business-data-metric > .icon { display: none; }
  .business-record-heading, .business-record-footer { padding: 14px; }
  .business-data-records table, .business-data-records tbody { display: block; }
  .business-data-records thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .business-data-records tbody tr { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 8px 12px; padding: 16px 14px; border-top: 1px solid var(--border); }
  .business-data-records td { display: block; border: 0; padding: 0; min-width: 0; text-align: left; }
  .business-data-records td:first-child { grid-column: 1; grid-row: 1; align-self: center; font-size: 11px; }
  .business-data-records td:nth-child(2) { grid-column: 1; grid-row: 2; }
  .business-data-records td:nth-child(3) { grid-column: 1/-1; grid-row: 3; }
  .business-data-records td:nth-child(4) { grid-column: 2; grid-row: 1; text-align: right; }
  .business-data-records td:nth-child(5) { grid-column: 2; grid-row: 2; align-self: center; }
  .business-data-records td .button { min-height: 40px; }.business-data-records .business-person-link { min-height: 30px; }
  .business-data-records td[colspan] { grid-column: 1/-1; }.business-record-content { -webkit-line-clamp: 3; font-size: 13px; }
  .business-data-groups, .business-data-provenance, .business-data-center > .receipt-maintenance { padding: 14px; }
  .business-data-history .receipt-summary article { padding: 12px; }.business-data-history .receipt-summary strong { font-size: 23px; }
  .business-data-history .receipt-toolbar .button { min-height: 40px; font-size: 12px; }.business-data-history .data-shortcuts .button { min-height: 40px; padding: 6px 9px; font-size: 12px; }
}
@media (forced-colors: active) {
  .business-data-tabs .button[aria-selected=true], .business-date-shortcuts .button[aria-pressed=true] { color: HighlightText; background: Highlight; border-color: Highlight; }
}
.plugin-review-notice{border-color:color-mix(in srgb,var(--warning) 45%,transparent)}
.plugin-review-list,.plugin-review-versions{display:grid;gap:1rem}
.plugin-submission{display:grid;gap:1rem}
.plugin-review-head{display:flex;align-items:center;justify-content:space-between;gap:.75rem;flex-wrap:wrap}
.plugin-review-head h3{margin:0}
.plugin-review-version{display:grid;gap:.7rem;padding:1rem;border:1px solid var(--border);border-radius:var(--radius,14px);background:var(--surface-subtle,transparent)}
.plugin-review-columns{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.8rem}
.plugin-review-columns>div,.plugin-review-checks{display:grid;gap:.45rem}
.plugin-upload-form{padding-top:.8rem;border-top:1px solid var(--border)}
@media(max-width:760px){.plugin-review-columns{grid-template-columns:1fr}}
.live-transcription-list{max-height:26rem;overflow:auto;padding-left:1.5rem;overflow-wrap:anywhere}
.live-transcription-list li{padding:.65rem .25rem;border-bottom:1px solid var(--border)}
.live-transcription-list time{font-variant-numeric:tabular-nums;font-size:.85rem}
.live-transcription-list p{margin:.35rem 0;white-space:pre-wrap;line-height:1.65}
.live-transcription{margin-top:18px}
.live-transcription .console-field:has(input[type=checkbox]){display:flex;align-items:center;gap:10px}
.live-transcription input[type=checkbox]{width:17px;margin:0}

/* Console shell and navigation: the sidebar and the glass top bar sit on the
   black canvas; the work happens on faint white-glass sheets. */
.app-shell { display: grid; grid-template-columns: 232px minmax(0, 1fr); min-height: 100dvh; }
.sidebar { position: relative; z-index: 40; background: var(--sidebar-fill); }
.sidebar::after { content: ''; position: absolute; inset: 18px 0 18px auto; width: 1px; background: linear-gradient(transparent, var(--border) 12%, var(--border) 88%, transparent); pointer-events: none; }
.sidebar-content { position: sticky; top: 0; display: flex; flex-direction: column; height: 100dvh; padding: 20px 14px 16px; }
.brand-row, .brand { display: flex; align-items: center; }
.brand-row { justify-content: space-between; gap: 12px; }
.brand { gap: 11px; padding: 4px 10px; margin: 0 -2px; border-radius: 12px; font-size: 18px; font-weight: 680; letter-spacing: -.6px; transition: background .2s; }
.brand:hover { background: rgb(255 255 255 / .05); }
.brand img { width: 34px; height: 34px; flex-shrink: 0; border-radius: 10px; box-shadow: 0 0 0 1px rgb(255 255 255 / .12), 0 6px 22px rgb(194 48 111 / .45); transition: transform .5s var(--ease-spring); }
.brand:hover img { transform: rotate(-6deg) scale(1.06); }
.brand span { display: flex; flex-direction: column; line-height: 1.15; }
.brand small { display: block; margin-top: 3px; color: var(--tertiary); font-size: 11px; font-weight: 450; letter-spacing: .2px; }
#sidebar-nav { flex: 1; min-height: 0; overflow-y: auto; margin-top: 26px; padding-bottom: 12px; scrollbar-width: thin; scrollbar-color: var(--border-strong) transparent; }
.nav-group + .nav-group { margin-top: 22px; }
.nav-caption { margin: 0 12px 6px; color: var(--quiet); font-size: 11px; font-weight: 500; letter-spacing: .4px; }
.sidebar nav a { display: flex; align-items: center; gap: 11px; min-height: 36px; margin: 2px 0; padding: 7px 12px; border: 1px solid transparent; border-radius: var(--radius-md); color: var(--muted); font-size: 13px; transition: background .2s, color .2s, border-color .2s, box-shadow .25s; }
.sidebar nav a .icon { width: 18px; height: 18px; color: var(--icon-color); }
.sidebar nav a:hover { color: var(--text); background: rgb(255 255 255 / .05); }
.sidebar nav a[aria-current=page] { color: var(--text); background: var(--nav-selection); border-color: rgb(255 255 255 / .1); box-shadow: inset 0 1px 0 rgb(255 255 255 / .04); font-weight: 600; }
.sidebar-assistance { padding: 12px 4px 0; border-top: 1px solid var(--border); }
.sidebar-assistance a { display: flex; align-items: center; gap: 10px; min-height: 38px; padding: 7px 10px; border-radius: var(--radius-md); color: var(--muted); font-size: 12px; transition: background .2s, color .2s; }
.sidebar-assistance a:hover, .sidebar-assistance a[aria-current=page] { color: var(--text); background: rgb(255 255 255 / .05); }
.sidebar-assistance .icon { width: 16px; height: 16px; }
.menu-toggle, .mobile-shortcuts { display: none; }
.workspace { display: flex; flex-direction: column; min-width: 0; min-height: 100dvh; }
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 60px; padding: 10px 40px; border-bottom: 1px solid var(--hairline); background: var(--glass-chrome); -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%); }
.breadcrumb, .top-actions, .identity { display: flex; align-items: center; }
.breadcrumb { gap: 10px; min-width: 0; color: var(--tertiary); font-size: 12px; }
.breadcrumb strong { color: var(--text); font-weight: 600; white-space: nowrap; }
.breadcrumb > span { white-space: nowrap; }
.breadcrumb > span[aria-hidden] { color: var(--border-strong); }
.top-actions { gap: 14px; }
.identity { gap: 10px; padding: 4px 12px 4px 4px; border: 1px solid var(--border); border-radius: var(--radius-pill); background: var(--control); box-shadow: var(--shadow-xs); }
#identity-label { display: block; max-width: 130px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; font-weight: 600; line-height: 1.35; }
#identity-role { display: block; color: var(--tertiary); font-size: 10px; line-height: 1.35; }
#identity-avatar { width: 30px; height: 30px; border: 0; border-radius: 50%; background: linear-gradient(140deg, #ff9cc9, #ef5794 55%, #c2306f); color: #fff; font-size: 12px; font-weight: 650; box-shadow: inset 0 1px 0 rgb(255 255 255 / .35); }
#admin-signout { width: 34px; height: 34px; color: var(--tertiary); }
#admin-signout .icon { width: 17px; height: 17px; }
.console-search-trigger { display: flex; align-items: center; gap: 9px; min-height: 36px; min-width: 220px; padding: 6px 8px 6px 12px; border: 1px solid var(--border); border-radius: var(--radius-pill); background: var(--control); color: var(--tertiary); font-size: 12px; box-shadow: var(--shadow-xs); transition: border-color .2s, box-shadow .25s, color .2s; }
.console-search-trigger > span { flex: 1; text-align: left; }
.console-search-trigger .icon { width: 15px; height: 15px; }
.console-search-trigger kbd { margin-left: 16px; padding: 1px 7px; border: 1px solid var(--border); border-radius: 6px; background: var(--surface-soft); color: var(--tertiary); font-family: inherit; font-size: 10px; line-height: 1.7; }
.console-search-trigger:hover { border-color: var(--border-hover); color: var(--text); box-shadow: var(--shadow-sm); }
.console-search-dialog { width: min(560px, calc(100vw - 32px)); }
.console-search-dialog .dialog-body { display: flex; flex-direction: column; gap: 18px; }
.console-search-dialog .dialog-heading { margin-bottom: 0; }
.console-search-results { display: grid; gap: 3px; max-height: min(440px, 50dvh); overflow-y: auto; }
.console-search-results a { display: flex; align-items: center; gap: 12px; min-height: 46px; padding: 10px 12px; border-radius: var(--radius-md); font-size: 13px; transition: background .15s; }
.console-search-results a:hover, .console-search-results a:focus-visible { color: var(--text); background: var(--surface-soft); }
.console-search-results a > span { flex: 1; }
.console-search-results a > .icon:last-child { width: 14px; color: var(--muted); }
.console-search-place { color: var(--tertiary); font-size: 11px; white-space: nowrap; }

/* Shared page proportions and controls. */
.workspace main { flex: 1; width: 100%; max-width: 1240px; min-width: 0; margin: 0 auto; padding: 38px 48px 56px; }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.page-heading h1 { font-size: 30px; font-weight: 720; letter-spacing: -1px; line-height: 1.3; background: var(--heading-fill); -webkit-background-clip: text; background-clip: text; color: transparent; }
.page-heading h1:focus { outline: none; }
.page-description { max-width: 680px; margin-top: 8px; color: var(--muted); font-size: 14px; line-height: 1.75; }
.heading-actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 10px; flex-shrink: 0; }
.heading-actions:empty { display: none; }
.heading-actions .button { min-height: 36px; padding: 6px 13px; font-size: 12px; }
.page-body { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.page-related-nav { display: flex; flex-wrap: wrap; gap: 4px 6px; margin: -10px 0 26px; padding-bottom: 0; border-bottom: 1px solid var(--border); }
.page-related-nav a { position: relative; display: inline-flex; align-items: center; gap: 7px; min-height: 44px; padding: 8px 12px; color: var(--muted); font-size: 13px; border-radius: var(--radius-md) var(--radius-md) 0 0; transition: color .2s, background .2s; }
.page-related-nav a::after { content: ''; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 2px; border-radius: 2px 2px 0 0; background: var(--ink); transform: scaleX(0); transition: transform .35s var(--ease-out); }
.page-related-nav a .icon { width: 15px; height: 15px; }
.page-related-nav a[aria-current=page] { color: var(--text); font-weight: 620; }
.page-related-nav a[aria-current=page]::after { transform: scaleX(1); }
.page-related-nav a:hover { color: var(--text); background: rgb(255 255 255 / .04); }
.page-section-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; min-width: 0; padding: 4px; margin-bottom: 22px; border: 1px solid var(--border); border-radius: 22px; background: rgb(255 255 255 / .03); box-shadow: var(--shadow-xs); }
.section-link { min-height: 34px; padding: 6px 14px; border: 0; border-radius: var(--radius-pill); color: var(--muted); background: transparent; font-size: 12px; text-align: left; line-height: 1.6; transition: background .2s, color .2s; }
.section-link:hover, .section-link:focus-visible { background: rgb(255 255 255 / .07); color: var(--text); }
[data-page-section] { scroll-margin-top: 88px; }
.page[data-view=collaboration] .console-panel > div { margin-top: 18px; }
.automation-editor { display: grid; gap: 24px; }
.automation-editor > .console-form { margin-top: 0; }
.automation-editor > .disclosure { margin-top: 0; }
.automation-editor .panel { padding: 16px; margin-top: 12px; }
/* The save result and the flow being edited sit next to the form's buttons. */
.automation-saved:empty { display: none; }
.automation-saved > p { margin: 0 0 10px; }
.automation-editor .panel > .hint, .automation-editor .panel > .console-error { margin-top: 8px; }
.automation-editor .panel > .hint:empty, .automation-editor .panel > .console-error:empty { display: none; }
.workbench-tasks .workbench-result-row { margin-top: 12px; }
.workbench-tasks > .button { margin-right: 8px; }
.page[data-view=support] .console-panel { display: grid; gap: 20px; }
.page[data-view=support] .console-panel > .button { justify-self: start; margin: 0; }
#content { position: relative; }
#content > .page-pending { position: absolute; inset: 0 0 auto; max-height: 0; overflow: hidden; visibility: hidden; }
.page-pending *, .page-pending *::before, .page-pending *::after { animation: none !important; transition: none !important; }
.page-body > .console-error:empty { display: none; }
.page-body > details:not(.disclosure), .overview-primary > details { padding: 16px 0; border: 0; border-top: 1px solid var(--border); border-radius: 0; background: transparent; }
.page-body > details:not(.disclosure) > summary, .overview-primary > details > summary { color: var(--muted); font-size: 12px; font-weight: 500; }
.page-body > details[open]:not(.disclosure) > summary, .overview-primary > details[open] > summary { margin-bottom: 16px; }
.overview-updated { display: inline-flex; align-items: center; color: var(--tertiary); font-size: 11px; font-variant-numeric: tabular-nums; }

/* The overview starts with actions and the current broadcast. */
.page[data-view=overview] .page-heading { margin-bottom: 22px; }
.page[data-view=overview] .page-body { gap: 24px; }
.overview-date { display: block; margin-top: 2px; color: var(--quiet); font-size: 12px; font-variant-numeric: tabular-nums; }
.overview-shortcuts { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.overview-shortcuts .button { min-height: 40px; padding: 8px 16px; border: 1px solid var(--border-strong); border-radius: var(--radius-pill); background: var(--control); font-size: 13px; font-weight: 600; box-shadow: var(--shadow-xs); }
.overview-shortcuts .button.primary { padding-inline: 18px 20px; background: var(--primary-fill); border-color: transparent; color: var(--on-accent); box-shadow: inset 0 1px 0 rgb(255 255 255 / .35), 0 8px 20px -12px rgb(239 87 148 / .55); }
.overview-shortcuts .button:hover { background: var(--control-hover); border-color: var(--border-hover); box-shadow: var(--shadow-md); }
.overview-shortcuts .button.primary:hover { background: var(--primary-fill); border-color: transparent; box-shadow: inset 0 1px 0 rgb(255 255 255 / .45), var(--shadow-brand); }
.overview-shortcuts .icon { width: 16px; height: 16px; }
.overview-stage, .overview-columns { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 20px; align-items: stretch; }
.overview-analysis { min-width: 0; }
.overview-live, .overview-health { min-width: 0; border: 1px solid var(--border); border-radius: var(--radius-lg); background: linear-gradient(180deg, rgb(130 160 255 / .045), transparent 60%), var(--surface); }
.overview-live { display: flex; flex-direction: column; padding: 24px 24px 0; overflow: hidden; color: #f4f4f6; background: radial-gradient(120% 80% at 100% 0%, rgb(239 87 148 / .16) 0%, transparent 60%), linear-gradient(160deg, #10141f, #080b13 70%); border-color: rgb(140 170 255 / .14); box-shadow: 0 24px 60px -36px rgb(239 87 148 / .3), var(--shadow-md); }
.overview-live-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 14px; }
.overview-room { display: inline-flex; align-items: center; gap: 8px; color: #b8b8c4; font-size: 11px; font-variant-numeric: tabular-nums; }
.overview-room .icon { width: 15px; height: 15px; color: var(--brand-hi); }
.overview-live-status { gap: 7px; padding: 3px 10px; border: 1px solid rgb(255 255 255 / .1); border-radius: var(--radius-pill); font-size: 11px; font-weight: 600; }
.overview-live-status::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.overview-live-status { color: #c4c4d0; background: rgb(255 255 255 / .06); white-space: nowrap; }
.overview-live-status[data-live=true] { color: #fff; background: linear-gradient(135deg, var(--pink), var(--pink-hot)); border-color: transparent; box-shadow: 0 6px 18px -6px rgb(239 87 148 / .7); }
.overview-live-status[data-live=true]::before { background: #fff; animation: live-breathe 1.8s ease-out infinite; }
.overview-live > h2 { color: #fafafa; font-size: 20px; line-height: 1.5; letter-spacing: -.4px; font-weight: 620; overflow-wrap: anywhere; }
.overview-session { padding: 26px 0 16px; }
.overview-session .workbench-metric { display: flex; flex-direction: column; gap: 0; padding: 0; border: 0; border-radius: 0; background: transparent; }
.overview-session .workbench-metric > span { color: #a9a9b6; font-size: 11px; }
.overview-session .workbench-metric > span .icon { display: none; }
.overview-session .workbench-metric > strong { margin: 6px 0 8px; font-size: 12px; font-weight: 450; letter-spacing: 0; color: #c9c9d3; line-height: 1.6; }
.overview-session .metric-amount { font-size: 40px; font-weight: 300; letter-spacing: -1.6px; color: #fff; font-variant-numeric: tabular-nums; }
.overview-session .workbench-metric > strong:not(:has(.metric-amount)) { font-size: 32px; letter-spacing: -1px; color: #fff; }
.overview-session .workbench-metric > small { color: #8f8f9c; font-size: 11px; }
.overview-session .workbench-metric[data-tone=warning] > strong { color: #f3d08f; }
.overview-latest-message { flex: 1; padding-top: 16px; border-top: 1px solid rgb(255 255 255 / .08); }
.overview-latest-message > span { display: inline-flex; align-items: center; gap: 6px; color: #8f8f9c; font-size: 11px; }
.overview-latest-message > span::before { content: ''; width: 14px; height: 10px; border-radius: 3px 3px 3px 0; background: var(--brand-hi); opacity: .85; }
.overview-latest-message > p { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin: 8px 0; color: #ececf2; font-size: 14px; line-height: 1.75; overflow-wrap: anywhere; }
.overview-latest-message p > span { display: inline-block; animation: metric-arrive .45s var(--ease-out) both; }
.overview-session-activity { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 14px 0 22px; color: #a9a9b6; font-size: 12px; }
.overview-session-activity strong { color: #fff; font-size: 22px; font-weight: 450; font-variant-numeric: tabular-nums; }
.overview-hero { display: flex; align-items: flex-start; gap: 11px; margin: 0 -24px; padding: 16px 24px 18px; border-top: 1px solid rgb(255 255 255 / .08); background: rgb(255 255 255 / .03); }
.overview-hero > .icon { flex: 0 0 auto; width: 22px; height: 22px; padding: 4px; margin-top: 1px; border-radius: 50%; background: var(--warning-fill); color: var(--warning); }
.overview-hero.is-ready > .icon { background: var(--success-fill); color: var(--success); }
.overview-hero-copy { min-width: 0; }
.overview-hero h3 { color: #f4f4f6; font-size: 13px; font-weight: 600; line-height: 1.6; }
.overview-hero p { margin-top: 3px; color: #a1a1ad; font-size: 12px; line-height: 1.7; }
.overview-health { align-self: start; padding: 20px 22px; box-shadow: var(--shadow-xs); }
.overview-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.overview-section-heading h2 { font-size: 15px; font-weight: 650; letter-spacing: -.2px; }
.overview-section-heading .button { min-height: 28px; padding: 3px 0; border: 0; background: transparent; color: var(--tertiary); box-shadow: none; font-size: 12px; font-weight: 500; }
.overview-section-heading .button:hover { color: var(--accent); background: transparent; box-shadow: none; }
.overview-section-heading .button .icon { width: 13px; height: 13px; }
.overview-health .overview-section-heading { margin-bottom: 10px; }
.overview-health-row { display: grid; grid-template-columns: minmax(0, 1fr) auto 12px; align-items: center; gap: 10px; min-height: 46px; margin: 0 -10px; padding: 8px 10px; border-radius: var(--radius-md); color: var(--muted); font-size: 13px; transition: background .2s, color .2s; }
.overview-health-label { display: flex; align-items: center; gap: 11px; }
.overview-health-label .icon { width: 28px; height: 28px; padding: 6px; border-radius: 8px; color: var(--icon-color); background: color-mix(in srgb, var(--icon-color) 14%, transparent); }
.overview-health-row .badge { max-width: 180px; white-space: normal; overflow-wrap: anywhere; border: 0; background: transparent; padding: 0; font-size: 12px; font-weight: 550; text-align: right; color: var(--text); }
.overview-health-row .badge.green { color: var(--success); }
.overview-health-row .badge.amber { color: var(--warning); }
.overview-health-row .badge.red { color: var(--danger); }
.overview-health-row > .icon { width: 12px; height: 12px; transform: rotate(-90deg); color: var(--quiet); transition: translate .3s var(--ease-out); }
.overview-health-row:hover { color: var(--text); background: var(--surface-soft); }
.overview-health-row:hover > .icon { translate: 0 2px; color: var(--text); }
.overview-health > .hint { margin-top: 12px; padding-top: 14px; border-top: 1px solid var(--border); font-size: 12px; }
.overview-preparation { margin-top: 10px; padding: 0; color: var(--muted); font-size: 12px; }
.overview-preparation > summary { min-height: 30px; }
.overview-preparation[open] > summary { margin-bottom: 10px; }
.overview-preparation .workspace-readiness { padding: 0; }
/* 开播准备: the verdict, the next step and the four statuses share one block at the top. */
.overview-readiness { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 0 28px; padding: 22px 24px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--sheet); box-shadow: var(--shadow-xs); }
.overview-decision { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.overview-decision > .overview-section-heading { justify-content: flex-start; gap: 12px; margin-bottom: 0; }
.overview-readiness .overview-hero { margin: 0; padding: 0; border: 0; background: transparent; }
.overview-readiness .overview-hero > .icon { width: 28px; height: 28px; padding: 6px; }
.overview-readiness .overview-hero h3 { color: var(--text); font-size: 18px; font-weight: 650; letter-spacing: -.2px; line-height: 1.5; }
.overview-readiness .overview-hero p { margin-top: 4px; color: var(--muted); font-size: 13px; }
.overview-steps-note { margin-bottom: -6px; color: var(--muted); font-size: 12px; }
.overview-steps-note a { color: var(--accent); font-weight: 550; }
.overview-steps-note a:hover { text-decoration: underline; }
.overview-readiness .setup-steps { margin-top: 0; gap: 10px; }
.overview-readiness .setup-step { align-items: center; padding: 12px 14px; }
.overview-readiness .setup-step strong { flex: 1; min-width: 0; font-size: 13px; font-weight: 600; }
/* Beside the status column the steps get only 390–630px at 1001–1340px: each
   step keeps its title on one line, three columns when they fit (#258). */
@media (min-width: 1001px) { .overview-readiness .setup-steps { grid-template-columns: repeat(auto-fill, minmax(max(200px, calc((100% - 20px) / 3)), 1fr)); } }
.setup-step:not(.is-complete) .step-link { color: var(--tertiary); font-weight: 500; }
.setup-step.is-next { border-color: var(--brand-soft); }
.setup-step.is-next .step-link { color: var(--accent); font-weight: 600; }
.overview-todo { display: grid; gap: 8px; }
.overview-todo .plugin-readiness-row { align-items: center; }
.overview-readiness > .overview-health { align-self: stretch; padding: 0 0 0 28px; border: 0; border-left: 1px solid var(--border); border-radius: 0; background: transparent; box-shadow: none; }
.overview-columns { grid-template-columns: minmax(0, 1fr); }
.overview-plugin-more { padding: 12px 0 10px; font-size: 12px; }

/* Daily metrics share a quiet, consistent baseline. */
.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.metric-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.metric-card, .dashboard-metrics > .workbench-metric { display: flex; flex-direction: column; gap: 0; min-width: 0; padding: 20px; border: 1px solid var(--border); border-radius: var(--radius); background: linear-gradient(180deg, rgb(130 160 255 / .04), transparent 70%), var(--surface); box-shadow: var(--shadow-xs); }
.metric-label, .dashboard-metrics > .workbench-metric > span { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--muted); font-size: 12px; font-weight: 500; }
.metric-label .icon, .dashboard-metrics > .workbench-metric > span > .icon { width: 15px; height: 15px; color: var(--icon-color); }
.dashboard-metrics > .workbench-metric > span > .icon { order: 1; }
.metric-value, .dashboard-metrics > .workbench-metric > strong { display: block; margin: 10px 0 6px; color: var(--text); font-size: 30px; font-weight: 500; letter-spacing: -1px; line-height: 1.4; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.metric-card .hint, .dashboard-metrics > .workbench-metric > small { color: var(--tertiary); font-size: 11px; line-height: 1.7; }
.dashboard-metrics > .workbench-metric > strong { font-size: 12px; font-weight: 500; letter-spacing: 0; line-height: 1.6; color: var(--muted); }
.dashboard-metrics .metric-amount { font-size: 30px; font-weight: 550; letter-spacing: -1.1px; color: var(--text); font-variant-numeric: tabular-nums; }
.dashboard-metrics .metric-value { font-size: 30px; font-weight: 550; letter-spacing: -1.1px; line-height: 1.6; }
.dashboard-metrics > .workbench-metric > strong:not(:has(.metric-amount)) { font-size: 24px; line-height: 48px; color: var(--text); }
.dashboard-metrics > .workbench-metric[data-tone=warning] > strong { color: var(--warning); }
.overview-today { padding: 20px 24px 22px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--sheet); box-shadow: var(--shadow-xs); }
.overview-today .overview-section-heading { margin-bottom: 4px; }
.overview-today .dashboard-metrics { gap: 0; padding: 14px 0 0; border-bottom: 0; }
.overview-today .dashboard-metrics > * { padding: 2px 22px; border: 0; border-right: 1px solid var(--border); border-radius: 0; background: transparent; box-shadow: none; }
.overview-today .dashboard-metrics > :first-child { padding-left: 0; }
.overview-today .dashboard-metrics > :last-child { padding-right: 0; border-right: 0; }
.overview-today .dashboard-metrics .metric-amount, .overview-today .dashboard-metrics .metric-value { font-size: 34px; letter-spacing: -1.2px; }
.overview-today .dashboard-metrics .metric-label .icon, .overview-today .dashboard-metrics > .workbench-metric > span > .icon { display: block; order: -1; width: 16px; height: 16px; }
.overview-today .dashboard-metrics .metric-label, .overview-today .dashboard-metrics > .workbench-metric > span { justify-content: flex-start; }
.overview-updated[data-state=connected]::before { display: inline-block; width: 6px; height: 6px; margin-right: 7px; border-radius: 50%; background: var(--success); content: ''; box-shadow: 0 0 0 3px rgb(90 209 154 / .18); }
.overview-columns, .overview-primary { min-width: 0; }
.overview-plugins { padding: 20px 22px 8px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--sheet); box-shadow: var(--shadow-xs); }
/* Every feature at a glance; the ones that need the streamer carry the reason. */
.overview-feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; padding-bottom: 14px; }
.overview-feature { display: grid; grid-template-columns: auto minmax(0, 1fr) 12px; align-items: center; gap: 12px; min-width: 0; min-height: 62px; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface); color: var(--text); transition: border-color .2s, background .2s; }
.overview-feature:hover { border-color: var(--border-strong); background: var(--surface-soft); }
.overview-feature[data-tone=warning] { border-color: var(--warning-edge); }
.overview-feature .plugin-symbol { width: 34px; height: 34px; flex-shrink: 0; border-radius: 10px; }
.overview-feature .plugin-symbol .icon { width: 18px; height: 18px; }
.overview-feature-copy { display: grid; gap: 3px; min-width: 0; }
.overview-feature-copy strong { font-size: 13px; font-weight: 600; overflow-wrap: anywhere; }
.overview-feature-copy .badge { justify-self: start; gap: 7px; padding: 0; border: 0; background: transparent; font-size: 12px; font-weight: 500; white-space: normal; }
.overview-feature-copy .badge::before { content: ''; flex-shrink: 0; width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 14%, transparent); }
.overview-feature > .icon:last-child { width: 12px; height: 12px; transform: rotate(-90deg); color: var(--quiet); }
.overview-plugin-list > .empty-state { margin: 0 0 14px; padding: 28px 20px; }

/* The curve uses real calendar buckets. Missing days remain visible gaps. */
.activity-chart { min-width: 0; padding: 22px 24px 18px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: linear-gradient(180deg, rgb(130 160 255 / .045), transparent 60%), var(--surface); box-shadow: var(--shadow-xs); }
.overview-analysis > .activity-chart { height: 100%; margin: 0; }
.activity-chart-heading, .activity-chart-title { display: flex; align-items: center; gap: 10px; }
.activity-chart-heading { justify-content: space-between; flex-wrap: wrap; }
.activity-chart-title h2 { font-size: 15px; font-weight: 650; letter-spacing: -.2px; }
.chart-demo { padding: 1px 8px; border: 1px solid var(--brand-soft); border-radius: var(--radius-pill); background: var(--brand-pale); color: var(--brand-deep); font-size: 10px; font-weight: 550; }
.chart-ranges { display: flex; gap: 2px; padding: 3px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface-sunken); }
.chart-ranges button { min-height: 28px; padding: 3px 11px; border: 0; border-radius: 7px; background: transparent; color: var(--muted); font: inherit; font-size: 12px; cursor: pointer; transition: color .2s, background .2s, box-shadow .25s; }
.chart-ranges button[aria-pressed=true] { color: var(--text); background: var(--select-fill); box-shadow: inset 0 0 0 1px var(--select-edge); font-weight: 600; }
.chart-ranges button:hover { color: var(--text); }
.chart-summary { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin: 16px 0 22px; }
.chart-summary > div:first-child { min-width: 0; }
.chart-total { color: var(--text); font-size: 40px; font-weight: 550; letter-spacing: -1.6px; line-height: 1.2; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.chart-total .metric-amount { max-width: 100%; }
.chart-unit { margin-left: 7px; color: var(--tertiary); font-size: 12px; }
.chart-summary > div:first-child > span:last-child { display: block; margin-top: 6px; color: var(--tertiary); font-size: 12px; }
.chart-peak { display: grid; gap: 2px; padding: 10px 14px; border-radius: var(--radius-md); background: var(--surface-soft); text-align: right; white-space: nowrap; }
.chart-peak > span, .chart-peak > small { color: var(--tertiary); font-size: 11px; }
.chart-peak > strong { font-size: 15px; font-weight: 650; font-variant-numeric: tabular-nums; }
.chart-graph { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 12px; height: 200px; padding-right: 8px; }
.chart-axis { position: relative; color: var(--quiet); font-size: 10px; font-variant-numeric: tabular-nums; }
.chart-axis span { position: absolute; right: 0; transform: translateY(-50%); white-space: nowrap; }
.chart-plot { position: relative; min-width: 0; isolation: isolate; }
.chart-svg { display: block; width: 100%; height: 100%; overflow: visible; color: var(--cyan); }
.chart-gridline { stroke: var(--border); stroke-width: 1; stroke-dasharray: 2 6; vector-effect: non-scaling-stroke; }
.chart-line { stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.chart-enter .chart-line { stroke-dasharray: 1; animation: chart-draw 1.1s var(--ease-out) both; }
.chart-enter .chart-area { animation: chart-fill 1.1s ease-out both; }
.chart-point { position: absolute; z-index: 1; top: 0; height: 100%; min-width: 0; margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent; color: var(--cyan); cursor: crosshair; -webkit-tap-highlight-color: transparent; }
.chart-point-dot { position: absolute; left: 50%; width: 6px; height: 6px; transform: translate(-50%, -50%); border: 1.5px solid var(--surface); border-radius: 50%; background: currentColor; transition: width .2s var(--ease-spring), height .2s var(--ease-spring), box-shadow .2s; }
.chart-point[data-recorded=false] .chart-point-dot { width: 2px; height: 4px; border: 0; border-radius: 0; background: var(--border-strong); }
.chart-point.is-selected[data-recorded=true] .chart-point-dot { width: 11px; height: 11px; border-width: 2px; box-shadow: 0 0 0 5px var(--data-ring); }
.chart-point:focus-visible { outline: 1px dashed var(--focus); outline-offset: 2px; border-radius: 3px; }
.chart-cursor { position: absolute; z-index: 0; top: 0; height: 93%; border-left: 1px dashed var(--cyan); opacity: .45; pointer-events: none; }
.chart-tooltip { position: absolute; z-index: 3; top: 0; display: grid; gap: 3px; min-width: 140px; padding: 11px 14px; border: 1px solid rgb(255 255 255 / .12); border-radius: 10px; background: rgb(8 12 21 / .92); color: #fff; box-shadow: var(--shadow-lg); -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%); pointer-events: none; }
.chart-tooltip > span { color: #b9b9c4; font-size: 11px; white-space: nowrap; }
.chart-tooltip > strong { font-size: 19px; font-weight: 600; font-variant-numeric: tabular-nums; }
.chart-tooltip > small { color: var(--muted); font-size: 11px; white-space: nowrap; }
.chart-tooltip[hidden], .chart-cursor[hidden], .chart-demo[hidden] { display: none; }
.chart-empty { position: absolute; inset: 25% 0 auto; padding: 14px 8px; text-align: center; background: var(--surface); color: var(--tertiary); font-size: 12px; pointer-events: none; }
.chart-dates { display: flex; justify-content: space-between; margin: 4px 8px 0 48px; color: var(--quiet); font-size: 10px; font-variant-numeric: tabular-nums; }
.chart-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-top: 20px; color: var(--tertiary); font-size: 11px; }
.chart-legend { display: inline-flex; align-items: center; gap: 7px; }
.chart-legend::before { width: 14px; height: 3px; border-radius: 3px; background: var(--cyan); content: ''; }
.chart-note { margin-top: 6px; color: var(--tertiary); font-size: 11px; line-height: 1.6; }
.chart-note[data-tone=warning] { color: var(--warning); }
.activity-chart .data-daily-details { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--border); font-size: 12px; }
.metric-amount { display: inline-block; }
.overview-shortcuts .button { transition: transform .18s, background .18s, box-shadow .25s, border-color .2s; }
.overview-shortcuts .button:hover { transform: translateY(-2px); }
.overview-shortcuts .button:active { transform: translateY(0) scale(.98); }
@keyframes workspace-arrive { from { transform: translateY(8px); } to { transform: translateY(0); } }
@keyframes page-in { from { opacity: .4; transform: translateY(6px); } }
@keyframes metric-arrive { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
@keyframes chart-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes chart-fill { from { opacity: 0; clip-path: inset(0 100% 0 0); } to { opacity: 1; clip-path: inset(0); } }
@keyframes live-breathe { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

/* Console-only light, perspective and motion; the data stays on its true scale. */
.heading-actions .effects-toggle { position: relative; gap: 7px; min-height: 36px; padding: 5px 7px 5px 12px; border-radius: var(--radius-pill); transition: border-color .25s, background .25s, box-shadow .25s; }
.effects-toggle[aria-pressed=true] { border-color: var(--brand-soft); background: rgb(239 87 148 / .1); }
.effects-toggle:hover:not(:disabled) { border-color: rgb(239 87 148 / .5); box-shadow: 0 4px 14px -8px var(--brand-glow); }
.effects-toggle-state { width: 12px; color: var(--tertiary); font-size: 10px; transition: color .25s; }
.effects-toggle[aria-pressed=true] .effects-toggle-state { color: var(--brand-deep); }
.effects-toggle-track { position: relative; display: block; flex: 0 0 44px; width: 44px; height: 24px; margin-left: 2px; border-radius: 14px; background: rgb(255 255 255 / .14); box-shadow: inset 0 1px 2px rgb(0 0 0 / .3); transition: background .3s, box-shadow .3s; }
.effects-toggle[aria-pressed=true] .effects-toggle-track { background: rgb(239 87 148 / .32); box-shadow: inset 0 1px 2px rgb(0 0 0 / .25), 0 0 14px rgb(239 87 148 / .3); }
.effects-toggle-thumb { position: absolute; inset: 3px auto auto 3px; display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: #f5f5f5; color: #52525b; box-shadow: 0 1px 4px rgb(0 0 0 / .45); transform: translateX(0) rotate(-90deg); transition: transform .5s cubic-bezier(.22, 1.35, .36, 1), background .25s, color .25s, box-shadow .3s; }
.effects-toggle[aria-pressed=true] .effects-toggle-thumb { transform: translateX(20px) rotate(0deg); background: linear-gradient(140deg, #ff9cc9, #ef5794 60%, #c2306f); color: #fff; box-shadow: 0 1px 4px rgb(143 15 67 / .3), 0 0 10px rgb(239 87 148 / .35); }
.effects-toggle-thumb .icon { width: 12px; height: 12px; }
.effects-toggle-halo { position: absolute; inset: -2px; border: 1px solid var(--brand); border-radius: inherit; box-shadow: 0 0 10px rgb(239 87 148 / .3); opacity: 0; pointer-events: none; }
.effects-toggle-particle { position: absolute; top: 50%; width: 4px; height: 4px; border-radius: 1px; background: var(--brand); box-shadow: 0 0 5px rgb(239 87 148 / .6); opacity: 0; pointer-events: none; }
@media (forced-colors: active) {
  .effects-toggle-track { outline: 1px solid ButtonText; }
  .effects-toggle-thumb { background: ButtonText !important; color: ButtonFace !important; }
  .effects-toggle-halo, .effects-toggle-particle { display: none; }
}
.overview-live { position: relative; isolation: isolate; transition: transform .5s var(--ease-out), box-shadow .5s; }
.overview-live > :not(.live-ambience, .live-edge) { position: relative; z-index: 1; }
.live-ambience, .live-edge { display: none; position: absolute; inset: 0; pointer-events: none; border-radius: inherit; }
[data-effects=on] .live-ambience, [data-effects=on] .live-edge { display: block; }
.live-ambience { overflow: hidden; z-index: 0; background-image: radial-gradient(rgb(255 214 231 / .12) .7px, transparent .7px); background-size: 18px 18px; mask-image: linear-gradient(180deg, #000 30%, transparent 85%); }
.live-ambience i { position: absolute; width: 150%; height: 85%; top: -38%; left: -40%; border-radius: 50%; background: radial-gradient(ellipse at center, rgb(239 87 148 / .42), rgb(194 24 91 / .14) 40%, transparent 68%); animation: live-aurora 12s ease-in-out infinite alternate; animation-play-state: paused; }
.live-ambience i:nth-child(2) { top: 30%; left: 10%; width: 130%; height: 95%; background: radial-gradient(ellipse at center, rgb(194 48 111 / .3), rgb(239 87 148 / .08) 38%, transparent 68%); animation-duration: 16s; animation-delay: -5s; }
.live-ambience i:nth-child(3) { top: -14%; left: 50%; width: 210px; height: 210px; border: 1px solid rgb(255 214 231 / .14); background: transparent; box-shadow: 0 0 0 34px rgb(255 214 231 / .035), 0 0 0 68px rgb(255 214 231 / .02); animation: live-orbit 22s linear infinite; animation-play-state: paused; }
.live-ambience i:nth-child(3)::after { content: ''; position: absolute; top: 27px; left: 27px; width: 5px; height: 5px; border-radius: 50%; background: var(--brand-hi); box-shadow: 0 0 14px var(--brand); opacity: .8; }
.live-edge { z-index: 3; padding: 1px; overflow: hidden; mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); mask-composite: exclude; }
.live-edge::before { content: ''; position: absolute; inset: -90%; background: conic-gradient(from 0deg, transparent 0deg 240deg, var(--brand) 290deg, #ffe3ee 318deg, transparent 345deg); animation: live-orbit 7s linear infinite; animation-play-state: paused; }
[data-effects=on][data-effects-visible=true] .overview-live.fx-in-view:has(.overview-live-status[data-live=true]) :is(.live-ambience i, .live-edge)::before,
[data-effects=on][data-effects-visible=true] .overview-live.fx-in-view:has(.overview-live-status[data-live=true]) .live-ambience i { animation-play-state: running; }
[data-effects=on] .overview-live[data-fx-hover=true] { transform: perspective(900px) rotateX(var(--fx-rx, 0deg)) rotateY(var(--fx-ry, 0deg)) translateY(-3px); box-shadow: 0 34px 70px -34px rgb(143 15 67 / .7), var(--shadow-md); }
.overview-live::after { content: ''; position: absolute; z-index: 2; inset: 0; pointer-events: none; border-radius: inherit; background: radial-gradient(260px circle at var(--fx-x, 50%) var(--fx-y, 20%), rgb(255 141 188 / .16), transparent 70%); opacity: 0; transition: opacity .35s; }
[data-effects=on] .overview-live[data-fx-hover=true]::after { opacity: 1; }
.activity-chart, .dashboard-metrics > .workbench-metric, .dashboard-metrics > .metric-card { position: relative; isolation: isolate; }
.activity-chart::before, .dashboard-metrics > .workbench-metric::before, .dashboard-metrics > .metric-card::before { content: ''; position: absolute; z-index: -1; inset: 0; border-radius: inherit; pointer-events: none; background: radial-gradient(300px circle at var(--fx-x, 50%) var(--fx-y, 0%), rgb(255 255 255 / .04), transparent 75%); opacity: 0; transition: opacity .35s; }
[data-effects=on] :is(.activity-chart, .dashboard-metrics > .workbench-metric, .dashboard-metrics > .metric-card)[data-fx-hover=true]::before { opacity: 1; }
[data-effects=on] .activity-chart[data-fx-hover=true] { border-color: var(--border-hover); }
.activity-chart { transition: border-color .25s, box-shadow .3s; }
.overview-shortcuts .button, .chart-ranges button, .chart-view-switch button { position: relative; overflow: hidden; }
[data-effects=on] .overview-shortcuts .button { transition: transform .4s cubic-bezier(.18, .9, .24, 1.3), background .18s, box-shadow .25s, border-color .2s; }
[data-effects=on] .overview-shortcuts .button[data-fx-hover=true] { transform: translate3d(var(--fx-mx, 0px), calc(var(--fx-my, 0px) - 2px), 0); box-shadow: 0 12px 28px -12px rgb(0 0 0 / .6); }
[data-effects=on] .overview-shortcuts .button.primary[data-fx-hover=true] { box-shadow: 0 14px 30px -12px var(--brand-glow); }
.fx-ripple { position: absolute; pointer-events: none; border-radius: 50%; background: var(--ripple, #fff); opacity: 0; transform: translate(-50%, -50%) scale(0); animation: click-ripple .7s cubic-bezier(.16, 1, .3, 1) both; }
.chart-controls { display: flex; align-items: center; gap: 10px; }
.chart-view-switch { display: flex; padding: 3px; gap: 2px; border-radius: var(--radius-md); border: 1px solid var(--border); background: var(--surface-sunken); }
.chart-view-switch button { display: flex; align-items: center; justify-content: center; width: 30px; min-height: 28px; padding: 4px; border: 0; border-radius: 7px; background: transparent; color: var(--tertiary); cursor: pointer; transition: color .2s, background .2s, box-shadow .25s; }
.chart-view-switch button[aria-pressed=true] { background: var(--select-fill); color: var(--text); box-shadow: inset 0 0 0 1px var(--select-edge); }
.chart-view-switch .icon { width: 14px; height: 14px; }
.chart-tracer { stroke: #e2fbff; stroke-width: 3.5; stroke-linecap: round; stroke-dasharray: .08 .92; vector-effect: non-scaling-stroke; opacity: 0; }
[data-effects=on] .chart-enter .chart-tracer { animation: chart-trace 1.4s ease-out both; }
.chart-bar { fill: var(--cyan); opacity: .55; transform-box: fill-box; transform-origin: center bottom; transition: opacity .2s; }
.chart-bar:hover, .chart-bar.is-selected { opacity: 1; }
.chart-enter .chart-bar { animation: chart-bar-grow .7s var(--ease-out) var(--bar-delay, 0ms) both; }
[data-chart-view=bars] .chart-point[data-recorded=true] .chart-point-dot { opacity: 0; }
[data-chart-view=bars] .chart-point.is-selected .chart-point-dot { opacity: 1; }
[data-effects=on] .chart-point.is-selected[data-recorded=true] .chart-point-dot { box-shadow: 0 0 0 5px var(--data-ring); }
[data-effects=on] .chart-cursor { border-color: var(--cyan); opacity: .6; }
[data-effects=on] .chart-tooltip:not([hidden]) { animation: tooltip-arrive .2s var(--ease-out) both; }
/* A page arrives in one short, light step: visible from the first frame and
   settled in about a fifth of a second. Sections, rows and figures never wait
   their turn, so switching pages does not feel like it is still loading. */
[data-effects=on] #content > .page[data-enter=true]:not(.page-pending) { animation: page-in .22s var(--ease-out) backwards; }
/* Hover lift: cards that open something rise toward the pointer. */
@media (hover: hover) and (pointer: fine) {
  [data-effects=on] :is(.plugin-card, .setup-step, .workbench-feature-link, .metric-grid:not(.dashboard-metrics) > .metric-card):hover { translate: 0 -3px; }
  [data-effects=on] .overview-health-row:hover > .overview-health-label .icon { scale: 1.08; }
  .overview-health-label .icon { transition: scale .35s var(--ease-spring); }
}
[data-effects=off] :is(.overview-today, .overview-stage, .overview-columns, .fx-reveal, .metric-motion .metric-amount, .overview-latest-message p > span, .chart-line, .chart-area, .chart-bar, .chart-tracer, .chart-tooltip) { animation: none !important; }
[data-effects=off] .overview-live-status::before { animation: none !important; }
[data-effects=off] .overview-shortcuts .button { transform: none !important; }
@keyframes live-aurora { from { transform: translate(-5%, -5%) rotate(-12deg) scale(.95); } to { transform: translate(15%, 16%) rotate(20deg) scale(1.2); } }
@keyframes live-orbit { to { transform: rotate(360deg); } }
@keyframes button-shine { to { transform: translateX(70%); } }
@keyframes click-ripple { 0% { opacity: var(--ripple-alpha, .2); transform: translate(-50%, -50%) scale(0); } 100% { opacity: 0; transform: translate(-50%, -50%) scale(1); } }
@keyframes chart-trace { 0% { stroke-dashoffset: 1; opacity: 0; } 15%, 75% { opacity: 1; } 100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes chart-bar-grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes tooltip-arrive { from { opacity: 0; translate: 0 6px; scale: .97; } to { opacity: 1; translate: 0 0; scale: 1; } }
@media (prefers-reduced-motion: reduce) {
  .live-ambience, .live-edge, .chart-tracer { display: none !important; }
  .overview-live, .overview-shortcuts .button { transform: none !important; }
}

/* Feature management: a compact list, with a separate settings workspace. */
.page:is([data-view=plugins], [data-view=displays]) > .page-body { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 16px; }
.plugins-overview { border-radius: 0; }
.plugin-filters { gap: 4px; padding: 4px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-xs); width: fit-content; max-width: 100%; }
.plugin-filter { min-height: 34px; padding: 6px 12px; border: 0; border-radius: var(--radius-sm); font-size: 12px; transition: background .2s, color .2s, box-shadow .25s; }
.plugin-filter:hover { background: rgb(255 255 255 / .06); color: var(--text); }
.plugin-filter strong { min-width: 18px; padding: 3px 6px; border-radius: var(--radius-pill); background: rgb(255 255 255 / .08); color: var(--tertiary); font-size: 10px; font-weight: 600; }
.plugin-filter[aria-pressed=true] { background: rgb(255 255 255 / .1); color: var(--text); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .14); }
.plugin-filter[aria-pressed=true] strong { color: var(--on-accent); background: var(--pink); }
.plugins-toolbar { margin: 0; }
.plugins-toolbar .search-box { max-width: none; border-color: var(--border); border-radius: var(--radius-pill); padding: 0 14px; }
.plugins-toolbar .search-box input[type=search] { padding: 8px 0 !important; }
.installed-plugin-list { grid-column: 1 / -1; display: flex; flex-direction: column; min-width: 0; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-xs); overflow: hidden; }
.installed-plugin-head, .installed-plugin-row { display: grid; grid-template-columns: minmax(0, 1fr) 108px 300px; align-items: center; gap: 20px; }
.installed-plugin-head { padding: 11px 20px; border-bottom: 1px solid var(--border); color: var(--tertiary); font-size: 11px; font-weight: 500; background: var(--surface-soft); }
.installed-plugin-head > :last-child { text-align: right; }
.installed-plugin-row { position: relative; min-width: 0; padding: 18px 20px; border: 0; border-bottom: 1px solid var(--border); border-radius: 0; background: transparent; transition: background .2s; }
.installed-plugin-row:last-child { border-bottom: 0; }
.installed-plugin-row:hover { background: rgb(255 255 255 / .025); }
.installed-plugin-row.needs-attention { border-left: 0; padding-left: 20px; background: linear-gradient(90deg, var(--warning-fill), transparent 40%); }
.installed-plugin-row.needs-attention::before { content: ''; position: absolute; left: 0; top: 14px; bottom: 14px; width: 3px; border-radius: 0 3px 3px 0; background: var(--warning); }
.installed-plugin-identity { display: flex; align-items: center; gap: 14px; min-width: 0; }
.installed-plugin-identity > div { min-width: 0; }
.installed-plugin-identity .plugin-symbol { width: 38px; height: 38px; flex-shrink: 0; border-radius: 11px; }
.installed-plugin-identity .plugin-symbol .icon { width: 20px; height: 20px; }
.installed-plugin-identity h2 { font-size: 14px; font-weight: 620; overflow-wrap: anywhere; }
.installed-plugin-meta { margin-top: 3px; color: var(--tertiary); font-size: 12px; line-height: 1.65; }
.installed-plugin-status { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; }
.installed-plugin-status .badge { gap: 7px; padding: 0; border: 0; border-radius: 0; background: transparent; font-size: 12px; font-weight: 550; }
.installed-plugin-status .badge::before { content: ''; flex-shrink: 0; width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 15%, transparent); }
.installed-plugin-status .badge.green::before { animation: status-glow 2.4s ease-in-out infinite; }
.installed-plugin-note { grid-column: 1 / -1; min-width: 0; color: var(--muted); font-size: 12px; }
.installed-plugin-note:empty { display: none; }
.installed-plugin-actions { grid-column: 3; grid-row: 1; display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 6px; }
.installed-plugin-actions .button { min-height: 32px; padding: 5px 10px; border-radius: var(--radius-sm); font-size: 12px; font-weight: 500; box-shadow: none; }
.installed-plugin-actions .button .icon { width: 14px; height: 14px; }
.installed-plugin-actions .plugin-manage-action { order: -1; background: var(--surface); color: var(--text); border-color: var(--border-strong); box-shadow: var(--shadow-xs); }
.installed-plugin-actions .plugin-manage-action:hover { background: var(--surface-soft); }
.installed-plugin-actions .plugin-quick-action { border-color: transparent; background: transparent; color: var(--muted); }
.installed-plugin-actions .plugin-quick-action:hover { background: var(--surface-sunken); color: var(--text); }
.page[data-view=displays] .plugin-quick-action.primary { border-color: transparent; background: var(--primary-fill); color: var(--on-accent); }
.page[data-view=displays] .plugin-quick-action.primary:hover { border-color: transparent; background: var(--primary-fill); box-shadow: var(--shadow-brand); }
dialog.plugin-manager-dialog, dialog.plugin-manager-dialog:not(.plugin-manager-wide) { inset: 24px; margin: auto; width: min(960px, calc(100vw - 48px)); height: min(860px, calc(100dvh - 48px)); max-height: calc(100dvh - 48px); border-radius: var(--radius-lg); }
dialog.plugin-manager-wide { width: min(1120px, calc(100vw - 48px)); }
.plugin-manager-dialog .dialog-body { padding: 22px 0 0; }
.plugin-manager-dialog .dialog-heading { margin-bottom: 14px; padding: 0 26px; }
.plugin-manager-dialog .dialog-heading h2 { font-size: 19px; font-weight: 650; }
.plugin-manager-state { margin: 0 26px 18px; }
.plugin-manager-state .badge { border: 0; font-size: 11px; font-weight: 500; }
.plugin-manager-layout { display: grid; grid-template-columns: 170px minmax(0, 1fr); min-height: 0; flex: 1; border-top: 1px solid var(--border); }
.plugin-manager-layout.plugin-manager-single { grid-template-columns: minmax(0, 1fr); }
.sending-effect { display: grid; gap: 6px; margin: 4px 0 14px; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface-soft); }
.sending-effect p { margin: 0; }
.sending-effect-links { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; }
.plugin-manager-tabs { flex-direction: column; gap: 3px; overflow-y: auto; border: 0; border-right: 1px solid var(--border); padding: 18px 12px; background: var(--surface-soft); }
.plugin-manager-tab { min-height: 36px; padding: 8px 13px; border: 1px solid transparent; border-radius: var(--radius-sm); text-align: left; font-size: 12px; font-weight: 450; transition: background .2s, color .2s, box-shadow .25s; }
.plugin-manager-tab:hover { background: rgb(255 255 255 / .05); color: var(--text); }
.plugin-manager-tab[aria-selected=true] { color: var(--text); background: var(--surface); border-color: var(--border); box-shadow: var(--shadow-sm); font-weight: 600; }
.plugin-manager-main { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.plugin-manager-main > .console-error { flex-shrink: 0; margin: 14px 26px 0; }
.plugin-manager-main > .plugin-manager-message { margin-top: 14px; margin-bottom: 0; }
.plugin-manager-content { min-width: 0; padding: 26px 30px; }
.plugin-manager-pane > h3 { font-size: 16px; font-weight: 650; }
.plugin-manager-pane .check-row { padding: 14px 0; border: 0; border-bottom: 1px solid var(--border); border-radius: 0; background: transparent; font-size: 13px; gap: 10px 20px; }
.plugin-manager-pane .plugin-config-group .check-row small { margin-left: 0; font-size: 12px; line-height: 1.7; }
.plugin-settings-footer { padding: 16px 30px; background: rgb(17 17 19 / .9); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.plugin-settings-index .page-section-nav { margin: 16px 0 20px; }
.plugin-settings-fields > .plugin-config-group { scroll-margin-top: 18px; border-radius: var(--radius); padding: 18px; }
.plugin-settings-fields > .plugin-config-group > legend { font-size: 14px; font-weight: 620; }
.plugin-settings-search + .hint:empty { display: none; }
.plugin-manager-empty, .plugin-address-note { border-radius: var(--radius-md); }
.workbench-feed, .workbench-card { border-radius: var(--radius-lg); box-shadow: var(--shadow-xs); }
.workbench-feed { padding: 22px; }
.workbench-events { background: var(--surface); }
.workbench-feed .workbench-events { height: 340px; }
.workbench-message { padding: 13px 0; }
.workbench-card-heading { padding-bottom: 14px; border-bottom: 1px solid var(--border); }
/* Toasts speak in one short sentence and leave on their own. */
#toast { position: fixed; z-index: 100; left: calc(50% + 116px); bottom: 28px; transform: translateX(-50%); display: flex; align-items: center; gap: 10px; max-width: min(560px, calc(100vw - 32px)); padding: 11px 18px 11px 14px; border: 1px solid rgb(255 255 255 / .12); border-radius: var(--radius-pill); background: var(--toast); color: var(--text); box-shadow: var(--shadow-lg); -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%); font-size: 13px; line-height: 1.5; opacity: 0; pointer-events: none; transition: opacity .2s; }
#toast::before { content: ''; flex: 0 0 auto; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 4px rgb(239 87 148 / .16); }
#toast.visible { opacity: 1; }
@keyframes status-glow { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }
[data-effects=off] .installed-plugin-status .badge.green::before { animation: none; }

@media (min-width: 1650px) {
  .workspace main { padding-top: 52px; }
}
@media (max-width: 1200px) {
  .app-shell { grid-template-columns: 212px minmax(0, 1fr); }
  .sidebar-content { padding-right: 10px; padding-left: 10px; }
  .brand { padding: 4px 7px; font-size: 17px; }
  .workspace main { padding: 32px 30px 48px; }
  .topbar { padding-right: 28px; padding-left: 28px; }
  .top-actions { gap: 12px; }
  .console-search-trigger > span, .console-search-trigger > kbd { display: none; }
  .console-search-trigger { justify-content: center; width: 36px; min-width: 0; padding: 7px; }
  .overview-stage { grid-template-columns: minmax(0, 1fr) 290px; gap: 18px; }
  .overview-readiness { grid-template-columns: minmax(0, 1fr) 290px; gap: 0 22px; }
  .overview-readiness > .overview-health { padding-left: 22px; }
  .overview-live { padding: 22px 22px 0; }
  .overview-hero { margin-inline: -22px; padding-inline: 22px; }
  .overview-health { padding: 20px; }
  .overview-health-row { gap: 8px; }
  .overview-health-row .badge { max-width: 130px; font-size: 11px; }
  .overview-session .metric-amount { font-size: 30px; }
  .metric-grid { gap: 12px; }
  .metric-card, .dashboard-metrics > .workbench-metric { padding: 16px; }
  .dashboard-metrics .metric-amount, .dashboard-metrics .metric-value { font-size: 27px; }
  .overview-today .dashboard-metrics > * { padding-inline: 16px; }
  .overview-today .dashboard-metrics .metric-amount, .overview-today .dashboard-metrics .metric-value { font-size: 28px; }
  .activity-chart { padding-inline: 18px; }
  .installed-plugin-head, .installed-plugin-row { grid-template-columns: minmax(0, 1fr) 85px; gap: 14px; }
  .installed-plugin-head > :last-child { display: none; }
  .installed-plugin-actions { grid-column: 1 / -1; grid-row: 2; justify-content: flex-start; padding-left: 46px; }
  #toast { left: calc(50% + 106px); }
}
@media (max-width: 1000px) {
  .overview-stage, .overview-columns { grid-template-columns: minmax(0, 1fr); }
  .overview-live { order: -1; min-height: 260px; }
  .overview-health { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; }
  .overview-health .overview-section-heading, .overview-health > .hint, .overview-preparation { grid-column: 1 / -1; }
  .overview-health > .hint { margin-top: 10px; padding-top: 12px; }
  .overview-readiness { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .overview-readiness > .overview-health { padding: 16px 0 0; border-left: 0; border-top: 1px solid var(--border); }
  .overview-feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .overview-today .dashboard-metrics { row-gap: 22px; }
  .overview-today .dashboard-metrics > :nth-child(2) { border-right: 0; padding-right: 0; }
  .overview-today .dashboard-metrics > :nth-child(3) { padding-left: 0; }
  .heading-actions { flex-direction: column; align-items: flex-end; gap: 7px; }
  .page:is([data-view=plugins], [data-view=displays]) > .page-body { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .plugins-toolbar { grid-column: 1; grid-row: 2; }
  .plugins-toolbar .search-box { max-width: 360px; }
}
@media (max-width: 760px) {
  .app-shell { display: block; }
  .sidebar { position: sticky; top: 0; border-right: 0; border-bottom: 1px solid var(--hairline); background: var(--glass-chrome); -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%); }
  .sidebar::after { display: none; }
  .sidebar-content { position: static; height: auto; padding: 8px 20px; }
  .brand { padding: 0; margin: 0; font-size: 18px; }
  .brand:hover { background: transparent; }
  .brand small { display: none; }
  .brand img { width: 28px; height: 28px; border-radius: 8px; }
  .nav-open .sidebar { background: var(--canvas); }
  .menu-toggle { display: inline-flex; min-height: 44px; }
  #sidebar-nav { display: none; max-height: calc(100dvh - 180px); margin-top: 18px; padding-bottom: 10px; }
  .nav-group + .nav-group { margin-top: 20px; }
  .sidebar nav a { min-height: 44px; font-size: 14px; }
  .sidebar-assistance { display: none; }
  .nav-open { overflow: hidden; }
  .nav-open #sidebar-nav, .nav-open .sidebar-assistance { display: block; }
  .nav-open .nav-backdrop { display: block; position: fixed; z-index: 30; inset: 0; width: 100%; border: 0; background: var(--scrim); }
  .workspace { padding-bottom: calc(78px + env(safe-area-inset-bottom)); }
  body[data-role=admin] .workspace { padding-bottom: 0; }
  .topbar { position: static; gap: 10px; min-height: 52px; padding: 4px 20px; background: transparent; border-bottom: 0; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .identity { padding: 0; border: 0; background: transparent; box-shadow: none; }
  .breadcrumb { font-size: 11px; }
  .breadcrumb > span { display: none; }
  .top-actions { gap: 10px; }
  #identity-label { max-width: 90px; font-size: 11px; }
  #identity-role { font-size: 9px; }
  #identity-avatar { display: none; }
  #admin-signout, .console-search-trigger { width: 36px; min-width: 0; min-height: 44px; }
  .console-search-trigger { border: 0; background: transparent; }
  .workspace main { padding: 26px 20px 30px; }
  .page-heading { align-items: flex-start; flex-wrap: wrap; gap: 14px; margin-bottom: 24px; }
  .page-heading h1 { font-size: 25px; }
  .page-description { max-width: 340px; font-size: 12px; }
  .heading-actions { flex-direction: row; justify-content: flex-start; align-items: center; gap: 10px; }
  .heading-actions .button { min-height: 44px; }
  .page[data-view=overview] .heading-actions { gap: 7px; }
  .page[data-view=overview] .overview-updated { display: none; }
  .page[data-view=overview] .page-body { gap: 24px; }
  .page-body { gap: 23px; }
  .overview-shortcuts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .overview-shortcuts .button { min-height: 44px; padding: 9px 10px; font-size: 12px; }
  .overview-stage { gap: 16px; }
  .overview-live { padding: 20px 20px 0; }
  .overview-live > h2 { font-size: 18px; }
  .overview-session { padding: 20px 0; }
  .overview-session .metric-amount { font-size: 36px; }
  .overview-hero { margin-inline: -20px; padding: 15px 20px; }
  .overview-hero p { font-size: 11px; }
  .overview-health { display: block; padding: 18px 20px; }
  .overview-readiness { padding: 18px 16px; }
  .overview-readiness > .overview-health { padding: 14px 0 0; }
  .overview-readiness .overview-hero h3 { font-size: 16px; }
  .overview-readiness .overview-hero p { font-size: 12px; }
  .overview-readiness .setup-steps { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .overview-readiness .setup-step { padding: 10px 12px; gap: 10px; }
  /* On a phone only the steps still to do are listed; the note above says how many. */
  .overview-readiness .setup-step.is-complete { display: none; }
  .overview-todo .plugin-readiness-row { align-items: stretch; }
  .overview-health-row { min-height: 44px; font-size: 12px; }
  .overview-health-row .badge { max-width: 170px; font-size: 12px; }
  .overview-health .overview-section-heading { margin-bottom: 8px; }
  .overview-section-heading h2 { font-size: 14px; }
  .overview-section-heading .button { min-height: 36px; font-size: 11px; }
  .metric-grid, .metric-grid.three { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .overview-today .dashboard-metrics { column-gap: 0; }
  .overview-today .dashboard-metrics > * { padding-inline: 14px; }
  .overview-today .dashboard-metrics .metric-amount, .overview-today .dashboard-metrics .metric-value { font-size: 29px; }
  .activity-chart { padding: 18px 16px 16px; }
  .activity-chart-heading { gap: 12px; }
  .chart-controls { width: 100%; justify-content: space-between; }
  .chart-view-switch button { width: 34px; min-height: 34px; }
  .chart-ranges button { min-height: 34px; padding-inline: 9px; }
  .chart-graph { height: 185px; grid-template-columns: 30px minmax(0, 1fr); gap: 9px; }
  .chart-dates { margin-left: 39px; }
  .chart-total { font-size: 34px; }
  .chart-summary { margin-block: 18px 24px; }
  .metric-card, .dashboard-metrics > .workbench-metric { padding: 16px 14px; }
  .metric-label, .dashboard-metrics > .workbench-metric > span { font-size: 11px; }
  .metric-label .icon, .dashboard-metrics > .workbench-metric > span > .icon { display: none; }
  .metric-value, .dashboard-metrics .metric-value, .dashboard-metrics .metric-amount { font-size: 27px; }
  .dashboard-metrics > .workbench-metric > strong { font-size: 11px; }
  .metric-card .hint, .dashboard-metrics > .workbench-metric > small { font-size: 10px; }
  .overview-today { padding: 18px 16px 18px; }
  .overview-plugins { padding: 18px 16px 6px; }
  .plugins-toolbar .search-box { max-width: none; }
  .plugin-filter { min-height: 40px; font-size: 11px; }
  .installed-plugin-head { padding: 9px 16px; }
  .installed-plugin-row { padding: 18px 16px; gap: 14px 10px; grid-template-columns: minmax(0, 1fr) auto; }
  .installed-plugin-row.needs-attention { padding-left: 16px; }
  .plugin-filters { width: 100%; }
  .installed-plugin-identity h2 { font-size: 13px; }
  .installed-plugin-identity { gap: 11px; align-items: flex-start; }
  .installed-plugin-meta { font-size: 11px; }
  .installed-plugin-status .badge { font-size: 10px; }
  .installed-plugin-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; padding-left: 0; }
  .installed-plugin-actions .button { min-height: 44px; padding: 9px 5px; font-size: 11px; }
  .installed-plugin-actions .button .icon { display: none; }
  dialog.plugin-manager-dialog, dialog.plugin-manager-dialog:not(.plugin-manager-wide), dialog.plugin-manager-wide { inset: 0; margin: 0; width: 100%; height: 100dvh; max-height: 100dvh; border-radius: 0; }
  .plugin-manager-dialog .dialog-body { padding-top: 16px; }
  .plugin-manager-dialog .dialog-heading { padding-inline: 20px; }
  .plugin-manager-state { margin-inline: 20px; }
  .plugin-manager-layout { display: flex; flex-direction: column; }
  .plugin-manager-tabs, .plugin-manager-wide .plugin-manager-tabs { flex-direction: row; gap: 18px; padding: 0 20px; border: 0; border-bottom: 1px solid var(--border); background: var(--surface); overflow-x: auto; }
  .plugin-manager-tab { min-height: 44px; padding: 12px 0; border-radius: 0; border-bottom: 2px solid transparent; font-size: 12px; }
  .plugin-manager-tab[aria-selected=true] { color: var(--text); border-color: transparent; border-bottom-color: var(--pink); background: transparent; box-shadow: none; }
  .plugin-manager-main { flex: 1; }
  .plugin-manager-content { padding: 22px 20px; }
  .plugin-settings-footer { padding: 14px 20px max(16px, env(safe-area-inset-bottom)); }
  .workbench-feed { padding: 20px; }
  .mobile-shortcuts { position: fixed; z-index: 25; inset: auto 0 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 3px; padding: 7px 8px max(7px, env(safe-area-inset-bottom)); border-top: 1px solid var(--hairline); background: rgb(5 7 13 / .82); -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%); box-shadow: 0 -12px 30px -18px rgb(0 0 0 / .8); }
  .mobile-shortcuts a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 50px; border-radius: 12px; color: var(--tertiary); font-size: 10px; transition: background .2s, color .2s; }
  .mobile-shortcuts .icon { width: 20px; height: 20px; }
  .mobile-shortcuts a[aria-current=page] { color: var(--text); background: var(--select-fill); box-shadow: inset 0 0 0 1px var(--select-edge); font-weight: 600; }
  #toast { left: 50%; bottom: calc(88px + env(safe-area-inset-bottom)); text-align: center; }
}
@media (max-width: 380px) {
  .workspace main { padding-right: 16px; padding-left: 16px; }
  .sidebar-content, .topbar { padding-right: 16px; padding-left: 16px; }
  .top-actions { gap: 6px; }
  #identity-label { max-width: 65px; }
  .overview-live { padding: 18px 16px 0; }
  .overview-hero { margin-inline: -16px; padding-inline: 16px; }
  .overview-health { padding-inline: 16px; }
  .overview-feature { grid-template-columns: auto minmax(0, 1fr); gap: 8px; padding: 9px; }
  .overview-feature > .icon:last-child { display: none; }
  .overview-feature .plugin-symbol { width: 28px; height: 28px; border-radius: 8px; }
  .overview-feature .plugin-symbol .icon { width: 15px; height: 15px; }
  .overview-session .metric-amount { font-size: 32px; }
  .dashboard-metrics .metric-amount, .dashboard-metrics .metric-value { font-size: 24px; }
  .overview-today .dashboard-metrics .metric-amount, .overview-today .dashboard-metrics .metric-value { font-size: 24px; }
  .activity-chart-title { gap: 6px; }
  .chart-ranges button { padding-inline: 7px; }
}
@media (forced-colors: active) {
  .sidebar, .topbar, .overview-live, .overview-health, .overview-hero, .metric-card, .dashboard-metrics > .workbench-metric, .console-search-trigger, .mobile-shortcuts { color: CanvasText; background: Canvas; border-color: CanvasText; }
  .icon { --icon-color: currentColor !important; color: inherit !important; }
  .icon-fill { display: none; }
  .plugin-symbol { color: CanvasText; background: Canvas; border-color: CanvasText; }
  .sidebar nav a[aria-current=page], .mobile-shortcuts a[aria-current=page], .plugin-manager-tab[aria-selected=true], .console-search-results a:focus-visible { color: HighlightText; background: Highlight; }
  .overview-live h2, .overview-live h3, .overview-room, .overview-session .workbench-metric > strong, .overview-session .workbench-metric > span, .overview-session .workbench-metric > small, .overview-hero p, .overview-session-activity, .overview-session-activity strong { color: CanvasText; }
  .chart-svg, .chart-point { color: Highlight; }
  .chart-gridline { stroke: GrayText; }
  .chart-tooltip { color: CanvasText; background: Canvas; border-color: CanvasText; }
  .chart-tooltip > span, .chart-tooltip > small { color: CanvasText; }
  .overview-latest-message > span, .overview-latest-message > p { color: CanvasText; }
  .live-ambience, .live-edge, .fx-ripple, .chart-tracer { display: none !important; }
  .chart-bar { fill: Highlight; }
}

@media (max-width: 760px) {
  .page-related-nav { gap: 2px 16px; margin-bottom: 18px; }
  .page-section-nav { padding: 6px; margin-bottom: 18px; }
  .section-link { min-height: 44px; }
  [data-page-section] { scroll-margin-top: 138px; }
}

/* Small, action-driven feedback across the console. Live data keeps its position. */
:root { --motion-spring: cubic-bezier(.2, 1.35, .35, 1); --motion-ease: cubic-bezier(.22, 1, .36, 1); }
:is(.app-shell, dialog) :is(.button, .icon-button, .plugin-manager-tab, .data-filter-chip) { position: relative; overflow: hidden; isolation: isolate; }
[data-effects=on] :is(.app-shell, dialog, .mobile-shortcuts) :is(button, a, summary):not(.chart-point, .effects-toggle, .nav-backdrop) {
  transition: background .2s, color .2s, border-color .2s, box-shadow .25s, scale .16s var(--motion-ease), translate .25s var(--motion-ease);
}
[data-effects=on] :is(.app-shell, dialog, .mobile-shortcuts) :is(button, a.button):not(.chart-point, .effects-toggle, .nav-backdrop):active:not(:disabled, [aria-disabled=true]) { scale: .97; }
[data-effects=on] :is(button, a) > .icon { transition: rotate .35s var(--motion-ease), translate .3s var(--motion-ease), scale .3s var(--motion-spring); }
@media (hover: hover) and (pointer: fine) {
  [data-effects=on] :is(.app-shell, dialog) .button:hover:not(:disabled, [aria-disabled=true], [aria-pressed], [role=tab], .effects-toggle) { translate: 0 -1px; box-shadow: 0 8px 20px -10px rgb(0 0 0 / .6); }
  [data-effects=on] :is(button, a):hover:not(:disabled, [aria-disabled=true]) > .icon[data-icon=refresh] { rotate: 45deg; }
  [data-effects=on] :is(button, a):hover:not(:disabled, [aria-disabled=true]) > .icon[data-icon=plus] { rotate: 90deg; }
  [data-effects=on] :is(button, a):hover:not(:disabled, [aria-disabled=true]) > .icon[data-icon=close] { rotate: 90deg; scale: .9; }
  [data-effects=on] :is(button, a):hover:not(:disabled, [aria-disabled=true]) > .icon:is([data-icon=arrow], [data-icon=logout]) { translate: 2px 0; }
  [data-effects=on] :is(button, a):hover:not(:disabled, [aria-disabled=true]) > .icon:is([data-icon=external], [data-icon=send]) { translate: 1px -1px; }
  [data-effects=on] :is(button, a):hover:not(:disabled, [aria-disabled=true]) > .icon[data-icon=play] { scale: 1.12; }
  [data-effects=on] :is(.app-shell, dialog) .button.primary::after { content: ''; position: absolute; inset: -100% -60%; pointer-events: none; background: linear-gradient(110deg, transparent 35%, rgb(255 255 255 / .55) 49%, transparent 63%); transform: translateX(-70%); }
  [data-effects=on] :is(.app-shell, dialog) .button.primary:hover:not(:disabled)::after { animation: button-shine .7s ease-out both; }
}

/* Loading occupies the button edge so labels and neighboring controls stay put. */
:is(.app-shell, dialog) .button:is(.is-loading, [data-busy=true], [aria-busy=true]) { cursor: progress; opacity: .75; }
:is(.app-shell, dialog) .button:is(.is-loading, [data-busy=true], [aria-busy=true])::before {
  content: ''; position: absolute; inset: auto 0 0; height: 2px; background: currentColor; opacity: .5; pointer-events: none;
}
[data-effects=on][data-effects-visible=true] :is(.app-shell, dialog) .button:is(.is-loading, [data-busy=true], [aria-busy=true])::before {
  width: 40%; background: linear-gradient(90deg, transparent, currentColor, transparent); animation: control-progress 1.1s ease-in-out infinite;
}
[data-effects=on][data-effects-visible=true] .button:is(.is-loading, [data-busy=true], [aria-busy=true]) > .icon[data-icon=refresh] { animation: control-spin 1s linear infinite; }

.sidebar nav a, .mobile-shortcuts a, .page-related-nav a, .plugin-manager-tab { position: relative; }
.sidebar nav a::before, .plugin-manager-tab::before {
  content: ''; position: absolute; left: 0; top: 24%; height: 52%; width: 2px; border-radius: 2px; background: var(--accent); transform: scaleY(0); opacity: 0; pointer-events: none;
}
.sidebar nav a[aria-current=page]::before, .plugin-manager-tab[aria-selected=true]::before { transform: scaleY(1); opacity: .8; }
[data-effects=on] :is(.sidebar nav a, .plugin-manager-tab)::before { transition: transform .35s var(--motion-spring), opacity .2s; }
[data-effects=on] :is(.mobile-shortcuts a[aria-current=page], .sidebar nav a[aria-current=page]) > .icon { animation: control-select .36s var(--motion-spring); }
[data-effects=on] .page-related-nav a[aria-current=page] { animation: section-arrive .28s var(--motion-ease); }
[data-effects=on] .plugin-manager-pane:not([hidden]) { animation: section-arrive .24s var(--motion-ease); }
[data-effects=on] :is(.chart-ranges button, .chart-view-switch button, .business-date-shortcuts .button)[aria-pressed=true] { border-color: var(--border); }

[data-effects=on] :is(.app-shell, dialog) :is(input:not([type=checkbox], [type=radio]), select, textarea) { transition: border-color .2s, background .2s, box-shadow .25s; }
[data-effects=on] :is(.app-shell, dialog) :is(input:not([type=checkbox], [type=radio], [type=range], [type=color]), select, textarea):focus { box-shadow: 0 0 0 4px var(--focus-ring); }
[data-effects=on] .console-field { transition: color .2s; }
[data-effects=on] .console-field:focus-within { color: var(--accent); }
[data-effects=on] .search-box { transition: border-color .2s, box-shadow .25s; }
[data-effects=on] .search-box:focus-within { border-color: var(--focus-edge); box-shadow: 0 0 0 4px var(--focus-ring); }
[data-effects=on] .search-box > .icon { transition: scale .35s var(--motion-spring), color .2s; }
[data-effects=on] .search-box:focus-within > .icon { scale: 1.1; color: var(--accent); }
[data-effects=on] input.switch-control { transition: background-size .36s var(--e-out), border-color .25s, box-shadow .36s; }
[data-effects=on] input.switch-control::after { box-shadow: 0 1px 4px rgb(16 16 20 / .22); transition: transform .48s var(--motion-spring), width .18s; }
[data-effects=on] input.switch-control:active:not(:disabled)::after { width: 25px; }
[data-effects=on] input.switch-control:checked:active:not(:disabled)::after { transform: translateX(13px); }

[data-effects=on] details > summary .icon[data-icon=chevron] { transition: transform .32s var(--motion-spring); }
[data-effects=on] dialog[open] { animation: dialog-arrive .3s var(--motion-ease); }
[data-effects=on] dialog[open]::backdrop { animation: backdrop-arrive .2s ease-out; }
[data-effects=on] .console-error:not(:empty) { animation: section-arrive .22s var(--motion-ease); }
[data-effects=on] #toast { translate: 0 8px; scale: .98; transition: opacity .18s, translate .28s var(--motion-ease), scale .28s var(--motion-ease); }
[data-effects=on] #toast.visible { translate: 0 0; scale: 1; }

.menu-toggle-mark { position: relative; display: block; width: 18px; height: 16px; }
.menu-toggle-mark::before, .menu-toggle-mark::after, .menu-toggle-mark > i { content: ''; position: absolute; left: 0; width: 18px; height: 1.5px; border-radius: 2px; background: currentColor; }
.menu-toggle-mark::before { top: 1px; }
.menu-toggle-mark > i { top: 7px; width: 13px; }
.menu-toggle-mark::after { top: 13px; }
.menu-toggle[aria-expanded=true] .menu-toggle-mark::before { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded=true] .menu-toggle-mark::after { transform: translateY(-6px) rotate(-45deg); }
.menu-toggle[aria-expanded=true] .menu-toggle-mark > i { transform: scaleX(0); opacity: 0; }
[data-effects=on] .menu-toggle-mark::before, [data-effects=on] .menu-toggle-mark::after, [data-effects=on] .menu-toggle-mark > i { transition: transform .32s var(--motion-ease), opacity .15s; }
@media (max-width: 760px) {
  [data-effects=on] .nav-open #sidebar-nav { animation: section-arrive .28s var(--motion-ease); }
  [data-effects=on] .nav-open .nav-backdrop { animation: backdrop-arrive .2s ease-out; }
}
[data-effects=off] :is(input.switch-control, #toast), [data-effects=off] input.switch-control::after { transition: none; }
@keyframes control-progress { from { transform: translateX(-100%); } to { transform: translateX(350%); } }
@keyframes control-spin { to { rotate: 360deg; } }
@keyframes control-select { 0% { scale: .85; } 65% { scale: 1.08; } 100% { scale: 1; } }
@keyframes section-arrive { from { translate: 0 5px; } to { translate: 0 0; } }
@keyframes dialog-arrive { from { translate: 0 14px; scale: .965; opacity: .45; } to { translate: 0 0; scale: 1; opacity: 1; } }
@keyframes backdrop-arrive { from { opacity: 0; } to { opacity: 1; } }

/* Live workspace keeps messages in the foreground and operations within reach. */
.workspace main:has(.page[data-view=workspace]) { max-width: 1560px; padding: 28px 36px 48px; }
.page[data-view=workspace] .page-heading { margin-bottom: 16px; }
.page[data-view=workspace] > .page-section-nav { padding: 0 0 12px; margin-bottom: 18px; border: 0; border-bottom: 1px solid var(--border); border-radius: 0; background: transparent; box-shadow: none; gap: 5px; }
.page[data-view=workspace] > .page-section-nav .section-link { padding: 6px 12px; min-height: 34px; font-size: 12px; }
.page[data-view=workspace] .workbench-shortcuts { flex-direction: row; padding: 0; gap: 8px; }
.live-workspace { gap: 20px; }
.workbench-statusbar { display: grid; grid-template-columns: 1fr 1.5fr .8fr; padding: 16px 0; border: 1px solid var(--border); border-radius: var(--radius-lg); background: linear-gradient(180deg, rgb(130 160 255 / .045), transparent 70%), var(--surface); box-shadow: var(--shadow-xs); }
.workbench-statusbar > .workbench-metric { display: grid; grid-template-columns: auto 1fr; align-content: start; align-items: baseline; gap: 4px 14px; padding: 0 22px; }
.workbench-statusbar > .workbench-metric:last-child { border-right: 0; }
.workbench-statusbar > .workbench-metric > span { font-size: 12px; white-space: nowrap; }
.workbench-statusbar > .workbench-metric > strong { font-size: 13px; font-weight: 600; text-align: right; }
.workbench-statusbar > .workbench-metric > small { grid-column: 1 / -1; font-size: 11px; line-height: 1.6; }
.workbench-live-metrics { grid-template-columns: repeat(5, minmax(0, 1fr)); overflow: visible; border: 0; background: transparent; gap: 12px; }
.workbench-live-metrics > .workbench-metric { padding: 16px 18px; gap: 10px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-xs); }
.workbench-live-metrics > .workbench-metric:nth-child(2) { background: radial-gradient(120% 120% at 100% 0%, rgb(239 87 148 / .12), transparent 60%), var(--sheet); border-color: rgb(239 87 148 / .28); }
.workbench-live-metrics > .workbench-metric > span { font-size: 12px; gap: 6px; }
.workbench-live-metrics > .workbench-metric > strong { font-size: 13px; line-height: 1.6; font-weight: 500; }
.workbench-live-metrics .metric-amount { font-size: 25px; line-height: 1.3; letter-spacing: -.6px; font-weight: 600; }
.workbench-live-metrics > .workbench-metric:nth-child(2) > strong { color: var(--accent-dark); }
.workbench-live-metrics > .workbench-metric > small { font-size: 11px; line-height: 1.7; }
.live-workspace .workbench-stage { grid-template-columns: minmax(0, 1fr) 300px; align-items: stretch; gap: 20px; }
.live-workspace .workbench-feed { display: flex; flex-direction: column; padding: 22px 22px 14px; border-radius: var(--radius-lg); }
.live-workspace .workbench-feed .workbench-section-heading { gap: 14px; }
.workbench-feed .workbench-section-heading > div:first-child { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.workbench-feed h2 { display: flex; align-items: center; gap: 9px; font-size: 16px; }
.workbench-feed h2 .icon { color: var(--icon-color); width: 19px; height: 19px; }
.workbench-feed-status { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; color: var(--muted); }
.workbench-feed-status::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.workbench-feed-status[data-tone=success]::before { animation: status-glow 2.4s ease-in-out infinite; }
[data-effects=off] .workbench-feed-status::before { animation: none; }
.workbench-feed-status[data-tone=success] { color: var(--success); }
.workbench-feed-status[data-tone=warning] { color: var(--warning); }
.live-workspace .workbench-feed .console-actions { gap: 6px; }
.live-workspace .workbench-feed .button { padding: 6px 10px; font-size: 11px; min-height: 34px; }
.live-workspace .workbench-feed-toolbar { margin: 20px 0 12px; gap: 10px; }
.live-workspace .workbench-feed-toolbar > select { background-color: var(--surface-soft); border-color: var(--border); border-radius: var(--radius-md); font-size: 12px; }
.live-workspace .workbench-search { border-color: var(--border); background: var(--surface-soft); }
.live-workspace .workbench-search input[type=search] { color: var(--text); min-height: 40px; font-size: 12px; }
.live-workspace .workbench-events { flex: 1 1 auto; height: 380px; min-height: 300px; max-height: 540px; border: 0; border-radius: 0; background: var(--surface); }
.live-workspace .workbench-message-list { padding: 0 4px 0 0; }
.live-workspace .workbench-message { position: relative; padding: 14px 12px; border-bottom-color: var(--border); }
.live-workspace .workbench-message:nth-child(even) { background: var(--surface-soft); }
.live-workspace .workbench-message[data-type=gift], .live-workspace .workbench-message[data-type=guard] { background: linear-gradient(90deg, rgb(239 87 148 / .14), rgb(239 87 148 / .03) 60%, transparent); border-radius: 10px; margin-block: 4px; border-bottom-color: transparent; }
.live-workspace .workbench-message[data-type=superchat] { background: linear-gradient(90deg, rgb(255 255 255 / .07), transparent 60%); border-radius: 10px; margin-block: 4px; border-bottom-color: transparent; }
.live-workspace .workbench-message-meta { gap: 8px; margin-bottom: 5px; }
.live-workspace .workbench-message-meta strong { font-size: 12px; color: var(--brand-deep); font-weight: 600; }
[data-effects=on] .live-workspace .workbench-message { animation: message-in .42s var(--ease-out) backwards; }
@keyframes message-in { from { opacity: 0; translate: 0 8px; } to { opacity: 1; translate: 0 0; } }
.live-workspace .workbench-event-kind { font-size: 10px; padding: 0 7px; border: 1px solid var(--border); border-radius: var(--radius-pill); background: var(--surface); color: var(--tertiary); }
.live-workspace .workbench-message p { font-size: 14px; line-height: 1.8; }
.live-workspace .workbench-feed-empty { min-height: 300px; }
.live-workspace .workbench-feed-footer { padding-top: 14px; margin-top: 8px; border-top: 1px solid var(--border); }
.workbench-sidebar { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.workbench-launcher { padding: 18px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-xs); }
.workbench-launcher h2, .live-workspace .workbench-tasks h2 { font-size: 14px; }
.workbench-launcher .workbench-section-heading > .button { min-height: 28px; padding: 2px 0 2px 10px; border-color: transparent; background: transparent; color: var(--muted); font-size: 11px; }
.workbench-feature-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.workbench-feature-links:empty { display: none; }
.workbench-launcher > .hint { margin-top: 12px; }
.workbench-feature-link { display: grid; grid-template-columns: 22px minmax(0, 1fr); align-items: center; gap: 3px 8px; min-width: 0; min-height: 60px; padding: 10px; border: 1px solid transparent; border-radius: var(--radius-md); background: var(--surface-soft); color: var(--text); text-align: left; box-shadow: none; transition: background .2s, border-color .2s, box-shadow .3s, translate .3s var(--ease-out); }
.workbench-feature-link:hover { border-color: var(--border); background: var(--surface); box-shadow: var(--shadow-md); }
.workbench-feature-link > .icon { width: 19px; height: 19px; color: var(--icon-color); }
.workbench-feature-link > span { font-size: 11px; line-height: 1.6; overflow-wrap: anywhere; }
.workbench-feature-link > small { grid-column: 2; color: var(--muted); font-size: 10px; }
.workbench-feature-link[data-tone=green] > small { color: var(--success); }
.workbench-feature-link[data-tone=red] > small { color: var(--danger); }
.workbench-feature-link[data-tone=amber] > small { color: var(--warning); }
.live-workspace .workbench-tasks { padding: 18px; border-radius: var(--radius-lg); }
.workbench-task-count { min-width: 22px; padding: 1px 7px; border-radius: var(--radius-pill); background: var(--surface-sunken); color: var(--muted); text-align: center; font-size: 11px; font-weight: 600; }
.live-workspace .workbench-tasks > .hint { margin-top: 6px; font-size: 11px; }
.workbench-task-list { max-height: 220px; overflow: auto; overscroll-behavior: contain; overflow-wrap: anywhere; }
.live-workspace .workbench-tasks .workbench-result-row { padding-bottom: 14px; border-bottom: 1px solid var(--border); font-size: 12px; }
.live-workspace .workbench-tasks .workbench-result-row .console-actions { gap: 5px; margin-top: 8px; }
.live-workspace .workbench-tasks .button { padding: 5px 9px; min-height: 32px; font-size: 11px; }
.live-workspace .workbench-tasks > .console-actions { margin-top: 12px; }
.workbench-tasks-empty { display: flex; align-items: center; gap: 9px; color: var(--muted); padding: 20px 0 12px; font-size: 12px; }
.workbench-tasks-empty .icon { width: 18px; height: 18px; color: var(--success); }
.workbench-tools-area { display: flex; flex-direction: column; gap: 16px; min-width: 0; padding-top: 8px; }
.workbench-tools-area > .workbench-section-heading > div { display: flex; align-items: baseline; flex-wrap: wrap; gap: 12px; }
.workbench-feature-search { flex: 0 1 250px; }
.live-workspace .workbench-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 0; gap: 20px; }
.live-workspace .workbench-card { border-radius: var(--radius-lg); padding: 20px; gap: 14px; scroll-margin-top: 90px; }
.live-workspace .workbench-card-heading { gap: 10px; padding-bottom: 16px; }
.live-workspace .workbench-card h2 { font-size: 15px; }
.live-workspace .workbench-card-identity .plugin-symbol { width: 36px; height: 36px; border-radius: 10px; }
.live-workspace .workbench-card-identity .plugin-symbol .icon { width: 19px; height: 19px; }
.live-workspace .workbench-card-controls { gap: 5px; }
.live-workspace .workbench-card-controls .button { font-size: 11px; padding: 5px 8px; }
.live-workspace .workbench-card-meta { margin-top: 4px; }
.live-workspace .workbench-card-meta .badge { padding: 0; border: 0; background: transparent; }
.live-workspace .workbench-card-meta .badge::before { content: ''; width: 5px; height: 5px; background: currentColor; border-radius: 50%; }
.live-workspace .workbench-card .workbench-candidates { border-color: var(--brand-soft); background: var(--brand-pale); border-radius: var(--radius-md); }
.workbench-filter-empty { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 40px 20px; border: 1px dashed var(--border-strong); border-radius: var(--radius-lg); background: var(--surface); color: var(--muted); }
.guide { display: grid; gap: 16px; }
.guide > .hint { margin-top: 0; }
.guide .console-error > .button { margin-left: 10px; vertical-align: middle; }
.guide-step > .robot-qr { margin-top: 0; }
.guide-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.guide-step { display: grid; gap: 12px; min-width: 0; padding: 16px 18px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); }
.guide-step.is-current { border-color: var(--border-strong); }
.guide-step.is-done:not(.is-current) { opacity: .72; }
.guide-step-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.guide-step-head h2 { margin: 0; font-size: 1.05rem; }
.guide-field { display: grid; gap: 6px; max-width: 420px; }
.guide-field input, .guide-obs input { width: 100%; min-width: 0; box-sizing: border-box; }
.guide-choices { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr)); gap: 8px 16px; }
.guide-obs { display: grid; gap: 8px; min-width: 0; padding-top: 10px; border-top: 1px solid var(--border); }
.guide-consent { font-weight: 600; }
.guide-manual > summary { cursor: pointer; color: var(--muted); font-size: 13px; }
.guide-manual[open] { display: grid; gap: 12px; }
/* 主播类型模板: radio cards with the chosen template's settings beneath, in the
   guide and in 直播设置. Selection is drawn with white light, like every other
   choice; pink stays on the main action. */
.template-picker { display: grid; gap: 12px; min-width: 0; }
.template-choices { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(210px, 100%), 1fr)); gap: 8px; }
.template-choice { display: grid; align-content: start; gap: 4px; min-width: 0; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface-soft); color: var(--muted); font: inherit; text-align: left; cursor: pointer; transition: border-color .2s, background-color .2s, color .2s; }
.template-choice:hover { border-color: var(--border-hover); color: var(--text); }
.template-choice[aria-checked="true"] { border-color: rgb(255 255 255 / .26); background: var(--select-fill); color: var(--text); }
.template-name { color: var(--text); font-size: 15px; }
.template-fits { color: var(--tertiary); font-size: 12px; }
.template-intro { font-size: 13px; line-height: 1.5; }
.template-sample { overflow: hidden; color: var(--tertiary); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.template-detail { display: grid; gap: 10px; min-width: 0; padding: 14px 16px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface); }
.template-detail > * { margin: 0; }
.template-detail-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.template-detail-head h3 { margin: 0; font-size: 15px; }
.template-detail-intro { display: none; flex-basis: 100%; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.template-scenes { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 7px 16px; margin: 0; font-size: 13px; line-height: 1.5; }
.template-scenes dt { color: var(--muted); font-weight: 550; }
.template-scenes dd { margin: 0; color: var(--text); }
.template-features-block { display: grid; gap: 6px; min-width: 0; }
.template-features-block h4 { margin: 0; color: var(--muted); font-size: 13px; font-weight: 600; }
.template-features-block > .hint { margin: 0; font-size: 12px; }
.template-features { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(290px, 100%), 1fr)); gap: 6px 12px; }
.template-feature { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: start; gap: 10px; min-width: 0; padding: 8px 10px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface-soft); cursor: pointer; transition: border-color .2s; }
.template-feature:hover { border-color: var(--border-hover); }
.template-feature:has(input:checked) { border-color: var(--border-strong); }
.template-feature > input { margin: 3px 0 0; }
.template-feature-text { display: grid; gap: 2px; min-width: 0; }
.template-feature-text strong { font-size: 13px; }
.template-feature-text small { color: var(--muted); font-size: 12px; line-height: 1.45; overflow-wrap: anywhere; }
.template-feature-tag { color: var(--tertiary); font-size: 11px; white-space: nowrap; }
.template-detail > .hint { font-size: 12px; }
.template-copy > summary { cursor: pointer; color: var(--muted); font-size: 13px; }
.template-copy-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(250px, 100%), 1fr)); gap: 12px 18px; margin-top: 10px; }
.template-copy-group { min-width: 0; }
.template-copy-group > strong { color: var(--muted); font-size: 12px; font-weight: 550; }
.template-copy-group ul { margin: 4px 0 0; padding-left: 18px; font-size: 13px; line-height: 1.6; overflow-wrap: anywhere; }
.live-settings-templates { display: grid; gap: 10px; min-width: 0; }
.live-settings-templates .console-actions { margin: 0; }
.live-settings-template-note { margin: 0; }
.live-settings-template-note:empty { display: none; }
/* 我的模板: saving the room under a name, overwriting or deleting saved ones. */
.template-choice[data-custom] .template-fits { color: var(--muted); }
.live-settings-mine { display: grid; gap: 8px; min-width: 0; padding-top: 12px; border-top: 1px solid var(--border); }
.live-settings-mine h4 { margin: 0; font-size: 14px; }
.live-settings-mine > .hint { margin: 0; }
.live-settings-mine-new { display: flex; flex-wrap: wrap; align-items: end; gap: 8px 12px; }
.live-settings-mine-new .console-field { flex: 0 1 240px; min-width: 0; }
.live-settings-mine-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; min-width: 0; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface-soft); }
.live-settings-mine-text { display: grid; gap: 2px; min-width: 0; }
.live-settings-mine-text small { margin: 0; }
.live-settings-mine-row .console-actions { margin: 0; }
.live-settings-mine-note:empty { display: none; }
@media (max-width: 760px) {
  .template-scenes { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .template-scenes dd { margin-bottom: 8px; }
}
/* Phones: seven short cards two by two; the chosen one's description moves
   into the panel below. */
@media (max-width: 560px) {
  .template-choices { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .template-choice { padding: 10px 12px; }
  .template-choice > :is(.template-intro, .template-sample) { display: none; }
  .template-detail { padding: 12px 14px; }
  .template-detail-intro { display: block; }
}
.workbench-paused { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin-top: 16px; padding: 14px 18px; border: 1px dashed var(--border-strong); border-radius: var(--radius-lg); background: var(--surface); }
.workbench-paused .hint { margin: 0; }
.workbench-supporting { display: grid; gap: 14px; min-width: 0; }
.live-workspace .workbench-readiness, .live-workspace .live-transcription { display: block; padding: 16px 20px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-xs); }
.workbench-readiness > summary, .live-workspace .live-transcription > summary { padding: 0; font-size: 13px; font-weight: 550; }
.workbench-readiness[open] > :not(summary) { margin-top: 12px; }
.live-workspace.workbench-focused .workbench-stage { grid-template-columns: minmax(0, 1fr); }
.live-workspace.workbench-focused .workbench-sidebar { display: grid; grid-template-columns: 1.2fr 1fr; align-items: start; }
.live-workspace.workbench-focused .workbench-events { height: 65dvh; max-height: 850px; }
.live-workspace .workbench-feed .workbench-focus-toggle[aria-pressed=true] { color: var(--on-ink); border-color: var(--ink); background: var(--ink); }
@media (max-width: 1200px) {
  .workspace main:has(.page[data-view=workspace]) { padding-inline: 24px; }
  .workbench-statusbar > .workbench-metric { grid-template-columns: minmax(0, 1fr); padding-inline: 16px; gap: 5px; }
  .workbench-statusbar > .workbench-metric > strong { text-align: left; }
  .workbench-live-metrics { gap: 8px; }
  .workbench-live-metrics > .workbench-metric { padding: 14px 12px; }
  .workbench-live-metrics .metric-amount { font-size: 22px; }
  .live-workspace .workbench-stage { grid-template-columns: minmax(0, 1fr) 268px; gap: 16px; }
  .live-workspace .workbench-feed { padding: 18px 18px 14px; }
  .live-workspace .workbench-feed .workbench-section-heading > .console-actions { width: 100%; }
  .workbench-launcher, .live-workspace .workbench-tasks { padding: 16px; }
}
@media (max-width: 1000px) {
  .workbench-live-metrics { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .workbench-live-metrics > .workbench-metric { grid-column: span 2; }
  .workbench-live-metrics > .workbench-metric:nth-child(-n+2) { grid-column: span 3; }
  .live-workspace .workbench-stage { grid-template-columns: minmax(0, 1fr); }
  .workbench-sidebar { display: grid; grid-template-columns: 1.2fr 1fr; align-items: start; }
  .live-workspace .workbench-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .workspace main:has(.page[data-view=workspace]) { padding: 22px 20px 30px; }
  .page[data-view=workspace] .page-heading { gap: 14px; }
  .page[data-view=workspace] .heading-actions { width: 100%; }
  .page[data-view=workspace] .workbench-shortcuts { justify-content: flex-start; }
  .page[data-view=workspace] > .page-section-nav { flex-wrap: nowrap; overflow: auto; padding-bottom: 10px; gap: 4px; }
  .page[data-view=workspace] > .page-section-nav .section-link { flex-shrink: 0; min-height: 44px; }
  .live-workspace { gap: 16px; }
  .live-workspace > .console-error { order: -1; }
  .live-workspace > .workbench-stage { order: 1; }
  .live-workspace > .workbench-live-metrics { order: 2; }
  .live-workspace > .workbench-tools-area { order: 3; }
  .live-workspace > .workbench-supporting { order: 4; }
  .workbench-statusbar { grid-template-columns: repeat(3, minmax(0, 1fr)); padding-block: 14px; }
  .workbench-statusbar > .workbench-metric { padding-inline: 12px; }
  .workbench-statusbar > .workbench-metric > span { white-space: normal; font-size: 11px; }
  .workbench-statusbar > .workbench-metric > span .icon { display: none; }
  .workbench-statusbar > .workbench-metric > strong { font-size: 12px; }
  .workbench-statusbar > .workbench-metric > small { font-size: 10px; }
  .workbench-sidebar, .live-workspace.workbench-focused .workbench-sidebar { grid-template-columns: minmax(0, 1fr); }
  .workbench-feature-links { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .workbench-feature-link { grid-template-columns: minmax(0, 1fr); padding: 12px 10px; gap: 5px; }
  .workbench-feature-link > small { grid-column: 1; }
  .live-workspace .workbench-feed .console-actions { width: 100%; flex-wrap: wrap; }
  .live-workspace .workbench-feed .button, .live-workspace .workbench-card .button, .live-workspace .workbench-tasks .button { min-height: 44px; }
  .live-workspace .workbench-feed-toolbar { flex-wrap: nowrap; gap: 8px; }
  .live-workspace .workbench-feed-toolbar > select { width: auto; flex: 0 1 auto; max-width: 120px; padding-inline: 8px; }
  .live-workspace .workbench-feed-toolbar > .workbench-search { width: auto; flex: 1 1 0; padding-inline: 9px; }
  .live-workspace .workbench-events { height: 360px; min-height: 300px; flex: none; }
  .live-workspace .workbench-message { padding-inline: 8px; }
  .live-workspace .workbench-feed-footer { gap: 4px 12px; }
  .live-workspace .workbench-feed-footer > span { display: block; font-size: 10px; }
  .workbench-feature-search { flex-basis: 100%; }
  .live-workspace .workbench-card { padding: 18px; scroll-margin-top: 138px; }
  .live-workspace .workbench-card-controls { margin-left: 0; }
  .live-workspace .workbench-readiness, .live-workspace .live-transcription { padding: 16px; }
}
@media (max-width: 420px) {
  .workspace main:has(.page[data-view=workspace]) { padding-inline: 14px; }
  .workbench-live-metrics > .workbench-metric { padding: 12px 10px; gap: 7px; }
  .workbench-live-metrics > .workbench-metric > span { font-size: 11px; }
  .workbench-live-metrics > .workbench-metric > strong { font-size: 11px; }
  .workbench-live-metrics .metric-amount { font-size: 20px; }
  .workbench-live-metrics > .workbench-metric > small { font-size: 10px; }
  .live-workspace .workbench-feed { padding: 16px 12px 12px; }
  .live-workspace .workbench-feed-toolbar .workbench-search > .icon { display: none; }
}
@media (forced-colors: active) {
  .workbench-statusbar, .workbench-live-metrics > .workbench-metric:nth-child(2), .workbench-feature-link, .live-workspace .workbench-message { background: Canvas; color: CanvasText; border-color: CanvasText; }
  .workbench-feed-status::before, .live-workspace .workbench-card-meta .badge::before { background: CanvasText; }
}

/* Data reception: one row per message type, status on the right. */
.source-capability-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 18px 0 22px; padding: 0; list-style: none; }
.source-capability { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-width: 0; padding: 13px 14px 13px 16px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface-soft); transition: border-color .2s, background .2s; }
.source-capability > div { display: grid; gap: 2px; min-width: 0; }
.source-capability strong { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 620; }
.source-capability strong::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--quiet); }
.source-capability[data-tone=green] strong::before { background: var(--success); box-shadow: 0 0 0 3px rgb(90 209 154 / .18); }
.source-capability[data-tone=amber] strong::before { background: var(--warning); }
.source-capability small { color: var(--tertiary); font-size: 11px; line-height: 1.6; overflow-wrap: anywhere; }
.source-capability .badge { flex-shrink: 0; }
.source-capability[data-tone=green] { background: var(--surface); }
[data-page-section] > h4 { margin-top: 4px; font-size: 13px; font-weight: 620; }
[data-page-section] > h4 + .hint { margin-top: 4px; }
@media (max-width: 760px) { .source-capability-list { grid-template-columns: minmax(0, 1fr); } }

/* A quiet way out when something feels off. */
.support-footer { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; color: var(--tertiary); font-size: 13px; }
.support-footer .button { min-height: 32px; padding: 4px 4px 4px 0; border: 0; background: transparent; box-shadow: none; color: var(--accent); font-weight: 600; }
.support-footer .button:hover { background: transparent; text-decoration: underline; text-decoration-color: var(--brand-soft); text-decoration-thickness: 2px; text-underline-offset: 4px; }
[data-effects=on] .support-footer .button:hover { translate: none; box-shadow: none; }

/* Segmented control: one choice of a small set, the chosen one lifts. */
.segmented-control { display: inline-flex; flex-wrap: nowrap; gap: 2px; width: fit-content; padding: 4px; border: 1px solid var(--border); border-radius: var(--radius-pill); background: rgb(255 255 255 / .03); }
.segmented-control > .button { min-height: 34px; padding: 5px 18px; border: 0; border-radius: var(--radius-pill); background: transparent; box-shadow: none; color: var(--muted); font-weight: 550; }
.segmented-control > .button:hover:not(:disabled) { background: rgb(255 255 255 / .06); color: var(--text); }
.segmented-control > .button[aria-pressed=true], .segmented-control > .button.primary { background: var(--select-fill); color: var(--text); border: 0; box-shadow: inset 0 0 0 1px var(--select-edge); font-weight: 650; }
.segmented-control > .button.primary:hover:not(:disabled) { background: rgb(255 255 255 / .12); box-shadow: inset 0 1px 0 rgb(255 255 255 / .06); }
[data-effects=on] .segmented-control > .button:hover:not(:disabled) { translate: none; box-shadow: none; }
[data-effects=on] .segmented-control > .button[aria-pressed=true]:hover { box-shadow: inset 0 1px 0 rgb(255 255 255 / .06); }
.segmented-control > .button.primary::after { display: none; }

/* A single on/off choice reads as one line: box first, then what it means. */
.console-field:has(> input[type=checkbox]:only-of-type) { display: flex; flex-direction: row-reverse; justify-content: flex-end; align-items: center; gap: 10px; min-height: 36px; color: var(--text); font-weight: 500; cursor: pointer; }
.console-panel textarea, .console-field textarea { width: 100%; resize: vertical; }
.page[data-view=support] section > textarea[readonly] { margin-top: 10px; background: var(--surface-soft); color: var(--muted); font: 12px/1.8 ui-monospace, "SF Mono", SFMono-Regular, Menlo, monospace; box-shadow: none; }
/* Single-column forms stay at a comfortable reading width on wide screens. */
.console-panel > :is(.console-form, div, section) > .console-field:not(:has(> input[type=checkbox])), .console-panel > .console-field { max-width: 680px; }

/* Homepage detail: the stat figures' white-to-grey fill. Digits stay final;
   only their paint changes. */
.dashboard-metrics .metric-amount, .dashboard-metrics .metric-value { background: linear-gradient(180deg, #ffffff 22%, #a7b3cc); -webkit-background-clip: text; background-clip: text; color: transparent; }
@media (forced-colors: active) {
  .dashboard-metrics .metric-amount, .dashboard-metrics .metric-value { background: none; color: CanvasText; }
}

/* 直播设置: scene tabs, grouped settings and one sticky save bar. No entrance
   motion; the page uses the shared single page fade only. */
.live-settings { display: grid; gap: 16px; min-width: 0; }
.live-settings-tabs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.live-settings-tab { flex: 0 0 auto; min-height: 38px; padding: 8px 14px; border: 1px solid var(--border); border-radius: var(--radius-pill); background: var(--surface-soft); color: var(--muted); font-size: 13px; }
.live-settings-tab[aria-current="true"] { border-color: rgb(255 255 255 / .26); background: var(--select-fill); color: var(--text); }
.live-settings-tab[data-changed="true"]::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 7px; border-radius: 50%; background: var(--accent); vertical-align: middle; }
.live-settings-scene { display: grid; gap: 14px; min-width: 0; }
.live-settings-summary { margin: 0; }
.live-settings-section { margin: 0; background: var(--surface); }
details.live-settings-section > summary { cursor: pointer; font-weight: 600; padding: 2px 0; }
details.live-settings-section[open] > summary { margin-bottom: 10px; }
.live-settings-section > .hint { margin: 0; line-height: 1.7; }
.live-settings-item { display: grid; gap: 6px; min-width: 0; }
.live-settings-item > strong { font-size: 13px; }
.live-settings-item .console-field textarea { min-height: 72px; }
.live-settings-account { padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface-sunken); }
.live-settings-switchboard { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.live-settings-switch-group { display: grid; gap: 2px; align-content: start; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface-soft); }
.live-settings-switch-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.live-settings-switch-head .text-button { min-height: 32px; padding: 4px 0; }
.live-settings-switch-group .check-row small { flex-basis: 100%; margin-left: 46px; color: var(--tertiary); font-size: 11px; }
.live-settings-runtime { display: grid; gap: 8px; }
.live-settings-runtime-row { display: flex; align-items: center; gap: 12px; padding: 8px 12px; border: 1px solid var(--border); border-radius: var(--radius-md); }
.live-settings-runtime-row > strong { flex: 1; font-size: 13px; }
.live-settings-status { color: var(--muted); font-size: 12px; }
.live-settings-missing { margin: 0; }
.live-settings-presets { display: grid; gap: 10px; min-width: 0; }
.live-settings-presets > .hint { margin: 0; }
.live-settings-preset { display: grid; gap: 8px; min-width: 0; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface-soft); }
.live-settings-preset-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; min-width: 0; }
.live-settings-preset-head > input { flex: 0 1 180px; min-width: 0; }
.live-settings-preset-head > .hint { flex: 1 1 200px; margin: 0; font-size: 12px; }
.live-settings-preset-head .console-actions { margin: 0; }
.live-settings-preset-detail > summary { cursor: pointer; color: var(--muted); font-size: 13px; }
.live-settings-preset-grid { display: grid; gap: 8px 12px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin-top: 10px; }
.live-settings-preset-new { display: flex; flex-wrap: wrap; align-items: end; gap: 8px 12px; }
.live-settings-preset-new .console-field { flex: 0 1 240px; min-width: 0; }
/* 直播设置 cards: switch and summary in the header, settings on demand. */
.live-settings-cards { display: grid; gap: 10px; min-width: 0; }
.live-settings-card { min-width: 0; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface); scroll-margin: 90px 0 120px; }
.live-settings-card-head { display: flex; align-items: center; gap: 14px; min-width: 0; padding: 12px 16px; }
.live-settings-card-head > input.switch-control { flex: 0 0 auto; }
.live-settings-card-open { flex: 1; display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "title chevron" "summary chevron"; align-items: center; gap: 3px 14px; min-width: 0; min-height: 40px; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.live-settings-card-open:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; border-radius: 6px; }
.live-settings-card-title { grid-area: title; min-width: 0; color: var(--text); font-size: 14px; font-weight: 600; }
.live-settings-card[data-changed="true"] .live-settings-card-title::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 8px; border-radius: 50%; background: var(--accent); vertical-align: middle; }
.live-settings-card-summary { grid-area: summary; min-width: 0; overflow: hidden; color: var(--muted); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.live-settings-card[data-on="false"] .live-settings-card-summary { color: var(--tertiary); }
.live-settings-card-chevron { grid-area: chevron; width: 8px; height: 8px; margin-right: 4px; border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); transform: rotate(-45deg); transition: transform .2s var(--ease-out); }
.live-settings-card-open[aria-expanded="true"] .live-settings-card-chevron { transform: rotate(45deg); }
.live-settings-card-body { display: grid; gap: 14px; min-width: 0; padding: 14px 16px 18px; border-top: 1px solid var(--hairline); }
.live-settings-card-body > .hint { margin: 0; line-height: 1.7; }
.live-settings-card[data-missing="true"] { padding-bottom: 12px; }
.live-settings-card[data-missing="true"] > .live-settings-missing { padding: 0 16px; }
/* A card whose switch is on but would send nothing; a list emptied that must keep a line. */
.live-settings-card-warning { margin: -4px 16px 12px; padding: 8px 12px; border: 1px solid var(--warning-edge); border-radius: var(--radius-sm); background: var(--warning-fill); color: var(--warning); font-size: 12px; line-height: 1.6; }
.live-settings-needed { color: var(--warning); font-size: 12px; }
.live-settings-item:has([aria-invalid=true]) .live-settings-needed { color: var(--danger); }
/* 一位观众进房后: numbered steps, each with its state from the draft. */
.live-settings-order { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.live-settings-order-step { position: relative; display: grid; gap: 4px; padding: 0 0 14px 40px; }
.live-settings-order-step:not(:last-child)::before { content: ""; position: absolute; top: 30px; bottom: 4px; left: 13px; width: 1px; background: var(--border-strong); }
.live-settings-order-head { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; min-width: 0; }
.live-settings-order-number { position: absolute; top: 0; left: 0; display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border: 1px solid var(--border-strong); border-radius: 50%; background: var(--surface-soft); color: var(--muted); font: 600 11px/1 var(--mono); font-variant-numeric: tabular-nums; }
.live-settings-order-head strong { color: var(--text); font-size: 14px; line-height: 28px; }
.live-settings-order-status { padding: 1px 8px; border: 1px solid var(--border-strong); border-radius: 6px; color: var(--muted); font-size: 11px; line-height: 1.7; }
.live-settings-order-step[data-off="true"] .live-settings-order-head strong { color: var(--tertiary); }
.live-settings-order-text { margin: 0; color: var(--muted); font-size: 12.5px; line-height: 1.75; }
/* 文案总览: one row per group of lines, editable in place. */
.live-settings-copy { display: grid; gap: 18px; min-width: 0; }
.live-settings-copy-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.live-settings-copy-tools > input[type=search] { flex: 1 1 240px; min-width: 0; }
.live-settings-copy-empty { margin: 0; }
.live-settings-copy-group { display: grid; gap: 10px; min-width: 0; }
.live-settings-copy-group > h3 { margin: 4px 0 0; color: var(--muted); font-size: 13px; font-weight: 600; }
.live-settings-copy-row { display: grid; gap: 8px; min-width: 0; padding: 14px 16px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface); }
.live-settings-copy-row[data-attention="true"] { border-color: var(--warning-edge); }
.live-settings-copy-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 6px 12px; min-width: 0; }
.live-settings-copy-title { display: grid; gap: 2px; min-width: 0; }
.live-settings-copy-title strong { color: var(--text); font-size: 14px; }
.live-settings-copy-where { color: var(--tertiary); font-size: 12px; }
.live-settings-copy-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.live-settings-copy-preview { display: grid; gap: 2px; margin: 0; padding: 0 0 0 1.1em; color: var(--ink-soft); font-size: 13px; line-height: 1.7; overflow-wrap: anywhere; }
.live-settings-copy-more { list-style: none; margin-left: -1.1em; color: var(--tertiary); font-size: 12px; }
.live-settings-copy-note { margin: 0; color: var(--muted); font-size: 12px; }
.live-settings-copy-row[data-attention="true"] .live-settings-copy-note { color: var(--warning); }
.live-settings-copy-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; }
.live-settings-copy-actions .button { min-height: 34px; padding: 6px 12px; font-size: 12px; }
.live-settings-copy-actions .text-button { min-height: 34px; padding: 6px 0; }
.live-settings-copy-editor { min-width: 0; padding-top: 10px; border-top: 1px solid var(--hairline); }
.live-settings-copy-editor .live-settings-needed { display: none; } /* the row says it already */
.live-settings-card .check-row { flex-wrap: wrap; }
.live-settings-card .check-row small { flex-basis: 100%; margin-left: 53px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.live-settings-card-body .console-field > :is(input[type="number"], select) { max-width: 360px; }
.live-settings-more { min-width: 0; }
.live-settings-more > summary { width: fit-content; padding: 4px 0; color: var(--muted); font-size: 13px; cursor: pointer; }
.live-settings-more[open] > summary { margin-bottom: 10px; }
.live-settings-more-body { display: grid; gap: 14px; min-width: 0; padding-left: 12px; border-left: 2px solid var(--hairline); }
.live-settings-checks { display: flex; flex-wrap: wrap; gap: 2px 22px; min-width: 0; }
.live-settings-checks .check-row { padding: 3px 0; }
.live-settings-rhythm { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 8px 14px; min-width: 0; }
.live-settings-rhythm-label { color: var(--muted); font-size: 12px; font-weight: 550; }
.live-settings-rhythm-options { display: flex; flex-wrap: wrap; gap: 6px; }
.live-settings-rhythm-option { min-height: 32px; padding: 5px 14px; border: 1px solid var(--border); border-radius: var(--radius-pill); background: var(--surface-soft); color: var(--muted); font: inherit; font-size: 13px; cursor: pointer; transition: border-color .2s, background-color .2s, color .2s; }
.live-settings-rhythm-option:hover { border-color: var(--border-hover); color: var(--text); }
.live-settings-rhythm-option[aria-checked="true"] { border-color: rgb(255 255 255 / .26); background: var(--select-fill); color: var(--text); }
.live-settings-rhythm-note { grid-column: 2; margin: 0; font-size: 12px; }
.live-settings-color { display: flex; align-items: center; gap: 8px; min-width: 0; }
.live-settings-color > input[type="color"] { flex: 0 0 40px; width: 40px; height: 36px; padding: 3px; border-radius: var(--radius-sm); cursor: pointer; }
.live-settings-color > input[type="text"] { flex: 1; min-width: 0; }
.live-settings-lines { display: grid; gap: 8px; min-width: 0; }
.live-settings-lines > strong { font-size: 13px; }
.live-settings-line-list { display: grid; gap: 6px; min-width: 0; }
.live-settings-line-list:empty { display: none; }
.live-settings-line { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) auto; gap: 6px; min-width: 0; }
.live-settings-line > :is(input, select) { min-width: 0; }
.live-settings-lines > .button { justify-self: start; }
/* 专属欢迎: one block per viewer, plus a picker of people the room has seen. */
.live-settings-viewers { display: grid; gap: 10px; min-width: 0; }
.live-settings-viewers > strong { font-size: 13px; }
.live-settings-viewers > .hint { margin: 0; line-height: 1.7; }
.live-settings-viewers > .button { justify-self: start; }
.live-settings-viewer-list { display: grid; gap: 8px; min-width: 0; }
.live-settings-viewer-list:empty { display: none; }
.live-settings-viewer { display: grid; gap: 8px; min-width: 0; padding: 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface-soft); }
.live-settings-viewer-head { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 6px 10px; min-width: 0; }
.live-settings-viewer-head > input { min-width: 0; font-weight: 600; }
.live-settings-viewer-uid { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.live-settings-viewer-lines { display: grid; gap: 6px; min-width: 0; }
.live-settings-viewer-line { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px; min-width: 0; }
.live-settings-viewer-line > input { min-width: 0; }
.live-settings-viewer-more { justify-self: start; }
.live-settings-viewer-tally { margin: 0; font-size: 12px; }
.live-settings-viewer-picker { display: grid; gap: 8px; min-width: 0; padding: 12px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); background: var(--surface-sunken); }
.live-settings-viewer-picker[hidden] { display: none; }
.live-settings-viewer-picker > input { width: 100%; min-width: 0; }
.live-settings-viewer-picker > .button { justify-self: start; }
.live-settings-viewer-note { margin: 0; font-size: 12px; }
.live-settings-viewer-note:empty { display: none; }
.live-settings-viewer-choices { display: flex; flex-wrap: wrap; gap: 6px; max-height: 260px; overflow: auto; min-width: 0; }
.live-settings-viewer-choices:empty { display: none; }
.live-settings-viewer-choice { max-width: 100%; min-height: 32px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.live-settings-viewer-choice:disabled { opacity: .45; cursor: default; }
.live-settings-gift-picks { display: flex; flex-wrap: wrap; gap: 6px 16px; min-width: 0; }
.live-settings-gift-pick { display: flex; align-items: center; gap: 7px; color: var(--text); font-size: 13px; }
.live-settings-gift-pick input { width: 16px; height: 16px; accent-color: var(--accent); }
.live-settings-item > .button.subtle { justify-self: start; }
.live-settings-pairs { display: grid; grid-template-columns: minmax(0, 1fr) 64px 64px; align-items: center; gap: 2px 8px; min-width: 0; max-width: 520px; }
.live-settings-pairs-head { color: var(--muted); font-size: 12px; font-weight: 550; }
.live-settings-pairs-head:not(:first-child), .live-settings-pairs-cell { justify-self: center; text-align: center; }
.live-settings-pairs-label { padding: 7px 0; color: var(--text); font-size: 13px; border-top: 1px solid var(--hairline); }
.live-settings-pairs-cell { align-self: stretch; display: grid; place-items: center; width: 100%; border-top: 1px solid var(--hairline); }
.live-settings-pairs-head:nth-child(-n+3) { padding-bottom: 4px; }
.live-settings-pairs input[type="checkbox"] { width: 17px; height: 17px; accent-color: var(--accent); cursor: pointer; }
.live-settings-switch-row { display: flex; align-items: center; gap: 8px; min-width: 0; }
.live-settings-switch-row > .check-row { flex: 1; min-width: 0; }
.live-settings-switch-open { flex: 0 0 auto; min-height: 30px; padding: 2px 0; font-size: 12px; }
.live-settings-found { outline: 2px solid var(--focus); outline-offset: 6px; border-radius: 10px; }
.live-settings-finder { position: relative; display: grid; gap: 6px; min-width: 0; max-width: 560px; }
.live-settings-finder > input { width: 100%; min-width: 0; }
.live-settings-results-note { margin: 0; font-size: 12px; }
.live-settings-results-note:empty { display: none; }
.live-settings-results { position: absolute; top: calc(100% + 4px); left: 0; right: 0; z-index: 5; display: grid; max-height: min(420px, 60vh); overflow: auto; padding: 6px; border: 1px solid var(--border-strong); border-radius: var(--radius-md); background: var(--modal); box-shadow: var(--shadow-md); }
.live-settings-results[hidden] { display: none; }
.live-settings-result { display: grid; gap: 2px; min-width: 0; padding: 9px 12px; border: 0; border-radius: var(--radius-sm); background: none; color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.live-settings-result > strong { font-size: 13px; font-weight: 600; }
.live-settings-result > small { color: var(--muted); font-size: 12px; }
.live-settings-result:hover, .live-settings-result[aria-selected="true"] { background: var(--accent-soft); }
.scene-settings-links { display: grid; gap: 14px; min-width: 0; }
.scene-settings-links > h3 { margin: 0; }
.scene-settings-links > .hint { margin: 0; line-height: 1.8; }
.scene-settings-links > .button { justify-self: start; }
.scene-settings-groups { display: grid; gap: 12px; min-width: 0; }
.scene-settings-group { display: grid; gap: 6px; min-width: 0; padding-top: 12px; border-top: 1px solid var(--border); }
.scene-settings-group > strong { color: var(--muted); font-size: 12px; font-weight: 550; }
.scene-settings-cards { display: flex; flex-wrap: wrap; gap: 6px; }
.scene-settings-link { padding: 6px 12px; border: 1px solid var(--border); border-radius: var(--radius-pill); background: var(--surface-soft); color: var(--text); font-size: 13px; text-decoration: none; }
.scene-settings-link:hover { border-color: var(--accent); }
.live-settings-footer { position: sticky; bottom: 0; z-index: 2; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; border: 1px solid var(--border); border-radius: var(--radius-md); }
.live-settings-footer-text { display: grid; gap: 2px; min-width: 0; flex: 1 1 240px; }
.live-settings-footer-text .hint { margin: 0; }
.live-settings-footer .plugin-save-row { padding: 0; }
@media (max-width: 760px) {
  /* The phone shortcut bar is fixed over the bottom edge (about 65px); keep
     the save bar above it so 保存 stays reachable. */
  .live-settings-footer { bottom: calc(66px + env(safe-area-inset-bottom)); }
}
@media (max-width: 640px) {
  .live-settings-footer { padding: 12px 14px 12px; }
  .live-settings-footer .plugin-save-row { width: 100%; justify-content: flex-end; }
  .live-settings-switch-group .check-row small { margin-left: 0; }
  .live-settings-card-head { gap: 10px; padding: 12px; }
  .live-settings-card-body { padding: 12px 12px 16px; }
  .live-settings-rhythm { grid-template-columns: minmax(0, 1fr); }
  .live-settings-rhythm-note { grid-column: 1; }
  .live-settings-line { grid-template-columns: minmax(0, 1fr) auto; }
  .live-settings-line > :nth-child(2) { grid-column: 1 / -1; grid-row: 2; }
  .live-settings-viewer-head { grid-template-columns: minmax(0, 1fr) auto; }
  .live-settings-viewer-head > input { grid-column: 1 / -1; }
  .live-settings-pairs { grid-template-columns: minmax(0, 1fr) 52px 52px; }
  .live-settings-more-body { padding-left: 10px; }
}

/* ==========================================================================
   Design system 4.1 detail layer (简约指挥舱). Paint only: figures read as
   instruments in a monospaced face, and nothing else is drawn on top of the
   rules above. Desktop-only chrome needs min-width: 761px because phones
   restyle the sidebar and top bar as one glass header; forced colours keep the
   system palette.
   ========================================================================== */
/* Figures read as instruments: a monospaced face with tabular digits. */
.metric-amount, .metric-value, .chart-peak > strong, .chart-tooltip > strong, .chart-axis, .chart-dates,
.overview-session-activity strong, .overview-updated, .overview-date, .overview-room, .console-search-trigger kbd { font-family: var(--mono); font-variant-numeric: tabular-nums; }
:root { scrollbar-color: rgb(255 255 255 / .18) transparent; }
@media (min-width: 761px) and (forced-colors: none) {
  .sidebar { background: linear-gradient(90deg, rgb(8 12 22 / .6), rgb(8 12 22 / .28)); }
}

/* ==========================================================================
   Motion language 1.1 — 信号语法·简约 (quiet signal grammar). Every control
   still moves the way its job works, only quieter: a press sinks, a selection
   slides to its new place, a switch fills, a panel deploys, a page fades in
   from the side of the navigation it came from, a result confirms or is
   refused. No glow, no overshoot and nothing that sweeps over content. Motion
   never delays reading or input, figures never move, motion is one-shot (live
   status is the only breathing loop), and the 界面动效 switch or the system's
   reduced-motion setting turns all of it off. Decorative rules run only under
   [data-effects=on]; the scripted half lives in ConsoleEffects.
   ========================================================================== */
:root { --t-press: 90ms; --t-quick: 160ms; --t-state: 240ms; --t-travel: 320ms; --e-out: cubic-bezier(.22, 1, .36, 1); }
/* 按压 Press: links sink like buttons do. */
[data-effects=on] :is(.sidebar nav a, .mobile-shortcuts a, .page-related-nav a, .console-search-results a, .sidebar-assistance a):active { scale: .98; }
/* 回应 Respond: one faint wash from the pressed point, a little brighter on the
   main action and red on a dangerous one. */
.fx-ripple { --ripple: #fff; --ripple-alpha: .1; }
.button.primary > .fx-ripple { --ripple: #fff; --ripple-alpha: .26; }
.button.danger > .fx-ripple { --ripple: var(--danger); --ripple-alpha: .2; }
/* 滑动 Slide: the old highlight lets go at once; the new one fades in as the
   sliding block (ConsoleEffects.glide), drawn like a selection, arrives. */
[data-effects=on] :is(.sidebar nav a[aria-current=page], .mobile-shortcuts a[aria-current=page], .live-settings-tab[aria-current=true], .segmented-control > .button:is([aria-pressed=true], .primary),
  .chart-ranges button[aria-pressed=true], .chart-view-switch button[aria-pressed=true], .business-date-shortcuts .button[aria-pressed=true], .plugin-manager-tab[aria-selected=true],
  .business-data-tabs .button[aria-selected=true], .plugin-filter[aria-pressed=true], .live-settings-rhythm-option[aria-checked=true], .template-choice[aria-checked=true]),
[data-effects=on] :is(.sidebar nav a[aria-current=page], .plugin-manager-tab[aria-selected=true])::before { transition-delay: .1s; }
[data-effects=on] #content > .page:is([data-enter=true], [data-enter=body]):not(.page-pending) .page-related-nav a[aria-current=page]::after { animation: underline-lock .3s var(--e-out) .1s backwards; }
.fx-glide { position: fixed; z-index: 45; pointer-events: none; transform-origin: 0 0; border-radius: 9px; background: var(--select-fill); box-shadow: inset 0 0 0 1px var(--select-edge); }
.fx-glide[data-shape=lane] { background: var(--nav-selection); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .1); }
.fx-glide[data-shape=line] { border-radius: 2px; background: var(--ink); box-shadow: none; }
@keyframes underline-lock { from { transform: scaleX(0); } }
/* 展开 Deploy: dialogs rise into place (dialog-arrive); the feature sheet slides in
   from the edge it is pinned to. Closing stays instant so focus returns at once. */
[data-effects=on] dialog.plugin-manager-dialog[open] { animation-name: sheet-arrive; }
@keyframes sheet-arrive { from { translate: 24px 0; opacity: .5; } to { translate: 0 0; opacity: 1; } }
/* 载入 Arrive: a page fades in from the side of the navigation it came from (pages
   higher in the list come from above). Readable from the first frame; 0.22 s. */
[data-effects=on] #content > .page[data-enter=true][data-enter-from=above]:not(.page-pending) { animation-name: page-in-above; }
@keyframes page-in-above { from { opacity: .4; transform: translateY(-6px); } }
/* 同类切换 Within a group: pages under one set of tabs share the heading and the
   tabs, so those stay perfectly still (app.mjs marks data-enter=body) and only the
   body below them comes in, from the side of the chosen tab. */
[data-effects=on] #content > .page[data-enter=body]:not(.page-pending) > :is(.page-section-nav, .page-body) { animation: body-in var(--t-state) var(--e-out) backwards; }
[data-effects=on] #content > .page[data-enter=body][data-enter-from=left]:not(.page-pending) > :is(.page-section-nav, .page-body) { animation-name: body-in-left; }
@keyframes body-in { from { opacity: .55; transform: translateX(10px); } }
@keyframes body-in-left { from { opacity: .55; transform: translateX(-10px); } }
/* 聚焦 Focus: keyboard focus settles onto its target. */
[data-effects=on] :is(.button, .icon-button, .text-button, .section-link, .sidebar nav a, .mobile-shortcuts a, .console-search-trigger, .plugin-manager-tab, .live-settings-card-open, .chart-point, summary):not(.effects-toggle):focus-visible { animation: focus-aim .2s var(--e-out); }
@keyframes focus-aim { from { outline-offset: 7px; outline-color: rgb(226 232 245 / 0); } }
/* 感应 Sense: cards that open something brighten their edge as the pointer arrives. */
@media (hover: hover) and (pointer: fine) {
  [data-effects=on] :is(.setup-step, .workbench-feature-link):hover { border-color: var(--border-hover); }
}

/* ==========================================================================
   Live workbench · 功能操作台 (feature deck, 4.1). The live features used to
   stack up as a wall of tall cards (about 65 buttons with nine features). A
   rail now lists every feature with its live status and the chosen one fills
   the panel beside it; on narrow screens the rail becomes a row of chips above
   the panel. A panel reads top to bottom: what needs attention, the live view
   and its controls, then folded tools (the feature's own, then upkeep). Same
   quiet language as the rest of 4.1: flat sheets inside hairlines, white for
   the selection, pink only for the main action and live state, amber and red
   only for warnings and failures.
   ========================================================================== */
.workbench-deck { display: grid; grid-template-columns: 236px minmax(0, 1fr); gap: 20px; align-items: start; min-width: 0; scroll-margin-top: 90px; }
.workbench-deck:has(> .workbench-feature-tabs:empty) { grid-template-columns: minmax(0, 1fr); }
.workbench-feature-tabs:empty { display: none; }
.workbench-feature-tabs { position: sticky; top: 76px; z-index: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; padding: 6px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--sheet); box-shadow: var(--shadow-xs); }
.workbench-feature-tab { display: grid; grid-template-columns: 30px minmax(0, 1fr) 7px; grid-template-areas: "icon name mark" "icon status mark"; align-items: center; gap: 1px 11px; width: 100%; min-width: 0; min-height: 54px; padding: 8px 12px 8px 9px; border: 1px solid transparent; border-radius: var(--radius-md); background: transparent; color: var(--muted); font: inherit; text-align: left; }
.workbench-feature-tab:hover { background: rgb(255 255 255 / .04); color: var(--text); }
.workbench-feature-tab[aria-selected=true] { border-color: var(--select-edge); background: var(--select-fill); color: var(--text); }
.workbench-feature-tab:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.workbench-feature-tab .plugin-symbol { grid-area: icon; width: 30px; height: 30px; border-radius: 9px; box-shadow: inset 0 1px 0 rgb(255 255 255 / .07); }
.workbench-feature-tab .plugin-symbol .icon { width: 16px; height: 16px; }
.workbench-feature-tab-name { grid-area: name; min-width: 0; overflow: hidden; font-size: 13px; font-weight: 600; line-height: 1.45; text-overflow: ellipsis; white-space: nowrap; }
.workbench-feature-tab-status { grid-area: status; min-width: 0; overflow: hidden; color: var(--tertiary); font-size: 11px; line-height: 1.5; text-overflow: ellipsis; white-space: nowrap; }
.workbench-feature-tab[data-tone=green] .workbench-feature-tab-status { color: var(--success); }
.workbench-feature-tab[data-tone=amber] .workbench-feature-tab-status { color: var(--warning); }
.workbench-feature-tab[data-tone=red] .workbench-feature-tab-status { color: var(--danger); }
/* A dot beside a feature whose panel shows a warning or has something waiting. */
.workbench-feature-tab:is([data-attention=true], [data-tone=amber], [data-tone=red])::after { content: ""; grid-area: mark; width: 7px; height: 7px; border-radius: 50%; background: var(--warning); }
.workbench-feature-tab[data-tone=red]::after { background: var(--danger); }

/* The chosen feature's panel. */
.live-workspace .workbench-panels { min-width: 0; }
.live-workspace .workbench-card { gap: 0; padding: 0; overflow: clip; border-radius: var(--radius-lg); background: var(--sheet); scroll-margin-top: 90px; }
.live-workspace .workbench-card-heading { gap: 12px 16px; padding: 18px 22px; border-bottom: 1px solid var(--border); }
.live-workspace .workbench-card-identity { gap: 13px; }
.live-workspace .workbench-card-identity .plugin-symbol { width: 40px; height: 40px; border-radius: 11px; box-shadow: inset 0 1px 0 rgb(255 255 255 / .08); }
.live-workspace .workbench-card-identity .plugin-symbol .icon { width: 20px; height: 20px; }
.live-workspace .workbench-card h2 { font-size: 17px; font-weight: 600; letter-spacing: -.2px; line-height: 1.4; }
.live-workspace .workbench-card-meta { gap: 10px; margin-top: 3px; }
.live-workspace .workbench-card-meta .badge { font-size: 12px; }
.live-workspace .workbench-card-meta small { color: var(--quiet); font-family: var(--mono); font-size: 11px; }
.live-workspace .workbench-card-controls { gap: 6px; }
.live-workspace .workbench-card-controls .button { min-height: 34px; padding: 6px 12px; gap: 6px; font-size: 12px; }
.live-workspace .workbench-card-controls .button .icon { width: 14px; height: 14px; }
/* 1 · What needs attention: state, readiness warnings, budget limits and errors. */
.workbench-card-notices { display: grid; gap: 10px; min-width: 0; padding: 16px 22px 0; }
.workbench-card-notices:not(:has(> :not([hidden], :empty))) { display: none; }
.live-workspace .workbench-state-hint { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface-soft); color: var(--muted); font-size: 12px; line-height: 1.7; }
.live-workspace .workbench-state-hint::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--tertiary); }
.live-workspace .workbench-runtime-notice { padding: 12px 14px; border-radius: var(--radius-md); font-size: 12px; line-height: 1.75; }
.plugin-readiness-row { align-items: center; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface-soft); }
.plugin-readiness-row[data-tone="warning"] { border: 1px solid var(--warning-edge); background: var(--warning-fill); }
.plugin-readiness-row[data-tone="warning"] strong { color: var(--warning); }
.plugin-readiness-row strong { font-size: 13px; font-weight: 600; }
.plugin-readiness-row .hint { margin-top: 2px; color: var(--muted); line-height: 1.7; }
@media (max-width: 600px) { .plugin-readiness-row { align-items: stretch; } .plugin-readiness-row .button { align-self: flex-start; } }
/* 2 · The live view and its controls. */
.workbench-card-body { display: grid; gap: 16px; min-width: 0; padding: 20px 22px 22px; }
.live-workspace .workbench-card .workbench-candidates { padding: 16px 18px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface-soft); }
.live-workspace .workbench-card .workbench-candidates:has(.workbench-candidate) { border-color: var(--border-strong); }
.live-workspace .workbench-candidates .workbench-candidate-heading h3 { font-size: 14px; }
.live-workspace .workbench-candidate { padding: 14px 0 12px; border-bottom-color: var(--hairline); }
.live-workspace .workbench-candidate > p { margin: 8px 0 12px; font-size: 14px; line-height: 1.75; }
.live-workspace .workbench-display { max-height: 360px; padding: 14px 16px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface-sunken); }
.live-workspace .workbench-display .workbench-snapshot-section h3 { color: var(--muted); font-size: 12px; font-weight: 600; }
.live-workspace .workbench-display .workbench-snapshot-section p { color: var(--ink-soft); }
.live-workspace .workbench-plugin-actions { gap: 8px; }
.live-workspace .workbench-plugin-actions .button { min-height: 38px; padding: 8px 16px; }
.workbench-prize { max-width: 420px; }
.workbench-prize-hint { margin-top: -6px; }
.live-workspace .workbench-result { padding: 14px 16px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface-soft); font-size: 13px; line-height: 1.75; }
.live-workspace .workbench-result h3 { margin: 4px 0 6px; font-size: 13px; }
.live-workspace .workbench-result h3:first-child { margin-top: 0; }
.live-workspace .workbench-result .workbench-result-row { padding: 10px 0; border-top: 1px solid var(--hairline); }
.live-workspace .workbench-result .workbench-result-row .console-actions { margin-top: 8px; }
.live-workspace .workbench-card-body > .workbench-snapshot-section { display: grid; gap: 10px; min-width: 0; padding-top: 18px; border-top: 1px solid var(--border); }
.live-workspace .workbench-card-body > .workbench-snapshot-section > h3 { font-size: 14px; }
.live-workspace .workbench-card-body > .workbench-snapshot-section > select { justify-self: start; }
.live-workspace .workbench-card-body > .workbench-snapshot-section > :is(div, p):empty { display: none; }
.live-workspace .workbench-card select { min-height: 38px; padding: 8px 38px 8px 12px; border: 1px solid var(--border-strong); border-radius: var(--radius-md); background-color: var(--field); background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(-45deg, transparent 50%, var(--muted) 50%); background-repeat: no-repeat; background-position: right 19px center, right 14px center; background-size: 5px 5px; color: var(--text); font-size: 12px; }
/* 3 · Folded tools: a row with the title, one line on what it is for (while folded) and a chevron. */
.workbench-card-tools { display: grid; min-width: 0; padding: 4px 22px 10px; border-top: 1px solid var(--border); }
.workbench-tool-list { display: grid; min-width: 0; }
.workbench-tool-list:not(:has(> details:not([hidden]))) { display: none; }
.workbench-tool-list + .workbench-tool-list { margin-top: 6px; }
.workbench-tools-label { margin: 12px 0 0; color: var(--quiet); font-size: 11px; font-weight: 600; letter-spacing: .5px; }
details.workbench-tool { min-width: 0; border-top: 1px solid var(--hairline); }
.workbench-tool-list > details.workbench-tool:first-child, .workbench-tools-label + details.workbench-tool { border-top: 0; }
details.workbench-tool > summary { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 12px 0; list-style: none; color: var(--text); font-size: 13px; font-weight: 600; }
details.workbench-tool > summary::-webkit-details-marker { display: none; }
.workbench-tool-title { flex: none; }
.workbench-tool-note { flex: 1; min-width: 0; overflow: hidden; color: var(--tertiary); font-size: 12px; font-weight: 400; text-overflow: ellipsis; white-space: nowrap; }
details.workbench-tool[open] > summary > .workbench-tool-note { visibility: hidden; }
details.workbench-tool > summary > .icon[data-icon=chevron] { flex: none; width: 16px; height: 16px; margin-left: auto; color: var(--muted); }
details.workbench-tool > summary:hover > .icon[data-icon=chevron] { color: var(--text); }
details.workbench-tool[open] > summary > .icon[data-icon=chevron] { transform: rotate(180deg); }
[data-effects=on] details.workbench-tool > summary > .icon[data-icon=chevron] { transition: transform var(--t-state) var(--e-out), color .2s; }
details.workbench-tool > .workbench-tools-body { display: grid; gap: 12px; min-width: 0; padding: 0 0 20px; }
.workbench-tools-body details:not(.workbench-tool) > summary { display: inline-flex; align-items: center; gap: 9px; list-style: none; color: var(--muted); font-size: 12px; }
.workbench-tools-body details:not(.workbench-tool) > summary::-webkit-details-marker { display: none; }
.workbench-tools-body details:not(.workbench-tool) > summary::before { content: ""; flex: none; width: 6px; height: 6px; margin: 0 2px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(-45deg); }
.workbench-tools-body details[open]:not(.workbench-tool) > summary::before { transform: rotate(45deg); }
.live-workspace .workbench-memory-row { padding: 12px 0; border-bottom-color: var(--hairline); }
/* The workspace-wide panels below the features fold the same way. */
.live-workspace :is(.workbench-readiness, .live-transcription) > summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 28px; padding: 0; list-style: none; color: var(--text); font-size: 14px; font-weight: 600; }
.live-workspace :is(.workbench-readiness, .live-transcription) > summary::-webkit-details-marker { display: none; }
.live-workspace :is(.workbench-readiness, .live-transcription) > summary::after { content: ""; flex: none; width: 7px; height: 7px; margin: 0 5px 4px 0; border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); transform: rotate(45deg); }
.live-workspace :is(.workbench-readiness, .live-transcription)[open] > summary::after { margin-bottom: 0; transform: rotate(225deg); }
/* 滑动 and 同类切换: the rail's selection slides (ConsoleEffects) and the panel
   comes in from the side of the chosen feature, 0.24 s, readable at once. */
[data-effects=on] .workbench-feature-tab[aria-selected=true] { transition-delay: .1s; }
[data-effects=on] .live-workspace .workbench-card[data-enter=after] { animation: panel-in-after var(--t-state) var(--e-out) backwards; }
[data-effects=on] .live-workspace .workbench-card[data-enter=before] { animation: panel-in-before var(--t-state) var(--e-out) backwards; }
@keyframes panel-in-after { from { opacity: .55; transform: translateY(8px); } }
@keyframes panel-in-before { from { opacity: .55; transform: translateY(-8px); } }
@media (max-width: 1099px) {
  .workbench-deck { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .workbench-feature-tabs { position: static; flex-direction: row; gap: 6px; overflow-x: auto; padding: 5px; overscroll-behavior-x: contain; scrollbar-width: none; }
  .workbench-feature-tabs::-webkit-scrollbar { display: none; }
  .workbench-feature-tab { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; width: auto; min-height: 44px; padding: 6px 12px 6px 7px; }
  .workbench-feature-tab .plugin-symbol { width: 26px; height: 26px; border-radius: 8px; }
  .workbench-feature-tab .plugin-symbol .icon { width: 14px; height: 14px; }
  .workbench-feature-tab-name { font-size: 12px; }
  .workbench-feature-tab-status { display: none; }
  [data-effects=on] .live-workspace .workbench-card[data-enter=after] { animation-name: panel-in-right; }
  [data-effects=on] .live-workspace .workbench-card[data-enter=before] { animation-name: panel-in-left; }
}
@keyframes panel-in-right { from { opacity: .55; transform: translateX(10px); } }
@keyframes panel-in-left { from { opacity: .55; transform: translateX(-10px); } }
@media (max-width: 760px) {
  .live-workspace .workbench-card, .workbench-deck { scroll-margin-top: 138px; }
  .live-workspace .workbench-card-heading { padding: 16px; }
  .live-workspace .workbench-card-controls { width: 100%; }
  .live-workspace .workbench-card-controls .button { flex: 1 1 0; min-height: 44px; }
  .workbench-card-notices { padding: 14px 16px 0; }
  .workbench-card-body { gap: 14px; padding: 16px; }
  .workbench-card-tools { padding: 2px 16px 8px; }
  .workbench-tool-note { display: none; }
  .live-workspace .workbench-display { max-height: 300px; padding: 12px; }
  .workbench-prize { max-width: none; }
}
/* The same folding grammar in the feature dialog (自定义 CSS) and its link name field. */
.plugin-view-label { margin-bottom: 14px; }
details.plugin-manager-section > summary { display: flex; align-items: center; gap: 10px; list-style: none; color: var(--text); font-size: 14px; font-weight: 600; }
details.plugin-manager-section > summary::-webkit-details-marker { display: none; }
details.plugin-manager-section > summary::after { content: ""; flex: none; width: 7px; height: 7px; margin: 0 5px 4px auto; border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); transform: rotate(45deg); }
details.plugin-manager-section[open] > summary::after { margin-bottom: 0; transform: rotate(225deg); }
details.plugin-manager-section[open] > summary { margin-bottom: 14px; }
@media (forced-colors: active) {
  .workbench-feature-tab[aria-selected=true] { color: HighlightText; background: Highlight; }
  .workbench-feature-tab::after { background: CanvasText; }
}
/* 功能急停: the administrator's panel on 平台与审计 and the streamer's one-line notice. */
.platform-stop-notice { align-items: flex-start; }
.inline-notice.danger { background: var(--danger-fill); border-color: var(--danger-edge); color: var(--danger); }
.room-alert-notice { align-items: flex-start; }
.room-alert-notice > .icon { flex-shrink: 0; margin-top: 3px; }
.room-alert-copy { display: grid; gap: 4px; min-width: 0; overflow-wrap: anywhere; }
.room-alert-copy .hint { margin: 2px 0 0; color: var(--muted); }
.platform-stop-notice > .icon { flex-shrink: 0; margin-top: 3px; }
.platform-stop-copy { display: grid; gap: 4px; min-width: 0; overflow-wrap: anywhere; }
.platform-stop-copy .hint { margin: 2px 0 0; color: var(--muted); }
.feature-stops-host:empty { display: none; }
.feature-stops-current { margin-top: 18px; }
.feature-stops-current > .hint { margin-bottom: 10px; }
.feature-stops > .console-error { margin-top: 14px; }
.feature-stops-start, .feature-stops-recent:not(:empty) { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--border); }
.feature-stops-start > h3, .feature-stops-recent > h3 { margin-bottom: 14px; font-size: 15px; }
.feature-stops-form { max-width: 560px; }
.feature-stops-form select, .feature-stops-form input { width: 100%; min-width: 0; }
/* 通知 (web/notices.mjs): the bell in the top bar, the 通知 page and 发布公告.
   New notices carry the pink of live state; everything else stays grey. */
.notice-bell { position: relative; width: 36px; height: 36px; padding: 8px; color: var(--muted); }
.notice-bell .icon { width: 18px; height: 18px; }
.notice-bell:hover, .notice-bell[aria-current=page] { color: var(--text); background: rgb(255 255 255 / .07); }
.notice-bell:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.notice-count { position: absolute; top: 1px; right: -2px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: var(--pink); color: var(--on-accent); font: 650 10px/17px var(--mono); font-variant-numeric: tabular-nums; text-align: center; box-shadow: 0 0 0 2px var(--canvas); pointer-events: none; }
.notice-list, .notice-admin-list { display: grid; gap: 12px; min-width: 0; }
.notice-list, .notice-readonly { max-width: 860px; }
.notice-filters { margin-bottom: -6px; }
.notice-card { min-width: 0; padding: 20px 22px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--sheet); box-shadow: var(--shadow-xs); }
.notice-card.is-unread { border-color: var(--brand-soft); }
.notice-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; min-width: 0; color: var(--tertiary); font-size: 12px; line-height: 1.6; }
.notice-kind { color: var(--muted); font-weight: 550; }
.notice-flag { padding: 0 7px; border: 1px solid var(--border-strong); border-radius: 6px; color: var(--muted); font-size: 11px; }
.notice-flag.is-important { border-color: var(--brand-soft); color: var(--pink-soft); }
.notice-new { display: inline-flex; align-items: center; gap: 6px; color: var(--pink-soft); font-weight: 650; }
.notice-new::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--pink); }
.notice-time { margin-left: auto; font-family: var(--mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
.notice-title { margin: 10px 0 8px; color: var(--text); font-size: 16px; font-weight: 650; line-height: 1.45; overflow-wrap: anywhere; }
.notice-body { color: var(--ink-soft); font-size: 14px; line-height: 1.85; overflow-wrap: anywhere; }
.notice-body p, .notice-body ul { margin: 0; }
.notice-body > :is(p, ul) + :is(p, ul) { margin-top: 12px; }
.notice-body ul { padding-left: 1.3em; }
.notice-body li + li { margin-top: 4px; }
.notice-body strong { color: var(--text); font-weight: 600; }
.notice-body[data-folded=true] > :not(:first-child) { display: none; }
.notice-edited { margin: 10px 0 0; color: var(--tertiary); font-size: 12px; }
.notice-footer { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-top: 14px; }
.notice-footer .text-button { min-height: 36px; padding: 6px 0; }
.notice-link .icon { width: 15px; height: 15px; }
.notice-readonly { margin-bottom: 4px; }
.notice-dialog .notice-card { padding: 0; border: 0; background: none; box-shadow: none; }
.notice-dialog .notice-meta { margin-top: -6px; }
.notice-dialog .notice-body { margin-top: 14px; }
.notice-dialog .dialog-actions { margin-top: 22px; }
.notice-more { margin: 14px 0 0; }
.notice-admin-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; }
.notice-admin-head > .hint { flex: 1 1 260px; margin: 0; }
.notice-admin-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; min-width: 0; padding: 16px 20px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--sheet); }
.notice-admin-row[data-status=withdrawn], .notice-admin-row[data-status=draft] { background: transparent; }
.notice-admin-copy { flex: 1 1 320px; min-width: 0; }
.notice-admin-copy .notice-title { margin: 8px 0 4px; font-size: 15px; }
.notice-admin-copy .hint { margin: 0; }
.notice-admin-actions { gap: 8px; }
.notice-admin-actions .button { min-height: 34px; padding: 6px 12px; font-size: 12px; }
.notice-delete { color: var(--danger); }
.notice-editor { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px 36px; align-items: start; }
.notice-editor > h2 { font-size: 17px; }
.notice-preview-column > h3 { margin: 8px 0 12px; font-size: 14px; color: var(--muted); }
.notice-form { max-width: 720px; }
@media (min-width: 1180px) {
  .notice-editor { grid-template-columns: minmax(0, 1fr) minmax(320px, 440px); }
  .notice-editor > h2 { grid-column: 1 / -1; }
  .notice-preview-column { position: sticky; top: 84px; }
  .notice-preview-column > h3 { margin-top: 0; }
}
.notice-form textarea { min-height: 200px; resize: vertical; line-height: 1.75; }
.notice-form select, .notice-form input:not([type=checkbox]), .notice-form textarea { width: 100%; }
.notice-counter { justify-self: end; margin-top: -12px; color: var(--tertiary); font: 11px var(--mono); }
.notice-form .checkbox-row { display: flex; align-items: flex-start; gap: 10px; color: var(--text); cursor: pointer; }
.notice-form .checkbox-row input { margin-top: 3px; }
.notice-form .checkbox-row > span { display: grid; gap: 2px; min-width: 0; font-size: 13px; }
.notice-form .checkbox-row small { color: var(--tertiary); font-size: 12px; }
.notice-preview { max-width: 720px; }
@media (max-width: 760px) {
  .notice-bell { width: 36px; min-height: 44px; }
  .notice-card { padding: 16px 16px 18px; border-radius: var(--radius); }
  .notice-title { font-size: 15px; }
  .notice-body { font-size: 13.5px; }
  .notice-time { margin-left: 0; }
  .notice-admin-row { padding: 14px 16px; }
  .notice-admin-actions { width: 100%; }
}
