/* /meet — Chats & meetings, styled to match https://aaaai.me/ */

@import url("/static/css/brand.css");

:root {
  color-scheme: light;
  --ink: var(--brand-ink);
  --ink-soft: var(--brand-ink-soft);
  --muted: var(--brand-muted);
  --muted-soft: var(--brand-muted-soft);
  --line: var(--brand-line);
  --paper: var(--brand-paper);
  --mist: var(--brand-mist);
  --white: var(--brand-white);
  --orange: var(--brand-orange);
  --orange-hover: var(--brand-orange-hover);
  --orange-soft: var(--brand-orange-soft);
  --radius: var(--brand-radius);
  --font: var(--brand-font);
  --topbar-bg: color-mix(in srgb, var(--paper) 92%, transparent);
  font-family: var(--font);
  font-size: 15px;
  color: var(--ink);
  background: var(--paper);
}

html[data-theme="dark"] {
  color-scheme: dark;
}
html[data-theme="dark"] .sidebar-footer a {
  background: var(--white);
}
html[data-theme="light"] {
  color-scheme: light;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font); font-weight: 400; line-height: 1.45; -webkit-font-smoothing: antialiased; }
button, input, textarea, select { font: inherit; color: inherit; }
button, a, input, textarea, select { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { opacity: 0.5; cursor: wait; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--orange); color: #111; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
}
[hidden] { display: none !important; }

.workspace { display: flex; min-height: 100vh; background: var(--paper); }

/* —— Sidebar —— */
.sidebar {
  width: 280px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  padding: 28px 18px 18px;
  background: var(--mist);
  border-right: 1px solid var(--line);
  height: 100vh;
  position: sticky;
  top: 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 40px;
  padding: 0 8px;
}
.brand .brand-wordmark { font-size: 20px; }
.brand-section {
  margin-left: auto;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-soft);
}
.sidebar-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 8px;
}
.sidebar-heading h1 {
  margin: 0;
  font-size: 18px;
  font-weight: 400;
  letter-spacing: -0.04em;
}
.icon-button {
  border: 1px solid var(--line);
  background: var(--white);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 18px;
  line-height: 1;
  color: var(--ink);
  transition: background 0.2s var(--brand-ease), transform 0.2s var(--brand-ease);
}
.icon-button:hover { background: var(--mist); transform: translateY(-1px); }
.search {
  display: flex;
  align-items: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 14px;
  gap: 8px;
  margin: 14px 4px 24px;
}
.search span { font-size: 16px; color: var(--muted-soft); }
.search input {
  background: none;
  border: 0;
  padding: 12px 0;
  width: 100%;
  font-size: 13px;
  outline: none;
}
.list-label, .field-label {
  font-size: 11px;
  letter-spacing: 0.12em;
  font-weight: 500;
  text-transform: uppercase;
  color: var(--muted-soft);
  padding: 0 12px;
  margin-bottom: 12px;
}
.list-empty { padding: 6px 12px; line-height: 1.6; color: var(--muted); }
#room-list { overflow-y: auto; flex: 1; }
.room-item {
  background: none;
  border: 0;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  padding: 12px 11px;
  border-radius: 14px;
  margin-bottom: 4px;
  color: inherit;
  transition: background 0.2s var(--brand-ease);
}
.room-item:hover { background: color-mix(in srgb, var(--white) 72%, transparent); }
.room-item.active {
  background: var(--white);
  box-shadow: var(--brand-shadow-soft);
}
.avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #e2e4df;
  color: #596149;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 500;
}
.room-item:nth-child(3n) .avatar { background: #f3e6d6; color: #8a5a2b; }
html[data-theme="dark"] .room-item:hover { background: rgba(255, 255, 255, 0.06); }
html[data-theme="dark"] .avatar { background: #2a2d2a; color: #c7c7cc; }
html[data-theme="dark"] .room-item:nth-child(3n) .avatar,
html[data-theme="dark"] .message.own .avatar {
  background: rgba(240, 144, 36, 0.22);
  color: #fdba74;
}
.room-item strong {
  display: block;
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.02em;
}
.room-item small {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
}
.sidebar-prefs {
  margin-top: auto;
  padding: 14px 9px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.meet-switcher {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
}
.meet-switch {
  min-height: 30px;
  padding: 0 10px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.02em;
  cursor: pointer;
}
.meet-switch:hover { color: var(--ink); }
.meet-switch.is-active,
.meet-switch[aria-pressed="true"] {
  background: var(--ink);
  color: var(--paper);
}
html[data-theme="dark"] .meet-switch.is-active,
html[data-theme="dark"] .meet-switch[aria-pressed="true"] {
  background: var(--paper);
  color: var(--ink);
}
.sidebar-footer {
  border-top: 1px solid var(--line);
  margin-top: 14px;
  padding: 18px 9px 0;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
}
.sidebar-footer a {
  margin-left: auto;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 14px;
  background: var(--white);
}
.sidebar-footer #account-name { overflow: hidden; text-overflow: ellipsis; }
.presence-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
  background: #4e925e;
  flex-shrink: 0;
}

/* —— Main —— */
.main { flex: 1; min-width: 0; background: var(--paper); }
.topbar {
  padding: 32px 36px 26px;
  min-height: 120px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: var(--topbar-bg);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}
.eyebrow {
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--muted-soft);
  font-weight: 500;
  text-transform: uppercase;
}
.topbar h2 {
  font-size: clamp(22px, 2.4vw, 30px);
  letter-spacing: -0.045em;
  font-weight: 300;
  margin: 10px 0 8px;
  line-height: 1.1;
}
.topbar p { margin: 0; font-size: 14px; color: var(--muted); font-weight: 300; }
.room-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  border-radius: 999px;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 400;
  transition: background 0.25s var(--brand-ease), border-color 0.25s var(--brand-ease),
    color 0.25s var(--brand-ease), transform 0.25s var(--brand-ease);
}
.button:hover { background: var(--mist); transform: translateY(-1px); }
.button.primary {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}
.button.primary:hover { background: #343734; }
html[data-theme="dark"] .button.primary {
  background: var(--orange);
  border-color: var(--orange);
  color: #111;
}
html[data-theme="dark"] .button.primary:hover { background: var(--orange-hover); }
.button.danger {
  color: #b42318;
  border-color: color-mix(in srgb, #b42318 35%, var(--border, #ddd));
  background: color-mix(in srgb, #b42318 8%, transparent);
}
.button.danger:hover {
  background: color-mix(in srgb, #b42318 16%, transparent);
}
html[data-theme="dark"] .button.danger {
  color: #f97066;
  border-color: rgba(249, 112, 102, 0.35);
  background: rgba(249, 112, 102, 0.08);
}
.button.large { min-height: 48px; padding: 0 24px; font-size: 15px; }

/* —— Welcome —— */
.welcome {
  max-width: 920px;
  margin: auto;
  padding: 48px 40px 40px;
  text-align: center;
}
.welcome h2 {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 300;
  letter-spacing: -0.05em;
  line-height: 1.05;
  margin: 16px 0;
  text-wrap: balance;
}
.welcome > p {
  font-size: 17px;
  font-weight: 300;
  line-height: 1.45;
  max-width: 520px;
  margin: 0 auto 28px;
  color: var(--muted);
}
.welcome-art {
  position: relative;
  width: 320px;
  height: 180px;
  margin: 0 auto 28px;
}
.art-orbit {
  position: absolute;
  inset: 6px 48px;
  border: 1px solid var(--line);
  border-radius: 50%;
  transform: rotate(-28deg);
}
.art-card {
  position: absolute;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  width: 148px;
  height: 96px;
  padding: 20px;
  text-align: left;
  font-size: 20px;
  font-weight: 300;
  letter-spacing: -0.03em;
  box-shadow: var(--brand-shadow-soft);
  background: var(--white);
}
.art-card span { display: block; font-size: 11px; margin-top: 12px; color: var(--muted); letter-spacing: 0.04em; }
.card-one { top: 16px; left: 8px; transform: rotate(-8deg); background: #e8ebe4; }
.card-two { top: 68px; right: 4px; transform: rotate(7deg); background: #fff; }
html[data-theme="dark"] .card-one { background: #252826; }
html[data-theme="dark"] .card-two { background: var(--white); }
.card-two span { color: var(--orange); font-size: 22px; margin-top: 0; }
.art-spark { position: absolute; top: 4px; right: 48px; color: var(--orange); font-size: 34px; }
.welcome-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  text-align: left;
  gap: 28px;
  border-top: 1px solid var(--line);
  padding-top: 28px;
  margin-top: 48px;
}
.welcome-features span {
  font-size: 11px;
  color: var(--orange);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.welcome-features b {
  display: block;
  color: var(--ink);
  font-size: 15px;
  font-weight: 400;
  letter-spacing: -0.02em;
  margin: 10px 0 8px;
  text-transform: none;
}
.welcome-features small {
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0;
  line-height: 1.5;
  font-weight: 300;
  text-transform: none;
}

#notice {
  padding: 14px 28px;
  background: var(--orange-soft);
  border-bottom: 1px solid rgba(240, 144, 36, 0.28);
  font-size: 13px;
  line-height: 1.6;
}

.room-workspace { display: flex; min-height: calc(100vh - 120px); }
.conversation {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 24px;
  gap: 16px;
}
.conversation-label {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-soft);
}
.messages {
  flex: 1;
  min-height: 200px;
  max-height: 55vh;
  overflow-y: auto;
  padding-right: 8px;
  scroll-behavior: smooth;
}
.message { display: flex; gap: 12px; margin: 0 0 22px; }
.message .avatar { width: 32px; height: 32px; font-size: 11px; }
.message-body { min-width: 0; flex: 1; position: relative; }
.message-actions {
  display: none;
  gap: 6px;
  position: absolute;
  top: 0;
  right: 0;
  z-index: 2;
}
.message:hover .message-actions,
.message:focus-within .message-actions {
  display: inline-flex;
}
.message-action-btn {
  border: 1px solid var(--line);
  background: var(--white);
  color: inherit;
  font-size: 11px;
  line-height: 1;
  padding: 4px 8px;
  border-radius: 8px;
  cursor: pointer;
}
.message-action-danger { color: #b42318; }
.message-deleted { opacity: 0.72; }
.message-deleted-placeholder { color: var(--muted-soft); }
.message-edited-badge {
  font-size: 11px;
  color: var(--muted-soft);
  font-weight: 400;
}
.message-meta {
  display: flex;
  gap: 9px;
  align-items: center;
  font-size: 12px;
  margin: 2px 0 8px;
}
.message-meta time { font-size: 11px; color: var(--muted-soft); }
.message-body p {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 14px;
  line-height: 1.55;
  margin: 0;
  font-weight: 300;
}
.message.own .avatar { background: #f3e6d6; color: #8a5a2b; }
html[data-theme="dark"] .message-attachments a:hover { background: rgba(255, 255, 255, 0.08); }
.composer {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  padding: 16px;
  box-shadow: var(--brand-shadow-soft);
}
.composer textarea {
  border: 0;
  resize: vertical;
  width: 100%;
  min-height: 52px;
  max-height: 200px;
  outline: none;
  background: none;
  line-height: 1.5;
  font-weight: 300;
}
.composer-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
}
.composer-tools {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.composer-tools span { font-size: 11px; color: var(--muted-soft); }
.attachment-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}
.attachment-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--mist);
  font-size: 12px;
}
.attachment-chip button {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 14px;
  line-height: 1;
  padding: 0;
}
.message-attachments {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.message-attachments a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--mist);
  font-size: 12px;
  color: var(--ink);
}
.message-attachments a:hover { background: var(--white); color: var(--orange); }

.details {
  width: 320px;
  flex-shrink: 0;
  border-left: 1px solid var(--line);
  padding: 22px;
  background: var(--mist);
}
.details-tabs {
  display: flex;
  gap: 18px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 22px;
}
.details-tabs button {
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  padding: 0 0 14px;
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}
.details-tabs button[aria-selected="true"] {
  border-color: var(--orange);
  color: var(--ink);
}
.details-intro { font-size: 13px; line-height: 1.55; margin-bottom: 22px; color: var(--muted); font-weight: 300; }
.details .field-label { display: block; padding: 0; margin-bottom: 8px; }
.details select {
  width: 100%;
  font-size: 13px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
}
.insights-empty { padding: 36px 0; }
.insights-empty > span { color: var(--orange); font-size: 28px; }
.insights-empty h3 {
  font-size: 24px;
  font-weight: 300;
  letter-spacing: -0.04em;
  line-height: 1.2;
}
.insights-empty p { font-size: 13px; color: var(--muted); line-height: 1.55; font-weight: 300; }
.muted { color: var(--muted); line-height: 1.55; }
.section-heading { font-weight: 500; font-size: 13px; margin-top: 24px; letter-spacing: -0.02em; }
.member-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 16px 0;
  font-size: 13px;
  overflow-wrap: anywhere;
}
.member-row small { display: block; color: var(--muted); font-size: 11px; margin-top: 4px; }

.live-call-banner {
  background: var(--mist);
  padding: 12px 14px;
  border-radius: 999px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  gap: 10px;
  border: 1px solid var(--line);
}
.live-call-banner i { margin-right: 8px; }
.call-stage {
  background: #151715;
  color: #fff;
  border-radius: var(--radius);
  padding: 18px;
}
.stage-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.62);
  margin-bottom: 14px;
}
.recording-badge { color: #fdba74; font-size: 11px; }
.recording-warning { color: #ffd39d; font-size: 11px; }
.video-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  min-height: 200px;
}
.video-grid:has(> .video-tile:only-child) { grid-template-columns: 1fr; }
.video-tile {
  position: relative;
  background: #2a2e2a;
  border-radius: 12px;
  overflow: hidden;
  min-height: 165px;
  aspect-ratio: 1.5;
  display: grid;
  place-items: center;
}
.video-tile video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}
.video-tile .tile-avatar {
  width: 66px;
  height: 66px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #3d443d;
  color: #e8ebe4;
  font-size: 24px;
}
.video-tile .tile-label {
  position: absolute;
  bottom: 10px;
  left: 10px;
  right: 10px;
  font-size: 11px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(17, 19, 17, 0.72);
  display: flex;
  justify-content: space-between;
  gap: 8px;
}
.call-controls {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
.control {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: white;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 12px;
}
.control[aria-pressed="true"] { background: #fff; color: #171917; }
.control.danger { background: #b74634; border-color: transparent; }
.control.subtle { background: transparent; border-color: rgba(255, 180, 160, 0.45); }
.control:hover { filter: brightness(1.12); }

.insights-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
  margin: 18px 0 8px;
  font-size: 12px;
}
.insights-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  align-items: center;
  justify-content: flex-end;
}
.insights-actions a.text-button {
  text-decoration: none;
}
.text-button {
  background: none;
  border: 0;
  color: var(--orange);
  padding: 4px;
  font-size: 12px;
}
.ai-disclaimer { font-size: 11px; line-height: 1.5; color: var(--muted-soft); }
.meeting-summary {
  white-space: pre-wrap;
  font-size: 13px;
  line-height: 1.55;
  padding: 10px 0 18px;
  overflow-wrap: anywhere;
  font-weight: 300;
}
.meeting-lists {
  border-top: 1px solid var(--line);
  padding: 12px 0 3px;
  font-size: 12px;
  line-height: 1.5;
}
.meeting-lists > div + div { margin-top: 12px; }
.meeting-lists h4 {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-soft);
  margin: 0 0 6px;
  font-weight: 500;
}
.meeting-lists ul { padding: 0 0 0 17px; margin: 0; }
.meeting-lists li { padding: 2px 0; overflow-wrap: anywhere; }
.transcript-segment {
  border-top: 1px solid var(--line);
  padding: 14px 0;
  font-size: 12px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}
.transcript-segment header {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 500;
  gap: 8px;
}
.transcript-segment p { white-space: pre-wrap; font-weight: 300; }
.transcript-segment a { color: var(--orange); font-size: 11px; }
.transcript-segment audio,
.transcript-segment video { width: 100%; max-height: 190px; margin-top: 9px; border-radius: 12px; }
.recordings-folder {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0 0 18px;
}
.recording-file {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
}
.recording-file strong {
  display: block;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.02em;
}
.recording-file small {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  color: var(--muted-soft);
}
.recording-file a {
  flex-shrink: 0;
  color: var(--orange);
  font-size: 12px;
  white-space: nowrap;
}
.recording-file .text-button {
  flex-shrink: 0;
  color: var(--orange);
  font-size: 12px;
  white-space: nowrap;
  border: 0;
  background: none;
  padding: 0;
  cursor: pointer;
}
.recordings-inline {
  margin: 0 0 18px;
}
.recordings-inline .button {
  margin: 0 0 10px;
}
.message-attachments .attachment-open {
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  color: var(--ink);
}
.message-attachments .attachment-open:hover {
  background: var(--white);
  color: var(--orange);
}
.recordings-dialog,
.file-preview-dialog {
  width: min(960px, calc(100vw - 32px));
  max-width: 960px;
  padding: 22px 24px 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--paper);
  color: var(--ink);
}
.recordings-dialog::backdrop,
.file-preview-dialog::backdrop {
  background: rgba(20, 18, 16, 0.45);
}
.recordings-dialog-intro {
  margin: 0 0 16px;
  font-size: 13px;
  line-height: 1.5;
}
.recordings-dialog-toolbar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px 12px;
  align-items: center;
  margin-bottom: 16px;
}
.recordings-dialog-toolbar .field-label {
  margin: 0;
}
.recordings-dialog-toolbar select {
  width: 100%;
  min-width: 0;
}
.recordings-dialog-body {
  display: grid;
  grid-template-columns: minmax(220px, 0.9fr) minmax(280px, 1.2fr);
  gap: 16px;
  min-height: 360px;
}
.recordings-file-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 520px;
  overflow: auto;
  padding-right: 4px;
}
.recordings-file-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
  text-align: left;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
  color: inherit;
  cursor: pointer;
}
.recordings-file-card:hover,
.recordings-file-card.active {
  border-color: var(--orange);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--orange) 35%, transparent);
}
.recordings-file-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--mist);
  color: var(--orange);
  flex-shrink: 0;
  font-size: 12px;
}
.recordings-file-meta {
  min-width: 0;
}
.recordings-file-meta strong {
  display: block;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.02em;
}
.recordings-file-meta small {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  color: var(--muted-soft);
  line-height: 1.4;
}
.recordings-preview-pane,
.file-preview-body {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--mist);
  padding: 16px;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.recordings-preview-empty {
  margin: auto;
  text-align: center;
  padding: 24px;
}
.file-preview-meta strong {
  display: block;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 4px;
}
.file-preview-meta span {
  font-size: 12px;
  color: var(--muted-soft);
}
.file-preview-media {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 180px;
}
.file-preview-media video,
.file-preview-media audio,
.file-preview-media img {
  width: 100%;
  max-height: 420px;
  border-radius: 12px;
  background: #111;
}
.file-preview-media audio {
  background: transparent;
}
.file-preview-frame {
  width: 100%;
  min-height: 360px;
  border: 0;
  border-radius: 12px;
  background: var(--white);
}
.recordings-preview-actions {
  display: flex;
  gap: 10px;
  margin-top: auto;
}
@media (max-width: 820px) {
  .recordings-dialog-body {
    grid-template-columns: 1fr;
  }
  .recordings-dialog-toolbar {
    grid-template-columns: 1fr;
  }
  .recordings-file-list {
    max-height: 220px;
  }
}
.visual-note { color: var(--muted); font-style: italic; }
.segment-error { color: #a34b2b; font-size: 11px; }
html[data-theme="dark"] .segment-error { color: #ff8a80; }
.retry-button { font-size: 11px; color: var(--orange); border: 0; background: none; padding: 4px 0; }
.form-error { color: #b1462c; font-size: 13px; line-height: 1.5; }
html[data-theme="dark"] .form-error { color: #ff8a80; }
.empty-message {
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  padding: 70px 20px;
  line-height: 1.55;
  font-weight: 300;
}
.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;
}

dialog {
  width: 460px;
  max-width: calc(100vw - 32px);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 28px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: var(--brand-shadow);
  font-family: var(--font);
}
dialog::backdrop {
  background: rgba(17, 19, 17, 0.48);
  backdrop-filter: blur(4px);
}
html[data-theme="dark"] dialog::backdrop {
  background: rgba(0, 0, 0, 0.65);
}
.dialog-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 18px;
}
.dialog-heading h2 {
  font-size: 24px;
  letter-spacing: -0.04em;
  font-weight: 300;
  margin: 0;
}
dialog label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  margin: 18px 0;
}
dialog input:not([type="checkbox"]),
dialog select {
  display: block;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 12px 14px;
  margin-top: 8px;
  background: var(--white);
  color: var(--ink);
}
dialog small {
  display: block;
  font-size: 12px;
  color: var(--muted);
  font-weight: 300;
  line-height: 1.5;
  margin-top: 8px;
}
.invite-people { display: grid; gap: 8px; margin: 14px 0 4px; }
.invite-people-label { font-size: 13px; font-weight: 500; }
.invite-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.invite-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 12px;
  background: var(--white);
}
.invite-chip button {
  border: 0;
  background: transparent;
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  color: var(--muted);
  padding: 0;
}
.invite-search-wrap { position: relative; }
.invite-suggestions {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  z-index: 20;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.08);
  max-height: 220px;
  overflow: auto;
  padding: 6px;
}
.invite-suggestion {
  display: grid;
  gap: 2px;
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  border-radius: 10px;
  padding: 10px 12px;
  cursor: pointer;
  color: inherit;
}
.invite-suggestion:hover,
.invite-suggestion:focus-visible {
  background: rgba(0,0,0,0.04);
}
.invite-suggestion strong { font-size: 13px; font-weight: 550; }
.invite-suggestion span { font-size: 12px; color: var(--muted); }
.checkbox-label {
  display: flex !important;
  align-items: flex-start;
  gap: 11px;
  line-height: 1.5;
  font-weight: 400;
}
.checkbox-label input {
  margin-top: 3px;
  accent-color: var(--orange);
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
.consent {
  border: 1px solid rgba(240, 144, 36, 0.28);
  padding: 0 14px;
  background: var(--orange-soft);
  border-radius: 14px;
}
.dialog-actions { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }

@media (min-width: 1500px) {
  .conversation { padding: 30px 40px; }
  .details { width: 360px; padding: 26px; }
  .topbar { padding-left: 40px; }
}
@media (max-width: 1150px) {
  .sidebar { width: 230px; }
  .brand-section { display: none; }
  .details { width: 280px; padding: 18px; }
  .topbar { padding: 24px; }
  .topbar h2 { font-size: 22px; }
}
@media (max-width: 950px) {
  .room-workspace { flex-direction: column; }
  .details { width: 100%; border-left: 0; border-top: 1px solid var(--line); }
  .topbar { align-items: flex-start; flex-direction: column; gap: 14px; }
  .messages { max-height: 45vh; }
  .welcome { padding: 36px 24px; }
  .welcome-features { gap: 18px; }
  .sidebar { width: 210px; }
}
@media (max-width: 620px) {
  .workspace { display: block; }
  .sidebar {
    height: auto;
    width: 100%;
    position: static;
    padding: 16px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .brand { margin-bottom: 14px; }
  .brand-section { display: block; }
  .search { margin: 10px 0; }
  .list-label, .sidebar-footer { display: none; }
  .sidebar-prefs { margin-top: 10px; flex-direction: row; flex-wrap: wrap; }
  #room-list { display: flex; gap: 6px; overflow-x: auto; max-height: 88px; flex: 0 0 auto; }
  .room-item { width: auto; min-width: 180px; margin: 0; }
  .topbar { padding: 22px 18px; }
  .welcome h2 { font-size: 34px; }
  .welcome-features { grid-template-columns: 1fr; margin-top: 32px; }
  .conversation { padding: 16px; }
  .composer-tools span { display: none; }
  .composer-actions { justify-content: space-between; }
  .video-grid { grid-template-columns: 1fr; }
  .details { padding: 22px; }
}

.native-meeting .brand, .native-meeting .sidebar-footer > a { display: none; }
.native-meeting body { overscroll-behavior: none; }
.native-meeting input, .native-meeting textarea, .native-meeting select { font-size: 16px; }
.file-preview-text { white-space: pre-wrap; overflow-wrap: anywhere; overflow: auto; max-height: 60vh; }
