.lt {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 16px 16px 96px;
  display: grid;
  gap: 14px;
  color: var(--text);
}
.lt-top, .lt-card, .lt-transcript, .lt-sources {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
}
.lt-top, .lt-card { padding: 16px; display: grid; gap: 12px; }
.lt h1 { margin: 0; font-size: 1.45rem; letter-spacing: -.03em; color: var(--text); }
.lt-lead, .lt-source p, .lt-facts dt { color: var(--muted); }
.lt-tabs, .lt-actions, .lt-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.lt-tabs button[aria-selected="true"] {
  background: var(--accent-soft);
  border-color: transparent;
  color: var(--text);
}
.lt-grid { display: grid; gap: 14px; }
.lt-field { display: grid; gap: 6px; color: var(--text); }
.lt-field select, .lt-field input, .lt-filters input, .lt-filters select {
  min-height: 44px;
  border-radius: 12px;
  border: 1px solid var(--line);
  padding: 0 12px;
  background: var(--surface-raised);
  color: var(--text);
}
.lt-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0; }
.lt-facts div, .lt-source {
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--surface-raised);
  color: var(--text);
}
.lt-facts dd { margin: 2px 0 0; font-weight: 700; color: var(--text); overflow-wrap: anywhere; }
.lt-banner { padding: 12px 14px; border-radius: 14px; background: rgba(232, 168, 74, .15); color: #f3d7a1; }
.lt-banner.bad { background: rgba(224, 120, 128, .16); color: #f0b4b8; }
.lt-banner.ok { background: rgba(94, 201, 143, .16); color: #b7ebc9; }
.lt-meter { height: 10px; border-radius: 999px; background: var(--line-strong); overflow: hidden; }
.lt-meter span { display: block; height: 100%; width: 0; background: #5ec98f; }
.lt-start { width: 100%; min-height: 64px; font-size: 1.15rem; }
.lt-stop {
  width: 100%;
  min-height: 56px;
  position: sticky;
  bottom: 12px;
  z-index: 3;
  background: #e7c07a;
  color: #1c1917;
  border: 0;
}
.lt-note, .lt-status { color: var(--muted); margin: 0; }
.lt-status { display: grid; gap: 4px; padding-left: 18px; }
.lt-transcript { font-size: 1.2rem; line-height: 1.55; min-height: 42vh; max-height: 70vh; overflow: auto; padding: 8px; }
.lt-interim p::before { content: "Provisional · "; font-size: .75rem; color: var(--muted); }
.lt-meter span { background: #7aa8e8; }
body.lt-focus .wm-rail, body.lt-focus .wm-dock { visibility: hidden; }
body.lt-focus .lt { max-width: 860px; }
@media (max-width: 720px) {
  .lt-transcript { font-size: 1.15rem; min-height: 50vh; }
  .lt-stop { bottom: 8px; }
}
.lt-line { padding: 10px 12px; border-radius: 12px; }
.lt-line + .lt-line { margin-top: 6px; }
.lt-line time, .lt-line .who { color: var(--muted); font-size: .78rem; margin-right: 8px; }
.lt-interim { background: var(--accent-soft); }
.lt-final { background: var(--surface-raised); }
.lt-sources, .lt-list { display: grid; gap: 8px; padding: 8px; }
.lt-list button { text-align: left; }
@media (min-width: 800px) {
  .lt-grid { grid-template-columns: 340px 1fr; align-items: start; }
  .lt-facts { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 720px) {
  .lt { padding-inline: 12px; }
  .lt-facts { grid-template-columns: 1fr; display: grid; }
}

/* ---- live page layout ---------------------------------------------------
   The page is exactly one screen high. Only the panel in the middle scrolls, and
   the live captions do not scroll at all: they show the end of the newest speech. */
.lt-live { display: flex; flex-direction: column; min-height: 0; min-width: 0; }
body.lt-capture .lt { width: 100%; max-width: none; margin: 0; height: 100dvh; padding: 12px clamp(16px, 2.5vw, 48px); display: flex; flex-direction: column; gap: 0; overflow: hidden; }
body.lt-capture .lt-live { flex: 1; min-width: 0; }
@media (max-width: 1023px) { body.lt-capture .lt { height: calc(100dvh - var(--wm-dock, 56px)); padding: 8px 16px; } }

/* Controls wrap on a narrow window, so none is pushed out of sight. */
.lt-bar { position: relative; z-index: 4; flex: none; display: grid; gap: 8px; padding-bottom: 8px; }
.lt-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-width: 0; }
.lt-seg, .lt-state, .lt-clock, .lt-bar .lt-start, .lt-bar .lt-stop, .lt-brand, #ltNew, #ltTxt, #ltMoreOptions { flex: none; }
#ltNew[hidden], #ltTxt[hidden], .lt-stop[hidden], .lt-start[hidden] { display: none; }
.is-recording .lt-row-choices { display: none; }
.lt-native { position: absolute; width: 1px; height: 1px; min-height: 0; margin: 0; padding: 0; border: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); }
.lt-seg { display: flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--surface); }
.lt-seg button { min-height: 32px; padding: 0 10px; border: 0; border-radius: 0; background: transparent; color: var(--muted); font-size: .82rem; }
.lt-seg button[aria-pressed="true"] { background: rgba(255, 255, 255, 0.06); color: var(--text); }
.lt-seg button + button { border-left: 1px solid var(--line); }
.lt-spacer { display: none; }
.lt-brand { font-weight: 650; letter-spacing: -0.02em; color: var(--text); }
@media (min-width: 1024px) { html.wm-has-shell .lt-brand { display: none; } }
/* The state label changes with every pause; its width must not. */
.lt-bar .lt-state { width: 11em; max-width: 100%; padding: 0; height: 32px; line-height: 32px; border: 0; background: transparent; color: var(--muted); font-size: .82rem; text-align: left; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lt-state::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 8px; border-radius: 50%; background: var(--faint); vertical-align: 1px; }
.lt-state[data-kind="ok"]::before { background: var(--green); }
.lt-state[data-kind="wait"]::before { background: var(--orange); }
.lt-state[data-kind="bad"]::before { background: var(--coral); }
.is-recording .lt-state { color: var(--text); border-color: rgba(253, 164, 175, 0.35); }
.is-recording .lt-state::before { background: #fb7185; animation: lt-pulse 1.8s ease-in-out infinite; }
@keyframes lt-pulse { 50% { opacity: .45; } }
.lt-clock { font-variant-numeric: tabular-nums; color: var(--faint); min-width: 5.5em; font-size: .85rem; }
.is-recording .lt-clock { color: var(--text); }
.lt-bar .lt-start, .lt-bar .lt-stop, .lt-bar button { width: auto; min-height: 34px; height: 34px; font-size: .86rem; position: static; padding: 0 12px; border-radius: 8px; white-space: nowrap; }
.lt-bar .lt-start { background: var(--accent); color: var(--accent-ink); border-color: transparent; font-weight: 650; }
.lt-bar .lt-start:hover:not(:disabled) { filter: brightness(1.06); background: var(--accent); }
.lt-bar .lt-stop { background: transparent; color: var(--coral); border: 1px solid rgba(253, 164, 175, 0.4); }
.lt-bar .lt-stop:hover:not(:disabled) { background: rgba(253, 164, 175, 0.08); }
.lt-bar select.lt-lang { flex: none; width: auto; height: 32px; min-height: 32px; margin: 0; padding: 0 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--text); font-size: .82rem; }
.lt-options { position: absolute; top: calc(100% + 6px); right: 0; width: min(420px, 100%); max-height: 60vh; overflow: auto; background: #141416; border: 1px solid var(--line-strong); border-radius: 12px; padding: 14px; display: grid; gap: 10px; box-shadow: var(--shadow); }
.lt-options[hidden] { display: none; }
.lt-diag { display: grid; gap: 2px; margin: 8px 0; color: var(--muted); font-size: .82rem; }
.lt-diag span:empty { display: none; }

.lt-views { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 8px; border-bottom: 1px solid var(--line); }
.lt-tabbar { display: flex; min-width: 0; gap: 4px; }
.lt-tabbar button { width: auto; min-height: 36px; padding: 0 2px; margin-right: 16px; border: 0; border-bottom: 2px solid transparent; border-radius: 0; background: transparent; color: var(--faint); font-size: .86rem; white-space: nowrap; }
.lt-tabbar button:hover { color: var(--text); background: transparent; }
.lt-tabbar button[aria-selected="true"] { border-bottom-color: var(--accent); color: var(--text); font-weight: 600; }
.lt-tabbar button[hidden], .lt-times[hidden] { display: none; }
.lt-times { display: flex; align-items: center; gap: 4px; color: var(--muted); font-size: .85rem; }

.lt-page { position: relative; flex: 1; min-height: 0; display: flex; flex-direction: column; }
.lt-line, .lt-final, .lt-interim { background: transparent; border: 0; padding: 0; margin: 0; }
.lt-pending { color: #d4d4d8; font-style: italic; }

/* The live transcript fills whatever height the controls leave. Confirmed
   paragraphs stay and the window scrolls; provisional words sit at the end. */
.lt-stage { position: relative; flex: 1 1 auto; min-height: 0; max-height: none; display: flex; flex-direction: column; margin: 10px 0 0; border: 0; border-radius: 0; background: transparent; overflow: hidden; }
.lt-stage:not(:has(> .lt-empty:not([hidden]))) { border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.lt-stage[hidden] { display: none; }
.lt-window { flex: 1 1 auto; min-height: 0; max-height: none; display: flex; flex-direction: column; justify-content: flex-start; overflow-x: hidden; overflow-y: auto; overflow-anchor: none; padding: 16px 18px 28px; scrollbar-gutter: stable; }
.lt-captions-doc { flex: none; width: 100%; max-width: 68rem; margin: 0; color: var(--text); font-size: 1.15rem; line-height: 1.7; font-weight: 450; letter-spacing: -0.015em; }
.lt-captions-doc .lt-para { margin: 0 0 .9em; }
.lt-captions-doc .lt-para[data-time]::before { content: attr(data-time); display: block; margin-bottom: .15em; font-size: .72rem; line-height: 1.4; color: var(--faint); font-style: normal; font-variant-numeric: tabular-nums; }
.lt-legend { flex: none; margin: 0; padding: 7px 16px; border-top: 1px solid var(--line); color: var(--faint); font-size: .72rem; letter-spacing: 0.01em; }
.lt-stage:has(> .lt-empty:not([hidden])) { justify-content: center; }
.lt-stage:has(> .lt-empty:not([hidden])) .lt-legend { display: none; }
.lt-stage > .lt-empty { max-width: 36rem; margin: 0; padding: 0 16px; text-align: left; line-height: 1.55; color: var(--faint); }
.lt-stage > .lt-empty:not([hidden]) + .lt-window { display: none; }
.lt-stage > .lt-jump { bottom: 44px; }
.lt-empty { color: var(--muted); }
.lt-empty[hidden] { display: none; }

/* The full transcript and the summary scroll inside the same space. */
.lt-page .lt-transcript { position: relative; flex: 1; inset: auto; overflow-y: auto; max-height: none; min-height: 0; background: transparent; border: 0; border-radius: 0; padding: 16px 8px 28px; overflow-anchor: none; scrollbar-gutter: stable; }
.lt-doc, .lt-detail-doc { max-width: 1040px; margin: 0 auto; color: var(--text); font-size: 1.05rem; line-height: 1.7; letter-spacing: -0.011em; }
.lt-para { margin: 0 0 1em; overflow-wrap: anywhere; }
.lt-times-on .lt-para[data-time]::before { content: attr(data-time); display: block; font-size: .72rem; line-height: 1.4; color: var(--muted); font-variant-numeric: tabular-nums; }
.lt-gaps { max-width: 1040px; margin: 0 auto 1.2em; padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; color: var(--text); font-size: .9rem; }
.lt-gaps[hidden] { display: none; }
.lt-gaps summary { cursor: pointer; color: var(--muted); font-size: .85rem; }
.lt-gaps ul { margin: .4em 0 0; padding-left: 1.1em; color: var(--muted); font-size: .82rem; }
.lt-page .lt-summary-view { flex: 1; min-height: 0; overflow-y: auto; padding: 18px 0 32px; }
.lt-page .lt-summary-view[hidden], .lt-page .lt-transcript[hidden], .lt-detail-summary[hidden] { display: none; }
.lt-summary-body { max-width: 1040px; margin: 0 auto; color: var(--text); line-height: 1.55; }
.lt-summary-body h2 { margin: 0 0 .2em; font-size: 1.55rem; font-weight: 620; letter-spacing: -0.035em; }
.lt-summary-body h3 { margin: 0 0 .55em; font-size: .72rem; font-weight: 650; letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); }
.lt-summary-section { margin: 0 0 4px; padding: 16px 0 12px; border: 0; border-top: 1px solid var(--line); border-radius: 0; background: transparent; }
.lt-summary-body ul { margin: 0; padding: 0; list-style: none; display: grid; gap: .7em; }
.lt-summary-body li { overflow-wrap: anywhere; }
.lt-summary-time { display: inline-block; margin-right: .55em; color: var(--faint); font-family: var(--mono); font-size: .72rem; font-variant-numeric: tabular-nums; }
.lt-summary-owner { display: block; margin-top: .2em; color: var(--muted); font-size: .82rem; }
.lt-summary-note { margin: .35em 0 .8em; color: var(--muted); font-size: .88rem; }
.lt-written { display: grid; gap: 12px; }
.lt-written button { justify-self: start; margin: .2em 0 .4em; }
.lt-written-wait { margin: 0; font-weight: 600; }
.lt-quotes { margin-top: .4em; }
.lt-quotes > summary, .lt-proof > summary { cursor: pointer; color: var(--muted); font-size: .85rem; }
.lt-proof { margin-top: .35em; }
.lt-proof p { margin: .35em 0 0; padding: .35em 0 .35em .7em; border-left: 2px solid var(--line); }
.lt-summary-warning, .lt-summary-caution { margin: 0 0 14px; padding: 0 0 0 10px; border: 0; border-left: 2px solid rgba(251, 191, 36, 0.55); border-radius: 0; background: none; color: var(--muted); font-size: .9rem; }

/* Notices float over the panel, so showing one never moves the text. */
.lt-notices { position: absolute; left: 0; right: 14px; top: 18px; z-index: 3; display: grid; gap: 6px; pointer-events: none; }
.lt-notices .lt-banner { margin: 0 auto; max-width: 52ch; font-size: .84rem; border: 1px solid var(--line-strong); border-radius: 10px; backdrop-filter: blur(10px); background-color: rgba(24, 24, 27, 0.92); color: var(--text); }
.lt-notices .lt-banner.bad { background-color: rgba(60, 24, 28, 0.92); }
.lt-notices .lt-banner.ok { background-color: rgba(16, 40, 32, 0.92); }
.lt-notices .lt-banner[hidden] { display: none; }
.lt-jump { position: absolute; left: 50%; transform: translateX(-50%); bottom: 52px; z-index: 3; border-radius: 999px; padding: 6px 16px; min-height: 36px; }
.lt-jump[hidden] { display: none; }

/* A quiet status line: saved words, delay, result and engine. */
.lt-foot { flex: none; display: flex; align-items: center; gap: 14px; height: 32px; margin-top: 20px; overflow: hidden; white-space: nowrap; color: var(--faint); font-size: .74rem; letter-spacing: 0.01em; }
.lt-page:has(.lt-transcript:not([hidden])) .lt-foot,
.lt-page:has(.lt-stage:not([hidden])) .lt-foot { margin-top: 8px; }
.lt-foot > span { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.lt-foot > span:empty { display: none; }
.lt-foot > #ltConnLine, .lt-foot > #ltResult { flex: 1 1 0; }
.lt-foot > .lt-engine { margin-left: auto; max-width: 18em; }
.lt-perf { flex: none; border-top: 1px solid var(--line); background: var(--surface); }
.lt-perf[hidden] { display: none; }
.lt-perf > summary { cursor: pointer; padding: 4px 8px; color: var(--muted); font-size: .78rem; }
.lt-perf-body { max-height: 9rem; overflow: auto; margin: 0; padding: 0 8px 8px; color: var(--muted); font-size: .78rem; line-height: 1.45; white-space: pre-wrap; }

@media (min-width: 1024px) {
  html.wm-has-shell #ltPageHead .lt-lead:has(a[href="/settings.html"]) { display: none; }
}
@media (max-width: 900px) {
  .lt-summary-body h2 { font-size: 1.3rem; }
}
@media (max-width: 720px) {
  .lt-brand { display: none; }
  .lt-bar .lt-state { width: auto; max-width: 12em; flex: 0 1 auto; }
  .lt-bar .lt-start, .lt-bar .lt-stop, .lt-bar button,
  .lt-bar select.lt-lang {
    min-height: 44px;
    height: 44px;
    padding: 0 10px;
    font-size: .85rem;
  }
  .lt-row-choices { display: grid; grid-template-columns: 1fr 1fr; align-items: center; }
  .lt-row-choices .lt-seg { grid-column: 1 / -1; width: 100%; }
  .lt-row-choices .lt-seg button { flex: 1 1 auto; }
  .lt-row-choices select.lt-lang { width: 100%; min-width: 0; }
  .lt-tabbar button { margin-right: 12px; padding: 0; font-size: .82rem; }
  .lt-stage { margin: 8px 0 0; }
  .lt-foot { gap: 8px; }
  .lt-foot > #ltConnLine { display: none; }
}

/* Library, search and saved transcript — same product, not a second theme. */
body:not(.lt-capture) .lt {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 28px clamp(16px, 2.5vw, 40px) 80px;
  gap: 16px;
}
body:not(.lt-capture) .lt-top {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
}
body:not(.lt-capture) .lt h1 {
  font-size: 1.7rem;
  font-weight: 620;
  letter-spacing: -0.04em;
}
body:not(.lt-capture) .lt-lead { max-width: 62ch; margin: 6px 0 0; line-height: 1.5; }
body:not(.lt-capture) .lt-filters {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 8px;
  align-items: center;
}
body:not(.lt-capture) .lt-filters > * {
  width: 100%;
  max-width: none;
  min-width: 0;
  margin: 0;
}
body:not(.lt-capture) #ltSearch { grid-column: span 4; }
body:not(.lt-capture) #ltDate,
body:not(.lt-capture) #ltDateTo,
body:not(.lt-capture) #ltFilterCompletion,
body:not(.lt-capture) #ltFilterCategory { grid-column: span 2; }
body:not(.lt-capture) #ltFilterLanguage,
body:not(.lt-capture) #ltSort,
body:not(.lt-capture) #ltSelectMode,
body:not(.lt-capture) .lt-filters .lt-times { grid-column: span 3; }
.lt-filters input, .lt-filters select {
  width: 100%;
  min-height: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--surface);
  font-size: .86rem;
}
body:not(.lt-capture) .lt-filters button,
body:not(.lt-capture) #ltFilters #ltSelectMode {
  width: 100%;
  min-height: 36px;
  height: 36px;
  max-height: 36px;
  padding-top: 0;
  padding-bottom: 0;
  justify-content: center;
}
body:not(.lt-capture) .lt-filters .lt-times {
  width: auto;
  height: auto;
  min-height: 0;
  max-height: none;
  justify-self: start;
  justify-content: flex-start;
  background: transparent;
  border: 0;
  gap: 8px;
}
body:not(.lt-capture) .lt-filters input[type="checkbox"] {
  width: 16px;
  height: 16px;
  min-height: 0;
  padding: 0;
}
#view-inbox .lt-list {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0;
  gap: 0;
  overflow: hidden;
}
.hm-day {
  margin: 18px 16px 2px;
  font-size: .72rem;
  font-weight: 650;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--faint);
}
.hm-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
  padding: 12px 16px;
  border-top: 1px solid var(--line);
}
.hm-open {
  flex: 1 1 auto;
  min-width: 10rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  width: auto;
  height: auto;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  text-align: left;
  white-space: normal;
}
.hm-open:hover { background: transparent; }
.hm-row:hover { background: rgba(255, 255, 255, 0.03); }
.hm-title {
  font-size: 1rem;
  font-weight: 620;
  letter-spacing: -0.02em;
  line-height: 1.35;
  overflow-wrap: break-word;
  word-break: normal;
}
.hm-meta, .hm-snippet {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  color: var(--muted);
  font-size: .82rem;
  line-height: 1.4;
  overflow-wrap: break-word;
  word-break: normal;
}
.hm-snippet { display: block; color: var(--faint); }
.hm-status, .hm-cat, .hm-class button, .hm-more, #ltSelectMode, #ltBulkTxt { white-space: nowrap; }
.hm-status.is-partial { color: var(--orange); }
.hm-class { display: flex; flex-wrap: wrap; gap: 6px; flex: none; max-width: 100%; }
.hm-class button, .hm-more, #ltSelectMode, #ltBulkTxt { width: auto; min-height: 34px; height: auto; }
.hm-change { display: flex; gap: 6px; flex-wrap: wrap; }
.hm-change[hidden] { display: none; }
.hm-menu { position: relative; flex: none; }
.hm-more {
  width: 36px;
  min-height: 36px;
  height: 36px;
  padding: 0;
  border-radius: 10px;
  color: var(--muted);
  background: transparent;
  letter-spacing: .12em;
}
.hm-pop {
  position: absolute;
  z-index: 5;
  top: 40px;
  right: 0;
  min-width: 11rem;
  padding: 6px;
  display: grid;
  gap: 2px;
  background: #18181b;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, .35);
}
.hm-pop[hidden] { display: none; }
.hm-pop button {
  width: 100%;
  min-height: 36px;
  height: auto;
  justify-content: flex-start;
  padding: 0 10px;
  background: transparent;
  color: var(--text);
}
.hm-pop button:hover { background: rgba(255, 255, 255, .05); }
#ltConfirm {
  width: min(28rem, calc(100vw - 32px));
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background: #18181b;
  color: var(--text);
  padding: 20px;
}
#ltConfirm::backdrop { background: rgba(0, 0, 0, .55); }
#ltConfirm h2 { margin: 0 0 8px; font-size: 1.05rem; }
#ltConfirm p { margin: 0 0 16px; color: var(--muted); }
#ltConfirm .lt-actions { justify-content: flex-end; }
#ltBulkTrash:disabled { opacity: .45; }
.lt-bulk { display: flex; margin: 0 0 8px; }
@media (max-width: 1180px) {
  body:not(.lt-capture) .lt-filters { grid-template-columns: 1fr 1fr; }
  body:not(.lt-capture) #ltSearch { grid-column: 1 / -1; }
  body:not(.lt-capture) #ltDate,
  body:not(.lt-capture) #ltDateTo,
  body:not(.lt-capture) #ltFilterCompletion,
  body:not(.lt-capture) #ltFilterCategory,
  body:not(.lt-capture) #ltFilterLanguage,
  body:not(.lt-capture) #ltSort,
  body:not(.lt-capture) #ltSelectMode,
  body:not(.lt-capture) .lt-filters .lt-times { grid-column: auto; }
}
@media (max-width: 720px) {
  body:not(.lt-capture) .lt { padding: 16px 16px 32px; }
  body:not(.lt-capture) .lt-filters input,
  body:not(.lt-capture) .lt-filters select,
  body:not(.lt-capture) #ltFilters #ltSelectMode {
    min-height: 44px;
    height: 44px;
    max-height: 44px;
  }
  .hm-row { flex-wrap: wrap; }
  .mtg-bar { flex-wrap: wrap; align-items: flex-start; }
  .mtg-links { justify-content: flex-start; }
}
@media (max-width: 420px) {
  body:not(.lt-capture) .lt { padding-inline: 12px; }
}
#ltInbox > h3 {
  margin: 16px 12px 6px;
  font-size: .72rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
}
#ltInbox > p { margin: 8px 12px; color: var(--muted); }
#ltInbox > button {
  display: block;
  width: 100%;
  margin: 0;
  padding: 12px 14px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  text-align: left;
  min-height: 0;
  height: auto;
  font-weight: 450;
  line-height: 1.45;
}
#ltInbox > button:hover { background: rgba(255, 255, 255, 0.04); }
#ltInbox > button strong { font-weight: 620; letter-spacing: -0.02em; }
#ltInbox > .lt-check {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 8px 12px 0;
  color: var(--faint);
  font-size: .78rem;
}
#ltInbox > #ltMoreRows, #ltInbox > #ltMoreHits {
  margin: 8px;
  width: auto;
  justify-self: start;
}
#view-detail.lt-card, #view-data.lt-card {
  background: transparent;
  border: 0;
  padding: 0;
}
#ltDetail h2, #view-data h2 {
  margin: 0 0 8px;
  font-size: 1.6rem;
  font-weight: 620;
  letter-spacing: -0.035em;
}

/* A saved meeting reads like a note: title, one line, then the text. */
#view-detail { width: min(46rem, 100%); max-width: 46rem; margin: 4px auto 48px; padding: 4px 0 72px; }
.mtg-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.mtg-links { display: flex; flex-wrap: wrap; gap: 2px; justify-content: flex-end; }
button.mtg-link {
  width: auto;
  min-height: 32px;
  height: auto;
  padding: 4px 8px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 550;
  border-radius: 8px;
  line-height: 1.2;
}
button.mtg-link:hover:not(:disabled) { background: rgba(255, 255, 255, .05); border-color: transparent; color: var(--text); }
.mtg-title { margin: 22px 0 8px; font-size: clamp(1.45rem, 2.4vw, 1.9rem); font-weight: 640; letter-spacing: -0.035em; line-height: 1.15; }
.mtg-meta { margin: 0 0 28px; color: var(--muted); font-size: .92rem; }
.mtg-kicker { margin: 0 0 12px; color: var(--faint); font-size: .72rem; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; }
.mtg-read { margin: 0 0 36px; }
.mtg-read[hidden], .mtg-panel[hidden] { display: none; }
.mtg-read p { margin: 0 0 .9em; font-size: 1.05rem; line-height: 1.7; }
.mtg-read h3 { margin: 1.35em 0 .35em; font-size: 1.02rem; font-weight: 620; letter-spacing: -0.02em; text-transform: none; }
.mtg-read ul { margin: 0 0 1em; padding-left: 1.15em; }
.mtg-read li { margin: .35em 0; line-height: 1.6; }
.mtg-doc { font-size: 1.06rem; line-height: 1.75; }
.mtg-doc .lt-para { margin: 0 0 1.05em; }
.mtg-panel { margin-top: 40px; padding-top: 16px; border-top: 1px solid var(--line); display: grid; gap: 12px; justify-items: start; }
.mtg-org { display: grid; gap: 6px; color: var(--muted); font-size: .85rem; width: min(100%, 24rem); }
.mtg-org input[type="text"] { width: 100%; }
#ltClass { display: grid; gap: 8px; }
#ltClass button, #ltClass select { width: 100%; min-height: 36px; height: 36px; padding: 0 12px; font-size: 13px; font-weight: 550; }

/* Saved-meeting actions; isolated from the live capture layout. */
.hm-menu { position: relative; align-self: start; flex: 0 0 auto; }
.hm-menu > summary { cursor: pointer; padding: .7rem; list-style: none; border-radius: .6rem; }
.hm-menu[open] > div { position: absolute; z-index: 5; right: 0; width: min(19rem, 80vw); padding: .6rem; background: #191d25; border: 1px solid #485164; border-radius: .7rem; box-shadow: 0 8px 24px #0008; }
.hm-menu button, .hm-menu select { width: 100%; text-align: left; margin: .2rem 0; white-space: normal; }
.hm-menu .hm-class { display: block; }
.hm-menu .hm-change { display: flex; flex-wrap: wrap; }
.hm-menu [hidden] { display: none; }
.hm-row .hm-open { min-width: 0; }
.hm-title, #ltMeetingTitle { overflow-wrap: anywhere; }
.hm-message { padding: .8rem; border: 1px solid #456655; border-radius: .6rem; }
.hm-message.is-error { border-color: #bb7575; }
#ltBulk { flex-wrap: wrap; align-items: center; gap: .5rem; }
@media (max-width: 620px) { .hm-row { grid-template-columns: auto minmax(0, 1fr) auto; } .hm-menu { grid-column: -2; } #ltBulk button { white-space: normal; } }
