:root {
  --navy: #102b4d;
  --blue: #246bfd;
  --blue-soft: #e9f0ff;
  --green: #137333;
  --green-soft: #e7f7f0;
  --ink: #10233f;
  --muted: #526178;
  --quiet: #758196;
  --line: #d9e0ea;
  --line-soft: #e8edf3;
  --surface: #fff;
  --canvas: #f7f9fc;
  --shadow: 0 16px 50px rgba(16,35,63,.09);
}
* { box-sizing: border-box; }
html { min-height: 100%; }
body { min-height: 100vh; margin: 0; color: var(--ink); background: var(--canvas); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; padding: 0; margin: -1px; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
button, input, select, textarea { font: inherit; }
button { color: inherit; }
p { color: var(--muted); line-height: 1.6; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible, textarea:focus-visible, [tabindex="-1"]:focus-visible { outline: 3px solid rgba(36,107,253,.24); outline-offset: 3px; }
[hidden] { display: none !important; }
.skip-link { position: fixed; z-index: 100; top: -60px; left: 18px; padding: 12px 16px; color: #fff; border-radius: 8px; background: var(--blue); }
.skip-link:focus { top: 18px; }
.admin-header { min-height: 78px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; padding: 0 max(24px, calc((100vw - 1320px) / 2)); border-bottom: 1px solid var(--line-soft); background: rgba(255,255,255,.95); backdrop-filter: blur(16px); }
.brand { display: inline-flex; align-items: center; gap: 10px; width: fit-content; color: var(--ink); text-decoration: none; font-size: 1.3rem; font-weight: 650; }
.brand img { width: 42px; height: 42px; object-fit: contain; }
.header-trust { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: .78rem; font-weight: 600; }
.trust-dot { width: 8px; height: 8px; border-radius: 50%; background: #20a66a; box-shadow: 0 0 0 5px rgba(32,166,106,.1); }
.text-button { justify-self: end; padding: 9px 14px; cursor: pointer; border: 0; border-radius: 999px; background: transparent; font-size: .84rem; font-weight: 600; }
.text-button:hover { background: #eef2f8; }
.text-link { justify-self: end; padding: 9px 14px; color: var(--muted); border-radius: 999px; text-decoration: none; font-size: .84rem; font-weight: 600; }
.text-link:hover { color: var(--blue); background: #eef2f8; }
main { max-width: 1520px; margin: 0 auto; padding: 44px 28px 100px; }
.eyebrow { margin: 0 0 16px; color: var(--blue); font-size: .72rem; font-weight: 750; letter-spacing: .11em; text-transform: uppercase; }
.signin-shell { min-height: 650px; display: grid; grid-template-columns: minmax(0, 1.04fr) minmax(430px, .76fr); align-items: center; gap: 80px; }
.signin-copy { max-width: 720px; }
.signin-copy h1, .dashboard-heading h1 { margin-bottom: 26px; font-size: clamp(3rem, 5.6vw, 5.3rem); font-weight: 500; line-height: 1; letter-spacing: -.055em; }
.signin-copy h1 span { color: var(--blue); }
.lede { max-width: 650px; margin-bottom: 24px; font-size: 1.08rem; }
.vault-location { width: fit-content; display: flex; align-items: center; gap: 10px; margin: 0 0 30px; padding: 9px 12px; border: 1px solid #b9e1cf; border-radius: 999px; background: #eff9f4; font-size: .7rem; }
.vault-location span { color: #4a725f; }
.vault-location b { color: var(--green); }
.signin-action { min-height: 78px; }
.signin-divider { width: min(420px,100%); display: flex; align-items: center; gap: 12px; margin: 18px 0 13px; color: var(--quiet); font-size: .68rem; }
.signin-divider::before, .signin-divider::after { height: 1px; flex: 1; content: ""; background: var(--line); }
.signin-divider span { white-space: nowrap; }
.magic-link-form { width: min(500px,100%); }
.magic-link-form > label { display: block; margin-bottom: 7px; color: #34475f; font-size: .69rem; font-weight: 700; }
.magic-link-form > div { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 9px; }
.magic-link-form input { min-height: 48px; padding: 11px 14px; color: var(--ink); border: 1px solid var(--line); border-radius: 12px; outline: 0; background: #fff; font-size: .8rem; }
.magic-link-form input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(36,107,253,.12); }
.magic-link-form button { min-height: 48px; padding: 0 18px; cursor: pointer; color: #fff; border: 1px solid var(--blue); border-radius: 12px; background: var(--blue); font-size: .75rem; font-weight: 750; box-shadow: 0 5px 15px rgba(36,107,253,.16); }
.magic-link-form button:hover { background: #1554d8; }
.magic-link-form button:disabled { cursor: wait; opacity: .65; }
.magic-link-status { min-height: 18px; margin: 8px 0 0; color: var(--quiet); font-size: .68rem; line-height: 1.4; }
.magic-link-status[data-tone="success"] { color: var(--green); }
.magic-link-status[data-tone="error"] { color: #a33b30; }
.configuration-note { margin: 12px 0 0; color: var(--quiet); font-size: .75rem; }
.signin-fallback { display: inline-flex; align-items: center; gap: 7px; margin-top: 12px; color: #315b91; text-decoration: none; font-size: .76rem; font-weight: 650; }
.signin-fallback span { transition: transform .18s ease; }
.signin-fallback:hover { color: var(--blue); }
.signin-fallback:hover span { transform: translateX(3px); }
.security-receipt, .redirect-proof { overflow: hidden; border: 1px solid #27466e; border-radius: 30px; background: #102b4d; box-shadow: 0 22px 65px rgba(16,35,63,.18); }
.receipt-heading { display: flex; align-items: center; gap: 18px; padding: 30px; border-bottom: 1px solid rgba(255,255,255,.1); background: radial-gradient(circle at 100% 0, rgba(36,107,253,.3), transparent 55%); }
.receipt-heading p { margin: 0 0 5px; color: #86b5ff; font-size: .66rem; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; }
.receipt-heading h2 { margin: 0; color: #fff; font-size: 1.55rem; line-height: 1.2; }
.shield { width: 50px; height: 50px; display: grid; flex: none; place-items: center; color: #fff; border-radius: 16px; background: #1f9b68; box-shadow: 0 0 0 8px rgba(31,155,104,.12); font-size: 1.25rem; }
.security-receipt ol, .redirect-proof ul { margin: 0; padding: 4px 30px; list-style: none; }
.security-receipt li, .redirect-proof li { display: grid; grid-template-columns: 30px 1fr; gap: 14px; padding: 21px 0; border-bottom: 1px solid rgba(255,255,255,.09); }
.security-receipt li > span, .redirect-proof li > span { width: 28px; height: 28px; display: grid; place-items: center; color: #9bc0ff; border: 1px solid rgba(155,192,255,.28); border-radius: 9px; font-size: .72rem; font-weight: 700; }
.security-receipt b, .redirect-proof b { display: block; color: #fff; font-size: .9rem; }
.security-receipt small, .redirect-proof small { display: block; margin-top: 5px; color: #aebdd0; font-size: .76rem; line-height: 1.5; }
.receipt-rule { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 0; padding: 19px; color: #94a7bf; background: #0c223f; font: .72rem ui-monospace, SFMono-Regular, Menlo, monospace; }
.receipt-rule b { color: #63d2a5; font-size: 1rem; }
.workspace-shell { display: grid; grid-template-columns: 226px minmax(0,1fr); align-items: start; gap: 34px; }
.workspace-sidebar { position: sticky; top: 24px; min-height: calc(100vh - 126px); display: flex; flex-direction: column; padding: 20px 14px 16px; border: 1px solid var(--line); border-radius: 24px; background: #fff; box-shadow: 0 10px 36px rgba(16,35,63,.05); }
.workspace-name { display: grid; gap: 3px; padding: 8px 10px 20px; border-bottom: 1px solid var(--line-soft); }
.workspace-name span { color: var(--quiet); font-size: .65rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.workspace-name b { font-size: .95rem; }
.workspace-nav { display: grid; gap: 5px; padding: 18px 0; }
.workspace-nav button { min-height: 48px; display: grid; grid-template-columns: 30px 1fr; align-items: center; padding: 0 12px; cursor: pointer; color: #52647b; border: 0; border-radius: 12px; background: transparent; text-align: left; font-size: .9rem; font-weight: 650; }
.workspace-nav button span { width: 26px; height: 26px; display: grid; place-items: center; color: #748399; border-radius: 8px; font-size: .9rem; }
.workspace-nav svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.workspace-nav button:hover { color: var(--ink); background: #f3f6fa; }
.workspace-nav button.is-active { color: #174ea6; background: #eaf1ff; }
.workspace-nav button.is-active span { color: #fff; background: var(--blue); }
.workspace-sidebar .account-card { min-width: 0; margin-top: auto; padding: 12px; border-radius: 15px; }
.workspace-sidebar .account-card b { max-width: 130px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.workspace-sidebar .account-card small { max-width: 128px; }
.workspace-content { min-width: 0; }
.workspace-view { min-width: 0; }
.workspace-heading { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: end; gap: 42px; margin-bottom: 24px; }
.workspace-heading > div { max-width: 850px; }
.workspace-heading h1 { margin-bottom: 12px; font-size: clamp(2.35rem,3.2vw,3.25rem); font-weight: 520; line-height: 1; letter-spacing: -.052em; }
.workspace-heading p:last-child { max-width: 780px; margin-bottom: 0; font-size: 1rem; line-height: 1.55; }
.workspace-primary, .workspace-secondary { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; padding: 0 22px; cursor: pointer; border-radius: 999px; font-size: .88rem; font-weight: 750; text-decoration: none; white-space: nowrap; }
.workspace-primary { color: #fff; border: 1px solid var(--blue); background: var(--blue); box-shadow: 0 5px 16px rgba(36,107,253,.18); }
.workspace-primary:hover { background: #1554d8; }
.workspace-secondary { color: #315b91; border: 1px solid #b9c5d4; background: #fff; }
.workspace-secondary:hover { color: var(--blue); border-color: var(--blue); background: var(--blue-soft); }
.work-metrics { display: grid; grid-template-columns: repeat(4,1fr); overflow: hidden; margin-bottom: 22px; border: 1px solid var(--line); border-radius: 20px; background: #fff; }
.work-metrics > div { min-height: 84px; display: flex; flex-direction: column; justify-content: center; padding: 15px 22px; border-right: 1px solid var(--line-soft); }
.work-metrics > div:last-child { border-right: 0; }
.work-metrics span { color: var(--blue); font-size: 1.6rem; font-weight: 650; letter-spacing: -.03em; }
.work-metrics p { margin: 4px 0 0; font-size: .82rem; }
.commission-hub { overflow: hidden; margin-bottom: 24px; color: var(--ink); border: 1px solid #cbd7e7; border-radius: 24px; background: #fff; box-shadow: 0 16px 42px rgba(16,35,63,.08); }
.commission-intro { display: flex; align-items: center; justify-content: space-between; gap: 28px; padding: 24px 28px; color: #fff; background: radial-gradient(circle at 86% -90%,rgba(64,130,255,.55),transparent 52%),linear-gradient(125deg,#0d2441,var(--navy)); }
.commission-intro > div { max-width: 820px; }
.commission-intro .eyebrow { margin-bottom: 7px; color: #9fc1ff; }
.commission-intro h2 { margin-bottom: 7px; color: #fff; font-size: clamp(1.55rem,2.4vw,2.2rem); line-height: 1.08; letter-spacing: -.04em; }
.commission-intro > div > p:last-child { max-width: 780px; margin: 0; color: #d3dfed; font-size: .94rem; line-height: 1.5; }
.commission-trust { display: inline-flex; align-items: center; gap: 8px; flex: none; padding: 10px 13px; color: #c7f3df; border: 1px solid rgba(99,210,165,.28); border-radius: 999px; background: rgba(26,128,89,.16); font-size: .84rem; font-weight: 750; white-space: nowrap; }
.commission-trust svg { width: 15px; height: 15px; fill: none; stroke: #63d2a5; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.commission-intro-actions { display: flex; align-items: center; gap: 9px; flex: none; }
.commission-setup-toggle { min-height: 40px; padding: 0 14px; cursor: pointer; color: #e1ebfa; border: 1px solid rgba(255,255,255,.22); border-radius: 999px; background: rgba(255,255,255,.08); font-size: .84rem; font-weight: 750; }
.commission-setup-toggle:hover { color: #fff; border-color: rgba(255,255,255,.42); background: rgba(255,255,255,.13); }
.commission-hub.is-collapsed .assistant-setup { display: none; }
.commission-hub.is-collapsed .commission-intro { padding-block: 19px; }
.commission-hub.is-collapsed .commission-intro h2 { font-size: clamp(1.35rem,2vw,1.85rem); }
.commission-hub.is-collapsed .commission-intro > div:first-child > p:last-child { max-width: 900px; }
.assistant-setup { display: grid; grid-template-columns: 1.12fr 1.05fr .86fr 1.06fr; background: #fff; }
.setup-step { min-width: 0; min-height: 304px; padding: 24px 22px; border-right: 1px solid var(--line-soft); }
.setup-step:last-child { border-right: 0; }
.setup-step-heading { min-height: 58px; display: grid; grid-template-columns: 34px minmax(0,1fr); align-items: start; gap: 12px; margin-bottom: 17px; }
.setup-step-heading > span { width: 32px; height: 32px; display: grid; place-items: center; color: #174ea6; border-radius: 10px; background: #e4edff; font-size: .78rem; font-weight: 800; }
.setup-step-heading p, .setup-step-heading h3 { margin: 0; }
.setup-step-heading p { color: #315b91; font-size: .78rem; font-weight: 800; letter-spacing: .045em; text-transform: uppercase; }
.setup-step-heading h3 { margin-top: 4px; font-size: 1.08rem; line-height: 1.3; letter-spacing: -.02em; }
.persona-grid { display: grid; gap: 7px; }
.persona-card { min-height: 61px; display: grid; grid-template-columns: 38px minmax(0,1fr); align-items: center; gap: 11px; padding: 10px 11px; cursor: pointer; color: var(--ink); border: 1px solid var(--line-soft); border-radius: 13px; background: #fafbfd; text-align: left; transition: border-color .16s ease,background .16s ease,box-shadow .16s ease; }
.persona-card:hover { border-color: #b5c6e2; background: #f5f8fd; }
.persona-card.is-selected { border-color: #9dbafa; background: #edf3ff; box-shadow: inset 3px 0 0 var(--blue); }
.persona-mark { width: 36px; height: 36px; display: grid; place-items: center; color: #315b91; border-radius: 11px; background: #fff; box-shadow: 0 2px 7px rgba(16,35,63,.06); }
.persona-card.is-selected .persona-mark { color: #fff; background: var(--blue); }
.persona-mark svg, .channel-icon svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.persona-card b, .persona-card small { display: block; }
.persona-card b { font-size: .94rem; }
.persona-card small { margin-top: 3px; color: var(--quiet); font-size: .78rem; }
.posture-control { margin-top: 13px; }
.posture-control > span { display: block; margin-bottom: 7px; color: #52647b; font-size: .76rem; font-weight: 750; text-transform: uppercase; letter-spacing: .045em; }
.segmented-control { display: grid; grid-template-columns: 1fr 1.35fr; padding: 3px; border: 1px solid var(--line-soft); border-radius: 11px; background: #f1f4f8; }
.segmented-control button { min-height: 45px; padding: 7px 8px; cursor: pointer; color: #5d6f86; border: 0; border-radius: 8px; background: transparent; font-size: .82rem; font-weight: 750; }
.segmented-control button.is-selected { color: #174ea6; background: #fff; box-shadow: 0 2px 7px rgba(16,35,63,.09); }
.segmented-control em { display: block; margin-top: 2px; color: #3e7c5d; font-size: .69rem; font-style: normal; font-weight: 750; }
.posture-note { margin: 13px 0 0; color: #566980; font-size: .8rem; line-height: 1.5; }
.asset-status { display: grid; grid-template-columns: 54px minmax(0,1fr); align-items: center; gap: 12px; margin: 26px 0 20px; }
.asset-status strong { width: 52px; height: 52px; display: grid; place-items: center; color: var(--green); border: 1px solid #b5dfca; border-radius: 50%; background: var(--green-soft); font-size: 1.25rem; font-weight: 650; }
.asset-status b, .asset-status small { display: block; }
.asset-status b { font-size: .92rem; }
.asset-status small { margin-top: 5px; color: #66758a; font-size: .78rem; line-height: 1.42; }
.setup-action { width: 100%; min-height: 46px; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 13px; cursor: pointer; color: #174ea6; border: 1px solid #bed0ee; border-radius: 10px; background: #f6f9ff; font-size: .83rem; font-weight: 750; }
.setup-action:hover { border-color: var(--blue); background: var(--blue-soft); }
.channel-grid { display: grid; gap: 7px; }
.channel-card { min-width: 0; min-height: 61px; display: grid; grid-template-columns: 38px minmax(0,1fr) auto; align-items: center; gap: 10px; padding: 10px 11px; cursor: pointer; color: var(--ink); border: 1px solid var(--line-soft); border-radius: 13px; background: #fafbfd; text-align: left; text-decoration: none; }
.channel-card:hover { border-color: #9ebaf0; background: #f3f7ff; }
.channel-card.is-primary { color: #fff; border-color: var(--blue); background: var(--blue); box-shadow: 0 6px 16px rgba(36,107,253,.18); }
.channel-icon { width: 36px; height: 36px; display: grid; place-items: center; color: #315b91; border-radius: 11px; background: #e9f0ff; }
.is-primary .channel-icon { color: #fff; background: rgba(255,255,255,.15); }
.channel-card b, .channel-card small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.channel-card b { font-size: .94rem; }
.channel-card small { margin-top: 3px; color: var(--quiet); font-size: .77rem; }
.channel-card.is-primary small { color: #dce7ff; }
.channel-card > span:last-child { color: #7690b1; font-size: .76rem; }
.channel-card.is-primary > span:last-child { color: #fff; }
.channel-card.is-future { cursor: not-allowed; opacity: .65; }
.channel-card.is-future em { padding: 4px 7px; color: #68788e; border-radius: 999px; background: #e7ebf1; font-size: .58rem; font-style: normal; font-weight: 800; text-transform: uppercase; }
.job-composer, .job-acceptance { position: relative; z-index: 1; margin: 20px; color: var(--ink); border: 1px solid #d9e4f3; border-radius: 18px; background: #fff; box-shadow: 0 12px 30px rgba(3,17,37,.12); }
.job-composer { padding: 22px; }
.job-composer-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 22px; margin-bottom: 19px; padding-bottom: 17px; border-bottom: 1px solid var(--line-soft); }
.job-composer-heading .eyebrow { margin-bottom: 6px; }
.job-composer-heading h3 { margin: 0; font-size: 1.4rem; letter-spacing: -.035em; }
.composer-brief { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 0; }
.composer-brief span { padding: 5px 8px; color: #315b91; border-radius: 999px; background: #edf3ff; font-size: .72rem; font-weight: 750; }
.job-composer-heading > button { width: 32px; height: 32px; flex: none; cursor: pointer; color: #65758b; border: 0; border-radius: 50%; background: #eef2f7; font-size: 1.15rem; }
.job-composer-heading > button:hover { color: var(--ink); background: #e4eaf2; }
.job-fields { display: grid; grid-template-columns: minmax(210px,.62fr) minmax(360px,1.38fr); align-items: start; gap: 15px; }
.job-fields label, .job-options > label:first-child { display: grid; gap: 7px; color: #34475f; font-size: .82rem; font-weight: 750; }
.job-fields input, .job-fields textarea, .job-options input[type="text"] { width: 100%; min-height: 49px; padding: 11px 13px; color: var(--ink); border: 1px solid var(--line); border-radius: 11px; outline: 0; background: #fbfcfe; font-size: .9rem; }
.job-fields textarea { min-height: 92px; resize: vertical; line-height: 1.5; }
.job-fields input:focus, .job-fields textarea:focus, .job-options input[type="text"]:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(36,107,253,.12); }
.job-continuity { margin-top: 13px; border: 1px solid var(--line-soft); border-radius: 12px; background: #fbfcfe; }
.job-continuity summary { padding: 12px 13px; cursor: pointer; color: #4f6582; font-size: .78rem; font-weight: 750; }
.job-options { display: grid; grid-template-columns: minmax(240px,1fr) minmax(300px,1.15fr); align-items: end; gap: 16px; padding: 2px 13px 13px; }
.job-options label span small { color: var(--quiet); font-size: .56rem; font-weight: 500; }
.job-checkbox { min-height: 47px; display: grid; grid-template-columns: 18px 1fr; align-items: center; gap: 10px; padding: 8px 10px; cursor: pointer; border-radius: 10px; background: #edf3ff; }
.job-checkbox input { width: 17px; height: 17px; margin: 0; accent-color: var(--blue); }
.job-checkbox b, .job-checkbox small { display: block; }
.job-checkbox b { color: #315b91; font-size: .67rem; }
.job-checkbox small { margin-top: 2px; color: #65758b; font-size: .55rem; line-height: 1.35; }
.job-submit-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 15px; }
.job-submit-row p { min-height: 20px; margin: 0; color: #8a5a00; font-size: .67rem; }
.job-submit-row button:disabled { cursor: wait; opacity: .62; }
.job-acceptance { display: grid; grid-template-columns: 46px minmax(0,1fr) auto; align-items: center; gap: 15px; padding: 17px 19px; border-color: #9fd4b9; background: linear-gradient(110deg,#f0faf5,#fff 68%); }
.job-acceptance-mark { width: 42px; height: 42px; display: grid; place-items: center; color: #fff; border-radius: 13px; background: var(--green); box-shadow: 0 0 0 6px rgba(19,115,51,.08); font-weight: 850; }
.job-acceptance p, .job-acceptance h3 { margin: 0; }
.job-acceptance > div:nth-child(2) > p:first-child { color: var(--green); font-size: .54rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.job-acceptance h3 { margin: 4px 0 5px; font-size: .89rem; }
.job-acceptance > div:nth-child(2) > p:last-child { display: flex; flex-wrap: wrap; gap: 6px 10px; color: #587265; font-size: .6rem; line-height: 1.4; }
.job-acceptance code { color: #315b91; font: .59rem ui-monospace,SFMono-Regular,Menlo,monospace; }
.job-acceptance-actions { display: flex; gap: 7px; }
.job-acceptance-actions button { min-height: 36px; padding: 0 11px; cursor: pointer; color: #315b91; border: 1px solid #b8c9df; border-radius: 999px; background: #fff; font-size: .62rem; font-weight: 750; }
.job-acceptance-actions button:first-child { color: #fff; border-color: var(--blue); background: var(--blue); }
.job-acceptance-actions button:hover { border-color: var(--blue); }
.teammate-boundary { display: grid; grid-template-columns: auto 1fr; gap: 18px; margin-bottom: 22px; padding: 18px 20px; border-left: 3px solid var(--blue); border-radius: 0 14px 14px 0; background: #eef4ff; }
.teammate-boundary b { color: #174ea6; font-size: .74rem; }
.teammate-boundary p { margin: 0; font-size: .73rem; }
.teammate-layout { display: grid; grid-template-columns: minmax(300px,.7fr) minmax(560px,1.3fr); align-items: start; gap: 20px; }
.teammate-roster, .teammate-form { border: 1px solid var(--line); border-radius: 24px; background: #fff; box-shadow: 0 12px 34px rgba(16,35,63,.05); }
.teammate-roster { position: sticky; top: 24px; overflow: hidden; }
.teammate-section-heading { padding: 24px 24px 18px; border-bottom: 1px solid var(--line-soft); }
.teammate-section-heading .eyebrow { margin-bottom: 7px; }
.teammate-section-heading h2 { margin: 0; font-size: 1.4rem; letter-spacing: -.04em; }
.teammate-list { display: grid; gap: 9px; max-height: 740px; overflow: auto; padding: 12px; }
.teammate-empty { padding: 48px 22px; text-align: center; }
.teammate-empty span { width: 46px; height: 46px; display: grid; place-items: center; margin: 0 auto; color: var(--blue); border-radius: 15px; background: var(--blue-soft); font-size: 1.15rem; }
.teammate-empty h3 { margin: 17px 0 8px; font-size: 1rem; }
.teammate-empty p { margin: 0; font-size: .72rem; }
.teammate-card { padding: 16px; border: 1px solid var(--line-soft); border-radius: 16px; background: #fbfcfe; }
.teammate-card header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.teammate-card header > div { display: flex; align-items: center; gap: 10px; min-width: 0; }
.teammate-avatar { width: 38px; height: 38px; display: grid; flex: none; place-items: center; color: #fff; border-radius: 12px; background: var(--blue); font-size: .75rem; font-weight: 800; }
.teammate-card h3, .teammate-card header p { margin: 0; }
.teammate-card h3 { overflow: hidden; font-size: .82rem; text-overflow: ellipsis; white-space: nowrap; }
.teammate-card header p { margin-top: 3px; color: var(--quiet); font-size: .6rem; }
.teammate-email-status { padding: 5px 7px; color: #735000; border-radius: 999px; background: #fff1c7; font-size: .52rem; font-weight: 800; text-transform: uppercase; white-space: nowrap; }
.teammate-email-status.is-trial { color: #315b91; background: #e9f0ff; }
.teammate-email-status.is-ready { color: var(--green); background: var(--green-soft); }
.teammate-card > p { margin: 13px 0 0; color: #344d6a; font-size: .72rem; font-weight: 700; }
.teammate-provider { display: block; margin-top: 4px; color: var(--quiet); font-size: .56rem; }
.teammate-card footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; padding-top: 11px; border-top: 1px solid var(--line-soft); color: var(--quiet); font-size: .59rem; }
.teammate-form { padding: 28px; }
.teammate-form-heading { margin-bottom: 28px; }
.teammate-form-heading .eyebrow { margin-bottom: 8px; }
.teammate-form-heading h2 { margin-bottom: 10px; font-size: clamp(1.65rem,2.6vw,2.35rem); letter-spacing: -.045em; }
.teammate-form-heading p { margin: 0; font-size: .78rem; }
.teammate-form fieldset { margin: 0; padding: 24px 0; border: 0; border-top: 1px solid var(--line-soft); }
.teammate-form legend { padding: 0 12px 0 0; color: #315b91; font-size: .7rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.field-intro { margin: 0 0 15px; font-size: .72rem; }
.teammate-fields { display: grid; gap: 15px; }
.teammate-fields.two-column { grid-template-columns: 1fr 1fr; }
.teammate-fields .full-column { grid-column: 1 / -1; }
.teammate-fields label { display: grid; gap: 7px; color: #34475f; font-size: .69rem; font-weight: 700; }
.teammate-fields label > span small { color: var(--quiet); font-size: .59rem; font-weight: 500; }
.teammate-fields input, .teammate-fields select, .teammate-fields textarea { width: 100%; min-height: 47px; padding: 11px 12px; color: var(--ink); border: 1px solid var(--line); border-radius: 11px; outline: 0; background: #fbfcfe; font: inherit; font-size: .78rem; }
.teammate-fields textarea { min-height: 82px; resize: vertical; }
.teammate-fields input:focus, .teammate-fields select:focus, .teammate-fields textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(36,107,253,.12); }
.teammate-fields label > small { color: var(--quiet); font-size: .59rem; font-weight: 500; line-height: 1.45; }
.email-provider-grid { display: grid; gap: 11px; }
.provider-group-label { margin: 0; color: #53647b; font-size: .62rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.provider-option-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.provider-more { border: 1px solid var(--line-soft); border-radius: 13px; background: #fbfcfe; }
.provider-more summary { padding: 12px 13px; cursor: pointer; color: #315b91; font-size: .67rem; font-weight: 750; }
.provider-more > p { margin: -2px 13px 12px; color: var(--quiet); font-size: .59rem; }
.provider-more .provider-option-grid { padding: 0 10px 10px; }
.provider-loading { grid-column: 1 / -1; padding: 28px; color: var(--quiet); border: 1px dashed var(--line); border-radius: 14px; text-align: center; font-size: .7rem; }
.email-provider-option { position: relative; display: grid; grid-template-columns: 28px 1fr; gap: 9px; padding: 13px; cursor: pointer; border: 1px solid var(--line); border-radius: 14px; background: #fbfcfe; }
.email-provider-option:hover { border-color: #afc2e1; background: #f4f7fc; }
.email-provider-option:has(input:checked) { border-color: var(--blue); background: #edf3ff; box-shadow: 0 0 0 2px rgba(36,107,253,.08); }
.email-provider-option input { width: 17px; height: 17px; margin: 2px 0 0; accent-color: var(--blue); }
.email-provider-option b, .email-provider-option small { display: block; }
.email-provider-option b { font-size: .72rem; }
.email-provider-option small { margin-top: 4px; color: var(--quiet); font-size: .59rem; line-height: 1.38; }
.email-provider-option em { grid-column: 2; width: fit-content; margin-top: 5px; padding: 4px 6px; color: #53647b; border-radius: 999px; background: #e9edf3; font-size: .5rem; font-style: normal; font-weight: 750; text-transform: uppercase; }
.email-provider-option.is-trial { border-style: dashed; }
.email-address-fields { grid-template-columns: minmax(120px,.65fr) 18px minmax(190px,1.35fr); align-items: end; margin-top: 16px; }
.address-at { padding-bottom: 13px; color: var(--quiet); text-align: center; font-weight: 700; }
.connection-choice { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 13px; }
.connection-choice label { display: inline-flex; align-items: center; gap: 7px; padding: 8px 10px; cursor: pointer; color: #53647b; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: .64rem; font-weight: 700; }
.connection-choice label:has(input:checked) { color: #174ea6; border-color: #a9c2f3; background: var(--blue-soft); }
.connection-choice input { margin: 0; accent-color: var(--blue); }
.provider-readiness { min-height: 38px; margin: 13px 0 0; padding: 10px 12px; color: #53647b; border-radius: 10px; background: #f2f5f9; font-size: .63rem; line-height: 1.45; }
.provider-readiness.is-actionable { color: #315b91; background: #edf3ff; }
.teammate-submit-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 20px; border-top: 1px solid var(--line-soft); }
.teammate-submit-row p { min-height: 20px; margin: 0; color: #8a5a00; font-size: .68rem; }
.teammate-submit-row .workspace-primary { cursor: pointer; }
.teammate-submit-row .workspace-primary:disabled { cursor: wait; opacity: .62; }
.work-board { min-height: 660px; display: grid; grid-template-columns: minmax(350px,.74fr) minmax(520px,1.26fr); overflow: hidden; border: 1px solid var(--line); border-radius: 24px; background: #fff; box-shadow: 0 18px 48px rgba(16,35,63,.08); }
.run-queue { min-width: 0; border-right: 1px solid var(--line); background: #fafbfd; }
.queue-heading { display: flex; align-items: end; justify-content: space-between; gap: 14px; padding: 24px 22px 16px; }
.queue-heading .eyebrow { margin-bottom: 6px; }
.queue-heading h2 { margin: 0; font-size: 1.55rem; letter-spacing: -.04em; }
.queue-title-line { display: flex; align-items: center; gap: 10px; }
.workspace-live-status { display: inline-flex; align-items: center; gap: 6px; color: var(--quiet); font-size: .78rem; font-weight: 700; white-space: nowrap; }
.workspace-live-status::before { width: 6px; height: 6px; content: ""; border-radius: 50%; background: #98a6b8; }
.workspace-live-status[data-state="fresh"] { color: #33775e; }
.workspace-live-status[data-state="fresh"]::before { background: var(--green); box-shadow: 0 0 0 3px rgba(35,154,111,.1); }
.workspace-live-status[data-state="syncing"]::before { background: var(--blue); }
.workspace-live-status[data-state="retrying"]::before { background: #d69732; }
.queue-heading input { width: 160px; min-height: 42px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: .88rem; }
.queue-filters { display: flex; gap: 5px; padding: 0 22px 16px; border-bottom: 1px solid var(--line-soft); }
.queue-filters button { padding: 9px 12px; cursor: pointer; color: var(--quiet); border: 0; border-radius: 999px; background: transparent; font-size: .82rem; font-weight: 700; }
.queue-filters button:hover { background: #edf1f6; }
.queue-filters button.is-active { color: #174ea6; background: var(--blue-soft); }
.run-list { max-height: 790px; overflow: auto; padding: 9px; }
.run-row { width: 100%; display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 7px 10px; padding: 17px 15px; cursor: pointer; border: 1px solid transparent; border-radius: 14px; background: transparent; text-align: left; }
.run-row:hover { background: #f1f5fb; }
.run-row.is-active { border-color: #b8cdf6; background: #edf3ff; box-shadow: 0 5px 14px rgba(36,107,253,.07); }
.run-row > b { grid-column: 1/-1; overflow: hidden; font-size: 1rem; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.run-row > small { grid-column: 1/-1; overflow: hidden; color: var(--quiet); font-size: .82rem; text-overflow: ellipsis; white-space: nowrap; }
.run-status { width: fit-content; display: inline-flex; align-items: center; padding: 6px 9px; color: #53647b; border-radius: 999px; background: #edf1f6; font-size: .73rem; font-weight: 800; letter-spacing: .025em; text-transform: uppercase; }
.run-status.is-running { color: #174ea6; background: #e6efff; }
.run-status.is-queued, .run-status.is-accepted { color: #315b91; background: #e9f0ff; }
.run-status.is-complete { color: var(--green); background: var(--green-soft); }
.run-status.is-blocked, .run-status.is-halted { color: #975a00; background: #fff1ca; }
.run-row > .run-status { grid-column: 1; }
.run-progress { height: 4px; display: block; overflow: hidden; margin-top: 3px; border-radius: 999px; background: #dfe6ef; }
.run-progress i { height: 100%; display: block; border-radius: inherit; background: var(--blue); }
.run-row em { color: var(--quiet); font-size: .79rem; font-style: normal; }
.run-loading, .run-empty { min-height: 320px; display: flex; align-items: center; justify-content: center; flex-direction: column; padding: 38px 24px; text-align: center; }
.run-loading span { width: 24px; height: 24px; border: 2px solid #d3deed; border-top-color: var(--blue); border-radius: 50%; animation: queue-spin .9s linear infinite; }
.run-loading p, .run-empty p { max-width: 310px; margin: 14px 0 0; font-size: .84rem; }
.run-empty > span { width: 42px; height: 42px; display: grid; place-items: center; color: var(--blue); border-radius: 14px; background: var(--blue-soft); font-size: 1.15rem; }
.run-empty h3 { margin: 17px 0 0; font-size: 1.12rem; }
.queue-start { margin-top: 18px; padding: 10px 15px; color: #fff; border-radius: 999px; background: var(--blue); font-size: .82rem; font-weight: 750; text-decoration: none; }
.run-detail { min-width: 0; padding: 28px; background: #fff; }
.run-detail[aria-busy="true"] { opacity: .82; }
.run-detail-empty { min-height: 500px; display: flex; align-items: center; justify-content: center; flex-direction: column; text-align: center; }
.run-detail-empty > span { width: 50px; height: 50px; display: grid; place-items: center; color: var(--blue); border-radius: 16px; background: var(--blue-soft); font-size: 1.2rem; }
.run-detail-empty h2 { margin: 18px 0 0; font-size: 1.45rem; }
.run-detail-empty p { max-width: 440px; margin: 10px 0 0; font-size: .9rem; }
.run-detail-empty code { margin-top: 14px; color: #617188; font: .65rem ui-monospace,SFMono-Regular,Menlo,monospace; }
.run-detail-empty.is-queued > span { color: #fff; background: var(--green); }
.is-error > span { color: #a33b30; background: #fdecea; }
.run-detail-header { display: grid; grid-template-columns: minmax(0,1fr) 88px; align-items: center; gap: 24px; padding-bottom: 24px; border-bottom: 1px solid var(--line-soft); }
.run-detail-header h2 { margin: 12px 0 6px; font-size: clamp(1.4rem,2.2vw,2rem); line-height: 1.2; letter-spacing: -.04em; }
.run-detail-header p { margin: 0; color: var(--quiet); font-size: .9rem; }
.run-score { --progress: 0%; width: 82px; height: 82px; display: grid; place-items: center; align-content: center; border-radius: 50%; background: radial-gradient(circle closest-side,#fff 78%,transparent 80% 100%),conic-gradient(var(--green) var(--progress),#e5eaf1 0); }
.run-score b { font-size: 1.12rem; }
.run-score span { color: var(--quiet); font-size: .7rem; }
.receipt-metrics { display: grid; grid-template-columns: repeat(4,1fr); overflow: hidden; margin: 20px 0 26px; border: 1px solid var(--line-soft); border-radius: 15px; }
.receipt-metrics > div { padding: 15px; border-right: 1px solid var(--line-soft); }
.receipt-metrics > div:last-child { border-right: 0; }
.receipt-metrics b, .receipt-metrics span { display: block; }
.receipt-metrics b { color: var(--blue); font-size: 1.12rem; }
.receipt-metrics span { margin-top: 4px; color: var(--quiet); font-size: .78rem; line-height: 1.35; }
.deliverables-section { margin: 22px 0 28px; padding: 20px; border: 1px solid #c9d9f1; border-radius: 20px; background: linear-gradient(145deg,#f7faff 0%,#f3f8f6 100%); box-shadow: 0 10px 28px rgba(16,43,77,.055); }
.deliverables-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 15px; }
.deliverables-heading .detail-label { margin-bottom: 5px; color: var(--blue); }
.deliverables-heading h3 { margin: 0; font-size: 1.22rem; letter-spacing: -.025em; }
.deliverables-heading p:last-child { margin: 5px 0 0; color: #607089; font-size: .88rem; line-height: 1.5; }
.deliverables-count { flex: none; padding: 8px 11px; color: #236646; border: 1px solid #b9dec9; border-radius: 999px; background: #e9f7ef; font-size: .8rem; font-weight: 800; }
.deliverables-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.deliverable-card { min-width: 0; display: grid; grid-template-columns: 48px minmax(0,1fr); align-items: center; gap: 12px; padding: 16px; border: 1px solid #d8e3f0; border-radius: 16px; background: rgba(255,255,255,.96); box-shadow: 0 6px 18px rgba(16,43,77,.045); }
.deliverable-card.is-audio { grid-column: 1/-1; }
.deliverable-glyph { width: 46px; height: 46px; display: grid; place-items: center; color: #174ea6; border-radius: 14px; background: var(--blue-soft); font-size: 1.22rem; font-weight: 800; }
.deliverable-card.is-audio .deliverable-glyph { color: #236646; background: #e6f5ed; }
.deliverable-type { display: block; color: #667991; font-size: .8rem; font-weight: 800; letter-spacing: .055em; text-transform: uppercase; }
.deliverable-copy h4 { overflow: hidden; margin: 5px 0 3px; font-size: 1.05rem; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.deliverable-filename { overflow: hidden; margin: 0; color: #4d6078; font: .82rem/1.5 ui-monospace,SFMono-Regular,Menlo,monospace; text-overflow: ellipsis; white-space: nowrap; }
.deliverable-proof { display: block; margin-top: 7px; color: #4f7d69; font-size: .8rem; font-weight: 700; }
.deliverable-preview { grid-column: 1/-1; overflow: hidden; border-radius: 12px; }
.deliverable-preview:empty { display: none; }
.deliverable-preview audio { width: 100%; display: block; }
.deliverable-preview img { width: 100%; max-height: 320px; display: block; border: 1px solid var(--line-soft); border-radius: 12px; background: #f5f7fa; object-fit: contain; }
.deliverable-actions { grid-column: 1/-1; display: flex; align-items: center; gap: 8px; padding-top: 2px; }
.deliverable-action { min-height: 44px; padding: 0 15px; cursor: pointer; color: #29405f; border: 1px solid #cad6e6; border-radius: 10px; background: #fff; font-size: .82rem; font-weight: 800; }
.deliverable-action:hover { border-color: #9db8e3; background: #f5f8fd; }
.deliverable-action.is-primary { color: #fff; border-color: var(--blue); background: var(--blue); }
.deliverable-action.is-primary:hover { background: #1554d8; }
.deliverable-action:disabled { cursor: wait; opacity: .65; }
.deliverable-status { min-width: 0; margin-left: auto; color: #62758d; font-size: .8rem; line-height: 1.4; text-align: right; }
.detail-section { margin-top: 24px; }
.detail-label { margin: 0 0 11px; color: #53647b; font-size: .8rem; font-weight: 800; letter-spacing: .055em; text-transform: uppercase; }
.detail-checklist { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.detail-checklist li { display: grid; grid-template-columns: 28px minmax(0,1fr); gap: 10px; padding: 12px; border: 1px solid var(--line-soft); border-radius: 12px; background: #fbfcfe; }
.check-state { width: 26px; height: 26px; display: grid; place-items: center; color: #718198; border-radius: 8px; background: #e9edf3; font-weight: 800; }
.check-state.is-done { color: #fff; background: var(--green); }
.detail-checklist b, .detail-checklist small { display: block; }
.detail-checklist b { font-size: .96rem; line-height: 1.4; }
.detail-checklist small { margin-top: 4px; color: var(--quiet); font-size: .8rem; }
.detail-checklist p { margin: 7px 0 0; color: #4f6279; font-size: .86rem; line-height: 1.55; }
.detail-activity { display: grid; gap: 8px; }
.detail-activity article { padding: 12px 13px; border-left: 3px solid #b8cdf6; border-radius: 0 11px 11px 0; background: #f5f8fd; }
.detail-activity article > div { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.detail-activity b { font-size: .9rem; }
.detail-activity time { color: var(--quiet); font-size: .76rem; }
.detail-activity p { margin: 6px 0 0; font-size: .86rem; line-height: 1.55; }
.detail-empty-line { color: var(--quiet); font-size: .8rem; }
.workforce-callout { display: grid; grid-template-columns: auto 1fr; gap: 18px; margin-bottom: 22px; padding: 18px 20px; border-left: 3px solid var(--blue); border-radius: 0 14px 14px 0; background: #eef4ff; }
.workforce-callout b { color: #174ea6; font-size: .74rem; }
.workforce-callout p { margin: 0; font-size: .73rem; }
.workforce-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 16px; }
.workforce-grid article { min-height: 300px; display: flex; flex-direction: column; padding: 26px; border: 1px solid var(--line); border-radius: 22px; background: #fff; box-shadow: 0 10px 28px rgba(16,35,63,.04); }
.workforce-grid header { display: flex; align-items: center; justify-content: space-between; }
.workforce-grid header img, .xai-mark { width: 46px; height: 46px; display: grid; place-items: center; padding: 8px; border: 1px solid var(--line-soft); border-radius: 14px; background: #fff; object-fit: contain; }
.xai-mark { color: #fff; border-color: #162337; background: #162337; font-size: .7rem; font-weight: 800; }
.workforce-grid header > span:last-child { padding: 6px 8px; color: var(--green); border-radius: 999px; background: var(--green-soft); font-size: .58rem; font-weight: 800; text-transform: uppercase; }
.workforce-grid .worker-candidate header > span:last-child { color: #6a7483; background: #edf1f6; }
.worker-company { margin: 24px 0 3px; color: var(--quiet); font-size: .65rem; font-weight: 750; text-transform: uppercase; letter-spacing: .075em; }
.workforce-grid h2 { margin: 0 0 10px; font-size: 1.65rem; letter-spacing: -.04em; }
.workforce-grid article > p:not(.worker-company) { margin: 0; font-size: .76rem; }
.workforce-grid footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: auto; padding-top: 22px; border-top: 1px solid var(--line-soft); }
.workforce-grid footer span { color: var(--quiet); font-size: .64rem; }
.workforce-grid footer b { color: var(--green); font-size: .68rem; }
.worker-candidate { background: linear-gradient(145deg,#f8fafc,#fff); }
.worker-candidate footer b { color: #65768c; }
.workforce-rule { margin-top: 20px; padding: 18px 20px; border: 1px solid #bedccb; border-radius: 14px; background: #eff9f4; font-size: .75rem; }
.policy-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 16px; }
.policy-grid article { min-height: 240px; padding: 28px; border: 1px solid var(--line); border-radius: 22px; background: #fff; }
.policy-grid article > span { width: 32px; height: 32px; display: grid; place-items: center; color: var(--blue); border-radius: 10px; background: var(--blue-soft); font-size: .66rem; font-weight: 800; }
.policy-grid h2 { margin: 28px 0 10px; font-size: 1.4rem; letter-spacing: -.04em; }
.policy-grid p { margin: 0; font-size: .78rem; }
@keyframes queue-spin { to { transform: rotate(360deg); } }
.dashboard-heading { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 50px; margin-bottom: 36px; }
.dashboard-heading > div:first-child { max-width: 760px; }
.dashboard-heading h1 { margin-bottom: 16px; }
.dashboard-heading > div:first-child > p:last-child { max-width: 680px; margin-bottom: 0; }
.account-card { min-width: 250px; display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 18px; background: #fff; }
.account-card img, .account-initial { width: 40px; height: 40px; border-radius: 50%; }
.account-card img { object-fit: cover; }
.account-initial { display: grid; place-items: center; color: #fff; background: var(--blue); font-weight: 700; }
.account-card b, .account-card small { display: block; }
.account-card b { font-size: .82rem; }
.account-card small { max-width: 180px; overflow: hidden; margin-top: 3px; color: var(--quiet); font-size: .7rem; text-overflow: ellipsis; white-space: nowrap; }
.vault-summary { display: grid; grid-template-columns: repeat(3, minmax(120px, .65fr)) minmax(260px, 1.2fr); overflow: hidden; margin-bottom: 82px; border: 1px solid var(--line); border-radius: 24px; background: #fff; box-shadow: 0 10px 34px rgba(16,35,63,.05); }
.vault-summary > div { min-height: 118px; display: flex; flex-direction: column; justify-content: center; padding: 22px 26px; border-right: 1px solid var(--line-soft); }
.vault-summary > div:last-child { border-right: 0; }
.vault-summary span { color: var(--blue); font-size: 1.7rem; font-weight: 600; }
.vault-summary p { margin: 4px 0 0; font-size: .74rem; }
.vault-summary .kms-proof { flex-direction: row; align-items: center; justify-content: flex-start; gap: 13px; background: var(--green-soft); }
.kms-proof > span { width: 38px; height: 38px; display: grid; place-items: center; color: #fff; border-radius: 50%; background: #24a36b; font-size: .9rem; }
.kms-proof b, .kms-proof small { display: block; }
.kms-proof b { color: var(--green); font-size: .84rem; }
.kms-proof small { margin-top: 3px; color: #51806b; font-size: .68rem; }
.connection-heading { display: grid; grid-template-columns: 1fr minmax(340px, .7fr); align-items: end; gap: 70px; margin-bottom: 30px; }
.connection-heading h2 { margin: 0; font-size: clamp(2rem, 3.6vw, 3.3rem); font-weight: 500; line-height: 1.05; letter-spacing: -.045em; }
.connection-heading > p { margin: 0 0 4px; font-size: .88rem; }
.connection-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.connection-card { min-height: 260px; display: flex; flex-direction: column; padding: 24px; border: 1px solid var(--line); border-radius: 22px; background: #fff; transition: border-color .18s, box-shadow .18s, transform .18s; }
.connection-card:hover { border-color: #b7c6db; box-shadow: 0 14px 36px rgba(16,35,63,.07); transform: translateY(-2px); }
.connection-card.is-secured { border-color: #a8dcc2; background: linear-gradient(180deg, #f2fbf6, #fff 44%); }
.connection-card.needs-attention { border-color: #efcf83; background: linear-gradient(180deg, #fff9e9, #fff 44%); }
.connection-card.is-returned { border-color: var(--blue); box-shadow: 0 0 0 5px rgba(36,107,253,.1), 0 18px 44px rgba(16,35,63,.1); }
.connection-card.is-verifying { border-color: #85aefc; background: linear-gradient(180deg, #eef4ff, #fff 48%); }
.connection-card.is-verifying .connection-state { color: #174ea6; background: #e5edff; }
.connection-card.is-verifying .connection-state::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 6px; border-radius: 50%; background: var(--blue); }
.connection-card.is-verifying[aria-busy="true"] .connection-state::before { animation: callback-pulse 1.1s ease-in-out infinite; }
.connection-card header { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.connection-card header img { width: 42px; height: 42px; padding: 8px; object-fit: contain; border: 1px solid var(--line-soft); border-radius: 13px; background: #fff; }
.connection-state { color: var(--quiet); border-radius: 999px; background: #f0f3f8; padding: 7px 9px; font-size: .59rem; font-weight: 700; letter-spacing: .045em; text-transform: uppercase; }
.is-secured .connection-state { color: var(--green); background: var(--green-soft); }
.needs-attention .connection-state { color: #8a5a00; background: #fff1c7; }
.connection-card h3 { margin: 27px 0 8px; font-size: 1.13rem; }
.connection-card > p { margin: 0; font-size: .79rem; line-height: 1.55; }
.connection-card footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px 12px; margin-top: auto; padding-top: 22px; }
.connection-card footer > span { flex: 1 1 100%; color: var(--quiet); font-size: .65rem; text-transform: uppercase; }
.connection-card button { min-width: 92px; padding: 9px 14px; cursor: pointer; color: #fff; border: 1px solid var(--blue); border-radius: 999px; background: var(--blue); box-shadow: 0 3px 10px rgba(36,107,253,.16); font-size: .72rem; font-weight: 700; }
.connection-card button:hover { border-color: #1554d8; background: #1554d8; box-shadow: 0 5px 16px rgba(36,107,253,.24); }
.connection-card button:disabled { cursor: not-allowed; color: var(--quiet); border-color: #dce3ec; background: #f0f3f8; box-shadow: none; }
.connection-card .api-key-action { min-width: 0; margin-left: auto; padding: 8px 5px; color: #526b8d; border-color: transparent; background: transparent; box-shadow: none; font-size: .64rem; }
.connection-card .api-key-action:hover { color: var(--blue); border-color: transparent; background: transparent; box-shadow: none; text-decoration: underline; text-underline-offset: 3px; }
.connection-card .api-key-action + [data-primary-action] { margin-left: 2px; }
.connection-card.is-pending { background: #fbfcfe; }
.vault-boundary { max-width: 1000px; margin: 28px 0 0; padding: 18px 20px; border-left: 3px solid #63d2a5; border-radius: 0 14px 14px 0; background: #eef6f3; font-size: .76rem; }
.credential-dialog { width: min(520px, calc(100vw - 32px)); padding: 0; color: var(--ink); border: 0; border-radius: 26px; background: #fff; box-shadow: 0 30px 90px rgba(16,35,63,.26); }
.credential-dialog::backdrop { background: rgba(16,35,63,.5); backdrop-filter: blur(5px); }
.credential-dialog form { position: relative; padding: 34px; }
.credential-dialog h2 { margin-bottom: 12px; font-size: 2rem; letter-spacing: -.04em; }
.credential-dialog form > p:not(.eyebrow):not(.form-status) { margin-bottom: 24px; font-size: .86rem; }
.dialog-close { position: absolute; top: 18px; right: 18px; width: 36px; height: 36px; cursor: pointer; border: 0; border-radius: 50%; background: #f0f3f8; font-size: 1.35rem; }
.credential-dialog label { display: block; margin-bottom: 8px; font-size: .74rem; font-weight: 650; }
.credential-dialog input { width: 100%; min-height: 50px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: #f9fbfd; }
.credential-dialog textarea { width: 100%; min-height: 84px; resize: vertical; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: #f9fbfd; }
.dialog-field { margin: 0 0 17px; }
.dialog-field small { display: block; margin-top: 7px; color: var(--quiet); font-size: .67rem; line-height: 1.45; }
.provider-guide { display: inline-flex; align-items: center; gap: 5px; margin-top: 9px; color: #315b91; text-decoration: none; font-size: .7rem; font-weight: 650; }
.provider-guide:hover { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.advanced-credential { display: inline-flex; margin: -2px 0 16px; padding: 0; cursor: pointer; color: #315b91; border: 0; background: transparent; font-size: .7rem; font-weight: 700; }
.advanced-credential:hover { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.activation-rail { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0 0 24px; padding: 0; overflow: hidden; border: 1px solid var(--line-soft); border-radius: 14px; list-style: none; }
.activation-rail li { position: relative; display: flex; align-items: center; gap: 7px; padding: 11px 10px; color: var(--quiet); background: #f8fafc; font-size: .65rem; font-weight: 700; }
.activation-rail li + li { border-left: 1px solid var(--line-soft); }
.activation-rail li span { width: 20px; height: 20px; display: grid; place-items: center; color: #64758c; border-radius: 50%; background: #e7ecf3; font-size: .6rem; }
.activation-rail li.is-active { color: #174ea6; background: #edf3ff; }
.activation-rail li.is-active span { color: #fff; background: var(--blue); }
.activation-rail li.is-complete { color: var(--green); background: var(--green-soft); }
.activation-rail li.is-complete span { color: #fff; background: var(--green); }
.dialog-safety { display: flex; gap: 10px; margin: 15px 0 20px; padding: 13px; border-radius: 12px; background: var(--green-soft); }
.dialog-safety > span { color: var(--green); font-weight: 700; }
.dialog-safety p { margin: 0; color: #3f725b; font-size: .7rem; line-height: 1.45; }
.form-status { min-height: 20px; margin: 0 0 8px; color: #b3261e; font-size: .72rem; }
.primary-button { width: 100%; min-height: 50px; cursor: pointer; color: #fff; border: 0; border-radius: 999px; background: var(--blue); font-weight: 650; }
.primary-button:hover { background: #1554d8; }
.primary-button:disabled { cursor: wait; opacity: .62; }
.primary-link { display: flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; }
.connection-toast { position: fixed; z-index: 80; right: 26px; bottom: 26px; width: min(430px, calc(100vw - 36px)); padding: 17px 20px 17px 49px; color: #154f38; border: 1px solid #9bd6ba; border-radius: 17px; background: #effaf4; box-shadow: 0 18px 55px rgba(16,35,63,.18); font-size: .78rem; font-weight: 650; line-height: 1.45; }
.connection-toast::before { content: "✓"; position: absolute; left: 18px; top: 16px; width: 21px; height: 21px; display: grid; place-items: center; color: #fff; border-radius: 50%; background: #24a36b; font-size: .68rem; }
.connection-toast[data-tone="warning"] { color: #704b00; border-color: #e8c770; background: #fff8e4; }
.connection-toast[data-tone="warning"]::before { content: "!"; background: #bd7900; }
.connection-toast[data-tone="neutral"] { color: #42536a; border-color: #cbd4e0; background: #f6f8fb; }
.connection-toast[data-tone="neutral"]::before { content: "·"; background: #65768c; }
.admin-legal { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 24px clamp(20px,5vw,72px); color: #77869b; border-top: 1px solid var(--line); background: #fff; font-size: .78rem; }
.admin-legal nav { display: flex; gap: 18px; }
.admin-legal a { color: #51627c; text-decoration: none; }
.admin-legal a:hover { color: var(--blue); }
.redirect-main { min-height: calc(100vh - 147px); display: grid; align-items: center; }
.redirect-shell { display: grid; grid-template-columns: minmax(0, 1fr) minmax(430px, .78fr); align-items: center; gap: 82px; }
.redirect-copy { max-width: 690px; }
.redirect-copy h1 { margin-bottom: 26px; font-size: clamp(3rem, 5.4vw, 5rem); font-weight: 500; line-height: 1; letter-spacing: -.055em; }
.redirect-copy h1 span { color: var(--blue); }
.redirect-action { min-height: 78px; margin-top: 30px; }
.callback-shell { min-height: 620px; }
.callback-progress { display: flex; gap: 9px; width: fit-content; margin-top: 28px; }
.callback-progress span { width: 10px; height: 10px; border-radius: 50%; background: #b8c9e6; animation: callback-pulse 1.2s ease-in-out infinite; }
.callback-progress span:nth-child(2) { animation-delay: .16s; }
.callback-progress span:nth-child(3) { animation-delay: .32s; }
.callback-error { color: #b3261e; }
@keyframes callback-pulse {
  0%, 72%, 100% { opacity: .38; transform: translateY(0); }
  36% { opacity: 1; transform: translateY(-5px); background: var(--blue); }
}
@media (prefers-reduced-motion: reduce) {
  .persona-card, .connection-card, .signin-fallback span { transition: none; }
  .connection-card:hover { transform: none; }
  .connection-card.is-verifying[aria-busy="true"] .connection-state::before,
  .callback-progress span, .run-loading span { animation: none; }
}
@media (max-width: 1180px) {
  .assistant-setup { grid-template-columns: 1fr 1fr; }
  .setup-step { border-bottom: 1px solid var(--line-soft); }
  .setup-step:nth-child(2) { border-right: 0; }
  .setup-step:nth-child(n+3) { border-bottom: 0; }
  .teammate-layout { grid-template-columns: 1fr; }
  .teammate-roster { position: static; }
  .teammate-list { max-height: 420px; }
  .work-board { grid-template-columns: minmax(290px,.8fr) minmax(430px,1.2fr); }
  .receipt-metrics { grid-template-columns: 1fr 1fr; }
  .receipt-metrics > div:nth-child(2) { border-right: 0; }
  .receipt-metrics > div:nth-child(-n+2) { border-bottom: 1px solid var(--line-soft); }
}
@media (max-width: 980px) {
  .signin-shell, .redirect-shell { grid-template-columns: 1fr; gap: 44px; }
  .security-receipt, .redirect-proof { max-width: 680px; }
  .workspace-shell { grid-template-columns: 1fr; }
  .workspace-sidebar { position: static; min-height: 0; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 18px; }
  .workspace-name { padding: 6px 12px; border: 0; }
  .workspace-nav { display: flex; justify-content: center; padding: 0; }
  .workspace-nav button { grid-template-columns: 24px auto; padding: 0 10px; }
  .workspace-nav button span { width: 23px; height: 23px; }
  .workspace-sidebar .account-card { width: auto; margin: 0; }
  .workspace-sidebar .account-card > div { display: none; }
  .work-board { grid-template-columns: 1fr; }
  .job-fields { grid-template-columns: 1fr; }
  .run-queue { border-right: 0; border-bottom: 1px solid var(--line); }
  .run-list { max-height: 430px; }
  .connection-grid { grid-template-columns: 1fr 1fr; }
  .vault-summary { grid-template-columns: 1fr 1fr; }
  .vault-summary > div:nth-child(2) { border-right: 0; }
  .vault-summary > div:nth-child(-n+2) { border-bottom: 1px solid var(--line-soft); }
  .dashboard-heading, .connection-heading, .workspace-heading { grid-template-columns: 1fr; gap: 24px; }
  .account-card { width: fit-content; }
}
@media (max-width: 640px) {
  .admin-header { grid-template-columns: 1fr auto; padding: 0 16px; }
  .header-trust { display: none; }
  main { padding: 46px 18px 80px; }
  .workspace-shell { gap: 20px; }
  .workspace-sidebar { grid-template-columns: 1fr auto; padding: 13px; }
  .workspace-name { display: none; }
  .workspace-nav { justify-content: flex-start; overflow-x: auto; }
  .workspace-nav button { min-width: 43px; grid-template-columns: 1fr; padding: 0 9px; font-size: 0; }
  .workspace-nav button span { font-size: .86rem; }
  .workspace-heading h1 { font-size: 2.55rem; }
  .work-metrics { grid-template-columns: 1fr 1fr; }
  .work-metrics > div:nth-child(2) { border-right: 0; }
  .work-metrics > div:nth-child(-n+2) { border-bottom: 1px solid var(--line-soft); }
  .commission-intro { align-items: flex-start; flex-direction: column; padding: 22px 18px; }
  .assistant-setup { grid-template-columns: 1fr; }
  .setup-step { min-height: 0; padding: 19px 17px; border-right: 0; border-bottom: 1px solid var(--line-soft); }
  .setup-step:nth-child(2), .setup-step:nth-child(n+3) { border-bottom: 1px solid var(--line-soft); }
  .setup-step:last-child { border-bottom: 0; }
  .job-options { grid-template-columns: 1fr; }
  .job-composer, .job-acceptance { margin: 14px; }
  .job-composer { padding: 19px 15px; }
  .job-submit-row { align-items: stretch; flex-direction: column; }
  .job-acceptance { grid-template-columns: 40px minmax(0,1fr); }
  .job-acceptance-mark { width: 38px; height: 38px; }
  .job-acceptance-actions { grid-column: 1/-1; }
  .job-acceptance-actions button { flex: 1; }
  .teammate-boundary { grid-template-columns: 1fr; }
  .teammate-form { padding: 22px 17px; }
  .teammate-fields.two-column, .provider-option-grid { grid-template-columns: 1fr; }
  .email-address-fields { grid-template-columns: 1fr; }
  .address-at { display: none; }
  .teammate-submit-row { align-items: stretch; flex-direction: column; }
  .work-board { min-height: 0; }
  .queue-heading { align-items: flex-start; flex-direction: column; }
  .queue-heading input { width: 100%; }
  .queue-filters { overflow-x: auto; }
  .run-detail { padding: 22px 17px; }
  .run-detail-header { grid-template-columns: 1fr; }
  .run-score { display: none; }
  .deliverables-section { padding: 17px 14px; }
  .deliverables-heading { align-items: flex-start; flex-direction: column; gap: 10px; }
  .deliverables-grid { grid-template-columns: 1fr; }
  .deliverable-card.is-audio { grid-column: auto; }
  .deliverable-actions { align-items: stretch; flex-wrap: wrap; }
  .deliverable-status { width: 100%; margin-left: 0; text-align: left; }
  .workforce-grid, .policy-grid { grid-template-columns: 1fr; }
  .workforce-callout { grid-template-columns: 1fr; }
  .signin-copy h1, .dashboard-heading h1, .redirect-copy h1 { font-size: 2.7rem; }
  .magic-link-form > div { grid-template-columns: 1fr; }
  .magic-link-form button { width: 100%; }
  .signin-shell, .redirect-main { min-height: 0; }
  .security-receipt ol, .redirect-proof ul, .receipt-heading { padding-left: 22px; padding-right: 22px; }
  .vault-summary, .connection-grid { grid-template-columns: 1fr; }
  .vault-summary > div { min-height: 92px; border-right: 0; border-bottom: 1px solid var(--line-soft); }
  .vault-summary > div:last-child { border-bottom: 0; }
  .connection-card { min-height: 230px; }
  .credential-dialog form { padding: 30px 22px 24px; }
  .connection-toast { right: 18px; bottom: 18px; }
  .admin-legal { align-items: flex-start; flex-direction: column; }
}
