/* Approved light design, applied to the existing production components.
   Brand tokens and semantic lead-status colors intentionally stay separate. */
:root {
  --ink: #25283e;
  --muted: #73798e;
  --border: #e6e9f2;
  --border-strong: #d9ddeb;
  --surface: #fff;
  --surface-soft: #f6f7fb;
  --accent: #5d63dc;
  --accent-dark: #494fc6;
  --accent-soft: #efeffe;
  /* Existing brand consumers use these legacy variable names. */
  --green: var(--accent);
  --green-dark: var(--accent-dark);
  --green-pale: var(--accent-soft);
  --green-soft: #f6f5fe;
  --purple: #7957c8;
  --purple-soft: #f1ecfb;
  --ringing: #2f7fd3;
  --ringing-soft: #e8f1fc;
  --red: #db696a;
  --red-soft: #fcecec;
  --yellow: #dca331;
  --yellow-soft: #fff5dd;
  --candidate: #4b9965;
  --candidate-soft: #eaf5ed;
  --gray: #9297a2;
  --gray-soft: #eef0f3;
  --orange: #b77522;
  --orange-soft: #fff8ed;
  --sidebar-width: 226px;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  color-scheme: light;
  background: var(--surface-soft);
}

body { background: var(--surface-soft); font-family: inherit; font-size: 14px; line-height: 1.5; padding-bottom: 0; }
button, input, select, textarea { font-family: inherit; }
button, a, input, select, textarea, summary { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible,
textarea:focus-visible, summary:focus-visible { outline: 3px solid #8989e7; outline-offset: 3px; }
button { touch-action: manipulation; }
input, select, textarea { border-radius: 9px; }
.button { min-height: 40px; padding: 9px 15px; border-radius: 9px; font-size: 12px; font-weight: 600; }
.button-secondary { background: white; color: #686d83; }
.button:hover { border-color: #c6c8e8; background: #f8f8fd; }
.button-primary, .button-primary:hover { color: white; background: var(--accent); border-color: var(--accent); }
.button-primary:hover { background: var(--accent-dark); }

/* Navigation and page frame. */
.sidebar {
  inset: 0 auto 0 0; width: var(--sidebar-width); height: 100dvh;
  display: flex; padding: 30px 16px 0; background: white;
  border-right: 1px solid var(--border); border-top: 0; overflow-y: auto; z-index: 80;
}
.brand { display: flex; align-items: center; justify-content: flex-start; gap: 8px; min-height: auto; margin: 0; padding: 0 12px 30px; font-size: 26px; font-weight: 750; letter-spacing: -1px; color: var(--ink); }
.brand > .material-symbols-rounded { font-size: 27px; color: var(--accent); }
.brand-period { color: var(--accent); margin-left: -8px; }
.workspace-label { display: flex; align-items: center; gap: 9px; margin: 0 4px 28px; padding: 12px 9px; border: 1px solid var(--border); border-radius: 12px; }
.workspace-label > span { color: var(--accent); font-size: 23px; }
.workspace-label strong { display: block; font-size: 11px; font-weight: 650; }
.workspace-label small { display: block; margin-top: 3px; color: var(--muted); font-size: 9px; }
.navigation-caption { font-size: 9px; letter-spacing: 1px; color: var(--muted); margin: 0 12px 12px; }
.primary-nav { display: flex; flex-direction: column; height: auto; gap: 5px; }
.nav-link { display: flex; min-height: 45px; align-items: center; justify-content: flex-start; gap: 11px; padding: 11px 13px; border-radius: 10px; font-size: 14px; font-weight: 500; color: #686e84; }
.nav-link span:last-child { display: inline; }
.nav-link::before { display: none; }
.nav-link:hover { background: #f5f5fc; color: var(--accent); }
.nav-link.is-active { background: #efefef; color: var(--accent); font-weight: 650; }
.nav-link[data-route="settings"] { margin-top: 20px; }
.nav-link .material-symbols-rounded { font-size: 21px; }
.profile { display: grid; grid-template-columns: 34px minmax(0, 1fr) 18px; justify-items: stretch; gap: 9px; min-height: 80px; margin-top: auto; padding: 20px 4px; border-top: 1px solid var(--border); }
.avatar { border-radius: 11px; background: #eae9fb; color: var(--accent); }
.profile-copy { display: flex; }
.profile-copy strong { font-size: 12px; }
.profile-copy small { font-size: 10px; }
.profile-chevron { display: block; font-size: 19px; color: var(--muted); }
.workspace { margin-left: var(--sidebar-width); }
.workspace-topbar { height: 73px; padding: 0 36px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--border); background: #ffffffd9; }
.workspace-breadcrumb { display: flex; align-items: center; gap: 14px; color: var(--muted); font-size: 12px; }
.workspace-breadcrumb > .material-symbols-rounded { font-size: 18px; }
.workspace-breadcrumb strong { font-weight: 500; color: #51566e; }
.breadcrumb-divider { color: #b7bdcf; }
.workspace-product { color: #747392; border: 1px solid #e7e6f7; background: #fafafe; padding: 4px 11px; border-radius: 20px; font-size: 11px; }
.menu-toggle { display: none; width: 38px; height: 38px; padding: 0; border: 0; border-radius: 9px; background: white; color: var(--muted); cursor: pointer; }
.sidebar-backdrop { position: fixed; inset: 0; background: #25283e45; border: 0; z-index: 75; }
.screen { min-height: calc(100dvh - 73px); max-width: 1580px; margin: 0 auto; }
.page-header { min-height: 120px; padding: 32px 36px 25px; background: transparent; }
.page-header h1 { font-size: 30px; font-weight: 650; letter-spacing: -1px; margin: 0 0 9px; }
.page-header p { color: var(--muted); font-size: 12px; line-height: 1.5; }
.page-content { padding: 0 36px 32px; }
.page-content h2 { font-size: 15px; font-weight: 600; }
.quick-day-filter { display: flex; align-items: center; gap: 9px; padding: 9px 12px; border: 1px solid var(--border); border-radius: 10px; background: white; font-size: 11px; font-weight: 500; text-transform: none; letter-spacing: 0; }
.quick-day-filter select { min-width: 150px; border: 0; height: 25px; padding-left: 0; color: var(--ink); font-size: 12px; }

/* Dashboard: metrics first, compact real schedule, then the team and queue. */
.home-content { display: flex; flex-direction: column; gap: 24px; }
.metrics { order: 0; margin: 0; border: 0; border-radius: 0; gap: 12px; grid-template-columns: repeat(6, minmax(0, 1fr)); }
.metric, .metric + .metric { padding: 18px 16px; min-height: 142px; background: white; border: 1px solid var(--border); border-radius: 16px; }
.metric:nth-child(2) { background: var(--accent-soft); }
.metric p { color: #656b80; margin: 0 0 15px; font-size: 11px; font-weight: 500; }
.metric div { gap: 7px; align-items: baseline; }
.metric strong { color: var(--ink); font-size: 31px; font-weight: 650; letter-spacing: -1px; }
.metric:nth-child(2) strong { color: var(--accent); }
.metric small, .metric span { font-size: 11px; color: var(--muted); }
.metric small { display: block; margin-top: 8px; }
.metric.metric-no-status { background: var(--orange-soft); border-color: #efe4d1; }
.metric-no-status strong, .metric-no-status p { color: var(--orange); }
.schedule-section { order: 1; background: white; border: 1px solid var(--border); border-radius: 18px; padding: 23px 24px; }
.schedule-section > h2 { margin-bottom: 20px; }
.schedule-board { gap: 23px; }
.schedule-group-heading { margin: 0 0 17px; }
.schedule-group-heading h3 { font-size: 12px; font-weight: 550; }
.schedule-group-heading p { font-size: 11px; margin-top: 4px; color: var(--muted); }
.is-carryover-group { display: flex; align-items: center; gap: 16px; padding: 13px 16px; border: 1px solid #efe4d1; border-radius: 12px; background: var(--orange-soft); }
.is-carryover-group .schedule-group-heading { flex: 1; margin: 0; }
.is-carryover-group .schedule-group-heading h3 { color: #9b6a2a; }
.is-carryover-group .schedule-group-heading p { font-size: 10px; margin-left: 15px; color: #9b805c; }
.schedule.is-carryover-row { width: auto; padding: 0; }
.is-carryover-row .schedule-step { flex-direction: row; align-items: center; gap: 14px; }
.is-carryover-row .schedule-step > p { display: none; }
.is-carryover-row .schedule-step > strong { font-size: 12px; }
.is-carryover-row .schedule-step > span:last-child { color: #9b805c; }
.schedule { padding: 0; }
.schedule.is-sync-row { grid-template-columns: repeat(6, minmax(0, 1fr)); overflow: visible; gap: 12px; }
.schedule::before { display: none; }
.schedule-step { align-items: flex-start; text-align: left; }
.schedule-time { display: flex; align-items: center; gap: 9px; position: relative; width: 100%; }
.schedule-time time { font-size: 14px; font-weight: 600; background: white; padding-right: 8px; font-variant-numeric: tabular-nums; z-index: 1; }
.is-sync-row .schedule-step:not(:last-child) .schedule-time::after { content: ""; height: 1px; position: absolute; left: 30px; right: -12px; top: 50%; background: var(--border); }
.schedule-step .time-node, .schedule-step.is-waiting .time-node { position: relative; flex: 0 0 26px; width: 26px; height: 26px; margin: 0; border: 3px solid white; outline: 1px solid #deddf2; background: var(--accent-soft); color: var(--accent); font-size: 15px; box-shadow: none; animation: none; z-index: 1; }
.schedule-step.is-waiting .time-node::after { content: ""; position: absolute; inset: -6px; border: 1px solid #b3b0ec; border-radius: 50%; animation: theme-ring-breathe 3s ease-in-out infinite; }
.schedule-step.is-planned .time-node { border: 3px solid white; background: white; color: #8c93a8; outline-color: var(--border); }
.schedule-step.is-planned time { color: #7b8197; }
.schedule-step.is-failed .time-node { color: #c75062; outline-color: #e7b8c1; }
.schedule-step.is-carryover .time-node { color: var(--orange); background: #faefd9; border-color: var(--orange-soft); outline-color: #ead7ba; }
.is-carryover-row .schedule-time { width: auto; }
.is-carryover-row .schedule-time time { background: transparent; color: #9b6a2a; padding: 0; }
.schedule-step.is-carryover.is-waiting .time-node::after { border-color: #dfbb88; }
.schedule-step p, .schedule-step.is-waiting p { margin: 16px 0 7px; color: var(--muted); font-size: 11px; }
.schedule-step.is-waiting p { color: var(--accent); }
.schedule-step > strong { font-size: 13px; font-weight: 550; }
.schedule-step > span:last-child { color: var(--muted); margin-top: 4px; font-size: 11px; }
.schedule-step.is-failed > strong, .schedule-step.is-failed p { color: #bd4f61; }
@keyframes theme-ring-breathe { 50% { transform: scale(1.12); opacity: .3; } }
.dashboard-grid { order: 2; display: grid; grid-template-columns: minmax(0, 540px) 265px; justify-content: start; gap: 22px; margin: 0; }
.employee-distribution-card { padding: 0; border: 1px solid var(--border); border-radius: 18px; overflow: hidden; background: white; }
.employee-distribution-heading { padding: 23px 24px; gap: 10px; margin: 0; }
.employee-distribution-heading p { font-size: 11px; color: var(--muted); margin-top: 7px; }
.employee-distribution-icon { display: none; }
.employee-distribution-list { display: grid; grid-template-columns: 1fr; gap: 0; }
.employee-distribution-item { border: 0; border-top: 1px solid var(--border); border-radius: 0; background: white; padding: 13px 24px; grid-template-columns: 34px minmax(90px, 145px) auto; justify-content: start; gap: 12px; }
.employee-distribution-avatar { width: 34px; height: 34px; border-radius: 11px; background: var(--accent-soft); color: #7570b5; font-size: 12px; }
.employee-distribution-name strong { font-size: 14px; }
.employee-distribution-name span, .employee-distribution-count > span { font-size: 11px; color: var(--muted); }
.employee-distribution-count strong { font-size: 15px; font-weight: 600; }
.employee-distribution-count { justify-items: start; text-align: left; }
.employee-distribution-list { margin-top: 0; }
.employee-distribution-remaining { color: var(--orange); }
.employee-distribution-total, .employee-distribution-separator { color: #7b8096; }
.employee-distribution-empty { padding: 18px 24px; }
.distribution-queue-card { align-self: start; border: 1px solid #e4e3f7; border-radius: 18px; padding: 25px 23px; background: #f2f1fe; }
.queue-icon { display: inline-grid; place-items: center; width: 40px; height: 40px; color: var(--accent); background: #eae8fa; border-radius: 12px; margin-bottom: 19px; }
.distribution-queue-card h2 { font-size: 14px; font-weight: 600; }
.distribution-queue-card > strong { display: block; font-size: 40px; letter-spacing: -1px; margin: 12px 0 5px; }
.distribution-queue-card p { font-size: 12px; line-height: 1.7; color: var(--muted); margin: 0 0 20px; }
.distribution-queue-card small { display: block; font-size: 11px; color: var(--muted); border-top: 1px solid #e1dff3; margin-top: 19px; padding-top: 15px; line-height: 1.7; }
.metric-actions { display: flex; flex-direction: column; gap: 9px; }
.metric-distribute-button, .metric-delete-button { width: 100%; min-height: 40px; border-radius: 9px; font-size: 12px; padding: 10px; }
.metric-distribute-button { background: var(--accent); border-color: var(--accent); color: white; }
.metric-distribute-button:hover:not(:disabled) { background: var(--accent-dark); border-color: var(--accent-dark); }
.metric-delete-button { background: white; border: 1px solid var(--border); color: #a25264; }
.metric-delete-button:hover:not(:disabled) { background: #fcf0f2; border-color: #e6bdc7; }
.source-exclusion-card { grid-column: 1 / -1; border: 1px solid var(--border); border-radius: 18px; padding: 24px; background: white; }
.source-exclusion-icon { background: #f8eef1; color: #bd6b80; border-radius: 11px; }
.source-exclusion-heading p, .source-exclusion-note { color: var(--muted); font-size: 12px; }
.source-exclusion-form input { border-radius: 9px; height: 42px; }
.source-exclusion-form button { border-radius: 9px; background: #fbf0f3; color: #a54c65; border-color: #edd5dc; }

/* Data tables. Keep actual filters, permissions and server-side pagination. */
table { font-size: 13px; }
th, td { border-right: 0; border-bottom: 1px solid var(--border); }
th { color: #73798e; background: #fafafe; font-size: 11px; font-weight: 550; }
.identifications-content { display: flex; flex-direction: column; overflow: visible; }
.filters { order: 0; display: flex; flex-wrap: wrap; gap: 10px; padding: 18px; background: white; border: 1px solid var(--border); border-radius: 16px; margin: 0 0 16px; align-items: center; }
.filters input, .filters select, .table-toolbar select { border-radius: 9px; height: 39px; min-height: 39px; font-size: 12px; border-color: var(--border); }
.search-field { flex: 1 1 210px; min-width: 180px; border-radius: 9px; background: #f9f9fd; }
.search-field input { width: 100%; background: transparent; }
.filters > select { flex: 1 1 135px; min-width: 135px; max-width: 230px; }
.date-range { display: flex; flex: 0 0 auto; align-items: center; gap: 12px; grid-column: auto; }
.date-field { display: flex; align-items: center; gap: 7px; }
.date-field > span { color: var(--muted); font-size: 12px; flex-shrink: 0; }
.date-field input { width: 128px; padding: 0 7px; }
.button-reset { width: auto; border: 0; color: var(--muted); background: transparent; }
.identifications-layout { order: 1; display: flex; flex-direction: column; gap: 0; min-width: 0; }
.table-frame { border: 1px solid var(--border); border-radius: 16px 16px 0 0; background: white; overflow: visible; }
.identifications-layout .table-frame { min-width: 0; max-width: 100%; overflow-x: auto; border-radius: 0; }
#identifications .identifications-table th:first-child, #identifications .identifications-table th:last-child { border-radius: 0; }
.identifications-table { font-size: 14px; }
.identifications-table th { height: 47px; padding: 12px 14px; font-size: 11px; }
.identifications-table th:first-child { border-top-left-radius: 16px; }
.identifications-table th:last-child { border-top-right-radius: 16px; }
.identifications-table td { height: 65px; padding: 11px 14px; }
.identifications-table { min-width: 1210px; }
.identifications-table .ident-employee-column { width: 10%; }
.identifications-table .confidential-project-column { width: 15%; }
.identifications-table #identification-date-column { width: 10%; }
.identifications-table .ident-operator-column { width: 9%; }
.identifications-table .ident-phone-column { width: 13%; }
.identifications-table .ident-region-column { width: 15%; }
.identifications-table .ident-status-column { width: 14%; }
.identifications-table .ident-comment-column { width: 14%; }
.identifications-table .operator-cell,
.identifications-table .region-cell { font-size: 14px; line-height: 1.4; overflow-wrap: anywhere; }
.project-cell strong { font-size: 12px; font-weight: 550; }
.project-cell span { font-size: 11px; color: #72788b; }
.phone-cell { font-size: 16px; font-weight: 550; font-variant-numeric: tabular-nums; }
.date-cell { font-size: 14px; font-variant-numeric: tabular-nums; }
.date-cell span:last-child { color: #777d90; font-size: 12px; }

/* White control on every status. Color belongs to the whole row, not the input. */
.identifications-table tr { --row-color: var(--border); --row-surface: white; }
.identifications-table .row-status-no-answer { --row-color: var(--purple); --row-surface: var(--purple-soft); }
.identifications-table .row-status-has-rings { --row-color: var(--ringing); --row-surface: var(--ringing-soft); }
.identifications-table .row-status-not-target { --row-color: var(--red); --row-surface: var(--red-soft); }
.identifications-table .row-status-in-touch { --row-color: var(--yellow); --row-surface: var(--yellow-soft); }
.identifications-table .row-status-candidate { --row-color: var(--candidate); --row-surface: var(--candidate-soft); }
.identifications-table .row-status-target { --row-color: var(--gray); --row-surface: var(--gray-soft); }
.identifications-table tbody tr > td { background: var(--row-surface); box-shadow: inset 0 -1px var(--row-color); }
.identifications-table tbody tr > td:first-child { box-shadow: inset 3px 0 var(--row-color), inset 0 -1px var(--row-color); }
.identifications-table .status-cell { padding: 10px; }
.status-picker { height: auto; }
.status-trigger, .status-trigger:hover, .status-picker.is-open .status-trigger {
  height: 38px; min-height: 38px; padding: 0 10px; border: 1px solid #dce0eb;
  border-radius: 9px; background: #fff; color: var(--ink); font-size: 13px; box-shadow: none;
}
.status-trigger:hover, .status-picker.is-open .status-trigger { border-color: #aaa9df; }
.status-trigger .material-symbols-rounded { color: #7d8397; flex-shrink: 0; }
.status-menu { position: fixed; top: auto; left: auto; border: 1px solid var(--border); border-radius: 11px; padding: 5px; background: white; box-shadow: 0 10px 28px #25283e20; min-width: 160px; z-index: 100; overflow-y: auto; }
.status-option[data-status] { display: flex; align-items: center; gap: 8px; height: 35px; border-radius: 7px; background: #fff; font-size: 12px; padding: 0 8px; }
.status-option[data-status]:hover, .status-option[data-status]:focus-visible { background: #f5f5fb; filter: none; }
.status-option[aria-selected="true"] { font-weight: 650; }
.status-option .status-dot { width: 7px; height: 7px; flex: 0 0 7px; }
.comment-input { background: white; border: 1px solid #dce0eb; border-radius: 9px; padding: 9px 10px; font-size: 12px; min-height: 38px; }
.comment-input:hover, .comment-input:focus { background: white; }
.comment-counter { font-size: 9px; color: #73798e; }
.table-toolbar { order: 2; margin: 0; padding: 14px 18px; border: 1px solid var(--border); border-top: 0; border-radius: 0 0 16px 16px; background: white; min-height: 66px; font-size: 12px; gap: 12px; }
.table-toolbar.identifications-toolbar-top { order: 0; border-top: 1px solid var(--border); border-radius: 16px 16px 0 0; }
.identifications-toolbar-bottom { justify-content: flex-end; }
.table-toolbar label { font-size: 12px; }
.table-toolbar select { height: 33px; min-height: 33px; }
.page-button { border-radius: 8px; height: 33px; min-width: 33px; }
.page-button.is-current { background: var(--accent-soft); border-color: #dcdaf4; color: var(--accent); }
.pagination { color: var(--muted); font-size: 12px; }
.pagination > strong { font-weight: 500; }
.status-summary { order: -1; width: auto; margin-bottom: 16px; border: 1px solid var(--border); border-radius: 12px; padding: 0 17px; background: white; }
.status-summary > summary { cursor: pointer; padding: 13px 0; font-size: 12px; color: var(--muted); }
.status-summary[open] > #summary-status-list { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 16px; padding: 10px 0 15px; }
.summary-item { border: 0; padding: 0; }
.summary-item p { font-size: 11px; }
.summary-item strong { font-size: 17px; }
.summary-item span { font-size: 11px; }
.status-summary footer { padding: 10px 0; }

/* Secondary screens retain every production column and control. */
.analytics-tabs { gap: 28px; border-color: var(--border); }
.analytics-tab { font-size: 13px; padding: 10px 2px 17px; }
.analytics-panel, .analytics-project-picker, .analytics-source-summary article,
.employee-analytics-card, .employees-view, .employee-create-card, .projects-view,
.journal-view, .settings-card, .test-view, .test-table-frame { border-radius: 16px; border-color: var(--border); background: white; }
.analytics-sources-panel { border: 0; background: transparent; }
.analytics-project-picker { padding: 18px; }
.analytics-project-heading { margin-bottom: 12px; }
.analytics-project-heading span { color: var(--muted); font-size: 11px; }
.analytics-project-button { border-radius: 9px; font-size: 12px; padding: 10px 13px; }
.analytics-project-button.is-active { background: var(--accent-soft); color: var(--accent); border-color: #dcdaf4; }
.analytics-source-summary { grid-template-columns: minmax(160px, 1.4fr) repeat(5, minmax(0, 1fr)); gap: 12px; margin-top: 18px; }
.analytics-source-summary article { padding: 18px; }
.analytics-source-summary span { font-size: 11px; }
.analytics-source-summary strong { font-size: 22px; color: var(--ink); }
.analytics-source-summary .analytics-project-efficiency strong { color: var(--accent-dark); font-size: 25px; }
.analytics-source-table-layout { margin-top: 20px; }
.analytics-source-table-frame { border-radius: 14px; }
.analytics-source-table { font-size: 14px; }
.analytics-source-table th { height: 48px; padding: 9px 12px; font-size: 11px; }
.analytics-source-table td { height: 58px; padding: 10px 12px; font-size: 13px; }
.analytics-source-name { font-size: 15px; }
.analytics-source-controls, .analytics-source-favorites { padding-top: 49px; }
.source-activity-row, .source-favorite-row { height: 58px; }
.analytics-source-table tbody tr.has-efficiency > td { background: #f2f8f4; }
.analytics-source-date { color: #62697e; }
.source-copy-button { color: #62697e; }
.source-activity-button.is-paused { color: #3a8658; }
.phone-base-tabs { background: #eeeff7; border: 0; border-radius: 12px; }
.phone-base-tab { font-size: 12px; }
.phone-base-tab.is-active { color: var(--accent); box-shadow: 0 2px 7px #25283e09; }
.phone-base-table-toolbar { margin-top: 18px; }
.phone-base-table th { height: 44px; font-size: 11px; }
.phone-base-table td { height: 60px; font-size: 14px; }
.phone-base-empty { border-color: var(--border); background: #fafafe; }
.employees-table th { font-size: 11px; height: 44px; }
.employees-table td { font-size: 13px; height: 64px; }
.employee-workday { border-radius: 7px; }
.employee-workday.is-working, .workday-toggle.is-working, .legend-swatch.is-working {
  background: #e5f4e9; border-color: #8ac39c; color: #25653b;
}
.workday-toggle.is-working strong, .workday-toggle.is-working .workday-state { color: #25653b; }
.employee-line-select, .employee-type-select, .project-collection-select { border-radius: 8px; font-size: 12px; }
.employee-type-select { min-width: 138px; padding-right: 28px; }
.app-shell[data-role="admin"] .employees-table { min-width: 1120px; }
.app-shell[data-role="admin"] .employees-table th.employee-type-column { width: 164px; }
.employee-analytics-card { margin-bottom: 20px; overflow: hidden; }
.employee-analytics-person { background: #fafafe; border-color: var(--border); }
.employee-analytics-avatar { background: var(--accent-soft); color: var(--accent); border-radius: 12px; }
.employee-analytics-person h3 { font-size: 20px; }
.employee-analytics-statuses { border-color: var(--border); }
.employee-chart-area { fill: #5d63dc0a; }
.employee-chart-y-label, .employee-chart-date, .employee-chart-value { font-family: Inter, "Segoe UI", Arial, sans-serif; }
.projects-list-heading { border-radius: 16px 16px 0 0; }
.projects-table th { height: 42px; font-size: 11px; }
.projects-table td { height: 60px; font-size: 13px; }
/* Heights must match the table: outside-table favorites stay on their rows. */
.project-primary-controls { padding-top: 119px; }
.project-primary-row { height: 60px; }
.journal-table th { height: 44px; font-size: 11px; }
.journal-table td { height: 60px; font-size: 13px; }
.settings-content { gap: 22px; }
.settings-card { padding: 25px; }
.settings-card-heading p { color: var(--muted); font-size: 12px; }
.settings-password-form input, .employee-form input, .employee-form select { border-radius: 9px; min-height: 42px; }
.workday-toggle { border-radius: 12px; }
.phone-chart-dialog, .password-reset-dialog { border-radius: 20px; border-color: var(--border); box-shadow: 0 24px 100px #25283e30; }
.phone-chart-header { background: #fafafe; border-color: var(--border); }
.phone-chart-backdrop, .password-reset-backdrop { background: #25263f55; backdrop-filter: blur(3px); }
.phone-chart-close, .password-reset-close { border-radius: 9px; }
.toast { border-radius: 12px; background: #34344e; color: white; font-size: 13px; box-shadow: 0 8px 24px #27263824; }
.auth-shell { background: var(--surface-soft); }
.login-card { border-radius: 22px; border-color: var(--border); box-shadow: 0 14px 60px #25283e08; padding: 38px; }
.login-brand { color: var(--ink); font-weight: 750; letter-spacing: -1px; }
.login-copy h1 { font-size: 25px; font-weight: 650; }
.login-copy p { color: var(--muted); }
.login-form input { min-height: 44px; border-radius: 10px; }

@media (max-width: 1250px) {
  :root { --sidebar-width: 202px; }
  .sidebar { padding-left: 12px; padding-right: 12px; }
  .brand { font-size: 24px; padding-left: 8px; }
  .workspace-label small { font-size: 8px; }
  .workspace-label strong { font-size: 10px; }
  .nav-link { font-size: 13px; }
  .workspace-topbar { padding: 0 26px; }
  .page-header { padding: 28px 26px 24px; }
  .page-content { padding-left: 26px; padding-right: 26px; }
  .metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .metric { min-height: 120px; }
  .metric p { margin-bottom: 8px; }
  .schedule-section { padding: 22px 19px; }
  .is-carryover-group { flex-wrap: wrap; }
  .is-carryover-group .schedule-group-heading { flex-basis: 100%; }
  .schedule-step > strong { font-size: 12px; }
  .schedule-time { gap: 6px; }
  .schedule-time time { font-size: 13px; }
  .schedule-step > span:last-child { font-size: 10px; }
  .dashboard-grid { grid-template-columns: minmax(0, 540px) 240px; gap: 18px; }
  .identifications-table td { padding: 10px; }
  .phone-cell { font-size: 15px; }
  .identifications-table { min-width: 1210px; }
  .table-frame { overflow-x: auto; }
  .analytics-source-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .analytics-source-summary article:first-child { grid-column: 1 / -1; }
}
@media (max-width: 960px) {
  .dashboard-grid { grid-template-columns: minmax(0, 540px); }
  .distribution-queue-card { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 24px; }
  .queue-icon { display: none; }
  .distribution-queue-card h2, .distribution-queue-card > strong, .distribution-queue-card p { grid-column: 1; margin: 0; }
  .distribution-queue-card .metric-actions { grid-column: 2; grid-row: 1 / 4; justify-content: center; }
  .distribution-queue-card small { grid-column: 1 / -1; }
  .schedule-time { align-items: flex-start; flex-direction: column; }
  .schedule-time time { font-size: 13px; }
  .is-sync-row .schedule-step:not(:last-child) .schedule-time::after { top: 13px; }
  .is-carryover-row .schedule-time { flex-direction: row; align-items: center; }
  .identifications-content { overflow: visible; }
  .status-summary[open] > #summary-status-list { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 760px) {
  :root { --sidebar-width: 0px; }
  .sidebar { width: 226px; padding: 25px 16px 0; transform: translateX(-100%); transition: transform .2s; border-right: 1px solid var(--border); }
  .sidebar.is-open { transform: translateX(0); }
  .brand { display: flex; }
  .profile { display: grid; }
  .menu-toggle { display: inline-grid; place-items: center; }
  .workspace-topbar { position: sticky; top: 0; z-index: 60; height: 61px; padding: 0 16px; backdrop-filter: blur(12px); }
  .workspace-breadcrumb { gap: 9px; }
  .breadcrumb-workspace, .breadcrumb-divider, .workspace-product { display: none; }
  .workspace { margin-left: 0; }
  .screen { min-height: calc(100dvh - 61px); }
  .page-header { min-height: 112px; padding: 25px 18px 22px; gap: 16px; flex-wrap: wrap; }
  .page-header h1 { font-size: 27px; }
  .page-content { padding: 0 18px 25px; }
  .button-secondary { font-size: 12px; }
  .quick-day-filter { padding: 8px 10px; }
  .home-content { gap: 18px; }
  .metrics { gap: 9px; }
  .metric, .metric + .metric { padding: 14px 10px; border: 1px solid var(--border); }
  .metric p, .metric span, .metric small { font-size: 10px; }
  .metric strong { font-size: 27px; }
  .metric div { flex-wrap: wrap; gap: 0 5px; }
  .schedule-section { padding: 20px 17px; }
  .schedule.is-sync-row { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px 10px; }
  .is-sync-row .schedule-step:nth-child(3) .schedule-time::after { display: none; }
  .schedule-time { flex-direction: row; align-items: center; }
  .schedule-time time { font-size: 12px; padding-right: 2px; }
  .is-carryover-group { padding: 12px; }
  .is-carryover-row .schedule-step { flex-wrap: wrap; gap: 9px; }
  .is-carryover-row .schedule-step > strong { font-size: 11px; }
  .employee-distribution-heading, .employee-distribution-item { padding: 18px; }
  .employee-distribution-name strong { font-size: 13px; }
  .employee-distribution-count > span { font-size: 10px; }
  .employee-distribution-count strong { font-size: 14px; }
  .employee-distribution-item { grid-template-columns: 30px minmax(75px, 1fr) auto; gap: 9px; }
  .employee-distribution-avatar { width: 30px; height: 30px; }
  .distribution-queue-card { padding: 20px 18px; gap: 8px 12px; }
  .distribution-queue-card > strong { font-size: 32px; }
  .distribution-queue-card .metric-actions button { font-size: 11px; }
  .source-exclusion-card { padding: 20px 18px; }
  .source-exclusion-form { grid-template-columns: 1fr; }
  .filters { padding: 14px; gap: 9px; }
  .search-field { flex-basis: 100%; }
  .filters > select { min-width: 120px; max-width: none; }
  .date-range { width: 100%; flex-basis: 100%; }
  .date-field { flex: 1; }
  .date-field input { width: 100%; min-width: 0; }
  .status-summary[open] > #summary-status-list { grid-template-columns: repeat(2, 1fr); }
  .table-toolbar { padding: 14px; align-items: flex-start; flex-direction: column; }
  .table-toolbar label { font-size: 11px; }
  .pagination { gap: 8px; flex-wrap: wrap; font-size: 11px; }
  .analytics-tabs { gap: 20px; }
  .analytics-tab { font-size: 12px; }
  .analytics-source-summary article { padding: 13px 11px; }
  .analytics-source-summary span { font-size: 10px; }
  .analytics-source-summary strong { font-size: 20px; }
  .analytics-source-summary .analytics-project-efficiency strong { font-size: 22px; }
  .employee-analytics-card { overflow-x: auto; }
  .settings-card { padding: 21px 18px; }
  .workweek { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
  .workday-toggle { min-width: 0; padding: 12px 2px; }
  .workday-state { font-size: 7px; }
  .login-card { padding: 28px 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .schedule-step.is-waiting .time-node::after { animation: none; }
  .sidebar { transition: none; }
}
