/*
 * SD workbench: Jarvis blue-violet system and locally hosted Songti typography.
 * Presentation only. Keep existing routes, controls and business state intact.
 * Reference: user-approved 网站统一设计规范.md; existing SD workflows retained.
 */
:root {
  --wb-font: "Lora Variable", "Noto Serif SC Variable", "Songti SC", STSong, SimSun, serif;
  --wb-code: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --ink: oklch(23% .035 285);
  --muted: oklch(50% .025 280);
  --secondary: oklch(45% .028 280);
  --line: oklch(90% .03 290);
  --bg: oklch(98% .009 290);
  --paper: oklch(99.7% .003 290);
  --accent: #5719d9;
  --accent-strong: #4513ae;
  --on-accent: var(--paper);
  --green: var(--accent);
  --green-dark: var(--accent-strong);
  --mint: oklch(95.8% .02 290);
  --hover: oklch(93% .033 290);
  --hero-wash: oklch(93% .046 290);
  --navy: oklch(20% .06 290);
  --radius: 4px;
  --danger: oklch(46% .15 27);
  --warn: oklch(45% .09 80);
  --wb-success: oklch(40% .085 155);
  --wb-success-bg: oklch(96% .02 155);
  --wb-danger-bg: oklch(96% .018 27);
  --wb-warn-bg: oklch(97% .025 85);
  --shadow: 0 12px 36px oklch(32% .12 290 / .1);
  font-family: var(--wb-font);
  font-size: 14px;
  color-scheme: light;
}
body { background: var(--bg); color: var(--ink); line-height: 1.6; }
button, input, select, textarea { font-family: inherit; }
button, input, select, textarea, a { -webkit-tap-highlight-color: transparent; }
h1, h2, h3, h4, strong, b { font-weight: 650; }
h1, h2, h3, h4, .eyebrow, .stat-card strong, th,
.public-brand, .public-kicker, .public-table-price > strong { letter-spacing: 0; }
pre, code, kbd, .task-id, .partner-invite-copy input, .profit-panel .inline-link,
.doc-table code, .doc-section code, .doc-intro code { font-family: var(--wb-code); }
button:focus-visible, a:focus-visible, summary:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible, [tabindex="0"]:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 3px;
}
.page { animation: none; }
.eyebrow { color: var(--muted); font-size: 11px; font-weight: 550; }
.eyebrow.light { color: var(--muted); }
.brand-mark, .brand-mark.small {
  background: var(--accent); color: var(--paper); border-radius: 4px;
  font-family: var(--wb-font); font-weight: 650; box-shadow: none;
}
/* Shared app frame. Customer top navigation is intentionally preserved. */
.sidebar { background: var(--paper); color: var(--ink); border-color: var(--line); box-shadow: none; }
.brand, .sidebar .brand { color: var(--ink); }
.brand small, .user-mini small { color: var(--muted); }
.sidebar nav a, .sidebar-special-menu > summary { color: var(--muted); font-weight: 550; }
.sidebar nav a:hover, .sidebar-special-menu > summary:hover {
  color: var(--ink); background: var(--mint);
}
.sidebar nav a.active, .sidebar nav a.active:hover {
  color: var(--paper); background: var(--accent);
}
.sidebar-foot { border-color: var(--line); }
.user-mini > span { background: var(--mint); color: var(--ink); border-radius: var(--radius); }
.logout-button {
  background: var(--paper); color: var(--ink); border-color: var(--line); border-radius: var(--radius);
}
.logout-button:hover { background: var(--mint); color: var(--ink); border-color: var(--muted); }
.topbar { margin-bottom: 22px; }
.topbar h1 { font-size: 26px; line-height: 1.4; }
.customer-topnav > .sidebar { background: var(--paper); min-height: 64px; padding-block: 10px; }
.customer-topnav #mainNav > a, .customer-topnav .sidebar-special-menu > summary { border-radius: var(--radius); }
.sidebar-special-menu > div, .customer-topnav .sidebar-special-menu > div,
.special-model-menu > div { background: var(--paper); border-color: var(--line); border-radius: var(--radius); }
.sidebar-special-menu > div a, .special-model-menu a { color: var(--ink); }
.sidebar-special-menu > div a:hover, .special-model-menu a:hover { background: var(--mint); }
/* Consistent controls; retain native payment-provider icon colours. */
button.primary, .primary.public-register-button, .public-model-select {
  background: var(--accent); border: 1px solid var(--accent); color: var(--paper);
  border-radius: var(--radius); box-shadow: none; font-weight: 600;
}
button.primary:hover:not(:disabled), .public-model-select:hover {
  background: var(--green-dark); border-color: var(--green-dark);
}
button.secondary, .mini-button, .model-price-button, .model-order-buttons button,
.task-upstream-site button, .studio-model-rail-back {
  background: var(--paper); border-color: var(--line); color: var(--accent);
  border-radius: var(--radius); box-shadow: none; font-weight: 550;
}
button.secondary:hover:not(:disabled), .mini-button:hover, .model-price-button:hover:not(:disabled),
.model-order-buttons button:hover:not(:disabled) { background: var(--mint); border-color: var(--accent); }
button.secondary { border-color: var(--accent); }
body :where(input:not([type="checkbox"]):not([type="radio"]), select, textarea) {
  background-color: var(--paper); color: var(--ink); border-color: var(--line); border-radius: var(--radius);
  accent-color: var(--accent);
}
body :where(input, select, textarea):focus {
  border-color: var(--accent); box-shadow: 0 0 0 2px oklch(32% .12 290 / .08);
}
body :where(input, textarea)::placeholder { color: var(--muted); opacity: 1; }
input[type="checkbox"], input[type="radio"] { accent-color: var(--accent); }
button { transition: color 160ms ease-out, background-color 160ms ease-out, border-color 160ms ease-out; }
button:disabled { cursor: not-allowed; }
.login-card label, dialog label, .recharge-custom, .payment-methods legend { color: var(--ink); font-weight: 550; }
/* Flat, quiet workspaces. Exceptions: floating menus and dialogs. */
.panel, .stat-card, .studio-compose, .studio-shelf, .studio-output,
.studio-model-rail, .docs-main, .docs-aside, .model-availability-item, .customer-price-card {
  background: var(--paper); border-color: var(--line); border-radius: var(--radius); box-shadow: none;
}
.stats-grid { gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--paper); }
.stats-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stats-grid:has(> :nth-child(5)) { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.stats-grid:has(> :nth-child(6)) { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.stats-grid .stat-card { border: 0; border-radius: 0; box-shadow: none; }
.stats-grid .stat-card + .stat-card { border-left: 1px solid var(--line); }
.stat-card strong { font-size: 28px; font-weight: 600; font-variant-numeric: tabular-nums; word-break: keep-all; }
.stat-card .stat-top { font-weight: 500; }
.stat-card .stat-icon { color: var(--muted); background: transparent; border-radius: 0; }
.stat-card small, .cell-main small, .empty { color: var(--muted); }
.panel-head { padding-block: 18px; }
th, .public-model-table th { background: var(--bg); color: var(--muted); font-size: 12px; font-weight: 550; }
td { color: var(--ink); border-color: var(--line); font-size: 13px; }
tbody tr:hover, tbody tr:hover td { background: var(--bg); }
.task-id { color: var(--muted); }
.chip { border-radius: 4px; font-weight: 550; color: var(--muted); background: var(--mint); }
.chip.success, .chip.active { color: var(--wb-success); background: var(--wb-success-bg); }
.chip.failed, .chip.disabled { color: var(--danger); background: var(--wb-danger-bg); }
.chip.warn { color: var(--warn); background: var(--wb-warn-bg); }
.chip.running { color: oklch(42% .08 250); background: oklch(96% .015 250); }
.service-status { background: var(--paper); border-color: var(--line); color: var(--wb-success); border-radius: var(--radius); }
.service-status i { box-shadow: none; background: var(--wb-success); }
.notice, .tip, .docs-copy-bar, .task-upstream-detail, .task-customer-identity,
.partner-call-rules, .partner-rate-list span, .partner-model-rate-editor,
.channel-rate-card, .channel-multiplier-editor, .customer-point-price-editor,
.model-price-fields label, .customer-price-row, .customer-price-row.addon,
.settlement-summary span, .task-timing-summary, .secret-box {
  background: var(--bg); border-color: var(--line); color: var(--muted); border-radius: var(--radius); box-shadow: none;
}
.customer-point-price-channel, .channel-multiplier-fields label, .partner-model-rate-fields label {
  background: var(--paper); border-color: var(--line); border-radius: var(--radius);
}
.customer-note, .task-customer-note { color: var(--ink); background: var(--mint); border: 0; }
.admin-model-success { background: var(--wb-success-bg); color: var(--wb-success); border-radius: 4px; }
.model-order-index { color: var(--muted); background: var(--mint); border-radius: 4px; }
.model-drag-handle { color: var(--muted); }
.model-toggle input:checked + i, .switch-row input:checked + i { background: var(--accent); }
.model-availability-item.is-disabled { background: var(--bg); border-color: var(--line); }
/* Intro surfaces remain light and functional rather than promotional gradients. */
.hero-card, .customer-start, .pricing-hero, .partner-invite-card {
  background: var(--bg); color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: none;
}
.hero-card::after { display: none; }
.hero-card p:not(.eyebrow), .customer-start-copy > p:last-child,
.pricing-hero p:not(.eyebrow), .start-choice p, .docs-copy-bar span { color: var(--muted); }
.start-choice { background: var(--paper); color: var(--ink); border-color: var(--line); border-radius: var(--radius); box-shadow: none; }
.start-choice:hover { transform: none; background: var(--mint); border-color: var(--muted); }
.start-choice span, .start-choice b { color: var(--ink); }
.flow span, .flow strong { border-color: var(--line); background: var(--paper); color: var(--ink); border-radius: var(--radius); }
.flow b { color: var(--muted); }
/* Selection and reference attributes retain the existing density and ordering. */
.studio-model-rail-head { padding: 16px 14px 12px; }
.studio-model-rail-group {
  color: var(--accent-strong); background: var(--mint); font-size: 17px; font-weight: 600; border-radius: 4px;
}
.studio-model-rail-option { border-radius: var(--radius); }
.studio-model-rail-option[aria-pressed="true"] { color: var(--ink); background: var(--mint); border-color: var(--accent); }
.studio-model-rail-name { font-size: 15px; font-weight: 650; }
.studio-model-rail-description { font-weight: 400; line-height: 1.85; }
.studio-model-rail-price-number { font-weight: 650; font-size: 21px; }
.studio-model-rail-detail, .studio-model-rail-head p { font-size: 12px; }
.studio-model-attribute { background: transparent; border: 0; border-radius: 0; padding: 6px 2px; }
.studio-model-attributes { border: 1px solid var(--line); border-radius: var(--radius); padding: 5px 8px; }
.studio-model-rail-option[aria-pressed="true"] .studio-model-attribute { background: transparent; }
.studio-model-attribute > strong { color: var(--ink); font-weight: 600; }
.studio-model-summary { background: var(--bg); border-color: var(--line); border-radius: var(--radius); }
.studio-model-summary p, .studio-fieldset legend, .studio-label, .studio-label > span:first-child { color: var(--muted); }
.studio-model-summary p, .field-help, .studio-upload-zone small { font-size: 12px; line-height: 1.75; }
.studio-fieldset legend, .studio-label, .asset-slot-head strong { font-size: 13px; font-weight: 550; }
.studio-model-summary dl > div { background: var(--paper); border-radius: 4px; }
.studio-model-summary dt { font-size: 11px; }
.studio-model-success { background: var(--paper); border-color: var(--line); border-radius: var(--radius); }
.mode-tabs, .output-mode { background: var(--mint); border-color: var(--line); border-radius: var(--radius); }
.mode-tabs button.active, .output-mode button.active { background: var(--paper); color: var(--ink); box-shadow: none; border-radius: 4px; }
.studio-upload-zone { background: var(--bg); color: var(--muted); border-color: var(--muted); border-radius: var(--radius); }
.studio-upload-zone:hover, .studio-upload-zone:focus-visible { background: var(--mint); border-color: var(--accent); }
.studio-upload-zone:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.studio-upload-message progress { accent-color: var(--wb-success); }
.studio-progress-visual { background: var(--bg); color: var(--muted); border-color: var(--line); border-radius: var(--radius); }
.studio-balance, .studio-empty > span { background: var(--mint); border-color: var(--line); color: var(--ink); border-radius: var(--radius); }
.studio-usage > div, .recent-asset { background: var(--paper); border-color: var(--line); border-radius: var(--radius); }
.recent-asset:hover { border-color: var(--muted); background: var(--bg); }
.studio-result-video { border-radius: var(--radius); background: var(--ink); }
.studio-upload-message { color: var(--wb-success); background: var(--wb-success-bg); border-color: var(--line); border-radius: var(--radius); }
.studio-upload-message.is-queued { color: var(--muted); background: var(--bg); }
.studio-upload-message.is-error { color: var(--danger); background: var(--wb-danger-bg); border-color: oklch(82% .04 27); }
/* Billing: strong numbers, restrained offers, real success and failure colours. */
.recharge-hero { background: var(--accent-strong); color: var(--paper); border-radius: 4px; }
.recharge-hero .eyebrow, .recharge-hero p:not(.eyebrow), .recharge-balance span { color: oklch(93% .025 290); }
.recharge-balance { border-color: oklch(70% .1 290); background: transparent; border-radius: 4px; }
.recharge-packages button { background: var(--paper); border-color: var(--line); border-radius: var(--radius); color: var(--ink); }
.recharge-packages button:hover, .recharge-packages button.active,
.payment-methods input:checked + span {
  background: var(--mint); border-color: var(--accent); box-shadow: none;
}
.recharge-packages button.recharge-offer { background: var(--bg); border: 1px solid var(--line); color: var(--ink); }
.recharge-packages button.recharge-offer:hover, .recharge-packages button.recharge-offer.active {
  background: var(--mint); border-color: var(--accent); box-shadow: none;
}
.recharge-packages .recharge-offer .recharge-offer-badge { color: var(--paper); background: var(--accent); border-radius: 4px; font-weight: 600; }
.payment-methods span { background: var(--paper); border-color: var(--line); border-radius: var(--radius); }
.recharge-status { color: var(--wb-success); background: var(--wb-success-bg); border-radius: var(--radius); }
.payment-qr-wrap { border-radius: var(--radius); }
/* Documentation and overlays. Code always keeps its monospace face. */
.docs-copy-bar, .doc-intro, .doc-flow, .doc-security, .doc-model-note, .doc-model-spec { border-color: var(--line); }
pre { background: var(--bg); color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius); }
pre .copy-code { background: var(--mint); color: var(--ink); }
.doc-table code, .doc-section code, .doc-intro code { background: var(--mint); color: var(--ink); }
.secret-box code { color: var(--ink); }
.toast { background: var(--paper); color: var(--ink); border-color: var(--line); border-radius: var(--radius); }
dialog { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); max-height: calc(100svh - 32px); overflow-y: auto; }
dialog::backdrop { background: oklch(23% .035 285 / .4); backdrop-filter: none; }
.dialog-close { color: var(--ink); background: var(--mint); border-radius: var(--radius); }
.media-preview-dialog { background: var(--ink); color: var(--paper); }
.media-preview-head, .media-preview-content, .media-preview-help { background: var(--ink); }
/* Public catalogue, authentication and registration share the same system. */
.public-landing {
  --pl-bg: var(--paper); --pl-surface: var(--paper); --pl-surface-soft: var(--bg);
  --pl-text: var(--ink); --pl-muted: var(--muted); --pl-line: var(--line);
  --pl-accent: var(--accent); --pl-accent-deep: var(--accent-strong); --pl-nav: var(--paper);
  --pl-shadow: transparent;
  font-family: var(--wb-font);
}
.public-nav { background: var(--paper); backdrop-filter: none; -webkit-backdrop-filter: none; }
.public-landing { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; }
.public-landing > .public-main { flex: 1 0 auto; }
.public-landing > .public-nav, .public-landing > .public-footer { flex-shrink: 0; }
.public-hero { padding: 36px 24px; margin-bottom: 24px; background: linear-gradient(125deg, var(--hero-wash), var(--paper)); border-radius: 4px; }
.public-hero-copy h1 { font-weight: 600; letter-spacing: 0; }
.public-model-table-scroll { border-radius: var(--radius); box-shadow: none; scrollbar-color: auto; scrollbar-width: auto; }
.public-model-row.is-promo td, .public-model-row.is-official-discount td { background: var(--paper); }
.public-model-table tbody tr:hover td, .public-model-row.is-promo:hover td,
.public-model-row.is-official-discount:hover td { background: var(--bg); }
.public-model-group th { background: var(--mint); color: var(--ink); }
.public-model-row.is-promo .public-table-price > strong { color: var(--ink); }
.public-table-price > strong { font-weight: 600; }
.model-type-button[aria-pressed="true"] { color: var(--paper); background: var(--accent); border-color: var(--accent); }
.model-type-button[aria-pressed="true"] span { color: inherit; }
.login-story { background: linear-gradient(145deg, var(--paper), var(--hero-wash)); color: var(--ink); border-right: 1px solid var(--line); }
.login-story h1 { font-size: 48px; line-height: 1.35; letter-spacing: 0; font-weight: 600; }
.story-copy, .pipeline-preview { color: var(--muted); }
.pipeline-preview i { background: var(--line); }
.pipeline-preview strong { background: var(--accent); color: var(--paper); border-radius: 4px; }
.login-panel { background: var(--paper); }
.login-card h2 { font-size: 34px; letter-spacing: 0; font-weight: 600; }
.login-card input { min-height: 50px; }
.public-footer { background: #17072c; color: oklch(88% .025 290); }
.partner-invite-copy input { color: var(--accent-strong); border-color: var(--line); }
.partner-invite-copy small { color: var(--muted); }
/* Legacy component colours: use shared tokens instead of the former teal palette.
   Green is reserved for actual success/active states and payment-provider brands. */
.icon-button, .auth-back-button, .sidebar-special-menu,
.plain-intro p, .doc-flow b, .doc-callout, .doc-security,
.pricing-rate small, .pricing-rate > span, .price-formula b, .price-examples,
.task-upstream-detail > span, .task-customer-identity > span,
.task-customer-identity p, .task-customer-identity small,
.partner-call-filters label, .model-selling-price, .model-price-input b,
.admin-model-success small, .model-success-rate.is-empty span {
  color: var(--muted);
}
.sidebar-special-menu[open] > summary {
  background: var(--mint); color: var(--accent-strong);
}
.sidebar-special-menu > div, .pipeline-preview strong,
.studio-free-note, .task-input-empty, .referral-link-box {
  border-color: var(--line);
}
.plain-intro, .doc-flow, .doc-callout, .doc-security,
.test-credit, .signup-gift, .quote-result.accent, .referral-hero,
.referral-link-box, .customer-growth-editor, .usage-breakdown article.actual,
.studio-promo-note.is-official, .pricing-tier.current {
  background: var(--mint); border-color: var(--line); color: var(--ink);
}
.test-credit > span, .test-credit small, .signup-gift span { color: var(--muted); }
.test-empty, .task-input-section, .task-input-params > div,
.billing-breakdown > div, .doc-note, .payment-qr-loading,
.customer-price-guide, .doc-table th, .status-guide article, .date-filter {
  background: var(--bg); border-color: var(--line);
}
.price-formula { border-color: var(--line); }
.price-examples span, .doc-nav button:hover { background: var(--mint); }
.login-card input, dialog input, dialog select, .filters select,
.payment-filters > input, #taskCustomerSearch {
  background: var(--paper); border-color: var(--line);
}
.input-role, .offer-chip, .free-pill, .media-preview-audio > span {
  background: var(--mint); color: var(--accent-strong);
}
.free-amount { color: var(--accent); }
.selected-asset { border-color: var(--line); }
.selected-asset img, .selected-asset video, .selected-asset .asset-kind-icon,
.recent-asset img, .recent-asset video, .recent-asset .asset-kind-icon {
  background: var(--mint);
}
.asset-preview-button { background: var(--mint) !important; }
.asset-remove { background: var(--bg); color: var(--muted); }
.result-progress-bar, .meter-track { background: var(--line); }
.result-progress-bar i, .meter-track i { background: var(--accent); }
.video-compare article.after { box-shadow: 0 0 0 2px var(--mint); }
.video-unavailable.processing::before { border-top-color: var(--accent); }
.media-preview-play { color: var(--accent) !important; }
.media-preview-head .eyebrow { color: oklch(84% .07 290); }
.task-video-result .result-link { color: var(--paper); }
.model-success-rate.is-empty strong { color: var(--muted); }
.model-success-rate.is-good strong { color: var(--wb-success); }
.model-success-rate.is-mid strong { color: var(--warn); }
.model-success-rate.is-low strong { color: var(--danger); }
/* Catalogue data is black by request; accent colours identify actions, not prices. */
.public-model-table .public-model-row .public-table-price > strong,
.public-model-table .public-table-price-details em,
.public-model-table .model-success-rate strong,
.public-model-table .public-table-discount strong,
.public-model-table .public-table-discount span,
.public-model-table .public-table-discount time {
  color: #171717;
}
.studio-upload-message.is-uploading, .studio-upload-message.is-processing {
  color: var(--accent-strong); background: var(--mint);
}
.studio-upload-message progress { accent-color: var(--accent); }
.model-availability-item.is-dragging { box-shadow: var(--shadow); }
.task-row-link:focus-within, .task-row-link:hover { background: var(--bg); }
.partner-call-filters select { color: var(--ink); border-color: var(--line); }
.model-toggle input:focus-visible + i, .switch-row input:focus-visible + i,
.media-preview-trigger:focus-visible, .task-input-open:focus-visible,
.asset-preview-button:focus-visible, .public-login-button:focus-visible,
.public-register-button:focus-visible, .public-model-select:focus-visible,
.public-model-table-scroll:focus-visible {
  outline-color: var(--accent);
}
.switch-row input:focus-visible + i {
  box-shadow: 0 0 0 3px oklch(48% .24 290 / .12);
}
/* IDs and component-local focus rules previously overrode the shared field rule. */
.login-card input:focus, dialog input:focus, dialog select:focus,
.filters select:focus, .test-form-card textarea:focus, .test-form-card select:focus,
.quote-form input:focus, .quote-form select:focus, .partner-toolbar input:focus,
.recharge-custom input:focus, .payment-filters > input:focus,
.model-price-input input:focus, #taskCustomerSearch:focus,
#userForm textarea[name="customer_note"]:focus,
#editUserForm textarea[name="customer_note"]:focus,
.studio-label textarea:focus, .studio-label select:focus, .studio-label input:focus,
.asset-url-row input:focus, .asset-url-row select:focus {
  box-shadow: 0 0 0 3px oklch(48% .24 290 / .12);
}
.announcement-nav-link, .announcement-banner a, .announcement-page-head > a {
  color: var(--accent-strong); font-weight: 600; text-decoration: none;
  text-underline-offset: 4px;
}
.announcement-nav-link { padding: 10px 12px; white-space: nowrap; border-radius: var(--radius); }
.announcement-nav-link:hover, .announcement-nav-link[aria-current="page"] { background: var(--mint); }
.announcement-banner a:hover, .announcement-page-head > a:hover { text-decoration: underline; }
.announcement-banner {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px 18px; margin-bottom: 20px; border: 1px solid var(--line);
  border-radius: var(--radius); background: var(--mint); color: var(--ink);
}
.announcement-banner strong { font-size: 14px; }
.announcement-banner p { margin: 4px 0 0; font-size: 13px; line-height: 1.7; }
.announcement-banner a { flex-shrink: 0; font-size: 13px; }
.announcement-page-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 24px; }
.announcement-page-head h1 { margin: 0; font-size: 28px; }
.announcement-article { max-width: 900px; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); color: #171717; }
.announcement-article h2 { margin: 0 0 20px; font-size: 22px; }
.announcement-models { padding-left: 22px; margin: 0 0 20px; font-weight: 600; }
.announcement-models li + li { margin-top: 8px; }
.announcement-article p { max-width: 70ch; margin: 14px 0 0; font-size: 15px; line-height: 1.9; }
@media (max-width: 760px) {
  .public-nav { flex-wrap: wrap; height: auto; min-height: 68px; padding-block: 10px; gap: 8px; }
  .public-nav-actions { flex-wrap: wrap; }
  .announcement-banner { align-items: flex-start; flex-direction: column; padding: 14px; gap: 8px; }
  .announcement-article { padding: 18px; }
  .announcement-page-head { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 1400px) {
  .stats-grid:has(> :nth-child(5)), .stats-grid:has(> :nth-child(6)) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stats-grid .stat-card { border-bottom: 1px solid var(--line); }
}
@media (max-width: 1000px) {
  .login-story h1 { font-size: 38px; }
}
@media (max-width: 1100px) {
  .customer-topnav #mainNav { overflow-x: auto; padding-bottom: 4px; }
  .customer-topnav .sidebar-special-menu > div { position: fixed; top: 112px; left: auto; right: 16px; }
}
@media (max-width: 760px) {
  .public-hero { padding-block: 12px 24px; }
  .topbar h1 { font-size: 24px; }
  .customer-topnav #mainNav > a, .customer-topnav .sidebar-special-menu > summary { min-height: 44px; }
  button.primary, button.secondary, .mini-button, .model-type-button { min-height: 44px; }
  .login-story h1 { font-size: 32px; }
  .login-card h2 { font-size: 28px; }
  .stat-card strong { font-size: 24px; }
  .studio-label input, .studio-label select, .studio-label textarea,
  .login-card input, .register-card input, dialog input, dialog select, dialog textarea,
  #studioModelSearch { font-size: 16px; min-height: 44px; }
}
@media (max-width: 600px) {
  .stats-grid, .stats-grid:has(> :nth-child(5)), .stats-grid:has(> :nth-child(6)) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
