:root {
  --agent-purple: #2f2a63;
  --agent-purple-dark: #24204f;
  --agent-ink: #252136;
  --agent-muted: #686176;
  --agent-line: #dedbe8;
  --agent-soft: #f7f6fa;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { color-scheme: light; }
.agent-page { margin: 0; min-height: 100svh; background: var(--agent-soft); color: var(--agent-ink); font: 1rem/1.6 "DM Sans", "Segoe UI", Arial, sans-serif; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { touch-action: manipulation; }
a { color: var(--agent-purple); text-underline-offset: .2em; }
button, input, select, textarea, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #8f80c7; outline-offset: 4px; }
.agent-shell { width: min(1120px, calc(100% - 3rem)); margin-inline: auto; }
.agent-header { background: #fff; border-bottom: 1px solid var(--agent-line); }
.agent-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.agent-header .agent-toolbar { min-height: 88px; }
.agent-brand { display: inline-flex; align-items: center; }
.agent-brand img { display: block; width: 166px; height: auto; }
.agent-back { font-size: .9375rem; font-weight: 600; text-decoration: none; }
.agent-back:hover { text-decoration: underline; }
.agent-layout { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); align-items: start; gap: clamp(2rem, 6vw, 5rem); padding-block: clamp(2.5rem, 6vw, 5rem); }
.agent-intro { padding-top: 1.75rem; }
.agent-eyebrow { color: var(--agent-purple); font-size: .8125rem; font-weight: 750; letter-spacing: .13em; text-transform: uppercase; margin: 0 0 1rem; }
.agent-intro h1 { max-width: 11ch; color: var(--agent-purple); font-size: clamp(2.25rem, 4.3vw, 3.5rem); line-height: 1.12; font-weight: 650; letter-spacing: -.045em; margin: 0 0 1.5rem; }
.agent-intro-text { font-size: 1.1875rem; line-height: 1.6; margin: 0 0 1rem; }
.agent-intro-detail { color: var(--agent-muted); margin: 0; }
.agent-intro-note { margin-top: 2rem; color: var(--agent-muted); font-size: .9375rem; }
.agent-intro-note p { margin: 1rem 0 0; }
.agent-rule { display: block; width: 3rem; height: 3px; background: var(--agent-purple); border-radius: 2px; }
.agent-card { min-width: 0; padding: clamp(1.5rem, 3vw, 2.25rem); border: 1px solid var(--agent-line); border-radius: 1.25rem; background: #fff; box-shadow: 0 10px 36px rgb(47 42 99 / 4%); }
.agent-card h2 { color: var(--agent-purple); font-size: 1.5rem; letter-spacing: -.025em; line-height: 1.25; margin: 0 0 .5rem; }
.agent-form-heading { margin-bottom: 1.75rem; }
.agent-note { font-size: .875rem; line-height: 1.6; color: var(--agent-muted); margin: .5rem 0; }
.agent-fields, .agent-experience { border: 0; padding: 0; margin: 0; min-width: 0; }
.agent-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.25rem; }
.agent-full { grid-column: 1 / -1; }
.agent-field { display: flex; flex-direction: column; gap: .375rem; min-width: 0; }
.agent-field label, .agent-experience legend { font-weight: 650; font-size: .9375rem; color: var(--agent-ink); }
.agent-field input, .agent-field select, .agent-field textarea, .agent-state, .agent-notes { width: 100%; min-width: 0; min-height: 48px; border: 1px solid #c9c4d6; border-radius: .625rem; padding: .7rem .85rem; color: var(--agent-ink); background: #fff; }
.agent-field input::placeholder, .agent-notes::placeholder { color: #797181; opacity: 1; }
.agent-field input:focus, .agent-field select:focus, .agent-field textarea:focus, .agent-state:focus, .agent-notes:focus { border-color: var(--agent-purple); }
.agent-field-hint { font-size: .8125rem; color: var(--agent-muted); }
.agent-experience { margin-top: 1.5rem; }
.agent-experience legend { padding: 0; margin-bottom: .75rem; }
.agent-experience-options { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: .625rem; }
.agent-option { display: flex; align-items: center; gap: .625rem; min-height: 68px; padding: .75rem; border: 1px solid var(--agent-line); border-radius: .625rem; cursor: pointer; line-height: 1.4; font-size: .9375rem; }
.agent-option:hover { border-color: #a59abd; background: #fbfaff; }
.agent-option:has(input:checked) { border-color: var(--agent-purple); background: #f0eef8; box-shadow: inset 0 0 0 1px var(--agent-purple); }
.agent-option input { width: 18px; height: 18px; flex: 0 0 18px; margin: 0; accent-color: var(--agent-purple); }
.agent-purpose { margin: 1.5rem 0 1.25rem; }
.agent-button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: .75rem 1.25rem; border: 1px solid var(--agent-purple); border-radius: .625rem; background: var(--agent-purple); color: #fff; font-weight: 650; line-height: 1.4; text-align: center; text-decoration: none; cursor: pointer; }
.agent-button:hover { background: var(--agent-purple-dark); border-color: var(--agent-purple-dark); }
.agent-button-secondary { background: #fff; color: var(--agent-purple); border-color: var(--agent-line); }
.agent-button-secondary:hover { color: var(--agent-purple); background: #f0eef8; border-color: #aba2c2; }
.agent-button:disabled { opacity: .65; cursor: wait; }
.agent-submit { width: 100%; }
.agent-status { padding: .875rem 1rem; background: #f1eff8; color: var(--agent-purple); border: 1px solid #dcd6eb; border-radius: .625rem; font-size: .9375rem; line-height: 1.5; overflow-wrap: anywhere; }
.agent-status[data-tone="error"] { color: #8e2119; border-color: #efc4be; background: #fff3f1; }
.agent-status[data-tone="success"] { color: #226145; border-color: #bedfcf; background: #eff9f3; }
.agent-success { padding-block: 1rem; }
.agent-success h2 { font-size: 2rem; }
.agent-success > p:not(.agent-eyebrow) { color: var(--agent-muted); }
.agent-success-icon { display: inline-flex; align-items: center; justify-content: center; width: 3.5rem; height: 3.5rem; border-radius: 50%; color: var(--agent-purple); background: #eeebf8; font-size: 1.75rem; font-weight: 650; margin-bottom: 1.5rem; }
.agent-actions { display: flex; align-items: center; flex-wrap: wrap; gap: .75rem; margin-top: 1.25rem; }
.agent-footer { border-top: 1px solid var(--agent-line); color: var(--agent-muted); padding-block: 1.5rem; font-size: .875rem; }
.agent-footer .agent-shell { display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.agent-footer span:first-child { color: var(--agent-purple); font-weight: 750; }
.agent-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.agent-skip { position: absolute; top: -100px; left: 1rem; z-index: 20; padding: .75rem 1rem; background: #fff; border: 1px solid var(--agent-purple); border-radius: .5rem; }
.agent-skip:focus { top: 1rem; }

/* Shared with the authenticated lead review page. */
.agent-admin > .agent-shell, .agent-admin main.agent-shell { width: min(1440px, calc(100% - 3rem)); padding-block: 2rem; }
.agent-admin .agent-toolbar { margin-bottom: 1.25rem; }
.agent-admin h1 { margin: 0; color: var(--agent-purple); font-size: clamp(1.75rem, 3vw, 2.25rem); line-height: 1.2; }
.agent-table-wrap { max-width: 100%; overflow-x: auto; border: 1px solid var(--agent-line); border-radius: .75rem; }
.agent-table { width: 100%; border-collapse: collapse; text-align: left; font-size: .875rem; line-height: 1.5; background: #fff; }
.agent-table th { padding: .875rem 1rem; background: #f4f2f9; color: var(--agent-purple); font-weight: 650; white-space: nowrap; }
.agent-table td { padding: 1rem; border-top: 1px solid var(--agent-line); vertical-align: top; overflow-wrap: anywhere; }
.agent-table td a { overflow-wrap: anywhere; }
.agent-admin-form { display: grid; gap: .625rem; min-width: 250px; }
.agent-admin-form .agent-actions { margin-top: 0; }
.agent-admin-form .agent-button { min-height: 42px; font-size: .875rem; padding: .625rem 1rem; }
.agent-admin-form .agent-status { margin: 0; }
.agent-notes { min-height: 96px; resize: vertical; font-size: 1rem; }
.agent-state { font-size: 1rem; }
.agent-badge { display: inline-block; padding: .2rem .65rem; border-radius: 1rem; color: var(--agent-purple); background: #efedf8; font-size: .8125rem; font-weight: 650; }

@media (max-width: 850px) {
  .agent-layout { grid-template-columns: 1fr; max-width: 620px; gap: 2rem; }
  .agent-intro { padding-top: 0; }
  .agent-intro h1 { max-width: 17ch; font-size: clamp(2.25rem, 7vw, 3rem); }
  .agent-intro-note { margin-top: 1.25rem; }
  .agent-intro-note p { margin-top: .75rem; }
  .agent-card { padding: 1.5rem; }
}
@media (max-width: 480px) {
  .agent-shell { width: calc(100% - 2rem); }
  .agent-header .agent-toolbar { min-height: 76px; }
  .agent-brand img { width: 140px; }
  .agent-back { font-size: .875rem; }
  .agent-layout { padding-block: 2rem; }
  .agent-grid, .agent-experience-options { grid-template-columns: 1fr; }
  .agent-full { grid-column: auto; }
  .agent-card { padding: 1.25rem; border-radius: 1rem; }
  .agent-option { min-height: 52px; }
  .agent-success .agent-button { width: 100%; }
  .agent-footer .agent-shell { align-items: flex-start; flex-direction: column; gap: .25rem; }
  .agent-admin > .agent-shell, .agent-admin main.agent-shell { width: calc(100% - 1.5rem); }
}
