:root {
  color-scheme: dark;
  --bg: #191a1c;
  --panel: #202224;
  --surface: #242629;
  --surface-2: #26282c;
  --surface-3: #2f3237;
  --line: #30343a;
  --line-soft: rgba(255,255,255,.07);
  --text: #e8eaee;
  --muted: #a8adb5;
  --subtle: #7c828b;
  --accent: #8c73ff;
  --blue: #2f91ff;
  --green: #2fc9a6;
  --amber: #f0a742;
  --red: #ff6b6b;
  --pink: #d96aa6;
  --space-1: 8px;
  --space-2: 12px;
  --space-3: 16px;
  --space-4: 24px;
  --control-height: 36px;
  --meeting-row-height: 48px;
  --meeting-row-exception-height: 56px;
  --focus-ring: #b6aaff;
  --settings-gap: 24px;
  --app-sidebar-width: 176px;
  --app-rail-width: 64px;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, ui-sans-serif, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { min-height: 100%; margin: 0; background: var(--bg); color: var(--text); overflow-x: hidden; }
body { font-size: 13px; line-height: 1.38; letter-spacing: 0; font-weight: 500; -webkit-font-smoothing: antialiased; text-rendering: geometricPrecision; }
body.auth-leaving .auth-panel {
  opacity: 0;
  transform: translateY(-4px) scale(.992);
  filter: blur(1px);
}
body.auth-leaving .auth-page::before { opacity: .35; }
a { color: inherit; text-decoration: none; }
a, button, summary { touch-action: manipulation; }
.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;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible,
[role="option"]:focus-visible,
[tabindex]:focus-visible,
.button:focus-visible,
.skip-link:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}
button, .button, input, select {
  font: inherit;
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--text);
  border-radius: 7px;
  min-height: 32px;
}
button, .button {
  min-width: 0;
  max-width: 100%;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  overflow-wrap: anywhere;
}
button[disabled], .is-disabled { color: var(--muted); cursor: not-allowed; opacity: .72; }
input, select { padding: 0 10px; width: 100%; min-width: 0; }
.primary { background: var(--blue); border-color: var(--blue); color: white; font-weight: 700; }
.quiet { background: transparent; }
.skip-link {
  position: fixed;
  z-index: 100;
  top: 10px;
  left: 10px;
  transform: translateY(-140%);
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
  color: var(--text);
  padding: 8px 10px;
}
.skip-link:focus { transform: translateY(0); }
.app-shell {
  --playback-inline-start: var(--app-sidebar-width);
  height: 100vh;
  min-height: 0;
  overflow: hidden;
  display: grid;
  grid-template-columns: var(--app-sidebar-width) minmax(0, 1fr);
}
.app-shell.desktop-embedded {
  grid-template-columns: var(--app-sidebar-width) minmax(0, 1fr);
}
.sidebar {
  position: sticky;
  top: 0;
  align-self: start;
  height: 100vh;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  background: var(--panel);
  border-right: 1px solid var(--line);
  padding: 12px 10px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.brand { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 10px; align-items: center; }
.brand--wordmark {
  grid-template-columns: minmax(0, 1fr);
  gap: 5px;
  align-items: start;
}
.workspace { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 8px; align-items: center; }
.brand-mark, .avatar {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-weight: 800;
}
.brand-mark { background: #7a2b82; color: white; }
.avatar { background: #f0f2f5; color: #24272b; width: 28px; height: 28px; border-radius: 7px; }
.brand-logo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.brand-wordmark {
  display: block;
  line-height: 0;
}
.brand-wordmark__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.brand-wordmark--sidebar {
  width: 86px;
  height: 32px;
}
.workspace-title { font-weight: 750; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.workspace-subtitle, .muted { color: var(--muted); font-size: 12px; }
.nav { display: grid; gap: 4px; }
.nav a {
  min-height: 32px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-radius: 7px;
  padding: 0 9px;
  color: #d6dae1;
}
.nav a.active, .nav a:hover { background: var(--surface-3); }
.nav-count { margin-left: auto; min-width: 20px; min-height: 20px; border-radius: 999px; background: #71347e; display: grid; place-items: center; font-size: 12px; }
.sidebar-foot { margin-top: auto; display: grid; gap: 8px; }
.sidebar-app-update {
  width: 100%;
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  padding: 0 9px;
  border: 1px solid color-mix(in srgb, var(--focus-ring) 38%, transparent);
  border-radius: 7px;
  background: color-mix(in srgb, var(--focus-ring) 10%, transparent);
  color: var(--focus-ring);
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.sidebar-app-update:hover {
  background: color-mix(in srgb, var(--focus-ring) 18%, transparent);
  color: var(--text);
}
.sidebar-app-update:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}
.sidebar-app-update[hidden] { display: none !important; }
.sidebar-app-update:not([hidden]) { margin-top: auto; }
.sidebar-app-update:not([hidden]) + .sidebar-foot { margin-top: 0; }
.sidebar-app-update .ui-icon { flex: 0 0 auto; }
.sidebar-logout {
  margin: 0;
  min-width: 0;
}
.sidebar-logout__button {
  width: 100%;
  justify-content: flex-start;
  border-color: transparent;
  background: transparent;
  color: var(--muted);
  min-height: 32px;
  padding: 0 9px;
}
.sidebar-logout__button:hover {
  background: var(--surface-3);
  color: var(--text);
}
.sidebar-logout__button .ui-icon {
  flex: 0 0 auto;
}
.cabinet-rail-toggle { display: none; }
.main,
.cabinet-main {
  height: 100vh;
  min-height: 0;
  overflow-y: auto;
}
.main { min-width: 0; padding: 28px clamp(24px, 7vw, 118px) 92px; }
.detail-page-main { padding-bottom: 192px; }
.desktop-embedded .main {
  padding: 22px clamp(18px, 4vw, 64px) 28px;
}
.desktop-embedded .detail-page-main { padding-bottom: 192px; }
.topline { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 18px; }
.page-title { display: grid; gap: 2px; min-width: 0; }
h1 { margin: 0; font-size: 24px; line-height: 1.15; letter-spacing: 0; font-weight: 700; }
.page-subtitle { color: var(--muted); font-weight: 600; }
.crumbs { display: flex; gap: 9px; align-items: center; min-width: 0; color: var(--muted); flex-wrap: wrap; }
.crumbs strong { color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: min(62vw, 760px); }
.action-row { position: relative; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.section-title { margin: 22px 0 10px; color: #c6cad1; font-size: 12px; font-weight: 700; }
.list-card { max-width: 980px; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: #1d1f21; }
.meeting-row {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) minmax(128px, auto) minmax(112px, auto);
  gap: 12px;
  align-items: center;
  min-height: 58px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
}
.meeting-row:last-child { border-bottom: 0; }
.meeting-row:hover { background: #282c31; }
.row-icon { color: var(--muted); font-size: 16px; }
.row-title { font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }
.row-meta { color: var(--muted); font-size: 12px; display: flex; gap: 9px; flex-wrap: wrap; }
.upload-progress-meter {
  width: min(180px, 40vw);
  height: 6px;
  display: inline-flex;
  align-self: center;
  overflow: hidden;
  border-radius: 999px;
  background: #34383e;
}
.upload-progress-meter__bar {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #2088ff;
}
.row-actions { display: flex; gap: 6px; justify-content: flex-end; flex-wrap: wrap; }
.chip {
  border: 1px solid var(--line);
  border-radius: 999px;
  min-height: 24px;
  min-width: 0;
  max-width: 100%;
  padding: 0 9px;
  display: inline-flex;
  align-items: center;
  color: #d9dde4;
  font-size: 12px;
  overflow-wrap: anywhere;
}
.chip.ready, .chip.owner, .chip.team, .chip.shared, .chip.available, .chip.completed, .chip.prepared { color: var(--green); border-color: rgba(47,201,166,.48); background: rgba(47,201,166,.08); }
.chip.processing, .chip.submitted, .chip.uploading, .chip.partial, .chip.requested { color: var(--accent); border-color: rgba(125,107,255,.48); background: rgba(125,107,255,.08); }
.chip.local_only, .chip.deferred, .chip.unavailable, .chip.disabled, .chip.missing, .chip.deleted_future { color: var(--subtle); }
.chip.failed, .chip.blocked, .chip.denied, .chip.policy_blocked, .chip.owner_only, .chip.audit_unavailable { color: var(--red); border-color: rgba(255,107,107,.48); background: rgba(255,107,107,.08); }
.chip.warning { color: var(--amber); border-color: rgba(240,167,66,.5); background: rgba(240,167,66,.08); }
.icon-button { width: 32px; height: 32px; min-height: 32px; border-radius: 7px; padding: 0; color: var(--muted); }
.detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 316px; gap: 18px; align-items: start; }
.detail-main { min-width: 0; display: grid; gap: 16px; }
.tabs { display: flex; gap: 18px; border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.tab {
  appearance: none;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  font-weight: 750;
  padding: 0;
  cursor: pointer;
}
.tab.active { color: #dcd7ff; border-color: var(--accent); }
.tab-panel[hidden] { display: none; }
.panel {
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: var(--surface);
  padding: 16px;
  min-width: 0;
}
.panel h2, .panel h3, .right-panel h3 { margin: 0; font-size: 15px; letter-spacing: 0; }
.meeting-actions-menu {
  position: absolute;
  z-index: 60;
  top: calc(100% + 8px);
  right: 0;
  width: min(280px, calc(100vw - 28px));
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
  color: var(--text);
  box-shadow: 0 18px 48px rgba(0,0,0,.42);
}
.meeting-action-item {
  width: 100%;
  min-height: 48px;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 7px 10px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--text);
  text-align: left;
  text-decoration: none;
}
.meeting-action-item:hover,
.meeting-action-item:focus-visible { background: rgba(125,107,255,.14); }
.meeting-action-item:focus-visible { outline-offset: -2px; }
.meeting-action-item__icon { width: 22px; display: grid; place-items: center; color: var(--muted); }
.meeting-action-item__body { min-width: 0; display: grid; gap: 2px; }
.meeting-action-item__body strong { font-size: 13px; line-height: 1.25; }
.meeting-action-item__body small { color: var(--muted); font-size: 11px; line-height: 1.3; }
.meeting-actions-divider { height: 1px; margin: 5px 8px; background: var(--line); }
.meeting-action-item--danger,
.meeting-action-item--danger .meeting-action-item__icon { color: var(--red); }
.meeting-action-item--danger:hover,
.meeting-action-item--danger:focus-visible { background: rgba(255,107,107,.1); }
.meeting-details-dialog {
  width: min(560px, calc(100vw - 28px));
  max-height: calc(100dvh - 28px);
  overflow: auto;
  overscroll-behavior: contain;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
  color: var(--text);
  box-shadow: 0 24px 80px rgba(0,0,0,.48);
}
.meeting-details-dialog::backdrop { background: rgb(5 7 12 / 70%); }
.meeting-details-dialog__surface { display: grid; gap: 18px; padding: 22px; }
.meeting-details-dialog__header { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.meeting-details-dialog__header h2 { margin: 0; font-size: 19px; }
.meeting-details-section { display: grid; gap: 10px; }
.meeting-details-section h3 { margin: 0; font-size: 13px; }
.meeting-details-more { border-block: 1px solid var(--line); padding: 12px 0; }
.meeting-details-more summary { cursor: pointer; color: var(--muted); font-weight: 700; }
.meeting-details-more__content { display: grid; gap: 16px; padding-top: 14px; }
.meeting-details-boundary { padding-top: 2px; }
.meeting-details-boundary p { margin: 0; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.revision-status { display: grid; gap: 6px; border-bottom: 1px solid var(--line-soft); padding-bottom: 12px; }
.revision-status .row-meta { gap: 6px; }
.notes {
  display: grid;
  gap: 8px;
  min-width: 0;
}
.notes-header {
  display: flex;
  align-items: flex-start;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line-soft);
}
.notes-header-copy { min-width: 0; display: grid; gap: 4px; }
.notes-header h3 { margin: 0; font-size: 20px; }
.notes-source-line { margin: 0; color: var(--muted); font-size: 12px; }
.notes-outcomes { display: grid; gap: 10px; min-width: 0; }
.notes-primary-outcomes,
.notes-secondary-outcomes { gap: 0; }
.notes-more { min-width: 0; border-top: 1px solid var(--line-soft); }
.notes-more > summary {
  padding: 12px 0;
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.notes-more > summary::marker { color: var(--muted); }
.notes-more[open] > summary { color: var(--accent); }
.notes-section {
  min-width: 0;
  padding: 14px 0;
  border-top: 1px solid var(--line-soft);
}
.notes-primary-outcomes > .notes-section:first-child,
.notes-secondary-outcomes > .notes-section:first-child { border-top: 0; }
.notes-section-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; min-width: 0; }
.notes-section-title { min-width: 0; display: grid; gap: 3px; }
.notes-section h4 { margin: 0; font-size: 14px; }
.notes-state-copy { margin: 0; color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.notes-state-label { flex: 0 0 auto; color: var(--muted); font-size: 11px; }
.notes-items { display: grid; gap: 10px; margin-top: 12px; min-width: 0; }
.notes-item-meta-row { display: flex; gap: 8px; flex-wrap: wrap; min-width: 0; margin-top: 6px; }
.notes-item-meta {
  display: inline;
  max-width: 100%;
  color: var(--muted);
  font-size: 12px;
  overflow-wrap: anywhere;
}
.notes-item-meta + .notes-item-meta::before { content: "·"; margin-right: 8px; color: var(--muted); }
.notes-item-truth { color: var(--green); }
.outcome-item { min-width: 0; padding-top: 10px; border-top: 1px solid var(--line-soft); }
.outcome-item:first-child { padding-top: 0; border-top: 0; }
.outcome-item-text { margin: 0; color: var(--text); line-height: 1.45; overflow-wrap: anywhere; }
.notes-item-sources { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.notes-source-label { color: var(--muted); font-size: 11px; }
.notes-source-link {
  min-height: 24px;
  padding: 0 4px;
  border: 0;
  background: transparent;
  color: var(--accent);
  font-size: 11px;
  font-weight: 750;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.notes-source-link:hover { color: var(--text); }
.notes-source-link:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
.summary-format-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.summary-format-toolbar h2 { margin: 0; font-size: 20px; }
.summary-format-picker { position: relative; }
.summary-format-button {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  border-color: var(--line);
  background: var(--surface);
}
.summary-format-listbox {
  position: absolute;
  z-index: 20;
  top: calc(100% + 7px);
  right: 0;
  width: min(280px, calc(100vw - 36px));
  display: grid;
  gap: 4px;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
  box-shadow: 0 18px 48px rgba(0,0,0,.4);
}
.summary-format-listbox[hidden] { display: none; }
.summary-format-listbox [role="option"] {
  width: 100%;
  min-height: 40px;
  justify-content: flex-start;
  border: 0;
  background: transparent;
  text-align: left;
}
.summary-format-listbox [role="option"][aria-selected="true"] {
  background: rgba(125,107,255,.14);
  color: #e3deff;
  font-weight: 750;
}
.summary-format-listbox .summary-format-all {
  margin-top: 4px;
  border-top: 1px solid var(--line);
  border-radius: 0 0 7px 7px;
  color: var(--accent);
}
.summary-candidate-status {
  margin: 14px 0;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}
.summary-candidate-status[hidden] { display: none; }
.summary-candidate-status[data-state="ready"] { border-color: rgba(125,107,255,.6); }
.summary-candidate-status[data-state="failed"] { border-color: rgba(255,107,107,.6); }
.summary-candidate-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 10px; }
.summary-candidate-preview { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); }
.summary-candidate-preview ul { margin: 8px 0 0; padding-left: 20px; }
.summary-candidate-source { margin: 4px 0 0; color: var(--muted); font-size: .875rem; }
.summary-format-dialog,
.summary-template-dialog {
  width: min(620px, calc(100vw - 28px));
  max-height: calc(100dvh - 28px);
  overflow: auto;
  overscroll-behavior: contain;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
  color: var(--text);
  box-shadow: 0 24px 80px rgba(0,0,0,.48);
}
.summary-format-dialog::backdrop,
.summary-template-dialog::backdrop { background: rgb(5 7 12 / 70%); }
.summary-format-dialog__surface,
.summary-template-dialog form { display: grid; gap: 18px; padding: 24px; }
.summary-format-dialog__header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.summary-format-dialog__header h2,
.summary-format-dialog__header p { margin: 0; }
.summary-format-dialog__header p { margin-top: 6px; }
.summary-format-grid,
.summary-template-list { display: grid; gap: 7px; }
.summary-format-grid > button,
.summary-template-row {
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 12px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: var(--surface);
  text-align: left;
}
.summary-format-grid > button { align-items: flex-start; flex-direction: column; }
.summary-format-grid > button span,
.summary-template-row > div { display: grid; gap: 4px; }
.summary-format-grid > button span { color: var(--muted); }
.summary-format-settings { align-items: start; }
.summary-default-template {
  grid-column: 1 / -1;
  width: min(420px, 100%);
  display: grid;
  gap: 7px;
}
.summary-default-template select { width: 100%; }
.summary-template-library { grid-column: 1 / -1; display: grid; gap: 20px; width: 100%; }
.summary-template-group { display: grid; gap: 10px; }
.summary-template-group h3 { margin: 0; font-size: 14px; }
.summary-template-row > div { min-width: 0; }
.summary-template-row > div span { overflow-wrap: anywhere; }
.summary-template-settings-status { grid-column: 1 / -1; min-height: 20px; margin: 0; }
.summary-template-dialog form > label,
.summary-template-options label { display: grid; gap: 7px; }
.summary-template-dialog input[type="text"],
.summary-template-dialog input:not([type]),
.summary-template-dialog textarea,
.summary-template-dialog select { width: 100%; }
.summary-template-dialog fieldset {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px 16px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.summary-template-dialog fieldset label { display: flex; align-items: center; gap: 8px; }
.summary-template-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.summary-template-form-error { margin: 0; color: #ffb8b8; }
.summary-template-actions { display: flex; gap: 7px; flex-wrap: wrap; }
.transcript { display: grid; gap: 14px; }
.segment {
  display: grid;
  grid-template-columns: 76px 112px minmax(0, 1fr);
  gap: 12px;
  min-width: 0;
  padding-left: 8px;
  border-left: 2px solid var(--speaker-color, transparent);
}
.timestamp { color: var(--accent); font-size: 12px; font-weight: 750; }
.timestamp-seek { appearance: none; border: 0; background: transparent; padding: 0; cursor: pointer; text-align: left; }
.timestamp-seek:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.speaker { display: flex; align-items: center; gap: 7px; font-weight: 750; font-size: 12px; color: #d5d8de; min-width: 0; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--speaker-color, var(--accent)); flex: 0 0 auto; }
.text { color: #e6e8ec; overflow-wrap: anywhere; word-break: break-word; min-width: 0; }
.empty-state {
  min-height: 260px;
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--muted);
  padding: 24px;
}
.empty-state strong { display: block; color: var(--text); margin-bottom: 6px; }
.playback-terminal-state {
  min-height: 260px;
  display: grid;
  place-content: center;
  gap: 6px;
  padding: 24px;
  color: var(--muted);
  text-align: center;
}
.playback-terminal-state strong { color: var(--text); }
.playback-terminal-state:focus-visible { outline: 2px solid var(--accent); outline-offset: -3px; }
.right-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  display: grid;
  gap: 14px;
  position: sticky;
  top: 24px;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  overscroll-behavior: contain;
  min-width: 0;
}
.speaker-lane { display: grid; gap: 7px; }
.speaker-name-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px;
}
.speaker-name-form input {
  min-width: 0;
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #1e2125;
  color: var(--text);
}
.speaker-name-form button { padding: 7px 10px; }
.speaker-name-error {
  grid-column: 1 / -1;
  color: #f3a6a6;
  font-size: 12px;
}
.lane-track { height: 8px; background: #343941; border-radius: 999px; overflow: hidden; }
.lane-fill { height: 100%; background: var(--accent); border-radius: inherit; }
.governance { display: grid; gap: 8px; }
.governance button { justify-content: flex-start; width: 100%; }
.state-list { display: grid; gap: 7px; }
.state-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: center; min-width: 0; }
.state-row strong, .state-row span { min-width: 0; overflow-wrap: anywhere; }
.mini-link { color: #dcd7ff; font-weight: 750; font-size: 12px; }
.activity-list { display: grid; gap: 8px; }
.activity-item { border-top: 1px solid var(--line-soft); padding-top: 8px; display: grid; gap: 2px; }
.truth-copy { color: var(--muted); font-size: 12px; line-height: 1.35; }
.calendar-context-chooser { display: grid; gap: 14px; }
.calendar-context-chooser form { display: grid; gap: 12px; }
.calendar-context-chooser fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.calendar-context-chooser legend { margin-bottom: 10px; color: var(--text); font-weight: 750; }
.calendar-context-choices { display: grid; gap: 8px; }
.calendar-context-choice {
  min-width: 0;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  padding: 12px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  cursor: pointer;
  background: var(--surface);
}
.calendar-context-choice:hover { border-color: var(--line); }
.calendar-context-choice:has(input:checked) { border-color: var(--accent); }
.calendar-context-choice:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.calendar-context-choice input { margin-top: 3px; }
.calendar-context-choice__body { min-width: 0; display: grid; gap: 4px; overflow-wrap: anywhere; }
.calendar-context-clear { display: grid; gap: 8px; padding-top: 8px; border-top: 1px solid var(--line-soft); }
.calendar-context-clear button { justify-self: start; }
.delete-confirmation { border: 1px solid rgba(255,107,107,.35); border-radius: 8px; padding: 12px; display: grid; gap: 10px; background: rgba(255,107,107,.05); }
.delete-confirmation strong { color: #ffd6d6; }
.report-layout { max-width: 980px; display: grid; gap: 18px; padding-bottom: 96px; }
.report-band { border: 1px solid var(--line); border-radius: 8px; background: var(--surface); padding: 16px; display: grid; gap: 12px; }
.report-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.playback-bar {
  position: fixed;
  left: var(--playback-inline-start);
  right: 0;
  bottom: 0;
  min-height: 0;
  border-top: 1px solid var(--line);
  background: rgba(33,36,40,.98);
  box-shadow: 0 -18px 44px rgba(0,0,0,.28);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 5px;
  padding: 9px clamp(18px, 4vw, 56px) 8px;
  color: var(--muted);
  z-index: 30;
}
.playback-bar.is-unavailable {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.playback-bar.is-preparing { border-top-color: rgba(92, 155, 235, .48); }
.playback-bar.is-unavailable:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -3px;
}
.playback-audio { display: none; }
.playback-toolbar {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  min-height: 34px;
}
.playback-controls {
  grid-column: 2;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}
.playback-round {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  padding: 0;
  background: #2d3035;
  border-color: #3b4047;
  color: #eef0f4;
  font-weight: 850;
}
.playback-round.primary-play {
  width: 36px;
  height: 36px;
  background: #f1f3f6;
  border-color: #f1f3f6;
  color: #1e2125;
}
.playback-speed {
  min-width: 40px;
  border: 0;
  background: transparent;
  color: #e5e7eb;
  font-weight: 800;
}
.playback-error {
  margin: 0;
  color: #f3a6a6;
  text-align: center;
  font-size: 12px;
}
.playback-progress-row {
  display: grid;
  grid-template-columns: var(--timeline-label-width) minmax(0, 1fr) var(--timeline-value-width);
  gap: 10px;
  align-items: center;
}
.playback-time {
  color: #c7cbd2;
  font-variant-numeric: tabular-nums;
  font-size: 12px;
}
.playback-time:last-child { text-align: right; }
.playback-progress {
  width: calc(100% + (var(--timeline-thumb-radius) * 2));
  margin: 0;
  padding: 0;
  appearance: none;
  background: transparent;
  accent-color: var(--accent);
  cursor: pointer;
}
.timeline-scale {
  position: relative;
  min-width: 0;
  margin-inline: var(--timeline-thumb-radius);
}
.playback-scale {
  display: grid;
  align-items: center;
  height: 20px;
}
.playback-scale .playback-progress {
  position: absolute;
  z-index: 2;
  inset-inline: calc(var(--timeline-thumb-radius) * -1);
  height: 20px;
  opacity: 0;
}
.playback-range-track {
  position: relative;
  display: block;
  height: 6px;
  border-radius: 999px;
  background: #353940;
  pointer-events: none;
}
.playback-range-thumb {
  position: absolute;
  top: 50%;
  left: var(--playback-position);
  width: 16px;
  height: 16px;
  border: 2px solid #f6f7f9;
  border-radius: 50%;
  background: var(--accent);
  transform: translate(-50%, -50%);
}
.playback-scale:focus-within .playback-range-track {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}
.speaker-timeline {
  display: grid;
  gap: 5px;
  max-height: 96px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
  padding-block: 1px;
}
.speaker-timeline::-webkit-scrollbar { width: 0; height: 0; }
.detail-playback {
  --timeline-label-width: 86px;
  --timeline-value-width: 42px;
  --timeline-thumb-radius: 8px;
  --playback-position: 0%;
}
.timeline-lane {
  display: grid;
  grid-template-columns: var(--timeline-label-width) minmax(0, 1fr) var(--timeline-value-width);
  column-gap: 10px;
  row-gap: 1px;
  align-items: center;
}
.speaker-color-0 { --speaker-color: #aaa49a; }
.speaker-color-1 { --speaker-color: #7a65ff; }
.speaker-color-2 { --speaker-color: #ffd24a; }
.speaker-color-3 { --speaker-color: #ff6b6b; }
.speaker-color-4 { --speaker-color: #aaa49a; }
.speaker-color-5 { --speaker-color: #2fc9c0; }
.speaker-color-6 { --speaker-color: #d96aa6; }
.timeline-label {
  display: block;
  min-width: 0;
  color: #d9dde4;
  font-size: 12px;
  line-height: 16px;
  overflow-wrap: anywhere;
}
.timeline-speaker {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--speaker-color);
}
.speaker-dot,
.speaker-manager-dot,
.speaker-manager-marker {
  flex: 0 0 auto;
  border-radius: 999px;
  background: var(--speaker-color);
}
.speaker-dot,
.speaker-manager-dot {
  width: 8px;
  height: 8px;
}
.lane-scale {
  grid-column: 2;
  grid-row: 2;
}
.timeline-track {
  position: relative;
  display: block;
  height: 6px;
  border-radius: 999px;
  background: #353940;
  overflow: hidden;
  cursor: pointer;
}
.timeline-track:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.timeline-segment {
  position: absolute;
  top: 0;
  bottom: 0;
  min-width: 2px;
  border-radius: 999px;
  background: var(--speaker-color);
}
.timeline-share {
  grid-column: 3;
  grid-row: 1 / span 2;
  text-align: right;
  color: var(--muted);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.timeline-playhead {
  position: absolute;
  z-index: 2;
  inset-block: -3px;
  left: var(--playback-position);
  width: 2px;
  background: #f6f7f9;
  box-shadow: 0 0 0 1px #1e2125;
  transform: translateX(-1px);
  pointer-events: none;
}
.timeline-lane.is-active .timeline-label {
  color: #fff;
  font-weight: 800;
}
.timeline-lane.is-active .timeline-track {
  box-shadow: 0 0 0 2px #f6f7f9;
}
.segment.is-current {
  background: color-mix(in srgb, var(--speaker-color, var(--accent)) 10%, transparent);
  box-shadow: inset 3px 0 var(--speaker-color, var(--accent));
}
.speaker-manager {
  position: relative;
  justify-self: start;
  min-width: 0;
}
.speaker-manager-trigger {
  min-height: 30px;
  width: max-content;
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 9px;
  border: 1px solid transparent;
  border-radius: 7px;
  color: #d9dde4;
  background: transparent;
  cursor: pointer;
  font-size: 12px;
  font-weight: 750;
}
.speaker-manager-trigger:hover,
.speaker-manager-trigger[aria-expanded="true"] {
  border-color: var(--line);
  background: #2d3035;
}
.speaker-manager-markers {
  display: inline-flex;
  gap: 3px;
}
.speaker-manager-marker {
  width: 6px;
  height: 6px;
}
.speaker-manager-popover {
  position: absolute;
  z-index: 4;
  left: 0;
  bottom: calc(100% + 8px);
  width: min(360px, calc(100vw - 32px));
  max-height: min(360px, 60vh);
  overflow-y: auto;
  display: grid;
  gap: 3px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #24272b;
  box-shadow: 0 18px 46px rgba(0,0,0,.45);
}
.speaker-manager-popover[hidden] { display: none; }
.speaker-manager-row {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 3px 5px;
  border-radius: 7px;
}
.speaker-manager-row:hover { background: rgba(255,255,255,.035); }
.speaker-manager-name {
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--text);
}
.speaker-manager-share {
  color: var(--muted);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}
.speaker-manager-edit {
  min-height: 28px;
  padding-inline: 8px;
  border-color: transparent;
  background: transparent;
  color: #dcd7ff;
  font-size: 11px;
}
.speaker-manager-form {
  grid-column: 2 / -1;
  grid-template-columns: minmax(0, 1fr) auto auto;
  padding: 3px 0 5px;
}
.auth-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(120deg, #17191c 0%, #191b1f 48%, #24212f 100%);
}
.auth-page::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(112deg, rgba(255,255,255,.035) 0 1px, transparent 1px 45%),
    linear-gradient(292deg, rgba(255,255,255,.025) 0 1px, transparent 1px 45%);
  opacity: .55;
  pointer-events: none;
}
.auth-panel {
  --auth-content-width: min(100%, 448px);
  width: min(520px, 100%);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(35,37,40,.96);
  padding: 24px;
  display: grid;
  gap: 18px;
  box-shadow: 0 22px 52px rgba(0,0,0,.42);
  position: relative;
  z-index: 1;
  animation: rec-panel-in .24s cubic-bezier(.2,.8,.2,1) both;
  transition:
    opacity .16s cubic-bezier(.2,.8,.2,1),
    transform .16s cubic-bezier(.2,.8,.2,1),
    filter .16s cubic-bezier(.2,.8,.2,1);
}
.auth-panel h1 { font-size: 22px; text-align: center; }
.auth-brand-lockup {
  display: grid;
  justify-items: center;
  gap: 9px;
}
.brand-logo--auth {
  width: 54px;
  height: 54px;
}
.brand-wordmark--auth {
  width: 136px;
  height: 50px;
}
.auth-brand-wordmark { text-align: center; font-size: 25px; line-height: 1; font-weight: 850; }
.auth-subtitle { color: var(--muted); font-size: 12px; line-height: 1.35; text-align: center; }
.auth-methods { display: grid; gap: 12px; }
.auth-methods, .auth-divider, .auth-form, .auth-secondary, .auth-alert, .auth-download {
  width: var(--auth-content-width);
  justify-self: center;
}
.auth-method-title { color: #f0f2f6; font-size: 14px; font-weight: 800; }
.auth-actions { display: grid; gap: 8px; }
.auth-provider-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(4, minmax(42px, auto));
  grid-auto-flow: column;
  gap: 10px 12px;
}
.auth-actions > *, .email-mode > *, .auth-form > * {
  animation: rec-item-in .22s cubic-bezier(.2,.8,.2,1) both;
}
.auth-actions > *:nth-child(2), .email-mode > *:nth-child(2), .auth-form > *:nth-child(2) { animation-delay: .025s; }
.auth-actions > *:nth-child(3), .email-mode > *:nth-child(3), .auth-form > *:nth-child(3) { animation-delay: .05s; }
.auth-actions > *:nth-child(4), .email-mode > *:nth-child(4), .auth-form > *:nth-child(4) { animation-delay: .075s; }
.auth-provider {
  min-height: 42px;
  border: 1px solid #3b4049;
  border-radius: 7px;
  background: #24272c;
  color: #eef0f4;
  text-decoration: none;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  font-weight: 750;
  font-size: 13px;
}
.auth-provider:hover { border-color: #6860a8; background: #2a2d33; }
.auth-provider[aria-disabled="true"] {
  color: #7f858f;
  pointer-events: none;
  background: #202328;
  border-color: #323741;
}
.provider-mark {
  width: 28px;
  height: 28px;
  border: 1px solid #454b56;
  border-radius: 7px;
  background: #30343b;
  color: #f7f8fb;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 850;
  text-align: center;
}
.auth-provider[aria-disabled="true"] .provider-mark {
  color: #9aa0aa;
  background: #282c32;
  border-color: #3a4049;
}
.provider-pill {
  min-height: 18px;
  border-radius: 7px;
  padding: 0 6px;
  background: #333843;
  color: #9aa0aa;
  display: inline-flex;
  align-items: center;
  font-size: 10px;
  font-weight: 800;
}
.auth-divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 11px;
  color: var(--subtle);
  font-size: 12px;
}
.auth-divider::before, .auth-divider::after { content: ""; height: 1px; background: var(--line); }
.auth-form { display: grid; gap: 10px; }
.auth-form label { display: grid; gap: 7px; color: #c5c9d0; font-size: 12px; font-weight: 750; }
.auth-form input { min-height: 34px; border-color: #555a64; background: #26292e; }
.auth-form .primary {
  min-height: 34px;
  background: #7057ff;
  border-color: #7057ff;
}
.auth-form .primary:hover { background: #7c66ff; border-color: #7c66ff; }
.auth-secondary {
  text-align: center;
  display: grid;
  gap: 18px;
  color: #d7d9df;
}
.auth-signup { color: #d7d9df; font-size: 13px; }
.auth-signup a, .auth-legal .mini-link { color: #c9c1ff; font-weight: 750; }
.auth-download {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid #3b4049;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(112, 87, 255, .12), rgba(47, 201, 166, .06)),
    #24272c;
  color: #aeb4be;
  font-size: 12px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
}
.auth-download a {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid rgba(201,193,255,.22);
  border-radius: 999px;
  background: rgba(201,193,255,.08);
  color: #c9c1ff;
  font-weight: 800;
  white-space: nowrap;
}
.auth-legal {
  position: absolute;
  z-index: 1;
  left: 24px;
  right: 24px;
  bottom: 24px;
  max-width: 540px;
  margin: 0 auto;
  text-align: center;
  color: #a4a9b2;
  font-size: 11px;
  line-height: 1.45;
}
.auth-alert { border: 1px solid rgba(255,107,107,.35); border-radius: 8px; padding: 10px 12px; background: rgba(255,107,107,.07); color: #ffd6d6; font-size: 12px; font-weight: 750; }
.code-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin: 12px 0 8px;
}
.code-slot {
  height: 46px;
  padding: 0;
  text-align: center;
  font-size: 22px;
  font-weight: 800;
  border-radius: 7px;
  border-color: #3f444d;
  background: #1d2024;
  caret-color: #a89cff;
}
.code-slot:focus {
  border-color: #765fff;
  box-shadow: 0 0 0 1px #765fff;
}
.code-hint { text-align: center; color: var(--muted); font-size: 11px; font-weight: 650; }
.auth-resend {
  border: 0;
  background: transparent;
  color: #c5bbff;
  justify-self: center;
  min-height: 32px;
  padding: 0;
  font-weight: 800;
}
.auth-resend:hover { color: #ded8ff; }
.email-mode {
  display: grid;
  gap: 14px;
}
.email-mode-trigger {
  min-height: 34px;
  border-radius: 7px;
  border: 1px solid #4a4e57;
  background: #24272b;
  color: #eef0f4;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 800;
}
.email-mode-trigger:hover { color: #fff; background: #2a2d33; border-color: #6860a8; }
.signup-email-form { display: grid; gap: 12px; }
.auth-help { text-align: center; color: #a9abb4; text-decoration: underline; text-underline-offset: 2px; }
.cabinet-main {
  min-height: 100vh;
  background: var(--bg);
  padding: 34px clamp(24px, 5vw, 96px) 92px;
}
.desktop-embedded .cabinet-main {
  padding: 24px clamp(18px, 4vw, 64px) 80px;
}
.cabinet-workspace { width: 100%; max-width: 1120px; }
.desktop-embedded .cabinet-workspace { width: 100%; max-width: min(1120px, calc(100vw - 48px)); margin: 0 auto; }
.cabinet-topbar {
  min-height: 30px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 14px;
}
.cabinet-titleline { display: flex; align-items: center; gap: 9px; min-width: 0; color: var(--muted); font-weight: 500; }
.cabinet-titleline strong { color: var(--text); font-weight: 700; }
.cabinet-list-controls {
  display: grid;
  grid-template-columns: minmax(156px, 1.2fr) minmax(118px, .8fr) minmax(118px, .8fr) 16px minmax(136px, .9fr) 32px 32px auto;
  gap: 8px;
  align-items: center;
  width: min(760px, 100%);
  min-width: 0;
}
.cabinet-list-controls input,
.cabinet-list-controls select { min-height: 32px; }
.cabinet-card {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  animation: rec-item-in .22s cubic-bezier(.2,.8,.2,1) both;
}
.cabinet-card .section-title { margin: 0 0 4px; }
.manual-upload-trigger {
  min-width: 98px;
  white-space: nowrap;
  overflow-wrap: normal;
}
.manual-upload-trigger span { white-space: nowrap; }
.manual-upload-trigger .ui-icon { flex: 0 0 16px; }
.manual-upload-dialog {
  width: min(620px, calc(100vw - 28px));
  max-height: min(720px, calc(100vh - 28px));
  padding: 0;
  overflow: hidden;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #222428;
  box-shadow: 0 24px 70px rgba(0,0,0,.44);
}
.manual-upload-dialog::backdrop { background: rgba(0,0,0,.58); }
.manual-upload-sheet {
  display: grid;
  gap: 0;
}
.manual-upload-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 18px 14px;
  border-bottom: 1px solid var(--line-soft);
}
.manual-upload-title {
  display: grid;
  min-width: 0;
  gap: 4px;
}
.manual-upload-title h2 {
  margin: 0;
  font-size: 19px;
  line-height: 1.2;
}
.manual-upload-title p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}
.manual-upload-picker {
  position: relative;
  display: grid;
  padding: 16px 18px 0;
}
.manual-upload-input {
  position: absolute;
  width: 1px;
  height: 1px;
  min-width: 1px;
  min-height: 1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}
.manual-upload-dropzone {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  min-height: 152px;
  padding: 18px;
  border: 1px dashed rgba(151,163,184,.46);
  border-radius: 8px;
  background: rgba(255,255,255,.035);
  color: var(--text);
  cursor: pointer;
  transition:
    background-color .16s cubic-bezier(.2,.8,.2,1),
    border-color .16s cubic-bezier(.2,.8,.2,1),
    box-shadow .16s cubic-bezier(.2,.8,.2,1);
}
.manual-upload-input:focus-visible + .manual-upload-dropzone {
  outline: 2px solid #b6aaff;
  outline-offset: 2px;
}
.manual-upload-dropzone:hover,
.manual-upload-dropzone.is-dragover {
  border-color: rgba(47,145,255,.72);
  background: rgba(47,145,255,.09);
  box-shadow: inset 0 0 0 1px rgba(47,145,255,.18);
}
.manual-upload-dropzone.has-file {
  border-color: rgba(47,201,166,.52);
  background: rgba(47,201,166,.055);
}
.manual-upload-dropzone__icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(47,145,255,.32);
  border-radius: 8px;
  color: #b9d8ff;
  background: rgba(47,145,255,.12);
}
.manual-upload-dropzone__icon .ui-icon {
  width: 18px;
  height: 18px;
}
.manual-upload-dropzone__copy {
  display: grid;
  min-width: 0;
  gap: 5px;
}
.manual-upload-dropzone__copy strong {
  font-size: 15px;
  line-height: 1.25;
}
.manual-upload-dropzone__copy span {
  color: var(--muted);
  font-size: 12px;
}
.manual-upload-dropzone__types {
  color: var(--subtle);
}
.manual-upload-browse {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(255,255,255,.045);
  color: #f0f3f8;
  font-weight: 750;
  white-space: nowrap;
}
.manual-upload-file-card {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 50px;
  margin: 12px 18px 0;
  padding: 10px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: rgba(255,255,255,.03);
}
.manual-upload-file-card__icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #aee9dc;
  background: rgba(47,201,166,.1);
}
.manual-upload-file-card__copy {
  display: grid;
  min-width: 0;
  gap: 2px;
}
.manual-upload-file-card__copy strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.manual-upload-file-card__copy span,
.manual-upload-file-card__duration {
  color: var(--muted);
  font-size: 12px;
}
.manual-upload-file-card__duration {
  justify-self: end;
  white-space: nowrap;
}
.manual-upload-fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  padding: 14px 18px 0;
}
.manual-upload-fields label {
  min-width: 0;
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
}
.manual-upload-fields label > span:first-child {
  color: #c9ced6;
  font-weight: 700;
}
.manual-upload-fields input {
  min-height: 38px;
}
.manual-upload-validation {
  min-height: 30px;
  margin: 12px 18px 0;
  padding: 8px 10px;
  border: 1px solid rgba(240,167,66,.32);
  border-radius: 8px;
  background: rgba(240,167,66,.08);
  color: var(--amber);
  overflow-wrap: anywhere;
  font-size: 12px;
  line-height: 1.35;
}
.manual-upload-validation[data-tone="error"] {
  border-color: rgba(255,107,107,.36);
  background: rgba(255,107,107,.08);
  color: var(--red);
}
.manual-upload-actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
  padding: 16px 18px 18px;
  margin-top: 4px;
  border-top: 1px solid var(--line-soft);
}
.manual-upload-unavailable {
  display: grid;
  gap: 12px;
  padding: 18px;
}
.manual-upload-unavailable p {
  margin: 0;
  color: var(--muted);
}
.upload-activity-list {
  max-width: none;
  display: grid;
  gap: 8px;
  margin: 0 0 10px;
}
.upload-activity-list:empty { display: none; }
.upload-activity-row {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) 44px auto;
  gap: 10px;
  align-items: center;
  min-height: 54px;
  padding: 8px 12px;
  border: 1px solid rgba(47,145,255,.22);
  border-radius: 8px;
  background: rgba(47,145,255,.055);
  color: #dfe2e8;
}
.upload-activity-row:hover,
.upload-activity-row:focus-within {
  border-color: rgba(47,145,255,.38);
  background: rgba(47,145,255,.08);
}
.upload-activity-icon {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  background: rgba(47,145,255,.12);
}
.upload-activity-icon::before {
  content: "";
  width: 10px;
  height: 10px;
  border: 2px solid #9ec8ff;
  border-left-color: transparent;
  border-radius: 999px;
}
.upload-activity-row[data-upload-activity-state="accepted"] .upload-activity-icon {
  background: rgba(47,201,166,.12);
}
.upload-activity-row[data-upload-activity-state="accepted"] .upload-activity-icon::before {
  width: 12px;
  height: 7px;
  border: 0;
  border-left: 2px solid var(--green);
  border-bottom: 2px solid var(--green);
  border-radius: 0;
  transform: rotate(-45deg) translateY(-1px);
}
.upload-activity-row[data-upload-activity-state="failed"] .upload-activity-icon,
.upload-activity-row[data-upload-activity-state="canceled"] .upload-activity-icon {
  background: rgba(240,167,66,.11);
}
.upload-activity-copy {
  min-width: 0;
  display: grid;
  gap: 3px;
}
.upload-activity-copy strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
}
.upload-activity-copy span {
  min-width: 0;
  color: var(--muted);
  font-size: 12px;
  overflow-wrap: anywhere;
}
.upload-activity-copy [data-upload-activity-status][data-tone="success"] { color: var(--green); }
.upload-activity-copy [data-upload-activity-status][data-tone="warning"] { color: var(--amber); }
.upload-activity-copy [data-upload-activity-status][data-tone="error"] { color: var(--red); }
.upload-activity-progress {
  width: min(320px, 100%);
  height: 6px;
  display: block;
  overflow: hidden;
  border-radius: 999px;
  background: #34383e;
}
.upload-activity-progress > span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: #2088ff;
  transition: width .16s cubic-bezier(.2,.8,.2,1);
}
.upload-activity-progress.is-indeterminate > span {
  background: linear-gradient(90deg, rgba(32,136,255,.35), #2088ff, rgba(32,136,255,.35));
}
.upload-activity-percent {
  color: #d7e9ff;
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  text-align: right;
  white-space: nowrap;
}
.upload-activity-actions {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
  opacity: 0;
  pointer-events: none;
}
.upload-activity-row:hover .upload-activity-actions,
.upload-activity-row:focus-within .upload-activity-actions {
  opacity: 1;
  pointer-events: auto;
}
.upload-activity-action {
  min-height: 30px;
  padding: 0 9px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 7px;
  background: rgba(255,255,255,.035);
  color: #e8ebf0;
  font-size: 12px;
  font-weight: 750;
  white-space: nowrap;
}
.upload-activity-action:hover {
  background: #2d3034;
}
.calendar-empty {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.calendar-connect-link {
  min-height: 32px;
  white-space: nowrap;
}
.settings-page,
.calendar-settings {
  display: grid;
  grid-template-columns: minmax(176px, 208px) minmax(0, 1fr);
  gap: var(--settings-gap);
  align-items: start;
}
.settings-page > .settings-navigation,
.calendar-settings > .settings-navigation {
  grid-column: 1;
  grid-row: 1 / -1;
  position: sticky;
  top: 16px;
}
.settings-page > :not(.settings-navigation),
.calendar-settings > :not(.settings-navigation) {
  grid-column: 2;
  min-width: 0;
}
.settings-section {
  max-width: 920px;
  padding: 16px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  align-items: stretch;
}
.settings-section p { margin: 0; }
.settings-page__topbar { align-items: flex-start; }
.settings-page__topbar .page-title { min-width: 0; }
.eyebrow {
  margin: 0 0 5px;
  color: var(--subtle);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.page-subtitle { max-width: 680px; color: var(--muted); }
.settings-navigation {
  display: grid;
  align-content: start;
  gap: 16px;
  width: 100%;
  max-width: none;
  padding: 0 0 8px;
  border-right: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
}
.settings-navigation__back {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  padding: 0 16px 10px 10px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-weight: 700;
}
.settings-navigation__back:hover { color: var(--text); }
.settings-navigation__group { display: grid; gap: 2px; min-width: 0; padding-right: 10px; }
.settings-navigation__group-label {
  margin: 0;
  padding: 0 10px 4px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.settings-navigation__item {
  display: flex;
  align-items: center;
  gap: 8px;
  align-content: center;
  min-height: 44px;
  padding: 8px 10px;
  border-left: 2px solid transparent;
  border-radius: 8px;
  color: var(--muted);
  font-weight: 650;
  overflow-wrap: anywhere;
}
.settings-navigation__item:hover { color: var(--text); background: rgba(255,255,255,.035); }
.settings-navigation__item:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
.settings-navigation__item.is-selected { border-left-color: var(--accent); color: var(--text); background: var(--surface-3); }
.settings-navigation__item-icon { display: inline-flex; flex: 0 0 auto; color: currentColor; }
.settings-navigation__item-icon .ui-icon { width: 15px; height: 15px; }
.settings-navigation__item > span:last-child { min-width: 0; overflow-wrap: anywhere; }
.settings-scope-badge,
.settings-status-badge {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  min-height: 23px;
  padding: 2px 8px;
  border: 1px solid rgba(182,170,255,.3);
  border-radius: 999px;
  color: #d9d2ff;
  background: rgba(140,115,255,.1);
  font-size: 11px;
  font-weight: 750;
}
.settings-section__heading { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; }
.settings-section__heading h2 { margin: 5px 0 5px; }
.settings-section__heading .button { flex: 0 0 auto; }
.settings-boundary-card,
.settings-handoff-card,
.settings-unavailable-card { background: rgba(140,115,255,.06); border-color: rgba(140,115,255,.25); }
.settings-handoff-card { gap: 12px; }
.settings-handoff-card h2,
.settings-unavailable-card h2 { margin: 0; }
.settings-handoff-card > p { max-width: 720px; color: var(--muted); }
.settings-boundary-list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.settings-boundary-list li { display: grid; gap: 3px; padding-top: 10px; border-top: 1px solid var(--line-soft); }
.settings-boundary-list span { color: var(--muted); }
.settings-choice-list { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.settings-choice-row { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 12px 0; border-top: 1px solid var(--line-soft); }
.settings-choice-row > div:first-child { display: grid; gap: 3px; min-width: 0; }
.settings-choice-row .muted { overflow-wrap: anywhere; }
.settings-choice-row .settings-actions { flex: 0 0 auto; }
.settings-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.settings-status { padding: 10px 12px; border: 1px solid rgba(47,201,166,.3); border-radius: 8px; color: #b5f1df; background: rgba(47,201,166,.08); }
.settings-form-status { margin: 0; color: var(--amber); font-size: 12px; font-weight: 700; }
.calendar-selection-form[data-state="saving"],
.calendar-preferences-form[data-state="saving"] { opacity: .78; }
.settings-empty-state { padding: 12px; border: 1px dashed var(--line); border-radius: 8px; color: var(--muted); }
.settings-status-badge { border-color: rgba(47,201,166,.32); color: #b5f1df; background: rgba(47,201,166,.08); }
.settings-boundary-card .button { justify-self: start; }
.settings-handoff-card .button { justify-self: start; }
.settings-page form { margin: 0; }
.settings-page h1,
.settings-page h2,
.settings-page h3 { color: var(--text); }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
@media (max-width: 640px) {
  .settings-page,
  .calendar-settings {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .settings-page > .settings-navigation,
  .calendar-settings > .settings-navigation {
    grid-column: 1;
    grid-row: auto;
    position: static;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding-bottom: 12px;
  }
  .settings-page > :not(.settings-navigation),
  .calendar-settings > :not(.settings-navigation) { grid-column: 1; }
  .settings-section__heading,
  .settings-choice-row { align-items: stretch; flex-direction: column; }
  .settings-section__heading .button,
  .settings-choice-row .settings-actions,
  .settings-choice-row form { align-self: flex-start; }
}
.meeting-title { display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 650; }
.meeting-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  margin: 18px 0 8px;
  min-height: 32px;
}
.selection-toolbar {
  display: flex;
  justify-content: flex-start;
  gap: 10px;
  align-items: center;
  padding-left: 13px;
}
.selection-toolbar[hidden] { display: none; }
.selection-toggle {
  flex: 0 0 16px;
}
.selection-count { font-weight: 800; color: #f0edff; white-space: nowrap; line-height: 32px; }
.danger-button { color: #ffd6d6; border-color: rgba(255,107,107,.5); background: rgba(255,107,107,.08); }
.icon-control {
  width: 32px;
  height: 32px;
  min-height: 32px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #b5bac3;
  display: inline-grid;
  place-items: center;
}
.icon-control:hover { background: #2d3034; }
.icon-control:disabled, .icon-control.is-disabled {
  color: #8f949d;
  cursor: not-allowed;
}
.icon-control:disabled:hover { background: transparent; }
.ui-icon {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.new-button {
  min-height: 32px;
  min-width: 54px;
  padding: 0 12px;
  border-radius: 7px;
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}
.new-button.manual-upload-trigger,
.button.manual-upload-trigger {
  min-width: 98px;
  white-space: nowrap;
  overflow-wrap: normal;
}
.list-card.cabinet-card {
  max-width: none;
  min-height: 210px;
  background: #1d1f21;
  border-color: var(--line);
}
.meeting-row {
  color: #dfe2e8;
}
.meeting-row.cabinet-row {
  grid-template-columns: 24px 24px minmax(0, 1fr) 32px 64px;
  min-height: 64px;
  padding: 8px 12px;
  gap: 8px;
}
.meeting-row.cabinet-row:hover { background: #2c2f33; }
.meeting-row.is-selected { background: #302860; }
.row-delete-form {
  display: grid;
  place-items: center;
  min-width: 0;
}
.row-check {
  accent-color: var(--accent);
  width: 16px;
  height: 16px;
  min-height: 16px;
  margin: 0;
  padding: 0;
  cursor: pointer;
}
.row-icon { display: grid; place-items: center; width: 24px; height: 24px; color: #a7adb7; font-size: 13px; }
.row-icon .ui-icon { width: 14px; height: 14px; }
.meeting-date { color: #c1c6cf; font-size: 12px; text-align: right; white-space: nowrap; }
.row-delete {
  width: 32px;
  height: 32px;
  font-size: 11px;
  border-color: transparent;
  background: transparent;
  color: #ffc7c7;
  opacity: 0;
  display: inline-grid;
  place-items: center;
}
.meeting-row:hover .row-delete, .meeting-row:focus-within .row-delete {
  opacity: 1;
}
.row-delete-noscript {
  min-height: 32px;
  padding: 0 8px;
  font-size: 11px;
}
.delete-feedback-region {
  max-width: none;
  min-height: 0;
  margin-top: 10px;
}
.delete-feedback-region:empty { display: none; }
.cabinet-deletion-feedback {
  border: 1px solid rgba(47,201,166,.42);
  border-radius: 8px;
  background: rgba(47,201,166,.07);
  padding: 12px;
}
.cabinet-deletion-feedback[data-state="warning"] {
  border-color: rgba(240,167,66,.48);
  background: rgba(240,167,66,.08);
}
.cabinet-deletion-feedback[data-state="error"] {
  border-color: rgba(255,107,107,.48);
  background: rgba(255,107,107,.08);
}
.cabinet-deletion-feedback p { margin: 0; }
.delete-dialog {
  width: min(440px, calc(100vw - 36px));
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  padding: 22px;
  overscroll-behavior: contain;
  box-shadow: 0 24px 70px rgba(0,0,0,.5);
}
.delete-dialog::backdrop { background: rgba(0,0,0,.62); }
.delete-dialog h2 { margin: 0 0 16px; font-size: 22px; line-height: 1.2; }
.delete-dialog p { margin: 0 0 12px; color: #eef0f4; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }
.dialog-error { color: #ffd6d6; font-size: 12px; margin-top: 12px; }
.dialog-error[hidden] { display: none; }
.desktop-embedded .empty-state { min-height: 210px; }
.desktop-embedded .meeting-row:hover { transform: none; }
.auth-provider, .email-mode-trigger, .code-slot, .meeting-row, .icon-control, .new-button {
  transition:
    background-color .16s cubic-bezier(.2,.8,.2,1),
    border-color .16s cubic-bezier(.2,.8,.2,1),
    color .16s cubic-bezier(.2,.8,.2,1),
    transform .16s cubic-bezier(.2,.8,.2,1),
    opacity .16s cubic-bezier(.2,.8,.2,1);
}
.auth-provider:active, .email-mode-trigger:active, .new-button:active { transform: translateY(1px) scale(.995); }
.code-slot { animation: rec-slot-in .18s cubic-bezier(.2,.8,.2,1) both; }
.code-slot:nth-child(2) { animation-delay: .02s; }
.code-slot:nth-child(3) { animation-delay: .04s; }
.code-slot:nth-child(4) { animation-delay: .06s; }
.code-slot:nth-child(5) { animation-delay: .08s; }
.code-slot:nth-child(6) { animation-delay: .1s; }
@keyframes rec-panel-in {
  from { opacity: 0; transform: translateY(10px) scale(.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes rec-item-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes rec-slot-in {
  from { opacity: 0; transform: translateY(5px) scale(.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes rec-fade-in {
  from { opacity: 0; filter: blur(2px); }
  to { opacity: 1; filter: blur(0); }
}
@keyframes rec-fade-out {
  from { opacity: 1; filter: blur(0); }
  to { opacity: 0; filter: blur(1px); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .001ms !important;
  }
}
@media (max-width: 980px) {
  .app-shell { grid-template-columns: 1fr; }
  .app-shell:not(.desktop-embedded) { --playback-inline-start: 0px; }
  .app-shell.desktop-embedded { grid-template-columns: var(--app-sidebar-width) minmax(0, 1fr); }
  .app-shell[data-mobile-scroll="page"] {
    height: auto;
    min-height: 100vh;
    overflow: visible;
  }
  .app-shell[data-mobile-scroll="page"] > .main,
  .app-shell[data-mobile-scroll="page"] > .cabinet-main {
    height: auto;
    overflow-y: visible;
  }
  .sidebar { display: none; }
  .desktop-embedded .sidebar { display: flex; }
  .desktop-embedded .cabinet-rail-toggle { display: none; }
  .main { width: 100%; max-width: 100vw; overflow-x: hidden; padding: 18px; }
  .detail-page-main { padding-bottom: 172px; }
  .cabinet-main { padding: 18px 14px 172px; }
  .desktop-embedded .main { padding: 18px 14px 172px; }
  .desktop-embedded .cabinet-main { padding: 18px 14px 172px; }
  .cabinet-workspace { max-width: none; }
  .desktop-embedded .cabinet-workspace { max-width: none; }
  .cabinet-topbar { align-items: stretch; flex-direction: column; }
  .desktop-embedded .cabinet-list-controls {
    gap: 8px;
  }
  .topline { flex-direction: column; align-items: stretch; }
  .action-row { justify-content: flex-start; }
  .detail-layout { grid-template-columns: 1fr; }
  .right-panel { position: static; }
  .meeting-row { grid-template-columns: 24px minmax(0, 1fr); padding: 12px; }
  .meeting-row.cabinet-row { grid-template-columns: 20px 20px minmax(0, 1fr) 32px auto; min-height: 64px; }
  .meeting-row.cabinet-row .meeting-date { grid-column: 5; }
  .meeting-row.cabinet-row .row-delete-form { grid-column: 4; }
  .meeting-row.cabinet-row .row-delete { opacity: 1; }
  .meeting-toolbar { align-items: flex-start; flex-wrap: wrap; }
  .settings-section { grid-template-columns: 1fr; }
  .settings-actions { justify-content: flex-start; }
  .meeting-row > .state-list, .meeting-row > .row-actions { grid-column: 2; justify-self: start; }
  .segment { display: block; }
  .segment .speaker, .segment .text { margin-top: 6px; }
  .report-grid { grid-template-columns: 1fr; }
  .calendar-settings { max-width: none; }
  .calendar-source-card__header,
  .calendar-section-head,
  .calendar-source-card__actions {
    display: grid;
    grid-template-columns: 1fr;
  }
  .calendar-source-card__actions > *,
  .calendar-disconnect__body form > * {
    width: 100%;
  }
  .calendar-source-card__states { justify-content: flex-start; }
  .calendar-source-meta,
  .calendar-boundary-list,
  .calendar-preference-grid {
    grid-template-columns: 1fr;
  }
  .calendar-preview-row {
    grid-template-columns: 1fr;
  }
  .calendar-preview-row strong { white-space: normal; }
  .playback-bar {
    min-height: 0;
    gap: 6px;
    padding: 8px 14px 7px;
    background: #212428;
  }
  .playback-controls { gap: 8px; }
  .playback-round { width: 30px; height: 30px; font-size: 12px; }
  .playback-round.primary-play { width: 38px; height: 38px; }
  .playback-speed { min-width: 38px; font-size: 12px; }
  .detail-playback { --timeline-label-width: 72px; --timeline-value-width: 38px; }
  .playback-progress-row { gap: 8px; }
  .speaker-timeline { gap: 4px; }
  .timeline-label, .timeline-share { font-size: 11px; }
  .timeline-track { height: 7px; }
  .auth-legal { position: relative; inset: auto; margin-top: -8px; }
}
@media (max-width: 720px) {
  .app-shell.desktop-embedded { grid-template-columns: var(--app-rail-width) minmax(0, 1fr); }
  .desktop-embedded .sidebar {
    display: flex;
    z-index: 30;
    width: var(--app-rail-width);
    min-width: var(--app-rail-width);
    padding: 8px 6px;
    gap: 10px;
    box-shadow: none;
  }
  .desktop-embedded.is-rail-pinned .sidebar {
    width: var(--app-sidebar-width);
    box-shadow: 18px 0 44px rgba(0,0,0,.28);
  }
  .desktop-embedded .cabinet-rail-toggle {
    display: grid;
    width: 40px;
    height: 40px;
    min-height: 40px;
    padding: 0;
    place-items: center;
    border-radius: 7px;
    background: transparent;
    border-color: transparent;
    color: #c8ccd5;
  }
  .desktop-embedded .cabinet-rail-toggle:hover,
  .desktop-embedded .cabinet-rail-toggle:focus-visible {
    background: var(--surface-3);
    color: var(--text);
  }
  .desktop-embedded .cabinet-rail-toggle .ui-icon {
    width: 18px;
    height: 18px;
  }
  .desktop-embedded .cabinet-rail-toggle [data-icon="panel-left-close"],
  .desktop-embedded.is-rail-pinned .cabinet-rail-toggle [data-icon="panel-left-open"] {
    display: none;
  }
  .desktop-embedded.is-rail-pinned .cabinet-rail-toggle [data-icon="panel-left-close"] {
    display: block;
  }
  .desktop-embedded .cabinet-workspace-header {
    width: calc(var(--app-sidebar-width) - 12px);
    border-color: transparent;
    background: transparent;
    padding: 3px;
  }
  .desktop-embedded .sidebar > .primary,
  .desktop-embedded .sidebar-foot {
    width: calc(var(--app-sidebar-width) - 12px);
    display: none;
  }
  .desktop-embedded.is-rail-pinned .sidebar > .primary {
    display: flex;
  }
  .desktop-embedded.is-rail-pinned .sidebar .sidebar-foot {
    display: grid;
  }
  .desktop-embedded .cabinet-workspace-header__text,
  .desktop-embedded .cabinet-sidebar-nav__label {
    opacity: 0;
    pointer-events: none;
  }
  .desktop-embedded.is-rail-pinned .cabinet-workspace-header__text,
  .desktop-embedded.is-rail-pinned .cabinet-sidebar-nav__label {
    opacity: 1;
    pointer-events: auto;
  }
  .desktop-embedded .cabinet-sidebar-nav { gap: 6px; }
  .desktop-embedded .cabinet-sidebar-nav__item {
    grid-template-columns: 40px minmax(0, 1fr) auto;
    width: calc(var(--app-sidebar-width) - 12px);
    min-height: 40px;
    padding: 0;
    gap: 8px;
    border-color: transparent;
    background: transparent;
    border-radius: 7px;
  }
  .desktop-embedded .cabinet-sidebar-nav__item:hover,
  .desktop-embedded .cabinet-sidebar-nav__item.is-selected {
    background: var(--surface-3);
  }
  .desktop-embedded .cabinet-sidebar-nav__item.is-selected::before {
    content: "";
    position: absolute;
    left: 0;
    top: 8px;
    bottom: 8px;
    width: 3px;
    border-radius: 999px;
    background: var(--accent);
  }
  .desktop-embedded .cabinet-sidebar-nav__item .ui-icon {
    justify-self: center;
  }
}
@media (max-width: 540px) {
  .calendar-context-choice { padding: 10px; }
  .calendar-context-chooser .row-actions,
  .calendar-context-chooser .row-actions button,
  .calendar-context-chooser form > button { width: 100%; }
  .auth-page { padding: 18px 14px 28px; }
  .auth-panel { padding: 18px; }
  .auth-download {
    align-items: flex-start;
    flex-direction: column;
  }
  .auth-provider-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(4, minmax(40px, auto));
    grid-auto-flow: column;
    gap: 8px;
  }
  .auth-provider {
    min-height: 40px;
    grid-template-columns: 26px minmax(0, 1fr);
    gap: 6px;
    padding: 0 8px;
    font-size: 12px;
  }
  .auth-provider .provider-mark { width: 24px; height: 24px; font-size: 10px; }
  .auth-provider .provider-pill { display: none; }
  .manual-upload-head,
  .manual-upload-picker,
  .manual-upload-fields,
  .manual-upload-validation,
  .manual-upload-actions,
  .manual-upload-unavailable {
    padding-inline: 14px;
  }
  .manual-upload-dropzone {
    grid-template-columns: 36px minmax(0, 1fr);
    min-height: 132px;
    padding: 14px;
  }
  .manual-upload-dropzone__icon {
    width: 36px;
    height: 36px;
  }
  .manual-upload-browse {
    grid-column: 1 / -1;
    justify-self: stretch;
    width: 100%;
  }
  .manual-upload-file-card {
    grid-template-columns: 32px minmax(0, 1fr);
    margin-inline: 14px;
  }
  .manual-upload-file-card__duration {
    grid-column: 2;
    justify-self: start;
  }
  .manual-upload-validation {
    margin-inline: 14px;
  }
  .manual-upload-actions .button {
    width: 100%;
  }
  .upload-activity-row {
    grid-template-columns: 24px minmax(0, 1fr) 44px;
  }
  .upload-activity-actions {
    grid-column: 2 / -1;
    justify-content: flex-start;
    flex-wrap: wrap;
    opacity: 1;
    pointer-events: auto;
  }
  .playback-bar { padding-inline: 12px; }
  .detail-playback { --timeline-label-width: 68px; --timeline-value-width: 34px; }
  .timeline-lane { gap: 7px; }
}

.cabinet-button,
.cabinet-icon-button,
.cabinet-link,
.cabinet-field input,
.cabinet-field select,
.cabinet-tab {
  min-height: 32px;
}

.cabinet-button,
.cabinet-icon-button,
.cabinet-link,
.cabinet-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 24px;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.cabinet-icon-button {
  width: 32px;
  padding: 0;
}

.cabinet-button[data-state="disabled"],
.cabinet-button[data-state="loading"],
.cabinet-icon-button[data-state="disabled"],
.cabinet-link[data-state="disabled"],
.cabinet-field[data-state="disabled"],
.cabinet-tab[data-state="disabled"] {
  cursor: not-allowed;
  opacity: .68;
}

.cabinet-button.is-destructive,
.cabinet-icon-button.is-destructive,
.cabinet-button--danger,
.cabinet-status--error,
.cabinet-chip--error,
.cabinet-badge--error {
  color: var(--red);
}

.cabinet-field,
.cabinet-checkbox {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.cabinet-field__label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.cabinet-field__error {
  color: #ffd6d6;
  font-size: 12px;
}

.cabinet-checkbox {
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: center;
}

.cabinet-chip,
.cabinet-badge,
.cabinet-status {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  max-width: 100%;
  border-radius: 999px;
  padding: 0 9px;
  overflow-wrap: anywhere;
}

.cabinet-badge--ready {
  color: var(--green);
  border: 1px solid rgba(47,201,166,.44);
  background: rgba(47,201,166,.08);
}

.cabinet-badge--warning {
  color: var(--amber);
  border: 1px solid rgba(240,167,66,.44);
  background: rgba(240,167,66,.08);
}

.cabinet-badge--disabled {
  color: var(--subtle);
  border: 1px solid var(--line);
}

.cabinet-badge--normal {
  color: var(--muted);
  border: 1px solid var(--line);
}

.calendar-settings-main {
  padding: 28px clamp(20px, 4vw, 56px) 56px;
}

.calendar-settings {
  display: grid;
  gap: var(--settings-gap);
  max-width: none;
}

.calendar-settings__topbar {
  align-items: flex-start;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.calendar-settings__topbar h1 {
  font-size: 17px;
}

.calendar-settings__topbar .page-subtitle {
  max-width: 560px;
  font-size: 12px;
}
.calendar-settings h2[id] { scroll-margin-block-start: 24px; }

.calendar-settings-section,
.calendar-source-card,
.calendar-empty-state {
  border: 0;
  border-radius: 0;
  background: transparent;
  min-width: 0;
}

.calendar-settings-section h2,
.calendar-source-card h3,
.calendar-empty-state h3 {
  margin: 0;
  font-size: 15px;
  letter-spacing: 0;
}

.calendar-section-head p,
.calendar-source-card p,
.calendar-empty-state p,
.calendar-policy-note,
.calendar-empty-inline {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.42;
}

.calendar-boundary-list,
.calendar-notice-list,
.calendar-state-copy {
  display: grid;
  gap: 8px;
  margin: 10px 0 0;
  padding: 0;
}

.calendar-boundary-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  list-style: none;
  gap: 7px 14px;
}

.calendar-boundary-list li {
  display: grid;
  gap: 2px;
  min-width: 0;
  padding-left: 10px;
  border-left: 2px solid rgba(47,201,166,.45);
}

.calendar-boundary-list strong,
.calendar-notice h2 {
  font-size: 12px;
  letter-spacing: 0;
}

.calendar-boundary-list span,
.calendar-notice p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.42;
}

.calendar-state-copy {
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.calendar-state-copy .calendar-policy-note {
  margin: 0;
}

.calendar-notice {
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  padding: 12px 14px;
  background: var(--surface);
}

.calendar-notice--success {
  border-color: rgba(47,201,166,.34);
  background: rgba(47,201,166,.06);
}

.calendar-notice--warning {
  border-color: rgba(255,196,87,.34);
  background: rgba(255,196,87,.07);
}

.calendar-notice--error {
  border-color: rgba(255,107,107,.34);
  background: rgba(255,107,107,.06);
}

.calendar-notice h2,
.calendar-notice p {
  margin: 0;
}

.calendar-settings-section {
  display: grid;
  gap: 12px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.calendar-settings-section--primary {
  padding-top: 20px;
}

.calendar-section-head,
.calendar-source-card__header,
.calendar-source-card__actions {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
}

.calendar-count {
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

.calendar-source-list,
.calendar-preview-list {
  display: grid;
  gap: 0;
}

.calendar-source-card {
  display: grid;
  gap: 10px;
  padding: 12px 0 16px;
}

.calendar-source-card + .calendar-source-card {
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
}

.calendar-source-card[data-state="error"],
.calendar-source-card[data-state="needs_action"] {
  border-color: rgba(255,107,107,.34);
}

.calendar-source-card[data-state="connected_selection_needed"],
.calendar-source-card[data-state="connecting"] {
  border-color: rgba(255,196,87,.34);
}

.calendar-source-card__states {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.calendar-source-card__actions {
  justify-content: flex-start;
  align-items: center;
  flex-wrap: wrap;
}

.calendar-source-identity {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-width: 0;
}

.calendar-source-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 16px;
  margin: 0;
}

.calendar-source-meta div {
  border: 0;
  padding: 0;
  min-width: 0;
}

.calendar-source-meta dt {
  color: var(--muted);
  font-size: 11px;
}

.calendar-source-meta dd {
  margin: 2px 0 0;
  overflow-wrap: anywhere;
}

.calendar-safe-error {
  margin: 0;
  color: #ffd6d6;
  border: 1px solid rgba(255,107,107,.34);
  border-radius: 7px;
  padding: 9px;
  background: rgba(255,107,107,.06);
}

.calendar-source-card__actions form {
  margin: 0;
}

.calendar-disconnect {
  display: block;
  gap: 8px;
  min-width: 0;
  width: fit-content;
}

.calendar-disconnect summary {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  border-radius: 7px;
  padding: 0 10px;
  cursor: pointer;
  list-style: none;
}

.calendar-disconnect summary::-webkit-details-marker {
  display: none;
}

.calendar-disconnect__body {
  display: grid;
  gap: 8px;
  max-width: 520px;
  border: 1px solid rgba(255,107,107,.34);
  border-radius: 8px;
  padding: 10px;
  background: rgba(255,107,107,.06);
}

.calendar-disconnect__body p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.42;
}

.calendar-disconnect__body form {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.calendar-picker {
  display: grid;
  gap: 7px;
  border: 0;
  margin: 0;
  padding: 0;
}

.calendar-selection-form {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.calendar-picker legend {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  padding: 0 0 2px;
}

.calendar-picker-row,
.calendar-preview-row {
  display: grid;
  align-items: center;
  min-width: 0;
  border: 1px solid var(--line-soft);
  border-radius: 7px;
  background: transparent;
}

.calendar-picker-row {
  grid-template-columns: 18px 12px minmax(0, 1fr) auto;
  gap: 9px;
  min-height: 36px;
  padding: 8px 10px;
}

.calendar-picker-row input {
  min-height: 16px;
  width: 16px;
  accent-color: var(--accent);
}

.calendar-picker-row[aria-disabled="true"] {
  color: var(--muted);
  cursor: not-allowed;
  opacity: .76;
}

.calendar-picker-row:focus-within,
.calendar-disconnect:focus-within {
  border-color: rgba(182,170,255,.55);
}

.calendar-picker-row span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.calendar-picker-row small {
  color: var(--muted);
}

.calendar-color {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--accent);
  border: 1px solid rgba(255,255,255,.22);
}

.calendar-provider-buttons {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.calendar-provider-button {
  justify-content: flex-start;
  min-height: 46px;
  border-color: var(--line-soft);
  background: rgba(255,255,255,.015);
  padding: 7px 10px;
  text-align: left;
}

.calendar-provider-button:hover {
  border-color: var(--line);
  background: rgba(255,255,255,.035);
}

.calendar-provider-button span:last-child {
  min-width: 0;
  overflow-wrap: anywhere;
}

.calendar-provider-mark,
.calendar-provider-logo {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: rgba(182,170,255,.14);
  color: #dfd9ff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
}

.calendar-provider-logo[data-provider="caldav_yandex"] {
  background: #fff;
  color: #fc3f1d;
}

.calendar-provider-logo[data-provider="caldav_mail_ru"] {
  background: #1b72f2;
  color: #fff;
}

.calendar-provider-logo[data-provider="exchange_ews"] {
  background: #0078d4;
  color: #fff;
}

.calendar-provider-logo[data-provider="bitrix24"] {
  background: #19a7f2;
  color: #fff;
  font-size: 11px;
}

.calendar-provider-logo[data-provider="custom_caldav_vk_workspace"] {
  background: #0077ff;
  color: #fff;
}

.calendar-provider-logo[data-provider="caldav_mailion_myoffice"] {
  background: #2d6cdf;
  color: #fff;
}

.calendar-provider-logo[data-provider="caldav_r7_office"] {
  background: #da2735;
  color: #fff;
}

.calendar-provider-logo[data-provider="caldav_communigate_pro"] {
  background: #3b6b52;
  color: #fff;
}

.calendar-provider-logo[data-provider="caldav_rupost"] {
  background: #1f6fbc;
  color: #fff;
}

.calendar-provider-logo[data-provider="caldav_nextcloud_sogo"] {
  background: #0082c9;
  color: #fff;
}

.calendar-provider-logo[data-provider="custom_caldav"] {
  background: rgba(255,255,255,.12);
  color: #f2f4f8;
}

.calendar-provider-dialog {
  width: min(460px, calc(100vw - 36px));
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  padding: 0;
  box-shadow: 0 24px 70px rgba(0,0,0,.5);
}

.calendar-provider-dialog::backdrop {
  background: rgba(0,0,0,.62);
}

.calendar-provider-modal {
  display: grid;
  gap: 0;
  min-width: 0;
}

.calendar-provider-modal__header {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 30px;
  gap: 10px;
  align-items: center;
  min-width: 0;
  padding: 18px 18px 14px;
  border-bottom: 1px solid var(--line);
}

.calendar-provider-modal__header h2,
.calendar-provider-modal__header p {
  margin: 0;
}

.calendar-provider-modal__header h2 {
  font-size: 16px;
  line-height: 1.2;
  letter-spacing: 0;
}

.calendar-provider-modal__header p,
.calendar-provider-modal__footer p,
.calendar-provider-safe-hint,
.calendar-provider-limitation {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.42;
}

.calendar-provider-modal__close {
  width: 30px;
  height: 30px;
  padding: 0;
  border-radius: 999px;
  background: transparent;
}

.calendar-provider-modal__body,
.calendar-provider-modal__footer {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 14px 18px;
}

.calendar-provider-modal__body label {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.calendar-provider-modal__body label span {
  color: var(--muted);
  font-size: 12px;
}

.calendar-provider-modal__body input {
  height: 34px;
}

.calendar-provider-modal__footer {
  border-top: 1px solid var(--line-soft);
  padding-top: 12px;
}

.calendar-provider-modal__footer p,
.calendar-provider-safe-hint,
.calendar-provider-limitation {
  margin: 0;
}

.calendar-provider-modal__actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.calendar-advanced-fields {
  display: grid;
  gap: 8px;
}

.calendar-preference-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  width: min(520px, 100%);
}

.calendar-preferences-form {
  display: grid;
  justify-items: start;
  gap: 10px;
  min-width: 0;
}

.calendar-preferences-form .cabinet-checkbox {
  width: min(520px, 100%);
  min-height: 34px;
}

.calendar-policy-note {
  border-top: 1px solid var(--line-soft);
  padding-top: 10px;
  width: min(620px, 100%);
}

.calendar-preview-row {
  grid-template-columns: 154px minmax(0, 1fr) auto;
  gap: 10px;
  padding: 10px 12px;
  border-width: 0 0 1px;
  border-radius: 0;
}

.calendar-preview-row time,
.calendar-preview-row span,
.calendar-preview-row small {
  color: var(--muted);
  font-size: 12px;
}

.calendar-preview-muted {
  align-self: center;
}

.calendar-preview-row[data-sync="stale"] {
  border-color: rgba(255,196,87,.34);
  background: rgba(255,196,87,.06);
}

.calendar-preview-row[data-state="private"],
.calendar-preview-row[data-state="free_busy"],
.calendar-preview-row[data-state="free_busy_only"] {
  border-color: rgba(255,255,255,.10);
}

.calendar-preview-row > div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.calendar-preview-row strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.calendar-conflict-list {
  display: grid;
  gap: 10px;
}

.calendar-conflict {
  border: 1px solid rgba(255,196,87,.34);
  border-radius: 8px;
  padding: 12px;
  background: rgba(255,196,87,.07);
}

.calendar-conflict h3,
.calendar-conflict p {
  margin: 0;
}

.calendar-conflict h3 {
  font-size: 13px;
  letter-spacing: 0;
}

.calendar-conflict p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.calendar-conflict-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.calendar-conflict-choice {
  border: 1px solid rgba(255,196,87,.34);
  border-radius: 7px;
  padding: 6px 9px;
  color: var(--text);
  font-size: 12px;
}

.calendar-empty-state {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 0;
}

.calendar-empty-inline {
  border: 1px dashed var(--line);
  border-radius: 7px;
  padding: 11px;
}

.calendar-quick-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
  min-width: 0;
}

.calendar-quick-stats span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 24px;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  padding: 0 9px;
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

.calendar-quick-stats strong {
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.calendar-source-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
}

.calendar-source-summary span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.calendar-source-details,
.calendar-advanced-fields,
.calendar-secondary-settings,
.calendar-preview-details,
.calendar-privacy-details,
.calendar-support-details,
.calendar-provider-dialog,
.calendar-provider-modal {
  min-width: 0;
}

.calendar-source-details summary,
.calendar-advanced-fields summary,
.calendar-secondary-settings summary,
.calendar-preview-details summary,
.calendar-privacy-details summary,
.calendar-support-details summary {
  cursor: pointer;
  color: var(--text);
  font-size: 12px;
  font-weight: 750;
}

.calendar-source-details summary:hover,
.calendar-advanced-fields summary:hover,
.calendar-secondary-settings summary:hover,
.calendar-preview-details summary:hover,
.calendar-privacy-details summary:hover,
.calendar-support-details summary:hover {
  color: #fff;
}

.calendar-source-details[open],
.calendar-secondary-settings[open],
.calendar-preview-details[open],
.calendar-privacy-details[open],
.calendar-support-details[open] {
  display: grid;
  gap: 10px;
}

.calendar-source-details--meta {
  width: fit-content;
}

.calendar-source-details--meta > summary {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 0 10px;
}

.calendar-preview-details,
.calendar-privacy-details,
.calendar-support-details {
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
}

.calendar-settings-folders {
  display: grid;
}

.calendar-preview-details > summary,
.calendar-privacy-details > summary,
.calendar-support-details > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  list-style-position: inside;
}

.calendar-preview-details > p,
.calendar-privacy-details > p,
.calendar-support-details p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.42;
}

.calendar-privacy-details .calendar-boundary-list {
  margin-top: 10px;
}

.calendar-support-details .calendar-state-copy {
  border-bottom: 0;
  padding-bottom: 0;
}

@media (max-width: 540px) {
  .calendar-boundary-list,
  .calendar-source-meta,
  .calendar-preview-row {
    grid-template-columns: 1fr;
  }

  .calendar-settings__topbar,
  .calendar-section-head,
  .calendar-source-card__header,
  .calendar-source-card__actions,
  .calendar-empty-state {
    align-items: stretch;
    flex-direction: column;
  }

  .calendar-quick-stats {
    justify-content: flex-start;
  }

  .calendar-provider-buttons {
    grid-template-columns: 1fr;
  }

  .calendar-provider-modal__actions {
    flex-direction: column-reverse;
    align-items: stretch;
  }

  .calendar-provider-modal__actions > * {
    width: 100%;
  }
}

.cabinet-tab.is-selected,
.cabinet-sidebar-nav__item.is-selected,
.cabinet-meeting-row.is-selected {
  background: var(--surface-3);
}

.cabinet-tooltip {
  position: relative;
  display: inline-flex;
}

.cabinet-tooltip__body {
  position: absolute;
  z-index: 10;
  left: 0;
  top: calc(100% + 6px);
  width: max-content;
  max-width: min(280px, 80vw);
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #111214;
  padding: 8px 10px;
  color: var(--text);
  opacity: 0;
  pointer-events: none;
}

.cabinet-tooltip:hover .cabinet-tooltip__body,
.cabinet-tooltip:focus-within .cabinet-tooltip__body {
  opacity: 1;
}

.cabinet-loader {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid var(--line);
  border-top-color: var(--accent);
  border-radius: 50%;
}

.cabinet-loader--inline {
  width: 14px;
  height: 14px;
}

.cabinet-text {
  margin: 0;
  min-width: 0;
}

.cabinet-text--muted {
  color: var(--muted);
}

.cabinet-text--overflow {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cabinet-confirmation-dialog__actions {
  display: flex;
  gap: 8px;
}

.cabinet-sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cabinet-meeting-row,
.cabinet-playback-controls,
.cabinet-detail-panel,
.cabinet-confirmation-dialog,
.cabinet-banner,
.cabinet-empty,
.cabinet-unavailable,
.cabinet-auth-form {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.cabinet-meeting-row,
.cabinet-playback-controls {
  display: grid;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.cabinet-sidebar-nav__item {
  position: relative;
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-width: 0;
  min-height: 36px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}
.cabinet-sidebar-nav__item .ui-icon {
  width: 16px;
  height: 16px;
}

.cabinet-workspace-header {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.cabinet-workspace-header--wordmark-only {
  grid-template-columns: minmax(0, 1fr);
  min-height: 66px;
  place-items: center start;
  padding: 12px 18px;
}

.cabinet-workspace-header__avatar {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: #111820;
  color: #24272b;
  font-weight: 800;
  overflow: hidden;
}

.cabinet-workspace-header__text,
.cabinet-meeting-row__title {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cabinet-workspace-header__wordmark {
  display: block;
  width: 78px;
  height: 29px;
  object-fit: contain;
  object-position: left center;
}

.cabinet-workspace-header--wordmark-only .cabinet-workspace-header__wordmark {
  width: 136px;
  height: 50px;
}

.cabinet-meeting-row {
  grid-template-columns: 24px 24px minmax(0, 1fr) auto auto;
  min-height: 46px;
  padding: 7px 10px;
}

.cabinet-playback-controls {
  grid-template-columns: 32px minmax(0, 1fr) auto;
  padding: 8px;
}

.cabinet-playback-controls[data-state="unavailable"],
.cabinet-unavailable {
  color: var(--muted);
}

.cabinet-playback-controls__timeline {
  height: 6px;
  border-radius: 999px;
  background: var(--line);
}

.cabinet-detail-panel,
.cabinet-confirmation-dialog,
.cabinet-banner,
.cabinet-empty,
.cabinet-unavailable,
.cabinet-auth-form {
  display: grid;
  gap: 12px;
  padding: 14px;
  min-width: 0;
}

.cabinet-confirmation-dialog[data-state="destructive"] {
  border-color: rgba(255,107,107,.35);
}

.cabinet-auth-form {
  max-width: 420px;
}

/* Feature 104: meeting-first workspace. */
.cabinet-main {
  padding: var(--space-4) clamp(20px, 3.2vw, 48px) 64px;
}
.desktop-embedded .cabinet-main {
  padding: 20px clamp(var(--space-3), 2.5vw, 32px) 48px;
}
.cabinet-workspace,
.desktop-embedded .cabinet-workspace {
  width: 100%;
  max-width: none;
  margin: 0;
}
.cabinet-topbar {
  min-height: 40px;
  margin-bottom: 20px;
  flex-wrap: nowrap;
  gap: var(--space-4);
}
.cabinet-titleline {
  flex: 0 1 auto;
  gap: 10px;
}
.cabinet-titleline h1 {
  font-size: 20px;
  line-height: 1.2;
  white-space: nowrap;
}
.cabinet-titleline > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cabinet-list-controls {
  width: auto;
  min-width: 0;
  margin-left: auto;
  display: flex;
  justify-content: flex-end;
  gap: var(--space-1);
}
.cabinet-search-control {
  position: relative;
  width: clamp(180px, 24vw, 280px);
  min-width: 0;
}
.cabinet-search-control > span {
  position: absolute;
  z-index: 1;
  left: 10px;
  top: 50%;
  display: grid;
  color: var(--muted);
  transform: translateY(-50%);
  pointer-events: none;
}
.cabinet-search-control .ui-icon {
  width: 15px;
  height: 15px;
}
.cabinet-search-control input {
  min-height: var(--control-height);
  padding-left: 34px;
  border-color: rgba(255,255,255,.11);
  background: #222428;
}
.cabinet-search-control input::placeholder {
  color: #8e949d;
}
.cabinet-control-disclosure {
  position: relative;
  flex: 0 0 auto;
}
.cabinet-control-disclosure > summary {
  list-style: none;
}
.cabinet-control-disclosure > summary::-webkit-details-marker {
  display: none;
}
.cabinet-control-disclosure > .icon-control {
  width: auto;
  min-width: 88px;
  height: var(--control-height);
  min-height: var(--control-height);
  padding: 0 10px;
  grid-auto-flow: column;
  gap: 6px;
  justify-content: center;
  align-items: center;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 8px;
  background: #222428;
  cursor: pointer;
}
.cabinet-filter-reset.icon-control {
  width: auto;
  min-width: 88px;
  height: var(--control-height);
  min-height: var(--control-height);
  padding: 0 10px;
  gap: 6px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 8px;
  background: #222428;
  cursor: pointer;
}
.cabinet-control-disclosure > .icon-control:hover,
.cabinet-control-disclosure[open] > .icon-control,
.cabinet-filter-reset.icon-control:hover {
  border-color: rgba(182,170,255,.45);
  background: #2a2d32;
  color: #f1efff;
}
.cabinet-control-disclosure.is-active > .icon-control {
  color: #dcd5ff;
  border-color: rgba(140,115,255,.5);
}
.cabinet-control-label {
  position: static;
  width: auto;
  height: auto;
  overflow: visible;
  clip: auto;
  white-space: nowrap;
}
.cabinet-control-popover {
  position: absolute;
  z-index: 40;
  top: calc(100% + 8px);
  right: 0;
  width: 244px;
  padding: var(--space-2);
  display: grid;
  gap: var(--space-1);
  border: 1px solid #3b3f46;
  border-radius: 10px;
  background: #242629;
  box-shadow: 0 18px 48px rgba(0,0,0,.38);
}
.cabinet-control-popover label {
  color: var(--muted);
  font-size: 12px;
}
.cabinet-control-popover select {
  min-height: var(--control-height);
  background: #1d1f22;
}
.cabinet-control-popover--sort {
  width: 220px;
}
.new-button.manual-upload-trigger {
  min-width: 108px;
  min-height: var(--control-height);
  border-radius: 8px;
  background: var(--accent);
}
.meeting-toolbar {
  min-height: var(--control-height);
  margin: 0 0 var(--space-1);
}
.selection-toolbar {
  min-height: var(--control-height);
  padding-left: 0;
  gap: var(--space-1);
  flex-wrap: wrap;
}
.selection-toggle-label {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--text);
  cursor: pointer;
  white-space: nowrap;
}
.selection-count {
  color: #e8e5ff;
  line-height: var(--control-height);
}
.selection-clear {
  min-height: 32px;
  padding: 0 9px;
  border-color: transparent;
  color: var(--muted);
}
.selection-clear:hover {
  color: var(--text);
  background: var(--surface-3);
}
.selection-delete.icon-control {
  width: auto;
  min-width: 32px;
  padding: 0 9px;
  display: inline-flex;
  gap: 6px;
}
.list-card.cabinet-card {
  min-height: 0;
  border-color: rgba(255,255,255,.12);
  border-radius: 10px;
  background: #1d1f21;
  animation: none;
}
.meeting-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.shared-with-me-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  padding: var(--space-2);
  margin-bottom: var(--space-1);
}
.shared-with-me-card h2,
.shared-with-me-card p {
  margin: 0;
}
.shared-with-me-card p + p {
  margin-top: 4px;
}
.meeting-row.cabinet-row {
  grid-template-columns: 32px 20px minmax(0, 1fr) 32px minmax(84px, auto);
  min-height: var(--meeting-row-height);
  padding: 0 var(--space-1);
  gap: 6px;
  border-bottom-color: rgba(255,255,255,.09);
  position: relative;
  transform: none;
}
.meeting-row.has-status {
  min-height: var(--meeting-row-exception-height);
}
.meeting-row.has-status .meeting-content {
  padding-block: 2px;
}
.meeting-row.cabinet-row:hover,
.meeting-row.cabinet-row:focus-within {
  background: #26292d;
  transform: none;
}
.meeting-row.is-selected,
.meeting-row.is-selected:hover,
.meeting-row.is-selected:focus-within {
  background: #2e2948;
}
.meeting-row.is-selected::before {
  position: absolute;
  inset: 5px auto 5px 0;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--focus-ring);
  content: "";
}
.row-select-hit,
.row-delete-form {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
}
.row-check {
  width: 16px;
  height: 16px;
  min-height: 16px;
}
.meeting-row:not(:hover):not(:focus-within):not(.is-selected) .row-select-hit,
.meeting-row:not(:hover):not(:focus-within):not(.is-selected) .row-delete {
  opacity: 0;
}
.meeting-row:hover .row-select-hit,
.meeting-row:focus-within .row-select-hit,
.meeting-row.is-selected .row-select-hit,
.meeting-row:hover .row-delete,
.meeting-row:focus-within .row-delete,
.meeting-row.is-selected .row-delete {
  opacity: 1;
}
.row-icon {
  width: 20px;
  height: 32px;
}
.meeting-content {
  min-width: 0;
  padding: 6px 0;
  display: grid;
  gap: 1px;
}
.meeting-heading {
  min-width: 0;
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.meeting-title {
  min-width: 0;
  padding: 1px 0;
  border-radius: 5px;
}
.meeting-duration {
  flex: 0 0 auto;
  font-size: 11px;
  line-height: 16px;
  white-space: nowrap;
}
.meeting-title:focus-visible {
  outline-offset: -1px;
}
.row-title {
  line-height: 18px;
}
.row-meta {
  min-height: 14px;
  line-height: 14px;
  align-items: center;
  gap: 6px;
}
.calendar-context-list-action {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
}
.meeting-date {
  padding-right: 4px;
  font-variant-numeric: tabular-nums;
}
.empty-state,
.list-recovery-state {
  min-height: 176px;
  padding: 32px;
  display: grid;
  place-content: center;
  gap: var(--space-1);
  color: var(--muted);
  text-align: center;
}
.empty-state strong,
.list-recovery-state strong {
  color: var(--text);
  font-size: 15px;
}
.list-loading-state,
.list-recovery-state {
  min-height: 176px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 10px;
  background: #1d1f21;
}
.list-loading-state {
  padding: 12px;
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
}
.list-loading-skeleton {
  display: grid;
}
.list-loading-skeleton > span {
  height: var(--meeting-row-height);
  border-bottom: 1px solid rgba(255,255,255,.09);
  background: linear-gradient(90deg, rgba(255,255,255,.025), rgba(255,255,255,.055), rgba(255,255,255,.025));
}
.list-loading-skeleton > span:last-child {
  border-bottom: 0;
}
.list-recovery-state {
  justify-items: center;
}
.list-recovery-action {
  margin-top: var(--space-1);
}

@media (hover: none), (pointer: coarse) {
  .meeting-row:not(:hover):not(:focus-within):not(.is-selected) .row-select-hit,
  .meeting-row:not(:hover):not(:focus-within):not(.is-selected) .row-delete {
    opacity: 1;
  }
}
.sidebar {
  padding: 12px 10px;
  gap: 12px;
  background: #1d1f21;
}
.cabinet-workspace-header--wordmark-only {
  min-height: 52px;
  padding: 8px 10px;
  border-color: transparent;
  background: transparent;
}
.cabinet-workspace-header--wordmark-only .cabinet-workspace-header__wordmark {
  width: 108px;
  height: 40px;
}
.cabinet-workspace-header--brand {
  grid-template-columns: minmax(0, 1fr);
  min-height: 52px;
  padding: var(--space-1);
  border-color: transparent;
  background: transparent;
}
.cabinet-workspace-header--brand .cabinet-workspace-header__avatar {
  display: none;
}
.cabinet-workspace-header--brand .cabinet-workspace-header__wordmark {
  width: 86px;
  height: 32px;
}
.cabinet-sidebar-nav {
  gap: 4px;
}
.cabinet-sidebar-nav__item {
  min-height: 36px;
  border-color: transparent;
  background: transparent;
}
.cabinet-sidebar-nav__item:hover,
.cabinet-sidebar-nav__item.is-selected {
  background: #2b2e32;
}
.sidebar-foot {
  gap: 4px;
}

@media (max-width: 1120px) {
  .app-shell.desktop-embedded {
    --playback-inline-start: var(--app-rail-width);
    grid-template-columns: var(--app-rail-width) minmax(0, 1fr);
  }
  .app-shell.desktop-embedded.is-rail-pinned {
    --playback-inline-start: var(--app-sidebar-width);
  }
  .desktop-embedded .sidebar {
    z-index: 31;
    width: var(--app-rail-width);
    min-width: var(--app-rail-width);
    padding: 8px 6px;
    overflow: hidden;
    box-shadow: none;
  }
  .desktop-embedded.is-rail-pinned .sidebar {
    width: var(--app-sidebar-width);
    box-shadow: 18px 0 44px rgba(0,0,0,.28);
  }
  .desktop-embedded .cabinet-rail-toggle {
    display: grid;
    width: 40px;
    height: 40px;
    min-height: 40px;
    padding: 0;
    place-items: center;
    border-color: transparent;
    background: transparent;
  }
  .desktop-embedded .cabinet-rail-toggle [data-icon="panel-left-close"],
  .desktop-embedded.is-rail-pinned .cabinet-rail-toggle [data-icon="panel-left-open"] {
    display: none;
  }
  .desktop-embedded.is-rail-pinned .cabinet-rail-toggle [data-icon="panel-left-close"] {
    display: block;
  }
  .desktop-embedded .cabinet-workspace-header,
  .desktop-embedded .cabinet-sidebar-nav__item,
  .desktop-embedded .sidebar-foot {
    width: calc(var(--app-sidebar-width) - 12px);
  }
  .desktop-embedded .cabinet-workspace-header__text,
  .desktop-embedded .cabinet-sidebar-nav__label,
  .desktop-embedded .sidebar-foot {
    opacity: 0;
    pointer-events: none;
  }
  .desktop-embedded .sidebar-foot {
    visibility: hidden;
  }
  .desktop-embedded.is-rail-pinned .cabinet-workspace-header__text,
  .desktop-embedded.is-rail-pinned .cabinet-sidebar-nav__label,
  .desktop-embedded.is-rail-pinned .sidebar-foot {
    opacity: 1;
    pointer-events: auto;
  }
  .desktop-embedded.is-rail-pinned .sidebar-foot {
    visibility: visible;
  }
  .desktop-embedded .sidebar-app-update {
    width: 40px;
    min-width: 40px;
    padding: 0;
    justify-content: center;
  }
  .desktop-embedded .sidebar-app-update__label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
  }
  .desktop-embedded.is-rail-pinned .sidebar-app-update {
    width: calc(var(--app-sidebar-width) - 12px);
    padding: 0 9px;
    justify-content: flex-start;
  }
  .desktop-embedded.is-rail-pinned .sidebar-app-update__label {
    position: static;
    width: auto;
    height: auto;
    overflow: visible;
    clip: auto;
    white-space: normal;
  }
  .desktop-embedded .cabinet-workspace-header {
    min-height: 40px;
    padding: 0 6px;
  }
  .desktop-embedded .cabinet-workspace-header--brand {
    grid-template-columns: 34px minmax(0, 1fr);
  }
  .desktop-embedded .cabinet-workspace-header--brand .cabinet-workspace-header__avatar {
    display: grid;
  }
  .desktop-embedded .cabinet-workspace-header__wordmark {
    width: 96px;
    height: 36px;
  }
  .desktop-embedded .cabinet-sidebar-nav__item {
    grid-template-columns: 40px minmax(0, 1fr);
    min-height: 40px;
    padding: 0;
    gap: 8px;
  }
  .desktop-embedded .cabinet-sidebar-nav__item .ui-icon {
    justify-self: center;
  }
  .cabinet-control-disclosure > .icon-control {
    width: var(--control-height);
    min-width: var(--control-height);
    padding: 0;
    gap: 0;
  }
  .cabinet-filter-reset.icon-control {
    width: var(--control-height);
    min-width: var(--control-height);
    padding: 0;
    gap: 0;
  }
  .cabinet-control-label,
  .new-button.manual-upload-trigger > span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
  }
  .desktop-embedded .cabinet-list-controls .manual-upload-trigger {
    grid-column: auto;
    width: 40px;
    min-width: 40px;
    padding: 0;
  }
}

.content-export-dialog {
  width: min(460px, calc(100vw - 28px));
  max-height: min(560px, calc(100vh - 28px));
  padding: 0;
  overflow: hidden;
  overscroll-behavior: contain;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--text);
  box-shadow: 0 24px 80px rgba(0,0,0,.48);
}
.content-export-dialog::backdrop { background: rgba(0,0,0,.64); }
.content-export-form {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  max-height: min(560px, calc(100vh - 28px));
}
.content-export-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 18px 14px;
  border-bottom: 1px solid var(--line-soft);
}
.content-export-header h2 {
  margin: 0;
  font-size: 19px;
  line-height: 1.2;
}
.content-export-close {
  width: 30px;
  height: 30px;
  padding: 0;
  border-radius: 999px;
  background: transparent;
}
.content-export-body {
  display: grid;
  gap: 16px;
  min-height: 0;
  padding: 16px 18px;
  overflow: auto;
}
.content-export-field {
  display: grid;
  gap: 7px;
  font-weight: 700;
}
.content-export-field select { width: 100%; font-weight: 500; }
.content-export-details {
  border-top: 1px solid var(--line-soft);
  padding-top: 10px;
}
.content-export-details summary {
  cursor: pointer;
  font-weight: 650;
}
.content-export-options {
  display: grid;
  gap: 8px;
  padding: 10px 2px 2px;
}
.content-export-options label {
  display: flex;
  align-items: center;
  gap: 8px;
}
.content-export-options input {
  width: 16px;
  min-width: 16px;
  min-height: 16px;
  padding: 0;
  accent-color: var(--accent);
}
.content-export-copy { justify-self: start; margin-top: 2px; }
.content-export-body > .truth-copy { margin: 0; font-size: 11px; }
.content-export-footer {
  display: grid;
  gap: 8px;
  padding: 12px 18px 14px;
  border-top: 1px solid var(--line-soft);
  background: var(--panel);
}
.content-export-status {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}
.content-export-status:empty { display: none; }
.content-export-status[data-state="error"] { color: #ffb8b8; }
.content-export-status[data-state="success"] { color: #b9f6cf; }
.content-export-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}
.content-export-dialog[aria-busy="true"] .content-export-form {
  cursor: progress;
}

@media (max-width: 860px) {
  .cabinet-topbar {
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
  }
  .cabinet-list-controls {
    width: 100%;
    margin-left: 0;
  }
  .cabinet-search-control {
    width: auto;
    flex: 1 1 auto;
  }
}

@media (max-width: 620px) {
  .cabinet-main,
  .desktop-embedded .cabinet-main {
    padding: 14px 10px 36px;
  }
  .cabinet-titleline > span {
    display: none;
  }
  .cabinet-list-controls {
    flex-wrap: wrap;
  }
  .cabinet-search-control {
    flex-basis: calc(100% - 116px);
  }
  .new-button.manual-upload-trigger {
    flex: 1 0 108px;
  }
  .meeting-row.cabinet-row {
    grid-template-columns: 32px 20px minmax(0, 1fr) 32px;
    grid-template-rows: auto auto;
    padding-block: 4px;
  }
  .meeting-row.cabinet-row .meeting-date {
    grid-column: 3 / 5;
    grid-row: 2;
    justify-self: start;
    padding: 0 4px 4px 0;
    text-align: left;
  }
}

@media (max-width: 480px) {
  .content-export-header,
  .content-export-body,
  .content-export-footer { padding-left: 14px; padding-right: 14px; }
  .content-export-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .content-export-actions button { width: 100%; }
  .summary-format-toolbar { align-items: flex-start; flex-direction: column; }
  .summary-format-picker,
  .summary-format-button { width: 100%; }
  .summary-format-listbox { left: 0; right: auto; }
  .summary-template-row { align-items: stretch; flex-direction: column; }
  .summary-template-dialog fieldset,
  .summary-template-options { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .content-export-dialog { scroll-behavior: auto; }
}

@media (forced-colors: active) {
  .content-export-dialog,
  .content-export-details { border-color: CanvasText; }
  .content-export-status[data-state="error"],
  .content-export-status[data-state="success"] { color: CanvasText; }
  .meeting-row.is-selected::before {
    background: Highlight;
  }
}

@media (prefers-contrast: more) {
  :root {
    --focus-ring: #d7d0ff;
    --line: #777c85;
    --muted: #c5c9d0;
  }
  .cabinet-search-control input,
  .cabinet-control-disclosure > .icon-control,
  .cabinet-filter-reset.icon-control,
  .list-card.cabinet-card,
  .meeting-row.cabinet-row {
    border-color: #7d828b;
  }
  .meeting-row.is-selected {
    outline: 2px solid var(--focus-ring);
    outline-offset: -2px;
  }
}

.share-dialog {
  width: min(560px, calc(100vw - 28px));
  max-height: calc(100vh - 28px);
  overflow: auto;
  overscroll-behavior: contain;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
  color: var(--text);
}
.share-dialog::backdrop { background: rgb(5 7 12 / 70%); }
.share-dialog__surface { display: grid; gap: 20px; padding: 24px; }
.share-dialog__header,
.share-recipient-row,
.share-viewer-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.share-dialog__header { align-items: flex-start; }
.share-dialog__header h2,
.share-dialog__header p,
.share-viewers h3 { margin: 0; }
.share-dialog__header h2 { font-size: clamp(1.35rem, 3vw, 1.7rem); line-height: 1.15; }
.share-dialog__header p { max-width: 46ch; margin-top: 7px; color: var(--muted); line-height: 1.45; }
.share-dialog__capability { display: grid; gap: 6px; border: 1px solid var(--line-soft); border-radius: 12px; padding: 14px 16px; background: var(--surface-2); }
.share-dialog__capability strong { font-size: 1rem; }
.share-dialog__capability p { margin: 0; color: var(--muted); line-height: 1.4; }
.share-dialog__capability[data-share-capability-state="auth_required"] { border-color: rgba(255, 193, 102, .45); }
.share-recipient-form { display: grid; gap: 8px; }
.share-recipient-row input { min-width: 0; flex: 1 1 auto; }
.share-recipient-row button { min-width: 76px; white-space: nowrap; }
.share-scope-disclosure { border-block: 1px solid var(--line); padding: 14px 0; }
.share-scope-disclosure summary { cursor: pointer; font-weight: 700; }
.share-scope-disclosure p { max-width: 60ch; margin: 8px 0 0; color: var(--muted); line-height: 1.45; }
.share-viewers { display: grid; gap: 12px; }
.share-viewer-row { padding: 10px 0; border-bottom: 1px solid var(--line); }
.share-viewer-row > span:first-child { display: grid; gap: 3px; min-width: 0; }
.share-viewer-row__actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.share-dialog__status { min-height: 22px; margin: 0; }
.share-dialog__status[data-tone="error"] { color: #ffb8b8; }
.share-dialog__status[data-tone="success"] { color: #b9f6cf; }
.share-viewer-row button,
.share-recipient-results button { min-height: 40px; }
.share-recipient-results { display: grid; gap: 6px; margin-top: 8px; }
.share-recipient-results[hidden] { display: none; }
.share-recipient-confirmation-host[hidden] { display: none; }
.share-recipient-results button { display: grid; gap: 3px; justify-content: start; align-items: start; width: 100%; text-align: left; }
.share-recipient-confirmation,
.share-load-error { display: grid; gap: 8px; border: 1px solid var(--line-soft); border-radius: 12px; padding: 14px; background: var(--surface-2); }
.share-recipient-confirmation > strong,
.share-recipient-confirmation > small { overflow-wrap: anywhere; }
.share-recipient-confirmation .share-viewer-row__actions { justify-content: flex-start; }
.share-load-error p { margin: 0; }
.share-recipient-option__action { color: var(--accent); font-size: 12px; font-weight: 700; }
.share-recipient-results [role="option"][aria-selected="true"] {
  border-color: var(--focus-ring);
  font-weight: 700;
}
.shared-summary { display: grid; gap: 18px; max-width: 760px; }
.shared-summary h1,
.shared-summary h2,
.shared-summary p { overflow-wrap: anywhere; }
.shared-summary__notice { margin: 0; color: var(--muted); }
.shared-summary__sections { display: grid; gap: 12px; }
.shared-summary__section { border: 1px solid var(--line-soft); border-radius: 12px; padding: 16px; background: var(--surface-2); }
.shared-summary__section h2,
.shared-summary__section p { margin: 0; }
.shared-summary__section p { margin-top: 8px; white-space: pre-wrap; }
.shared-summary__cta { display: grid; gap: 8px; border-top: 1px solid var(--line); padding-top: 18px; }
.shared-summary__cta p { margin: 0; }

@media (max-width: 620px) {
  .meeting-details-dialog,
  .share-dialog,
  .summary-format-dialog,
  .summary-template-dialog { width: calc(100vw - 20px); max-height: calc(100dvh - 20px); }
  .share-dialog__surface { padding: 20px 16px; }
  .share-recipient-row { align-items: stretch; flex-direction: column; }
  .share-recipient-row button { width: 100%; }
  .share-viewer-row { align-items: stretch; flex-direction: column; }
  .share-viewer-row__actions { justify-content: flex-start; }
}

@media (prefers-color-scheme: light) {
  .summary-format-toolbar,
  .summary-candidate-status,
  .meeting-actions-menu,
  .meeting-details-dialog,
  .content-export-dialog,
  .delete-dialog,
  .share-dialog,
  .summary-format-dialog,
  .summary-template-dialog {
    color-scheme: light;
    --panel: #ffffff;
    --surface-2: #f4f5f7;
    --line: #c9cdd3;
    --text: #1c2026;
    --muted: #555d68;
    --focus-ring: #4d32cc;
  }
  .delete-dialog { background: var(--panel); color: var(--text); border-color: var(--line); }
  .delete-dialog p { color: var(--text); }
  .summary-format-listbox [role="option"][aria-selected="true"] { color: #35238f; }
}

@media (prefers-contrast: more), (forced-colors: active) {
  .summary-format-listbox,
  .meeting-actions-menu,
  .meeting-details-dialog,
  .content-export-dialog,
  .delete-dialog,
  .share-dialog,
  .summary-format-dialog,
  .summary-template-dialog,
  .share-scope-disclosure,
  .share-viewer-row { border-color: CanvasText; }
}
