@font-face {
  font-family: Geist;
  src: url('../radar-next/assets/geist-latin.woff2') format('woff2');
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}
:root {
  color-scheme: light;
  --bg: #fff;
  --surface: #f6f8fa;
  --hover: #e9edf1;
  --line: #e4e7eb;
  --line-strong: #d0d7de;
  --text: #1f2328;
  --muted: #59636e;
  --accent: #345de3;
  --accent-soft: #c9d5f8;
  --selected: #eff3ff;
  --danger: #aa4a43;
  --danger-soft: #fbefee;
  --success: #247557;
  --success-soft: #eaf5ef;
  --warn: #9a5b00;
  --warn-soft: #fff6e6;
  --ring: 0 0 0 4px rgba(52, 93, 227, .14);
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font: 14px/1.6 Geist, Arial, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  color: var(--text);
  background: var(--bg);
}
* { box-sizing: border-box; }
html { scroll-padding-top: 104px; }
html.sheet-open { overflow: hidden; }
body { margin: 0; background: var(--bg); }
[hidden] { display: none !important; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select, textarea { font: inherit; }
.mono { font-family: var(--mono); letter-spacing: -.1px; }
button, .file-button {
  min-height: 44px; padding: 10px 19px; border: 0; border-radius: 999px;
  background: #fff; color: var(--text); cursor: pointer; font-weight: 500; line-height: 1.5;
}
button:hover:not(:disabled), .file-button:hover { background: var(--hover); text-decoration: none; }
button:disabled { opacity: .4; cursor: not-allowed; }
input, select, textarea {
  display: block; width: 100%; min-width: 0; min-height: 48px; padding: 12px 15px;
  border: 1px solid var(--line); border-radius: 14px; color: var(--text); background: #fff;
}
input:hover:not(:disabled):not([readonly]), textarea:hover:not(:disabled) { border-color: var(--line-strong); }
input:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: var(--ring); }
input::placeholder, textarea::placeholder { color: #89919b; }
input[type=checkbox] { display: inline-block; appearance: auto; width: 16px; height: 16px; min-height: 16px; padding: 0; accent-color: var(--text); box-shadow: none; }
input[readonly] { color: var(--muted); background: var(--surface); }
input[aria-invalid=true] { border-color: var(--danger); }
textarea { resize: vertical; line-height: 1.8; }
label, .field-label { display: block; font-weight: 500; margin: 0 0 8px; }
h1, h2, h3, h4, p { margin-top: 0; }
h2 { font-size: 24px; font-weight: 600; letter-spacing: -.5px; margin-bottom: 0; }
h3 { font-size: 17px; font-weight: 600; }
summary { min-height: 44px; align-content: center; cursor: pointer; color: var(--muted); font-weight: 500; }
summary:hover { color: var(--text); }
details[open]>summary { margin-bottom: 12px; }
details p:last-child { margin-bottom: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: none; }
.icon { width: 16px; height: 16px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.nav-new-badge { display: inline-flex; align-items: center; justify-content: center; height: 16px; padding: 0 4px; border-radius: 4px; background: #e8efff; color: #2563eb; font-size: 11px; font-weight: 600; line-height: 1; transform: translateY(-3px); }

/* Intro */
main { width: min(1240px, calc(100% - 48px)); margin: auto; padding: 128px 0 32px; }
.intro { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 32px; padding-bottom: 32px; }
.intro-copy { flex: 1 1 560px; min-width: 0; }
.intro-label { display: inline-flex; align-items: center; gap: 9px; margin: 0 0 18px; padding: 7px 14px; background: var(--surface); border-radius: 999px; font-size: 13px; font-weight: 500; line-height: 1.4; }
.intro-label::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.intro h1 { font-size: 48px; line-height: 1.12; font-weight: 600; letter-spacing: -1px; margin: 0 0 14px; }
.lead { color: var(--muted); font-size: 17px; line-height: 1.7; margin: 0; }
.intro-notes { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 16px; color: var(--muted); font-size: 13px; }
.intro-notes span { padding: 6px 12px; border-radius: 999px; background: var(--surface); }
.intro-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 20px; margin-left: auto; }
.intro-actions a { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); padding: 6px 4px; text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 4px; }
.intro-actions a:hover { color: var(--accent); text-decoration-color: currentColor; }

/* Reference coverage is separate from API connection choices. */
.model-coverage { margin-bottom: 32px; }
.coverage-heading, .coverage-heading > div { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 14px; }
.coverage-heading { justify-content: space-between; gap: 8px 16px; margin-bottom: 12px; }
.coverage-heading h2 { font-size: 14px; letter-spacing: 0; }
.coverage-heading span { color: var(--muted); font-size: 13px; }
.coverage-heading .text-button { font-size: 13px; }
.coverage-logos { display: flex; flex-wrap: wrap; gap: 8px; }
.coverage-brand { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 44px; padding: 8px 15px; background: var(--surface); font-size: 13px; }
.coverage-brand img { flex-shrink: 0; width: 24px; height: 24px; object-fit: contain; }
.coverage-dialog { width: min(780px, calc(100% - 48px)); max-height: calc(100dvh - 48px); margin: auto; padding: 28px; border: 0; border-radius: 28px; color: var(--text); background: #fff; box-shadow: 0 24px 80px rgb(31 35 40 / 20%); }
.coverage-dialog[open] { display: flex; flex-direction: column; gap: 16px; }
.coverage-dialog::backdrop { background: rgb(31 35 40 / 42%); }
.coverage-dialog-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; flex-shrink: 0; }
.coverage-dialog-heading h2 { font-size: 24px; margin: 0 0 8px; }
.coverage-dialog-heading p { color: var(--muted); font-size: 13px; margin: 0; }
.coverage-close { flex-shrink: 0; display: grid; place-items: center; width: 44px; min-height: 44px; padding: 0; background: var(--surface); font-size: 24px; font-weight: 400; line-height: 1; }
.coverage-controls { flex-shrink: 0; min-width: 0; }
.coverage-controls label { font-size: 13px; }
.coverage-filters { display: flex; flex-wrap: wrap; gap: 4px; overflow-x: auto; padding: 12px 0 4px; scrollbar-width: thin; }
.coverage-filters button { flex-shrink: 0; min-height: 36px; padding: 6px 12px; font-size: 12px; color: var(--muted); }
.coverage-filters button[aria-pressed=true] { color: var(--accent); background: var(--selected); }
#coverage-results-count { flex-shrink: 0; margin: 0; }
.coverage-results { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; overflow-y: auto; overscroll-behavior: contain; min-height: 0; padding: 2px; }
.coverage-family { align-self: start; min-width: 0; padding: 16px; border-radius: 18px; background: var(--surface); }
.coverage-family:only-child { grid-column: 1 / -1; }
.coverage-family h3 { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 0 0 10px; font-size: 15px; }
.coverage-family h3 img { width: 24px; height: 24px; object-fit: contain; }
.coverage-family h3 small { margin-left: auto; color: var(--muted); font-size: 12px; font-weight: 400; }
.coverage-family ul { list-style: none; margin: 0; padding: 0; }
.coverage-family li { padding: 6px 0; font-size: 12px; line-height: 1.6; overflow-wrap: anywhere; }
.coverage-empty { margin: 20px 0; color: var(--muted); text-align: center; }

/* Workspace */
.workspace { display: grid; grid-template-columns: minmax(0, 1.85fr) minmax(300px, 1fr); align-items: start; gap: 24px; }
.panel, .method-panel { min-width: 0; background: var(--surface); border: 0; border-radius: 28px; padding: 32px; }
.panel-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.panel-heading p { margin: 6px 0 0; color: var(--muted); font-size: 14px; }
.tag { flex-shrink: 0; padding: 6px 12px; border-radius: 999px; background: #fff; color: var(--muted); font-size: 12px; }
.workflow-tabs { display: flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--hover); }
.workflow-tabs button { min-height: 40px; padding: 8px 18px; color: var(--muted); background: transparent; font-size: 13px; }
.workflow-tabs button[aria-selected=true] { color: #fff; background: var(--text); font-weight: 600; }
.workflow-tabs button[aria-selected=true]:hover:not(:disabled) { background: #343b43; }
.privacy-note { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 28px; padding: 10px 14px; border-radius: 12px; background: #fff; color: var(--muted); font-size: 13px; line-height: 1.7; }
.privacy-note::before { content: ''; flex-shrink: 0; width: 8px; height: 8px; margin-top: 7px; border-radius: 50%; background: var(--success); }

/* Steps */
.steps { list-style: none; padding: 0; margin: 0; }
.step { position: relative; display: grid; grid-template-columns: 32px minmax(0, 1fr); column-gap: 20px; padding-bottom: 36px; }
.step:last-child { padding-bottom: 0; }
.step:not(:last-child)::before { content: ''; position: absolute; left: 15px; top: 40px; bottom: 8px; width: 2px; border-radius: 2px; background: #d8dee4; }
.step[data-state=done]:not(:last-child)::before { background: var(--text); }
.step-marker { position: relative; z-index: 1; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; border: 1.5px solid var(--line-strong); background: #fff; color: var(--muted); font-size: 14px; font-weight: 600; }
.step-check { display: none; width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.step[data-state=active] .step-marker { border: 2px solid var(--accent); color: var(--accent); }
.step[data-state=done] .step-marker { border-color: var(--text); background: var(--text); color: #fff; }
.step[data-state=done] .step-number { display: none; }
.step[data-state=done] .step-check { display: block; }
.step-body { min-width: 0; }
.step-heading { display: flex; align-items: center; gap: 10px; min-height: 32px; }
.step-heading h3 { margin: 0; font-size: 18px; }
.step-status { color: var(--success); font-size: 12px; font-weight: 500; }
.step-status.pending { color: var(--muted); }
.step-intro { margin: 2px 0 0; color: var(--muted); }
.step-body > .field, .step-body > .connection-grid, .step-body > .model-picker, .step-body > .reference-card, .step-body > .advanced-settings, .step-body > .api-actions { margin-top: 18px; }
.connection-grid, .api-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.field { min-width: 0; }
.optional { margin-left: 5px; color: var(--muted); font-size: 12px; font-weight: 400; }
.hint { color: var(--muted); font-size: 12px; line-height: 1.8; overflow-wrap: anywhere; margin: 10px 0; }
.field-hint { margin: 6px 0 0; }
.label-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.label-row .field-label { margin: 0; }
.text-button { min-height: 36px; padding: 5px 4px; background: transparent; color: var(--accent); font-size: 13px; }
.text-button:hover:not(:disabled) { background: transparent; color: #254bb5; }
.request-target { font-size: 12px; margin: 12px 0 0; }
.catalog-count, .catalog-source, .catalog-help { font-size: 12px; margin: 8px 0 0; }
.catalog-source a { margin-left: 6px; }
.catalog-count:empty, .catalog-source:empty, .form-status:empty, .request-target:empty, .ready-status:empty, .reference-note:empty { display: none; }
.consent { display: flex; align-items: flex-start; gap: 9px; margin: 14px 0; color: var(--muted); font-size: 13px; font-weight: 400; line-height: 1.8; }
.consent input { flex-shrink: 0; margin: 4px 0 0; }
.manual-toggle { margin: 14px 0 0; }
#api-manual-field { margin-top: 14px; }
.form-status { color: var(--danger); font-size: 13px; line-height: 1.8; overflow-wrap: anywhere; margin: 12px 0 0; }
.form-status.success { color: var(--success); }
.form-status.notice { color: var(--muted); }
.catalog-status { color: var(--muted); }
.catalog-status.error { color: var(--danger); }
.reference-card { padding: 16px 18px; border-radius: 18px; background: #fff; }
.reference-card .combo-trigger { border-color: transparent; background: var(--surface); }
.reference-card .reference-note { margin-bottom: 0; }
.field-hint.error, .reference-note.error { color: var(--danger); }
.advanced-settings > summary { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 13px; color: var(--text); }
.advanced-summary { color: var(--muted); font-size: 12px; font-weight: 400; }
.advanced-settings .field, .advanced-settings .api-grid { margin-top: 14px; }
.advanced-settings .hint { font-size: 12px; }
.action-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.primary { min-height: 48px; padding: 12px 28px; background: var(--text); color: #fff; font-size: 15px; font-weight: 600; }
.primary:hover:not(:disabled) { background: #343b43; }
.cta { display: inline-flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 56px; padding: 8px 8px 8px 28px; }
.cta::after { content: '→'; display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: #fff; color: var(--text); font-size: 17px; }
.api-actions { gap: 12px 18px; }
.call-summary { margin: 0; color: var(--muted); font-size: 13px; }
.connection-note { font-size: 12px; color: var(--muted); line-height: 1.8; margin: 14px 0 0; }
.ready-status { margin-top: 12px; }
.ready-row { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 8px; }
.ready-row .ready-status { margin-bottom: 0; }
.ready-action { min-height: 0; margin-top: 4px; padding: 2px 4px; font-weight: 600; }
.engine-row { display: flex; align-items: start; justify-content: space-between; gap: 16px; padding-top: 12px; margin-top: 28px; border-top: 1px solid var(--line); font-size: 12px; }
.engine-status { color: var(--muted); padding-top: 11px; }
.engine-status.ready::before { content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--success); margin-right: 7px; }
.engine-status.error { color: var(--danger); }
.protocol-note { text-align: right; max-width: 65%; }
.protocol-note summary { font-size: 12px; font-weight: 400; }
.protocol-note .hint { text-align: left; }

/* Choice groups (segmented, cards, list) mirror a hidden native select. */
.choice-group { display: flex; flex-wrap: wrap; gap: 12px; }
.choice-group .choice { margin: 0; font-weight: 500; }
.choice-segmented { gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.choice-segmented .choice { flex: 1 1 140px; min-height: 40px; padding: 8px 12px; border-radius: 10px; background: transparent; color: var(--muted); font-size: 13px; }
.choice-segmented .choice:hover:not(:disabled) { background: var(--surface); color: var(--text); }
.choice-segmented .choice[aria-checked=true] { background: var(--selected); color: var(--accent); font-weight: 600; }
.choice-cards .choice, .choice-list .choice { flex: 1 1 200px; display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; border: 2px solid transparent; border-radius: 16px; background: #fff; text-align: left; line-height: 1.5; }
.choice-list { flex-direction: column; gap: 8px; }
.choice-list .choice { flex: 0 0 auto; padding: 12px 14px; }
.choice-cards .choice:hover:not(:disabled), .choice-list .choice:hover:not(:disabled) { background: #fff; border-color: var(--line-strong); }
.choice-cards .choice[aria-checked=true], .choice-list .choice[aria-checked=true] { border-color: var(--accent); }
.choice-dot { flex-shrink: 0; width: 16px; height: 16px; margin-top: 2px; border-radius: 50%; border: 1.5px solid #8c959f; }
.choice[aria-checked=true] .choice-dot { border: 5px solid var(--accent); }
.choice-body { display: flex; flex-direction: column; min-width: 0; }
.choice-title { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--text); font-weight: 600; }
.choice-badge { padding: 1px 8px; border-radius: 999px; background: var(--selected); color: var(--accent); font-size: 12px; font-weight: 600; }
.choice-desc { color: var(--muted); font-size: 13px; font-weight: 400; }
#api-provider + .choice-group { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
#api-provider + .choice-group .choice { min-width: 0; gap: 8px; padding: 10px 12px; border-radius: 14px; }
#api-provider + .choice-group .choice-title { font-size: 13px; overflow-wrap: anywhere; }
#api-provider + .choice-group .choice-desc { font-size: 11px; }
#api-rounds + .choice-group .choice-dot { display: none; }
.choice-group[data-disabled] { opacity: .7; }

/* Combobox: a searchable listbox; a bottom sheet on narrow screens. */
.combo { position: relative; }
.combo-trigger { width: 100%; min-height: 52px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 16px; border: 1px solid var(--line); border-radius: 14px; background: #fff; color: var(--text); font-weight: 400; text-align: left; }
.combo-trigger:hover:not(:disabled) { background: #fff; border-color: var(--line-strong); }
.combo[data-open] .combo-trigger { border-color: var(--accent); box-shadow: var(--ring); }
.combo-value { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; min-width: 0; }
.combo-primary { font-size: 15px; font-weight: 500; overflow-wrap: anywhere; }
.combo-primary.is-placeholder { color: var(--muted); font-family: inherit; font-weight: 400; font-size: 14px; }
.combo-secondary { color: var(--muted); font-size: 12px; }
.combo-secondary:empty { display: none; }
.combo-chevron { width: 18px; height: 18px; color: var(--muted); transition: transform .15s; }
.combo[data-open] .combo-chevron { transform: rotate(180deg); }
.combo-panel { position: absolute; z-index: 25; top: calc(100% + 8px); left: 0; right: 0; padding: 8px; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: 0 18px 48px rgba(31, 35, 40, .14); }
.combo-head { display: none; }
.combo-search { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 12px; border-radius: 12px; background: var(--surface); color: var(--muted); }
.combo-search:focus-within { box-shadow: inset 0 0 0 1px var(--line-strong); }
.combo-search input { flex: 1 1 auto; min-height: 40px; padding: 0; border: 0; border-radius: 0; background: transparent; color: var(--text); box-shadow: none; }
.combo-search input:focus { box-shadow: none; }
.combo-count { font-size: 12px; white-space: nowrap; }
.combo-list { max-height: 320px; overflow-y: auto; overscroll-behavior: contain; margin-top: 4px; }
.combo-group { margin: 12px 12px 4px; color: var(--muted); font-size: 12px; font-weight: 600; }
.combo-group-note { font-weight: 400; }
.combo-option { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; padding: 6px 12px; border-radius: 10px; cursor: pointer; }
.combo-option.is-active { background: var(--surface); }
.combo-option[aria-selected=true] { background: var(--selected); }
.combo-option[aria-disabled] { opacity: .45; cursor: not-allowed; }
.combo-option-main { display: flex; align-items: center; gap: 10px; min-width: 0; }
.combo-option-text { overflow-wrap: anywhere; }
.combo-custom { border-top: 1px dashed var(--line); }
.combo-custom .combo-option-text { color: var(--accent); font-weight: 500; }
.combo-check { width: 14px; height: 14px; color: var(--accent); stroke-width: 2.6; visibility: hidden; }
.combo-option[aria-selected=true] .combo-check { visibility: visible; }
.combo-option[aria-selected=true] .combo-option-text { font-weight: 500; }
.combo-option-tag { flex-shrink: 0; color: var(--muted); font-size: 12px; text-align: right; }
.combo-option[aria-selected=true] .combo-option-tag { color: var(--accent); }
.combo-empty { margin: 0; padding: 24px 12px; color: var(--muted); font-size: 13px; text-align: center; }
.combo-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 12px; margin-top: 6px; padding: 8px 12px 0; border-top: 1px solid #eef1f4; color: var(--muted); font-size: 12px; }
.combo-foot .text-button { font-size: 12px; min-height: 32px; }
.combo-backdrop { display: none; }

/* Aside */
.method-panel { display: flex; flex-direction: column; gap: 28px; }
.plan-card h2 { font-size: 18px; margin-bottom: 16px; }
.plan-dial { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 18px; }
.mini-dial { position: relative; flex-shrink: 0; width: 150px; height: 150px; }
.mini-dial svg { display: block; width: 100%; height: 100%; }
.mini-dial .dial-track, .empty-glyph .dial-track { stroke: #fff; stroke-width: 18; }
.mini-dial .dial-seg, .empty-glyph .dial-seg { stroke-width: 9; }
.mini-dial .dial-seg[data-state=planned] { stroke: var(--accent-soft); }
.mini-dial .dial-seg[data-state=optional], .empty-glyph .dial-seg[data-state=optional] { stroke-width: 2.5; stroke-dasharray: 1.5 6; }
.mini-dial-core { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.1; }
.mini-dial-core b { font-size: 34px; font-weight: 500; letter-spacing: -1px; }
.mini-dial-core small { color: var(--muted); font-size: 12px; }
.plan-legend { flex: 1 1 160px; list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; color: var(--muted); font-size: 12px; }
.plan-legend li { display: flex; align-items: center; gap: 8px; }
.plan-legend li::before { content: ''; flex-shrink: 0; width: 14px; height: 4px; border-radius: 999px; background: var(--accent-soft); }
.plan-legend li[data-state=optional]::before { height: 0; border-top: 2px dotted #b9c3ce; background: none; }
.plan-legend b { color: var(--text); font-weight: 600; white-space: nowrap; }
.plan-note { color: var(--muted); font-size: 12px; line-height: 1.8; margin: 14px 0 0; }
.plan-list { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px 16px; margin: 18px 0 0; padding-top: 18px; border-top: 1px solid var(--line); font-size: 13px; }
.plan-list dt { color: var(--muted); }
.plan-list dd { margin: 0; text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#plan-reference { color: var(--accent); }
.section-label { color: var(--muted); font-size: 12px; margin: 0 0 6px; font-weight: 500; }
.method-flow h2 { font-size: 18px; letter-spacing: -.3px; }
.method-intro { color: var(--muted); font-size: 13px; line-height: 1.8; margin: 8px 0 20px; }
.fingerprint-flow { margin: 0; }
.flow-steps { list-style: none; padding: 0; margin: 0; }
.flow-steps>li { position: relative; display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 12px; padding-bottom: 18px; }
.flow-steps>li:last-child { padding-bottom: 0; }
.flow-number { display: grid; place-content: center; width: 28px; height: 28px; border-radius: 50%; background: #fff; color: var(--text); font-size: 11px; font-variant-numeric: tabular-nums; }
.flow-steps h3 { font-size: 14px; font-weight: 600; margin: 3px 0 2px; }
.flow-steps p { color: var(--muted); font-size: 13px; line-height: 1.7; margin: 0; }
.number-tape { margin-top: 6px; color: var(--muted); font: 12px/1.8 var(--mono); white-space: nowrap; }
.distribution-example { display: flex; align-items: flex-end; gap: 4px; height: 26px; margin-top: 8px; }
.distribution-example span { width: 6px; height: 10px; border-radius: 2px; background: var(--accent-soft); }
.distribution-example span:nth-child(2n) { height: 18px; background: #9db2f1; }
.distribution-example span:nth-child(3n) { height: 13px; }
.distribution-example span:nth-child(4) { height: 24px; background: var(--accent); }
.distribution-example small { font-size: 11px; color: var(--muted); margin-left: 5px; }
.data-path h3 { font-size: 14px; font-weight: 600; margin: 0 0 12px; }
.request-path { display: flex; gap: 18px; list-style: none; padding: 0; margin: 0; }
.request-path li { position: relative; min-width: 0; flex: 1; padding: 8px 4px; background: #fff; border-radius: 10px; font-size: 12px; text-align: center; overflow-wrap: anywhere; }
.request-path li:not(:last-child)::after { content: '↔'; position: absolute; right: -18px; top: 50%; width: 18px; transform: translateY(-50%); color: #89939e; font-size: 12px; }
.request-path[data-route=manual] li:not(:last-child)::after { content: '→'; }
.data-path p, .method-footnote { color: var(--muted); font-size: 12px; line-height: 1.8; margin: 12px 0 0; }
.method-footnote { padding-top: 14px; border-top: 1px solid var(--line); }

/* Manual */
.manual-steps { display: flex; flex-wrap: wrap; gap: 10px 18px; margin: 0 0 16px; color: var(--muted); font-size: 12px; }
.manual-steps span { display: inline-flex; align-items: center; gap: 6px; }
.manual-steps b { display: inline-grid; place-content: center; width: 22px; height: 22px; border-radius: 50%; background: #fff; font-size: 11px; font-weight: 500; }
.manual-intro { color: var(--muted); font-size: 13px; line-height: 1.8; margin: 0 0 20px; }
.manual-intro strong { font-weight: 500; color: var(--text); }
#questions { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.question { min-width: 0; padding: 20px; border-radius: 20px; background: #fff; }
.question-title { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.question-title h3 { font-size: 16px; margin: 0; }
.question-title .copy { min-height: 36px; padding: 6px 12px; font-size: 12px; background: var(--surface); }
.question-count { color: var(--muted); font-size: 12px; line-height: 1.8; margin: 8px 0 0; }
.prompt-details { margin: 6px 0 12px; }
.prompt-details summary { font-size: 12px; font-weight: 400; min-height: 32px; }
.prompt { padding: 12px; margin: 0; max-height: 260px; overflow-y: auto; white-space: pre-wrap; overflow-wrap: anywhere; border-radius: 12px; background: var(--surface); color: var(--muted); font: 12px/1.8 var(--mono); }
.question label { font-size: 13px; margin-top: 10px; }
.question textarea { min-height: 150px; padding: 12px; font-size: 12px; background: var(--surface); border-color: transparent; }
.question .hint { font-size: 11px; margin-bottom: 0; }
.copy-feedback { color: var(--success); font-size: 12px; min-height: 20px; margin: 4px 0 0; }
/* Empty until a copy: take no room under the heading; the live region stays rendered. */
.copy-feedback:empty { min-height: 0; margin: 0; }
.optional-question { grid-column: 1/-1; }
.optional-question>summary { font-size: 13px; padding: 0 4px; }
.manual-meta { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; gap: 16px; margin-top: 22px; }
.manual-meta > .field:first-child { padding: 16px 0 0; }
.manual-actions { margin-top: 24px; }
.file-button { display: inline-flex; align-items: center; margin: 0; font-size: 14px; font-weight: 500; }
.visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; min-height: 0 !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0,0,0,0) !important; white-space: nowrap !important; border: 0 !important; }

/* Result */
.result-panel { grid-column: 1/-1; }
.result-panel .panel-heading { margin-bottom: 20px; }
.empty-result { display: flex; align-items: center; gap: 24px; padding: 24px; border-radius: 20px; background: #fff; }
.empty-result h3 { font-size: 16px; margin: 0 0 6px; }
.empty-result p { font-size: 13px; color: var(--muted); margin: 0; line-height: 1.8; }
.empty-glyph { flex-shrink: 0; width: 72px; height: 72px; }
.empty-glyph svg { display: block; width: 100%; height: 100%; }
.empty-glyph .dial-track { stroke: var(--surface); }
.result-layout { display: grid; grid-template-columns: minmax(0, 1fr); }
.result-main { min-width: 0; }
.run-status { margin: 0 0 16px; padding: 12px 18px; border-radius: 14px; background: #fff; color: var(--muted); font-size: 13px; line-height: 1.8; overflow-wrap: anywhere; }
.run-status[data-state=complete] { color: var(--success); }
.run-status[data-state=partial], .run-status[data-state=cancelled] { color: var(--danger); }
.result-summary { padding: 24px; border-radius: 24px; background: #fff; }
.result-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 24px; }
.result-target { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; margin: 0; font-size: 12px; color: var(--muted); }
.result-target strong { min-width: 0; color: var(--text); font-size: 14px; font-weight: 500; overflow-wrap: anywhere; }
#result-reference-model { color: var(--accent); }
.eyebrow { font-size: 12px; color: var(--muted); margin: 0 0 0 auto; }

/* Dial: three arcs, one per question. */
.dial { position: relative; width: min(100%, 600px); margin: 12px auto 0; padding-bottom: 34px; }
.dial-figure { position: relative; width: 63.4%; margin: 0 auto; aspect-ratio: 1; }
.dial-ring { display: block; width: 100%; height: 100%; }
.dial-track { fill: none; stroke: var(--surface); stroke-width: 30; }
.dial-seg { fill: none; stroke: #d8dee4; stroke-width: 14; stroke-linecap: round; transition: stroke .3s; }
.dial-seg[data-state=done] { stroke: var(--accent); }
.dial-seg[data-state=weak] { stroke: #d9a39e; }
.dial-seg[data-state=running] { stroke: var(--accent); }
.dial-seg[data-state=optional] { stroke: #b9c3ce; stroke-width: 3; stroke-dasharray: 2 9; }
.dial-core { position: absolute; inset: 17%; display: flex; align-items: center; justify-content: center; padding: 6%; border-radius: 50%; background: var(--surface); text-align: center; }
.dial-answer, .dial-progress { display: flex; flex-direction: column; align-items: center; min-width: 0; }
.match-label { color: var(--muted); font-size: 12px; font-weight: 500; margin: 0 0 6px; }
.result-summary h3 { margin: 0; font-size: clamp(17px, 2.4vw, 24px); line-height: 1.25; font-weight: 500; letter-spacing: -.3px; overflow-wrap: anywhere; }
.verdict-chip { display: inline-flex; align-items: center; gap: 6px; margin: 12px 0 0; padding: 4px 12px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.verdict-chip::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.verdict-chip[data-verdict=match] { background: var(--success-soft); color: var(--success); }
.verdict-chip[data-verdict=near] { background: var(--warn-soft); color: var(--warn); }
.verdict-chip[data-verdict=mismatch] { background: var(--danger-soft); color: var(--danger); }
.dial-progress span, .dial-progress small { color: var(--muted); font-size: 12px; }
.dial-progress b { margin: 4px 0 8px; font-size: 40px; line-height: 1.1; font-weight: 500; letter-spacing: -1px; }
.dial-labels { list-style: none; padding: 0; margin: 0; }
.dial-label { position: absolute; color: var(--muted); font-size: 12px; line-height: 1.4; }
.dial-label b { display: block; color: var(--text); font-size: 13px; font-weight: 600; }
.dial-label[data-state=running], .dial-label[data-state=running] b { color: var(--accent); }
.dial-label[data-state=weak] span { color: var(--danger); }
#dial-label-0 { left: 80%; top: 14%; }
#dial-label-2 { right: 80%; top: 14%; text-align: right; }
#dial-label-1 { left: 0; right: 0; bottom: 0; text-align: center; }
#dial-label-1 b { display: inline; margin-right: 8px; }
.verdict { text-align: center; margin-top: 12px; }
.verdict-line { margin: 0 0 6px; font-size: 22px; font-weight: 600; line-height: 1.4; }
.verdict-line[data-verdict=match] { color: var(--success); }
.verdict-line[data-verdict=mismatch] { color: var(--danger); }
.verdict-line[data-verdict=unset] { color: var(--muted); font-size: 14px; font-weight: 500; }
.disagreement { color: var(--muted); font-size: 14px; line-height: 1.8; margin: 0; }
.dial-cancel { min-height: 36px; margin-top: 12px; padding: 6px 16px; background: #fff; font-size: 13px; }
.followup-action { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 20px 0 0; }
.followup-action button:not(.primary) { background: var(--surface); }
.followup-action .cta { min-height: 52px; font-size: 14px; }
.api-continuation { padding: 24px; margin: 16px 0 0; border-radius: 24px; background: #fff; }
.api-continuation h4 { margin: 0 0 8px; font-size: 16px; font-weight: 600; }
.api-continuation .hint { font-size: 13px; margin: 6px 0 12px; }
.api-continuation .action-row { margin-top: 16px; }
.api-continuation .action-row button:not(.primary) { background: var(--surface); }
.candidates-block { margin-top: 24px; }
.candidates-block h4 { margin: 0 0 10px; font-size: 15px; font-weight: 600; }
.candidates-block h4 span { margin-left: 6px; color: var(--muted); font-size: 12px; font-weight: 400; }
.candidate-list { display: flex; flex-direction: column; gap: 8px; }
.candidate-list .hint { margin: 0; }
.candidate-row { display: flex; align-items: center; gap: 16px; min-height: 52px; padding: 8px 18px; border-radius: 14px; background: #fff; }
.candidate-row.is-reference { box-shadow: inset 0 0 0 2px var(--accent); }
.candidate-row>div { min-width: 0; flex: 1 1 auto; }
.candidate-index { color: var(--muted); font: 12px var(--mono); }
.candidate-name { overflow-wrap: anywhere; }
.candidate-row:first-child .candidate-name { font-weight: 500; }
.similarity-block { margin-top: 24px; }
.similarity-block h4 { margin: 0 0 10px; font-size: 15px; font-weight: 600; }
.similarity-block h4 span { margin-left: 6px; color: var(--muted); font-size: 12px; font-weight: 400; }
.similarity-chart { display: block; width: 100%; height: auto; border-radius: 14px; background: #fff; }
.similarity-chart .axis { fill: var(--line); }
.similarity-chart .dot { fill: #cdd3de; }
.similarity-chart .dot-top { fill: var(--accent); }
.similarity-chart .dot-reference { stroke: #fff; stroke-width: 3; fill: var(--accent); }
.similarity-chart .dot-reference[data-verdict=match] { fill: var(--success); }
.similarity-chart .dot-reference[data-verdict=near] { fill: #b26b00; }
.similarity-chart .dot-reference[data-verdict=mismatch] { fill: var(--danger); }
.similarity-axis { display: flex; justify-content: space-between; margin: 6px 4px 0; color: var(--muted); font-size: 12px; }
.similarity-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 8px 2px 0; color: var(--muted); font-size: 13px; }
.similarity-legend span { display: inline-flex; align-items: center; gap: 6px; }
.similarity-legend i { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }
.similarity-legend i[data-verdict=match] { background: var(--success); }
.similarity-legend i[data-verdict=near] { background: #b26b00; }
.similarity-legend i[data-verdict=mismatch] { background: var(--danger); }
.similarity-legend b { color: var(--text); font: 500 13px var(--mono); }
.candidate-tag { flex-shrink: 0; padding: 2px 10px; border-radius: 999px; background: var(--selected); color: var(--accent); font-size: 12px; font-weight: 500; }
.evidence { padding: 4px 0; }
.evidence summary { font-size: 14px; color: var(--text); }
.evidence h4 { font-size: 13px; font-weight: 500; margin: 14px 0 8px; }
.evidence ol { padding-left: 22px; color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
.evidence li { padding: 4px 0; }
.technical-details { margin-top: 16px; padding: 4px 18px; border-radius: 16px; background: #fff; }
.technical-details .evidence { border-top: 1px solid #eef1f4; }
.diagnostics { color: var(--muted); font-size: 12px; line-height: 1.8; margin: 14px 0; }
.diagnostics p { margin-bottom: 6px; }
.result-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; margin-top: 20px; }
.usage-box { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 14px; min-width: 0; }
.usage-box h4 { color: var(--text); font-size: 13px; font-weight: 600; margin: 0; }
.usage-box .usage { font-size: 13px; margin: 0; }
.result-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; min-width: 0; }
.result-action-buttons { margin: 0; }
.save-status { margin: 0; }
.save-status.error { color: var(--danger); }
#history-title { scroll-margin-top: 112px; }
.result-actions button, #contribute button { font-size: 13px; }
#contribute { margin-top: 16px; padding: 4px 18px 14px; border-radius: 16px; background: #fff; }
#contribute .combo { margin-bottom: 14px; }
#contribute .combo-trigger { background: var(--surface); border-color: transparent; }
#contribute button:not(.combo-trigger):not(.combo-close):not(.text-button) { background: var(--surface); }
#submission-review { margin-top: 18px; }
#submission-json { font: 12px/1.8 var(--mono); }
.verdict-guide { margin-top: 12px; padding: 4px 18px; border-radius: 16px; background: #fff; }
.verdict-guide summary { font-size: 14px; }
.verdict-guide > p { color: var(--muted); font-size: 12px; line-height: 1.8; margin: 12px 0; }
.verdict-guide ul { list-style: none; padding: 0; margin: 14px 0; display: flex; flex-direction: column; gap: 8px; }
.verdict-guide li { display: grid; grid-template-columns: 8px minmax(0, 1fr); column-gap: 12px; padding: 10px 12px; border-radius: 14px; background: var(--surface); font-size: 13px; }
.verdict-guide li::before { content: ''; grid-row: 1 / span 2; width: 8px; height: 8px; margin-top: 7px; border-radius: 50%; }
.verdict-guide li[data-verdict=match]::before { background: var(--success); }
.verdict-guide li[data-verdict=near]::before { background: #b26b00; }
.verdict-guide li[data-verdict=mismatch]::before { background: var(--danger); }
.verdict-guide li[data-verdict=unset]::before { border: 1.5px solid #8c959f; }
.verdict-guide li b { font-weight: 600; }
.verdict-guide li span { color: var(--muted); }
.verdict-guide li[data-active] { background: #fff; box-shadow: inset 0 0 0 2px var(--line-strong); }
.verdict-guide li[data-active][data-verdict=match] { box-shadow: inset 0 0 0 2px var(--success); }
.verdict-guide li[data-active][data-verdict=near] { box-shadow: inset 0 0 0 2px #b26b00; }
.verdict-guide li[data-active][data-verdict=mismatch] { box-shadow: inset 0 0 0 2px var(--danger); }
.boundary { color: var(--muted); font-size: 12px; line-height: 1.8; margin: 18px 0 0; }

/* FAQ, history, footer */
.faq-section { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.85fr); gap: 60px; margin-top: 48px; padding: 0 0 36px; border-bottom: 1px solid var(--line); }
.faq-section h2 { font-size: 24px; }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list details:first-child { border-top: 1px solid var(--line); }
.faq-list summary { padding: 12px 0; min-height: 54px; font-size: 15px; color: var(--text); line-height: 1.8; }
.faq-list p { color: var(--muted); font-size: 14px; line-height: 1.9; padding: 0 0 18px; }
.history-section { padding: 30px 0; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.section-heading h2 { font-size: 18px; }
.section-heading span { color: var(--muted); font-size: 12px; }
.history-row { display: flex; align-items: center; gap: 10px; padding: 14px 0; border-top: 1px solid var(--line); }
.history-label { flex: 1; min-width: 0; font-size: 14px; overflow-wrap: anywhere; }
.history-label small { display: block; color: var(--muted); font-size: 12px; margin-top: 4px; }
.history-row button { background: var(--surface); font-size: 13px; min-height: 36px; padding: 6px 14px; }
.history-row button.delete { color: var(--muted); background: transparent; }
.site-privacy { max-width: 520px; }
.site-privacy p { color: var(--muted); line-height: 1.8; }
.site-privacy > button { margin-top: 8px; }

@media (max-width: 1100px) {
  .workspace { grid-template-columns: minmax(0, 1.65fr) minmax(280px, 1fr); gap: 20px; }
  .panel, .method-panel { padding: 26px; }
  .connection-grid, #questions { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .workspace { grid-template-columns: 1fr; }
  .input-panel { order: 0; }
  .result-panel { order: 1; }
  .method-panel { order: 2; }
  .faq-section { grid-template-columns: 1fr; gap: 24px; margin-top: 36px; }
}
@media (max-width: 760px) {
  html { scroll-padding-top: 92px; }
  main { width: calc(100% - 32px); padding-top: 104px; }
  .intro { padding-bottom: 24px; }
  .intro h1 { font-size: 36px; letter-spacing: -.7px; }
  .lead { font-size: 15px; }
  .intro-notes { font-size: 12px; }
  .panel, .method-panel { border-radius: 24px; padding: 22px 18px; }
  .panel-heading h2 { font-size: 22px; }
  .workflow-tabs { width: 100%; }
  .workflow-tabs button { flex: 1 1 0; padding: 8px 6px; }
  .manual-meta { grid-template-columns: 1fr; }
  .manual-meta > .field:first-child { padding: 0; }
}
@media (max-width: 640px) {
  .intro-actions { width: 100%; margin-left: 0; }
  .coverage-heading > div { flex-direction: column; align-items: flex-start; gap: 2px; }
  .coverage-heading { align-items: flex-start; }
  .coverage-heading .text-button { padding-top: 0; }
  .model-coverage { margin-bottom: 24px; }
  .coverage-logos { flex-wrap: nowrap; overflow-x: auto; scroll-snap-type: x proximity; margin: 0 -16px; padding: 0 16px 8px; scrollbar-width: thin; }
  .coverage-brand { flex-shrink: 0; scroll-snap-align: start; }
  .coverage-dialog { width: calc(100% - 24px); max-height: calc(100dvh - 24px); padding: 20px; border-radius: 24px; }
  .coverage-dialog-heading { gap: 12px; }
  .coverage-dialog-heading h2 { font-size: 22px; }
  .coverage-filters { flex-wrap: nowrap; }
  .coverage-results { grid-template-columns: 1fr; }
  #api-provider + .choice-group { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .step { grid-template-columns: 26px minmax(0, 1fr); column-gap: 12px; padding-bottom: 28px; }
  .step:not(:last-child)::before { left: 12px; top: 32px; }
  .step-marker { width: 26px; height: 26px; font-size: 12px; }
  .step-heading { min-height: 26px; }
  .step-heading h3 { font-size: 16px; }
  .privacy-note { font-size: 12px; margin-bottom: 22px; }
  .connection-grid, .api-grid, #questions { grid-template-columns: 1fr; }
  .choice-cards .choice, .choice-list .choice { flex-basis: 100%; padding: 12px 14px; }
  .choice-segmented { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .choice-segmented .choice { min-height: 44px; }
  .api-actions .cta { flex: 1 1 100%; }
  .call-summary { flex-basis: 100%; }
  .reference-card { padding: 14px; }
  .combo-panel { position: fixed; z-index: 60; inset: auto 0 0; display: flex; flex-direction: column; max-height: 82vh; padding: 8px 12px calc(16px + env(safe-area-inset-bottom)); border: 0; border-radius: 24px 24px 0 0; box-shadow: 0 -12px 40px rgba(31, 35, 40, .18); }
  .combo-panel::before { content: ''; align-self: center; flex-shrink: 0; width: 40px; height: 4px; margin: 4px 0 8px; border-radius: 999px; background: var(--line-strong); }
  .combo-head { display: flex; align-items: center; justify-content: space-between; padding: 0 0 10px 8px; }
  .combo-title { font-size: 17px; font-weight: 600; }
  .combo-close { width: 44px; min-height: 44px; padding: 0; display: grid; place-items: center; background: var(--surface); }
  .combo-list { flex: 1 1 auto; max-height: none; }
  .combo-option { min-height: 52px; }
  .combo-keys { display: none; }
  .combo-foot { justify-content: center; }
  .combo-backdrop { display: block; position: fixed; z-index: 55; inset: 0; background: rgba(31, 35, 40, .42); }
  .plan-dial { gap: 14px; }
  .mini-dial { width: 112px; height: 112px; }
  .mini-dial-core b { font-size: 26px; }
  .result-summary { padding: 18px 14px; }
  .dial { padding-bottom: 0; }
  .dial-figure { width: min(100%, 320px); }
  .dial-labels { display: flex; gap: 6px; margin-top: 14px; }
  .dial-label, #dial-label-0, #dial-label-1, #dial-label-2 { position: static; flex: 1 1 0; padding: 8px 4px; border-radius: 12px; background: var(--surface); font-size: 11px; text-align: center; }
  #dial-label-1 b { display: block; margin: 0; }
  .dial-label b { font-size: 12px; }
  .verdict-line { font-size: 19px; }
  .followup-action button { flex: 1 1 100%; }
  .result-footer { flex-direction: column; align-items: stretch; }
  .result-actions { align-items: stretch; }
  .result-actions button { flex: 1 1 140px; }
  .manual-actions .primary, .manual-actions .file-button { justify-content: center; flex: 1; }
  .empty-result { gap: 14px; padding: 18px 16px; }
  .empty-glyph { width: 52px; height: 52px; }
  .protocol-note { max-width: 60%; }
}
@media (max-width: 480px) {
  .intro h1 { font-size: 32px; }
  .intro-notes span { padding: 4px 10px; font-size: 11px; }
  .faq-section h2 { font-size: 22px; }
  .faq-list summary { font-size: 14px; }
  .faq-list p { font-size: 13px; }
}
@media (prefers-reduced-motion: no-preference) {
  button, a, input, select, textarea { transition: background-color .15s, color .15s, border-color .15s, box-shadow .15s; }
  .dial-seg[data-state=running] { animation: dial-pulse 1.2s ease-in-out infinite; }
}
@keyframes dial-pulse { 50% { opacity: .35; } }
.verification-dialog { width: min(420px, calc(100vw - 8px)); max-width: calc(100vw - 8px); box-sizing: border-box; padding: clamp(4px, calc((100vw - 310px) / 2), 24px); border: 1px solid #dfe4ec; border-radius: 16px; background: #fff; color: #202833; box-shadow: 0 16px 60px #10182730; }
.verification-dialog::backdrop { background: #14223955; }
.verification-dialog h2 { margin: 0 0 12px; font-size: 20px; }
.verification-dialog .cf-turnstile { margin: 16px 0; min-height: 65px; }
.verification-dialog button { margin-top: 12px; }
.verification-dialog[data-verification-state=background] { display: block; position: static; width: 100%; max-width: none; margin: 0; padding: 0; border: 0; background: transparent; box-shadow: none; pointer-events: none; }
.verification-dialog[data-verification-state=background] > :not(.cf-turnstile) { display: none; }
.verification-dialog[data-verification-state=background] .cf-turnstile { margin: 0; min-height: 0; }

/* Share: entry points, the share panel and, on narrow screens, a bottom sheet. */
.share-trigger { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 6px 14px 6px 12px; border: 1px solid var(--accent-soft); background: var(--selected); color: #274bc3; font-size: 13px; font-weight: 600; }
.share-trigger:hover:not(:disabled) { background: #e3eafd; }
.share-result { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; padding: 4px 4px 4px 18px; background: var(--text); color: #fff; font-weight: 600; }
.share-result:hover:not(:disabled) { background: #343b43; }
.share-result-icon { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #fff; color: var(--text); }
.share-retest-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 16px; margin-top: 16px; padding: 8px 8px 8px 18px; border-radius: 16px; background: #fff; font-size: 13px; }
.share-retest-row p { margin: 0; color: var(--muted); }
.share-retest-row .text-button { font-weight: 600; }
.share-dialog { width: min(1180px, calc(100% - 48px)); height: min(860px, calc(100dvh - 48px)); max-width: none; max-height: none; margin: auto; padding: 0; border: 0; border-radius: 28px; color: var(--text); background: #fff; box-shadow: 0 24px 80px rgb(31 35 40 / 20%); overflow: hidden; }
.share-dialog[open] { display: flex; flex-direction: column; }
.share-dialog::backdrop { background: rgb(31 35 40 / 42%); }
.share-head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; padding: 14px 20px 14px 28px; border-bottom: 1px solid var(--line); }
.share-head h2 { margin: 0; font-size: 20px; }
.share-tabs { display: flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--hover); }
.share-tabs button { min-height: 36px; padding: 6px 16px; background: transparent; color: var(--muted); font-size: 13px; }
.share-tabs button[aria-pressed=true], .share-segments button[aria-pressed=true] { background: #fff; color: var(--text); font-weight: 600; box-shadow: 0 1px 2px rgb(31 35 40 / 12%); }
.share-tab-hint { flex: 1 1 200px; margin: 0; color: var(--muted); font-size: 13px; }
.share-close { width: 44px; padding: 0; background: var(--surface); font-size: 20px; line-height: 1; }
.share-body { flex: 1 1 auto; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 20px; padding: 20px 20px 20px 28px; }
.share-preview { min-height: 0; margin: 0; display: grid; grid-template-rows: minmax(0, 1fr) auto; place-items: center; gap: 10px; padding: 24px; border-radius: 24px; background: var(--surface); }
.share-preview img { display: block; max-width: 100%; max-height: 100%; border-radius: 10px; box-shadow: 0 1px 2px rgb(31 35 40 / 6%), 0 12px 32px rgb(31 35 40 / 10%); transition: opacity .15s; }
.share-preview[aria-busy=true] img { opacity: .45; }
.share-save-hint { color: var(--muted); font-size: 12px; }
.share-settings { min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 20px; padding-right: 4px; }
.share-result-settings { display: flex; flex-direction: column; gap: 20px; }
.share-field { display: flex; flex-direction: column; gap: 8px; }
.share-label { font-size: 13px; font-weight: 600; }
.share-segments { display: flex; gap: 4px; padding: 4px; border-radius: 14px; background: var(--hover); }
.share-segments button { flex: 1 1 0; min-height: 40px; padding: 6px 8px; border-radius: 10px; background: transparent; color: var(--muted); font-size: 13px; }
.share-hint { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.6; overflow-wrap: anywhere; }
.share-text-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.share-copy-text { min-height: 32px; padding: 4px 12px; background: var(--selected); color: #274bc3; font-size: 12px; font-weight: 600; }
.share-text { margin: 0; padding: 12px 14px; border-radius: 14px; background: var(--surface); font-size: 13px; line-height: 1.7; overflow-wrap: anywhere; }
.share-privacy { display: flex; gap: 8px; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.share-privacy .icon { margin-top: 2px; color: var(--success); }
.share-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 14px 20px 14px 28px; border-top: 1px solid var(--line); }
.share-status { margin: 0 auto 0 0; color: var(--muted); font-size: 13px; }
.share-feedback { flex: 1 1 auto; margin: 0; color: var(--success); font-size: 13px; }
.share-foot button:not(.primary) { border: 1px solid var(--line-strong); font-size: 14px; }
.share-foot .primary { min-height: 44px; padding: 10px 22px; font-size: 14px; }
@media (max-width: 760px) {
  .share-dialog { width: 100%; height: auto; max-height: 94dvh; margin: auto 0 0; border-radius: 24px 24px 0 0; }
  .share-head { gap: 10px; padding: 10px 12px 10px 18px; }
  .share-tab-hint, .share-status { display: none; }
  .share-tabs { order: 3; flex: 1 1 100%; }
  .share-tabs button { flex: 1 1 0; }
  .share-close { margin-left: auto; }
  .share-body { display: block; overflow-y: auto; padding: 14px 16px; }
  .share-preview { grid-template-rows: auto auto; margin-bottom: 18px; padding: 14px; border-radius: 20px; }
  .share-preview img { max-height: 46dvh; }
  .share-settings { overflow: visible; padding: 0; }
  .share-foot { gap: 8px; padding: 10px 16px calc(12px + env(safe-area-inset-bottom)); }
  .share-feedback { flex-basis: 100%; }
  .share-foot button { flex: 1 1 0; min-width: 0; padding: 10px 8px; }
  .share-retest-row { padding: 12px 14px; }
}
.share-feedback:empty { display: none; }
.retest-note { margin: 10px 0 0; padding: 10px 14px; border-radius: 12px; background: var(--warn-soft); color: var(--warn); font-size: 13px; line-height: 1.6; overflow-wrap: anywhere; }
