:root {
  color: #1b2a32;
  background: #f6f3ee;
  font: 16px/1.45 "Segoe UI", system-ui, sans-serif;
  --paper: #fffdf9;
  --ink: #1b2a32;
  --muted: #5c6b73;
  --line: #e3d9cc;
  --teal: #0f6e78;
  --teal-dark: #0b5560;
  --blue: #1d4e89;
  --blue-soft: #e7f1f6;
  --danger: #8c3a32;
  --danger-bg: #f8ebe7;
  --focus: #1d4e89;
}
* { box-sizing: border-box; }
body { margin: 0; }
[hidden] { display: none !important; }
button, input, select, textarea { font: inherit; color: inherit; }
button { border: 0; background: var(--teal); color: #fff; border-radius: 8px; padding: 10px 14px; font-weight: 650; cursor: pointer; }
button.secondary { background: var(--blue-soft); color: var(--teal-dark); }
button.danger { background: var(--danger-bg); color: var(--danger); }
button.link { background: transparent; color: var(--blue); padding: 6px; }
button:disabled { opacity: .45; cursor: default; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 3px solid var(--focus); outline-offset: 2px;
}
input, select, textarea { width: 100%; padding: 10px 12px; border: 1px solid #cfc3b2; border-radius: 8px; background: #fff; }
input[type="checkbox"] { width: auto; padding: 0; border: 0; background: transparent; }
label { display: block; font-size: 14px; font-weight: 650; margin: 12px 0 6px; }
.skip { position: absolute; left: 12px; top: -40px; background: #fff; padding: 8px; }
.skip:focus { top: 8px; z-index: 3; }
.brand { font-weight: 750; letter-spacing: -.03em; margin: 0 0 16px; }
.brand span { color: var(--teal); font-weight: 650; }
.auth { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.auth-panel { width: min(440px, 100%); background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 28px; }
.auth-panel h1 { margin: 0 0 8px; font-size: 32px; letter-spacing: -.04em; }
.lede, .note, #accessNote, #userLabel, #overviewMode, #agentMeta, #convPage, #numberCarrierNote, #numberDidNote { color: var(--muted); }
#authError, #alert, #callError { color: var(--danger); min-height: 1.2em; }
.shell { min-height: 100vh; display: grid; grid-template-columns: 232px 1fr; }
.nav { background: #10262e; color: #f4f7f6; padding: 22px 16px; }
.nav .brand span { color: #8fd0d4; }
.nav nav { display: grid; gap: 4px; }
.nav button { text-align: left; background: transparent; color: #d5e4e6; border-radius: 8px; }
.nav button[aria-current="page"] { background: #1a4c56; color: #fff; }
.workspace { min-width: 0; }
.top { display: flex; gap: 16px; align-items: end; padding: 16px 24px; background: var(--paper); border-bottom: 1px solid var(--line); }
.top .org { min-width: 220px; flex: 1; }
.top p { margin: 0 0 8px; }
main { padding: 24px; }
h2 { margin: 0; font-size: 28px; letter-spacing: -.03em; }
h3 { margin: 22px 0 8px; font-size: 16px; }
.section-head, .row, .filters { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.filters { align-items: end; justify-content: flex-start; margin: 12px 0; }
.filters > div { min-width: 160px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.table-wrap { overflow: auto; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); }
table { width: 100%; border-collapse: collapse; min-width: 640px; }
caption { text-align: left; caption-side: bottom; padding: 8px 12px; color: var(--muted); font-size: 13px; }
th, td { padding: 10px 12px; border-bottom: 1px solid #efe7dc; text-align: left; vertical-align: top; }
th { background: #f3f7f8; font-size: 13px; letter-spacing: .02em; color: #234852; position: sticky; top: 0; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
.editor, .fields { display: grid; gap: 4px 16px; }
.fields { grid-template-columns: repeat(3, minmax(0, 1fr)); }
fieldset { border: 1px solid var(--line); border-radius: 10px; margin: 12px 0; }
.check { display: flex; align-items: center; gap: 8px; width: auto; font-weight: 500; }
.banner { background: #e7f1f6; color: #16384d; border: 1px solid #c5dbe6; border-radius: 10px; padding: 10px 12px; }
.meter { height: 6px; background: #e7eef0; border-radius: 99px; margin: 12px 0; overflow: hidden; }
.meter div { width: 0; height: 100%; background: var(--teal); }
.bubble { border-left: 3px solid #9ec9ce; margin: 10px 0; padding: 8px 12px; background: var(--paper); }
.bubble.you { border-color: #e1c7a4; }
.bubble strong { font-size: 12px; letter-spacing: .04em; text-transform: uppercase; color: #5d7380; }
.bubble p { margin: 4px 0; }
#callPartial { font-style: italic; color: var(--muted); }
#callDiagnostics { display: block; white-space: pre-wrap; font-family: ui-monospace, monospace; font-size: 12px; }
#callPortal { color: var(--blue); font-weight: 700; }
#loading:empty { display: none; }
.hours { display: grid; gap: 10px; }
.day { display: grid; grid-template-columns: 9rem 1fr 9rem 1fr; gap: 8px 12px; align-items: end; }
.day-kept { grid-column: 1 / -1; margin: 0; color: var(--muted); font-size: 13px; }
#previewResult, #accountContext, #accountSelected { display: block; white-space: pre-wrap; margin: 8px 0; }
#previewNote { font-weight: 650; }
@media (min-width: 1100px) {
  main { padding: 28px 36px 48px; }
  .top .org { max-width: 420px; }
}
@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; }
  .nav { padding: 12px 16px; }
  .nav nav { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .split, .fields { grid-template-columns: 1fr; }
  .day { grid-template-columns: 1fr 1fr; }
  .top { flex-wrap: wrap; align-items: stretch; }
}
@media (max-width: 390px) {
  .shell { grid-template-columns: 1fr; }
  .nav { padding: 12px; }
  .nav nav { grid-template-columns: 1fr 1fr; }
  .top, main, .auth-panel { padding: 14px; }
  .top { align-items: stretch; flex-direction: column; }
  .split, .fields, .filters, .day { grid-template-columns: 1fr; display: grid; }
  .filters > div { min-width: 0; }
  h2 { font-size: 24px; }
  table { min-width: 520px; }
  .auth-panel h1 { font-size: 28px; }
}
