:root {
  color-scheme: light;
  --ink: #202f29;
  --muted: #506058;
  --brand: #233f35;
  --green: #285c49;
  --green-dark: #1c4838;
  --green-pale: #e6f0e9;
  --paper: #fff;
  --canvas: #f5f5ef;
  --line: #d5ded4;
  --line-strong: #aab8ad;
  --surface-soft: #f1f4ef;
  --display-font: 'Instrument Serif', Georgia, serif;
  --surface-shadow: 0 1px 2px #1c35270d, 0 5px 18px #1c35270b;
  --surface-hover: #edf3ee;
  --red: #9d333d;
  --red-pale: #fbecef;
  --gold: #785c12;
  --gold-pale: #fcf2d7;
  font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
  background: var(--canvas);
  color: var(--ink);
  line-height: 1.5;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .55; }
a { color: var(--green-dark); }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid #606060; outline-offset: 3px; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 6px; font: 400 clamp(2.35rem, 4.3vw, 3.15rem)/1.02 var(--display-font); letter-spacing: -.015em; color: var(--brand); }
h2 { margin-bottom: 12px; font-size: 1.07rem; letter-spacing: -.018em; line-height: 1.35; }
h3 { margin-bottom: 5px; font-size: 1rem; }
.muted { color: var(--muted); }
.small { font-size: .87rem; }
.skip-link { position: fixed; z-index: 30; left: 12px; top: -80px; padding: 8px 12px; background: #fff; }
.skip-link:focus { top: 12px; }
.initial-load { min-height: 100vh; display: grid; place-items: center; color: var(--muted); }

.brand-lockup, .auth-brand { display: flex; align-items: center; gap: 12px; }
.brand-icon {
  width: 39px; height: 39px; flex: 0 0 39px; display: grid; place-items: center;
  border: 1px solid #c2d0c2; border-radius: 7px; background: #e5ece2;
  box-shadow: 0 1px 2px #182b2712; color: #234737; font: 400 1.8rem/1 var(--display-font);
}
.auth-page {
  display: grid; justify-items: center; align-content: center; gap: 27px; min-height: 100svh; padding: 35px 18px;
  background: radial-gradient(ellipse at 65% 5%, #426153 0, transparent 58%), #233e34;
}
.auth-brand { color: #f9fcf7; font: 400 1.65rem/1 var(--display-font); letter-spacing: .01em; }
.auth-card { width: min(100%, 448px); padding: clamp(24px, 6vw, 38px); border: 1px solid #d0ddd1; border-radius: 12px; background: #fcfdf9; box-shadow: 0 18px 54px #112c2459; }
.auth-card h1 { font-size: 2.65rem; }
.auth-card form { margin-top: 24px; }
.eyebrow { margin: 0 0 7px; font-size: .75rem; font-weight: 750; letter-spacing: .085em; text-transform: uppercase; color: var(--green-dark); }
.form-stack { display: grid; gap: 13px; }
.form-error { color: var(--red); margin-bottom: 0; font-size: .9rem; }
label { display: grid; gap: 5px; font-size: .86rem; font-weight: 650; }
input, select, textarea {
  width: 100%; min-width: 0; min-height: 42px; padding: 8px 10px; border: 1px solid var(--line-strong);
  border-radius: 6px; color: var(--ink); background: var(--paper); font-size: .88rem; line-height: 1.45;
}
textarea { resize: vertical; }
input::placeholder, textarea::placeholder { color: #637168; opacity: 1; }
input:focus-visible, select:focus-visible, textarea:focus-visible { border-color: #606060; outline-offset: 1px; }
.text-button { border: 0; padding: 4px 2px; background: transparent; color: var(--green-dark); text-decoration: underline; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 6px; border: 1px solid var(--line-strong); border-radius: 6px; padding: 8px 13px; min-height: 42px; color: var(--ink); background: var(--paper); font-size: .87rem; font-weight: 680; text-decoration: none; white-space: nowrap; }
.button:hover { background: var(--surface-hover); }
.button.primary { color: #fff; background: var(--green); border-color: var(--green); }
.button.primary:hover { background: var(--green-dark); }
.button.header-button { color: var(--brand); border-color: var(--line-strong); background: transparent; }
.button.header-button:hover { background: var(--surface-hover); }

.app-header {
  display: flex; justify-content: space-between; align-items: center; min-height: 73px; gap: 12px;
  padding: 11px clamp(18px, 3.15vw, 48px); border-top: 4px solid #365b4c;
  border-bottom: 1px solid var(--line-strong); background: #fcfdf9; color: var(--brand);
}
.product-name, .workspace-name { display: block; }
.product-name { font: 400 1.56rem/1 var(--display-font); }
.workspace-name { color: var(--muted); font-size: .75rem; font-weight: 580; margin-top: 4px; }
.account { display: flex; align-items: center; gap: 14px; text-align: right; }
.account-initials { display: grid; place-items: center; inline-size: 38px; block-size: 38px; background: #e8efe8; border: 1px solid #c6d3c8; border-radius: 50%; color: #244d3d; font-size: .8rem; font-weight: 720; }
.account-label span, .account-label strong { display: block; }
.account-label strong { font-size: .9rem; }
.account-label span { font-size: .76rem; color: var(--muted); }
.live-alert { display: flex; gap: 12px; justify-content: center; align-items: center; padding: 8px 18px; color: var(--green-dark); background: var(--green-pale); border-bottom: 1px solid #badbcd; font-weight: 670; }
.live-alert .button { min-height: 34px; padding-block: 5px; }
.app-body { margin: auto; width: min(100%, 1500px); display: grid; grid-template-columns: 198px minmax(0, 1fr); gap: clamp(21px, 3vw, 44px); padding: clamp(22px, 3vw, 44px); }
.navigation { display: grid; align-content: start; align-self: start; gap: 3px; padding: 6px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); box-shadow: var(--surface-shadow); }
.navigation button { display: flex; gap: 10px; align-items: center; text-align: left; width: 100%; min-height: 42px; border: 1px solid transparent; border-radius: 5px; padding: 7px 9px; font-size: .88rem; font-weight: 650; color: var(--muted); background: transparent; }
.nav-mark { display: grid; place-items: center; inline-size: 20px; block-size: 20px; flex: 0 0 20px; color: currentColor; font-size: 1.03rem; line-height: 1; }
.nav-label { flex: 1; }
.navigation button:hover { color: var(--ink); background: #e9eeeb; }
.navigation button[aria-current='page'] { color: var(--green-dark); background: var(--green-pale); border-color: #c7d9cc; box-shadow: inset 2px 0 #377358; }
.nav-count { min-width: 23px; padding: 1px 5px; border-radius: 4px; text-align: center; background: var(--surface-soft); color: var(--green-dark); font-size: .72rem; font-variant-numeric: tabular-nums; }
.content { min-width: 0; }
.view-heading { margin-bottom: 20px; padding-bottom: 15px; border-bottom: 1px solid var(--line-strong); display: flex; align-items: center; justify-content: space-between; gap: 14px 20px; flex-wrap: wrap; }
.view-heading p { margin-bottom: 0; color: var(--muted); font-size: .9rem; }
.heading-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.availability { gap: 10px; }
.availability .status-dot { height: 8px; width: 8px; border-radius: 50%; background: #7b8985; }
.availability[aria-pressed='true'] { border-color: #abcbb8; color: #24533f; }
.availability[aria-pressed='true'] .status-dot { background: #1c7657; box-shadow: 0 0 0 3px #dbeee1; }
.panel { border: 1px solid var(--line); border-radius: 10px; background: var(--paper); overflow: clip; box-shadow: var(--surface-shadow); }
.panel + .panel { margin-top: 18px; }
.panel-pad { padding: 18px 20px; }
.panel-title { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.panel-title h2 { margin-bottom: 0; }
.panel-title + .table-wrap { margin-top: 13px; }
.empty { padding: 26px 20px; color: var(--muted); }
.queue-section .empty { border: 1px solid var(--line); border-radius: 10px; background: #fcfdf9; }
.empty h2, .empty h3 { color: var(--ink); margin-bottom: 5px; }
.empty p { margin-bottom: 0; }
.table-wrap { overflow-x: auto; scrollbar-color: #a3b3a7 var(--surface-soft); }
.table-wrap:focus-visible { outline-offset: -3px; }
table { width: 100%; border-collapse: collapse; text-align: left; min-width: 580px; }
th, td { padding: 11px 14px; text-align: left; vertical-align: middle; }
td { font-size: .88rem; }
td .button { min-height: 35px; padding: 5px 10px; font-size: .8rem; }
td select { min-height: 35px; }
thead th { background: var(--surface-soft); border-bottom: 1px solid var(--line); color: #344b40; font-size: .77rem; font-weight: 700; white-space: nowrap; }
tbody tr + tr { border-top: 1px solid #e2ebe2; }
tbody tr:focus-within, tbody tr:hover { background: #f6f9f5; }
td small { display: block; color: var(--muted); }
td.actions { vertical-align: middle; text-align: right; }
.actions { display: table-cell; white-space: nowrap; }
.actions > * + * { margin-left: 4px; }
.pill { display: inline-flex; align-items: center; min-height: 25px; padding: 2px 8px; border: 1px solid #d9e1d9; white-space: nowrap; color: #435347; font-size: .75rem; font-weight: 690; border-radius: 5px; background: var(--surface-soft); }
.pill.live { background: var(--green-pale); border-color: #bfd7c8; color: #135b41; }
.pill.warn { background: var(--gold-pale); border-color: #e7d7ab; color: var(--gold); }
.pill.problem { background: var(--red-pale); border-color: #e8c9cf; color: var(--red); }
.call-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 13px; }
.live-card { min-width: 0; display: grid; gap: 10px; padding: 16px; border: 1px solid var(--line); border-top: 3px solid #6c9480; border-radius: 9px; background: var(--paper); box-shadow: var(--surface-shadow); overflow-wrap: anywhere; }
.live-card > * { margin: 0; }
.live-card-head, .live-card-footer { display: flex; justify-content: space-between; gap: 8px; align-items: start; }
.live-card h2 { margin-bottom: 2px; font: 400 1.68rem/1.08 var(--display-font); color: var(--brand); }
.live-card > p { font-size: .9rem; }
.live-card-footer { border-top: 1px solid var(--line); padding-top: 10px; }
.live-card-footer { align-items: center; flex-wrap: wrap; }
.ring-note { color: var(--green-dark); font-size: .84rem; font-weight: 650; }
.alert-note { align-self: center; max-width: 230px; text-align: right; }
.section-space { margin-top: 22px; }
.queue-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0 0 24px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); box-shadow: var(--surface-shadow); }
.metric { min-width: 0; padding: 13px 17px 11px; }
.metric + .metric { border-left: 1px solid var(--line); }
.metric dt { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: .86rem; font-weight: 680; }
.metric dt::before { content: ''; inline-size: 8px; block-size: 8px; border-radius: 50%; flex: 0 0 8px; background: #348166; }
.metric-connected dt::before { background: #5379a1; }
.metric-callback dt::before { background: #a97b32; }
.metric dd { margin: 4px 0 0; color: var(--brand); font: 400 clamp(1.9rem, 4vw, 2.65rem)/1 var(--display-font); font-variant-numeric: lining-nums tabular-nums; }
.queue-section > h2 { margin-bottom: 11px; }
.team-panel { border-color: #c3c3c3; }
.team-section-head {
  display: flex; align-items: center; gap: 11px; padding: 12px clamp(15px, 2.2vw, 22px);
  color: #fff; background: #242528; border-bottom: 1px solid #494949;
}
.team-roster .team-section-head { background: #242528; border-bottom-color: #434343; }
.team-head-icon {
  flex: 0 0 34px; width: 34px; height: 34px; display: grid; place-items: center;
  border: 1px solid #ffffff55; border-radius: 7px; background: #ffffff18;
}
.team-section-head h2 { margin: 0; font-size: 1rem; }
.team-section-head p { margin: 2px 0 0; color: #ececec; font-size: .79rem; }
.team-count { margin-left: auto; flex: 0 0 auto; padding: 3px 9px; font-size: .75rem; font-weight: 690; border: 1px solid #ffffff53; border-radius: 5px; background: #ffffff19; }

.team-form { display: grid; gap: 12px; padding: 12px clamp(13px, 2.2vw, 22px) 16px; }
.team-form-columns { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 12px; }
.team-group {
  --team-group-edge: #c4c4c4; --team-group-accent: #8f8f8f; --team-group-tint: #f5f5f5; --team-group-label: #4e4e4e;
  min-width: 0; margin: 0; padding: 8px 13px 12px; border: 1px solid var(--team-group-edge);
  border-left: 3px solid var(--team-group-accent); border-radius: 7px; background: var(--team-group-tint);
}
.team-group legend { padding: 0 6px; margin-left: -2px; color: var(--team-group-label); font-size: .82rem; font-weight: 720; }
.team-routing { --team-group-edge: #cccccc; --team-group-accent: #939393; --team-group-tint: #f5f5f5; --team-group-label: #545454; }
.team-onboarding { --team-group-edge: #cdcdcd; --team-group-accent: #9c9c9c; --team-group-tint: #f5f5f5; --team-group-label: #725323; }
.team-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.team-identity .team-fields { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); }
.team-group input, .team-group select { min-height: 39px; border-color: var(--team-group-edge); }
.team-setup { display: flex; flex-wrap: wrap; gap: 10px; align-items: start; }
.team-setup > label { min-width: min(100%, 200px); }
.team-setup > .button { min-height: 39px; margin-top: 25px; }
.team-setup small { font-size: .74rem; color: var(--muted); font-weight: 450; }

.team-roster { border-color: #c8c8c8; }
.team-roster table { min-width: 560px; }
.team-roster thead th { background: #efefef; color: #494949; border-bottom-color: #d5d5d5; }
.team-roster td { padding-block: 10px; }
.team-roster tbody tr + tr { border-top-color: #e3e3e3; }
.team-roster tbody tr:nth-child(even) { background: #fafafa; }
.team-roster tbody tr:focus-within, .team-roster tbody tr:hover { background: #f4f4f4; }
.team-roster td:first-child { overflow-wrap: anywhere; }
.team-roster td.actions .button { color: #4c4c4c; border-color: #c6c6c6; }
.team-no-phone { color: var(--muted); }
.team-role, .team-status {
  display: inline-flex; align-items: center; gap: 5px; padding: 2px 7px;
  border: 1px solid #d2d2d2; border-radius: 5px; background: #f3f3f3; color: #545454;
  font-size: .75rem; font-weight: 680; white-space: nowrap;
}
.team-role-admin { background: #ededed; border-color: #d3d3d3; color: #484848; }
.team-status::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.team-status[data-status='available'] { background: #f0f0f0; border-color: #d3d3d3; color: #545454; }
.team-status[data-status='unavailable'] { background: #f2f2f2; border-color: #d6d6d6; color: #735018; }
.team-status[data-status='disabled'] { background: #f1f1f1; border-color: #d0d0d0; color: #8e3340; }

.handling-panel { border-color: #c4c4c4; }
.handling-panel .team-section-head { background: #242528; border-bottom-color: #444444; }
.content .handling-panel, .content .handling-panel + .panel { margin-top: 20px; }
.team-group .handling-note { margin: 6px 0 0; }
.team-group legend + .handling-note { margin-top: 0; }
.choice-list { display: grid; gap: 8px; }
.choice { display: grid; grid-template-columns: 18px minmax(0, 1fr); align-items: start; gap: 9px; font-weight: 450; cursor: pointer; }
.choice input { width: 16px; height: 16px; min-height: 0; margin: 2px 0 0; padding: 0; accent-color: var(--green); }
.choice strong { display: block; font-size: .86rem; font-weight: 680; }
.choice span { color: var(--muted); font-size: .8rem; line-height: 1.4; }
.choice strong { color: var(--ink); }
.rules-table { min-width: 0; margin: 2px 0 12px; border: 1px solid var(--team-group-edge); border-radius: 6px; background: var(--paper); }
.rules-table th, .rules-table td { padding: 8px 12px; }
.rules-table thead th { background: #ececec; color: #5d4418; border-bottom-color: var(--team-group-edge); }
.rules-table tbody th { font-size: .86rem; font-weight: 600; }
.rules-table td { text-align: center; }
.rules-table thead th + th { text-align: center; }
.rules-table input { width: 17px; height: 17px; min-height: 0; padding: 0; accent-color: var(--green); }
.handling-save { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; }
.handling-save p { margin: 0; }
.update-needed { margin: 0; padding: 9px 12px; border: 1px solid #d7d7d7; border-left: 3px solid #8d8d8d; border-radius: 6px; background: var(--gold-pale); color: #5b4410; font-size: .86rem; }
.update-needed code { font-size: .8rem; overflow-wrap: anywhere; }
.tracking-list { display: grid; gap: 8px; margin: 10px 0; }
.tracking-list:empty { margin: 4px 0; }
.tracking-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr) auto; align-items: end; gap: 10px; }
.tracking-row .faq-remove { min-height: 39px; }
.correction-list { display: grid; gap: 12px; margin: 10px 0; }
.correction-list:empty { margin: 4px 0; }
.correction-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; align-items: end; gap: 10px; }
.correction-row textarea { width: 100%; resize: vertical; }
.correction-row .faq-remove { min-height: 39px; }
@media (max-width: 720px) { .correction-row { grid-template-columns: 1fr; } .correction-row .faq-remove { justify-self: start; } }
.report-range { min-width: 190px; }
.report-note { margin-bottom: 14px; }
.report-foot { margin: 0; border-top: 1px solid var(--line); }
td.number, .report-total td { font-variant-numeric: tabular-nums; }
.report-total td { border-top: 2px solid var(--line-strong); background: var(--surface-soft); font-weight: 680; }
.report-usage { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 10px; }
.outcome-card label { color: var(--profile-evergreen); font-size: .78rem; }
.outcome-card select { min-height: 38px; }
.outcome-card p { margin: 6px 0 0; }
.speed-field { display: grid; gap: 3px; }
.speed-heading, .speed-labels { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.speed-heading output { padding: 2px 6px; border-radius: 4px; background: var(--green-pale); color: var(--green-dark); font-size: .82rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.speed-field input { min-height: 28px; padding: 0; border: 0; accent-color: var(--green); cursor: pointer; }
.speed-labels { font-size: .75rem; color: var(--muted); }
.toast { position: fixed; z-index: 40; bottom: 18px; right: 18px; max-width: min(410px, calc(100vw - 36px)); padding: 12px 15px; border-radius: 8px; background: #333333; color: #fff; font-size: .9rem; box-shadow: 0 5px 20px #2727273d; }
.toast.error { background: #7c2335; }
.drawer .toast { z-index: 2; }

.drawer { border: 0; border-left: 1px solid var(--line); margin: 0 0 0 auto; padding: 0; width: min(100%, 580px); max-width: 100%; height: 100%; max-height: 100%; background: var(--paper); color: var(--ink); }
.drawer::backdrop { background: #29292970; backdrop-filter: blur(2px); }
.drawer-header { position: sticky; top: 0; z-index: 1; background: var(--paper); border-bottom: 1px solid var(--line); padding: 16px 21px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.drawer-header h2 { margin-bottom: 0; font: 400 1.9rem/1.1 var(--display-font); color: var(--brand); }
.drawer-body { padding: 19px 21px; }
.drawer-body section + section { margin-top: 20px; }
.drawer-body p { overflow-wrap: anywhere; }
.transcript { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.transcript li { padding: 9px 11px; border: 1px solid var(--line); border-radius: 5px; background: var(--surface-soft); overflow-wrap: anywhere; }
.transcript p { margin: 4px 0 0; white-space: pre-wrap; }
.details-list { display: grid; grid-template-columns: minmax(105px, 1fr) minmax(0, 2fr); gap: 5px 14px; margin: 0; }
.details-list dt { font-weight: 650; }
.details-list dd { margin: 0; overflow-wrap: anywhere; }
.recording { display: grid; gap: 5px; margin-bottom: 10px; }
.recording audio { width: 100%; }

@media (max-width: 820px) {
  .app-body { grid-template-columns: 1fr; gap: 19px; padding: 16px; }
  .navigation { grid-auto-flow: column; grid-auto-columns: max-content; overflow-x: auto; }
  .navigation button { width: auto; min-height: 40px; padding: 7px 9px; font-size: .85rem; }
  .app-header { padding: 10px 16px; }
}

@media (max-width: 500px) {
  .account-label, .account-initials { display: none; }
  .auth-card { padding: 22px; }
  .team-fields, .team-identity .team-fields { grid-template-columns: 1fr; }
  .team-setup > label { flex: 1 0 100%; }
  .team-setup > .button { margin-top: 0; }
  .metric { padding: 11px 8px; }
  .view-heading { gap: 10px; margin-bottom: 15px; padding-bottom: 12px; }
  .live-card-head { flex-wrap: wrap; }
  .metric dt { gap: 4px; font-size: .7rem; align-items: baseline; }
  .metric dt::before { inline-size: 5px; block-size: 5px; flex-basis: 5px; }
  .drawer-header, .drawer-body { padding-inline: 13px; }
  .panel-pad { padding-inline: 15px; }
}

/* Recruiter call profile */
@font-face {
  font-family: 'Instrument Serif';
  src: url('/fonts/InstrumentSerif-Regular.ttf') format('truetype');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
.drawer--profile {
  --profile-rule: #afafaf;
  --profile-row-rule: #d2d2d2;
  --profile-sheet: #fafafa;
  --profile-ink: #222222;
  --profile-secondary-ink: #454545;
  --profile-evergreen: #a21b19;
  --profile-sage: #ffffff;
  --profile-card-rule: #cfcfcf;
  --profile-card-header: #292a2d;
  --profile-card-shadow: 0 1px 2px rgb(24 24 24 / 10%), 0 5px 16px rgb(24 24 24 / 8%);
  width: min(100%, 652px);
  background: var(--profile-sheet);
}
.drawer--profile .drawer-header {
  min-height: 58px; padding: 8px 20px;
  background: var(--profile-sage); border-bottom-color: var(--profile-rule);
}
.drawer--profile .drawer-header h2 {
  color: var(--profile-evergreen); font: 400 1.9rem/1.05 'Instrument Serif', Georgia, serif; letter-spacing: -.014em;
  overflow-wrap: anywhere;
}
.drawer--profile .drawer-header .button {
  min-height: 35px; padding: 4px 10px; border-color: var(--profile-rule);
  border-radius: 4px; background: var(--profile-sheet); font-size: .77rem;
}
.drawer--profile .drawer-header .button:hover { background: #efefef; }
.drawer--profile .drawer-body { display: grid; gap: 8px; padding: 0 20px 20px; }
.driver-profile { display: grid; gap: 10px; }
.driver-profile:empty { display: none; }
.drawer--profile .driver-profile section + section { margin-top: 0; }
.profile-overview { padding: 10px 0 9px; border-bottom: 1px solid var(--profile-rule); color: var(--profile-ink); }
.profile-overview-top, .profile-overview-bottom, .profile-meta {
  display: flex; align-items: center; flex-wrap: wrap; gap: 5px 10px;
}
.profile-overview-top, .profile-overview-bottom { justify-content: space-between; }
.profile-role { font-size: .82rem; font-weight: 700; }
.profile-status {
  display: inline-flex; align-items: baseline; gap: 5px;
  color: var(--profile-secondary-ink); font-size: .75rem; font-weight: 550;
  padding-left: 10px; border-left: 1px solid var(--profile-rule);
}
.profile-status--live::before {
  content: ''; width: 5px; height: 5px; align-self: center; border-radius: 50%; background: #505050;
}
.profile-overview-top .button {
  min-height: 34px; padding: 5px 10px; border-radius: 4px;
  background: var(--profile-evergreen); border-color: var(--profile-evergreen); font-size: .78rem;
}
.profile-overview-top .button:hover { background: #821614; }
.profile-contact { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 16px; margin: 8px 0 6px; padding: 6px 9px; background: var(--profile-sage); border-radius: 3px; }
.profile-contact > div, .profile-facts > div, .profile-check { min-width: 0; }
.profile-contact dt, .profile-facts dt, .profile-check dt {
  color: var(--profile-secondary-ink); font-size: .75rem; line-height: 1.3; font-weight: 600;
}
.profile-contact dd, .profile-facts dd, .profile-check dd {
  min-width: 0; margin: 0; color: var(--profile-ink); overflow-wrap: anywhere; font-size: .85rem; font-weight: 600; line-height: 1.35;
}
.profile-contact dd { margin-top: 2px; font-size: .92rem; font-weight: 650; }
.profile-contact .profile-number {
  font-family: 'IBM Plex Mono', Consolas, ui-monospace, monospace; font-size: .86rem; font-weight: 600;
}
.profile-overview-bottom {
  color: var(--profile-secondary-ink); font-size: .7rem; font-variant-numeric: tabular-nums;
}
.profile-card {
  min-width: 0;
  padding: 10px 12px 11px;
  border: 1px solid var(--profile-card-rule);
  border-radius: 10px;
  background: var(--paper);
  box-shadow: var(--profile-card-shadow);
}
.profile-card h3, .profile-review h3 {
  margin: 0 0 6px; color: var(--profile-evergreen); font-size: .88rem; line-height: 1.35; letter-spacing: -.012em; font-weight: 720;
}
.profile-card > h3 {
  margin: -10px -12px 7px;
  padding: 7px 12px;
  border-radius: 9px 9px 0 0;
  background: var(--profile-card-header);
  color: #fff;
  text-align: center;
  font-weight: 680;
  letter-spacing: .005em;
}
.profile-checks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 14px; margin: 0 0 4px; }
.profile-check { display: flex; align-items: baseline; justify-content: space-between; gap: 5px; padding: 5px 0; border-top: 1px solid var(--profile-row-rule); }
.profile-check:nth-child(-n+2) { border-top: 0; }
.profile-check dd { display: inline-flex; gap: 4px; align-items: baseline; font-size: .77rem; white-space: nowrap; }
.profile-check dd span { min-width: .8rem; text-align: center; font-size: .87rem; font-weight: 750; }
.profile-check--yes dd span { color: #00613f; }
.profile-check--no dd span { color: #a01831; }
.profile-check--unknown dd, .profile-missing { color: var(--profile-secondary-ink); font-size: .76rem; font-weight: 500; }
.profile-qualifications .profile-facts { border-top: 1px solid var(--profile-rule); padding-top: 5px; }
.profile-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 10px; }
.profile-facts { margin: 0; }
.profile-facts > div { display: grid; grid-template-columns: minmax(75px, .9fr) minmax(0, 1.2fr); align-items: baseline; gap: 10px; padding: 5px 0; }
.profile-facts > div + div { border-top: 1px solid var(--profile-row-rule); }
.profile-facts dt { color: #525252; font-size: .77rem; font-weight: 650; }
.profile-facts dd { font-size: .88rem; font-weight: 550; line-height: 1.42; }
.profile-columns .profile-card { padding-bottom: 4px; }
.profile-columns .profile-card > h3 { margin-bottom: 1px; }
.profile-scan-facts > div {
  grid-template-columns: minmax(89px, .84fr) minmax(0, 1.6fr);
  align-items: start;
  gap: 10px;
  padding: 8px 0;
}
.profile-scan-facts dt { color: #4c4c4c; font-size: .75rem; line-height: 1.46; font-weight: 650; text-align: left; }
.profile-scan-facts dd { color: var(--profile-ink); font-size: .83rem; line-height: 1.46; font-weight: 400; text-align: left; }
.profile-scan-facts .profile-missing { font: inherit; }
.profile-restriction-list { margin: 0; padding-left: 17px; }
.profile-restriction-list li + li { margin-top: 3px; }
.profile-facts > div:first-child { padding-top: 0; }
.profile-facts > div:last-child { padding-bottom: 0; }
.profile-scan-facts > div:first-child { padding-top: 8px; }
.profile-scan-facts > div:last-child { padding-bottom: 8px; }
.profile-review { padding: 4px 9px; border-left: 2px solid #7a7a7a; background: #f0f0f0; color: #593c19; }
.profile-review h3 { margin-bottom: 2px; color: #593c19; }
.profile-review ul, .profile-missing-list { margin: 0; padding-left: 15px; overflow-wrap: anywhere; font-size: .78rem; }
.follow-up h4 { margin: 10px 0 4px; color: var(--profile-evergreen); font-size: .78rem; font-weight: 700; }
.follow-up-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--profile-row-rule); }
.follow-up-actions .button { min-height: 34px; padding: 5px 10px; border-radius: 4px; font-size: .78rem; }
.attempt-log { list-style: none; margin: 0; padding: 0; display: grid; gap: 5px; }
.attempt-log li { padding: 6px 9px; border: 1px solid var(--profile-row-rule); border-radius: 5px; background: var(--profile-sheet); font-size: .8rem; }
.attempt-log span { margin-left: 8px; color: var(--profile-secondary-ink); font-size: .74rem; }
.attempt-log p { margin: 3px 0 0; }
.follow-up-notes { display: grid; gap: 7px; justify-items: start; margin-top: 10px; }
.follow-up-notes label { width: 100%; color: var(--profile-evergreen); font-size: .78rem; }
.follow-up-notes textarea { min-height: 70px; }
.follow-up-notes .button { min-height: 34px; padding: 5px 10px; font-size: .78rem; }
td.attempts { white-space: nowrap; }
.section-space > h2 { margin-bottom: 11px; }
.profile-secondary { padding: 6px 0 1px; border-top: 1px solid var(--profile-rule); font-size: .81rem; }
.profile-secondary summary { cursor: pointer; color: var(--profile-evergreen); font-weight: 650; }
.profile-secondary summary span { margin-left: 3px; color: var(--profile-secondary-ink); font-variant-numeric: tabular-nums; }
.profile-secondary[open] summary { margin-bottom: 8px; }
.profile-secondary p:last-child, .profile-secondary .recording:last-child { margin-bottom: 0; }

@media (max-width: 540px) {
  .drawer--profile .drawer-header, .drawer--profile .drawer-body { padding-inline: 13px; }
  .drawer--profile .drawer-header h2 { font-size: 1.68rem; }
  .profile-columns { grid-template-columns: 1fr; }
  .profile-facts > div { grid-template-columns: minmax(80px, .8fr) minmax(0, 1.3fr); }
}


.call-search { display: grid; gap: 13px; padding: 16px 18px; }
.call-search-query { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: end; gap: 8px; }
.call-search-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 12px; }
.call-search-query input { font: inherit; font-weight: 500; }
.call-search-qualifications { border-top: 1px solid var(--line); padding-top: 8px; }
.call-search-qualifications summary { cursor: pointer; color: var(--green-dark); font-size: .85rem; font-weight: 680; }
.call-search-qualifications[open] summary { margin-bottom: 8px; }
.call-search-count { margin: 10px 0 6px; color: var(--muted); font-size: .81rem; }
.call-search-more { display: flex; justify-content: center; margin-top: 12px; }

@media (max-width: 540px) {
  .call-search { padding: 12px; }
  .call-search-query { grid-template-columns: 1fr 1fr; }
  .call-search-query label { grid-column: 1 / -1; }
  .call-search-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}


.call-search { overflow: visible; }
.call-state-filter { display: grid; gap: 5px; min-width: 0; font-size: .86rem; font-weight: 650; }
.call-state-picker { position: relative; }
.call-state-picker summary {
  display: flex; align-items: center; justify-content: space-between; gap: 7px; min-height: 42px;
  padding: 8px 10px; border: 1px solid var(--line-strong); border-radius: 6px;
  background: var(--paper); color: var(--ink); cursor: pointer; font-size: .88rem; font-weight: 400;
  list-style: none;
}
.call-state-picker summary::-webkit-details-marker { display: none; }
.call-state-picker summary::after {
  content: ''; flex: 0 0 7px; width: 7px; height: 7px; margin: -3px 3px 0 0;
  border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg);
}
.call-state-picker[open] summary::after { margin-top: 3px; transform: rotate(225deg); }
.call-state-options {
  position: absolute; inset: calc(100% + 5px) auto auto 0; z-index: 2;
  width: max(100%, 175px); max-height: min(19rem, 47vh); overflow: auto;
  padding: 5px; border: 1px solid var(--line-strong); border-radius: 6px;
  background: var(--paper); box-shadow: var(--surface-shadow);
}
.call-state-options label {
  display: flex; align-items: center; gap: 8px; min-height: 35px; padding: 5px 6px;
  border-radius: 4px; font-size: .83rem; font-weight: 500; cursor: pointer;
}
.call-state-options label:hover { background: var(--surface-hover); }
.call-state-options input { width: 16px; height: 16px; min-height: 0; margin: 0; flex: 0 0 16px; accent-color: var(--green); }

/* Recruiting settings and account controls */
.account-password-button {
  display: inline-grid; place-items: center; flex: 0 0 36px; width: 36px; height: 36px;
  margin-inline-start: -5px; padding: 0; border: 1px solid var(--line-strong); border-radius: 7px;
  color: var(--green-dark); background: var(--surface-soft);
}
.account-password-button:hover { background: var(--green-pale); border-color: var(--green); }

.account-dialog {
  --dialog-padding: clamp(19px, 5vw, 28px);
  width: min(440px, calc(100% - 32px)); max-height: calc(100% - 32px); padding: 0;
  border: 1px solid var(--line-strong); border-radius: 13px; color: var(--ink); background: var(--paper);
  box-shadow: 0 18px 55px #2d2d2d55;
}
.account-dialog::backdrop { background: #29292970; backdrop-filter: blur(2px); }
.account-dialog-header { padding: 20px var(--dialog-padding) 17px; border-bottom: 1px solid var(--line); background: var(--surface-soft); }
.account-dialog-header h2 { margin: 0 0 5px; font: 400 2rem/1.1 var(--display-font); color: var(--brand); }
.account-dialog-header p:last-child { margin: 0; color: var(--muted); overflow-wrap: anywhere; font-size: .9rem; }
.account-dialog form { padding: 20px var(--dialog-padding) 24px; }
.account-dialog form #password-length { margin: -8px 0 2px; }
.account-dialog-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 8px; margin-top: 4px; }

.voice-workspace { overflow: hidden; }
.voice-layout {
  display: grid; grid-template-columns: minmax(245px, .85fr) minmax(0, 1.65fr);
  align-items: stretch;
}
.voice-controls { min-width: 0; padding: clamp(16px, 2.1vw, 28px); border-right: 1px solid var(--line); background: #f8f8f8; }
.voice-controls h2 { margin: 0; color: var(--brand); font-size: 1.1rem; }
.settings-intro { margin: 6px 0 16px; color: var(--muted); font-size: .89rem; }
.settings-field-note { margin: -7px 0 2px; color: var(--muted); font-size: .8rem; }

.faq-editor { min-width: 0; --faq-space: clamp(16px, 2.35vw, 30px); }
.faq-top {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px 16px;
  padding: 16px var(--faq-space) 17px; color: #fff; background: #242528;
}
.faq-kicker { margin: 0 0 3px; color: #eaeaea; font-weight: 660; font-size: .7rem; letter-spacing: .09em; text-transform: uppercase; }
.faq-top h2 { margin: 0; font: 400 clamp(1.48rem, 2.6vw, 1.85rem)/1.12 var(--display-font); }
.faq-status {
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 8px;
  border: 1px solid #ffffff63; border-radius: 5px; background: #ffffff14; color: #fff;
  font-size: .75rem; font-weight: 620;
}
.faq-status::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.faq-status[data-draft='true'] { border-color: #e5e5e5; background: #f2f2f2; color: #57400f; }

.faq-body { padding: 16px var(--faq-space) 18px; }
.faq-description { margin: 0 0 13px; color: var(--ink); font-size: .92rem; }
.faq-list { display: grid; gap: 7px; }
.faq-row { min-width: 0; border: 1px solid var(--line); border-radius: 7px; background: var(--paper); }
.faq-row > summary {
  display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 9px;
  min-height: 44px; padding: 8px 11px; list-style: none; border-radius: 6px; cursor: pointer;
}
.faq-row > summary::-webkit-details-marker { display: none; }
.faq-row > summary:hover, .faq-row[open] > summary { background: #f4f4f4; }
.faq-row[open] > summary { border-radius: 6px 6px 0 0; }
.faq-row-title { color: var(--brand); font-size: .88rem; font-weight: 670; overflow-wrap: anywhere; }
.faq-row-badge {
  padding: 2px 6px; border: 1px solid #e2e2e2; border-radius: 4px; color: var(--muted); background: #f4f4f4;
  font-size: .72rem; font-weight: 630; white-space: nowrap;
}
.faq-row-badge[data-state='saved'] { border-color: #cecece; color: #454545; background: #efefef; }
.faq-row-badge[data-state='draft'] { border-color: #d3d3d3; color: #694916; background: #f1f1f1; }
.faq-chevron {
  display: inline-block; width: 7px; height: 7px; margin: 0 3px 3px 0;
  border: solid #5e5e5e; border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.faq-row[open] .faq-chevron { transform: rotate(225deg); margin-bottom: -3px; }
.faq-row-content { display: grid; gap: 10px; padding: 11px; border-top: 1px solid var(--line); }
.faq-row-content textarea { min-height: 82px; }
.faq-row-content [aria-invalid='true'] { border-color: #a94653; }
.faq-row-actions { display: flex; justify-content: flex-end; }
.faq-remove { min-height: 28px; padding: 2px 6px; color: #81343c; background: transparent; border: 1px solid transparent; border-radius: 4px; font-size: .77rem; font-weight: 630; }
.faq-remove:hover { background: #f1f1f1; border-color: #d6d6d6; }
.faq-add:hover { background: var(--green-pale); border-color: var(--green); }
.faq-add span { font-size: 1.03rem; font-weight: 600; line-height: 1; }
.faq-fallback { margin-top: 12px; color: var(--green-dark); font-size: .82rem; }
.faq-fallback summary { cursor: pointer; font-weight: 660; }
.faq-fallback blockquote { margin: 6px 0; padding: 7px 9px; border-left: 2px solid #939393; background: #f5f5f5; color: var(--ink); }
.faq-fallback p { margin: 0; color: var(--muted); }
.faq-notes p { margin: 3px 0 0; color: var(--muted); font-size: .8rem; }
.faq-notes { margin-top: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface-soft); }
.faq-notes summary { cursor: pointer; color: var(--green-dark); font-size: .84rem; font-weight: 670; }
.faq-notes label { margin-top: 9px; }
.faq-tools, .voice-save { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 7px 12px; }
.faq-tools { margin-top: 13px; }
.faq-add { min-height: 37px; color: var(--green-dark); border-color: #a3a3a3; background: #fafafa; }
.faq-count { color: var(--muted); font-size: .75rem; font-variant-numeric: tabular-nums; }
.faq-count[data-exceeded='true'] { color: var(--red); font-weight: 700; }
#faq-validation { margin-top: 8px; }
.voice-save { padding: 12px clamp(16px, 2.1vw, 28px); border-top: 1px solid var(--line); background: #fcfcfc; }
.voice-save strong { color: var(--brand); font-size: .86rem; }
.voice-save p { margin: 1px 0 0; color: var(--muted); font-size: .8rem; }
.voice-save .button:disabled { background: #ececec; color: #5e5e5e; border-color: #d3d3d3; }
.content .voice-workspace + .panel { margin-top: 20px; }

@media (max-width: 980px) {
  .voice-layout { grid-template-columns: 1fr; }
  .voice-controls { border-right: 0; border-bottom: 1px solid var(--line); }
}
@media (max-width: 500px) {
  .account { gap: 7px; }
  .account-password-button { margin-inline-start: 0; }
  .app-header .header-button { padding-inline: 9px; }
  .voice-save { align-items: flex-start; flex-direction: column; gap: 10px; }
}

@media (max-width: 700px) {
  .team-form-columns { grid-template-columns: 1fr; }
  .tracking-row { grid-template-columns: 1fr; }
  .tracking-row .faq-remove { justify-self: start; }
  .report-usage { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .report-usage .metric:nth-child(3) { border-left: 0; }
  .report-usage .metric:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 420px) {
  .team-count { padding-inline: 6px; }
  .team-section-head { gap: 8px; }
}

/* Daily Express recruiting */
:root { --ink:#18191b; --muted:#56595e; --brand:#151619; --green:#b61c19; --green-dark:#971815; --green-pale:#fff0ed; --line:#dedfe1; --line-strong:#a9aaaf; --canvas:#f5f5f6; --surface-soft:#f7f7f8; --surface-hover:#f0f0f1; --display-font:Inter,'Segoe UI',system-ui,sans-serif; --surface-shadow:0 2px 8px #17181b0c; }
.app-header { background:white; border-top:4px solid #c4221e; border-bottom:1px solid var(--line); color:var(--ink); }
.daily-brand { display:inline-flex; flex-direction:column; align-items:center; gap:2px; color:#48494b; }
.daily-brand img { display:block; width:116px; height:auto; }
.daily-brand small { font:600 9px/1.2 Inter,'Segoe UI',sans-serif; letter-spacing:.035em; }
.auth-page { background:#f5f5f6; }.auth-page .daily-brand img { width:155px; }
.account-label,.account-label strong,.account-label span { color:var(--ink); }
.account-password-button,.header-button {color:#292a2b;background:white;border-color:#d6d7d9;}
.account-initials {background:#242428;color:#fff;}
.navigation {background:#202124;border-color:#202124;padding:8px;}
.navigation button {color:#f7f7f8;}.navigation button:hover {background:#37383b;color:white;}
.navigation button[aria-current='page'] {background:#a91c1a;color:white;border-color:#ba302b;box-shadow:none;}
.navigation .nav-mark {color:inherit;}.button.primary {background:#af1d1b;border-color:#af1d1b;color:white;}
h1 {font-size:clamp(1.8rem,3vw,2.45rem);font-weight:720;letter-spacing:-.035em;}
.screening-editor details {margin:12px 0 18px;}.screening-editor summary {cursor:pointer;font-weight:650;}
.screening-row {display:grid;grid-template-columns:minmax(145px,.65fr) minmax(0,1.7fr);gap:12px;align-items:center;border-bottom:1px solid var(--line);padding:9px 0;}
.screening-row label {display:flex;align-items:center;gap:8px;}.screening-row input[type=checkbox]{width:16px;height:16px;accent-color:#ab1d1b;}
.screening-editor textarea {width:100%;}.answers-layout .faq-editor {width:100%;border:0;}
@media(max-width:680px){.screening-row{grid-template-columns:1fr;gap:4px;}.daily-brand img{width:88px;}.app-header{gap:10px;}.navigation{overflow:auto;}}

/* Daily Express call details and recruiting settings */
.drawer--profile .drawer-header { border-top: 3px solid var(--green); }
.drawer--profile .drawer-header h2 { color: var(--ink); font: 700 1.55rem/1.15 var(--display-font); }
.team-section-head, .handling-panel .team-section-head, .team-roster .team-section-head, .faq-top {
  background: var(--brand); border-bottom: 3px solid var(--green);
}
.team-group, .team-routing, .team-onboarding {
  --team-group-accent: var(--green); --team-group-edge: var(--line);
  --team-group-label: var(--ink); --team-group-tint: var(--surface-soft);
}
.faq-add { color: var(--green-dark); background: white; border-color: var(--line-strong); }
.faq-row[open] > summary { box-shadow: inset 3px 0 var(--green); }
:is(.team-form,.voice-workspace,.drawer,.account-dialog) :is(input, select, textarea, button, summary):focus-visible {
  outline: 2px solid var(--green); outline-offset: 2px;
}
:is(.team-form,.drawer) input:is([type=radio],[type=checkbox]) { accent-color: var(--green); }
