/* A restrained working surface. Neutral categories; color only for real warnings. */
:root {
  --paper: #fafaf9;
  --white: #fff;
  --ink: #1f1d1a;
  --muted: #706d66;
  --line: #e5e5e3;
  --green: #1f1d1a;
  --pale: #f2f1f0;
  --lime: #e5e5e3;
  --orange: #855c35;
  --surface: #f2f1f0;
  --body: #524f49;
  --rail: #0f0e0d;
}
body { font-size: 1rem; background: var(--paper); }
button, a { transition: background-color .15s, border-color .15s, color .15s; }
:focus-visible { outline: 2px solid #706d66; outline-offset: 3px; }
.icon { stroke-width: 1.4; }

/* Navigation is a quiet, separate rail, not another content panel. */
.sidebar { width: 236px; padding: 28px 17px 22px; background: var(--rail); color: #d4d1cc; border: 0; box-shadow: none; overflow-y: auto; }
.sidebar .brand { color: #fafaf9; font-family: var(--sans); font-size: 30px; font-weight: 550; letter-spacing: -.055em; padding-inline: 12px; }
.sidebar .brand > svg { width: 26px; height: 26px; fill: currentColor; }
.sidebar .brand > span { font-size: 12px; color: #a5a19b; letter-spacing: .07em; margin-left: 5px; }
.sidebar .new-search { color: #e7e5e1; background: transparent; border-color: #45423d; box-shadow: none; font-size: 14px; font-weight: 400; min-height: 44px; border-radius: 5px; margin-top: 30px; }
.sidebar .new-search:hover { background: #25231f; border-color: #625e57; }
.workspace-nav { margin-top: 20px; gap: 4px; }
.sidebar .workspace-nav > button, .sidebar .workspace-nav > a { color: #bbb7b0; font-size: 14px; min-height: 43px; padding: 11px 12px; border-radius: 5px; }
.sidebar .workspace-nav > button:hover, .sidebar .workspace-nav > a:hover { color: #f2f1f0; background: #25231f; }
.sidebar .workspace-nav > button[aria-current] { background: #33312c; color: #fff; font-weight: 400; box-shadow: none; }
.sidebar .nav-count { font-size: 12px; color: #bdb9b2; background: none; padding: 0 2px; }
.pro-tag { background: #efeeeb; color: #524f49; font-size: 12px; letter-spacing: .04em; border-radius: 3px; }
.sidebar .pro-tag { background: #302d28; color: #d4d1cc; font-size: 12px; }
.sidebar-project { border-color: #302d28; padding: 22px 12px 12px; margin-top: 25px; }
.sidebar .sidebar-label { color: #a5a19b; font-size: 12px; letter-spacing: .07em; margin-bottom: 17px; }
.sidebar-project label, .sidebar-project p { color: #a5a19b; font-size: 12px; }
.sidebar-project input { color: #e5e2dc; border-color: #45423d; font-size: 14px; padding: 7px 0; }
.plan-pocket { background: transparent; border-color: #36332e; border-radius: 6px; padding: 15px 13px; margin: 17px 0; }
.plan-pocket > div strong { color: #e5e2dc; font-size: 14px; font-weight: 500; }
.plan-pocket > div span { color: #b0aba4; font-size: 12px; letter-spacing: .03em; }
.plan-pocket p { color: #b0aba4; font-size: 12px; margin: 10px 0; }
.plan-pocket p strong { color: #e5e2dc; font-size: 16px; font-weight: 500; }
.plan-pocket progress { height: 3px; accent-color: #bbb7b0; }
.plan-pocket progress::-webkit-progress-bar { background: #33312c; }
.plan-pocket progress::-webkit-progress-value { background: #bbb7b0; }
.plan-pocket progress::-moz-progress-bar { background: #bbb7b0; }
.plan-pocket > a { color: #d4d1cc; font-size: 13px; margin-top: 12px; }
.sidebar-bottom { padding-top: 15px; }
.sidebar .subtle-button, .sidebar-bottom > a { color: #bbb7b0; font-size: 13px; min-height: 40px; }
.sidebar .subtle-button:hover, .sidebar-bottom > a:hover { color: #fff; }
.sidebar .local-badge { color: #bdb9b2; border-color: #302d28; font-size: 12px; }
.sidebar .local-badge small { color: #a5a19b; font-size: 12px; }
.local-badge > span { background: #a5a19b; }
.sidebar :focus-visible { outline-color: #d4d1cc; }

.workspace { margin-left: 236px; }
.topbar { height: 65px; background: var(--paper); border-color: var(--line); padding-inline: 38px; }
.breadcrumbs { font-size: 13px; color: var(--muted); }
.breadcrumbs > strong { color: var(--body); font-weight: 400; }
.topbar-actions { gap: 17px; }
.credit-chip, .preview-badge { background: transparent; border: 1px solid var(--line); color: var(--body); border-radius: 4px; padding: 6px 9px; font-size: 12px; min-height: 32px; }
.preview-badge i { display: none; }
.topbar-upgrade { color: var(--ink); font-size: 14px; }
.workspace main { max-width: 1400px; padding: 36px 38px 0; }
.welcome { margin: 0 0 28px; min-height: 0; }
.welcome h1, .page-heading h1 { font: 400 clamp(34px, 3.1vw, 44px)/1.12 var(--serif); letter-spacing: -.035em; max-width: none; }
.welcome p:last-child, .page-heading p:last-child { font-size: 16px; color: var(--muted); line-height: 1.6; margin-top: 10px; max-width: 700px; }
.eyebrow { color: var(--muted); font-size: 12px; letter-spacing: .075em; }

/* Search composer: one surface, understated tabs, a single primary action. */
.search-card { background: #fff; border-color: var(--line); border-radius: 10px; box-shadow: 0 2px 10px #0f0e0d03; }
.input-tabs { padding: 0 27px; gap: 28px; background: #fff; border-bottom: 1px solid var(--line); }
.input-tabs button { flex: 0 1 auto; gap: 9px; font-size: 14px; padding: 19px 0 17px; border: 0; border-bottom: 2px solid transparent; border-radius: 0; color: var(--muted); min-width: 0; line-height: 1.45; }
.input-tabs button[aria-selected=true] { border-bottom-color: var(--ink); color: var(--ink); background: transparent; font-weight: 500; }
.input-tabs button:hover { color: var(--ink); }
.input-tabs .icon { width: 17px; height: 17px; padding: 0; background: transparent; color: inherit; border-radius: 0; }
.input-content { padding: 24px 27px; }
.field-label { font-size: 14px; color: var(--ink); font-weight: 500; margin-bottom: 10px; }
.field-label span { color: var(--muted); font-weight: 400; }
.field-label:has(+ #claim-input) { margin-top: 16px; }
input, select, textarea { font-size: 16px; border-color: #d9d8d4; border-radius: 5px; background: #fff; }
input:focus, select:focus, textarea:focus { border-color: #8f8b85; }
input::placeholder, textarea::placeholder { color: #77736d; opacity: 1; }
.patent-input-wrap input { font-size: 17px; padding: 15px 17px 15px 45px; border-color: #d9d8d4; border-radius: 5px; background: #fff; letter-spacing: -.01em; }
.patent-input-wrap > .icon { top: 19px; left: 16px; width: 18px; color: var(--muted); }
.input-help { font-size: 12px; color: var(--muted); line-height: 1.7; }
.search-options { gap: 20px; margin-top: 20px; }
.search-options > div { min-width: 0; }
.search-options label { font-size: 14px; color: var(--body); }
.search-options label > span { font-size: 12px; color: var(--muted); }
.search-options input, .search-options select { height: 43px; font-size: 14px; padding: 9px 11px; background: #fff; }
.search-options #workspace-signin { font-size: 13px; min-height: 43px; margin-top: 28px; white-space: normal; }
.storage-choice { background: #fafaf9; border-color: var(--line); border-radius: 5px; }
.storage-choice strong { color: var(--body); font-size: 14px; }
.storage-choice small { color: var(--muted); font-size: 12px; line-height: 1.7; }
.storage-choice input { width: 16px; height: 16px; }
#live-consent-wrap { padding: 13px 15px; margin-top: 17px; }
.primary-button, .secondary-button { min-height: 43px; font-size: 14px; border-radius: 5px; line-height: 1.4; font-weight: 400; }
.primary-button { background: #1f1d1a; color: #fff; border-color: #1f1d1a; box-shadow: none; }
.primary-button:hover { background: #33312c; border-color: #33312c; }
.secondary-button { border-color: #d9d8d4; color: var(--ink); background: #fff; }
.secondary-button:hover { background: #f2f1f0; }
.plain-button { font-size: 14px; color: var(--body); }
.search-footer { background: #fafaf9; border-color: var(--line); padding: 17px 27px; }
.search-footer .primary-button { min-width: 178px; min-height: 45px; }
.search-footer #search-mode-note { font-size: 13px; color: var(--body); }
.search-footer #search-credit-note { font-size: 12px; color: var(--muted); }
.search-footer i { display: none !important; }
.starter-row { gap: 9px; margin: 17px 0 26px; }
.starter-row > span { font-size: 12px; color: var(--muted); letter-spacing: .03em; }
.starter-row > button { background: #fff; border-color: var(--line); color: var(--body); font-size: 12px; min-height: 34px; padding: 6px 10px; border-radius: 4px; }
.starter-row > button:hover { border-color: #b5b2ad; background: #f2f1f0; }
.starter-row > button:last-child { color: var(--muted); }

/* An existing secondary tool is a compact utility, not a promotional banner. */
.visualizer-promo { background: transparent; border: 0; border-block: 1px solid var(--line); border-radius: 0; padding: 19px 3px; margin: 0 0 32px; gap: 17px; box-shadow: none; }
.promo-art { flex: 0 0 44px; width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--line); background: #fff; border-radius: 7px; color: var(--body); }
.promo-art .icon { width: 21px; height: 21px; }
.visualizer-promo .eyebrow { font-size: 12px; color: var(--muted); letter-spacing: .025em; text-transform: none; margin-bottom: 4px; }
.visualizer-promo b { background: var(--surface); color: var(--body); font-size: 12px; font-weight: 400; border-radius: 3px; }
.visualizer-promo h2 { font: 500 16px/1.45 var(--sans); color: var(--ink); margin-bottom: 3px; }
.visualizer-promo p { font-size: 14px; color: var(--muted); line-height: 1.6; }
.promo-arrow { color: var(--muted); font-size: 23px; padding: 8px; }
.visualizer-promo:hover .promo-arrow { color: var(--ink); }

/* Evidence has a document-like hierarchy, with neutral jurisdiction labels. */
.results-top { margin-bottom: 20px; }
.results-title h2 { font-size: 19px; font-weight: 500; letter-spacing: -.02em; }
.count-pill { font-size: 12px; background: var(--surface); color: var(--body); border-radius: 4px; padding: 2px 7px; font-variant-numeric: tabular-nums; }
.results-top p { color: var(--muted); font-size: 13px; line-height: 1.65; }
.results-tools select { background: #fff; border-color: var(--line); font-size: 13px; max-width: 180px; min-height: 40px; padding: 9px; }
.results-layout { grid-template-columns: minmax(0, 1fr) 240px; gap: 24px; }
.result-list { gap: 14px; }
.result-card { display: block; background: #fff; border-color: var(--line); border-radius: 10px; padding: 25px 26px 19px; box-shadow: none; transition: border-color .15s; }
.result-card:hover { border-color: #bab7b2; box-shadow: none; transform: none; }
.result-emblem { display: none; }
.result-card[data-saved='true'] { border-color: #b8b5ae; }
.result-card:has(.compare-check input:checked) { border-color: #706d66; box-shadow: inset 0 0 0 1px #706d66; background: #fdfdfc; }
.result-top { gap: 9px; flex-wrap: wrap; }
.record-office { color: var(--body); background: var(--surface); border: 0; font-size: 12px; border-radius: 3px; padding: 3px 6px; }
.record-number, .result-date { font-size: 12px; color: var(--muted); }
.result-title-button { font-size: 19px; font-weight: 500; line-height: 1.45; color: var(--ink); padding: 12px 0 9px; letter-spacing: -.02em; }
.result-title-button:hover { color: var(--ink); }
.result-summary { font-size: 16px; line-height: 1.7; color: var(--body); -webkit-line-clamp: 3; max-width: none; }
.result-tags { gap: 7px; margin-top: 16px; }
.tag { background: #f7f7f6; color: var(--muted); border-color: #ecebe8; font-size: 12px; padding: 4px 7px; border-radius: 3px; }
.tag.warning { background: #faf6ef; border-color: #e8dcc7; color: #795a36; }
.result-bottom { margin-top: 18px; padding-top: 12px; border-color: #efeeeb; flex-wrap: wrap; }
.compare-check, .result-source, .record-visualize { color: var(--body); font-size: 13px; min-height: 34px; }
.compare-check input { width: 15px; height: 15px; }
.result-source .icon { width: 14px; height: 14px; }
.bookmark-button { color: var(--muted); width: 32px; height: 32px; border-radius: 4px; }
.bookmark-button:hover { background: var(--surface); }
.bookmark-button[aria-pressed=true] { background: var(--surface); color: var(--ink); }
.bookmark-button[aria-pressed=true] .icon { fill: #d4d1cc; }
.record-status { font-size: 12px; color: var(--body); }
.research-assistant { background: transparent; border: 0; border-left: 1px solid var(--line); border-radius: 0; padding: 6px 0 0 23px; }
.assistant-heading { color: var(--body); margin-bottom: 26px; }
.assistant-heading h3 { font-size: 14px; font-weight: 500; }
.research-assistant li { gap: 11px; margin-bottom: 24px; }
.research-assistant li > span { font-size: 12px; width: 22px; height: 22px; color: var(--muted); border-color: #d9d8d4; background: transparent; }
.research-assistant strong { font-size: 14px; color: var(--body); }
.research-assistant small { font-size: 12px; color: var(--muted); line-height: 1.75; }
.research-assistant > .secondary-button { background: #fff; color: var(--body); font-size: 13px; border-color: #d9d8d4; }
.research-assistant > .secondary-button > span { background: var(--surface); font-size: 12px; }
.assistant-foot { border-color: var(--line); margin-top: 22px; }
.assistant-foot p { font-size: 12px; line-height: 1.7; color: var(--muted); }
.warning-note, .form-error { background: #faf6ef; border-color: #e8dcc7; color: #795a36; font-size: 13px; line-height: 1.7; border-radius: 5px; }
.active-filter { background: var(--surface); color: var(--body); font-size: 12px; padding: 4px 8px; }

/* Shortlists, figures, usage and dialogs share the same typography and palette. */
.saved-card-note { background: #f7f7f6; border-color: #b8b5ae; color: var(--body); font-size: 14px; padding: 12px 15px; }
.saved-controls, .saved-controls select, .saved-controls > span { color: var(--muted); font-size: 14px; }
.history-card { border-color: var(--line); border-radius: 10px; padding: 23px; }
.history-card > .icon { color: var(--muted); }
.history-card h3 { font-size: 17px; }
.history-card p { color: var(--muted); font-size: 13px; }
.drop-zone { background: #fafaf9; border-color: #bab7b2; }
.drop-zone.dragover { background: var(--surface); border-color: var(--ink); }
#choose-figure { color: var(--body); }
#choose-figure > strong { font-size: 14px; }
#choose-figure > span, #figure-file-name { font-size: 12px; color: var(--muted); }
.figure-type-label, #figure-type { font-size: 14px; color: var(--body); }
#remove-figure { border-color: var(--line); }
.usage-grid article { border-color: var(--line); border-radius: 10px; background: #fff; }
.usage-grid article > span { color: var(--body); font-size: 14px; }
.usage-grid h2 { color: var(--ink); font-size: 54px; }
.usage-grid p { font-size: 16px; }
.usage-grid small { color: var(--muted); font-size: 12px; line-height: 1.7; }
.billing-panel { border-radius: 10px; }
.billing-panel p, .rates > div, .rates dd, .pack-list a { font-size: 14px; color: var(--body); }
.rates small, .usage-table, .usage-table th, .demo-notice { font-size: 12px; color: var(--muted); }
.rates > div, .usage-table th, .usage-table td { border-color: var(--line); }
.usage-table td:nth-child(3) { color: var(--body); }
.pack-list a { border-color: var(--line); }
.pack-list a:hover, .upgrade-benefits { background: var(--surface); }
.demo-notice { background: #f7f5f0; border-color: #e5e0d5; color: #6c6252; line-height: 1.7; }
.demo-notice > span { font-size: 12px; }
.upgrade-benefits span:before { color: var(--body); }
.compare-bar { left: calc(50% + 118px); background: var(--rail); color: #fff; border-radius: 7px; box-shadow: 0 10px 30px #0f0e0d24; font-size: 14px; }
.compare-bar small, .compare-bar .plain-button { color: #c3bfb8; font-size: 12px; }
.compare-bar .primary-button { background: #f2f1f0; color: var(--ink); border-color: #f2f1f0; font-size: 14px; min-height: 40px; }
dialog { border-color: var(--line); border-radius: 10px; box-shadow: 0 20px 80px #0f0e0d26; }
dialog::backdrop { background: #0f0e0d55; backdrop-filter: blur(2px); }
.modal-header { border-color: var(--line); }
.modal-header p { color: var(--muted); font-size: 14px; }
.modal-body > p, .info-line p, .info-line > strong { color: var(--body); font-size: 16px; }
.modal-body .subdued, .export-option small { color: var(--muted); font-size: 12px; }
.export-option { background: #fafaf9; color: var(--body); border-color: var(--line); }
.export-option strong { color: var(--ink); font-size: 15px; }
.icon-button { color: var(--muted); }
.icon-button:hover { background: var(--surface); }
.danger-button { font-size: 14px; background: #faf3f0; color: #8b4937; border-color: #e9d6cf; }
.detail-dialog { border-radius: 0; border-color: var(--line); }
.detail-header { background: var(--paper); }
.detail-number { color: var(--muted); font-size: 13px; }
.detail-meta dt { color: var(--muted); font-size: 12px; }
.detail-meta dd { color: var(--body); font-size: 14px; }
.detail-section h3, .review-fields label { font-size: 15px; color: var(--ink); }
.detail-section > p { font-size: 16px; color: var(--body); }
.detail-section .detail-disclaimer, .review-fields p { color: var(--muted); font-size: 12px; }
.review-fields { background: #fafaf9; border-color: var(--line); border-radius: 6px; }
.review-fields select, .review-fields textarea { font-size: 14px; }
.comparison-table th, .comparison-table td { border-color: var(--line); font-size: 14px; }
.comparison-table th, .comparison-table td:first-child { background: #f7f7f6; color: var(--body); }
.comparison-table td { color: var(--body); }
.comparison-table td:first-child { font-size: 13px; }
.comparison-table .compare-title { color: var(--ink); }
.empty-state { background: transparent; border-color: #d9d8d4; border-radius: 8px; }
.empty-state > .icon { color: var(--muted); }
.empty-state p { color: var(--muted); font-size: 16px; }
.workspace-footer, .workspace-footer button { color: var(--muted); font-size: 12px; }
.toast { background: var(--ink); color: #fff; font-size: 14px; border-radius: 5px; box-shadow: 0 5px 25px #0f0e0d24; }

@media (min-width: 761px) and (max-height: 850px) {
  .sidebar { padding-top: 22px; }
  .sidebar .new-search { margin-top: 24px; }
  .workspace-nav { margin-top: 14px; gap: 2px; }
  .sidebar .workspace-nav > button, .sidebar .workspace-nav > a { padding-block: 8px; min-height: 40px; }
  .sidebar-project { margin-top: 16px; padding-top: 15px; }
  .plan-pocket { margin-top: 12px; padding: 12px; }
  .sidebar-bottom { padding-top: 10px; }
}
@media (max-width: 1150px) {
  .sidebar { width: 220px; }
  .workspace { margin-left: 220px; }
  .workspace main { padding-inline: 27px; }
  .topbar { padding-inline: 27px; }
  .results-layout { grid-template-columns: minmax(0, 1fr) 215px; gap: 22px; }
  .result-card { padding: 22px; }
  .research-assistant { padding-left: 19px; }
  .input-tabs { gap: 22px; }
  .compare-bar { left: calc(50% + 110px); }
}
@media (max-width: 1000px) {
  .research-assistant { display: none; }
  .results-layout { grid-template-columns: 1fr; }
  .sidebar .workspace-nav > a { font-size: 14px; gap: 10px; }
  .sidebar .workspace-nav > a .pro-tag { display: inline; }
  .sidebar { overflow-y: auto; }
}
@media (max-width: 760px) {
  .sidebar { position: relative; width: 100%; height: auto; padding: 16px 15px !important; gap: 12px; overflow: visible; border: 0; }
  .sidebar .brand { padding: 0; font-size: 26px !important; }
  .sidebar .brand > svg { width: 23px !important; height: 23px; }
  .sidebar .brand > span { display: none; }
  .workspace { margin: 0; }
  .workspace-nav { gap: 3px; margin: 0 0 0 auto; }
  .sidebar .workspace-nav > button, .sidebar .workspace-nav > a { padding: 10px !important; min-height: 40px; font-size: 0 !important; gap: 0 !important; }
  .sidebar .workspace-nav > a .pro-tag { display: none; }
  .workspace-nav .icon { width: 18px; height: 18px; }
  .sidebar .nav-count { font-size: 12px; margin-left: 4px; }
  .topbar { height: 54px; padding-inline: 18px; gap: 10px; }
  .breadcrumbs { font-size: 12px; gap: 7px; }
  .topbar-actions { gap: 10px; }
  .topbar-upgrade, .credit-chip { font-size: 12px; }
  .preview-badge { display: none; }
  .workspace main { padding: 28px 18px 0; }
  .welcome { margin-bottom: 25px; }
  .welcome h1, .page-heading h1 { font-size: 36px; max-width: none; }
  .welcome p:last-child, .page-heading p:last-child { font-size: 16px; max-width: none; }
  .input-tabs { gap: 0; padding: 0 14px; justify-content: space-between; }
  .input-tabs button { font-size: 14px; padding: 16px 7px 14px; gap: 8px; flex: 1; justify-content: center; flex-direction: column; text-align: center; }
  .input-tabs .icon { width: 18px; height: 18px; }
  .input-content { padding: 21px 18px; }
  .patent-input-wrap input { font-size: 16px; }
  .field-label { font-size: 14px; }
  .input-help { font-size: 12px; }
  .search-options { gap: 15px; grid-template-columns: 1fr 1fr; }
  .search-options label, .search-options input, .search-options select { font-size: 14px; }
  .search-options > div:last-child { grid-column: 1 / -1; }
  .search-options #workspace-signin { margin-top: 0; width: 100%; font-size: 14px; }
  .search-footer { padding: 17px 18px; gap: 12px; }
  .search-footer .primary-button { width: 100%; font-size: 14px; }
  .starter-row > span { font-size: 12px; }
  .starter-row > button, .starter-row > button:last-child { font-size: 12px; }
  .visualizer-promo { padding-block: 18px; gap: 13px; }
  .promo-art { flex-basis: 38px; width: 38px; height: 38px; }
  .visualizer-promo h2 { font-size: 16px; }
  .visualizer-promo p { font-size: 14px; }
  .promo-arrow { display: none; }
  .results-top { flex-wrap: wrap; gap: 12px; align-items: center; }
  .results-title h2 { font-size: 19px; }
  .results-top p { max-width: none; font-size: 13px; }
  .results-tools select { max-width: 180px; font-size: 13px; }
  .result-card { padding: 20px 18px 16px; }
  .result-top { gap: 7px; position: relative; padding-right: 27px; }
  .record-office, .record-number, .result-date { font-size: 12px; }
  .record-number { overflow-wrap: anywhere; }
  .result-date { width: 100%; margin-left: 0; order: 4; }
  .bookmark-button { position: absolute; top: -3px; right: -6px; }
  .bookmark-button .icon { width: 18px; height: 18px; }
  .result-title-button { font-size: 19px; }
  .result-summary { font-size: 16px; }
  .tag { font-size: 12px; padding: 4px 7px; }
  .compare-check, .result-source, .record-visualize { font-size: 13px; min-height: 38px; }
  .compare-bar { left: 50%; font-size: 13px; padding: 12px 14px; }
  .compare-bar .primary-button { font-size: 13px; }
  .compare-bar small { font-size: 12px; }
  .history-card h3 { font-size: 16px; }
  .history-card p { font-size: 13px; }
  .history-card .secondary-button { font-size: 14px; }
  .usage-grid h2 { font-size: 46px; }
  .report-actions { margin-top: 18px; }
  .report-actions > button, .page-heading .primary-button { font-size: 14px; }
  .saved-controls { flex-wrap: wrap; }
  .saved-controls > span { width: 100%; margin-left: 0; }
  .saved-controls select { max-width: none; }
  .modal .primary-button, .modal .secondary-button, .detail-dialog .primary-button, .detail-dialog .secondary-button { font-size: 14px; }
  .modal-body > p, .info-line p { font-size: 16px; }
  .info-line { grid-template-columns: 1fr; gap: 4px; }
  .detail-number { font-size: 13px; flex-wrap: wrap; }
  .detail-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .detail-meta dt { font-size: 12px; }
  .detail-meta dd { font-size: 14px; }
  .detail-section > p { font-size: 16px; }
  .comparison-table th, .comparison-table td { font-size: 14px; }
  .brief-actions { flex-wrap: wrap; }
  .empty-state p { font-size: 16px; }
  .form-error { font-size: 13px; }
  .workspace-footer, .workspace-footer button { font-size: 12px; }
}
@media (max-width: 390px) {
  .sidebar { flex-wrap: wrap; }
  .workspace-nav { width: 100%; justify-content: space-between; margin-left: 0; }
  .input-tabs { padding-inline: 7px; }
  .input-tabs button { font-size: 14px; padding-inline: 5px; }
  .search-options { grid-template-columns: 1fr; }
  .search-options > div:last-child { grid-column: auto; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
@media print {
  .workspace { margin: 0; }
  .workspace main { padding: 0; }
  .result-card { box-shadow: none; border-color: #ccc; break-inside: avoid; }
}

/* ---- 2026-09 touch targets -------------------------------------------------
   Raise the smallest controls to a 44px hit area on small screens without
   changing how large they look. Specificity and load order must beat the
   editorial mobile block above. */
@media (max-width: 760px) {
  .sidebar .workspace-nav > button,
  .sidebar .workspace-nav > a { min-height: 44px; min-width: 44px; }
  .result-card .bookmark-button { min-width: 44px; min-height: 44px; padding: 0; }
  .result-bottom .compare-check,
  .result-bottom .result-source { min-height: 44px; }
  /* The label is the real target; give the box a comfortable size inside it. */
  .result-bottom .compare-check input { width: 18px; height: 18px; }
  .topbar .credit-chip,
  .topbar .preview-badge,
  .topbar .topbar-upgrade { min-height: 44px; display: inline-flex; align-items: center; }
  .workspace-footer a,
  .workspace-footer button { min-height: 44px; display: inline-flex; align-items: center; }
  .starter-row > button { min-height: 44px; }
  .results-tools #result-sort { min-height: 44px; }
  .search-options input,
  .search-options select,
  #workspace-signin { min-height: 44px; }
}
@media (max-width: 760px) {
  .sidebar .brand { min-height: 44px; display: inline-flex; align-items: center; }
  .workspace-footer > a,
  .workspace-footer .breadcrumbs a { min-width: 44px; justify-content: flex-start; }
  .topbar .topbar-upgrade { min-width: 44px; justify-content: center; }
  #workspace-signin { min-height: 44px; }
}
