:root {
  color-scheme: light;
  --ink: #18212b;
  --muted: #5f6b78;
  --paper: #ffffff;
  --surface: #f6f7f9;
  --surface-strong: #eef1f4;
  --line: #d9dee5;
  --line-strong: #b8c1cc;
  --blue: #1769c2;
  --blue-dark: #12559e;
  --blue-pale: #eaf2fb;
  --green: #28784b;
  --green-dark: #1f623d;
  --green-pale: #eaf5ee;
  --amber: #865b16;
  --red: #a43636;
  --red-pale: #fff0f0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 13px;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
body {
  margin: 0;
  min-width: 0;
  min-height: 100vh;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
}
button, input, textarea { font: inherit; }
button {
  min-height: 34px;
  border: 1px solid transparent;
  border-radius: 4px;
  padding: 6px 11px;
  cursor: pointer;
  font-weight: 600;
}
button:disabled { cursor: wait; opacity: .62; }
.app-layout[data-mode="preview"] button:disabled {
  border-color: var(--line);
  background: var(--surface);
  color: #778392;
  cursor: not-allowed;
  opacity: 1;
}
button:focus-visible, input:focus-visible, textarea:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}
.app-main:focus { outline: none; }

.skip-link {
  position: fixed;
  left: 8px;
  top: -80px;
  z-index: 100;
  border-radius: 4px;
  background: var(--ink);
  color: white;
  padding: 8px 12px;
}
.skip-link:focus { top: 8px; }

.top-bar {
  height: 46px;
  flex: 0 0 46px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 10px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.brand {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 0;
  background: transparent;
  color: inherit;
  padding: 3px 4px 3px 0;
  white-space: nowrap;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  border-radius: 4px;
  background: var(--blue);
  color: white;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: -.03em;
}
.brand strong { font-size: 13px; line-height: 1; }
.environment {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--surface);
  color: var(--muted);
  padding: 3px 7px;
  font-size: 11px;
  line-height: 18px;
  white-space: nowrap;
}
.top-bar__future { flex: 1 1 auto; min-width: 8px; }
.session-controls { display: flex; align-items: center; gap: 7px; min-width: 0; }
.session-label { color: var(--muted); font-size: 11px; white-space: nowrap; }
.session-controls .secondary { min-height: 30px; padding: 4px 9px; }

.app-layout { flex: 1 1 auto; min-width: 0; min-height: 0; }
.app-layout.is-authenticated { display: grid; grid-template-columns: 176px minmax(0, 1fr); }
.app-nav {
  min-width: 0;
  border-right: 1px solid var(--line);
  background: var(--surface);
  padding: 8px;
}
.nav-menu-toggle { display: none; }
.nav-items { display: grid; gap: 2px; }
.nav-item {
  width: 100%;
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  border-color: transparent;
  background: transparent;
  color: #354252;
  text-align: left;
}
.nav-item:hover { background: var(--surface-strong); }
.nav-item.is-selected { border-color: #cbdcf0; background: var(--blue-pale); color: #0f4f91; }

.app-main { min-width: 0; }
.app-main--gate {
  width: 100%;
  min-height: calc(100vh - 46px);
  display: grid;
  place-items: start center;
  padding: clamp(42px, 11vh, 100px) 16px 40px;
  background: var(--surface);
}
.app-main--workspace {
  width: 100%;
  max-width: 1380px;
  padding: 20px 24px 48px;
  background: #fff;
}

.auth-panel {
  width: min(360px, 100%);
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  padding: 20px;
  box-shadow: 0 2px 7px rgb(26 43 61 / 6%);
}
.auth-panel h1, .utility-view h1 {
  margin: 0;
  font-size: 18px;
  line-height: 24px;
  font-weight: 650;
  letter-spacing: -.01em;
}
.auth-copy { margin: 5px 0 16px; color: var(--muted); line-height: 19px; }
.auth-panel form { display: grid; gap: 12px; }
.auth-panel label { display: grid; gap: 5px; font-size: 12px; font-weight: 650; }
.auth-panel input {
  width: 100%;
  height: 36px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  padding: 7px 9px;
  background: white;
  color: var(--ink);
}
.auth-panel input:focus { border-color: var(--blue); }
.sign-in-submit { width: 100%; margin-top: 2px; }
.auth-link {
  min-height: 28px;
  justify-self: center;
  border: 0;
  background: transparent;
  color: var(--blue);
  padding: 3px 6px;
  font-weight: 600;
}
.auth-link:hover { color: var(--blue-dark); text-decoration: underline; }
.password-policy { margin: -6px 0 0; color: var(--muted); font-size: 11px; line-height: 16px; }
.form-status:empty { display: none; }
.inline-message { margin: 0; color: var(--muted); font-size: 12px; line-height: 17px; }
.inline-message--error { color: var(--red); }
.inline-message--success { color: var(--green); }
.auth-boundary {
  margin: 16px 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
  line-height: 16px;
}
.auth-status, .workspace-loading { display: flex; align-items: center; gap: 8px; color: var(--muted); }
.auth-actions { margin-top: 16px; }

.primary { border-color: var(--blue); background: var(--blue); color: white; }
.primary:hover { border-color: var(--blue-dark); background: var(--blue-dark); }
.secondary { border-color: var(--line); background: white; color: #2f3c4b; }
.secondary:hover { background: var(--surface); }
.button-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }

.workspace-loading { padding: 24px 0; }
.spinner {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  border: 2px solid #cad2dc;
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.utility-view { width: 100%; }
.recordings { width: 100%; max-width: 560px; }
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 45px;
  margin-bottom: 16px;
}
.section-head h1 {
  margin: 0;
  font-size: 19px;
  line-height: 25px;
  font-weight: 650;
  letter-spacing: -.01em;
}
.section-copy {
  margin: 2px 0 0;
  color: var(--muted);
  line-height: 18px;
}
.workspace-badge, .compact-status {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--surface);
  color: var(--muted);
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}
.workspace-badge--success {
  border-color: #c7e0d2;
  background: var(--green-pale);
  color: var(--green-dark);
}
.workspace-panel {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #fff;
}
.panel-heading {
  min-height: 57px;
  display: flex;
  align-items: center;
  padding: 10px 13px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.panel-heading h2 {
  margin: 0;
  font-size: 13px;
  line-height: 18px;
  font-weight: 650;
}
.panel-heading p {
  margin: 1px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 16px;
}
.conversation-panel { min-height: 360px; }
.conversation-panel .empty-state { border: 0; }
.conversation-workspace { max-width: 1320px; }
.call-summary {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--surface);
}
.call-summary h2 { margin: 0; font-size: 13px; line-height: 18px; }
.call-summary p { margin: 2px 0 0; color: var(--muted); font-size: 10px; line-height: 15px; }
.call-summary__meta { flex: 0 0 auto; display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 10px; }
.conversation-boundary {
  display: flex;
  align-items: baseline;
  gap: 7px;
  margin: 0 0 12px;
  padding: 9px 11px;
  border: 1px solid #d5e1ef;
  border-radius: 5px;
  background: #f4f8fc;
  color: #496176;
  font-size: 11px;
  line-height: 17px;
}
.conversation-boundary strong { color: #244867; white-space: nowrap; }
.workflow-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0 0 12px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--surface);
  list-style: none;
  overflow: hidden;
}
.workflow-steps li {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 11px;
  border-right: 1px solid var(--line);
  color: var(--muted);
}
.workflow-steps li:last-child { border-right: 0; }
.workflow-steps li > span {
  width: 23px;
  height: 23px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: #fff;
  font-size: 10px;
  font-weight: 750;
}
.workflow-steps li > div { min-width: 0; display: grid; }
.workflow-steps strong { color: #3d4957; font-size: 11px; line-height: 15px; }
.workflow-steps small { font-size: 10px; line-height: 14px; white-space: nowrap; }
.workflow-steps .is-complete > span {
  border-color: #a9d1b9;
  background: var(--green-pale);
  color: var(--green-dark);
}
.workflow-steps .is-current { background: var(--blue-pale); }
.workflow-steps .is-current > span { border-color: #8ab7e4; background: #fff; color: var(--blue-dark); }
.workflow-steps .is-current strong { color: #164f86; }
.conversation-review-layout {
  display: grid;
  grid-template-columns: minmax(245px, 275px) minmax(0, 1fr);
  align-items: start;
  gap: 12px;
}
.conversation-queue,
.conversation-detail {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #fff;
  overflow: hidden;
}
.conversation-queue__head {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 11px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.conversation-queue__head h2 { margin: 0; font-size: 13px; line-height: 18px; }
.conversation-queue__head > span { color: var(--muted); font-size: 10px; }
.call-context { display: grid; gap: 2px; padding: 11px; border-bottom: 1px solid var(--line); }
.call-context strong { font-size: 12px; line-height: 17px; }
.call-context > span { color: var(--muted); font-size: 10px; line-height: 15px; }
.call-context > div { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 5px; }
.conversation-queue__select {
  display: none;
  width: calc(100% - 22px);
  min-height: 44px;
  margin: 11px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  background: #fff;
  color: var(--ink);
  padding: 6px 8px;
  font: inherit;
}
.conversation-pill {
  min-height: 23px;
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  padding: 2px 7px;
  font-size: 9px;
  font-weight: 700;
  line-height: 13px;
  overflow-wrap: anywhere;
}
.conversation-pill--ready { border-color: #b8d9c6; background: var(--green-pale); color: var(--green-dark); }
.conversation-pill--attention { border-color: #e7d4a4; background: #fff8e7; color: #72520e; }
.conversation-pill--blocked { border-color: #e4bcbc; background: var(--red-pale); color: #8e3030; }
.conversation-queue__items { display: grid; }
@media (min-width: 1201px) {
  .conversation-queue {
    position: sticky;
    top: 12px;
    max-height: calc(100vh - 90px);
    display: flex;
    flex-direction: column;
  }
  .conversation-queue__items { min-height: 0; overflow-y: auto; }
}
.queue-group { width: 100%; min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr); }
.queue-group + .queue-group { border-top: 7px solid var(--surface); }
.queue-group__head {
  min-height: 31px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 10px;
  border-bottom: 1px solid var(--line);
  background: #fbfcfd;
}
.queue-group__head h3 { margin: 0; color: #465363; font-size: 10px; line-height: 15px; }
.queue-group__head span { color: var(--muted); font-size: 9px; font-weight: 700; }
.review-item {
  width: 100%;
  min-height: 63px;
  display: grid;
  grid-template-columns: 23px minmax(0, 1fr);
  align-items: start;
  gap: 3px 8px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: #fff;
  color: inherit;
  padding: 10px 11px;
  text-align: left;
}
.review-item:hover { background: var(--surface); }
.review-item.is-selected { box-shadow: inset 3px 0 0 var(--blue); background: #f7faff; }
.review-item__number {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  grid-row: 1 / 3;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--muted);
  font-size: 9px;
}
.review-item.is-selected .review-item__number { border-color: #9dc2e6; background: var(--blue-pale); color: var(--blue-dark); }
.review-item.is-canceled .review-item__number { border-color: var(--line); background: var(--surface-strong); color: var(--muted); }
.review-item.is-canceled .review-item__copy { color: var(--muted); }
.review-item.is-canceled .review-item__copy small { font-weight: 700; }
.review-item__copy { min-width: 0; display: grid; gap: 1px; }
.review-item__copy strong { font-size: 11px; line-height: 16px; overflow-wrap: anywhere; }
.review-item__copy small { color: var(--muted); font-size: 9px; line-height: 13px; }
.conversation-status {
  grid-column: 2;
  width: fit-content;
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  line-height: 13px;
}
.conversation-status--ready { color: var(--green-dark); }
.conversation-status--attention { color: #72520e; }
.conversation-status--blocked { color: var(--red); }
.queue-summary { display: grid; gap: 1px; padding: 10px 11px; background: var(--surface); }
.queue-summary strong { font-size: 10px; line-height: 15px; }
.queue-summary span { color: var(--muted); font-size: 9px; line-height: 14px; }
.conversation-detail-host { min-width: 0; }
.conversation-detail__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  border-bottom: 1px solid var(--line);
}
.conversation-detail__head > div { min-width: 0; }
.conversation-detail__head h2 { margin: 0; font-size: 16px; line-height: 22px; letter-spacing: -.01em; }
.conversation-detail__head p { margin: 4px 0 0; color: #465363; font-size: 11px; line-height: 17px; }
.conversation-detail__head > .conversation-pill { flex: 0 0 auto; }
.sonia-comment {
  padding: 12px 13px;
  border-bottom: 1px solid #c5dece;
  background: #f4faf6;
}
.sonia-comment--changes { border-bottom-color: #e6c3c3; background: #fff7f7; }
.sonia-comment__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.sonia-comment__head > div { min-width: 0; }
.sonia-comment h3 { margin: 1px 0 0; font-size: 12px; line-height: 17px; }
.sonia-comment > p { margin: 7px 0 0; color: #354252; font-size: 11px; line-height: 17px; }
.conversation-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  border-bottom: 1px solid var(--line);
}
.conversation-fact { min-width: 0; padding: 9px 12px; border-right: 1px solid var(--line); }
.conversation-fact:nth-child(3) { border-right: 0; }
.conversation-fact:last-child { grid-column: 1 / -1; border-top: 1px solid var(--line); border-right: 0; }
.conversation-fact dt { color: var(--muted); font-size: 9px; line-height: 13px; text-transform: uppercase; }
.conversation-fact dd { margin: 2px 0 0; font-size: 10px; font-weight: 600; line-height: 15px; overflow-wrap: anywhere; }
.conversation-evidence { padding: 11px 13px; border-bottom: 1px solid var(--line); }
.conversation-subhead {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}
.conversation-subhead h3,
.review-gate h3,
.next-action strong,
.publication-route h3 { margin: 0; font-size: 11px; line-height: 16px; }
.conversation-subhead p { margin: 2px 0 0; color: var(--muted); font-size: 10px; line-height: 15px; }
.conversation-evidence > p { margin: 6px 0 0; color: #354252; font-size: 11px; line-height: 17px; }
.review-gates { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-bottom: 1px solid var(--line); }
.review-gate { min-width: 0; padding: 11px 13px; border-right: 1px solid var(--line); }
.review-gate:last-child { border-right: 0; }
.review-gate__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.review-gate__head > div { min-width: 0; }
.review-gate__head p { margin: 1px 0 0; color: var(--muted); font-size: 9px; line-height: 13px; }
.review-gate__head > .conversation-pill { flex: 0 0 auto; }
.review-gate__copy { margin: 7px 0 0; color: #465363; font-size: 10px; line-height: 15px; }
.destination-panel { padding: 13px; border-bottom: 1px solid var(--line); }
.destination-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}
.destination-action {
  min-width: 0;
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  text-align: left;
}
.destination-action:hover { border-color: #9dc2e6; background: #f7faff; }
.destination-action:focus-visible { outline: 3px solid rgba(31, 111, 181, .22); outline-offset: 2px; }
.destination-action.is-selected { border-color: #78addb; background: var(--blue-pale); box-shadow: inset 0 0 0 1px #b9d5ec; }
.destination-action__top { min-width: 0; display: flex; align-items: center; gap: 8px; }
.destination-action__top strong { font-size: 11px; line-height: 16px; }
.destination-action__state { color: var(--blue-dark); font-size: 9px; font-weight: 750; line-height: 14px; }
.destination-check {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: #fff;
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
}
.destination-action.is-selected .destination-check { border-color: var(--blue); background: var(--blue); color: #fff; }
.review-cancel {
  width: 100%;
  min-height: 46px;
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 8px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  color: #465363;
  text-align: left;
}
button.review-cancel:hover { border-color: var(--line-strong); background: var(--surface-strong); }
.review-cancel__mark {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: #fff;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}
.review-cancel__copy { min-width: 0; display: grid; gap: 1px; }
.review-cancel__copy strong { font-size: 10px; line-height: 15px; }
.review-cancel__copy span { color: var(--muted); font-size: 9px; font-weight: 500; line-height: 13px; }
.review-cancel--active { justify-content: space-between; border-color: #d2d7de; background: #f2f4f6; }
.review-cancel--active > .review-cancel__copy { display: flex; align-items: center; gap: 9px; }
.review-cancel--active .review-cancel__copy > div { min-width: 0; display: grid; gap: 1px; }
.review-cancel--active > button { flex: 0 0 auto; min-height: 30px; padding: 4px 9px; }
.destination-panel__reason { margin: 9px 0 0; color: var(--muted); font-size: 9px; line-height: 14px; }
.conversation-more { background: #fff; }
.conversation-more details { border-bottom: 1px solid var(--line); }
.conversation-more details:last-child { border-bottom: 0; }
.conversation-more summary {
  min-height: 38px;
  display: flex;
  align-items: center;
  padding: 8px 13px;
  color: #354252;
  cursor: pointer;
  font-size: 10px;
  font-weight: 650;
}
.conversation-more summary:hover { background: var(--surface); }
.conversation-more__body { padding: 0 13px 12px; }
.evidence-narrative { padding: 12px 0; border-bottom: 1px solid var(--line); }
.evidence-narrative h3,
.transcript-excerpt h3,
.transaction-evidence-list h3 { margin: 0; font-size: 11px; line-height: 16px; }
.evidence-narrative p { margin: 6px 0 0; color: #465363; font-size: 10px; line-height: 16px; }
.transcript-excerpt {
  margin: 12px 0 0;
  border: 1px solid #d8e2ed;
  border-radius: 4px;
  background: #f8fafc;
  overflow: hidden;
}
.transcript-excerpt__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 13px;
  border-bottom: 1px solid #d8e2ed;
  background: #fff;
}
.transcript-excerpt__topic {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 15px;
}
.transcript-meta {
  display: grid;
  grid-template-columns: minmax(140px, 0.8fr) minmax(180px, 1.4fr) minmax(110px, 0.6fr);
  margin: 0;
  border-bottom: 1px solid #d8e2ed;
  background: #f4f7fa;
}
.transcript-meta .conversation-fact { padding: 9px 12px; border-right: 1px solid #d8e2ed; }
.transcript-meta .conversation-fact:last-child { border-right: 0; }
.transcript-quality {
  margin: 11px 13px 0;
  padding: 9px 10px;
  border: 1px solid #e4c986;
  border-radius: 4px;
  background: #fff9e9;
  color: #5d4919;
  font-size: 10px;
  line-height: 15px;
}
.transcript-quality strong { margin-right: 4px; }
.transcript-turns { display: grid; gap: 0; padding: 5px 13px 2px; }
.transcript-turn {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid #e1e8ef;
}
.transcript-turn:last-child { border-bottom: 0; }
.transcript-turn__speaker { display: flex; flex-direction: column; gap: 2px; }
.transcript-turn__speaker strong { color: #174d80; font-size: 10px; line-height: 15px; }
.transcript-turn__speaker span { color: var(--muted); font-size: 9px; line-height: 13px; }
.transcript-turn p,
.transcript-raw p {
  margin: 0;
  color: #28384a;
  font-size: 11px;
  line-height: 18px;
}
.transcript-raw {
  margin: 11px 13px 2px;
  padding: 11px 12px;
  border-left: 3px solid #9aaabc;
  background: #fff;
}
.transcript-raw p {
  white-space: pre-line;
}
.transcript-excerpt small {
  display: block;
  padding: 8px 13px 10px;
  color: var(--muted);
  font-size: 9px;
  line-height: 14px;
}
@media (max-width: 720px) {
  .transcript-meta { grid-template-columns: 1fr; }
  .transcript-meta .conversation-fact { border-right: 0; border-bottom: 1px solid #d8e2ed; }
  .transcript-meta .conversation-fact:last-child { border-bottom: 0; }
  .transcript-turn { grid-template-columns: 1fr; gap: 4px; }
}
.transaction-evidence-list { padding-top: 12px; }
.transaction-evidence-list__head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.transaction-evidence-list__head span { color: var(--muted); font-size: 9px; font-weight: 700; line-height: 14px; }
.transaction-evidence-list__items { display: grid; gap: 8px; margin-top: 8px; }
.transaction-evidence {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #fff;
  overflow: hidden;
}
.transaction-evidence__head {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 8px 12px;
  padding: 9px 11px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.transaction-evidence__head > span { color: var(--muted); font-size: 9px; line-height: 14px; }
.transaction-evidence__head h4 { margin: 0; font-size: 11px; line-height: 16px; }
.transaction-evidence__head strong { color: #223548; font-size: 11px; line-height: 16px; white-space: nowrap; }
.transaction-evidence__details { margin: 0; }
.transaction-evidence__details > div {
  display: grid;
  grid-template-columns: 98px minmax(0, 1fr);
  gap: 10px;
  padding: 8px 11px;
  border-bottom: 1px solid var(--line);
}
.file-change-preview {
  padding: 14px 13px 16px;
  border-top: 1px solid var(--line);
  background: #f7f9fb;
}
.file-change-preview__head h3 { margin: 0; font-size: 11px; line-height: 16px; }
.file-change-preview__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 9px;
}
.file-change-card {
  min-width: 0;
  border: 1px solid #d6e0ea;
  border-radius: 5px;
  background: #fff;
  overflow: hidden;
}
.file-change-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 40px;
  padding: 8px 10px;
  border-bottom: 1px solid #e2e8ef;
}
.file-change-card__head h4 { margin: 0; font-size: 11px; line-height: 16px; }
.file-change-card__copy { padding: 10px; }
.file-change-card__copy span {
  display: block;
  color: var(--muted);
  font-size: 8px;
  font-weight: 750;
  letter-spacing: .04em;
  line-height: 12px;
  text-transform: uppercase;
}
.file-change-card__copy p,
.file-change-card__empty {
  margin: 5px 0 0;
  color: #2d3c4d;
  font-size: 10px;
  line-height: 16px;
}
.file-change-card__empty { margin: 0; padding: 10px; color: var(--muted); }
@media (max-width: 720px) {
  .file-change-preview__grid { grid-template-columns: 1fr; }
}
.general-approval {
  min-width: 0;
  padding: 16px 13px 18px;
  border-top: 1px solid var(--line);
  background: var(--paper);
  overflow: hidden;
}
.general-approval__head {
  min-width: 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.general-approval__head > div { min-width: 0; }
.general-approval__head h3 { margin: 0; font-size: 13px; line-height: 18px; }
.general-approval__head p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 15px;
  overflow-wrap: anywhere;
}
.general-approval-account {
  flex: 0 1 auto;
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  border: 1px solid #b8d9c6;
  border-radius: 999px;
  background: var(--green-pale);
  color: var(--green-dark);
  padding: 3px 8px;
  font-size: 9px;
  font-weight: 700;
  line-height: 13px;
  overflow-wrap: anywhere;
}
.general-approval-exact {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}
.general-approval-exact > div,
.general-approval-scope {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--surface);
}
.general-approval-exact > div { padding: 9px 10px; }
.general-approval-exact > div > span {
  display: block;
  color: var(--muted);
  font-size: 8px;
  font-weight: 750;
  letter-spacing: .04em;
  line-height: 12px;
  text-transform: uppercase;
}
.general-approval-exact > div > p {
  margin: 4px 0 0;
  color: #2d3c4d;
  font-size: 10px;
  line-height: 16px;
  overflow-wrap: anywhere;
}
.general-approval-scope {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  overflow: hidden;
}
.general-approval-scope > div {
  min-width: 0;
  padding: 8px 10px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.general-approval-scope > div:nth-child(3n) { border-right: 0; }
.general-approval-scope > div:nth-child(n + 4) { border-bottom: 0; }
.general-approval-scope dt {
  color: var(--muted);
  font-size: 8px;
  font-weight: 700;
  line-height: 12px;
  text-transform: uppercase;
}
.general-approval-scope dd {
  margin: 2px 0 0;
  color: #2d3c4d;
  font-size: 10px;
  font-weight: 600;
  line-height: 15px;
  overflow-wrap: anywhere;
}
.general-approval-exact > .general-approval-limitations {
  grid-column: 1 / -1;
  border-color: #e7d4a4;
  background: #fffaf0;
}
.general-approval-limitations strong {
  color: #66522d;
  font-size: 9px;
  line-height: 14px;
}
.general-approval-limitations ul {
  display: grid;
  gap: 3px;
  margin: 4px 0 0;
  padding-left: 17px;
  color: #66522d;
  font-size: 9px;
  line-height: 14px;
}
.general-approval-limitations li { overflow-wrap: anywhere; }
.general-approval-steps {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}
.general-approval-step {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 9px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--surface);
}
.general-approval-step > span {
  width: 23px;
  height: 23px;
  flex: 0 0 23px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--paper);
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
}
.general-approval-step > div { min-width: 0; display: grid; gap: 1px; }
.general-approval-step strong {
  font-size: 10px;
  line-height: 14px;
  overflow-wrap: anywhere;
}
.general-approval-step small { color: var(--muted); font-size: 8px; line-height: 12px; }
.general-approval-step.is-current {
  border-color: #9dc2e6;
  background: var(--blue-pale);
}
.general-approval-step.is-current > span {
  border-color: var(--blue);
  background: var(--blue);
  color: white;
}
.general-approval-step.is-complete {
  border-color: #b8d9c6;
  background: var(--green-pale);
}
.general-approval-step.is-complete > span {
  border-color: var(--green);
  background: var(--green);
  color: white;
}
.general-approval-lock,
.general-approval-note,
.general-approval-status {
  margin: 9px 0 0;
  font-size: 9px;
  line-height: 14px;
  overflow-wrap: anywhere;
}
.general-approval-lock {
  padding-left: 9px;
  border-left: 3px solid var(--line-strong);
  color: #465363;
}
.general-approval-note { color: var(--amber); }
.general-approval-status { color: var(--muted); }
.general-approval-actions {
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 11px;
}
.general-approval-actions button {
  min-width: 0;
  min-height: 44px;
  flex: 1 1 132px;
  padding: 8px 10px;
  overflow-wrap: anywhere;
}
.general-approval-result {
  min-width: 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 8px;
  margin-top: 11px;
  padding: 9px 10px;
  border: 1px solid #b8d9c6;
  border-radius: 5px;
  background: var(--green-pale);
  color: var(--green-dark);
  font-size: 9px;
  line-height: 14px;
  overflow-wrap: anywhere;
}
.general-approval-result strong { font-size: 10px; }
.general-approval-downstream {
  min-width: 0;
  margin-top: 12px;
  padding-top: 11px;
  border-top: 1px solid var(--line);
}
.general-approval-downstream h4 { margin: 0; font-size: 10px; line-height: 15px; }
.general-approval-downstream__grid {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 6px;
  margin-top: 7px;
}
.general-approval-downstream__grid > div {
  min-width: 0;
  display: grid;
  grid-template-columns: 17px minmax(0, 1fr);
  align-items: center;
  gap: 1px 5px;
  padding: 7px 8px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--surface);
}
.general-approval-downstream__grid > div > span {
  grid-row: 1 / 3;
  color: var(--muted);
  font-weight: 800;
  text-align: center;
}
.general-approval-downstream__grid strong {
  min-width: 0;
  font-size: 9px;
  line-height: 13px;
  overflow-wrap: anywhere;
}
.general-approval-downstream__grid small {
  min-width: 0;
  color: var(--muted);
  font-size: 8px;
  line-height: 12px;
  overflow-wrap: anywhere;
}
.approved-knowledge {
  min-width: 0;
  padding: 16px 13px 18px;
  border-top: 1px solid #b8d9c6;
  background: #f8fcf9;
  overflow: hidden;
}
.approved-knowledge__head {
  min-width: 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.approved-knowledge__head > div { min-width: 0; }
.approved-knowledge__head h3 {
  margin: 0;
  color: var(--green-dark);
  font-size: 13px;
  line-height: 18px;
}
.approved-knowledge__head p {
  margin: 3px 0 0;
  color: #4b6154;
  font-size: 10px;
  line-height: 15px;
  overflow-wrap: anywhere;
}
.approved-knowledge__head > span {
  flex: 0 1 auto;
  max-width: 100%;
  padding: 3px 8px;
  border: 1px solid #b8d9c6;
  border-radius: 999px;
  background: var(--paper);
  color: var(--green-dark);
  font-size: 9px;
  font-weight: 700;
  line-height: 14px;
  overflow-wrap: anywhere;
}
.approved-knowledge__body {
  min-width: 0;
  margin-top: 12px;
}
.approved-knowledge__body > .primary {
  min-height: 44px;
  margin-top: 9px;
}
.approved-knowledge__body > .secondary {
  min-height: 44px;
  margin-top: 9px;
}
.approved-knowledge-empty {
  margin: 0;
  color: #405348;
  font-size: 10px;
  line-height: 16px;
  overflow-wrap: anywhere;
}
.approved-knowledge-list {
  min-width: 0;
  display: grid;
  gap: 9px;
}
.approved-knowledge-card {
  min-width: 0;
  border: 1px solid #b8d9c6;
  border-radius: 6px;
  background: var(--paper);
  overflow: hidden;
}
.approved-knowledge-card__head {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 10px;
  border-bottom: 1px solid #d9ebe0;
  background: var(--green-pale);
}
.approved-knowledge-card__head > div { min-width: 0; }
.approved-knowledge-card__head span {
  display: block;
  color: #52705d;
  font-size: 8px;
  font-weight: 750;
  line-height: 12px;
  text-transform: uppercase;
}
.approved-knowledge-card__head h4 {
  margin: 1px 0 0;
  color: var(--green-dark);
  font-size: 11px;
  line-height: 16px;
}
.approved-knowledge-card__head > strong {
  flex: 0 1 auto;
  color: var(--green-dark);
  font-size: 9px;
  line-height: 14px;
  text-align: right;
}
.approved-knowledge-details {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
}
.approved-knowledge-details > div {
  min-width: 0;
  padding: 8px 10px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.approved-knowledge-details > div:nth-child(2n) { border-right: 0; }
.approved-knowledge-details > div:nth-last-child(-n + 2) { border-bottom: 0; }
.approved-knowledge-details dt {
  color: var(--muted);
  font-size: 8px;
  font-weight: 700;
  line-height: 12px;
  text-transform: uppercase;
}
.approved-knowledge-details dd {
  min-width: 0;
  margin: 2px 0 0;
  color: #2d3c4d;
  font-size: 9px;
  font-weight: 600;
  line-height: 14px;
  overflow-wrap: anywhere;
}
.approved-knowledge-code {
  display: block;
  max-width: 100%;
  color: #31483a;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 8px;
  line-height: 13px;
  overflow-wrap: anywhere;
  white-space: normal;
}
.approved-knowledge-reference {
  margin: 0;
  padding: 8px 10px;
  border-top: 1px solid #d9ebe0;
  color: #4b6154;
  font-size: 9px;
  line-height: 14px;
  overflow-wrap: anywhere;
}
.approved-knowledge-card__actions {
  padding: 0 10px 10px;
}
.approved-knowledge-card__actions button {
  width: 100%;
  min-height: 44px;
}
.approved-knowledge-boundaries {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 6px;
  margin-top: 11px;
}
.approved-knowledge-boundaries span {
  min-width: 0;
  padding: 7px 8px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--paper);
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  line-height: 13px;
  overflow-wrap: anywhere;
}
.approved-knowledge-result {
  margin: 9px 0 0;
  color: var(--green-dark);
  font-size: 9px;
  line-height: 14px;
  overflow-wrap: anywhere;
}
.transaction-evidence__details > div:last-child { border-bottom: 0; }
.transaction-evidence__details dt { color: var(--muted); font-size: 9px; font-weight: 700; line-height: 14px; }
.transaction-evidence__details dd { margin: 0; color: #354252; font-size: 10px; line-height: 16px; overflow-wrap: anywhere; }
.transaction-evidence-list__empty { margin: 8px 0 0; color: var(--muted); font-size: 10px; line-height: 16px; }
.next-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 13px;
  border-bottom: 1px solid var(--line);
  background: #fffdf7;
}
.next-action > div:first-child { min-width: 0; display: grid; }
.next-action > div:first-child > span { color: var(--muted); font-size: 9px; line-height: 13px; text-transform: uppercase; }
.next-action p { margin: 2px 0 0; color: #66522d; font-size: 10px; line-height: 15px; }
.next-action__buttons { flex: 0 0 auto; display: flex; gap: 6px; }
.next-action__buttons button { min-height: 30px; padding: 4px 8px; font-size: 10px; }
.conversation-detail button:disabled {
  border-color: var(--line);
  background: var(--surface);
  color: #778392;
  cursor: not-allowed;
  opacity: 1;
}
.publication-route { padding: 11px 13px 13px; }
.publication-route__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.publication-route__head p { margin: 1px 0 0; color: var(--muted); font-size: 9px; line-height: 13px; }
.publication-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin: 9px 0 0;
  padding: 0;
  list-style: none;
}
.publication-steps li { min-width: 0; display: grid; gap: 1px; padding: 7px 8px; border: 1px dashed var(--line-strong); border-radius: 4px; }
.publication-steps strong { font-size: 9px; line-height: 13px; }
.publication-steps span { color: var(--muted); font-size: 8px; line-height: 12px; }
.publication-boundary { margin: 8px 0 0; color: var(--muted); font-size: 9px; line-height: 14px; }
.admin-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.details-list { margin: 0; }
.details-list > div {
  display: grid;
  grid-template-columns: 145px minmax(0, 1fr);
  gap: 12px;
  padding: 10px 13px;
  border-bottom: 1px solid var(--line);
}
.details-list > div:last-child { border-bottom: 0; }
.details-list dt { color: var(--muted); }
.details-list dd { margin: 0; font-weight: 550; overflow-wrap: anywhere; }
.capability-block { margin-top: 12px; }
.capability-block ul {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 12px 13px;
  list-style: none;
}
.capability-block li {
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--surface);
  color: #465363;
  padding: 4px 8px;
  font-size: 11px;
}
.quiet-boundary {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 11px;
}

.muted { color: var(--muted); line-height: 1.45; }
.recorder-shell {
  margin-top: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}
.capture-card { padding: 20px; }
.capture-method { min-width: 0; }
.capture-method h2 { margin: 0; font-size: 14px; line-height: 20px; }
.capture-method > p { margin: 4px 0 0; color: var(--muted); font-size: 11px; line-height: 17px; }
.recording-notice {
  display: grid;
  gap: 4px;
  margin-top: 10px;
  padding: 10px 11px;
  border-left: 3px solid var(--blue);
  background: var(--blue-pale);
}
.recording-notice strong { color: #274b70; font-size: 11px; line-height: 16px; }
.recording-notice p { margin: 0; color: #40566e; font-size: 10px; line-height: 15px; }
.permission-status,
.capture-readiness {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 2px 8px;
  margin-top: 10px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--surface);
}
.permission-status strong { grid-column: 1 / -1; font-size: 10px; line-height: 15px; }
.permission-status span,
.capture-readiness span { color: var(--muted); font-size: 9px; line-height: 14px; }
.permission-status--denied { border-color: #efcaca; background: var(--red-pale); }
.recording-device {
  display: grid;
  gap: 4px;
  margin-top: 10px;
  color: #354252;
  font-size: 10px;
  font-weight: 700;
}
.recording-device select { width: 100%; min-height: 36px; }
.recording-device small { color: var(--muted); font-size: 9px; font-weight: 500; line-height: 14px; }
.recording-agreement {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: start;
  gap: 7px;
  margin-top: 10px;
  color: #354252;
  font-size: 10px;
  font-weight: 650;
  line-height: 15px;
}
.recording-agreement input { width: 16px; height: 16px; margin: 0; }
.capture-storage-note {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 9px;
  line-height: 14px;
}
.capture-actions { margin-top: 0; }
.capture-actions .primary { width: 100%; }
.capture-divider {
  position: relative;
  display: grid;
  place-items: center;
  margin: 18px 0;
  color: var(--muted);
  font-size: 10px;
  text-transform: uppercase;
}
.capture-divider::before { content: ""; position: absolute; inset-inline: 0; border-top: 1px solid var(--line); }
.capture-divider span { position: relative; padding: 0 9px; background: #fff; }
.mp3-input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}
.mp3-drop-zone {
  display: grid;
  justify-items: center;
  gap: 5px;
  margin-top: 10px;
  padding: 18px;
  border: 1px dashed var(--line-strong);
  border-radius: 6px;
  background: var(--surface);
  text-align: center;
  transition: border-color .15s ease, background .15s ease;
}
.mp3-drop-zone.is-dragging { border-color: var(--blue); background: var(--blue-pale); }
.mp3-drop-zone strong { font-size: 12px; line-height: 18px; }
.mp3-drop-zone span { max-width: 480px; color: var(--muted); font-size: 11px; line-height: 17px; }
.mp3-drop-zone button { margin-top: 5px; }
.upload-error-slot:empty { display: none; }
.retention-note { margin: 10px 0 0; color: var(--muted); font-size: 11px; line-height: 17px; }
.local-status,
.verified-status {
  display: grid;
  gap: 2px;
  padding: 10px 12px;
  border: 1px solid #e0c57d;
  border-radius: 5px;
  background: #fff9e9;
}
.verified-status { border-color: #9dcbb2; background: #f0faf4; }
.recording-live-status { margin-bottom: 14px; }
.local-status strong,
.verified-status strong { font-size: 12px; line-height: 18px; }
.local-status span,
.verified-status span { color: #465363; font-size: 11px; line-height: 17px; overflow-wrap: anywhere; }
.upload-details {
  display: grid;
  grid-template-columns: minmax(80px, auto) minmax(0, 1fr);
  gap: 5px 12px;
  margin: 14px 0 0;
  padding: 0;
}
.upload-details dt { color: var(--muted); font-size: 10px; font-weight: 700; line-height: 17px; }
.upload-details dd { min-width: 0; margin: 0; color: #354252; font-size: 11px; line-height: 17px; }
.upload-details .file-name { overflow-wrap: anywhere; }
.admitted-recordings {
  display: grid;
  gap: 12px;
  min-width: 0;
  margin-top: 18px;
}
.admitted-recordings-heading,
.admitted-recording-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.admitted-recordings-heading h2 { margin: 0; font-size: 14px; line-height: 20px; }
.admitted-recordings-heading p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 17px;
}
.admitted-recording-list { display: grid; gap: 10px; }
.admitted-recording-card {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
  box-sizing: border-box;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}
.admitted-recording-heading strong { font-size: 12px; line-height: 18px; }
.status-chip {
  max-width: 60%;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--blue-pale);
  color: var(--blue);
  font-size: 10px;
  font-weight: 700;
  line-height: 16px;
  text-align: right;
}
.admitted-recording-details { margin-top: 10px; }
.transcription-handoff {
  display: grid;
  justify-items: start;
  gap: 8px;
  min-width: 0;
  max-width: 100%;
  margin-top: 12px;
}
.transcription-handoff > .retention-note { margin-top: 0; }
.compact-status {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  white-space: normal;
}
.recording-live { display: flex; align-items: center; gap: 9px; }
.recording-live span { display: block; color: var(--red); font-weight: 800; }
.recording-time { margin-top: 2px; font-size: 20px; line-height: 24px; font-variant-numeric: tabular-nums; }
.recording-dot { width: 9px; aspect-ratio: 1; border-radius: 50%; background: var(--red); animation: pulse 1.25s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; } }
.recording-audio { display: block; width: 100%; height: 36px; margin-top: 12px; }
.interruption-note,
.recovery-state {
  display: grid;
  gap: 2px;
  margin-top: 10px;
}
.interruption-note {
  padding: 9px 10px;
  border: 1px solid #e0c57d;
  border-radius: 5px;
  background: #fff9e9;
  color: #72561b;
}
.interruption-note strong,
.recovery-state strong { font-size: 11px; line-height: 16px; }
.interruption-note span,
.recovery-state span { font-size: 10px; line-height: 15px; }
.upload-receipt { padding-top: 12px; border-top: 1px solid var(--line); }
.danger { border: 1px solid #e0aaa5; background: white; color: var(--red); }
.danger:hover { background: var(--red-pale); }
.error { margin-top: 12px; border: 1px solid #efcaca; border-radius: 4px; padding: 8px 10px; background: var(--red-pale); color: var(--red); line-height: 18px; }

.daily-tasks__body { min-width: 0; }
.task-boundary {
  display: flex;
  align-items: baseline;
  gap: 7px;
  margin: 7px 1px 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 16px;
}
.task-boundary strong { color: #3e4b59; white-space: nowrap; }
.task-toolbar {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 0 8px;
  border-bottom: 1px solid var(--line);
}
.task-toolbar__date { min-width: 0; display: flex; align-items: center; gap: 9px; }
.task-toolbar__date > div { min-width: 0; display: grid; gap: 1px; }
.task-toolbar__date strong { font-size: 13px; line-height: 18px; white-space: nowrap; }
.task-toolbar__date span { color: var(--muted); font-size: 11px; }
.date-arrow { width: 30px; min-height: 30px; padding: 3px; }
.task-toolbar__actions { display: flex; align-items: center; gap: 6px; }
.task-toolbar__actions button { min-height: 30px; padding: 4px 9px; font-size: 11px; }
.history-label { color: var(--muted); font-size: 11px; white-space: nowrap; }
.task-date-picker {
  width: 132px;
  min-height: 30px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  padding: 4px 6px;
  background: #fff;
  color: #354252;
  font: inherit;
  font-size: 11px;
}
.recent-boards {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 7px;
}
.recent-boards > span { margin-right: 2px; color: var(--muted); font-size: 11px; }
.recent-board {
  min-height: 28px;
  border-color: var(--line);
  background: #fff;
  color: #465363;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 550;
}
.recent-board:hover { background: var(--surface); }
.recent-board.is-selected { border-color: #b8d0eb; background: var(--blue-pale); color: #0f4f91; }
.task-quick-entry {
  display: grid;
  gap: 6px;
  margin-top: 8px;
  padding: 8px;
  border: 1px solid #cbdcf0;
  border-radius: 4px;
  background: var(--blue-pale);
}
.task-quick-entry__row { display: grid; grid-template-columns: minmax(0, 1fr) 170px auto; gap: 6px; }
.task-quick-entry__row input, .task-quick-entry__row select {
  width: 100%;
  min-height: 34px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  padding: 6px 8px;
  background: #fff;
  color: var(--ink);
}
.task-quick-entry__row input::placeholder { color: #718092; }
.person-name-field { min-width: 0; display: block; }
.person-name-field input { width: 100%; }
.task-quick-entry__row select { padding-right: 28px; }
.task-quick-entry__row button { min-width: 64px; }
.task-quick-entry__more { color: var(--muted); font-size: 10px; }
.task-quick-entry__more summary { width: max-content; cursor: pointer; }
.task-quick-entry__options {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  margin-top: 7px;
}
.task-quick-entry__options label { display: grid; gap: 4px; color: #354252; font-size: 11px; font-weight: 650; }
.task-quick-entry__options input, .task-quick-entry__options textarea {
  width: 100%;
  min-height: 34px;
  resize: vertical;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  padding: 6px 8px;
  background: #fff;
  color: var(--ink);
}
.task-entry-host:empty { display: none; }
.task-entry {
  display: grid;
  grid-template-columns: minmax(180px, 1.4fr) minmax(180px, 2fr) auto;
  align-items: end;
  gap: 8px;
  margin-top: 8px;
  padding: 10px;
  border: 1px solid #cbdcf0;
  border-radius: 4px;
  background: var(--blue-pale);
}
.task-entry label { min-width: 0; display: grid; gap: 4px; color: #354252; font-size: 11px; font-weight: 650; }
.task-entry input, .task-entry textarea {
  width: 100%;
  min-height: 34px;
  resize: vertical;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  padding: 6px 8px;
  background: #fff;
  color: var(--ink);
}
.task-entry__actions { display: flex; gap: 6px; }
.task-entry__actions button { white-space: nowrap; }
.task-entry__error { grid-column: 1 / -1; margin-top: 0; }
.standup {
  margin-top: 9px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
}
.standup__heading {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 9px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.standup__heading h2 { margin: 0; font-size: 12px; }
.standup__heading span { color: var(--muted); font-size: 10px; }
.standup__entries { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.standup-entry { min-width: 0; padding: 8px 9px; border-right: 1px solid var(--line); }
.standup-entry:last-child { border-right: 0; }
.standup-entry strong { display: block; font-size: 11px; line-height: 16px; }
.standup-entry p { margin: 3px 0 0; color: #526071; font-size: 11px; line-height: 16px; white-space: pre-wrap; }
.standup-entry--editable { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px; }
.standup-entry--editable strong { grid-column: 1 / -1; }
.standup-entry textarea {
  width: 100%;
  min-height: 34px;
  resize: vertical;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  padding: 6px 7px;
  color: var(--ink);
  font: inherit;
  font-size: 11px;
}
.standup-entry button { align-self: end; min-height: 34px; }
.standup__empty { margin: 0; padding: 12px 9px; color: var(--muted); font-size: 11px; }
.work-by-person {
  min-width: 0;
  margin-top: 9px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
}
.work-by-person__heading {
  min-height: 39px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 8px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.work-by-person__heading h2 { margin: 0; font-size: 12px; line-height: 17px; }
.work-by-person__heading-actions { display: flex; align-items: center; gap: 6px; }
.client-file-lanes { min-width: 0; }
.client-file-lane + .client-file-lane { border-top: 1px solid var(--line-strong); }
.client-file-lane__heading {
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 9px;
  border-bottom: 1px solid var(--line);
  background: #fbfcfe;
}
.client-file-lane__heading h3 { margin: 0; font-size: 11px; line-height: 16px; }
.client-file-lane__empty {
  margin: 0;
  padding: 14px 10px;
  color: var(--muted);
  font-size: 11px;
  text-align: center;
}
.work-by-person__columns, .work-by-person__row {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 120px 130px 92px 92px 98px;
  align-items: center;
  gap: 10px;
}
.work-by-person__columns {
  min-height: 31px;
  padding: 5px 9px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}
.work-by-person__row { min-height: 42px; padding: 6px 9px; border-bottom: 1px solid var(--line); }
.work-by-person__row:last-child { border-bottom: 0; }
.work-by-person__row--matched { background: var(--blue-pale); box-shadow: inset 3px 0 0 var(--blue); }
.work-by-person__cell { min-width: 0; color: #526071; font-size: 11px; overflow-wrap: anywhere; }
.work-by-person__person, .work-by-person__task { color: var(--ink); }
.work-by-person__person { font-weight: 650; }
.work-by-person__task strong, .work-by-person__task small { display: block; }
.work-by-person__task small { margin-top: 1px; color: var(--muted); font-size: 9px; }
.work-by-person__task .client-file-awaited-item {
  margin-top: 3px;
  color: #3f4f60;
  font-size: 10px;
  font-weight: 650;
  line-height: 14px;
}
.work-by-person__task .client-file-projection-state {
  width: fit-content;
  margin-top: 4px;
  padding: 1px 4px;
  border: 1px solid #e7d4a4;
  border-radius: 8px;
  background: #fff8e7;
  color: #72520e;
  font-size: 8px;
  font-weight: 700;
}
.work-by-person__task .client-file-projection-state--source_changed_needs_review {
  border-color: #cbdcf0;
  background: var(--blue-pale);
  color: #0f4f91;
}
.work-by-person__task .client-file-projection-state--projection_conflict {
  border-color: #efc6c6;
  background: #fff2f2;
  color: #862d2d;
}
.work-by-person__date { font-variant-numeric: tabular-nums; white-space: nowrap; }
.work-by-person__action select {
  width: 100%; min-height: 29px; border: 1px solid var(--line-strong); border-radius: 4px;
  padding: 3px 20px 3px 6px; background: #fff; color: #354252; font-size: 10px;
}
.work-by-person__empty { margin: 0; padding: 18px 10px; color: var(--muted); font-size: 11px; text-align: center; }
.client-file-bindings { display: flex; flex-wrap: wrap; gap: 3px; margin-top: 3px; }
.client-file-binding {
  display: inline-flex; padding: 1px 4px; border: 1px solid var(--line); border-radius: 8px;
  background: var(--surface); color: var(--muted); font-size: 8px; font-weight: 700;
}
.client-file-binding[href] { text-decoration: none; }
.client-file-binding[href]:hover { border-color: var(--line-strong); text-decoration: underline; }
.client-file-binding--in_sync { border-color: #c7e0d2; background: var(--green-pale); color: var(--green-dark); }
.client-file-binding--conflict, .client-file-binding--missing { border-color: #e7d4a4; background: #fff8e7; color: #72520e; }
.client-file-entry-host:empty { display: none; }
.client-file-entry, .client-file-reassign {
  padding: 9px; border-top: 1px solid var(--line); background: var(--blue-pale);
}
.client-file-entry__primary { display: grid; grid-template-columns: minmax(220px, 1fr) minmax(160px, 240px); gap: 7px; }
.client-file-entry__more { margin-top: 7px; }
.client-file-entry__more summary { color: #4f5e70; cursor: pointer; font-size: 10px; font-weight: 650; }
.client-file-entry__fields { display: grid; grid-template-columns: repeat(5, minmax(120px, 1fr)); gap: 7px; margin-top: 7px; }
.client-file-entry label { display: grid; gap: 3px; color: #4f5e70; font-size: 10px; font-weight: 650; }
.client-file-entry input, .client-file-entry select, .client-file-reassign input {
  width: 100%; min-height: 34px; border: 1px solid var(--line-strong); border-radius: 4px;
  padding: 5px 7px; background: #fff; color: var(--ink); font: inherit; font-size: 11px;
}
.client-file-entry__actions { display: flex; justify-content: flex-end; gap: 6px; margin-top: 8px; }
.client-file-reassign { display: grid; grid-template-columns: minmax(180px, 1fr) minmax(160px, 240px) auto auto; align-items: center; gap: 7px; }
.client-file-match-host:empty { display: none; }
.client-file-match { margin-top: 8px; padding: 8px; border: 1px solid #cbd7e5; border-radius: 4px; background: #fff; }
.client-file-match > p { margin: 0 0 7px; color: #445367; font-size: 11px; font-weight: 650; }
.client-file-match__candidate { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 7px 0; border-top: 1px solid var(--line); }
.client-file-match__candidate:first-of-type { border-top: 0; }
.client-file-match__candidate strong, .client-file-match__candidate > div > span { display: block; }
.client-file-match__candidate strong { color: var(--ink); font-size: 11px; }
.client-file-match__candidate > div > span:not(.client-file-bindings) { margin-top: 1px; color: var(--muted); font-size: 10px; }
.client-file-match__candidate .client-file-bindings { display: flex; }
.review-queue {
  margin-top: 9px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
}
.review-queue summary {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 10px;
  background: var(--surface);
  cursor: pointer;
  list-style: none;
}
.review-queue summary::-webkit-details-marker { display: none; }
.review-queue summary > span:first-child { display: grid; gap: 0; }
.review-queue summary strong { font-size: 12px; line-height: 17px; }
.review-queue summary small { color: var(--muted); font-size: 10px; line-height: 14px; }
.review-queue[open] summary { border-bottom: 1px solid var(--line); }
.review-queue__content { padding-bottom: 8px; }
.review-queue__content > .secondary { min-height: 28px; margin: 8px 10px 0; padding: 3px 8px; font-size: 10px; }
.count-chip {
  min-width: 23px;
  height: 22px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fff;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}
.proposal-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.proposal-card { min-width: 0; padding: 9px 10px; border-right: 1px solid var(--line); }
.proposal-card:last-child { border-right: 0; }
.proposal-card__heading, .task-card__heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.proposal-card__heading strong, .task-card__heading strong { min-width: 0; line-height: 17px; overflow-wrap: anywhere; }
.review-queue__empty { margin: 0; padding: 10px; color: var(--muted); font-size: 11px; }
.task-list {
  min-width: 0;
  margin-top: 9px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
}
.task-list__heading {
  min-height: 39px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 8px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.task-list__heading h2 { margin: 0; font-size: 12px; line-height: 17px; }
.task-list__heading-actions { display: flex; align-items: center; gap: 6px; }
.compact-button { min-height: 28px; padding: 3px 7px; font-size: 10px; }
.task-list__columns, .task-list__row {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(300px, 1fr) 145px 125px 112px;
  align-items: center;
  gap: 10px;
}
.task-list__table--selectable .task-list__columns,
.task-list__table--selectable .task-list__row {
  grid-template-columns: 28px minmax(270px, 1fr) 135px 120px 112px;
}
.task-list__select { display: flex; align-items: center; justify-content: center; }
.task-list__select input { width: 16px; height: 16px; margin: 0; accent-color: var(--blue); }
.task-list__columns {
  min-height: 31px;
  padding: 5px 9px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}
.task-list__row { min-height: 49px; padding: 7px 9px; border-bottom: 1px solid var(--line); }
.task-list__row:last-child { border-bottom: 0; }
.task-list__row--blocked { border-left: 3px solid #ba7824; padding-left: 6px; }
.task-list__row--done { background: #fafcfb; opacity: .78; }
.task-list__task { min-width: 0; }
.task-list__task strong { display: block; line-height: 17px; overflow-wrap: anywhere; }
.carried-label { display: inline-block; margin-top: 2px; color: #72520e; font-size: 9px; font-weight: 650; }
.task-source-label { display: inline-block; margin-top: 2px; color: #245f9e; font-size: 9px; font-weight: 650; }
.task-list__task > p { margin: 2px 0 0; color: #5b6878; font-size: 10px; line-height: 14px; overflow-wrap: anywhere; }
.task-list__task .task-list__blocker { color: #72520e; }
.task-list__person { min-width: 0; color: #526071; font-size: 11px; overflow-wrap: anywhere; }
.task-list__status { min-width: 0; }
.task-list__mobile-label { display: none; }
.task-list__action { min-width: 0; }
.task-list__action select, .task-status-select {
  width: 100%;
  min-height: 30px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  padding: 4px 22px 4px 7px;
  background: #fff;
  color: #354252;
  font-size: 10px;
}
.task-status-select.task-state--in_progress { border-color: #cbdcf0; background: var(--blue-pale); color: #0f4f91; }
.task-status-select.task-state--blocked { border-color: #e7d4a4; background: #fff8e7; color: #72520e; }
.task-status-select.task-state--done { border-color: #c7e0d2; background: var(--green-pale); color: var(--green-dark); }
.task-list__action:empty::after { content: "—"; color: var(--muted); font-size: 11px; }
.task-list__status.is-blocking {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto auto;
  gap: 6px;
  padding-top: 2px;
}
.task-list__status.is-blocking button { min-height: 30px; padding: 3px 8px; font-size: 10px; }
.task-list__action:has(.delete-confirmation) {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}
.delete-confirmation { margin-right: auto; color: var(--red); font-size: 10px; font-weight: 650; }
.task-edit {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(180px, 1.2fr) minmax(180px, 2fr) auto;
  gap: 7px;
  padding: 8px;
  border-bottom: 1px solid var(--line);
  background: var(--blue-pale);
}
.task-edit input, .task-edit textarea {
  width: 100%;
  min-height: 32px;
  resize: vertical;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  padding: 5px 7px;
  color: var(--ink);
  font: inherit;
  font-size: 11px;
}
.task-edit__actions { display: flex; gap: 5px; align-items: end; }
.task-edit__actions button { min-height: 32px; padding: 4px 7px; font-size: 10px; }
.task-edit--reassign { grid-template-columns: minmax(180px, 1fr) minmax(180px, 280px) auto; align-items: center; }
.task-edit--reassign select, .task-edit--reassign .person-name-field input {
  width: 100%; min-height: 32px; border: 1px solid var(--line-strong); border-radius: 4px;
  padding: 5px 26px 5px 7px; background: #fff; color: var(--ink); font: inherit; font-size: 11px;
}
.task-list__empty { margin: 0; padding: 22px 10px; color: var(--muted); font-size: 11px; text-align: center; }
.task-state {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 1px 5px;
  background: var(--surface);
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  line-height: 15px;
  text-transform: capitalize;
  white-space: nowrap;
}
.task-state--in_progress { border-color: #cbdcf0; background: var(--blue-pale); color: #0f4f91; }
.task-state--blocked { border-color: #e7d4a4; background: #fff8e7; color: #72520e; }
.task-state--done { border-color: #c7e0d2; background: var(--green-pale); color: var(--green-dark); }
.task-state--not_started { border-color: var(--line); background: var(--surface); color: #526071; }
.task-state--ready_for_review { border-color: #cbdcf0; background: var(--blue-pale); color: #0f4f91; }
.task-state--closed { border-color: #c7e0d2; background: var(--green-pale); color: var(--green-dark); }
.task-state--review { border-color: #cbdcf0; background: var(--blue-pale); color: #0f4f91; }
.task-card__details { margin: 6px 0 0; color: #465363; font-size: 11px; line-height: 16px; overflow-wrap: anywhere; }
.task-card__meta { display: flex; flex-wrap: wrap; gap: 3px 8px; margin-top: 7px; color: var(--muted); font-size: 10px; line-height: 14px; }
.task-card__meta:empty { display: none; }
.task-card__meta .is-overdue { color: var(--red); font-weight: 650; }
.task-card__blocker { margin: 7px 0 0; padding: 5px 6px; border-radius: 3px; background: #fff8e7; color: #72520e; font-size: 10px; line-height: 15px; }
.task-card__actions { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.task-card__actions button { min-height: 28px; padding: 3px 7px; font-size: 10px; }
.task-card__actions .block-reason { flex: 1 1 100%; }
.block-reason input { width: 100%; min-height: 32px; border: 1px solid var(--line-strong); border-radius: 4px; padding: 5px 7px; }

.empty-state {
  min-height: 238px;
  display: grid;
  place-content: center;
  justify-items: center;
  padding: 28px 18px;
  background: #fff;
  color: var(--muted);
  text-align: center;
}
.empty-state--roomy { min-height: 300px; }
.empty-state__mark {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  margin-bottom: 9px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: #8a96a3;
  font-size: 16px;
}
.empty-state strong { color: #3c4856; font-weight: 650; }
.empty-state p { margin: 3px 0 0; font-size: 12px; line-height: 18px; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.payroll-operations {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--surface);
}
.payroll-operations__heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}
.payroll-operations__heading h2 { margin: 0; font-size: 15px; }
.payroll-operations__heading p { max-width: 760px; margin: 4px 0 0; }
.payroll-operations__state {
  min-height: 86px;
  margin: 0;
  border: 0;
  border-radius: 0;
}
.payroll-table { min-width: 0; }
.payroll-table__columns, .payroll-table__row {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(120px, .7fr) minmax(130px, .65fr)
    minmax(130px, .65fr) minmax(160px, .6fr) 54px;
  align-items: center;
}
.payroll-table__columns {
  min-height: 34px;
  padding: 0 12px;
  border-bottom: 1px solid var(--line);
  background: var(--soft);
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .02em;
  text-transform: uppercase;
}
.payroll-table__row {
  min-width: 0;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}
.payroll-table__row:last-child { border-bottom: 0; }
.payroll-table__row > div { min-width: 0; padding-right: 12px; }
.payroll-table__company {
  display: grid;
  gap: 2px;
}
.payroll-table__company strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.payroll-table__frequency { color: var(--muted); font-size: 11px; }
.payroll-table__due { font-weight: 650; }
.payroll-table__due--overdue { color: var(--red); }
.payroll-table__due--due_today { color: #8b5a00; }
.payroll-table__due--complete { color: var(--green); }
.payroll-table__checkpoint {
  display: grid;
  gap: 6px;
}
.payroll-table__checkpoint select {
  width: 100%;
  min-width: 0;
  min-height: 44px;
}
.payroll-table__interruption { color: var(--red); font-size: 10px; line-height: 14px; }
.payroll-table__retry { width: 100%; min-height: 44px; white-space: normal; }
.payroll-recording {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  padding: 3px 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}
.payroll-recording--available {
  border-color: #b7d9c1;
  background: #edf8f0;
  color: var(--green);
}
.payroll-table__recording {
  display: grid;
  justify-items: start;
  gap: 5px;
}
.payroll-table__recording-review {
  width: 100%;
  min-height: 44px;
  white-space: normal;
}
.payroll-table__recording audio { width: 100%; max-width: 220px; height: 36px; }
.payroll-table__recording-error { color: var(--red); font-size: 10px; line-height: 14px; }
.payroll-table__version { color: var(--muted); font-variant-numeric: tabular-nums; }
.payroll-table__empty {
  display: grid;
  min-height: 74px;
  place-items: center;
  padding: 16px;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

@media (max-width: 1200px) and (min-width: 621px) {
}

.history-body { display: grid; gap: 16px; min-width: 0; }
.history-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.history-toolbar__date { display: flex; align-items: center; gap: 8px; }
.history-date { min-height: 40px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 4px; }
.history-capture { justify-self: start; }
.history-capture--revision { margin: 14px 18px; }
.history-snapshot { min-width: 0; border: 1px solid var(--line); border-radius: 6px; background: #fff; overflow: hidden; }
.history-snapshot__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 18px;
  border-bottom: 1px solid var(--line);
}
.history-snapshot__head h2 { margin: 2px 0 3px; }
.history-snapshot__meta, .history-boundary, .history-actions p { margin: 0; color: var(--muted); }
.history-boundary { padding: 12px 18px; border-bottom: 1px solid var(--line); background: var(--surface-subtle); }
.history-payroll-boundary { margin: 0; padding: 10px 18px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.history-items { display: grid; }
.history-item {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 8px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  min-width: 0;
}
.history-item:last-child { border-bottom: 0; }
.history-item__select {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  min-height: 44px;
  cursor: pointer;
}
.history-item__select input { width: 18px; height: 18px; }
.history-item__content, .history-item__head { min-width: 0; }
.history-item__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.history-item__content p { margin: 3px 0; overflow-wrap: anywhere; }
.history-item__content small { color: var(--muted); overflow-wrap: anywhere; }
.history-kind {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.history-actions { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 18px; border-top: 1px solid var(--line); }
.history-prerequisite { display: grid; gap: 10px; justify-items: start; padding: 14px 18px; border-top: 1px solid var(--line); background: var(--surface-subtle); }
.history-prerequisite p { margin: 0; color: var(--muted); }
.history-action-status:empty { display: none; }
.history-action-status { padding: 0 18px 18px; }
.history-receipt { margin-top: 14px; padding: 14px; border: 1px solid var(--success); border-radius: 4px; background: var(--success-soft); }
.history-receipt h2, .history-receipt p { margin-top: 0; }
.history-receipt__facts { display: grid; gap: 7px; margin: 0; }
.history-receipt__facts > div { display: grid; grid-template-columns: 75px minmax(0, 1fr); gap: 8px; }
.history-receipt__facts dt { color: var(--muted); }
.history-receipt__facts dd { margin: 0; overflow-wrap: anywhere; }
.history-receipt__items { margin-bottom: 0; padding-left: 20px; }

@media (max-width: 1100px) and (min-width: 621px) {
  .conversation-review-layout { grid-template-columns: minmax(0, 1fr); }
  .conversation-queue__items { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .review-item:nth-child(odd) { border-right: 1px solid var(--line); }
}

@media (max-width: 980px) and (min-width: 621px) {
  .work-by-person__columns, .work-by-person__row {
    grid-template-columns: minmax(190px, 1fr) 105px 105px 82px 82px 90px;
  }
  .task-list__columns, .task-list__row { grid-template-columns: minmax(220px, 1fr) 115px 110px 108px; }
  .proposal-list { grid-template-columns: minmax(0, 1fr); }
  .destination-list { grid-template-columns: minmax(0, 1fr); }
  .destination-action { min-height: 70px; }
  .proposal-card { border-right: 0; border-bottom: 1px solid var(--line); }
  .proposal-card:last-child { border-bottom: 0; }
  .task-entry { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .task-entry__actions { align-self: end; }
}

@media (max-width: 620px) {
  .session-label { display: none; }
  .app-layout.is-authenticated { display: block; }
  .app-nav { border-right: 0; border-bottom: 1px solid var(--line); padding: 6px 8px; }
  .nav-menu-toggle {
    width: 100%;
    min-height: 44px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 9px;
    border-color: var(--line);
    background: #fff;
    color: var(--muted);
    text-align: left;
  }
  .nav-menu-toggle strong { color: var(--ink); font-size: 13px; }
  .nav-items { padding-top: 5px; }
  .app-nav[data-open="false"] .nav-items { display: none; }
  .nav-item { min-height: 44px; }
  .app-main--workspace { padding: 14px 12px 40px; }
  .admin-grid { grid-template-columns: minmax(0, 1fr); }
  .conversation-boundary { align-items: flex-start; flex-direction: column; gap: 2px; }
  .call-summary { align-items: flex-start; flex-direction: column; gap: 7px; }
  .call-summary__meta { width: 100%; justify-content: space-between; }
  .workflow-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .workflow-steps li:nth-child(2) { border-right: 0; }
  .workflow-steps li:nth-child(-n + 2) { border-bottom: 1px solid var(--line); }
  .conversation-review-layout { grid-template-columns: minmax(0, 1fr); }
  .conversation-queue__select { display: block; }
  .conversation-queue__items { display: none; }
  .destination-list { grid-template-columns: minmax(0, 1fr); }
  .destination-action { min-height: 70px; }
  .conversation-detail__head { flex-direction: column; }
  .sonia-comment__head { align-items: flex-start; flex-direction: column; }
  .conversation-facts { grid-template-columns: minmax(0, 1fr); }
  .conversation-fact,
  .conversation-fact:nth-child(3),
  .conversation-fact:last-child { grid-column: auto; border-right: 0; border-top: 0; border-bottom: 1px solid var(--line); }
  .conversation-fact:last-child { border-bottom: 0; }
  .transaction-evidence__head { grid-template-columns: minmax(0, 1fr) auto; }
  .transaction-evidence__head > span { grid-column: 1 / -1; }
  .transaction-evidence__details > div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .review-gates { grid-template-columns: minmax(0, 1fr); }
  .review-gate { border-right: 0; border-bottom: 1px solid var(--line); }
  .review-gate:last-child { border-bottom: 0; }
  .next-action { align-items: stretch; flex-direction: column; }
  .next-action__buttons { width: 100%; }
  .next-action__buttons button { flex: 1 1 0; }
  .general-approval__head { flex-direction: column; }
  .general-approval-exact { grid-template-columns: minmax(0, 1fr); }
  .general-approval-scope { grid-column: auto; grid-template-columns: minmax(0, 1fr); }
  .general-approval-scope > div,
  .general-approval-scope > div:nth-child(3n),
  .general-approval-scope > div:nth-child(n + 4) {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .general-approval-scope > div:last-child { border-bottom: 0; }
  .general-approval-exact > .general-approval-limitations { grid-column: auto; }
  .general-approval-steps { grid-template-columns: minmax(0, 1fr); }
  .general-approval-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .general-approval-actions button { width: 100%; }
  .general-approval-downstream__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .approved-knowledge__head { flex-direction: column; }
  .approved-knowledge-details { grid-template-columns: minmax(0, 1fr); }
  .approved-knowledge-details > div,
  .approved-knowledge-details > div:nth-child(2n),
  .approved-knowledge-details > div:nth-last-child(-n + 2) {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .approved-knowledge-details > div:last-child { border-bottom: 0; }
  .approved-knowledge-boundaries { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .publication-steps { grid-template-columns: minmax(0, 1fr); }
  .details-list > div { grid-template-columns: 130px minmax(0, 1fr); }
  .task-boundary { align-items: flex-start; flex-direction: column; gap: 2px; }
  .task-toolbar { align-items: stretch; flex-direction: column; }
  .task-toolbar__date { justify-content: space-between; }
  .task-toolbar__actions { width: 100%; }
  .task-toolbar__actions button { flex: 1 1 0; }
  .task-date-picker { width: 100%; min-height: 44px; }
  .task-quick-entry__options { grid-template-columns: minmax(0, 1fr); }
  .task-entry { grid-template-columns: minmax(0, 1fr); }
  .task-entry__actions button { flex: 1 1 0; }
  .proposal-list { grid-template-columns: minmax(0, 1fr); }
  .proposal-card { border-right: 0; border-bottom: 1px solid var(--line); }
  .proposal-card:last-child { border-bottom: 0; }
  .standup__entries { grid-template-columns: minmax(0, 1fr); }
  .standup-entry { border-right: 0; border-bottom: 1px solid var(--line); }
  .standup-entry:last-child { border-bottom: 0; }
  .standup-entry--editable { grid-template-columns: minmax(0, 1fr); }
  .standup-entry textarea, .standup-entry button { min-height: 44px; }
  .work-by-person__columns { display: none; }
  .work-by-person__row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    gap: 8px 12px;
    padding: 10px;
  }
  .work-by-person__cell::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 1px;
    color: var(--muted);
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
  }
  .work-by-person__task { grid-column: 1 / -1; grid-row: 1; }
  .work-by-person__action { grid-column: 1 / -1; }
  .work-by-person__action select { min-height: 44px; }
  .payroll-operations__heading { align-items: flex-start; }
  .payroll-table__columns { display: none; }
  .payroll-table__row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    gap: 10px 12px;
    padding: 12px;
  }
  .payroll-table__row > div { padding-right: 0; }
  .payroll-table__row > div::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 2px;
    color: var(--muted);
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
  }
  .payroll-table__company { grid-column: 1 / -1; }
  .payroll-table__company strong { white-space: normal; }
  .payroll-table__recording, .payroll-table__version { align-self: end; }
  .client-file-entry__primary, .client-file-entry__fields, .client-file-reassign,
  .client-file-match__candidate { grid-template-columns: minmax(0, 1fr); }
  .history-toolbar, .history-toolbar__date, .history-snapshot__head, .history-actions {
    align-items: stretch;
    flex-direction: column;
  }
  .history-toolbar button, .history-toolbar input, .history-actions button { min-height: 44px; width: 100%; }
  .history-item__head { align-items: flex-start; flex-direction: column; gap: 3px; }
  .history-receipt__facts > div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .task-quick-entry__row { grid-template-columns: minmax(0, 1fr) 128px auto; }
  .task-quick-entry__row select { min-width: 0; min-height: 44px; }
  .task-list__columns { display: none; }
  .task-list__row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    gap: 8px 12px;
    padding: 10px;
  }
  .task-list__table--selectable .task-list__row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .task-list__select { justify-content: flex-start; }
  .task-list__row--blocked { padding-left: 7px; }
  .task-list__task { grid-column: 1 / -1; }
  .task-list__mobile-label { display: block; margin-bottom: 1px; color: var(--muted); font-size: 9px; font-weight: 700; text-transform: uppercase; }
  .task-list__action { grid-column: 1 / -1; }
  .task-list__action select, .task-status-select { min-height: 44px; }
  .task-list__status.is-blocking { grid-template-columns: minmax(0, 1fr); }
  .task-list__status.is-blocking button, .block-reason input { min-height: 44px; }
  .task-edit { grid-template-columns: minmax(0, 1fr); }
  .task-edit input, .task-edit textarea, .task-edit select, .task-edit__actions button { min-height: 44px; }
  .task-edit__actions button { flex: 1 1 0; }
}

@media (max-width: 470px) {
  button, .brand, .session-controls .secondary { min-height: 44px; }
  .top-bar { gap: 6px; padding: 0 7px; }
  .brand { gap: 6px; }
  .brand strong { font-size: 12px; }
  .brand-mark { width: 26px; height: 26px; }
  .environment { padding-inline: 5px; font-size: 10px; }
  .top-bar__future { min-width: 0; }
  .session-controls .secondary { padding-inline: 8px; }
  .app-main--gate { min-height: calc(100vh - 46px); padding: 28px 12px 36px; }
  .auth-panel { padding: 18px; }
  .auth-panel input { min-height: 44px; }
  .section-head { align-items: flex-start; }
  .workspace-badge { min-height: 26px; }
  .workspace-panel { border-radius: 4px; }
  .capture-card { padding: 13px; }
  .mp3-drop-zone { align-items: stretch; padding: 14px 11px; }
  .mp3-drop-zone button { width: 100%; }
  .upload-details { grid-template-columns: 68px minmax(0, 1fr); }
  .admitted-recordings-heading,
  .admitted-recording-heading { align-items: stretch; flex-direction: column; }
  .admitted-recordings-heading button,
  .transcription-handoff button { width: 100%; }
  .status-chip { max-width: none; text-align: left; }
  .details-list > div { grid-template-columns: 1fr; gap: 3px; }
  .task-toolbar__actions button, .task-entry input, .task-entry textarea,
  .task-entry__actions button, .task-card__actions button, .block-reason input,
  .date-arrow, .task-quick-entry__row input, .task-quick-entry__row select, .task-quick-entry__row button,
  .task-quick-entry__options input, .task-quick-entry__options textarea,
  .review-queue__content > .secondary, .task-list__action select, .task-status-select { min-height: 44px; }
  .review-item, .next-action__buttons button { min-height: 44px; }
  .general-approval, .approved-knowledge { padding-inline: 10px; }
  .general-approval-actions,
  .general-approval-downstream__grid,
  .approved-knowledge-boundaries { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  .spinner, .recording-dot { animation: none; }
}

/* ---------- Conclusions and follow-up work ---------- */
.conclusions-follow-up {
  display: grid;
  gap: 16px;
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
}

.conclusions-follow-up__heading,
.subsection-heading,
.conclusion-card__heading,
.follow-up-card__heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}

.conclusions-follow-up__heading h2,
.subsection-heading h3,
.conclusion-card__heading h3,
.follow-up-card__heading h3 {
  margin: 0;
  overflow-wrap: anywhere;
}

.conclusions-follow-up__heading p {
  margin: 4px 0 0;
  color: var(--muted);
}

.authority-chip,
.source-state,
.due-state {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.authority-chip { color: #075985; background: #e0f2fe; }
.source-state--current { color: #166534; background: #dcfce7; }
.source-state--superseded,
.source-state--unavailable { color: #991b1b; background: #fef2f2; }

.conclusions-follow-up__boundary,
.conclusion-read-only {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 12px;
  border-radius: 6px;
  background: #f8fafc;
  color: #334155;
}

.conclusion-read-only { border: 1px solid #cbd5e1; }

.conclusion-group,
.follow-up-group {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.conclusion-cards,
.follow-up-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  min-width: 0;
}

.conclusion-card,
.follow-up-card {
  display: grid;
  align-content: start;
  gap: 12px;
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #fff;
}

.conclusion-card--approved {
  border-color: #86efac;
  box-shadow: inset 3px 0 0 #22c55e;
}

.conclusion-card--evidence_requested,
.follow-up-card--blocked {
  border-color: #fdba74;
  box-shadow: inset 3px 0 0 #f97316;
}

.conclusion-card--rejected {
  border-color: #fca5a5;
  box-shadow: inset 3px 0 0 #ef4444;
}

.conclusion-card__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  color: var(--muted);
}

.due-state { color: #475569; background: #f1f5f9; }
.due-state--overdue { color: #991b1b; background: #fee2e2; }
.due-state--due_today { color: #92400e; background: #fef3c7; }

.conclusion-source,
.conclusion-authority,
.follow-up-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  min-width: 0;
}

.conclusion-source div,
.conclusion-authority div,
.follow-up-facts div {
  min-width: 0;
  padding: 8px;
  border-radius: 4px;
  background: #f8fafc;
}

.conclusion-source dt,
.conclusion-authority dt,
.follow-up-facts dt {
  margin-bottom: 2px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .025em;
}

.conclusion-source dd,
.conclusion-authority dd,
.follow-up-facts dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.conclusion-source code,
.follow-up-facts code {
  font-size: 12px;
  white-space: normal;
  overflow-wrap: anywhere;
}

.conclusion-card__actions,
.follow-up-card__actions,
.follow-up-block-form {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.conclusion-card__actions button,
.follow-up-card__actions button,
.follow-up-block-form button,
.conclusions-follow-up__state button {
  min-height: 44px;
}

.follow-up-block-form input {
  flex: 1 1 15rem;
  min-width: 0;
  min-height: 44px;
}

.conclusion-decision,
.authority-note,
.follow-up-blocker,
.empty-state-inline {
  margin: 0;
  overflow-wrap: anywhere;
}

.authority-note {
  padding: 8px;
  border-left: 3px solid #94a3b8;
  color: var(--muted);
  background: #f8fafc;
}

.follow-up-blocker { color: #9a3412; font-weight: 650; }
.conclusions-follow-up__state { min-height: 112px; }

@media (max-width: 760px) {
  .conclusions-follow-up { padding: 16px; }
  .conclusions-follow-up__heading,
  .conclusion-card__heading,
  .follow-up-card__heading {
    align-items: stretch;
    flex-direction: column;
  }
  .conclusion-cards,
  .follow-up-cards,
  .conclusion-source,
  .conclusion-authority,
  .follow-up-facts {
    grid-template-columns: minmax(0, 1fr);
  }
  .conclusion-card__actions,
  .follow-up-card__actions,
  .follow-up-block-form {
    align-items: stretch;
    flex-direction: column;
  }
  .conclusion-card__actions button,
  .follow-up-card__actions button,
  .follow-up-block-form button,
  .follow-up-block-form input { width: 100%; }
}
