/* Measured from app.onthe.ai: 448px card, 24px padding, 8px card radius,
   6px control radius, 40px inputs, #e6e6e6 borders, #1a1a1a primary. */
:root {
    --font: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    --ink: #1a1a1a;
    --muted: #737373;
    --line: #e6e6e6;
    --surface: #f5f5f5;
    --radius: 8px;
    --ui-border: #e6e6e6;
    --ui-radius: 8px;
    --ui-control-radius: 6px;
    --ui-shadow: 0 1px 2px rgb(0 0 0 / 5%);
}
body { font-family: var(--font); color: var(--ink); letter-spacing: normal; }
.button { border-radius: 6px; font-size: 14px; font-weight: 500; line-height: 20px; min-height: 40px; padding: 9px 16px; box-shadow: none; }
.button:hover { transform: none; background: #303030; }
.button.secondary { border-color: var(--ui-border); }
.button.secondary:hover { background: #f5f5f5; }
.entry-site { background: #fff; min-height: 100vh; }
.flow-shell { min-height: 100vh; min-height: 100svh; width: 100%; padding: 32px 16px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px; }
.flow-card { width: 100%; max-width: 448px; border: 1px solid var(--ui-border); border-radius: var(--ui-radius); background: #fff; color: #1a1a1a; box-shadow: var(--ui-shadow); }
.flow-heading { padding: 24px; text-align: center; }
.flow-shell-start, .flow-shell-auth { gap: 24px; }
.flow-shell-start>.flow-entry-heading, .flow-shell-auth>.flow-entry-heading { width: 100%; max-width: 448px; padding: 0 8px; }
.flow-shell-start>.flow-entry-heading h1, .flow-shell-auth>.flow-entry-heading h1 { margin-top: 20px; }
.flow-shell-start>.flow-card, .flow-shell-auth>.flow-card { padding-top: 24px; }
.flow-logo { display: inline-flex; align-items: center; justify-content: center; gap: 8px; color: #1a1a1a; font-size: 24px; line-height: 32px; font-weight: 600; letter-spacing: -.8px; }
.flow-logo svg { width: 32px; height: 32px; }
.flow-heading h1 { margin: 24px 0 0; font-size: 20px; line-height: 28px; font-weight: 600; letter-spacing: -.5px; text-wrap: balance; }
.flow-heading p { margin: 6px 0 0; font-size: 14px; line-height: 20px; color: #737373; font-weight: 400; text-wrap: balance; }
.flow-progress { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; list-style: none; padding: 0; margin: 0 24px 24px; }
.flow-progress li { display: flex; flex-direction: column; gap: 8px; font-size: 12px; line-height: 16px; color: #a3a3a3; font-weight: 400; text-align: center; }
.flow-progress li>span { display: block; height: 2px; border-radius: 2px; background: #e6e6e6; }
.flow-progress li.is-active { color: #1a1a1a; }
.flow-progress li.is-active>span { background: #1a1a1a; }
.flow-progress li[aria-current] { font-weight: 500; }
.flow-form { display: flex; flex-direction: column; gap: 20px; padding: 0 24px 24px; }
.flow-field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.flow-field>label, .flow-label-row>label { margin: 0; color: #1a1a1a; font-size: 14px; line-height: 20px; font-weight: 500; letter-spacing: normal; }
.flow-field input:not([type=checkbox]), .flow-field textarea, .flow-field select { width: 100%; margin: 0; border: 1px solid var(--ui-border); border-radius: var(--ui-control-radius); background: #fff; color: #1a1a1a; padding: 8px 12px; min-height: 40px; height: 40px; font-family: inherit; font-size: 14px; font-weight: 400; line-height: 20px; letter-spacing: normal; box-shadow: none; transition: box-shadow .15s, border-color .15s; }
.flow-field textarea { height: auto; min-height: 112px; resize: vertical; }
.flow-field input::placeholder, .flow-field textarea::placeholder { color: #737373; opacity: 1; font-size: inherit; }
.flow-field input:focus, .flow-field textarea:focus, .flow-field select:focus { border-color: #1a1a1a; outline: none; box-shadow: 0 0 0 2px #fff, 0 0 0 4px #1a1a1a; }
.flow-field>small { display: block; margin: -2px 0 0; font-size: 12px; line-height: 18px; font-weight: 400; color: #737373; }
.flow-note { display: flex; align-items: flex-start; gap: 8px; padding: 12px; border-radius: 6px; background: #f5f5f5; color: #737373; font-size: 12px; line-height: 18px; }
.flow-note svg { margin-top: 1px; }
.flow-note a, .flow-footer a, .flow-recovery a, .flow-consent a { color: #1a1a1a; text-decoration: underline; text-underline-offset: 3px; }
.flow-note a:hover, .flow-footer a:hover, .flow-recovery a:hover { color: #525252; }
.flow-form .flow-next { width: 100%; margin: 0; min-height: 40px; height: 40px; padding: 9px 16px; border: 1px solid #1a1a1a; border-radius: 6px; background: #1a1a1a; color: #fff; font-size: 14px; line-height: 20px; font-weight: 500; gap: 8px; box-shadow: none; }
.flow-form .flow-next:hover { background: #303030; }
.flow-footer { padding: 0 24px 24px; display: flex; align-items: center; justify-content: center; gap: 5px; flex-wrap: wrap; font-size: 14px; line-height: 20px; font-weight: 400; color: #737373; }
.flow-bottom { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px; width: 100%; max-width: 448px; color: #a3a3a3; font-size: 11px; line-height: 16px; }
.flow-bottom>span:first-child { letter-spacing: .08em; font-size: 10px; margin-right: 8px; }
.flow-bottom a:hover { color: #737373; }
.flow-bottom-dot { color: #d4d4d4; }
.flow-draft { display: flex; align-items: center; justify-content: space-between; gap: 16px; border: 1px solid #e6e6e6; background: #fafafa; border-radius: 6px; padding: 12px; }
.flow-draft>div { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.flow-draft small { font-size: 12px; line-height: 16px; color: #737373; }
.flow-draft strong { color: #1a1a1a; font-size: 14px; line-height: 20px; font-weight: 500; overflow-wrap: anywhere; word-break: break-word; }
.flow-draft>a { font-size: 12px; color: #737373; line-height: 20px; text-decoration: underline; text-underline-offset: 3px; flex-shrink: 0; }
.flow-draft-signup { margin: 0 24px 20px; }
.flow-label-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.flow-label-row>div { display: flex; gap: 6px; }
.flow-card .mini-button { display: inline-flex; align-items: center; justify-content: center; margin: 0; min-height: 30px; padding: 4px 8px; border: 1px solid #e6e6e6; border-radius: 6px; background: #fff; color: #525252; font-size: 11px; line-height: 20px; font-weight: 500; }
.flow-card .mini-button:hover { background: #f5f5f5; color: #1a1a1a; }
.flow-field-caption { display: flex; justify-content: space-between; gap: 12px; font-size: 11px; color: #737373; line-height: 16px; }
.flow-card .keyword-chips { gap: 6px; max-height: 144px; overflow-y: auto; }
.flow-card .keyword-chip { padding: 4px 8px; background: #f5f5f5; border: 1px solid #e6e6e6; border-radius: 6px; color: #525252; font-size: 12px; line-height: 20px; }
.flow-card .keyword-chip:hover { background: #e6e6e6; }
.flow-card .file-message, .flow-hint { font-size: 12px; line-height: 18px; color: #737373; }
.flow-actions { display: flex; align-items: center; gap: 8px; }
.flow-actions .flow-back { min-height: 40px; height: 40px; padding: 9px 20px; border-radius: 6px; font-size: 14px; line-height: 20px; }
.flow-actions .flow-next { flex: 1; }
.flow-password { display: block; position: relative; }
.flow-password input { padding-right: 52px!important; }
.flow-password button { position: absolute; top: 50%; right: 8px; transform: translateY(-50%); padding: 4px; border: 0; background: transparent; color: #737373; font-size: 12px; line-height: 20px; }
.flow-password button:hover { color: #1a1a1a; }
.flow-recovery { margin: 0; padding: 0 24px 20px; text-align: center; font-size: 12px; line-height: 18px; color: #737373; }
.flow-consent { display: flex; align-items: flex-start; gap: 8px; margin: 0; font-size: 12px; line-height: 18px; font-weight: 400; color: #737373; }
.flow-consent input { margin: 2px 0 0; accent-color: #1a1a1a; flex-shrink: 0; }
.entry-site>.flash.container { width: min(448px, calc(100% - 32px)); margin: 24px auto 0; border-radius: 6px; padding: 12px; font-size: 13px; }
.entry-site:has(>.flash) .flow-shell { min-height: calc(100svh - 110px); }
/* The same component tokens carry into the member and administrator screens. */
.workspace { background: #fafafa; color: #1a1a1a; font-size: 14px; }
.workspace .sidebar { border-color: #e6e6e6; padding: 24px 16px 16px; scrollbar-width: thin; }
.workspace .sidebar>.logo { margin: 0 8px 24px; }
.workspace .workspace-header { height: 64px; border-color: #e6e6e6; background: #fff; }
.workspace .workspace-content { padding-top: 32px; }
.workspace .nav-item { color: #737373; font-size: 14px; line-height: 20px; font-weight: 400; border-radius: 6px; padding: 9px 12px; margin-bottom: 4px; }
.workspace .nav-item>svg { color: #737373; }
.workspace .nav-item.active { background: #f5f5f5; color: #1a1a1a; font-weight: 500; }
.workspace .nav-item.active>svg { color: #1a1a1a; }
.workspace .nav-item:hover { background: #f5f5f5; color: #1a1a1a; }
.workspace .nav-divider { background: #e6e6e6; }
.workspace .nav-heading { color: #a3a3a3; font-size: 10px; }
.workspace .workspace-brand, .workspace .balance-small { border-color: #e6e6e6; border-radius: 6px; }
.workspace .workspace-brand { padding: 10px; margin-bottom: 20px; }
.workspace .sidebar-bottom { padding-top: 16px; }
.workspace .workspace-brand strong, .workspace .sidebar-user>span:nth-child(2) { font-size: 12px; color: #1a1a1a; }
.workspace .avatar { background: #1a1a1a; }
.workspace .avatar.muted { background: #f5f5f5; color: #737373; }
.workspace .balance-small { background: #fafafa; padding: 12px; margin-bottom: 12px; }
.workspace .balance-small>strong { line-height: 32px; margin: 4px 0 8px; }
.workspace .balance-small>a { border-color: #e6e6e6; color: #525252; font-size: 12px; border-radius: 6px; }
.workspace .breadcrumb, .workspace .top-help { font-size: 12px; color: #737373; }
.workspace .breadcrumb strong { color: #1a1a1a; }
.workspace .page-heading h1 { font-size: 24px; line-height: 32px; letter-spacing: -.6px; font-weight: 600; color: #1a1a1a; }
.workspace .page-heading p { font-size: 14px; line-height: 20px; color: #737373; }
.workspace .page-heading .eyebrow { font-size: 10px; color: #a3a3a3; }
.workspace .button, .workspace .page-heading .button, .workspace .panel-heading .button { font-size: 14px; font-weight: 500; border-radius: 6px; line-height: 20px; padding: 9px 16px; }
.workspace .panel, .workspace .stat-card { border-color: #e6e6e6; border-radius: 8px; box-shadow: var(--ui-shadow); }
.workspace .panel-heading { padding: 20px 24px; border-color: #e6e6e6; }
.workspace .panel-heading h2 { font-size: 14px; line-height: 20px; color: #1a1a1a; font-weight: 600; letter-spacing: -.2px; }
.workspace .panel-heading .text-link { color: #737373; font-size: 12px; }
.workspace .stat-card { padding: 24px; }
.workspace .stat-card>div { color: #737373; font-size: 14px; }
.workspace .stat-card>div>svg { color: #a3a3a3; }
.workspace .stat-card>strong { color: #1a1a1a; font-size: 32px; line-height: 40px; letter-spacing: -.8px; font-weight: 600; }
.workspace .stat-card>strong>small { color: #737373; font-size: 12px; }
.workspace .stat-card.dark { background: #1a1a1a; border-color: #1a1a1a; }
.workspace .stat-card.dark>strong { color: #fff; }
.workspace .stat-card.dark>div, .workspace .stat-card.dark>strong>small, .workspace .stat-card.dark>a { color: #d4d4d4; }
.workspace .stat-card.dark>a, .workspace .stat-foot { font-size: 12px; }
.workspace .stat-foot { color: #737373; }
.workspace label { color: #1a1a1a; font-size: 14px; line-height: 20px; font-weight: 500; }
.workspace label small { color: #737373; font-size: 12px; line-height: 18px; font-weight: 400; }
.workspace input:not([type=checkbox]):not([type=file]), .workspace select, .workspace textarea { border-color: #e6e6e6; border-radius: 6px; color: #1a1a1a; font-size: 14px; line-height: 20px; padding: 8px 12px; min-height: 40px; }
.workspace input::placeholder, .workspace textarea::placeholder { color: #a3a3a3; }
.workspace input:focus, .workspace select:focus, .workspace textarea:focus { border-color: #1a1a1a; box-shadow: 0 0 0 2px #fff, 0 0 0 4px #1a1a1a; }
.workspace .ad-field>small, .workspace .job-detail small { color: #737373; font-size: 12px; }
.workspace .ad-field>strong { color: #1a1a1a; font-size: 18px; }
.workspace .ad-field>p, .workspace .job-detail p { color: #525252; font-size: 14px; }
.workspace .saved-keywords>span { background: #f5f5f5; color: #525252; font-size: 12px; border-radius: 6px; }
.workspace .guide-panel>h2 { color: #1a1a1a; font-size: 18px; }
.workspace .guide-panel>a { color: #737373; font-size: 14px; }
.workspace .guide-number { color: #737373; border-color: #e6e6e6; background: #fff; }
.workspace .guide-number.done { color: #1a1a1a; background: #f5f5f5; }
.workspace .guide-panel .eyebrow { color: #a3a3a3; font-size: 10px; }
.workspace .empty>p { color: #737373; font-size: 14px; }
.workspace .empty>.text-link { color: #1a1a1a; font-size: 12px; }
.workspace .job-list-header { background: #fafafa; color: #737373; font-size: 12px; border-color: #e6e6e6; }
.workspace .job-row { border-color: #e6e6e6; }
.workspace .job-row>summary { color: #525252; font-size: 14px; }
.workspace .job-row strong { color: #1a1a1a; font-size: 14px; }
.workspace .job-row small, .workspace .job-date { color: #737373; font-size: 12px; }
.workspace #work-results table { table-layout: fixed; min-width: 720px; white-space: normal; }
.workspace #work-results td { vertical-align: top; overflow-wrap: anywhere; }
.workspace #work-results .result-link { color: #1a1a1a; font-size: 14px; line-height: 20px; text-decoration: underline; text-underline-offset: 3px; }
.workspace .badge { font-size: 11px; line-height: 16px; border-radius: 6px; padding: 4px 8px; }
.workspace th { background: #fafafa; color: #737373; font-size: 12px; font-weight: 500; border-color: #e6e6e6; }
.workspace td { color: #525252; font-size: 14px; border-color: #e6e6e6; }
.workspace .subtle, .workspace .form-help { color: #737373; font-size: 12px; }
.workspace .admin-tabs { border-color: #e6e6e6; }
.workspace .admin-tabs a { color: #737373; font-size: 14px; }
.workspace .admin-tabs a.active { color: #1a1a1a; border-color: #1a1a1a; }
.workspace .admin-tabs a>span { background: #f5f5f5; color: #737373; }
.workspace .collector-shortcut { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; margin-bottom: 24px; color: #1a1a1a; }
.collector-shortcut>span { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.collector-shortcut small { color: #737373; font-size: 12px; }
.collector-stats { grid-template-columns: repeat(3,minmax(0,1fr)); }
.collector-heading { gap: 16px; flex-wrap: wrap; }
.collector-heading p { margin: 6px 0 0; }
.collector-filters { display: flex; align-items: end; flex-wrap: wrap; gap: 12px; padding: 0 24px 20px; }
.collector-filters label { display: flex; flex-direction: column; gap: 8px; font-size: 12px; color: #737373; min-width: 180px; }
.collector-filters .collector-search { flex: 1; min-width: 220px; }
.collector-filters input,.collector-filters select { width: 100%; height: 40px; }
.collector-filters .button { height: 40px; }
.collector-meta { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding: 14px 24px; border-top: 1px solid #e6e6e6; color: #737373; font-size: 12px; }
.collector-meta a { text-decoration: underline; }
.collector-table { min-width: 980px; table-layout: fixed; }
.collector-table th:first-child { width: 34%; }
.collector-table th:nth-child(2) { width: 16%; }
.collector-table th:nth-child(3) { width: 23%; }
.collector-table th:nth-child(4) { width: 15%; }
.collector-table th:nth-child(5) { width: 12%; }
.collector-table td { vertical-align: top; }
.collector-table td:first-child strong { display: block; overflow-wrap: anywhere; }
.collector-url { display: block; margin-top: 6px; font-size: 12px; overflow-wrap: anywhere; text-decoration: underline; color: #737373; }
.collector-note { white-space: normal; overflow-wrap: anywhere; line-height: 1.7; }
.collector-time { font-size: 12px; }
.collector-links { display: flex; flex-direction: column; align-items: start; gap: 10px; }
.collector-links a { font-size: 12px; white-space: nowrap; }
.collector-pagination { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 20px 24px; color: #737373; font-size: 12px; }
.collector-pagination>div { display: flex; gap: 8px; }
@media (max-width: 600px) {
    .collector-stats { grid-template-columns: 1fr; }
    .collector-filters { padding: 0 18px 18px; }
    .collector-filters label,.collector-filters .collector-search { min-width: 100%; }
    .collector-meta,.collector-pagination { padding: 16px 18px; }
}
.workspace .record-meta { background: #fafafa; color: #525252; font-size: 13px; }
.workspace .record-meta dt { color: #737373; }
.workspace .record-meta code { font-size: 12px; }
.workspace .admin-record>summary, .workspace .admin-record>summary strong { color: #1a1a1a; font-size: 14px; }
.workspace .side-note h3 { color: #525252; font-size: 20px; }
.workspace .side-note p, .workspace .side-note ol, .workspace .side-note .text-link { color: #737373; font-size: 13px; }
.workspace .request-summary { background: #fafafa; border-color: #e6e6e6; border-radius: 6px; }
.workspace .request-summary>small { color: #737373; font-size: 12px; }
.workspace .request-summary>strong { color: #1a1a1a; font-size: 18px; }
.workspace .request-summary>p { color: #525252; font-size: 14px; }
.workspace .ticket summary strong { color: #1a1a1a; font-size: 14px; }
.workspace .ticket-body, .workspace .message-text { color: #525252; font-size: 14px; }
.workspace .workspace-note strong { color: #525252; font-size: 12px; }
.workspace .workspace-note span, .workspace .workspace-note>a { color: #737373; font-size: 12px; }
@media (max-width: 820px) {
    .workspace .nav-item { font-size: 12px; }
    .workspace .stat-card { padding: 18px; }
    .workspace .stat-card>div { font-size: 12px; }
    .workspace .stat-foot { font-size: 11px; }
    .workspace .job-list-header { font-size: 11px; }
    .workspace .job-row>summary, .workspace .job-row strong { font-size: 12px; }
}
@media (max-width: 600px) {
    .flow-shell { padding: 24px 16px; gap: 16px; }
    .flow-heading h1 { font-size: 20px; line-height: 28px; }
    .flow-heading p { font-size: 14px; }
    .flow-field input:not([type=checkbox]), .flow-field textarea, .flow-field select { font-size: 16px; }
    .flow-label-row { flex-wrap: wrap; gap: 8px; }
    .flow-label-row>div { margin-left: auto; }
    .flow-footer { font-size: 13px; }
    .workspace .sidebar { padding: 0; }
    .workspace .nav-item { padding: 8px 10px; font-size: 12px; margin-bottom: 0; }
    .workspace .workspace-header { height: 56px; }
    .workspace .page-heading h1 { font-size: 24px; }
    .workspace .page-heading p { font-size: 12px; line-height: 18px; }
    .workspace .page-heading .button { font-size: 12px; padding: 8px 12px; }
    .workspace .stat-card { padding: 14px 12px; }
    .workspace .stat-card>div { font-size: 11px; }
    .workspace .stat-card>strong { font-size: 26px; line-height: 32px; }
    .workspace .stat-card>strong>small { font-size: 11px; }
    .workspace .stat-foot, .workspace .stat-card.dark>a { font-size: 10px; }
    .workspace .panel-heading { padding: 18px; }
    .workspace .job-list-header { font-size: 10px; }
    .workspace .job-row>summary { font-size: 11px; }
    .workspace .job-row strong { font-size: 12px; }
    .workspace .job-row small { font-size: 10px; }
    .workspace .job-row .badge { font-size: 10px; }
    .workspace input:not([type=checkbox]):not([type=file]), .workspace textarea, .workspace select { font-size: 16px; }
    .workspace .workspace-note { flex-wrap: wrap; }
    .workspace .workspace-note>a { margin-left: 34px; }
    .workspace .workspace-note span { font-size: 11px; }
}
