*{box-sizing:border-box}
:root{font-family:system-ui,sans-serif;color:#172b25;background:#f3f6f4;line-height:1.5;--green:#145a46;--muted:#526960;--line:#dce6e0;--white:#fff}
body{margin:0}
#bar{background:#142622;color:white;display:flex;align-items:center;gap:24px;min-height:70px;padding:12px max(20px,calc((100vw - 1320px)/2));flex-wrap:wrap}
.brand{display:flex;align-items:center;gap:9px;font-size:22px;font-weight:750;white-space:nowrap}
.mark{display:block;flex:none}
nav,#account,.row,.actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
#account{margin-left:auto}
#bar button{background:transparent;color:#e1efe8;border-color:#516861}
#bar button[aria-current=page]{background:#d9f3ae;color:#203327;border-color:#d9f3ae}
main{max-width:1360px;margin:auto;padding:36px 20px 56px}
h1,h2,p{margin:0 0 12px}
h1{font-size:clamp(27px,4vw,40px);line-height:1.15;letter-spacing:-.045em}
h2{font-size:19px}
.muted,small{color:var(--muted)}
.panel,.metric{background:#fff;border:1px solid var(--line);border-radius:17px;padding:22px}
.panel{margin-bottom:16px}
.login{max-width:420px;margin:8vh auto}
.login form{margin-top:20px}
.panel-header{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:16px}
.panel-header h2{margin:0}
.metrics{display:grid;grid-template-columns:repeat(auto-fit,minmax(145px,1fr));gap:12px;margin:20px 0}
.metric strong{display:block;font-size:29px;letter-spacing:-.04em;margin-top:3px}
.split{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.5fr);gap:16px}
button,input,textarea,select{font:inherit}
button,.button{border:1px solid var(--line);background:#fff;color:#193b30;border-radius:9px;cursor:pointer;padding:8px 12px;font-weight:650;text-decoration:none}
button:hover,.button:hover{border-color:#74a68e}
button:disabled{opacity:.45;cursor:default}
.primary{background:var(--green);color:white;border-color:var(--green)}
.danger{color:#9a2929}
label{display:flex;flex-direction:column;gap:5px;font-size:14px;font-weight:650;min-width:0}
input:not([type=checkbox]),select,textarea{padding:9px 11px;border:1px solid #c3d4ca;border-radius:8px;color:inherit;background:#fff;min-width:0;max-width:100%}
input[type=checkbox]{accent-color:var(--green);width:17px;height:17px}
textarea{resize:vertical;width:100%}
:focus-visible{outline:3px solid #24896b;outline-offset:2px}
form.stack,.stack{display:grid;gap:13px}
form.row{align-items:end}
.scroll{overflow:auto}
table{width:100%;border-collapse:collapse;font-size:14px}
th,td{text-align:left;padding:11px 10px;border-bottom:1px solid #e6ede9;vertical-align:middle}
th{font-weight:650;color:#465e54;background:#f5f8f6}
td{overflow-wrap:anywhere}
td:first-child,td:last-child{min-width:0}
tbody tr:last-child td{border-bottom:0}
.badge{display:inline-block;border-radius:999px;padding:3px 9px;font-size:12px;font-weight:650;white-space:nowrap;background:#eaf0ed}
.success{background:#dbf2dd;color:#195634}
.callback{background:#fff0cc;color:#744b0d}
.refused{background:#fae3e2;color:#8b2927}
.current{background:#ecf6ef}
.phone{display:inline-block;color:var(--green);font-weight:700;font-size:23px;margin-bottom:12px}
.note{white-space:pre-wrap;overflow-wrap:anywhere}
.queue-buttons{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:12px}
.queue-buttons button{padding:6px 10px;font-size:13px}
#notice{position:fixed;bottom:18px;right:18px;max-width:min(420px,90vw);padding:12px 16px;border-radius:10px;background:#173d30;color:white;z-index:2}
#notice.error{background:#842f30}
dialog{border:1px solid var(--line);border-radius:16px;padding:22px;width:min(840px,calc(100% - 28px));max-height:85vh;color:inherit}
dialog::backdrop{background:#14262285}
#file-help{margin-bottom:0}
@media(max-width:760px){.split{grid-template-columns:1fr}#bar{gap:10px;padding:12px}main{padding:24px 12px}.panel{padding:14px}#account{margin-left:0}.brand{width:100%}}

/* Graphite and translucent surfaces */
:root {
  color-scheme: dark;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  color: #f3f5fc;
  background: #0e1320;
  --white: #1c2333;
  --muted: #b1bdd2;
  --line: #a8bde529;
  --green: #205fdb;
  --glass: linear-gradient(145deg, #29354ed9, #171e2dde 78%);
  --inset: #0a112080;
  --tint: #b7c8f014;
  --selection: #3d6db747;
  --highlight: #a6ccff;
}
body {
  min-height: 100vh;
  background:
    radial-gradient(ellipse 60% 74% at 12% 2%, #6372d763, transparent 78%),
    radial-gradient(ellipse 56% 64% at 96% 44%, #166b8c66, transparent 78%),
    radial-gradient(ellipse 50% 54% at 44% 93%, #57469759, transparent 82%),
    #0e1320;
  background-attachment: fixed;
}
#bar {
  background: #11192ac7;
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
  min-height: 68px;
}
#bar button {color: #e1e7f6; border-color: transparent}
#bar button:hover {background: var(--tint)}
#bar button[aria-current=page] {background: var(--selection); color: #e4efff; border-color: #80b5ff4d}
#account span {color: var(--muted)}
main {padding-top: 44px}
.panel,.metric {
  background: var(--glass);
  border-color: var(--line);
  border-radius: 24px;
  box-shadow: 0 12px 36px #02061145, inset 0 1px #eef4ff0d;
}
.panel {padding: 24px}
.metric {border-radius: 18px}
.metric strong {font-variant-numeric: tabular-nums}
h2 {letter-spacing: -.02em}
button,.button {
  background: var(--tint);
  color: #f5f5f7;
  border-color: var(--line);
  border-radius: 12px;
}
button:hover:not(:disabled),.button:hover {background: #b7c8f025; border-color: #a8bde54d}
button.primary {background: var(--green); color: white; border-color: var(--green)}
button.primary:hover:not(:disabled) {background: #286be8}
input:not([type=checkbox]),select,textarea {
  background: var(--inset);
  border-color: var(--line);
  color: #f5f5f7;
  border-radius: 12px;
}
select option {background: var(--white)}
input[type=file]::file-selector-button {
  background: #33415a;
  color: #f5f5f7;
  border: 0;
  border-radius: 6px;
  padding: 6px 10px;
  margin-right: 10px;
  cursor: pointer;
}
:focus-visible {outline-color: #6aabff}
.scroll {border-radius: 14px}
th {background: var(--tint); color: #d4deef}
th,td {border-color: var(--line)}
tbody tr:hover {background: #b7c8f00b}
.badge {background: #a8bde525; color: #e2eaf9}
.badge.success {background: #14382b; color: #8de0b7}
.badge.callback {background: #3f311a; color: #ffd490}
.badge.refused {background: #46272b; color: #ffb5be}
.current {background: var(--selection)}
dialog {background: var(--white); border-color: #a8bde54d; border-radius: 22px; box-shadow: 0 20px 65px #020611a8}
dialog::backdrop {background: #081020a8; backdrop-filter: blur(8px)}
#notice {background: #254366}
#notice.error {background: #71303d}
.operator-layout {grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); align-items: start}
.active-card {padding: clamp(18px, 4vw, 40px)}
.contact-name {
  font-size: clamp(29px, 5vw, 54px);
  font-weight: 720;
  margin: 14px 0 4px;
  letter-spacing: -.055em;
  line-height: 1.08;
  overflow-wrap: anywhere;
}
.phone {
  color: #8bbeff;
  font-size: clamp(22px, 4vw, 35px);
  letter-spacing: -.035em;
  text-decoration: none;
  overflow-wrap: anywhere;
}
.phone:hover {text-decoration: underline}
.alternate-phone {display: flex; align-items: baseline; gap: 4px 10px; flex-wrap: wrap; margin-bottom: 12px}
.alternate-phone a {color: var(--highlight); font-weight: 650; overflow-wrap: anywhere}
.contact-phone-secondary {display: block; margin-top: 3px}
.contact-phone-metadata {display: grid; gap: 2px; margin-top: 5px; max-width: 16rem; line-height: 1.4}
.contact-phone-metadata span {
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden;
}
.contact-phone-metadata strong {color: #e2eaf9; font-weight: 600}
.contact-fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 165px), 1fr));
  gap: 8px;
  padding: 0;
  margin: 10px 0 22px;
}
.contact-fields div {background: var(--tint); border-radius: 12px; padding: 11px 13px; min-width: 0}
.contact-fields dt {color: var(--muted); font-size: 13px; overflow-wrap: anywhere}
.contact-fields dd {margin: 4px 0 0; font-weight: 600; white-space: pre-wrap; overflow-wrap: anywhere}
.outcome-grid {display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px}
.outcome {display: flex; align-items: center; gap: 9px; text-align: left; min-height: 54px}
.outcome span {font-size: 20px; flex-shrink: 0}
.outcome.success {background: #153c2d; color: #a7f3c9; border-color: #285b46}
.outcome.success:hover:not(:disabled) {background: #20523e}
.file-picker {margin: 11px 0 8px; max-width: 580px}
#import-status {margin: 10px 0}
#import-status:empty {display: none}
.mapping-required {display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px}
.column-picker {border: 1px solid var(--line); border-radius: 12px; min-width: 0; margin: 0; padding: 10px 12px 12px}
.column-picker legend {padding: 0 5px; font-weight: 650}
.column-options {display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); gap: 8px}
.column-options label {flex-direction: row; align-items: center; background: var(--tint); padding: 7px; border-radius: 8px}
.column-options input {flex-shrink: 0}
.column-options span {overflow-wrap: anywhere}
details summary {color: #a8cbff; cursor: pointer; margin-bottom: 7px}
.paste-import {border-top: 1px solid var(--line); margin-top: 16px; padding-top: 12px}
@media(max-width: 850px) {
  .operator-layout {grid-template-columns: minmax(0,1fr)}
}
@media(max-width: 530px) {
  main {padding-top: 22px}
  .panel {padding: 16px}
  .mapping-required {grid-template-columns: minmax(0,1fr)}
  .outcome {font-size: 13px; padding: 7px}
}

.call-workspace .metrics {gap: 10px; margin: 12px 0 16px}
.call-workspace .metric {padding: 10px 14px}
.call-workspace .active-card {padding: clamp(16px, 2vw, 26px)}
.active-card .contact-name {font-size: clamp(25px, 3.2vw, 39px); margin-top: 9px}
.active-card .phone {font-size: clamp(19px, 2.4vw, 28px)}
.active-card .contact-fields {margin: 10px 0 14px}
.active-card .contact-fields div {padding: 8px 10px}
.active-card .outcome {min-height: 40px}
.queue-panel .panel-header {margin-bottom: 12px}
.queue-list {list-style: none; margin: 0; padding: 0; display: grid; gap: 2px}
.queue-list li {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 5px 9px; border: 1px solid transparent; border-bottom-color: var(--line);
  border-radius: 10px;
}
.queue-list li.current {border-color: #80b5ff4d}
.queue-list li:not(.current):hover {background: var(--tint)}
.queue-contact {min-width: 0; display: grid; grid-template-columns: minmax(0,1fr); gap: 1px}
.queue-contact button, .queue-contact strong {
  width: fit-content; min-height: 0; padding: 0; text-align: left;
  border: 0; background: transparent; font-weight: 650; overflow-wrap: anywhere;
}
.queue-contact button:hover:not(:disabled) {background: transparent; color: var(--highlight); text-decoration: underline}
.queue-contact small, .queue-status small {color: var(--muted)}
.queue-note,.queue-contact-meta {overflow: hidden; text-overflow: ellipsis; white-space: nowrap}
.queue-status {display: grid; justify-items: end; gap: 2px; text-align: right}
.queue-status [data-edit-result] {padding: 3px 7px; font-size: 12px}
.queue-pagination {display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-top: 10px}
.outcome.callback {background: #392f20; color: #ffdaa2; border-color: #554327}
.outcome.callback:hover:not(:disabled) {background: #4b3b22}
.outcome.refused {background: #3c262d; color: #ffc1ca; border-color: #583540}
.outcome.refused:hover:not(:disabled) {background: #4d2e39}
.outcome.callback span,.outcome.refused span {color: inherit}

.personal-panels {display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.25fr);gap:16px;align-items:start}
.operator-view #nav {
  position: absolute; top: 92px; left: max(16px, calc((100vw - 1480px)/2)); width: 155px;
  flex-direction: column; align-items: stretch; gap: 4px; padding: 6px;
  background: var(--glass); border: 1px solid var(--line); border-radius: 18px;
}
.operator-view #nav button {text-align:left;padding:9px 12px}
.operator-view main {max-width:1480px;padding-left:190px;padding-top:24px}
@media(max-width:1000px){
  .personal-panels{grid-template-columns:minmax(0,1fr)}
}
@media(max-width:650px){
  .operator-view #nav {position:static;width:auto;flex-direction:row}
  .operator-view main {padding-left:12px}
  body {background-attachment: scroll}
  main {padding-top: 24px}
  .panel {padding: 16px}
}

.call-control {margin: 10px 0 16px}
#call-clock {font-variant-numeric: tabular-nums; color: #a9ceff}
.monitor-pagination {margin-top: 14px}
.telephony-panel {max-width: 580px}
.telephony-toggle {flex-direction: row; align-items: center}
.delete-contact {color: #ffc1ca; border-color: #583540}
.delete-contact:hover:not(:disabled) {background: #3c262d}
.delete-error,.call-result-error,.form-error {color: #ffc1ca; margin: 0}
.queue-priority-form .scroll {max-height: 48vh}
.queue-priority-form table {table-layout: fixed}
.queue-priority-form th {position: sticky; top: 0; background: var(--white)}
.queue-priority-form th:nth-child(2) {width: 78px}
.queue-priority-form th:last-child {width: 124px}
.queue-priority-form > p {margin: 0}
.queue-priority-name {
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden;
}
.contact-bases {
  gap: 6px; margin: 0 0 16px; padding: 6px;
  background: var(--glass); border: 1px solid var(--line); border-radius: 18px;
}
.contact-bases button {
  max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  background: transparent; border-color: transparent; font-size: 14px;
}
.contact-bases button[aria-current] {
  color: #e4efff; background: var(--selection); border-color: #80b5ff4d;
}
.base-metrics {margin: 0 0 16px}
.base-metrics .metric {padding: 12px 14px; background: var(--tint); box-shadow: none}
.base-metrics .metric strong {font-size: 21px; letter-spacing: -.02em}
.employee-base-filters {
  display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between;
  gap: 12px; margin-bottom: 16px;
}
.contact-filter-modes {display: flex; gap: 6px; flex-wrap: wrap}
.contact-filter-modes button[aria-pressed="true"], .call-day-controls button[aria-pressed="true"] {
  background: var(--selection); border-color: #80b5ff4d; color: #e4efff;
}
.employee-base-actions {display: flex; justify-content: flex-end; margin-bottom: 12px}
.employee-base td:last-child .actions {min-width: 175px}
.contact-search {margin-bottom: 12px}
.contacts-total {display: flex; align-items: baseline; gap: 8px; margin-top: 4px; color: var(--muted)}
.contacts-total strong {color: #f4f7ff; font-size: 22px; font-variant-numeric: tabular-nums}
.employee-base-filters .contact-search {margin-bottom: 0}
.completed-lookup {align-items: end; margin-bottom: 14px}
.completed-search-label {width: min(100%, 310px)}
.call-day-controls {align-items: end}
#contact-call-day-filter {margin-bottom: 12px}
.completed-lookup small {margin-bottom: 10px}
.contact-added {white-space: nowrap}
.archive-panel {max-width: 620px}
.transfer-report {max-width: 1100px; margin: 0 auto}
.transfer-header {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap;
  gap: 12px; margin-bottom: 16px;
}
.transfer-header h1 {margin: 0; font-size: clamp(30px, 4vw, 44px)}
.transfer-week-nav {display: flex; align-items: center; gap: 8px; flex-wrap: wrap}
.transfer-week-nav strong {font-size: 16px}
.transfer-week-nav [data-transfer-shift] {font-size: 19px; line-height: 1.2}
.transfer-modes {
  width: fit-content; max-width: 100%; padding: 5px; border: 1px solid var(--line);
  border-radius: 16px; background: var(--tint);
}
.transfer-days {margin-top: 12px}
.transfer-overview {
  display: flex; align-items: center; gap: 16px 28px; flex-wrap: wrap;
  margin: 16px 0; background: linear-gradient(125deg, #1d3658, var(--white) 76%);
}
.transfer-overview h2,.transfer-operator h2 {margin: 0; line-height: 1.25}
.transfer-overview p {margin: 6px 0 0}
.transfer-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 14px;
}
.transfer-operator,.transfer-leader {margin: 0; min-width: 0; padding: 18px 20px}
.transfer-operator h2,.transfer-leader h3 {font-size: 19px; overflow-wrap: anywhere}
.transfer-leaders {margin-bottom: 16px}
.transfer-leader[data-rank="1"] {border-color: #80b5ff68}
.transfer-leader h3 {margin: 8px 0 0; line-height: 1.25}
.transfer-rank {
  display: inline-block; padding: 3px 9px; border-radius: 999px;
  background: var(--selection); color: var(--highlight); font-size: 13px; font-weight: 650;
}
.transfer-leader-details {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin: 12px 0 0;
}
.transfer-leader-details div {background: var(--tint); border-radius: 9px; padding: 7px 6px}
.transfer-leader-details dt {color: var(--muted); font-size: 12px}
.transfer-leader-details dd {margin: 2px 0 0; font-weight: 650; font-variant-numeric: tabular-nums}
.transfer-leader-details dd small {display: block; font-weight: 400; overflow-wrap: anywhere}
.transfer-stat {display: flex; align-items: baseline; gap: 4px 10px; flex-wrap: wrap; margin-top: 6px}
.transfer-stat span {color: var(--muted)}
.transfer-value,.transfer-day-value {font-variant-numeric: tabular-nums; letter-spacing: -.035em}
.transfer-value {font-size: 28px; line-height: 1.15; overflow-wrap: anywhere}
.transfer-overview .transfer-value {font-size: clamp(32px, 4vw, 42px)}
.transfer-breakdown {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 5px; margin: 12px 0 0;
}
.transfer-breakdown div {background: var(--tint); border-radius: 9px; padding: 5px 3px; text-align: center}
.transfer-breakdown dt {font-size: 13px; color: var(--muted)}
.transfer-day-value {margin: 0; font-size: 20px; font-weight: 650; overflow-wrap: anywhere}
.transfer-overview .transfer-breakdown {width: min(100%, 290px); margin: 0}
#archive-status {margin: 12px 0 0}
#archive-status:empty {display: none}
.file-editor {max-width: 920px}
.file-editor-table-controls {margin: 0; padding: 0; min-width: 0; border: 0}
.file-editor-table-controls[hidden], #pdf-editor-panel [hidden] {display: none}
.file-editor-ai small {display: block; margin-top: 10px}
.file-editor-manual {border: 1px solid var(--line); border-radius: 12px; margin: 0; min-width: 0; padding: 10px 13px 13px}
.file-editor-manual legend {padding: 0 4px; font-weight: 650}
.file-editor-manual ol {margin: 0; padding-inline-start: 25px}
.file-editor-step {display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)) auto; align-items: end; gap: 9px; margin: 0 0 10px}
.file-editor-step select {width: 100%; text-overflow: ellipsis}
.file-editor-counts {margin-top: 0}
.file-editor-counts .metric {min-width: 0}
.file-editor h3 {margin: 16px 0 8px; font-size: 15px}
.file-editor-cell {white-space: pre-wrap; overflow-wrap: anywhere}
.file-editor-status {margin: 0; color: var(--muted)}
.file-editor-status:not(:empty) {margin-top: 9px}
.file-editor-status:empty {display: none}
.file-editor-status.file-editor-error {color: #ffb5be}
.file-editor.pdf-editor-active {max-width: 1220px}
.pdf-editor-workspace {display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); align-items: start; gap: 20px}
.pdf-editor-page-nav {justify-content: space-between}
.pdf-editor-search {align-items: end}
.pdf-editor-search label {flex: 1 1 170px}
.pdf-editor-fragment-nav {justify-content: space-between}
.pdf-editor-viewer {overflow: auto; max-height: 80vh; background: var(--inset); border: 1px solid var(--line); border-radius: 10px}
.pdf-editor-page {position: relative}
.pdf-editor-page img {display: block; width: 100%; height: auto; background: white}
.pdf-editor-overlays {position: absolute; inset: 0; pointer-events: none}
.pdf-editor-overlay {position: absolute; padding: 0; border: 0; border-radius: 2px; background: transparent; pointer-events: auto}
.pdf-editor-overlay:hover:not(:disabled), .pdf-editor-overlay-selected {background: #3c84f838; box-shadow: 0 0 0 1px #195bc4}
.pdf-editor-selected {padding: 9px 11px; background: var(--inset); border: 1px solid var(--line); border-radius: 10px}
.pdf-editor-selected p {margin: 4px 0 0; white-space: pre-wrap; overflow-wrap: anywhere}
.pdf-editor-changes-list {list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 8px; max-height: min(48vh, 420px); overflow: auto}
.pdf-editor-changes-list li {padding: 10px; background: var(--inset); border: 1px solid var(--line); border-radius: 10px}
.pdf-editor-changes-list dl {display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 8px 0 0}
.pdf-editor-changes-list dt {font-size: 13px; font-weight: 650; color: var(--muted)}
.pdf-editor-changes-list dd {margin: 4px 0 0; white-space: pre-wrap; overflow-wrap: anywhere}
#pdf-editor-form select {width: 100%; text-overflow: ellipsis}
@media (max-width: 760px) {
  .pdf-editor-workspace {grid-template-columns: minmax(0, 1fr); gap: 15px}
  .pdf-editor-viewer {max-height: 58vh}
}
@media (max-width: 650px) {
  .contact-bases {flex-wrap: nowrap; overflow-x: auto; scrollbar-width: thin}
  .contact-bases button {flex: none; max-width: min(75vw, 280px)}
  .file-editor-step {grid-template-columns: minmax(0, 1fr); justify-items: start}
  .file-editor-step label {width: 100%}
}
@media (max-width: 420px) {
  .pdf-editor-changes-list dl {grid-template-columns: minmax(0, 1fr)}
}
