/* Account administration. Shared tokens below are synchronized by sync-brand-frontends.py. */
:root {
  font: 1rem/1.5 var(--font);
  font-synthesis: none;
  --text-title: clamp(1.5rem, 1.2rem + 1vw, 2rem);
  --text-section: 1.125rem;
  --text-label: .9375rem;
  --text-meta: .875rem;
  --account-width: 72rem;
  --account-gutter: clamp(1rem, 3vw, 2rem);
  --account-header-height: 3.625rem;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); -webkit-font-smoothing: antialiased; }
[hidden] { display: none !important; }
a { color: var(--primary); text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; }
button, a, summary { -webkit-tap-highlight-color: transparent; }
button, .button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 44px; padding: 9px 13px; border: 1px solid transparent; border-radius: 6px; background: var(--primary); color: var(--primary-ink); font-size: var(--text-label); font-weight: 600; line-height: 1.35; cursor: pointer; text-decoration: none; }
button:hover:not(:disabled), .button:hover { filter: brightness(.94); }
button.quiet, button.reset, a.button.quiet { background: transparent; color: var(--ink); }
button.quiet:hover:not(:disabled), button.reset:hover:not(:disabled), a.button.quiet:hover { background: var(--surface2); filter: none; }
button.secondary, .button.secondary { background: var(--card); color: var(--ink); border-color: var(--control-line); }
button.danger { background: transparent; color: var(--danger); }
button.danger:hover:not(:disabled) { background: color-mix(in srgb, var(--danger) 8%, transparent); filter: none; }
button:disabled { color: var(--muted); background: var(--surface2); border-color: var(--line); cursor: not-allowed; }
button.quiet:disabled, button.reset:disabled { background: transparent; border-color: transparent; opacity: .65; }
:where(a, button, input, textarea, select, summary, [tabindex="-1"]):focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: fixed; left: 16px; top: -100px; display: inline-flex; align-items: center; min-height: 44px; padding: 10px; background: var(--card); z-index: 100; }
.skip:focus { top: 8px; }
h1, h2, h3, h4, p { margin-top: 0; }
h1 { font-size: var(--text-title); font-weight: 650; line-height: 1.25; letter-spacing: -.35px; }
h2 { font-size: var(--text-section); font-weight: 650; line-height: 1.35; margin-bottom: 12px; }
h3 { font-size: 16px; font-weight: 600; line-height: 1.4; margin-bottom: 8px; }
h4 { font-size: var(--text-label); font-weight: 600; margin: 18px 0 8px; }
p { margin-bottom: 12px; }
.muted, small, .origin, .admin-help, .admin-row-meta { color: var(--muted); font-size: var(--text-meta); line-height: 1.5; }
.account-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--account-header-height);
  padding-inline: max(var(--account-gutter), calc((100% - var(--account-width)) / 2));
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
}
.brand-zone { flex: 0 0 auto; }
.brand { color: var(--ink); display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; --wordmark-width: 122px; }
.header-toolbar, .header-actions { min-width: 0; display: flex; align-items: center; }
.header-actions { gap: 1rem; font-size: var(--text-meta); }
.header-actions > a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); text-decoration: none; }
.header-actions > a:hover { text-decoration: underline; }
body[data-account="signed-in"] .entry-help { display: none; }
.chatgpt-link span { margin-left: 6px; }
.profile-menu { min-width: 0; position: relative; margin: 0; }
.profile-menu > summary { display: flex; align-items: center; gap: 8px; padding: 4px; color: var(--ink); }
.profile-menu > summary::before { display: none; }
.profile-menu > summary > .profile-chevron { width: 14px; height: 14px; stroke: currentColor; fill: none; flex: 0 0 auto; transition: transform .1s; }
.profile-menu[open] > summary > .profile-chevron { transform: rotate(180deg); }
.profile-menu strong { min-width: 0; max-width: 12rem; font-weight: 550; overflow-wrap: anywhere; }
.profile-avatar { display: grid; place-items: center; width: 22px; height: 22px; flex: 0 0 auto; }
.profile-avatar svg { width: 17px; height: 17px; stroke: currentColor; stroke-width: 1.5; }
.profile-popover { color: var(--ink); position: fixed; left: 16px; top: 64px; width: min(280px, calc(100vw - 32px)); max-height: calc(100dvh - 96px); overflow-y: auto; padding: 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--card); box-shadow: 0 8px 24px #13243a1a; }
.profile-popover > :is(a,button) { width: 100%; justify-content: start; min-height: 44px; padding: 8px; border-radius: 4px; }
.profile-chatgpt { display: none; }
.account-details { margin: 6px 0 0; padding-top: 6px; border-top: 1px solid var(--line); font-size: var(--text-meta); color: var(--muted); }
.account-details dl { margin: 8px 0; }.account-details dd { margin: 4px 0 12px; overflow-wrap: anywhere; }
main {
  width: min(var(--account-width), calc(100% - 2 * var(--account-gutter)));
  min-height: calc(100dvh - 8rem);
  margin-inline: auto;
  padding-block: 1.5rem 2rem;
}
.account-layout { display: grid; grid-template-columns: minmax(10rem, 11.5rem) minmax(0, 1fr); gap: clamp(1rem, 3vw, 2.5rem); }
.task-nav { position: sticky; top: calc(var(--account-header-height) + 1rem); align-self: start; max-height: calc(100dvh - var(--account-header-height) - 2rem); overflow-y: auto; color: var(--muted); padding: 3px; }
#account-nav-toggle { display: none; }
#account-nav-links { display: grid; gap: .625rem; }
.nav-group { min-width: 0; display: grid; align-content: start; }
.nav-group + .nav-group { border-top: 1px solid var(--line); padding-top: .625rem; }
.nav-label { margin: 0 0 .2rem .625rem; font-size: .8125rem; color: var(--muted); font-weight: 650; }
.task-nav a { display: flex; align-items: center; min-height: 44px; padding: .375rem .625rem; border-inline-start: 2px solid transparent; border-radius: 4px; color: var(--ink); text-decoration: none; font-size: var(--text-label); line-height: 1.35; overflow-wrap: anywhere; }
.task-nav a:hover { background: var(--surface2); }
.task-nav a[aria-current="page"] { border-inline-start-color: var(--primary); color: var(--primary); background: var(--tint); font-weight: 650; }
.team-columns { display: none; }
.task-content { min-width: 0; width: 100%; container: account-workspace / inline-size; }
.task-content :where([tabindex="-1"], summary) { scroll-margin-top: calc(var(--account-header-height) + 1rem); }
.page-toolbar { display: flex; align-items: start; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1rem; margin-bottom: 1rem; }
.page-toolbar > div:first-child { min-width: 0; flex: 1 1 15rem; }
.page-toolbar h1 { margin: 0; overflow-wrap: anywhere; letter-spacing: -.025em; }
.page-toolbar p { margin: .35rem 0 0; max-width: 64ch; color: var(--muted); font-size: var(--text-label); }
.task-feedback.toolbar-feedback { margin: -.25rem 0 .75rem; }
.admin-actions, .page-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.page-actions { flex-shrink: 0; }
.icon-button svg { width: 17px; height: 17px; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.panel, .saved-group, .admin-section { min-width: 0; padding: 0; margin: 0 0 1.125rem; background: transparent; border: 0; border-radius: 0; }
.admin-section + .admin-section { border-top: 1px solid var(--line); padding-top: 1rem; }
.section-heading, .group-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .375rem .75rem; margin-bottom: .625rem; }
.section-heading h2, .group-heading h2 { margin: 0; }
.group-heading > button { margin-right: -8px; }
.admin-form, .task-view form, .update-compose-fields { max-width: 700px; }
label { display: block; font-size: var(--text-label); font-weight: 550; line-height: 1.45; }
label > input, label > select, label > textarea { margin-top: 6px; }
input, textarea, select { display: block; width: 100%; min-width: 0; min-height: 44px; padding: 9px 11px; color: var(--ink); background: var(--field); border: 1px solid var(--control-line); border-radius: 6px; font-size: var(--text-label); line-height: 1.5; }
input:hover, textarea:hover, select:hover { background: var(--surface2); }
input:focus, textarea:focus, select:focus { background: var(--card); }
input:disabled, textarea:disabled, select:disabled { color: var(--muted); cursor: not-allowed; background: var(--surface2); }
textarea { resize: vertical; min-height: 88px; }
input[type="checkbox"] { display: inline-block; width: 17px; height: 17px; min-height: 17px; margin: 0 8px 0 0; vertical-align: middle; accent-color: var(--accent); flex: 0 0 17px; }
label:has(> input[type="checkbox"]) { min-height: 44px; display: flex; align-items: center; font-weight: 500; }
form > label, form > .preference-grid, form > fieldset { margin-top: 16px; }
form > button { margin: 18px 8px 0 0; }
fieldset { border: 0; padding: 0; }
.preference-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 22px; }
.preference-field { display: grid; grid-template-columns: minmax(0, 1fr); align-content: start; gap: 6px; }
.preference-field .admin-help, .preference-field .origin { margin: 0; }
.preference-field .reset { justify-self: start; }
.origin { display: block; margin-top: 6px; }.origin:empty { display: none; }
.reset { justify-content: start; padding: 8px 0; font-size: var(--text-meta); font-weight: 500; }
.scope-label { max-width: 340px; }.team-state { margin-bottom: 18px; color: var(--muted); font-size: var(--text-meta); }
#preferences > .preference-grid { margin-top: 0; }
#view-preferences .section-heading { justify-content: start; }#view-preferences .section-heading > div { display: none; }
.admin-help { max-width: 70ch; margin: 6px 0 12px; }
.field-help { margin: 5px 0 0; color: var(--muted); font-size: var(--text-meta); }
#first-use { padding: 0; margin-bottom: 4px; font-size: var(--text-meta); }
.team-list { min-width: 0; }
.team-row { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, .7fr) minmax(0, 1fr) 44px; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); align-items: center; position: relative; }
.team-row:last-child { border-bottom: 0; }
.team-primary { display: flex; align-items: flex-start; min-width: 0; }.team-identity { min-width: 0; }
.team-row h3 { font-size: 15px; margin: 0 0 3px; }.team-row p { margin: 0; font-size: var(--text-meta); }
.team-name-link { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); font-size: 15px; font-weight: 650; text-decoration: none; overflow-wrap: anywhere; }
.team-name-link:hover { text-decoration: underline; }.team-name { overflow-wrap: anywhere; }
.team-platform { min-width: 0; display: grid; gap: 3px; font-size: var(--text-meta); overflow-wrap: anywhere; }
.team-platform > span:first-child { font-weight: 550; }.team-evidence { min-width: 0; color: var(--muted); font-variant-numeric: tabular-nums; }
.evidence-label { display: none; }.data-warning { color: var(--amber); }.team-evidence .data-warning { margin-top: 3px; }
.team-evidence .row-update { justify-content: start; padding-left: 0; color: var(--primary); font-size: var(--text-meta); }
.team-actions { justify-self: end; display: flex; align-items: center; gap: 4px; }
.team-menu { position: relative; margin: 0; }.team-menu > summary { display: grid; place-items: center; width: 44px; height: 44px; color: var(--ink); font-size: 20px; border-radius: 6px; padding: 0; }
.team-menu > summary::before { display: none; }.team-menu > summary:hover { background: var(--surface2); }.team-menu[open] > summary { margin: 0; }
.team-row:has(.team-menu[open]) { z-index: 5; }
.team-menu-content { position: fixed; left: 16px; top: 70px; width: min(288px, calc(100vw - 32px)); max-height: min(440px, calc(100dvh - 32px)); overflow-y: auto; z-index: 6; min-width: 0; padding: 4px; border: 1px solid var(--line); border-radius: 8px; background: var(--card); box-shadow: 0 6px 22px #13243a1a; }
.team-menu-content > a { display: flex; align-items: center; min-height: 44px; width: 100%; padding: .375rem .625rem; color: var(--ink); text-decoration: none; border-radius: 3px; }
.team-menu-content > a:hover { background: var(--surface2); }
.team-details { padding: 8px; border-top: 1px solid var(--line); margin: 4px 0 0; }.team-details p { margin: 8px 0; overflow-wrap: anywhere; }
.work-context { display: block; margin: 0 0 1rem; padding-bottom: .875rem; border-bottom: 1px solid var(--line); }
.team-scope-label { display: block; width: min(100%, 34rem); color: var(--muted); }
.team-scope-label select { margin-top: .3rem; }
details { margin: 16px 0; }
summary { display: flex; align-items: center; gap: 8px; min-height: 44px; padding-block: 8px; list-style: none; cursor: pointer; font-weight: 500; font-size: var(--text-label); color: var(--muted); line-height: 1.45; }
summary::-webkit-details-marker { display: none; }
summary::before { content: ''; width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(-45deg); flex: 0 0 auto; margin: 0 3px 0 1px; }
details[open] > summary::before { transform: rotate(45deg); }summary:hover, details[open] > summary { color: var(--ink); }
details[open] > summary { margin-bottom: 8px; }
.evidence-details, .record-management { margin: 12px 0; }.evidence-details p { color: var(--muted); font-size: var(--text-meta); }
.advanced, .source-preferences { border-top: 1px solid var(--line); padding-top: 8px; }.source-preferences { margin-top: 20px; }.source-preferences .preference-grid { margin-top: 8px; }
pre { max-width: 100%; max-height: 28rem; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; font: 12px/1.6 ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--field); padding: 14px; border-radius: 6px; }
.context-editor, .connection-dialog { padding: 0; border: 0; border-radius: 10px; color: var(--ink); background: var(--card); width: min(620px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); box-shadow: 0 24px 80px #0b182b33; margin: auto; overflow: auto; }
.context-editor::backdrop, .connection-dialog::backdrop { background: #17263866; }body:has(dialog[open]) { overflow: hidden; }
.dialog-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; position: sticky; top: 0; z-index: 2; padding: 20px 24px 16px; background: var(--card); border-bottom: 1px solid var(--line); }
.dialog-heading h2 { margin: 0; }.dialog-heading .editor-scope { margin: 5px 0 0; font-size: var(--text-meta); }
button.dialog-x { font-size: 24px; line-height: 1; width: 44px; height: 44px; padding: 0; margin: -8px -8px 0 0; }
.editor-content { padding: 20px 24px 24px; }.editor-content form { max-width: none; }.editor-close { margin-top: 12px; }.connection-help { margin-top: 0; }
.draft-editor { margin-inline: 0; padding: 16px; border: 1px solid var(--line); border-radius: 6px; min-width: 0; }.draft-editor legend { font-size: var(--text-label); font-weight: 600; padding-inline: 5px; }.draft-editor > label { max-width: 320px; }.draft-editor > button { margin-top: 12px; }
.draft-row { display: grid; grid-template-columns: 1fr 1fr auto; gap: 12px; align-items: end; margin-top: 12px; }
#history-form > label, #rule-task-label { max-width: 440px; }
#history-fact-fields > label, #history-fact-fields > .preference-grid, #rule-fact-fields > label, #rule-fact-fields > .preference-grid { margin-top: 16px; }
#history-fact-fields > button, #rule-fact-fields > button { margin: 18px 8px 0 0; }
.record-actions { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; margin-top: 8px; }.record-actions .record-management { margin: 0; }.record-management select { max-width: 260px; }#rule-ledger select { margin: 12px 0 8px; }#rule-ledger button { margin: 0 8px 4px 0; }
.choice { padding-top: 16px; margin-top: 16px; border-top: 1px solid var(--line); }.choice:first-child { padding-top: 0; margin-top: 0; border-top: 0; }.choice h3 { font-size: 15px; }
.choice-actions { display: flex; align-items: center; flex-wrap: wrap; justify-content: end; gap: 4px; }.choice-actions label { flex: 1; min-width: 180px; max-width: 300px; }
.badge { display: inline-block; font-size: var(--text-meta); color: var(--muted); margin-bottom: 8px; }.decision-heading { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 14px; margin-bottom: 8px; }.decision-heading h3 { margin: 0; }.decision-disposition { color: var(--muted); font-size: var(--text-meta); }.decision-content > p { margin: 6px 0 0; font-size: var(--text-label); }
.defer-plan { display: flex; align-items: end; flex-wrap: wrap; gap: 10px; margin-top: 12px; grid-column: 1 / -1; }
#choices .decision-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; padding: 20px 0; margin: 0; }#choices .decision-row + .decision-row { border-top: 1px solid var(--line); }
#choices > .evidence-details { margin: 0; padding: 14px 0 18px; border-top: 1px solid var(--line); }
.task-intro { max-width: 70ch; margin-bottom: 16px; }.history-toolbar > .preference-grid { margin-top: 0; display: flex; flex-wrap: wrap; gap: 14px; align-items: end; }.history-toolbar > .preference-grid > label { flex: 1 1 120px; }.history-toolbar > .preference-grid > .history-kind-control { flex: 2 1 210px; }.history-toolbar > .preference-grid > .history-season-control { flex: 0 0 96px; }
.query-summary { display: flex; align-items: start; justify-content: space-between; gap: 12px; margin-bottom: 12px; }.query-summary p { margin: 6px 0; font-weight: 550; }.query-summary button { flex: 0 0 auto; }
.evidence-clock { color: var(--muted); font-size: var(--text-meta); margin-bottom: 12px; }.notes-limitation strong { display: block; color: var(--ink); font-weight: 550; margin-bottom: 6px; }
.history-toolbar details { margin-bottom: 0; }.history-toolbar > button { margin-top: 16px; }.history-filters > .preference-grid { margin-top: 16px; }
.result-summary { color: var(--muted); font-size: var(--text-meta); margin: 16px 0; }.result-summary:empty { display: none; }
.history-row { padding: 16px 0; border-bottom: 1px solid var(--line); }.history-row h3 { font-size: 15px; margin: 0 0 8px; }.history-facts { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 12px 0; font-size: var(--text-meta); }.history-fact { min-width: 100px; max-width: 100%; }.history-fact dt { color: var(--muted); margin-bottom: 4px; }.history-fact dd { margin: 0; font-weight: 550; overflow-wrap: anywhere; }
.history-event { border-left: 2px solid var(--line); padding: 0 0 4px 12px; margin: 14px 0; overflow-wrap: anywhere; }.history-event button { margin-top: 8px; }
#native-history-results, #keeper-ledger, #rule-ledger, #draft-preparation, #discovery { min-width: 0; overflow-wrap: anywhere; }
#view-updates { display: block; }.update-summary { margin: 12px 0 16px; }.update-summary:empty { display: none; }.update-summary p { margin: 6px 0; }.update-composer { max-width: 700px; margin-top: 20px; }.update-composer > summary { color: var(--ink); font-size: 16px; font-weight: 600; }.update-compose-fields { margin-top: 12px; }.update-compose-fields > label { margin-top: 12px; }.update-compose-fields > button { margin-block: 16px 8px; }
#check-request { margin-bottom: 12px; }#background-runs { margin-top: 24px; border-top: 1px solid var(--line); padding-top: 8px; }.background-exception { color: var(--muted); font-size: var(--text-meta); }
.operation-times { display: grid; grid-template-columns: minmax(130px, 1fr) 2fr; gap: 6px 16px; font-size: var(--text-meta); }.operation-times dt { color: var(--muted); }.operation-times dd { margin: 0; overflow-wrap: anywhere; }
.task-scope { max-width: 420px; margin: 16px 0; }.admin-table-scroll, .admin-table-wrap { overflow-x: auto; max-width: 100%; margin-block: 16px; }.admin-table { width: 100%; border-collapse: collapse; font-size: var(--text-label); }.admin-table th { color: var(--muted); font-size: var(--text-meta); font-weight: 550; text-align: left; }.admin-table th, .admin-table td { padding: 12px 14px 12px 0; border-bottom: 1px solid var(--line); vertical-align: top; }.admin-table th small, .admin-table td small { display: block; margin-top: 5px; }.admin-table th[scope="row"] { min-width: 160px; max-width: 220px; font-weight: 600; }.admin-table td { min-width: 130px; }.admin-table td:last-child { min-width: 190px; }.admin-table caption { text-align: left; margin-bottom: 12px; color: var(--muted); font-size: var(--text-meta); }
.admin-row { display: grid; grid-template-columns: minmax(120px, .45fr) minmax(0, 1fr); gap: 8px 20px; padding-block: 12px; border-bottom: 1px solid var(--line); }.admin-row-main { min-width: 0; font-size: 15px; }.admin-row:has(.admin-row-main) { grid-template-columns: minmax(0, 1fr); }.admin-empty { color: var(--muted); padding-block: 16px; max-width: 64ch; }.admin-list { list-style: none; padding: 0; margin: 0; }
.admin-issue { border-left: 2px solid var(--line); padding-left: 12px; margin-block: 10px; max-width: 70ch; }.admin-issue p { margin: 4px 0; }.admin-issue > strong { font-size: var(--text-label); }.admin-facts { margin: 0; }.admin-facts dt { color: var(--muted); }.admin-facts dd { margin: 0; overflow-wrap: anywhere; }
.admin-status { font-size: var(--text-meta); font-weight: 550; }.admin-status[data-state="error"], .admin-status[data-state="failed"] { color: var(--danger); }.admin-feedback { padding-block: 8px; font-size: var(--text-label); }.admin-feedback:empty { display: none; }
#feedback { margin: 0; }
#feedback:not(:empty) { max-width: 37rem; margin: .75rem 0; color: var(--muted); font-size: var(--text-label); }
#feedback.error { color: var(--danger); }
body[data-account="unavailable"] #feedback { display: none; }
.unsaved { padding: 0; font-size: var(--text-meta); margin: 0 0 .75rem; }
.unsaved > summary { color: var(--muted); }
.unsaved-actions { padding: .25rem .75rem; margin: .25rem 0; border-inline-start: 2px solid var(--line); display: grid; gap: .25rem; }
.unsaved-actions button { justify-content: start; text-align: left; white-space: normal; }
.form-state { display: flex; align-items: center; flex-wrap: wrap; gap: .25rem .75rem; color: var(--muted); font-size: var(--text-meta); margin-top: .5rem; }
.task-feedback { font-size: var(--text-label); margin: .625rem 0 0; color: var(--muted); }
.task-feedback.error { border-inline-start: 2px solid var(--danger); color: var(--ink); padding: .375rem .625rem; background: var(--field); }
.task-feedback:empty, #ledger-state:empty { display: none; }
#draft-recovery { border-inline-start: 2px solid var(--line); padding: .5rem .75rem; margin-bottom: .75rem; font-size: var(--text-meta); }
footer { display: flex; flex-wrap: wrap; gap: .25rem 1rem; align-items: center; width: min(var(--account-width), calc(100% - 2 * var(--account-gutter))); margin-inline: auto; padding-block: .625rem; border-top: 1px solid var(--line); color: var(--muted); font-size: var(--text-meta); }
footer a { display: inline-flex; align-items: center; min-height: 44px; margin-inline-start: auto; }
.signin, .account-unavailable { max-width: 35rem; margin: 1rem 0; }
.account-auth-actions, .signin .page-actions { flex-wrap: wrap; align-items: center; }
.signin .page-actions > a { min-height: 44px; display: inline-flex; align-items: center; }
#espn-return-note:empty { display: none; }
.account-unavailable > a { display: inline-flex; align-items: center; min-height: 44px; margin-inline-start: .75rem; font-size: var(--text-label); }
#view-journey h2 { font-size: var(--text-section); }
#view-journey :is(textarea,p,li,pre,summary,h3) { overflow-wrap: anywhere; }
#view-journey ul { padding-left: 1.25rem; }
.journey-records { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
#journey-status:empty { display: none; }
#journey-status.error { color: var(--danger); }
#journey-status:not(:empty) { margin-block: .625rem; }
.journey-next { margin-top: 1rem; border-top: 1px solid var(--line); padding-top: .75rem; }
.journey-next > p { font-weight: 550; }
#journey-question-receipt { margin-top: .875rem; }
.journey-row { padding: .625rem 0; border-bottom: 1px solid var(--line); }
.journey-row:last-child { border-bottom: 0; }
.journey-row > button { padding-left: 0; text-align: left; justify-content: start; color: var(--ink); white-space: normal; }
.journey-row p { margin: .25rem 0; }
.journey-preview:not(:empty) { padding-top: 1rem; margin-top: .875rem; border-top: 1px solid var(--line); }
.journey-scope { color: var(--muted); font-weight: 500; }
.journey-feedback { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: .875rem; }
#journey-chatgpt-handoff:not(:empty), .journey-comparison:not(:empty), #journey-follow-handoff:not(:empty) { margin-top: .875rem; }
#journey-chatgpt-handoff :is(button,a), #journey-follow-handoff :is(button,a) { margin: .5rem .5rem 0 0; }
body[data-focused-plan="true"] #view-journey { max-width: 700px; gap: 16px; }body[data-focused-plan="true"] :is(#legacy-question-editor,#journey-question-receipt,.journey-next,#journey-plan-form,#journey-follow,#journey-recent,#journey-plans,#journey-context,.journey-feedback,.journey-prepared-follow-ups,.journey-comparison) { display: none !important; }body[data-focused-plan="true"] #view-journey > :is(section:has(#journey-recent),section:has(#journey-plans),details:has(#journey-context)) { display: none !important; }body[data-focused-plan="true"] .journey-primary { border: 0; padding: 0; }body[data-focused-plan="true"] .journey-primary > :is(h2,p:not([id])), body[data-focused-plan="true"] #journey-plan > :is(p,summary) { display: none; }body[data-focused-plan="true"] #journey-plan { display: block; border: 0; margin: 0; }body[data-focused-plan="true"] #journey-plan-preview { margin: 0; padding: 0; border: 0; }body[data-focused-plan="true"] .journey-scope { color: var(--ink); font-size: var(--text-label); font-weight: 550; }body[data-focused-plan="true"] #journey-saved-plan > button { display: none !important; }
body[data-email-stop="true"] :is(#account,#signin,#account-unavailable,#account-profile,#feedback) { display: none; }.email-stop { max-width: 42rem; margin: 2rem auto; }
.email-address-row.admin-row { grid-template-columns: minmax(0,1fr) auto; align-items: center; }.email-address-row p { margin: 0; }.email-choice { display: grid; gap: 2px; }.email-choice .admin-help { margin: 0 0 0 25px; }
#email-messages .admin-row, #email-old-attempts .admin-row { grid-template-columns: minmax(150px,1.1fr) minmax(130px,.8fr) minmax(170px,1fr); }
@container account-workspace (max-width: 800px) { #choices .decision-row { grid-template-columns: minmax(0,1fr); gap: 12px; }.choice-actions { justify-content: start; } }
@container account-workspace (max-width: 600px) { .update-results:has(td[data-label]) :is(tbody,tr) { display: block; }.update-results:has(td[data-label]) thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }.update-results:has(td[data-label]) th[scope="row"] { display: block; max-width: none; min-width: 0; padding-block: 12px 4px; border: 0; }.update-results:has(td[data-label]) td { display: block; min-width: 0; padding: 6px 0; border: 0; }.update-results td[data-label]::before { content: attr(data-label); display: block; color: var(--muted); font-size: var(--text-meta); font-weight: 550; margin-bottom: 2px; }.update-results:has(td[data-label]) tr { padding-bottom: 12px; border-bottom: 1px solid var(--line); }.preference-grid { grid-template-columns: minmax(0,1fr); }.team-row { grid-template-columns: minmax(0,1fr) 44px; grid-template-areas: "identity actions" "provider actions" "collection actions"; gap: 4px 12px; }.team-primary { grid-area: identity; }.team-platform { grid-area: provider; display: flex; flex-wrap: wrap; gap: 4px 8px; }.team-evidence { grid-area: collection; }.team-actions { grid-area: actions; align-self: start; } }
@media (max-width: 760px) {
  .account-header { gap: .5rem; }
  .brand { --wordmark-width: 108px; }
  .header-actions { gap: .625rem; }
  body[data-account="signed-in"] .header-actions > .chatgpt-link { display: none; }
  .profile-chatgpt { display: flex; }
  .profile-menu strong { max-width: 9rem; }
  main { padding-top: .625rem; }
  .account-layout { grid-template-columns: minmax(0, 1fr); gap: .875rem; }
  .task-nav { position: static; max-height: none; overflow: visible; padding: 0 0 .375rem; border-bottom: 1px solid var(--line); }
  #account-nav-toggle { display: inline-flex; justify-content: start; padding-inline: .125rem .625rem; }
  #account-nav-toggle::after { content: ''; width: .4rem; height: .4rem; margin-inline-start: .25rem; border: solid currentColor; border-width: 0 1px 1px 0; transform: rotate(45deg); }
  #account-nav-toggle[aria-expanded="true"]::after { transform: rotate(225deg); }
  #account-nav-links { grid-template-columns: repeat(2, minmax(0,1fr)); gap: .625rem; padding: 0 3px .625rem; }
  .task-nav[data-expanded="false"] #account-nav-links { display: none; }
  .nav-group + .nav-group { border: 0; padding: 0; }
  .editor-content, .dialog-heading { padding-inline: 1rem; }
  .context-editor, .connection-dialog { width: calc(100vw - 1.25rem); max-height: calc(100dvh - 1.25rem); }
  .editor-content .preference-grid { grid-template-columns: minmax(0,1fr); }
  .draft-row { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .draft-row button { grid-column: 1/-1; justify-self: start; }
  .operation-times { grid-template-columns: minmax(0,1fr); gap: 3px; }
  .operation-times dd { margin-bottom: 8px; }
  .choice-actions label { flex-basis: 100%; min-width: 0; }
  .email-address-row.admin-row, #email-messages .admin-row, #email-old-attempts .admin-row { grid-template-columns: minmax(0,1fr); gap: 4px; }
  .email-address-row button { justify-self: start; }
  .journey-records { grid-template-columns: minmax(0, 1fr); gap: .5rem; }
}
@media (max-width: 420px) {
  .profile-avatar { display: none; }
  .profile-menu strong { max-width: 7.5rem; }
  .connection-row { grid-template-columns: minmax(0, 1fr); }
  .connection-row > :is(button,a) { justify-self: start; }
}
@media (forced-colors: active) {
  button, .button, input, select, textarea { border: 1px solid ButtonText; }
  .task-nav a[aria-current="page"] { outline: 1px solid Highlight; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }

.team-row { padding-block: .875rem; }
.team-row h3, .team-name-link { font-size: 1rem; }
.team-name-link { line-height: 1.4; }
.preference-grid { gap: 1rem 1.25rem; }.preference-field { border-top: 1px solid var(--line); padding-top: .75rem; }
.preference-field > label { font-size: 16px; font-weight: 650; }.origin { font-size: 14px; }
.admin-help, .field-help, .muted, .admin-row-meta { font-size: 14px; line-height: 1.55; }
.context-editor, .connection-dialog { border-radius: 10px; box-shadow: none; }
.dialog-heading h2 { font-size: 1.25rem; letter-spacing: -.02em; }.dialog-heading p { font-size: var(--text-meta); }
.editor-content { padding-bottom: 24px; }.editor-content label { line-height: 1.5; }
.account-receiver, .account-scope-note { max-width: 66ch; margin-bottom: .875rem; color: var(--muted); }
.connection-row { padding-block: .5rem; border-top: 1px solid var(--line); }
.connection-row p { margin: 0 0 .25rem; }
.connection-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; margin-top: .75rem; }
.connection-actions a { display: inline-flex; align-items: center; min-height: 44px; }
.provider-link-fields:has(label:not([hidden])) { display: flex; flex-wrap: wrap; align-items: end; gap: .5rem; margin-top: .75rem; }
.provider-link-fields label { flex: 1 1 16rem; min-width: 0; }
#provider-form .admin-details { margin-block: .5rem; }
#provider-form .admin-details > summary { color: var(--muted); }
.connection-dialog[open] { display: flex; flex-direction: column; overflow: hidden; }
.connection-dialog > .editor-content { min-height: 0; overflow: auto; }
.connection-dialog > .dialog-heading, .provider-dialog-actions { flex-shrink: 0; }
.provider-dialog-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; justify-content: flex-end; padding: .65rem 1rem; border-top: 1px solid var(--line); }
.provider-dialog-actions .task-feedback { flex: 1 1 15rem; margin: 0; }
.provider-dialog-actions .task-feedback:empty { display: none; }
.provider-confirmation { margin-top: .75rem; padding: .75rem 0; border-top: 1px solid var(--line); }
.provider-confirmation h4 { margin-top: 0; }
@media (max-height: 520px) {
  .connection-dialog > .dialog-heading, .connection-dialog > .editor-content { padding-block: .65rem; }
}
.update-meta-heading { margin: .75rem 0 .25rem; font-size: var(--text-meta); }
.update-targets { display: grid; gap: .25rem; margin: 0; padding-inline-start: 1.25rem; font-size: var(--text-meta); }
.update-timeline { margin-block: .75rem; }
.draft-return-row { display: flex; flex-wrap: wrap; align-items: start; justify-content: space-between; gap: 8px; padding-block: 8px; }
.draft-return-row button { white-space: normal; text-align: left; overflow-wrap: anywhere; }
.edit-conflict { border-left: 3px solid var(--amber); padding: 16px 20px; margin-bottom: 24px; background: var(--amberbg); }
.conflict-comparison { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-block: 16px; }
.conflict-comparison h3 { font-size: 16px; }.conflict-comparison dl { margin: 0; }.conflict-comparison dt { color: var(--muted); font-size: 14px; }.conflict-comparison dd { margin: 2px 0 12px; overflow-wrap: anywhere; white-space: pre-wrap; }
.source-fields { border-top: 1px solid var(--line); padding-top: 16px; margin-top: 20px; }
.source-fields legend { font-weight: 650; padding-top: 4px; }.source-fields .preference-grid { margin-top: 12px; }
#view-history .history-controls { max-width: none; }#native-history-form { max-width: none; }
#native-history-state { font-size: 15px; }#history-filter-dirty { margin-top: 10px; }
.history-page-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 20px; }
#view-help details { max-width: 75ch; padding-block: 4px; }#view-help details p { margin-left: 20px; }
@media (max-width: 760px) {
  .conflict-comparison, .preference-grid { grid-template-columns: minmax(0, 1fr); }
  .source-fields .preference-grid { gap: .75rem; }
}

.research-sample { min-width: 0; margin: 18px 0; padding: 16px; border: 1px solid var(--line); border-radius: 6px; }.research-sample legend { font-weight: 600; padding: 0 6px; }.original-question { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 18px; line-height: 1.5; max-width: 68ch; }

/* BEGIN GENERATED USE FANTASY TOKENS */
/* Use Fantasy shared tokens. Generated from scripts/build-brand-assets.py.
   Embed this block in already-served stylesheets; do not add a route dependency. */
:root {
  color-scheme: light dark;
  --paper: #F5F7FB;
  --card: #FFFFFF;
  --brand-citron: #D8FA74;
  --surface2: #EFF1F5;
  --field: #F1F3F6;
  --primary: #4758EF;
  --primary-ink: #FFFFFF;
  --ink: #141B35;
  --muted: #606C82;
  --line: #E8EBF0;
  --control-line: #7B8798;
  --green: #4758EF;
  --accent: #4758EF;
  --tint: #EDF2FF;
  --danger: #AC3642;
  --focus: #4758EF;
  --positive: #187158;
  --amber: #88601F;
  --amberbg: #FFF5E4;
  --rail: #FAFBFD;
  --rail-ink: #141B35;
  --rail-muted: #606C82;
  --rail-line: #E8EBF0;
  --radius: 8px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #11151C;
    --card: #1B212B;
    --surface2: #292F3B;
    --field: #222A36;
    --primary: #A6B5FF;
    --primary-ink: #101B39;
    --ink: #F1F3F7;
    --muted: #AFB8C7;
    --line: #303744;
    --control-line: #7D8B9E;
    --green: #A6B5FF;
    --accent: #A6B5FF;
    --tint: #26324E;
    --danger: #F0A3AC;
    --focus: #A6B5FF;
    --positive: #7ACBA7;
    --amber: #E8C88A;
    --amberbg: #392F1C;
    --rail: #171C25;
    --rail-ink: #F1F3F7;
    --rail-muted: #AFB8C7;
    --rail-line: #303744;
  }
}
/* Exact original vector outlines inherit the surface's text/theme color. */
.brand svg.brand-wordmark { display: block; width: var(--wordmark-width, 168px); height: auto; max-height: 32px; }
.brand svg.brand-wordmark [data-lettering] path { fill: currentColor; }
/* END GENERATED USE FANTASY TOKENS */
