@font-face {
  font-family: Newsreader;
  src: url("assets/newsreader-italic-latin.woff2") format("woff2");
  font-style: italic;
  font-weight: 450;
  font-display: swap;
}

.voice-console {
  --ink: #1a2c23;
  --paper: #faf8f1;
  --canvas: var(--paper);
  --forest: #20382e;
  --muted: #526054;
  --edge: #d0d1c3;
  --edge-dark: #b9bfb0;
  --green: #244936;
  --green-dark: #193b2a;
  --green-wash: #e4eadc;
  --accent: #8b4b32;
  --index-width: clamp(285px, 26.9vw, 388px);
  --mast-height: 76px;
  --radius: 5px;
  background: var(--paper);
}
.voice-console [hidden] { display: none !important; }
.voice-console ::selection { background: #d5e1ce; color: var(--ink); }
.voice-workspace { min-width: 0; outline: none; }
.voice-console .button { border-radius: 4px; min-height: 40px; }
.voice-mast {
  display: grid; grid-template-columns: var(--index-width) minmax(0,1fr) auto;
  align-items: stretch; min-height: var(--mast-height); border-bottom: 1px solid var(--edge);
}
.mast-brand { --signature-width: clamp(160px,16.2vw,208px); display: flex; align-items: center; padding: 10px clamp(22px,2.7vw,40px); width: fit-content; }
.mast-brand img { display: block; width: var(--signature-width); height: auto; }
/* The lettering occupies the rightmost 516 px of the original 704 × 136 signature. */
.voice-console:has(#access-workspace:not([hidden])) .mast-brand img {
  width: calc(var(--signature-width) * 516 / 704);
  height: calc(var(--signature-width) * 136 / 704);
  object-fit: cover;
  object-position: right center;
}
.mast-nav { display: flex; align-items: stretch; gap: clamp(14px,2vw,32px); overflow-x: auto; scrollbar-width: thin; }
.mast-nav a { display: flex; align-items: center; min-height: 42px; border-bottom: 3px solid transparent; padding-top: 3px; color: var(--muted); font-weight: 520; font-size: 15px; white-space: nowrap; text-decoration: none; }
.mast-nav a:is(:hover,[aria-current=page]) { color: var(--ink); }
.mast-nav a[aria-current=page] { border-color: var(--forest); font-weight: 720; }
.workspace-menu { position: relative; align-self: center; margin-inline: 20px clamp(20px,2.7vw,40px); }
.workspace-menu summary { min-height: 44px; display: flex; align-items: center; gap: 9px; list-style: none; cursor: pointer; font-size: 15px; font-weight: 690; }
.workspace-menu summary::-webkit-details-marker { display: none; }
.workspace-popover { position: absolute; z-index: 5; top: 100%; right: 0; width: 220px; padding: 8px; border: 1px solid var(--edge-dark); border-radius: 5px; background: var(--paper); box-shadow: 0 10px 25px #1b32241a; }
.workspace-popover .connection { display: flex; padding: 9px; border-bottom: 1px solid var(--edge); margin-bottom: 4px; }
.workspace-popover button { display: flex; align-items: center; gap: 9px; width: 100%; background: transparent; padding: 10px; border: 0; border-radius: 3px; text-align: left; }
.workspace-popover button:hover { background: var(--green-wash); }
.conversation-layout { display: grid; grid-template-columns: var(--index-width) minmax(0,1fr); min-height: calc(100dvh - var(--mast-height)); }
.conversation-index { background: var(--forest); color: #f2f4e8; min-width: 0; display: flex; flex-direction: column; padding: 25px 0 15px; }
.index-top, .index-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-inline: clamp(19px,2.3vw,35px); }
.index-top h1 { margin: 0; font-size: 27px; font-weight: 610; line-height: 1.2; letter-spacing: -.03em; }
.conversation-index button { color: inherit; border: 0; background: transparent; }
.conversation-index button:focus-visible { outline: 2px solid #d7e8c8; outline-offset: -2px; }
.index-search { width: 40px; height: 40px; font-size: 22px; border-radius: 3px; }
.index-search:hover, .index-search[aria-expanded=true] { background: #374f41; }
#index-tools { margin: 12px clamp(14px,1.6vw,24px); }
.index-input { display: flex; align-items: center; gap: 9px; background: #f4f5e9; color: var(--ink); padding-inline: 11px; border-radius: 3px; }
.index-input input { flex: 1; min-width: 0; height: 40px; background: transparent; border: 0; }
.index-filters { display: flex; flex-wrap: wrap; gap: 3px; margin-top: 8px; }
.index-filters button { min-height: 34px; padding: 4px 8px; border-radius: 3px; font-size: 12px; }
.index-filters button[aria-pressed=true] { background: #e4eadb; color: #1a3628; }
.index-filters span { opacity: .85; }
#conversation-list { padding: 0 12px 20px; flex: 1; }
.conversation-day { margin: 15px 0 8px; padding-inline: clamp(9px,1.4vw,23px); color: #c1cec0; font-weight: 460; font-size: 14px; }
.conversation-day:not(:first-child) { margin-top: 25px; }
.conversation-index .index-row { display: block; width: 100%; min-height: 72px; padding: 13px clamp(9px,1.4vw,23px); text-align: left; position: relative; border-radius: 2px; }
.index-row::after { content: ''; position: absolute; bottom: 0; left: 15px; right: 15px; height: 1px; background: #44594b; }
.index-row:is(:hover,[aria-pressed=true]) { background: #374e40; }
.index-row[aria-pressed=true]::after { background: transparent; }
.index-line { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.index-line strong { font-size: 17px; font-weight: 610; line-height: 1.35; letter-spacing: -.012em; overflow-wrap: anywhere; }
.index-line time { flex: none; color: #c8d4c6; font-size: 12px; font-variant-numeric: tabular-nums; }
.index-row small { display: block; margin-top: 3px; color: #d3ddd0; font-size: 14px; }
.index-footer { border-top: 1px solid #526958; margin-top: auto; }
.index-footer button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 44px; padding: 5px 0; font-size: 13px; color: #dce6d8; }
.index-footer button:hover, .reader-link:hover { text-decoration: underline; }
.index-note { color: #d3ddcf; padding: 12px 16px; }
.conversation-reader { min-width: 0; display: flex; flex-direction: column; padding: clamp(26px,3vw,46px) clamp(28px,4vw,75px); }
.reader-heading, .reader-next, .reader-audio { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px 20px; }
.reader-heading h2 { margin: 0; min-width: 0; overflow-wrap: anywhere; font-size: clamp(34px,3.9vw,62px); line-height: 1.08; letter-spacing: -.04em; font-weight: 600; }
.reader-heading h2:focus { outline: none; }
.reader-link, .player-launch { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 7px 0; min-height: 40px; border: 0; background: transparent; color: var(--green); font-size: 14px; font-weight: 690; }
.reader-meta, .reader-credit { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin: 7px 0 21px; color: var(--muted); font-size: 14px; }
.reader-meta .ph { font-size: 17px; }
.reader-next { border-block: 1px solid var(--edge); padding: 17px 0; }
.next-info { display: grid; grid-template-columns: 23px 1fr; gap: 2px 10px; min-width: 0; }
.next-info .ph { color: var(--accent); font-size: 20px; margin-top: 2px; }
.next-info small { color: #754b34; font-size: 13px; font-weight: 600; }
.next-info strong { grid-column: 2; font-size: clamp(18px,1.9vw,27px); font-weight: 590; line-height: 1.25; letter-spacing: -.023em; overflow-wrap: anywhere; }
.reader-next .button { padding: 12px 17px; gap: 12px; }
.reader-story { margin: auto 0; padding: clamp(32px,7vh,85px) 0; }
.reader-quote, .agent-quote { margin: 0; font: italic 450 clamp(34px,4vw,62px)/1.07 Newsreader, Georgia, serif; letter-spacing: -.024em; max-width: 25ch; overflow-wrap: anywhere; }
.reader-credit { margin: 16px 0 0; }
.reader-context { margin: 0; font-size: clamp(21px,2.4vw,32px); font-weight: 530; letter-spacing: -.023em; max-width: 32ch; }
.reader-note { color: var(--muted); margin: 6px 0 0; max-width: 55ch; }
.reader-audio { border-block: 1px solid var(--edge); padding: 14px 0; flex-wrap: nowrap; }
.player-launch { gap: 9px; flex: none; color: var(--ink); }
.player-launch .ph { display: grid; place-items: center; font-size: 18px; background: #e1e8d8; width: 34px; height: 34px; border-radius: 50%; }
.audio-rail { flex: 1; min-width: 20px; height: 3px; accent-color: #466a50; }
.audio-time { color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.reader-recording { width: 100%; }
.reader-recording audio { width: 100%; height: 40px; }
.reader-recording .audio-status { margin: 0; }
.recording-wave { display: block; width: 100%; height: 36px; margin-bottom: 8px; }
.reader-foot { display: flex; justify-content: flex-end; gap: 14px; flex-wrap: wrap; }
.reader-back { display: none; }
.transcript { list-style: none; padding: 0; margin: 12px 0 0; }
.transcript li { padding: 10px 0; border-top: 1px solid var(--edge); }
.transcript small { color: var(--muted); margin-left: 8px; font-variant-numeric: tabular-nums; }
.transcript p { margin: 4px 0 0; overflow-wrap: anywhere; white-space: pre-line; }
.reader-empty { margin: auto 0; max-width: 520px; }
.reader-empty h2 { margin: 0; font-size: clamp(27px,3.2vw,45px); letter-spacing: -.035em; }
.reader-empty p { color: var(--muted); }
.reader-empty .button { margin: 5px 7px 5px 0; }
#banner { border-radius: 0; margin: 0; }
#operator-workspace { padding: clamp(24px,3vw,54px) clamp(22px,5.1vw,90px); max-width: 1660px; margin: auto; }
#operator-workspace .page-heading h1 { font-weight: 595; }
.voice-console :is(.settings-board,.schedule-board,.outreach-board,.pipeline-card) { border-radius: 5px; background: var(--paper); }
.voice-console .settings-board { max-width: none; }
.voice-console .settings-section { border-bottom: 1px solid var(--edge); }
.agent-opening { display: grid; grid-template-columns: minmax(220px,.65fr) minmax(0,1.35fr); gap: 32px; padding: clamp(24px,3vw,46px); background: var(--forest); color: #f4f3e8; }
.agent-opening h2 { font-size: 23px; font-weight: 600; letter-spacing: -.025em; margin: 0 0 9px; }
.agent-opening .reader-link { color: #dbe9d6; justify-content: flex-start; text-align: left; }
.agent-quote { font-size: clamp(29px,3vw,44px); max-width: 39ch; }
.greeting-edit > summary { min-height: 42px; cursor: pointer; font-weight: 680; font-size: 19px; }
.profile-options { min-width: 0; margin: 0; padding: 0; border: 0; }
.profile-options legend { padding: 0; margin-bottom: 12px; font-size: 19px; font-weight: 700; letter-spacing: -.02em; }
.profile-choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.profile-choice { display: flex; align-items: flex-start; gap: 10px; min-width: 0; border: 1px solid var(--edge); border-radius: 5px; padding: 13px; cursor: pointer; }
.profile-choice:has(input:checked) { border-color: var(--green); background: var(--green-wash); }
.profile-choice input { width: 17px; height: 17px; flex: none; margin: 3px 0 0; accent-color: var(--green); }
.profile-copy { display: flex; flex: 1; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; min-width: 0; }
.profile-copy strong { font-size: 15px; }
.profile-copy small { flex-basis: 100%; }
.profile-copy small, .profile-model { color: var(--muted); font-size: 13px; }
.profile-active { flex: none; align-self: start; color: var(--green-dark); font-size: 12px; font-weight: 680; }
.profile-actions { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.settings-section .profile-actions p, .settings-section .profile-feedback { margin: 0; }
.settings-section .profile-feedback:not(:empty) { margin-top: 10px; }
@media (max-width: 580px) { .profile-choices { grid-template-columns: minmax(0, 1fr); } }
.overview-card .recent-link { min-width: 0; display: block; font-size: inherit; color: var(--ink); }
.voice-console .voice-activity { border-radius: 3px; background: var(--forest); margin-top: 28px; }
.access-workspace { display: grid; grid-template-columns: var(--index-width) minmax(0,1fr); min-height: calc(100dvh - var(--mast-height)); }
.access-side { display: flex; flex-direction: column; justify-content: space-between; gap: 30px; padding: clamp(20px,3vw,46px); background: var(--forest); color: #f2f4e8; }
.access-mark { width: 90px; height: 85px; background: #dee8d7; mask: url('assets/domina-voice-editorial.png') left center / auto 100% no-repeat; }
.access-side h2 { margin: 0; font-size: 23px; font-weight: 590; letter-spacing: -.02em; }
.access-side p { margin: 3px 0 0; color: #d2ddce; }
.access-body { align-self: center; padding: clamp(25px,5vw,86px); max-width: 850px; }
.access-body h1 { margin: 0; font-size: clamp(38px,4.5vw,66px); line-height: 1.05; letter-spacing: -.04em; font-weight: 590; }
.access-body > p { color: var(--muted); font-size: 16px; margin: 14px 0 25px; }
.access-body .entry-form { max-width: 620px; }
.access-body .sign-in-form { grid-template-columns: minmax(0, 1fr); max-width: 390px; gap: 14px; }
.sign-in-form .button { justify-self: start; }
.sign-in-form .dialog-feedback:empty { display: none; }
@media (min-width: 801px) {
  .conversation-index { position: sticky; top: 0; height: calc(100dvh - var(--mast-height)); min-height: 400px; }
  #conversation-list { overflow-y: auto; scrollbar-width: thin; scrollbar-color: #728576 var(--forest); }
}
@media (max-width: 1050px) {
  .voice-console { --index-width: clamp(250px,26vw,285px); }
  .mast-nav { gap: 16px; }
  .mast-nav a { font-size: 14px; }
}
@media (max-width: 800px) {
  .voice-console { --mast-height: 104px; }
  .voice-mast { grid-template-columns: minmax(0,1fr) auto; min-height: 0; }
  .mast-brand { --signature-width: 159px; padding: 13px 17px; }
  .workspace-menu { grid-row: 1; grid-column: 2; margin-inline: 4px 17px; }
  .workspace-menu summary { font-size: 14px; }
  .mast-nav { grid-row: 2; grid-column: 1/-1; padding-inline: 17px; gap: 22px; }
  .mast-nav:not(:has(a:not([hidden]))) { display: none; }
  .conversation-layout { display: block; }
  .conversation-index { min-height: calc(100dvh - var(--mast-height)); padding-top: 17px; }
  .conversation-reader { display: none; padding: 16px 21px 25px; }
  #calls-workspace[data-detail=true] .conversation-index { display: none; }
  #calls-workspace[data-detail=true] .conversation-reader,
  #calls-workspace[data-empty=true] .conversation-reader { display: flex; }
  #calls-workspace[data-empty=true] .conversation-index { min-height: 0; }
  #calls-workspace[data-empty=true] #conversation-list { flex: none; padding-bottom: 0; }
  #calls-workspace[data-empty=true] .index-footer { margin-top: 10px; }
  .reader-back { display: inline-flex; align-self: flex-start; margin-bottom: 10px; }
  .reader-heading h2 { font-size: 35px; }
  .reader-heading { gap: 2px 12px; }
  .reader-meta { font-size: 13px; }
  .reader-story { padding-block: 34px; }
  .reader-audio { gap: 10px; }
  .agent-opening { grid-template-columns: 1fr; gap: 14px; }
  .access-workspace { grid-template-columns: 1fr; min-height: 0; }
  .access-side { flex-direction: row; justify-content: flex-start; align-items: center; padding-block: 16px; gap: 15px; }
  .access-mark { height: 36px; width: 38px; }
  .access-body { padding-block: 46px; }
}
@media (max-width: 450px) {
  .reader-next { align-items: flex-start; }
  .reader-next .button { min-height: 38px; padding: 8px 11px; }
  .reader-quote { font-size: 34px; }
  .voice-console .greeting-grid, .voice-console .operator-row { grid-template-columns: 1fr; }
  .voice-console .import-form > * { min-width: 0; }
}
