:root {
  color-scheme: light;
  --paper: #f4f4f0;
  --surface: #ffffff;
  --ink: #161714;
  --muted: #696b65;
  --line: #d9dad3;
  --soft: #e9eae4;
  --accent: #d84b35;
  --accent-dark: #ad3021;
  --green: #177b57;
  --yellow: #7a5100;
  --red: #b8342e;
  --sidebar: #20221f;
  --sidebar-muted: #a7aaa2;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); }
:lang(zh), :lang(zh-Hans) { font-family: "PingFang SC", "Hiragino Sans GB", "Noto Sans CJK SC", "Noto Sans SC", "Microsoft YaHei", Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
:lang(zh-Hant), :lang(zh-TW), :lang(zh-HK), :lang(zh-MO) { font-family: "PingFang TC", "Noto Sans CJK TC", "Noto Sans TC", "Microsoft JhengHei", Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
:lang(ja) { font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Noto Sans CJK JP", "Noto Sans JP", Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
button, input, select, textarea { font: inherit; letter-spacing: 0; }
button { cursor: pointer; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.hidden { display: none !important; }

.auth-gate { min-height: 100vh; background: var(--paper); }
.auth-header { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 0 clamp(18px, 4vw, 56px); border-bottom: 1px solid var(--line); background: var(--surface); }
.auth-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-size: 18px; font-weight: 720; }
.auth-brand .brand-mark { display: flex; align-items: center; justify-content: center; gap: 2px; }
.auth-brand .brand-mark i { width: 3px; border-radius: 2px; background: var(--accent); display: block; }
.auth-brand .brand-mark i:nth-child(1) { height: 8px; }
.auth-brand .brand-mark i:nth-child(2) { height: 17px; }
.auth-brand .brand-mark i:nth-child(3) { height: 12px; }
.auth-company { color: var(--muted); font-size: 12px; }
.auth-main { width: min(1180px, 100%); margin: 0 auto; padding: clamp(28px, 6vw, 72px) clamp(18px, 4vw, 56px) 90px; }
.auth-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(290px, 360px); align-items: start; gap: clamp(30px, 6vw, 80px); }
.auth-intro { min-width: 0; }
.auth-intro h1 { max-width: 620px; margin: 0; font-size: clamp(32px, 5vw, 56px); line-height: 1.05; letter-spacing: -.035em; }
.auth-intro > p { max-width: 560px; margin: 16px 0 0; color: var(--muted); font-size: 16px; line-height: 1.6; }
.auth-panel { min-width: 0; border: 1px solid var(--line); border-radius: 7px; padding: 24px; background: var(--surface); box-shadow: 0 16px 45px rgb(22 23 20 / 9%); }
.auth-panel h2 { margin: 0; font-size: 24px; font-weight: 740; }
.auth-panel-copy { margin: 8px 0 22px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.auth-panel .stacked-label { margin-top: 14px; }
.auth-panel .primary-button.full { margin-top: 16px; }
.auth-status { min-height: 18px; margin-top: 12px; color: var(--muted); font-size: 11px; line-height: 1.45; }
.auth-link-button { width: 100%; margin-top: 12px; border: 0; padding: 0; background: transparent; color: var(--accent-dark); font-size: 11px; text-decoration: underline; }
.auth-link-button:hover, .auth-link-button:focus-visible { color: var(--accent); }
.password-reset-delivery { display: grid; gap: 6px; margin-top: 14px; border: 1px solid #dec89c; border-radius: 5px; padding: 10px; background: #fff8e8; color: #6c592f; font-size: 10px; line-height: 1.45; }
.password-reset-delivery a { color: var(--accent-dark); font-weight: 700; }
.auth-mode-toggle { width: 100%; margin-top: 12px; border: 0; background: transparent; color: var(--accent-dark); font-size: 11px; text-decoration: underline; }
.auth-gallery-section { margin-top: clamp(36px, 7vw, 72px); }
.auth-section-heading { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.auth-section-heading h2 { margin: 0; font-size: 19px; }
.auth-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.auth-gallery-status { grid-column: 1 / -1; margin: 0; color: var(--muted); font-size: 12px; }
.auth-preview-card { min-width: 0; display: grid; gap: 10px; border: 1px solid var(--line); border-radius: 6px; padding: 10px; background: var(--surface); }
.auth-preview-thumbnail { min-height: 90px; border-radius: 4px; background: #dfe8e4; position: relative; overflow: hidden; }
.auth-preview-thumbnail::before { content: ""; position: absolute; inset: 0; opacity: .7; background: repeating-linear-gradient(90deg, transparent 0 16px, rgb(23 107 104 / 14%) 16px 17px), linear-gradient(135deg, #d5e6e3 0%, #f3ca70 100%); }
.auth-preview-thumbnail::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 15px; height: 13px; border-radius: 2px; background: repeating-linear-gradient(90deg, var(--accent) 0 4px, transparent 4px 9px); opacity: .75; }
.auth-preview-card:nth-child(even) .auth-preview-thumbnail::before { background: repeating-linear-gradient(90deg, transparent 0 16px, rgb(255 255 255 / 12%) 16px 17px), linear-gradient(135deg, #1f3f48 0%, #d84b35 100%); }
.auth-preview-card:nth-child(even) .auth-preview-thumbnail::after { background: repeating-linear-gradient(90deg, #f8e5ad 0 4px, transparent 4px 9px); }
.auth-preview-card h3 { min-width: 0; margin: 0; overflow-wrap: anywhere; font-size: 13px; line-height: 1.3; }
.auth-preview-meta { display: flex; flex-wrap: wrap; gap: 7px; color: var(--muted); font-size: 10px; }
.auth-preview-actions { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 2px; }
.auth-preview-actions button { min-width: 0; padding: 6px 8px; font-size: 10px; }
.auth-preview-actions button:last-child { color: var(--accent-dark); }

.app-shell { min-height: 100vh; display: grid; grid-template-columns: 232px minmax(0, 1fr); }
.sidebar {
  position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column;
  background: var(--sidebar); color: #f8f8f4; border-right: 1px solid #2d302b;
}
.brand-row { height: 72px; padding: 0 18px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; font-weight: 720; font-size: 18px; }
.brand-mark { width: 22px; height: 22px; display: flex; align-items: center; justify-content: center; gap: 2px; }
.brand-mark i { width: 3px; border-radius: 2px; background: var(--accent); display: block; }
.brand-mark i:nth-child(1) { height: 8px; }
.brand-mark i:nth-child(2) { height: 17px; }
.brand-mark i:nth-child(3) { height: 12px; }
.icon-button { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid #444740; border-radius: 5px; background: transparent; color: inherit; font-size: 23px; line-height: 1; }
.icon-button:hover { background: #30332e; }
.library-toggle { display: none; }
.sidebar-add-button { width: 26px; height: 26px; display: grid; place-items: center; border: 1px solid #444740; border-radius: 4px; background: transparent; color: #f8f8f4; font-size: 17px; line-height: 1; }
.sidebar-add-button:hover { background: #30332e; }
.meeting-list { padding: 0 10px; overflow-y: auto; flex: 1; }
.library-filter { width: 100%; min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px; border: 0; border-radius: 4px; padding: 7px 9px; background: transparent; color: #d8dad4; text-align: left; font-size: 11px; }
.library-filter:hover, .library-filter.active { background: #30332e; color: #fff; }
.library-filter.active { box-shadow: inset 2px 0 var(--accent); }
.saved-library-filter { margin-bottom: 3px; border-bottom: 1px solid #343731; padding-bottom: 10px; }
.library-filter-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.library-count { min-width: 20px; color: var(--sidebar-muted); text-align: right; font-size: 9px; font-variant-numeric: tabular-nums; }
.library-section-label { padding: 17px 9px 6px; color: #858980; font-size: 9px; font-weight: 750; text-transform: uppercase; }
.library-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-right: 4px; }
.library-section-title { min-width: 0; }
.library-section-label.meetings-label { margin-top: 2px; border-top: 1px solid #343731; }
.collection-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; }
.collection-row .library-filter { grid-column: 1; }
.collection-action { min-width: 31px; min-height: 28px; border: 0; padding: 6px 3px; background: transparent; color: var(--sidebar-muted); font-size: 9px; }
.collection-action:hover { color: #fff; }
.collection-action.danger:hover { color: #ff9f96; }
.library-empty { margin: 8px 9px; color: var(--sidebar-muted); font-size: 10px; }
.saved-meetings-section { min-width: 0; }
.saved-meetings-list { display: grid; gap: 2px; }
.saved-meeting-row { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: stretch; gap: 2px; }
.saved-meeting-link { min-width: 0; display: grid; grid-template-columns: 8px minmax(0, 1fr); gap: 10px; border: 0; border-radius: 5px; padding: 10px; background: transparent; color: #d8dad4; text-align: left; }
.saved-meeting-link:hover:not(:disabled), .saved-meeting-link[aria-current="page"] { background: #30332e; color: #fff; }
.saved-meeting-link[aria-current="page"] { box-shadow: inset 2px 0 var(--accent); }
.saved-meeting-link:disabled { color: #858980; cursor: not-allowed; }
.saved-meeting-link .indicator { width: 6px; height: 6px; margin-top: 6px; border-radius: 50%; background: #666a62; }
.saved-meeting-link .indicator.completed { background: #35a778; }
.saved-meeting-link .indicator.unavailable { background: #7f827a; }
.saved-meeting-link > span:last-child { min-width: 0; }
.saved-meeting-link strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; font-weight: 620; }
.saved-meeting-link small { display: block; color: var(--sidebar-muted); margin-top: 4px; font-size: 10px; }
.saved-meeting-link .saved-meeting-status { font-size: 9px; letter-spacing: .04em; text-transform: uppercase; }
.saved-meeting-link .saved-meeting-status.unavailable { color: #d0a39f; }
.saved-meeting-remove { align-self: center; border: 0; padding: 7px 5px 7px 2px; background: transparent; color: var(--sidebar-muted); font-size: 9px; text-decoration: underline; }
.saved-meeting-remove:hover, .saved-meeting-remove:focus-visible { color: #fff; }
.saved-meeting-remove:disabled { cursor: wait; opacity: .55; }
.sidebar-public-button { width: calc(100% - 20px); margin: 4px 10px 8px; border: 1px solid #444740; border-radius: 4px; padding: 8px 9px; background: transparent; color: #d8dad4; text-align: left; font-size: 11px; }
.sidebar-public-button:hover, .sidebar-public-button:focus-visible { background: #30332e; color: #fff; }
.meeting-link { width: 100%; border: 0; border-radius: 5px; background: transparent; color: #d8dad4; padding: 11px 10px; text-align: left; display: grid; grid-template-columns: 8px 1fr; gap: 10px; }
.meeting-link:hover, .meeting-link.active { background: #30332e; color: #fff; }
.meeting-link.active { box-shadow: inset 2px 0 var(--accent); }
.meeting-link > span:last-child { min-width: 0; }
.meeting-link .indicator { width: 6px; height: 6px; margin-top: 7px; border-radius: 50%; background: #666a62; }
.meeting-link .indicator.completed { background: #35a778; }
.meeting-link .indicator.processing, .meeting-link .indicator.queued { background: #e4aa45; }
.meeting-link strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; font-weight: 620; }
.meeting-link small { display: block; color: var(--sidebar-muted); margin-top: 4px; font-size: 11px; }
.meeting-link .meeting-review-label { font-size: 9px; text-transform: uppercase; letter-spacing: .04em; }
.meeting-link .meeting-review-label.pending_review { color: #e4aa45; }
.meeting-link .meeting-review-label.reviewed { color: #61c696; }
.sidebar-footer { min-height: 54px; display: flex; align-items: center; gap: 8px; padding: 0 20px; border-top: 1px solid #353832; color: var(--sidebar-muted); font-size: 11px; }
.sidebar-settings-button { margin-left: auto; border: 0; padding: 4px 0; background: transparent; color: var(--sidebar-muted); font-size: 10px; text-decoration: underline; }
.sidebar-settings-button:hover, .sidebar-settings-button:focus-visible { color: #fff; }
.sidebar-logout-button { border: 0; padding: 4px 0; background: transparent; color: var(--sidebar-muted); font-size: 10px; text-decoration: underline; }
.sidebar-logout-button:hover, .sidebar-logout-button:focus-visible { color: #fff; }
.mode-dot { width: 7px; height: 7px; border-radius: 50%; background: #35a778; }

.workspace { min-width: 0; }
.chat-panel {
  position: fixed;
  z-index: 30;
  right: 24px;
  bottom: 24px;
  width: min(420px, calc(100vw - 36px));
  height: min(680px, calc(100vh - 36px));
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto auto;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
  box-shadow: 0 18px 60px rgb(22 23 20 / 22%);
}
.chat-panel-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; padding: 18px 18px 14px; border-bottom: 1px solid var(--line); }
.chat-panel-header .eyebrow { margin-bottom: 4px; }
.chat-panel-header h2 { margin: 0; font-size: 17px; line-height: 1.2; }
.chat-panel-actions { display: flex; align-items: center; gap: 7px; }
.chat-new-button { min-height: 34px; padding: 7px 9px; font-size: 10px; white-space: nowrap; }
.chat-conversations { min-width: 0; padding: 9px 14px 10px; border-bottom: 1px solid var(--line); }
.chat-conversations-label { display: block; color: var(--muted); font-size: 9px; font-weight: 760; letter-spacing: .04em; text-transform: uppercase; }
.chat-conversation-list { display: flex; min-width: 0; gap: 6px; overflow-x: auto; margin-top: 7px; padding-bottom: 1px; }
.chat-conversation { flex: 0 0 auto; max-width: 170px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; border: 1px solid var(--line); border-radius: 4px; padding: 6px 8px; background: var(--surface); color: var(--muted); font-size: 10px; text-align: left; }
.chat-conversation:hover, .chat-conversation.active { border-color: #d9948e; background: #fff4f1; color: var(--accent-dark); }
.chat-conversation[aria-current="true"] { box-shadow: inset 2px 0 var(--accent); }
.chat-no-conversations { color: var(--muted); font-size: 10px; }
.chat-messages { min-height: 0; display: flex; flex-direction: column; align-items: stretch; gap: 10px; overflow-y: auto; overscroll-behavior: contain; padding: 14px; background: #fafaf7; }
.chat-empty { margin: auto 12px; color: var(--muted); font-size: 12px; line-height: 1.55; text-align: center; }
.chat-message { max-width: 89%; border: 1px solid var(--line); border-radius: 6px; padding: 10px 11px; background: var(--surface); }
.chat-message.user { align-self: flex-end; border-color: #e4b6af; background: #fff4f1; }
.chat-message-copy { margin: 0; color: var(--ink); font-size: 12px; line-height: 1.55; overflow-wrap: anywhere; white-space: pre-wrap; }
.chat-message.user .chat-message-copy { color: #6e251b; }
.chat-sources { margin-top: 10px; border-top: 1px solid var(--line); padding-top: 8px; }
.chat-sources-label { display: block; color: var(--muted); font-size: 9px; font-weight: 760; letter-spacing: .04em; text-transform: uppercase; }
.chat-source-list { display: grid; gap: 5px; margin-top: 5px; }
.chat-source { min-width: 0; border: 1px solid #cfd1c9; border-radius: 4px; padding: 6px 7px; background: var(--surface); color: var(--accent-dark); font-size: 10px; line-height: 1.35; overflow-wrap: anywhere; text-align: left; }
.chat-source:hover, .chat-source:focus-visible { border-color: var(--accent); background: #fff4f1; }
.chat-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 8px; border-top: 1px solid var(--line); padding: 11px 12px 8px; background: var(--surface); }
.chat-form textarea { width: 100%; min-height: 72px; resize: vertical; border: 1px solid var(--line); border-radius: 5px; padding: 9px 10px; background: var(--surface); color: var(--ink); outline: none; font-size: 12px; line-height: 1.45; }
.chat-form textarea:focus { border-color: var(--ink); box-shadow: 0 0 0 2px rgb(22 23 20 / 8%); }
.chat-form .primary-button { min-height: 42px; padding-inline: 13px; }
.chat-status { min-height: 27px; margin: 0; padding: 0 13px 10px; color: var(--muted); font-size: 10px; line-height: 1.35; overflow-wrap: anywhere; }
.visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }
.empty-state { min-height: 100vh; display: grid; place-content: center; justify-items: center; text-align: center; padding: 40px; }
.empty-art { width: 200px; height: 104px; display: flex; gap: 8px; align-items: center; justify-content: center; margin-bottom: 28px; border-bottom: 1px solid var(--line); }
.sound-bar { display: block; width: 10px; background: var(--ink); border-radius: 2px; }
.b1,.b7 { height: 18px; }.b2,.b6 { height: 42px; }.b3,.b5 { height: 68px; }.b4 { height: 92px; background: var(--accent); }
.empty-state h1 { margin: 0; font-size: 32px; font-weight: 720; }
.empty-state p { margin: 10px 0 24px; color: var(--muted); }
.empty-actions { display: flex; align-items: center; gap: 8px; }
.primary-button { border: 0; border-radius: 5px; padding: 11px 18px; background: var(--accent); color: white; font-weight: 680; }
.primary-button:hover { background: var(--accent-dark); }
.primary-button:disabled { opacity: .55; cursor: wait; }
.primary-button.full { width: 100%; margin-top: 22px; min-height: 44px; }
.secondary-button, .danger-button { min-height: 40px; border: 1px solid var(--line); border-radius: 5px; padding: 9px 14px; background: var(--surface); color: var(--ink); font-weight: 680; }
.secondary-button:hover { background: var(--soft); }
.danger-button { border-color: #d9948e; background: #fff1ef; color: var(--red); }
.danger-button:hover { background: #ffe4e0; }
.danger-button:disabled { opacity: .55; cursor: wait; }

.meeting-view { width: 100%; height: 100vh; padding: 16px 18px; overflow: hidden; display: grid; grid-template-rows: auto auto minmax(0, 1fr); gap: 11px; }
.meeting-header { min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: 24px; margin: 0; }
.meeting-header > div:first-child { min-width: 0; }
.meeting-time-display { display: flex; align-items: center; gap: 4px; min-width: 0; }
.meeting-time-display .eyebrow { margin-bottom: 0; overflow-wrap: anywhere; }
.meeting-time-display .title-icon-button { width: 23px; height: 23px; font-size: 13px; }
.meeting-header-actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 8px; }
.meeting-header-status { display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.eyebrow { color: var(--accent); font-size: 11px; font-weight: 760; text-transform: uppercase; margin-bottom: 7px; }
.meeting-title-display { min-width: 0; display: flex; align-items: center; gap: 7px; }
.meeting-header h1 { margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 24px; line-height: 1.15; font-weight: 740; }
.title-icon-button { flex: 0 0 auto; width: 28px; height: 28px; display: grid; place-items: center; border: 1px solid transparent; border-radius: 4px; background: transparent; color: var(--muted); font-size: 16px; line-height: 1; }
.title-icon-button:hover, .title-icon-button:focus-visible { border-color: var(--line); background: var(--surface); color: var(--ink); }
.title-icon-button.save { color: var(--green); }
.meeting-title-form { min-width: min(560px, 64vw); display: grid; grid-template-columns: minmax(180px, 1fr) 28px 28px; align-items: center; gap: 5px; }
.meeting-title-form input[type="text"] { height: 34px; font-size: 18px; font-weight: 700; }
.meeting-meta { margin-top: 5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); font-size: 11px; }
.meeting-collection-control { display: flex; align-items: center; gap: 7px; margin-top: 6px; color: var(--muted); font-size: 10px; }
.meeting-collection-control select { max-width: 220px; height: 27px; border: 1px solid var(--line); border-radius: 4px; padding: 0 24px 0 7px; background: var(--surface); color: var(--ink); font-size: 10px; cursor: pointer; }
.meeting-collection-control select:disabled { color: var(--muted); cursor: not-allowed; opacity: .75; }
.meeting-access-button { min-height: 34px; display: inline-flex; align-items: center; gap: 8px; padding: 6px 9px; font-size: 10px; white-space: nowrap; }
.meeting-access-button-summary { padding-left: 8px; border-left: 1px solid var(--line); color: var(--muted); font-size: 9px; font-weight: 620; }
.meeting-access-dialog { width: min(520px, calc(100vw - 28px)); max-height: min(720px, calc(100vh - 28px)); overflow: hidden; }
.meeting-access-dialog-shell { min-height: 0; max-height: inherit; display: flex; flex-direction: column; }
.meeting-access-dialog-header { flex: 0 0 auto; display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding: 22px 24px 17px; border-bottom: 1px solid var(--line); }
.meeting-access-dialog-header .eyebrow { margin-bottom: 4px; }
.meeting-access-dialog-header h2 { margin: 0; font-size: 20px; }
.meeting-access-dialog-header p { max-width: 390px; margin: 7px 0 0; color: var(--muted); font-size: 11px; line-height: 1.45; }
.meeting-access-dialog-header .icon-button { flex: 0 0 auto; border-color: var(--line); color: var(--muted); }
.meeting-access-dialog-body { min-height: 0; flex: 1 1 auto; overflow-y: auto; overscroll-behavior: contain; padding: 4px 24px; }
.meeting-access-dialog-body > section { padding: 18px 0; }
.meeting-access-dialog-body > section + section { border-top: 1px solid var(--line); }
.meeting-access-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.meeting-access-section-heading .field-label { margin: 0; }
.meeting-visibility-badge { flex: 0 0 auto; border: 1px solid var(--line); border-radius: 999px; padding: 5px 8px; color: var(--muted); font-size: 9px; font-weight: 740; text-transform: uppercase; }
.meeting-visibility-badge.private { border-color: #c7cbc2; background: #f3f4f0; color: #5e625a; }
.meeting-visibility-badge.company_public { border-color: #9bc9b7; background: #edf8f3; color: var(--green); }
.meeting-visibility-control, .meeting-contributors-control { min-width: 0; }
.meeting-visibility-control select { width: 100%; height: 40px; border: 1px solid var(--line); border-radius: 4px; padding: 0 9px; background: var(--surface); color: var(--ink); cursor: pointer; font-size: 11px; }
.meeting-visibility-control select:disabled { color: var(--muted); cursor: not-allowed; opacity: .75; }
.meeting-access-section-heading strong { font-size: 11px; }
.meeting-access-section-heading > span:not(.meeting-visibility-badge) { color: var(--muted); font-size: 10px; }
.meeting-contributor-list { display: grid; }
.meeting-contributor { min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px solid var(--soft); padding: 10px 0; }
.meeting-contributor:first-child { border-top: 0; }
.meeting-contributor strong { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; }
.meeting-contributor span { flex: 0 0 auto; color: var(--muted); font-size: 9px; text-transform: uppercase; }
.meeting-contributor.creator span { color: var(--yellow); font-weight: 720; }
.meeting-access-dialog-footer { flex: 0 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 15px 24px 18px; border-top: 1px solid var(--line); background: #fafaf7; }
.meeting-access-dialog-footer strong { font-size: 11px; }
.meeting-access-dialog-footer p { margin: 3px 0 0; color: var(--muted); font-size: 10px; line-height: 1.4; }
.meeting-leave-button { flex: 0 0 auto; min-height: 36px; border: 1px solid #d9948e; border-radius: 4px; padding: 7px 10px; background: #fff1ef; color: var(--red); font-size: 10px; font-weight: 700; }
.meeting-leave-button:hover, .meeting-leave-button:focus-visible { background: #ffe4e0; }
.meeting-leave-button:disabled { cursor: wait; opacity: .55; }
.meeting-status { flex: 0 0 auto; border-radius: 999px; padding: 6px 10px; border: 1px solid var(--line); color: var(--muted); font-size: 11px; font-weight: 730; text-transform: uppercase; }
.meeting-status.completed { border-color: #9bc9b7; color: var(--green); background: #edf8f3; }
.meeting-status.failed { border-color: #e0aaa5; color: var(--red); background: #fff0ef; }
.meeting-status.processing, .meeting-status.queued { border-color: #dec89c; color: #855816; background: #fff8e8; }
.review-status { flex: 0 0 auto; border-radius: 999px; padding: 6px 10px; border: 1px solid #dec89c; color: #855816; background: #fff8e8; font-size: 11px; font-weight: 730; text-transform: uppercase; }
.review-status.reviewed { border-color: #9bc9b7; color: var(--green); background: #edf8f3; }
.review-status.pending_review { border-color: #dec89c; color: #855816; background: #fff8e8; }
.export-button { border: 1px solid var(--line); border-radius: 5px; padding: 7px 10px; color: var(--ink); background: var(--surface); font-size: 11px; font-weight: 680; text-decoration: none; cursor: pointer; }
.export-button:hover { border-color: #a8aaa3; background: var(--soft); }
.meeting-delete-button { border: 1px solid transparent; border-radius: 5px; padding: 7px 9px; background: transparent; color: var(--muted); font-size: 11px; font-weight: 680; }
.meeting-delete-button:hover, .meeting-delete-button:focus-visible { border-color: #d9948e; background: #fff1ef; color: var(--red); }
.meeting-delete-button:disabled { opacity: .45; cursor: not-allowed; }
.demo-notice { display: flex; align-items: baseline; gap: 10px; margin: 0; padding: 8px 11px; border-left: 3px solid var(--yellow); background: #fff8e9; color: #55431f; font-size: 11px; line-height: 1.4; }
.demo-notice strong { flex: 0 0 auto; color: #76500d; }

.meeting-workbench { min-width: 0; min-height: 0; display: grid; grid-template-columns: minmax(420px, 1.12fr) minmax(350px, .88fr); gap: 12px; overflow: hidden; }
.demo-notice.hidden + .meeting-workbench { grid-row: 2 / -1; }
.media-column { min-width: 0; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-gutter: stable; }
.media-band { background: #171815; border: 1px solid #2c2e29; border-radius: 7px; overflow: hidden; }
.player-wrap { position: relative; min-width: 0; background: #0b0c0a; display: grid; place-items: center; aspect-ratio: 16 / 9; }
.player-wrap video { width: 100%; height: 100%; object-fit: contain; display: block; }
.chapter-timeline { position: relative; width: 100%; border-top: 1px solid #343631; border-bottom: 1px solid #343631; background: #11120f; color: #f7f7f3; overflow: hidden; }
.chapter-timeline-heading { min-height: 35px; display: flex; align-items: center; gap: 10px; padding: 6px 11px; border-bottom: 1px solid #343631; }
.chapter-timeline-title { flex: 0 0 auto; color: #f7f7f3; font-size: 10px; font-weight: 750; letter-spacing: .04em; text-transform: uppercase; }
.chapter-current { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #b9bdb4; font-size: 10px; font-variant-numeric: tabular-nums; }
.chapter-track { position: relative; height: 28px; background: #0b0c0a; overflow: hidden; }
.chapter-segment { position: absolute; top: 0; bottom: 0; min-width: 2px; border: 0; border-right: 1px solid rgb(255 255 255 / 42%); padding: 0 6px; overflow: hidden; background: #545951; color: #fff; text-align: left; font-size: 9px; font-weight: 700; white-space: nowrap; text-overflow: ellipsis; }
.chapter-segment:hover, .chapter-segment:focus-visible { background: #747a70; }
.chapter-segment.active { background: var(--accent); }
.chapter-segment:focus-visible { z-index: 2; outline: 2px solid #fff; outline-offset: -2px; }
.chapter-segment.active { box-shadow: inset 0 -3px #fff; }
.chapter-legend { display: grid; grid-template-columns: repeat(auto-fit, minmax(175px, 1fr)); gap: 3px 8px; max-height: 88px; overflow-y: auto; padding: 6px 9px 7px; border-top: 1px solid #343631; scrollbar-gutter: stable; }
.chapter-legend-item { min-width: 0; display: grid; grid-template-columns: 7px minmax(0, 1fr); gap: 7px; align-items: start; border: 1px solid transparent; border-radius: 3px; padding: 4px 5px; background: transparent; color: #b9bdb4; text-align: left; }
.chapter-legend-item:hover, .chapter-legend-item:focus-visible, .chapter-legend-item.active { border-color: #656a60; background: #242720; color: #fff; }
.chapter-legend-item:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.chapter-legend-marker { width: 7px; height: 7px; margin-top: 4px; border-radius: 1px; background: #747a70; }
.chapter-legend-item.active .chapter-legend-marker { background: var(--accent); }
.chapter-legend-copy { min-width: 0; display: grid; gap: 2px; }
.chapter-legend-copy strong { overflow-wrap: anywhere; font-size: 9px; line-height: 1.25; }
.chapter-legend-copy small { color: #92968d; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 9px; font-variant-numeric: tabular-nums; }
.pipeline-panel { color: #f7f7f3; padding: 13px 15px 14px; border-top: 1px solid #343631; }
.section-heading-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.section-heading-row h2 { margin: 0; font-size: 14px; }
.section-heading-row > span { color: #999d94; font-size: 11px; }
.pipeline-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px 18px; margin-top: 11px; }
.pipeline-item { position: relative; min-height: 34px; padding: 0 64px 0 20px; }
.pipeline-item:not(:last-child)::before { display: none; }
.stage-dot { position: absolute; left: 0; top: 4px; width: 13px; height: 13px; border: 2px solid #6e7269; border-radius: 50%; background: #171815; }
.pipeline-item.succeeded .stage-dot { border-color: #49ae83; background: #49ae83; box-shadow: inset 0 0 0 3px #171815; }
.pipeline-item.running .stage-dot { border-color: #e1a540; animation: pulse 1.2s infinite; }
.pipeline-item.failed .stage-dot { border-color: #e36a60; background: #e36a60; }
@keyframes pulse { 50% { box-shadow: 0 0 0 5px rgb(225 165 64 / 18%); } }
.stage-name { font-size: 12px; font-weight: 650; text-transform: capitalize; }
.stage-detail { display: block; color: #92968d; font-size: 10px; margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.retry-button { position: absolute; right: 0; top: 1px; border: 0; padding: 2px 0; background: transparent; color: #ef9d70; font-size: 10px; text-decoration: underline; }
.retry-button:disabled { color: #777b73; cursor: wait; text-decoration: none; }

.debug-panel { margin-top: 9px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); }
.debug-panel summary { min-height: 43px; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 0 13px; cursor: pointer; list-style: none; font-size: 11px; font-weight: 700; }
.debug-panel summary::-webkit-details-marker { display: none; }
.debug-panel summary::after { content: "+"; order: 3; color: var(--muted); font-size: 16px; font-weight: 500; }
.debug-panel[open] summary::after { content: "−"; }
.debug-title { display: inline-flex; align-items: center; gap: 8px; }
.debug-live-dot { width: 7px; height: 7px; border-radius: 50%; background: #9ca098; }
.debug-panel.processing .debug-live-dot { background: #e1a540; animation: pulse 1.2s infinite; }
#debug-count { margin-left: auto; color: var(--muted); font-weight: 500; }
.debug-log { max-height: 360px; overflow: auto; border-top: 1px solid var(--line); padding: 6px 13px 12px; background: #f9f9f6; }
.debug-entry { position: relative; display: grid; grid-template-columns: 11px minmax(0, 1fr); gap: 10px; padding: 11px 0; }
.debug-entry:not(:last-child) { border-bottom: 1px solid #e4e5df; }
.debug-entry-marker { width: 8px; height: 8px; margin-top: 5px; border: 2px solid #999d94; border-radius: 50%; }
.debug-entry.succeeded .debug-entry-marker { border-color: var(--green); background: var(--green); }
.debug-entry.running .debug-entry-marker { border-color: var(--yellow); }
.debug-entry.failed .debug-entry-marker { border-color: var(--red); background: var(--red); }
.debug-entry-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.debug-entry-heading strong { min-width: 0; font-size: 11px; }
.debug-entry-heading code { margin-left: 8px; color: var(--muted); font-size: 9px; font-weight: 500; }
.debug-status { flex: 0 0 auto; color: var(--muted); font-size: 9px; font-weight: 750; text-transform: uppercase; }
.debug-status.succeeded { color: var(--green); }
.debug-status.running { color: var(--yellow); }
.debug-status.failed { color: var(--red); }
.debug-entry-meta { margin-top: 3px; color: var(--muted); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 9px; line-height: 1.5; overflow-wrap: anywhere; }
.debug-usage { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 7px; }
.debug-usage span { border: 1px solid var(--line); border-radius: 3px; padding: 2px 5px; background: var(--surface); color: #575a54; font-size: 9px; }
.debug-error { margin: 8px 0 0; max-height: 110px; overflow: auto; border-left: 2px solid var(--red); padding: 7px 9px; background: #fff0ef; color: #80231e; font: 9px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; white-space: pre-wrap; overflow-wrap: anywhere; }
.debug-empty { padding: 18px 0 8px; color: var(--muted); font-size: 11px; }

.analysis-column { min-width: 0; min-height: 0; display: grid; grid-template-rows: minmax(190px, 42fr) minmax(0, 58fr); gap: 12px; }
.intelligence-panel, .transcript-panel { min-width: 0; min-height: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); }
.intelligence-panel { display: flex; flex-direction: column; }
.tabs { flex: 0 0 auto; display: flex; overflow-x: auto; border-bottom: 1px solid var(--line); margin: 0; padding: 0 12px; }
.tab { flex: 0 0 auto; border: 0; border-bottom: 2px solid transparent; background: transparent; color: var(--muted); padding: 13px 10px 11px; font-size: 11px; font-weight: 650; }
.tab:first-child { padding-left: 4px; padding-right: 12px; }
.tab:hover { color: var(--ink); }
.tab.active { color: var(--ink); border-color: var(--accent); }
.tab-count { display: inline-grid; min-width: 18px; height: 18px; margin-left: 3px; place-items: center; border-radius: 9px; background: var(--soft); color: var(--muted); font-size: 9px; }
.tab.active .tab-count { background: #f7ddd8; color: var(--accent-dark); }
.intelligence-stale { flex: 0 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 14px; border-bottom: 1px solid #e2c98f; padding: 9px 12px; background: #fff8e7; color: #5d4817; }
.intelligence-stale > div { min-width: 0; }
.intelligence-stale strong, .intelligence-stale span { display: block; }
.intelligence-stale strong { font-size: 11px; }
.intelligence-stale span { margin-top: 2px; color: #776333; font-size: 10px; }
.stale-regenerate-button { flex: 0 0 auto; border: 1px solid #b89a55; border-radius: 4px; padding: 6px 9px; background: #fff; color: #5d4817; font-size: 10px; font-weight: 700; }
.stale-regenerate-button:hover { border-color: #8e722f; background: #fffdf6; }
.stale-regenerate-button:disabled { border-color: #d7c9a9; color: #998b6c; cursor: wait; }
.review-panel { flex: 0 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--line); padding: 10px 12px; background: #fafaf7; }
.review-panel-copy { min-width: 0; }
.review-panel-heading { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; }
.review-panel-heading strong { font-size: 11px; }
.review-panel-heading > span { color: var(--muted); font-size: 10px; }
.review-checks { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; margin-top: 7px; }
.review-check { border: 1px solid var(--line); border-radius: 3px; padding: 3px 6px; color: var(--muted); background: var(--surface); font-size: 9px; white-space: nowrap; }
.review-check.ready { border-color: #b7d9c8; color: var(--green); background: #f2faf6; }
.review-check.attention { border-color: #e2c98f; color: #855816; background: #fff8e7; }
.review-check.waiting { color: var(--muted); }
.review-panel-actions { display: flex; flex: 0 0 auto; align-items: center; gap: 7px; }
.review-action, .index-retry-button { border: 1px solid var(--line); border-radius: 4px; padding: 7px 9px; background: var(--surface); color: var(--ink); font-size: 10px; font-weight: 700; white-space: nowrap; }
.review-action { border-color: #82b99e; background: #eef9f3; color: var(--green); }
.review-action:hover { border-color: var(--green); background: #e3f4eb; }
.review-action:disabled, .index-retry-button:disabled { opacity: .55; cursor: wait; }
.index-retry-button { color: var(--accent-dark); }
.index-retry-button:hover { border-color: #b9a5a0; background: #fff6f3; }
.content { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-gutter: stable; padding: 16px; }
.content-grid { display: grid; grid-template-columns: 1fr; gap: 22px; }
.content h2 { font-size: 15px; margin: 0 0 16px; }
.summary-copy { margin: 0; font-size: 14px; line-height: 1.75; word-break: normal; line-break: strict; overflow-wrap: break-word; }
.summary-claim-anchor { border-radius: 2px; transition: background .15s ease, box-shadow .15s ease; }
.summary-claim-anchor.claim-highlight { background: #fff1ed; box-shadow: inset 0 -1px 0 var(--accent); }
.summary-inline-evidence { display: inline-flex; align-items: center; gap: 3px; margin-inline-start: 5px; vertical-align: baseline; }
.summary-inline-evidence-chip { border: 0; border-bottom: 1px solid #cfd1c9; border-radius: 2px; background: transparent; color: var(--muted); padding: 0 2px; font-size: 9px; line-height: 1.45; white-space: nowrap; }
.summary-inline-evidence-chip:hover, .summary-inline-evidence-chip:focus-visible, .summary-inline-evidence-chip.evidence-active { border-bottom-color: var(--accent); background: #fff1ed; color: var(--accent-dark); }
.summary-evidence-fallback { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 12px; }
.summary-evidence-fallback-heading { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; }
.summary-evidence-fallback-heading strong { font-size: 10px; }
.summary-evidence-fallback-heading span { color: var(--muted); font-size: 10px; }
.summary-fallback-evidence { margin-top: 8px; }
.evidence-block { display: flex; flex-wrap: wrap; align-items: baseline; gap: 7px; margin-top: 15px; }
.evidence-label { flex: 0 0 auto; color: var(--muted); font-size: 9px; font-weight: 760; letter-spacing: .04em; text-transform: uppercase; }
.evidence-row { display: flex; flex-wrap: wrap; gap: 7px; min-width: 0; }
.timestamp { border: 0; border-radius: 4px; background: var(--soft); color: #4e514a; padding: 4px 7px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 10px; }
.timestamp:hover { background: #dbddd5; color: var(--accent-dark); }
.evidence-chip { border: 1px solid #cfd1c9; border-radius: 4px; background: var(--soft); color: #4e514a; padding: 4px 7px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 10px; cursor: pointer; }
.evidence-chip:hover, .evidence-chip:focus-visible, .evidence-chip.evidence-active { border-color: var(--accent); background: #f7ddd8; color: var(--accent-dark); }
.timestamp, .transcript-time { cursor: pointer; }
.timestamp:focus-visible, .transcript-time:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.content-section { margin-top: 28px; }
.content-section-heading { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.content-section-heading h2 { margin: 0; }
.section-count { min-width: 22px; height: 20px; display: inline-grid; place-items: center; border-radius: 10px; background: var(--soft); color: var(--muted); padding: 0 6px; font-size: 10px; font-weight: 750; font-variant-numeric: tabular-nums; }
.discussion-list, .decision-list, .action-list, .question-list { display: grid; gap: 1px; background: var(--line); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.list-row { background: var(--paper); padding: 17px 0; display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 14px; align-items: start; }
.overview-list { gap: 8px; border: 0; background: transparent; }
.overview-row { --category-tone: #356fb3; border: 1px solid var(--line); border-left: 3px solid var(--category-tone); border-radius: 4px; padding: 14px 14px 14px 11px; background: var(--surface); }
.discussion-row { --category-tone: #356fb3; }
.question-row { --category-tone: #7658a8; }
.highlight-row { --category-tone: var(--green); }
.overview-row.claim-highlight { border-left-color: var(--accent); background: #fff8f5; }
.row-index { width: 27px; height: 27px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--muted); font-size: 10px; font-weight: 700; }
.row-copy strong { display: block; font-size: 14px; line-height: 1.7; word-break: normal; line-break: strict; overflow-wrap: break-word; }
.row-copy p { margin: 5px 0 0; color: var(--muted); font-size: 14px; line-height: 1.75; word-break: normal; line-break: strict; overflow-wrap: break-word; }
.confidence { align-self: center; font-size: 9px; text-transform: uppercase; font-weight: 750; color: var(--green); }
.row-metadata { display: flex; flex-wrap: wrap; gap: 8px 17px; margin: 12px 0 0; padding: 0; }
.metadata-item { min-width: 74px; display: grid; gap: 2px; }
.metadata-label { color: var(--muted); font-size: 9px; font-weight: 760; letter-spacing: .04em; text-transform: uppercase; }
.metadata-value { color: var(--ink); font-size: 11px; font-weight: 650; overflow-wrap: anywhere; }
.metadata-value.confidence-high { color: var(--green); }
.metadata-value.confidence-medium { color: var(--yellow); }
.metadata-value.confidence-low { color: var(--red); }
.stat-panel { grid-row: 1; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-bottom: 1px solid var(--line); }
.stat-row { min-width: 0; padding: 8px 7px 10px; border-right: 1px solid var(--line); }
.stat-row:last-child { border-right: 0; }
.stat-row span { display: block; color: var(--muted); font-size: 10px; text-transform: uppercase; }
.stat-row strong { display: block; font-size: 17px; margin-top: 3px; }
.chapter-list { display: grid; gap: 0; }
.chapter { display: grid; grid-template-columns: 130px 1fr; gap: 22px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.chapter-time { color: var(--accent-dark); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; padding-top: 2px; }
.chapter h3 { margin: 0; font-size: 16px; }
.chapter p { margin: 8px 0 0; color: var(--muted); font-size: 14px; line-height: 1.75; word-break: normal; line-break: strict; overflow-wrap: break-word; }
.decision-row { border-left: 3px solid var(--green); padding-left: 11px; }
.action-row { border-left: 3px solid var(--accent); padding-left: 11px; }
.action-row { grid-template-columns: 36px minmax(0, 1fr); }
.owner-block { text-align: right; font-size: 11px; }
.owner-block strong, .owner-block span { display: block; }
.owner-block span { color: var(--muted); margin-top: 4px; }
.transcript-panel > div { height: 100%; min-height: 0; }
.transcript-view { height: 100%; min-height: 0; display: flex; flex-direction: column; padding: 14px; }
.transcript-view h2 { flex: 0 0 auto; margin: 0 0 10px; font-size: 13px; }
.speaker-strip { flex: 0 0 auto; display: flex; gap: 7px; flex-wrap: nowrap; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-gutter: stable; margin-bottom: 11px; padding-bottom: 7px; }
.speaker-control { --speaker-tone: #d84b35; flex: 0 0 auto; display: grid; grid-template-columns: 34px minmax(158px, 1fr); min-height: 75px; border: 1px solid var(--line); border-left: 3px solid var(--speaker-tone); border-radius: 5px; background: var(--surface); overflow: hidden; }
.speaker-tone-0 { --speaker-tone: #d84b35; }
.speaker-tone-1 { --speaker-tone: #c1841d; }
.speaker-tone-2 { --speaker-tone: #208c80; }
.speaker-tone-3 { --speaker-tone: #356fb3; }
.speaker-tone-4 { --speaker-tone: #7658a8; }
.speaker-tone-5 { --speaker-tone: #588b42; }
.speaker-tone-6 { --speaker-tone: #a34e85; }
.speaker-tone-7 { --speaker-tone: #547f8f; }
.speaker-control:has(.speaker-chip:hover), .speaker-control:has(.speaker-listen:hover) { border-color: #a8aaa3; border-left-color: var(--speaker-tone); }
.speaker-listen { width: 34px; min-height: 72px; border: 0; border-right: 1px solid var(--line); background: var(--soft); color: var(--speaker-tone); font-size: 12px; }
.speaker-listen:hover, .speaker-listen.playing { background: #f7ddd8; color: var(--accent-dark); }
.speaker-listen:disabled { color: #a6a8a2; cursor: not-allowed; }
.speaker-card-body { min-width: 0; display: grid; grid-template-rows: auto auto; }
.speaker-chip { min-width: 0; width: 100%; border: 0; background: transparent; padding: 8px 10px 5px; text-align: left; }
.speaker-chip:hover { border-color: #a8aaa3; }
.speaker-chip:disabled { color: inherit; cursor: not-allowed; opacity: .78; }
.speaker-chip strong { display: block; overflow-wrap: anywhere; font-size: 11px; line-height: 1.25; }
.speaker-chip span { display: block; margin-top: 3px; color: var(--muted); font-size: 9px; overflow-wrap: anywhere; }
.speaker-contribution { padding: 0 10px 8px; }
.speaker-stats { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; color: var(--muted); font-size: 9px; font-variant-numeric: tabular-nums; }
.speaker-stats span:last-child { color: var(--ink); font-size: 10px; font-weight: 760; }
.speaker-meter { height: 5px; margin-top: 5px; overflow: hidden; border-radius: 2px; background: #e1e2dc; }
.speaker-meter > span { display: block; height: 100%; min-width: 2px; border-radius: inherit; background: var(--speaker-tone); }
.transcript-heading { flex: 0 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.transcript-heading h2 { margin: 0; }
.transcript-follow { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 10px; font-weight: 650; cursor: pointer; user-select: none; white-space: nowrap; }
.transcript-follow input { width: 14px; height: 14px; margin: 0; accent-color: var(--accent); cursor: pointer; }
.transcript-list { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-gutter: stable; border: 1px solid var(--line); border-radius: 5px; background: var(--surface); }
.transcript-row { display: grid; grid-template-columns: 58px 112px minmax(0, 1fr); gap: 12px; padding: 10px 11px; border-bottom: 1px solid var(--line); transition: background-color 140ms ease, box-shadow 140ms ease; }
.transcript-row.active { background: #fff3ef; box-shadow: inset 3px 0 0 var(--accent); }
.transcript-row.evidence-highlight { background: #fff8e7; box-shadow: inset 3px 0 0 var(--yellow); }
.transcript-row.active.evidence-highlight { background: #fff3ef; box-shadow: inset 3px 0 0 var(--accent), inset 5px 0 0 var(--yellow); }
.transcript-row:last-child { border-bottom: 0; }
.transcript-time { border: 0; background: transparent; color: var(--accent-dark); padding: 0; text-align: left; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; }
.transcript-time:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.transcript-speaker { font-size: 11px; font-weight: 720; overflow-wrap: anywhere; }
.transcript-speaker small { display: block; color: var(--muted); font-weight: 500; margin-top: 3px; }
.transcript-text { margin: 0; font-size: 14px; line-height: 1.75; word-break: normal; line-break: strict; overflow-wrap: break-word; }
.ambiguous { color: var(--yellow); }
.empty-panel { padding: 48px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.content-loading { display: flex; gap: 8px; padding: 60px 0; }
.content-loading span { display: block; width: 8px; height: 8px; background: var(--accent); border-radius: 50%; animation: bob .8s infinite alternate; }
.content-loading span:nth-child(2) { animation-delay: .15s; }.content-loading span:nth-child(3) { animation-delay: .3s; }
@keyframes bob { to { transform: translateY(-9px); opacity: .45; } }

dialog { border: 0; padding: 0; border-radius: 7px; box-shadow: 0 22px 80px rgb(0 0 0 / 28%); background: var(--surface); color: var(--ink); }
dialog::backdrop { background: rgb(17 19 16 / 66%); }
.gallery-dialog { width: min(760px, calc(100vw - 28px)); max-height: min(760px, calc(100vh - 28px)); overflow: auto; }
.gallery-dialog-inner { padding: 24px; }
.gallery-dialog-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 22px; }
.gallery-dialog-header h2 { margin: 0; font-size: 22px; }
.gallery-dialog .auth-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.upload-dialog { width: min(500px, calc(100vw - 28px)); }
.rename-dialog { width: min(420px, calc(100vw - 28px)); }
.settings-dialog {
  width: min(640px, calc(100vw - 28px));
  max-height: min(760px, calc(100vh - 28px));
  overflow: hidden;
}
.settings-dialog-shell { min-height: 0; max-height: inherit; display: flex; flex-direction: column; }
.settings-dialog-header {
  flex: 0 0 auto;
  margin: 0;
  padding: 22px 24px 16px;
  border-bottom: 1px solid var(--line);
}
.settings-dialog-header h2 { font-size: 20px; }
.settings-dialog-body { min-height: 0; flex: 1 1 auto; overflow-y: auto; overscroll-behavior: contain; scrollbar-gutter: stable; padding: 20px 24px 24px; }
.settings-dialog-body > .dialog-copy { max-width: 520px; font-size: 12px; }
.settings-dialog-footer {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(145px, auto);
  align-items: center;
  gap: 14px;
  padding: 14px 24px 18px;
  border-top: 1px solid var(--line);
  background: var(--surface);
}
.settings-dialog-footer .form-error { min-width: 0; margin: 0; overflow-wrap: anywhere; }
.settings-dialog-footer #mcp-token-submit { width: auto; min-width: 145px; margin: 0; }
.settings-section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-top: 24px; }
.settings-section-heading h3 { min-width: 0; margin: 0; font-size: 13px; }
.settings-section-note { flex: 0 0 auto; color: var(--muted); font-size: 10px; }
.mcp-token-list { display: grid; gap: 10px; margin: 12px 0 26px; }
.mcp-token-list > .auth-gallery-status { margin: 8px 0; }
.mcp-token-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; border: 1px solid var(--line); border-radius: 5px; padding: 9px 10px; font-size: 11px; }
.mcp-token-row small { display: block; color: var(--muted); margin-top: 3px; }
.mcp-token-row > button { flex: 0 0 auto; }
.mcp-token-row .mcp-token-revoke { border: 0; background: transparent; color: var(--red); font-size: 10px; text-decoration: underline; }
.mcp-token-card { min-width: 0; display: grid; gap: 14px; padding: 14px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); }
.mcp-token-card-header { min-width: 0; display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.mcp-token-identity { min-width: 0; display: flex; align-items: baseline; flex-wrap: wrap; gap: 7px 10px; }
.mcp-token-name { min-width: 0; overflow-wrap: anywhere; font-size: 12px; line-height: 1.35; }
.mcp-token-prefix { flex: 0 0 auto; max-width: 100%; overflow-wrap: anywhere; color: var(--muted); font-size: 10px; }
.mcp-token-status { flex: 0 0 auto; border: 1px solid var(--line); border-radius: 999px; padding: 4px 8px; color: var(--muted); font-size: 9px; font-weight: 740; text-transform: uppercase; }
.mcp-token-status.active { border-color: #9bc9b7; background: #edf8f3; color: var(--green); }
.mcp-token-status.expired, .mcp-token-status.revoked { border-color: #e0aaa5; background: #fff0ef; color: var(--red); }
.mcp-token-meta { min-width: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px 14px; margin: 0; }
.mcp-token-meta-item { min-width: 0; }
.mcp-token-meta-item dt { color: var(--muted); font-size: 9px; font-weight: 720; text-transform: uppercase; }
.mcp-token-meta-item dd { min-width: 0; margin: 3px 0 0; overflow-wrap: anywhere; color: var(--ink); font-size: 10px; line-height: 1.35; }
.mcp-token-scope-editor { min-width: 0; margin-top: 0; border-top: 1px solid var(--line); padding-top: 10px; }
.mcp-token-scope-editor summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 38px; color: var(--accent-dark); cursor: pointer; font-size: 10px; }
.mcp-token-scope-editor summary > span:first-child { min-width: 0; overflow-wrap: anywhere; }
.mcp-token-scope-editor summary .mcp-scope-count { flex: 0 0 auto; color: var(--muted); text-align: right; }
.mcp-token-scope-actions { display: flex; justify-content: flex-end; margin-top: 10px; }
.mcp-token-scope-actions .secondary-button { min-height: 38px; }
.mcp-token-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; border-top: 1px solid var(--line); padding-top: 12px; }
.mcp-token-actions .secondary-button, .mcp-token-actions .mcp-token-revoke { min-height: 40px; }
.mcp-token-actions .mcp-token-revoke { border: 1px solid transparent; border-radius: 5px; padding: 8px 10px; background: transparent; color: var(--red); font-size: 10px; text-decoration: underline; }
.mcp-token-actions .mcp-token-revoke:hover, .mcp-token-actions .mcp-token-revoke:focus-visible { border-color: #d9948e; background: #fff1ef; }
.mcp-form-fields { display: grid; gap: 16px; margin-top: 16px; }
.mcp-form-field { min-width: 0; }
.mcp-expiry-fieldset, .mcp-scope-fieldset { min-width: 0; margin: 0; padding: 13px; border: 1px solid var(--line); border-radius: 6px; }
.mcp-expiry-fieldset legend, .mcp-scope-fieldset legend { padding: 0 5px; }
.mcp-expiry-options { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.mcp-expiry-option { min-width: 0; min-height: 50px; display: grid; grid-template-columns: auto minmax(0, 1fr); align-content: center; gap: 0 7px; padding: 7px 8px; border: 1px solid var(--line); border-radius: 5px; background: var(--surface); color: var(--muted); font-size: 10px; line-height: 1.25; cursor: pointer; }
.mcp-expiry-option:hover, .mcp-expiry-option:has(input:focus-visible) { border-color: #a8aaa3; background: var(--soft); color: var(--ink); }
.mcp-expiry-option:has(input:checked) { border-color: #d9948e; background: #fff4f1; color: var(--ink); box-shadow: inset 0 0 0 1px #d9948e; }
.mcp-expiry-option input { width: 15px; height: 15px; margin: 0; accent-color: var(--accent); }
.mcp-expiry-option span { min-width: 0; overflow-wrap: anywhere; }
.mcp-expiry-option small { grid-column: 2; min-width: 0; margin-top: 2px; color: var(--accent-dark); font-size: 9px; overflow-wrap: anywhere; }
.custom-expiry-label { margin-top: 13px; }
.mcp-all-tools-option { min-width: 0; min-height: 50px; display: flex; align-items: flex-start; gap: 9px; padding: 9px; border: 1px solid var(--line); border-radius: 5px; background: var(--surface); cursor: pointer; }
.mcp-all-tools-option:hover { border-color: #a8aaa3; background: var(--soft); }
.mcp-all-tools-option input { flex: 0 0 auto; width: 16px; height: 16px; margin: 1px 0 0; accent-color: var(--accent); }
.mcp-all-tools-option span { min-width: 0; }
.mcp-all-tools-option strong, .mcp-all-tools-option small { display: block; overflow-wrap: anywhere; }
.mcp-all-tools-option strong { font-size: 11px; }
.mcp-all-tools-option small { margin-top: 3px; color: var(--muted); font-size: 10px; line-height: 1.35; }
.mcp-scope-fieldset .mcp-token-scope-editor { margin-top: 9px; }
.mcp-scope-fieldset .mcp-scope-grid { margin-top: 8px; }
.mcp-scope-fieldset > .field-label { margin-bottom: 0; }
.mcp-scope-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 10px; max-height: none; overflow: visible; padding-right: 0; }
.mcp-scope-option { min-width: 0; min-height: 36px; display: flex; align-items: flex-start; gap: 8px; padding: 7px; border: 1px solid transparent; border-radius: 4px; color: var(--muted); font-size: 10px; line-height: 1.3; overflow-wrap: anywhere; cursor: pointer; }
.mcp-scope-option:hover, .mcp-scope-option:has(input:focus-visible) { border-color: var(--line); background: var(--soft); color: var(--ink); }
.mcp-scope-option input { flex: 0 0 auto; width: 15px; height: 15px; margin: 1px 0 0; accent-color: var(--accent); }
.mcp-scope-option span { min-width: 0; overflow-wrap: anywhere; }
.token-secret { margin: 0; padding: 18px; border: 1px solid #dec89c; border-radius: 6px; background: #fff8e8; color: #55431f; font-size: 10px; overflow-wrap: anywhere; scroll-margin-block: 18px; }
.token-secret:focus-within { border-color: #c49a43; box-shadow: 0 0 0 2px rgb(196 154 67 / 22%); }
.token-secret-header { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.token-secret-header .eyebrow { margin-bottom: 0; }
.token-secret h3 { margin: 0; color: var(--ink); font-size: 17px; }
.token-secret-copy { margin: 9px 0 16px; color: #6c592f; font-family: inherit; font-size: 11px; line-height: 1.5; }
.token-secret .field-label { color: var(--ink); }
.token-secret-control { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: center; }
.token-secret-control input { min-width: 0; height: 40px; border-color: #d9c28b; background: #fffdf6; color: var(--ink); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 10px; }
.token-secret-control .secondary-button { min-height: 40px; white-space: nowrap; }
.token-copy-feedback { min-height: 16px; margin: 7px 0 0; color: var(--green); font-family: inherit; font-size: 10px; }
.token-endpoint { min-width: 0; display: grid; gap: 4px; margin-top: 13px; color: #6c592f; font-family: inherit; font-size: 10px; }
.token-endpoint code { min-width: 0; overflow-wrap: anywhere; color: var(--ink); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 10px; }
.token-secret-warning { margin: 13px 0 0; color: #6c592f; font-family: inherit; font-size: 10px; line-height: 1.45; }
.token-skill-install { margin-top: 18px; padding-top: 17px; border-top: 1px solid #dec89c; }
.token-skill-install-heading { min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.token-skill-install-heading > div { min-width: 0; }
.token-skill-kicker { display: block; margin-bottom: 3px; color: #7a6534; font-size: 9px; font-weight: 720; text-transform: uppercase; }
.token-skill-install h4 { margin: 0; color: var(--ink); font-size: 13px; }
.skill-download-link { flex: 0 0 auto; min-height: 38px; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; white-space: nowrap; }
.token-skill-steps { display: grid; gap: 11px; margin: 15px 0 0; padding: 0; list-style: none; }
.token-skill-steps li { min-width: 0; display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 9px; align-items: start; }
.token-skill-step-number { width: 22px; height: 22px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid #d1b977; border-radius: 50%; background: #fffdf6; color: #6c592f; font-size: 9px; font-weight: 760; }
.token-skill-steps strong { display: block; color: var(--ink); font-size: 10px; }
.token-skill-steps p { min-width: 0; margin: 2px 0 0; color: #6c592f; font-size: 10px; line-height: 1.45; }
.token-skill-steps code { overflow-wrap: anywhere; color: var(--ink); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 9px; }
.token-secret-actions { display: flex; justify-content: flex-end; margin-top: 18px; }
dialog form { padding: 24px; }
.settings-dialog form { padding: 0; }
.dialog-header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 24px; }
.dialog-header h2 { margin: 0; font-size: 22px; }
.dialog-header .icon-button { color: var(--muted); border-color: var(--line); }
.dialog-header .icon-button:hover { background: var(--soft); }
.settings-dialog .settings-dialog-header { margin-bottom: 0; }
.settings-dialog .settings-dialog-header h2 { font-size: 20px; }
.field-label { display: block; font-size: 11px; font-weight: 700; margin-bottom: 7px; }
.source-switch { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; padding: 3px; margin-bottom: 20px; border: 1px solid var(--line); border-radius: 6px; background: var(--soft); }
.source-option { min-height: 34px; border: 0; border-radius: 4px; background: transparent; color: var(--muted); font-size: 11px; font-weight: 680; }
.source-option.active { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgb(17 19 16 / 10%); }
input[type="text"], input[type="email"], input[type="url"], input[type="password"], input[type="datetime-local"] { width: 100%; height: 42px; border: 1px solid var(--line); border-radius: 5px; padding: 0 11px; background: var(--surface); color: var(--ink); outline: none; }
input[type="text"]:focus, input[type="email"]:focus, input[type="url"]:focus, input[type="password"]:focus, input[type="datetime-local"]:focus { border-color: var(--ink); box-shadow: 0 0 0 2px rgb(22 23 20 / 8%); }
.meeting-time-fields { min-width: 0; margin: 18px 0 0; padding: 13px; border: 1px solid var(--line); border-radius: 6px; }
.meeting-time-fields legend { padding: 0 5px; font-size: 11px; font-weight: 720; }
.meeting-time-fields legend span { margin-left: 5px; color: var(--muted); font-weight: 500; }
.meeting-time-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.field-hint { margin: 8px 0 0; color: var(--muted); font-size: 10px; line-height: 1.45; }
dialog select { width: 100%; height: 42px; border: 1px solid var(--line); border-radius: 5px; padding: 0 10px; background: var(--surface); color: var(--ink); cursor: pointer; }
.youtube-source, .remote-source { margin-top: 18px; }
.stacked-label { margin-top: 14px; }
.file-drop { min-height: 156px; margin-top: 18px; border: 1px dashed #a9aca4; border-radius: 6px; display: grid; place-content: center; justify-items: center; text-align: center; padding: 20px; cursor: pointer; }
.file-drop:hover, .file-drop.dragging { border-color: var(--accent); background: #fff8f5; }
.file-drop:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.file-symbol { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: var(--soft); font-size: 17px; margin-bottom: 10px; }
.file-drop strong { font-size: 13px; }.file-drop > span:last-child { color: var(--muted); font-size: 10px; margin-top: 5px; }
input[type="file"] { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.form-error { min-height: 18px; color: var(--red); font-size: 11px; margin-top: 9px; }
.dialog-copy { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.meeting-delete-dialog { width: min(480px, calc(100vw - 32px)); }
.meeting-delete-dialog .dialog-copy strong { color: var(--ink); overflow-wrap: anywhere; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 24px; }
.app-status { position: fixed; z-index: 50; left: 50%; bottom: 22px; transform: translate(-50%, 12px); max-width: min(520px, calc(100vw - 32px)); border: 1px solid #3f423c; border-radius: 5px; padding: 9px 13px; background: #20221f; color: #fff; box-shadow: 0 8px 30px rgb(0 0 0 / 22%); opacity: 0; pointer-events: none; transition: opacity 140ms ease, transform 140ms ease; font-size: 11px; }
.app-status.visible { transform: translate(-50%, 0); opacity: 1; }
.library-backdrop { display: none; }

@media (max-width: 1180px) {
  .app-shell { grid-template-columns: 180px minmax(0, 1fr); }
  .brand-row { padding-inline: 12px; }
  .meeting-link { padding-inline: 8px; }
  .sidebar-footer { padding-inline: 14px; }
  .meeting-view { padding: 12px 14px; gap: 9px; }
  .meeting-header h1 { font-size: 21px; }
  .eyebrow { margin-bottom: 4px; }
  .meeting-meta { margin-top: 4px; }
}

@media (max-width: 520px) {
  .meeting-time-grid { grid-template-columns: 1fr; }
}

@media (max-width: 980px) {
  .app-shell { grid-template-columns: 190px minmax(0, 1fr); }
  .brand-row { padding-inline: 12px; }
  .meeting-list { padding-inline: 8px; }
  .content-grid { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .auth-layout { grid-template-columns: 1fr; gap: 34px; }
  .auth-panel { max-width: 420px; }
  .meeting-view { height: auto; min-height: 100vh; overflow: visible; grid-template-rows: auto auto auto; padding: 28px 24px 60px; }
  .meeting-workbench { grid-template-columns: 1fr; overflow: visible; }
  .media-column { overflow: visible; }
  .analysis-column { grid-template-rows: minmax(420px, 62vh) minmax(520px, 72vh); }
  .content { max-height: none; }
}

@media (max-width: 620px) {
  .auth-header { min-height: 58px; padding-inline: 14px; }
  .auth-company { display: none; }
  .auth-main { padding: 28px 16px 60px; }
  .auth-intro h1 { font-size: 36px; }
  .auth-intro > p { font-size: 14px; }
  .auth-gallery-section { margin-top: 38px; }
  .auth-gallery { grid-template-columns: 1fr; }
  .gallery-dialog .auth-gallery { grid-template-columns: 1fr; }
  .mcp-scope-grid { grid-template-columns: 1fr; max-height: none; overflow: visible; }
  .settings-dialog { width: calc(100vw - 20px); max-height: calc(100vh - 20px); }
  .settings-dialog-header { padding: 17px 16px 13px; }
  .settings-dialog-body { padding: 17px 16px 20px; }
  .settings-dialog-footer { grid-template-columns: 1fr; gap: 9px; padding: 12px 16px 15px; }
  .settings-dialog-footer #mcp-token-submit { width: 100%; min-width: 0; }
  .settings-section-heading { align-items: flex-start; flex-direction: column; gap: 3px; }
  .mcp-token-card { padding: 13px; }
  .mcp-token-card-header { gap: 9px; }
  .mcp-token-identity { display: grid; gap: 4px; }
  .mcp-token-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .mcp-token-actions { grid-template-columns: 1fr; display: grid; justify-content: stretch; }
  .mcp-token-actions .secondary-button, .mcp-token-actions .mcp-token-revoke { width: 100%; }
  .mcp-token-scope-actions { display: grid; }
  .mcp-token-scope-actions .secondary-button { width: 100%; }
  .mcp-expiry-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .token-secret { padding: 15px; }
  .token-secret-header { align-items: flex-start; flex-direction: column; gap: 5px; }
  .token-secret-control { grid-template-columns: 1fr; }
  .token-secret-control .secondary-button { width: 100%; }
  .token-skill-install-heading { align-items: stretch; flex-direction: column; }
  .skill-download-link { width: 100%; }
  .token-secret-actions { display: grid; }
  .token-secret-actions .primary-button { width: 100%; }
  .chat-panel { right: 10px; bottom: 10px; width: calc(100vw - 20px); height: min(650px, calc(100vh - 78px)); }
  .chat-panel-header { padding: 15px 14px 12px; }
  .chat-panel-header h2 { font-size: 16px; }
  .chat-new-button { min-height: 34px; }
  .chat-message { max-width: 94%; }
  .auth-panel { max-width: none; padding: 20px; }
  .app-shell { display: block; }
  .sidebar { position: fixed; z-index: 40; inset: 0 auto auto 0; width: 100%; height: 58px; overflow: hidden; transition: width 180ms ease, height 180ms ease; }
  .library-open .sidebar { width: min(310px, 88vw); height: 100vh; }
  .brand-row { width: 100%; height: 58px; flex-direction: row; justify-content: space-between; padding: 0 14px; }
  .brand > span:last-child { display: inline; }
  .library-toggle { display: grid; margin-left: auto; margin-right: 7px; font-size: 16px; }
  .sidebar-public-button, .meeting-list, .sidebar-footer { display: none; }
  .library-open .meeting-list { display: flex; }
  .library-open .sidebar-public-button { display: block; }
  .library-open .meeting-list { flex-direction: column; }
  .library-open .sidebar-footer { display: flex; }
  .library-backdrop { display: block; position: fixed; z-index: 35; inset: 0; width: 100%; border: 0; background: rgb(17 19 16 / 58%); }
  .workspace { padding-top: 58px; }
  .meeting-view { padding: 22px 16px 48px; }
  .meeting-header { display: block; }
  .meeting-header-actions { margin-top: 12px; }
  .meeting-header-status { justify-content: flex-start; }
  .meeting-status { display: inline-block; margin-top: 14px; }
  .review-status { margin-top: 14px; }
  .meeting-header h1 { font-size: 26px; }
  .meeting-access-dialog { width: calc(100vw - 20px); max-height: calc(100vh - 20px); }
  .meeting-access-dialog-header { padding: 18px 16px 14px; }
  .meeting-access-dialog-body { padding-inline: 16px; }
  .meeting-access-dialog-footer { align-items: stretch; flex-direction: column; padding: 14px 16px 16px; }
  .meeting-access-dialog-footer .meeting-leave-button { width: 100%; }
  .demo-notice { align-items: flex-start; flex-direction: column; gap: 2px; }
  .player-wrap { aspect-ratio: 16 / 10; }
  .chapter-track { height: 22px; }
  .chapter-segment { padding: 0; }
  .chapter-segment span { display: none; }
  .chapter-legend { grid-template-columns: 1fr; max-height: 126px; }
  .chapter-timeline-heading { align-items: flex-start; flex-direction: column; gap: 2px; }
  .chapter-current { width: 100%; }
  .tab { padding-left: 13px; padding-right: 13px; }
  .analysis-column { grid-template-rows: minmax(420px, 68vh) minmax(520px, 76vh); }
  .pipeline-list { grid-template-columns: 1fr; }
  .stat-panel { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stat-row { border-bottom: 1px solid var(--line); }
  .list-row, .action-row { grid-template-columns: 30px minmax(0, 1fr); }
  .list-row > :last-child, .owner-block { grid-column: 2; text-align: left; }
  .chapter { grid-template-columns: 1fr; gap: 8px; }
  .transcript-row { grid-template-columns: 60px minmax(0, 1fr); gap: 10px; }
  .transcript-text { grid-column: 2; }
  .review-panel { align-items: flex-start; flex-direction: column; gap: 10px; }
  .review-panel-actions { width: 100%; }
  .review-action, .index-retry-button { flex: 1; }
}

@media (max-width: 620px) and (max-height: 640px) {
  .meeting-access-dialog-header { padding-block: 14px 10px; }
  .meeting-access-dialog-header p { margin-top: 5px; }
  .meeting-access-dialog-body > section { padding-block: 13px; }
  .meeting-contributor { padding-block: 8px; }
  .meeting-access-dialog-footer { gap: 10px; padding-block: 10px 12px; }
}

@media (max-width: 700px) {
  .meeting-header { display: block; }
  .meeting-header-actions { margin-top: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
