/* Shared brand and workspace treatment. Loaded after the legacy component styles. */
:root {
  --bg: #f6f7f9;
  --surface: #fefefe;
  --surface-soft: #f0f2f6;
  --text: #242936;
  --muted: #626a79;
  --outline: #dce0e7;
  --line: #e9ecf1;
  --ink: #242936;
  --primary: #3659d9;
  --primary-dark: #2847b9;
  --coral: #dc5b48;
  --body: "Avenir Next", "Aptos", "PingFang SC", "Microsoft YaHei", sans-serif;
  --display: var(--body);
  --shadow: 0 4px 16px #24293606;
}
body { font-size: 1rem; line-height: 1.5; }
button, input, textarea, select, .btn, .icon-btn, .text-button { font-family: var(--body); }
button:disabled { cursor: wait; opacity: .55; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: 8px; left: 16px; z-index: 200; padding: 12px 20px; color: var(--surface); background: var(--ink); transform: translateY(-180%); }
.skip-link:focus { transform: translateY(0); }
.btn, .icon-btn, .text-button { min-height: 40px; border-radius: 9px; font-size: .875rem; font-weight: 600; }
.btn.primary { color: #fefefe; background: var(--primary); box-shadow: 0 2px 3px #3659d914; }
.btn.primary:hover { background: var(--primary-dark); box-shadow: none; transform: none; }
.btn:hover .icon { transform: none; }
.btn.secondary { background: var(--surface); border-color: var(--outline); }
.btn.danger { color: #a82c32; background: #fff4f3; border-color: #eed4d2; }
.btn.danger:hover { background: #fbe4e3; color: #922229; }
.brand-lockup { font-weight: 750; letter-spacing: -.06em; }
.brand-plus { color: var(--coral); }

/* Public pages use the same quiet paper, ink, and signal colors as the product. */
.landing-page { background: #faf9f6; }
.landing-nav { background: #faf9f6; min-height: 84px; }
.landing-nav .nav-links { gap: 20px; }
.landing-nav .nav-links a { font-family: var(--body); font-size: .8125rem; }
.hero { min-height: 650px; padding-block: 40px 72px; gap: 48px; }
.hero::before, .hero::after { display: none; }
.hero h1 { font-size: clamp(48px, 5.2vw, 80px); line-height: 1.15; letter-spacing: -.045em; font-weight: 650; }
.hero h1 > span { color: var(--primary); }
.hero-eyebrow, .hero-proof, .section-kicker { font-family: var(--body); font-size: .8125rem; letter-spacing: .04em; }
.hero-art { min-height: 480px; border-radius: 18px; box-shadow: none; border: 1px solid #dfddd7; }
.hero-signal-card { border-radius: 12px; }
.hero-actions { flex-wrap: wrap; }
.signal-ribbon { transform: none; background: #ecefe9; color: #414c43; border-block: 1px solid #dce2d9; }
.signal-ribbon > div { animation: none; }
.signal-ribbon span { font-family: var(--body); font-size: .875rem; letter-spacing: 0; }
.product-preview { border-radius: 16px; }
.auth-page { background: #f5f6f8; }
.auth-card { border: 1px solid var(--outline); border-radius: 18px; box-shadow: 0 16px 60px #24293608; }
.auth-card h1 { letter-spacing: -.05em; }
.docs-page { color: var(--text); background: #faf9f6; }
.docs-nav { border-bottom: 1px solid var(--outline); }
.docs-nav .brand-lockup, .docs-nav > div a:hover { color: var(--ink); }
.docs-nav > div a { color: var(--muted); }
.docs-nav .docs-nav-cta { background: var(--primary); color: #fefefe; border-radius: 9px; }
.doc-hero { min-height: 350px; border: 0; border-bottom: 1px solid var(--outline); border-radius: 0; background: none; padding: 56px 0; }
.doc-hero h1 { color: var(--ink); font-size: clamp(36px, 4.4vw, 64px); line-height: 1.18; letter-spacing: -.04em; font-weight: 650; }
.doc-hero .eyebrow, .doc-hero > div:first-child > p:last-child { color: var(--muted); font-family: var(--body); }
.doc-hero .eyebrow { font-size: .8125rem; }
.doc-step { background: #f0f1ed; border-color: #e0e3dc; border-radius: 12px; backdrop-filter: none; }
.doc-step strong { color: var(--primary); font-size: 40px; font-weight: 500; }
.doc-step p { font: .9375rem/1.8 var(--body); text-transform: none; color: #50596a; }
.doc-card { background: #fefdfb; border-color: #e5e5df; border-radius: 14px; margin-top: 24px; }
.doc-card h2 { color: var(--ink); font-size: clamp(23px, 2.2vw, 30px); letter-spacing: -.025em; }
.docs-page .muted, .doc-list, .faq-item p { color: var(--muted); }
.faq-item { border-color: var(--line); }
.faq-item summary, .faq-item summary:hover { color: var(--ink); }
.docs-page code { color: #334d9e; }
.docs-page .code-block { background: #edf0f6; border-color: #dce1eb; }
.docs-page .code-block pre { color: #35445f; }
.docs-page .code-block button, .docs-page .ghost { color: var(--primary); background: #e7ebf6; border-color: #cbd5f0; }
.docs-page .doc-footer { border-color: var(--outline); color: var(--muted); }

/* Workspace frame: navigation stays quiet, the user's work carries the emphasis. */
.app-shell { --console-sidebar: 240px; --console-sidebar-collapsed: 76px; background: var(--bg); color: var(--text); min-height: 100vh; }
.site-detail-layout { background: var(--bg); }
.side-nav { background: #f0f2f6; color: var(--text); border-color: var(--outline); padding: 24px 16px; gap: 26px; }
.side-brand { gap: 9px; }
.side-brand strong { color: var(--ink); font-size: 19px; letter-spacing: -.06em; }
.side-brand .brand-mark { width: 32px; height: 32px; }
.side-collapse { width: 24px; height: 28px; flex: 0 0 auto; color: var(--muted); border-color: transparent; background: transparent; }
.side-nav .side-create { min-height: 42px; font-size: .875rem; background: var(--surface); color: var(--text); border: 1px solid #d4dae4; }
.side-nav .side-create:hover { background: #e5eaf6; filter: none; }
.side-links { gap: 5px; }
.side-links button, .side-footer button { min-height: 44px; border-radius: 8px; color: #5a6273; font-size: .875rem; padding-inline: 12px; }
.side-links button:hover, .side-footer button:hover { color: var(--ink); background: #e5e8ef; }
.side-links button.active { color: #2749bf; background: #e1e7fa; font-weight: 650; }
.side-footer { margin-top: auto; padding-top: 16px; border-color: var(--outline); gap: 4px; }
.side-user .user-avatar { background: #e3e7f3; color: #3b4b73; border-color: #d0d8e9; }
.side-user-meta small { color: var(--muted); font-size: .6875rem; opacity: 1; }
.side-version { font-size: .6875rem; color: #747d8d; padding-top: 12px; }
.side-resources { display: grid; gap: 4px; }
.side-resources > span { color: #7b8290; font-size: .6875rem; letter-spacing: .06em; padding: 0 12px 6px; }
.side-resources a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; font-size: .8125rem; color: var(--muted); border-radius: 8px; }
.side-resources a:hover { background: #e5e8ef; color: var(--ink); }
.side-resources .icon { width: 17px; height: 17px; }
.mobile-account { display: none; }
.site-main > .console-page, .admin-main { padding: clamp(24px, 3vw, 44px); max-width: 1600px; }
.console-page, .admin-page { gap: 28px; }
.page-head, .admin-head { gap: 20px; align-items: center; }
.side-nav + .site-main .page-head h1, .admin-head h1 { font-size: clamp(28px, 3vw, 36px); font-weight: 650; letter-spacing: -.04em; margin: 4px 0 8px; }
.page-head p, .admin-head p { font-size: .875rem; color: var(--muted); line-height: 1.6; }
p.workspace-eyebrow { font-size: .6875rem; font-weight: 650; letter-spacing: .12em; margin: 0 0 5px; color: #687388; }
.page-actions { display: flex; align-items: center; gap: 12px; }
.page-head .btn { min-height: 42px; }
.console-page > .stat-grid, .site-content > .stat-grid { gap: 0; border-block: 1px solid var(--outline); padding-block: 16px; }
.console-page > .stat-grid .stat-card, .site-content > .stat-grid .stat-card { min-height: 70px; padding: 2px 22px; background: transparent; border: 0; border-right: 1px solid var(--outline); border-radius: 0; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 7px; }
.console-page > .stat-grid .stat-card:first-child, .site-content > .stat-grid .stat-card:first-child { padding-left: 0; }
.console-page > .stat-grid .stat-card:last-child, .site-content > .stat-grid .stat-card:last-child { border-right: 0; }
.console-page > .stat-grid .stat-card div, .site-content > .stat-grid .stat-card div { font-size: .8125rem; color: var(--muted); gap: 6px; }
.console-page > .stat-grid .stat-card .icon, .site-content > .stat-grid .stat-card .icon { display: none; }
.console-page > .stat-grid .stat-card strong, .site-content > .stat-grid.four .stat-card strong { font-size: 30px; font-weight: 550; color: var(--ink); line-height: 1; font-variant-numeric: tabular-nums; letter-spacing: -.035em; }
.console-page > .stat-grid .stat-card.accent strong, .site-content > .stat-grid .stat-card.accent strong { color: var(--primary); }
.workspace-brief { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 4px 0; }
.workspace-brief > div { display: flex; align-items: center; gap: 14px; }
.workspace-brief > div > .icon { width: 22px; height: 22px; color: var(--primary); }
.workspace-brief strong { display: block; font-size: .9375rem; font-weight: 600; }
.workspace-brief small { display: block; margin-top: 4px; color: var(--muted); font-size: .8125rem; }
.workspace-brief .text-button { flex-shrink: 0; font-size: .8125rem; color: var(--primary); background: none; }
.table-card, .feedback-list-panel, .side-nav + .site-main .table-card { border: 1px solid var(--outline); border-radius: 12px; background: var(--surface); overflow: hidden; }
.card-head { min-height: 78px; padding: 18px 22px; background: var(--surface); border-color: var(--line); gap: 20px; }
.card-head h2, .panel-head h2 { font-size: 1.0625rem; font-weight: 650; }
.card-head h2 .icon { display: none; }
.search-box { position: relative; width: min(300px, 100%); }
.search-box input { min-height: 40px; font-size: .8125rem; background: #f7f8fa; border-color: var(--outline); border-radius: 8px; }
.site-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 0 22px 14px; }
.sort-control { display: flex; align-items: center; gap: 8px; font-size: .75rem; color: var(--muted); white-space: nowrap; }
.sort-control select { padding: 8px 26px 8px 10px; font-size: .75rem; border: 1px solid var(--outline); border-radius: 7px; min-height: 38px; background: var(--surface); color: var(--text); max-width: 180px; }
.tabs, .tabs.compact { gap: 4px; flex-wrap: wrap; }
.tabs button { min-height: 36px; font-size: .8125rem; font-weight: 500; border-radius: 7px; color: var(--muted); background: transparent; padding-inline: 12px; }
.tabs button.active { color: #294bbb; background: #e9eefc; box-shadow: none; }
.tabs button:hover { background: #f0f3fa; color: var(--primary); }
.results-caption { margin: 0; padding: 10px 22px; color: #6b7485; font-size: .75rem; border-block: 1px solid var(--line); background: #fbfcfe; }
th, td { padding: 17px 22px; font-size: .875rem; border-color: var(--line); }
th { background: #f7f8fb; font-size: .75rem; color: #6b7485; font-weight: 500; letter-spacing: 0; }
td { font-variant-numeric: tabular-nums; }
.site-cell { min-width: 200px; gap: 14px; }
.site-cell > span:not(.site-widget-dot) { width: 42px; height: 42px; background: #edf0f8; color: #53668f; border: 1px solid #dce2ee; border-radius: 10px; font-size: .875rem; font-weight: 600; }
.site-cell > .site-widget-dot { display: none; }
.site-cell strong { font-size: .9375rem; font-weight: 600; gap: 3px; }
.site-cell small { font-family: var(--body); font-size: .75rem; color: #717b8b; }
.site-connection { display: inline-flex; align-items: center; gap: 7px; font-size: .75rem; font-weight: 400; color: #87621f; white-space: nowrap; }
.site-connection::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex-shrink: 0; }
.site-connection.connected { color: #3b7964; }
.row-actions .btn.sm { min-height: 36px; font-size: .75rem; border-radius: 7px; }
.chip { min-height: 24px; padding: 2px 8px; border-radius: 5px; font-size: .6875rem; font-weight: 500; }
.chip.primary { color: #3657b3; background: #ecf0fc; }
.chip.neutral { color: #596679; background: #f0f2f6; }
.chip.danger { color: #b24338; background: #fff0eb; }
.chip.success, .status-chip.status-done { color: #2e735b; background: #eaf5ee; }
.status-chip.status-new { color: #3657b3; background: #ecf0fc; }
.status-chip.status-in_progress { color: #956a20; background: #fbf2de; }
.status-chip.status-planned, .status-chip.status-triaged, .status-chip.status-ignored { color: #667184; background: #edf0f4; }
.empty-state, .empty-state.compact { padding: 60px 24px; }
.empty-state h3 { font-size: 1.125rem; font-weight: 600; margin: 14px 0 8px; }
.empty-state p { max-width: 420px; margin: 0 auto 22px; font-size: .875rem; line-height: 1.8; }
.empty-symbol { color: #7b8bb0; }
.empty-symbol .icon { width: 36px; height: 36px; stroke-width: 1.25; }

/* Inbox and report detail. Search updates only results, leaving the input in place. */
.site-header { padding: 26px 32px 22px; background: var(--surface); border-color: var(--outline); align-items: center; }
.site-header > div:first-child { display: block; }
.breadcrumb { font-size: .75rem; margin-bottom: 12px; }
.site-header h1 { font-size: 27px; font-weight: 650; letter-spacing: -.03em; white-space: normal; flex-wrap: wrap; }
.site-header p { font: .8125rem/1.5 var(--body); margin-top: 5px; }
.site-actions { flex-wrap: wrap; }
.site-actions .btn { min-height: 40px; font-size: .8125rem; }
.active-pill { min-height: 25px; font-size: .6875rem; font-weight: 500; letter-spacing: 0; border-radius: 5px; }
.active-pill.connected { color: #33745b; background: #ecf6f0; border-color: #d5e9dc; }
.active-pill.pending { color: #88671f; background: #faf4e7; border-color: #ecdfbd; }
.active-pill.pending i { background: #b18a40; }
.site-content { padding: 24px 32px 40px; gap: 26px; }
.panel-head { padding: 20px 22px 14px; background: var(--surface); align-items: center; gap: 18px; flex-wrap: wrap; }
.feedback-search-wrap { display: flex; align-items: center; position: relative; margin: 0 22px 18px; }
.feedback-search-wrap > .icon { position: absolute; left: 12px; width: 17px; height: 17px; color: #798398; }
.feedback-search { width: 100%; padding: 11px 45px 11px 38px; margin: 0; font-size: .875rem; border: 1px solid var(--outline); border-radius: 8px; background: #f7f8fb; }
.feedback-search-wrap kbd { position: absolute; right: 12px; border: 1px solid #d9dfeb; color: #8993a4; font-size: .75rem; border-radius: 4px; padding: 0 6px; }
[data-feedback-results][aria-busy="true"] { opacity: .55; pointer-events: none; }
.feedback-item { border-left: 0; min-height: 124px; padding: 20px 22px; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "meta meta" "title title" "summary foot"; gap: 8px 24px; background: var(--surface); text-align: left; }
.feedback-item:hover, .feedback-item.active { background: #f4f7fe; }
.feedback-item h3 { margin: 0; font-size: .9375rem; font-weight: 600; white-space: normal; line-height: 1.5; }
.feedback-item.status-new h3::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--primary); margin: 0 8px 2px 0; }
.feedback-item p { font-size: .8125rem; line-height: 1.6; color: var(--muted); }
.feedback-meta { gap: 6px; }
.feedback-meta small { font: .6875rem/1.5 var(--body); margin-left: auto; color: #707b8d; }
.item-foot { font: .6875rem/1.5 var(--body); color: #707b8d; }
.detail-drawer-backdrop { background: #1c29404d; backdrop-filter: none; }
.detail-panel.detail-drawer { border-radius: 14px; width: min(800px, calc(100vw - 24px)); inset: 12px 12px 12px auto; }
.detail-panel-head { min-height: 64px; padding: 12px 22px; background: var(--surface); }
.detail-panel-head span, .detail-panel-head strong { font-size: .8125rem; }
.detail-controls { padding: 18px 22px; gap: 12px; background: #f7f8fb; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.detail-controls .feedback-id { display: none; }
.detail-controls .field > span, .detail-editor .field > span, .note-card > span { font-size: .75rem; letter-spacing: 0; }
.detail-controls select { min-height: 42px; font-size: .875rem; border-radius: 8px; }
.detail-editor { padding: 22px; gap: 24px; }
.detail-title-field input { font-size: 1.125rem; min-height: 46px; font-weight: 600; }
.note-card { background: #f6f7fa; border: 1px solid var(--line); padding: 18px; border-radius: 9px; }
.note-card > div, .detail-notes-field textarea { font-size: .9375rem; line-height: 1.85; }
.detail-notes-field textarea { min-height: 120px; border-radius: 8px; }
.technical-context { padding: 22px; background: var(--surface); }
.technical-context-head h2 { font-size: .9375rem; }
.technical-context-head p { font-size: .75rem; }
.technical-context-head > span { display: none; }
.context-card { border-radius: 8px; background: #f7f8fa; }
.context-card > span, .context-json-title small { font-size: .6875rem; }
.context-card > strong { font-size: .8125rem; line-height: 1.65; }
.detail-footer { min-height: 76px; padding: 16px 22px; background: var(--surface); gap: 12px; border-top: 1px solid var(--outline); }
.detail-footer .btn { min-height: 42px; font-size: .875rem; }
.overlay-open { overflow: hidden; }
.modal-backdrop { background: #1c29404d; backdrop-filter: none; }
.modal-card { border-radius: 16px; background: var(--surface); }
.modal-card .modal-head { background: var(--surface); }
.modal-card .modal-head h2 { font-size: 1.25rem; }
.modal-card .field > span, .modal-card .form-hint, .modal-card .section-title-row > span { font-size: .8125rem; }
.modal-card input:not([type="checkbox"]):not([type="color"]), .modal-card select, .modal-card textarea { font-size: .875rem; border-radius: 8px; min-height: 42px; }
.modal-card .form-hint { line-height: 1.75; }
.modal-card .section-title-row h3, .integration-card-head h3 { font-size: .9375rem; }
.danger-zone { border-top: 1px solid var(--outline); padding-top: 20px; margin-top: 24px; font-size: .8125rem; }
.danger-zone summary { color: #975c59; cursor: pointer; }
.danger-zone p { color: var(--muted); line-height: 1.7; }
.toast { color: #f7f9fc; background: #27364d; border: 1px solid #3b4d66; border-radius: 10px; padding: 13px 20px; font-size: .875rem; box-shadow: 0 6px 20px #15274120; max-width: calc(100vw - 32px); z-index: 200; }

/* Tablet and phone keep every account action available. */
@media (max-width: 1180px) {
  .side-nav, .side-nav.collapsed { padding: 10px 18px; grid-template-columns: auto auto minmax(0, 1fr) auto; gap: 14px; background: #f0f2f6; border-color: var(--outline); }
  .side-resources { display: none; }
  .side-nav .side-create, .side-nav.collapsed .side-create { width: auto; min-height: 40px; }
  .side-nav .side-links, .side-nav.collapsed .side-links { flex-wrap: nowrap; }
  .mobile-account { position: relative; display: block; justify-self: end; }
  .mobile-account summary { display: flex; list-style: none; cursor: pointer; padding: 4px; border-radius: 50%; }
  .mobile-account summary::-webkit-details-marker { display: none; }
  .mobile-account .user-avatar { color: #3b4b73; background: #e3e7f3; }
  .mobile-account > div { position: absolute; top: calc(100% + 12px); right: 0; width: 240px; display: grid; padding: 12px; gap: 2px; background: var(--surface); border: 1px solid var(--outline); border-radius: 10px; box-shadow: 0 8px 30px #15274116; }
  .mobile-account strong { padding: 8px 10px; font-size: .8125rem; overflow-wrap: anywhere; }
  .mobile-account button, .mobile-account a { min-height: 44px; display: flex; align-items: center; background: transparent; color: var(--text); padding: 10px; text-align: left; font-size: .875rem; border-radius: 6px; }
  .mobile-account button:hover, .mobile-account a:hover { background: #f0f3fa; }
  .site-main > .console-page, .admin-main { padding: 28px; }
  .hero { grid-template-columns: 1fr; }
  .hero-art { min-height: 420px; }
}
@media (max-width: 760px) {
  .side-nav, .side-nav.collapsed { gap: 8px; padding: 8px 12px; grid-template-columns: auto auto minmax(0, 1fr) auto; }
  .side-nav .side-create .nav-label { display: none; }
  .side-nav .side-links button, .side-nav.collapsed .side-links button { min-height: 44px; font-size: .8125rem; padding-inline: 10px; }
  .side-links button .icon { display: none; }
  .side-nav .brand-mark { width: 30px; height: 30px; }
  .site-main > .console-page, .admin-main { padding: 24px 16px; }
  .console-page, .admin-page { gap: 22px; }
  .page-head { flex-direction: row; align-items: center; }
  .page-head h1 { font-size: 27px; }
  .page-head .page-actions { gap: 4px; }
  .page-actions > .icon-btn { display: none; }
  .page-head .btn { font-size: .8125rem; padding-inline: 12px; }
  .console-page > .stat-grid.five { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 22px; }
  .console-page > .stat-grid .stat-card, .site-content > .stat-grid .stat-card { padding-inline: 12px; }
  .console-page > .stat-grid .stat-card:nth-child(3) { border-right: 0; }
  .console-page > .stat-grid .stat-card:nth-child(4) { padding-left: 0; }
  .console-page > .stat-grid .stat-card:last-child { border-right: 1px solid var(--outline); }
  .console-page > .stat-grid .stat-card div, .site-content > .stat-grid .stat-card div { font-size: .75rem; }
  .workspace-brief { align-items: flex-start; flex-direction: column; gap: 10px; }
  .workspace-brief .text-button { margin-left: 36px; padding: 0; }
  .card-head { flex-direction: column; align-items: stretch; padding: 20px 16px 14px; }
  .site-main .search-box { width: 100%; }
  .site-toolbar { align-items: flex-start; flex-direction: column; padding: 0 16px 16px; gap: 12px; }
  .tabs button { min-height: 40px; padding-inline: 10px; }
  .sort-control { align-self: flex-end; }
  .sites-panel .responsive-table { overflow: visible; }
  .sites-panel table, .sites-panel tbody { display: block; min-width: 0; }
  .sites-panel thead { display: none; }
  .sites-panel tr { display: grid; grid-template-columns: repeat(3, 1fr); padding: 18px 16px; gap: 14px 8px; border-bottom: 1px solid var(--line); }
  .sites-panel td { padding: 0; border: 0; }
  .sites-panel td:first-child { grid-column: 1 / -1; }
  .sites-panel .site-status-cell { grid-column: 1 / -1; display: flex; align-items: center; gap: 12px; }
  .sites-panel td:last-child { grid-column: 1 / -1; }
  .sites-panel td[data-label]::before { content: attr(data-label); display: block; font-size: .6875rem; color: var(--muted); margin-bottom: 5px; }
  .sites-panel .site-status-cell[data-label]::before { margin-bottom: 0; }
  .sites-panel .row-actions .btn { width: 100%; min-height: 40px; }
  .site-cell { width: 100%; }
  .site-cell strong { min-width: 0; overflow-wrap: anywhere; }
  .site-cell small { white-space: normal; overflow-wrap: anywhere; }
  .site-header { padding: 20px 16px; gap: 18px; align-items: stretch; }
  .site-header h1 { font-size: 24px; }
  .site-actions .btn { min-height: 44px; flex: 1; }
  .site-actions .icon-btn { min-height: 44px; }
  .site-content { padding: 20px 16px; gap: 22px; }
  .site-content > .stat-grid.four { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 0; }
  .site-content > .stat-grid .stat-card:nth-child(2) { border-right: 0; }
  .site-content > .stat-grid .stat-card:nth-child(3) { padding-left: 0; }
  .panel-head { padding: 20px 16px 14px; align-items: flex-start; }
  .panel-head .tabs { width: 100%; flex-wrap: wrap; overflow: visible; }
  .feedback-search-wrap { margin: 0 16px 18px; }
  .feedback-search { font-size: 1rem; }
  .feedback-search-wrap kbd { display: none; }
  .feedback-item { padding: 20px 16px; grid-template-columns: minmax(0, 1fr); grid-template-areas: "meta" "title" "summary" "foot"; gap: 10px; }
  .feedback-item p { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .feedback-meta { flex-wrap: wrap; }
  .feedback-meta small { width: 100%; margin: 0; }
  .results-caption { padding-inline: 16px; }
  .detail-panel.detail-drawer { width: 100%; inset: 0; border-radius: 0; }
  .detail-controls, .detail-editor, .technical-context, .detail-panel-head { padding: 16px; }
  .detail-controls { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .detail-controls select { font-size: .875rem; padding-inline: 6px; }
  .detail-footer { padding: 12px 16px; }
  .detail-editor input, .detail-editor textarea, .modal-card input:not([type="checkbox"]):not([type="color"]), .modal-card select, .modal-card textarea { font-size: 1rem; }
  .hero { width: calc(100% - 32px); min-height: auto; padding: 40px 0; }
  .hero h1 { font-size: clamp(42px, 9vw, 58px); }
  .hero-art { min-height: 340px; }
  .landing-nav { min-height: 72px; }
  .landing-nav .nav-login { display: inline-flex; }
  .hero-proof { gap: 10px; font-size: .75rem; }
  .doc-hero { padding-block: 36px; grid-template-columns: 1fr; gap: 28px; }
  .doc-hero h1 { font-size: 38px; }
  .docs-nav { flex-wrap: wrap; padding-block: 20px; }
  .docs-nav > div { flex-wrap: wrap; gap: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
/* Search labels remain one horizontal control, including generic form resets. */
.card-head .search-box { display: flex; align-items: center; margin: 0; gap: 0; }
.card-head .search-box > .icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); z-index: 1; width: 17px; height: 17px; color: #788295; }
.card-head .search-box input { width: 100%; padding-left: 38px; }
.side-create[aria-label] { justify-content: center; }
.site-content > .stat-grid.four .stat-card { border-radius: 0; padding-block: 2px; min-height: 70px; }
.doc-grid .doc-step, .doc-grid .doc-step:nth-child(2), .doc-grid .doc-step:nth-child(3) { background: #f0f1ed; }
.doc-grid .doc-step p { color: #50596a; }
.docs-page .code-block button:hover, .docs-page .ghost:hover { color: #fefefe; }
@media (max-width: 760px) {
  .side-nav, .side-nav.collapsed { grid-template-columns: minmax(0, 1fr) auto auto; gap: 6px 12px; }
  .side-nav .side-brand, .side-nav.collapsed .side-brand { grid-column: 1; grid-row: 1; }
  .side-nav .side-brand-link > div, .side-nav.collapsed .side-brand-link > div { display: block; }
  .side-brand strong { font-size: 17px; }
  .side-nav .side-create, .side-nav.collapsed .side-create { grid-column: 2; grid-row: 1; }
  .mobile-account { grid-column: 3; grid-row: 1; }
  .side-nav .side-links, .side-nav.collapsed .side-links { grid-column: 1 / -1; grid-row: 2; }
  .site-actions .icon-btn { flex: 0 0 44px; width: 44px; }
}
@media (max-width: 760px) {
  .modal-backdrop { padding: 12px; }
  .modal-backdrop .modal-card { width: 100%; max-width: calc(100vw - 24px); max-height: calc(100dvh - 24px); margin: 0; }
}
