/* Registry uses the existing cabinet theme; the dialog never resizes this grid. */
.ls-calls {
  min-width: 0;
  container: calls / inline-size;
  --calls-pad: clamp(14px, 2.1vw, 26px);
  --calls-columns: minmax(75px, .8fr) minmax(99px, 1.14fr) minmax(110px, 1.62fr) minmax(120px, 2.48fr) minmax(82px, .98fr) minmax(157px, 2.42fr) minmax(145px, 1.67fr);
}
.ls-calls .ls-calls__registry { padding: 0; }
.ls-calls__scope {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  padding-block: 4px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
}
.ls-calls__scope > :last-child { padding-inline-start: 12px; border-inline-start: 1px solid var(--line); }
.ls-calls__tools { padding: 15px var(--calls-pad) 18px; }
.ls-calls__toolbar, .ls-calls__register-title, .ls-calls__pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
}
.ls-calls__toolbar { justify-content: space-between; min-height: 44px; }
.ls-calls__count {
  margin: 0;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-strong);
  font-size: 13px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.ls-calls .ls-calls__reset { color: var(--brand); }
.ls-calls .ls-calls__filter-toggle { display: none; }
.ls-calls__filters {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .9fr) minmax(0, 1.35fr) minmax(0, 1.15fr);
  gap: 10px 12px;
  margin-top: 11px;
}
/* Native interaction with a separately wrapping display value. */
.ls-calls__select-wrap {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 29px 8px 11px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.3;
  overflow-wrap: anywhere;
}
.ls-calls__select-wrap:hover { border-color: var(--brand); }
.ls-calls__select-wrap:focus-within { outline: 2px solid var(--focus); outline-offset: 2px; }
.ls-calls__select-wrap select { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; }
.ls-calls__select-wrap::after, .ls-calls__filter-toggle::after {
  display: block;
  width: 7px;
  height: 7px;
  border: solid currentColor;
  border-width: 0 1.5px 1.5px 0;
  transform: translateY(-2px) rotate(45deg);
  content: '';
}
.ls-calls__select-wrap::after { position: absolute; right: 13px; color: var(--brand); pointer-events: none; }
.ls-calls__columns, .ls-calls__row {
  display: grid;
  grid-template-columns: var(--calls-columns);
  align-items: center;
  gap: 9px;
  padding-inline: var(--calls-pad);
}
.ls-calls__columns {
  min-height: 42px;
  padding-block: 8px;
  border-block: 1px solid var(--line);
  background: var(--subtle);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
}
.ls-calls__row {
  min-height: 64px;
  padding-block: 4px;
  font-size: 14px;
  line-height: 1.3;
  overflow-wrap: anywhere;
  scroll-margin-block: 8px;
}
.ls-calls__row + .ls-calls__row { border-top: 1px solid var(--line); }
.ls-calls__example { background: #faf8fb; }
.ls-calls__row:has(.ls-calls__action-btn) { cursor: pointer; }
.ls-calls__row:has(.ls-calls__action-btn):hover { background: var(--bg); }
.ls-calls__row[data-selected] { background: var(--brand-soft); box-shadow: inset 3px 0 var(--brand); }
.ls-calls__row > * { min-width: 0; }
.ls-calls__when { font-size: 16px; font-weight: 750; font-variant-numeric: tabular-nums; }
.ls-calls__identity { font-size: 13px; }
.ls-calls__secondary { display: block; margin-top: 3px; color: var(--muted); font-size: 12px; font-weight: 400; }
.ls-calls__audio { font-variant-numeric: tabular-nums; }
.ls-calls__audio time { white-space: nowrap; }
.ls-calls__stage .badge { border-radius: 7px; }
.ls-calls__outcome-label--trial { color: var(--ok); }
.ls-calls__outcome-label--missed { color: var(--bad); }
.ls-calls__checklist, .ls-calls__no-action { color: var(--muted); }
.ls-calls__mobile-label { display: none; }
.ls-calls__example-label { display: block; margin-bottom: 3px; color: var(--brand); font-size: 12px; }
.ls-calls__action { display: flex; justify-content: flex-end; align-items: center; }
.ls-calls__no-action { width: 100%; text-align: center; }
.ls-calls__action-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 32px;
  padding: 5px 7px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
  color: var(--brand);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.3;
  white-space: nowrap;
}
.ls-calls__action-btn:hover { border-color: var(--brand); }
.ls-calls__footer { border-top: 1px solid var(--line); padding: 12px var(--calls-pad); }
.ls-calls__footer p, .ls-calls__pager { font-size: 13px; }
.ls-calls__pager { margin-top: 8px; }
.ls-calls__empty { padding: 23px var(--calls-pad); border-top: 1px solid var(--line); background: var(--bg); }
.ls-calls__empty h3 { margin-bottom: 5px; }

/* Only the visible tab panel scrolls; the dialog header is a separate flex item. */
.ls-calls__drawer {
  --drawer-pad: clamp(16px, 2.1vw, 28px);
  position: fixed;
  inset: 0 0 0 auto;
  margin: 0;
  padding: 0;
  inline-size: min(100%, max(50%, 560px));
  block-size: 100vh;
  block-size: 100dvh;
  max-inline-size: none;
  max-block-size: none;
  border: 0;
  border-inline-start: 1px solid var(--line);
  overflow: hidden;
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-float);
}
.ls-calls__drawer[open] { display: flex; flex-direction: column; }
.ls-calls__drawer::backdrop { background: rgb(36 24 49 / .09); }
.main-scroll:has(.ls-calls__drawer[open]) { overflow: hidden; }
.ls-calls__drawer-head { flex: none; padding-block-start: var(--topbar-height); }
.ls-calls__drawer-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px var(--drawer-pad) 7px; }
.ls-calls__drawer-title h2 { font-size: clamp(21px, 2.5vw, 26px); overflow-wrap: anywhere; }
.ls-calls__drawer .ls-calls__close { flex: none; background: var(--subtle); color: var(--brand); }
.ls-calls__tabs { display: flex; gap: 10px; padding-inline: var(--drawer-pad); border-bottom: 1px solid var(--line); }
.ls-calls__tabs button {
  min-height: 44px;
  padding: 8px 12px 6px;
  border: 0;
  border-bottom: 3px solid transparent;
  background: transparent;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
}
.ls-calls__tabs button[aria-selected='true'] { border-color: var(--brand); color: var(--brand-strong); }
.ls-calls__tabs button:focus-visible, .ls-calls__tabpanel:focus-visible { outline-offset: -3px; }
.ls-calls__tabpanel {
  flex: 1 1 auto;
  min-block-size: 0;
  padding: 20px var(--drawer-pad) max(24px, env(safe-area-inset-bottom));
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  font-size: 14px;
  overflow-wrap: anywhere;
}
.ls-calls__intro, .ls-calls__intro-tags { display: flex; flex-wrap: wrap; align-items: start; gap: 6px 12px; }
.ls-calls__intro { justify-content: space-between; margin-bottom: 14px; }
.ls-calls__intro-tags { align-items: center; }
.ls-calls__intro-status { text-align: end; }
.ls-calls__topic { background: var(--brand-soft); color: var(--brand-strong); }
.ls-calls__summary { padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--bg); }
.ls-calls__summary h3 { margin: 0 0 5px; font-size: 14px; }
.ls-calls__meta { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 12px; margin: 14px 0 0; }
.ls-calls__meta-field dd { margin: 0; }
.ls-calls__meta-field dt { margin-bottom: 3px; color: var(--muted); font-size: 12px; font-weight: 650; }
.ls-calls__review-section { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.ls-calls__review-section h3 { margin: 0 0 7px; font-size: 17px; }
.ls-calls__review-section h4 { margin: 10px 0 5px; font-size: 13px; }
.ls-calls__review { display: grid; gap: 8px; margin: 0; }
.ls-calls__turns, .ls-calls__events { margin: 0; padding: 0; list-style: none; }
.ls-calls__turns li { padding-block: 8px; }
.ls-calls__turns li + li { border-top: 1px solid var(--line); }
.ls-calls__turn-label { display: flex; flex-wrap: wrap; gap: 4px 9px; margin-bottom: 3px; font-size: 12px; }
.ls-calls__timecode { color: var(--brand); font-weight: 700; font-variant-numeric: tabular-nums; }
.ls-calls__quote { margin: 0; padding: 10px 12px; border-radius: var(--radius-sm); background: var(--subtle); }
.ls-calls__events li { display: flex; flex-wrap: wrap; gap: 4px 9px; }
.ls-calls__events time { color: var(--muted); }
.ls-calls__check-note { margin: 9px 0; }
.ls-calls__review-block { margin-top: 16px; }
.ls-calls__review-block + .ls-calls__review-block { border-top: 1px solid var(--line); padding-top: 13px; }
.ls-calls__review-section .ls-calls__review-block h4 { margin: 0 0 7px; font-size: 15px; }
.ls-calls__review-block p + p { margin-top: 8px; }
.ls-calls__review-block p strong { color: var(--brand); }
.ls-calls__check-scope { padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--bg); }
.ls-calls__check-table { width: 100%; table-layout: fixed; margin-top: 14px; border-collapse: collapse; text-align: start; }
.ls-calls__check-table :is(th, td) { padding: 12px 10px; border-bottom: 1px solid var(--line); text-align: start; vertical-align: middle; }
.ls-calls__check-table th { font-weight: 650; }
.ls-calls__check-table thead { background: var(--subtle); color: var(--muted); font-size: 12px; }
.ls-calls__check-table thead th:nth-child(1) { width: 30%; }
.ls-calls__check-table thead th:nth-child(2) { width: 24%; }
.ls-calls__check-table tbody td:last-child { color: var(--muted); }
.ls-calls__check-table .badge { display: inline-block; }

@media (max-width: 480px) {
  .ls-calls__check-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .ls-calls__check-table, .ls-calls__check-table tbody { display: block; }
  .ls-calls__check-table tbody tr { display: grid; grid-template-columns: minmax(0, 1fr) fit-content(44%); gap: 4px 10px; padding-block: 10px; border-top: 1px solid var(--line); }
  .ls-calls__check-table :is(th, td) { padding: 0; border: 0; }
  .ls-calls__check-table tbody td:last-child { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  .ls-calls__drawer { inline-size: 100%; border-inline-start: 0; }
  .ls-calls__drawer-head { padding-block-start: env(safe-area-inset-top); }
  .ls-calls__meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ls-calls__intro-status { text-align: start; }
}

@container calls (max-width: 910px) {
  .ls-calls__columns { display: none; }
  .ls-calls__row {
    grid-template-columns: minmax(74px, max-content) minmax(0, 1fr) auto;
    grid-template-areas: 'when outcome identity' 'brief brief brief' 'stage stage checklist' 'action action action';
    gap: 6px 12px;
    padding-block: 10px;
  }
  .ls-calls__when { grid-area: when; }
  .ls-calls__identity { grid-area: identity; text-align: end; }
  .ls-calls__outcome { grid-area: outcome; }
  .ls-calls__brief { grid-area: brief; }
  .ls-calls__stage { grid-area: stage; }
  .ls-calls__checklist { grid-area: checklist; text-align: end; }
  .ls-calls__action { grid-area: action; justify-content: start; }
  .ls-calls__no-action { display: none; }
  .ls-calls__action-btn { min-height: 44px; }
  .ls-calls__mobile-label { display: inline; font-size: 12px; }
}
@container calls (max-width: 625px) {
  .ls-calls__filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ls-calls__row { grid-template-areas: 'when outcome outcome' 'brief brief brief' 'stage stage identity' 'action action checklist'; }
}
/* The first result remains reachable without scrolling on short phones. */
@media (max-width: 460px) and (max-height: 700px) {
  .ls-calls > .page-header { gap: 4px; margin-block-end: 10px; }
  .ls-calls > .page-header h1 { font-size: clamp(24px, 6.25vw, 28px); }
  .ls-calls__scope { padding-block: 1px; }
  .ls-calls__tools { padding-block: 8px; }
  .ls-calls__toolbar, .ls-calls__register-title { gap: 4px 8px; }
  .ls-calls__count { padding-inline: 6px; font-size: 12px; }
  .ls-calls .ls-calls__filter-toggle { display: inline-flex; padding-inline: 9px; color: var(--brand); }
  .ls-calls__filter-toggle::after { flex: none; }
  .ls-calls__filter-toggle[aria-expanded='true']::after { transform: translateY(2px) rotate(225deg); }
  .ls-calls__tools:has(.ls-calls__filter-toggle[aria-expanded='false']) :is(.ls-calls__filters, .ls-calls__reset) { display: none; }
  .ls-calls__row { row-gap: 4px; padding-block: 8px; }
}
