:root {
  color-scheme: light;
  font-family: Inter, "SF Pro Text", -apple-system, BlinkMacSystemFont, "Segoe UI",
    "Noto Sans SC", "Noto Sans Arabic", sans-serif;
  --canvas: #eef0f5;
  --surface: #ffffff;
  --surface-soft: #f7f8fb;
  --stage: #f1f3f7;
  --text: #1f2329;
  --text-2: #4e5969;
  --muted: #8f959e;
  --line: #e5e7eb;
  --line-strong: #d8dbe2;
  --blue: #3370ff;
  --blue-soft: #eaf0ff;
  --green: #00b578;
  --red: #f54a45;
}

* { box-sizing: border-box; }
html, body { min-width: 320px; min-height: 100%; }
body { margin: 0; min-height: 100vh; background: var(--canvas); color: var(--text); font-size: 14px; }
body.resizing-panel { cursor: col-resize; user-select: none; }
button, input { font: inherit; }
button { color: inherit; }
button, label { -webkit-tap-highlight-color: transparent; }
svg { width: 19px; height: 19px; stroke-width: 1.8; }

.desktop-shell { min-height: 100vh; display: grid; place-items: center; padding: 16px; }
.app-window {
  position: relative;
  width: min(1560px, 100%);
  height: min(960px, calc(100vh - 32px));
  min-height: 720px;
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--surface);
  box-shadow: 0 18px 50px rgba(31, 35, 41, 0.12);
}

.mac-controls { position: absolute; top: 18px; left: 8px; z-index: 20; display: flex; gap: 8px; }
.mac-light { width: 12px; height: 12px; border: 0; border-radius: 50%; padding: 0; cursor: pointer; }
.mac-light.close { background: #ff5f57; }
.mac-light.minimize { background: #febc2e; }
.mac-light.maximize { background: #28c840; }

.app-rail {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  border-right: 1px solid var(--line);
  background: #f7f8fa;
  padding: 54px 10px 10px;
}
.brand-mark { width: 38px; height: 38px; display: grid; place-items: center; margin-bottom: 4px; border-radius: 8px; background: var(--blue); color: #fff; font-size: 13px; font-weight: 800; }
.rail-button, .icon-button, .view-switch {
  display: grid; place-items: center; border: 0; background: transparent; cursor: pointer;
}
.rail-button { width: 38px; height: 38px; border-radius: 8px; color: #646a73; }
.rail-button:hover, .rail-button.active { background: #e7ecf8; color: var(--blue); }
.rail-button::after {
  position: absolute;
  left: 58px;
  z-index: 30;
  width: max-content;
  max-width: 190px;
  content: attr(data-label);
  transform: translateX(-5px);
  border-radius: 6px;
  background: #25272c;
  color: #fff;
  padding: 7px 9px;
  font-size: 11px;
  opacity: 0;
  pointer-events: none;
  transition: 120ms ease;
}
.rail-button { position: relative; }
.rail-button:hover::after { transform: translateX(0); opacity: 1; }
.rail-bottom { margin-top: auto; }
.profile-avatar { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; color: #fff; font-size: 10px; font-weight: 800; }

.meeting-app { min-width: 0; min-height: 0; display: grid; grid-template-rows: 68px minmax(0, 1fr) 86px; }
.titlebar {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto minmax(260px, 1fr);
  align-items: center;
  gap: 18px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  padding: 0 20px;
}
.meeting-heading { min-width: 0; display: grid; gap: 3px; }
.meeting-title-line { min-width: 0; display: flex; align-items: center; gap: 10px; }
.meeting-heading strong { overflow: hidden; font-size: 15px; text-overflow: ellipsis; white-space: nowrap; }
.meeting-heading span { color: var(--muted); font-size: 12px; }
.header-network {
  height: 18px;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  color: #08785a !important;
}
.header-network .signal { height: 13px; }
.header-network .signal i { width: 2px; }
.meeting-status, .title-actions { display: flex; align-items: center; }
.meeting-status { justify-content: center; gap: 8px; color: var(--text-2); font-size: 12px; }
.status-summary, .ai-subtle, .recording-indicator { min-height: 30px; display: inline-flex; align-items: center; gap: 7px; border-radius: 6px; padding: 0 11px; }
.status-summary { background: var(--surface-soft); font-variant-numeric: tabular-nums; }
.status-summary i { width: 7px; height: 7px; border-radius: 50%; background: var(--red); }
.ai-subtle { background: var(--surface-soft); color: var(--text-2); font-weight: 650; }
.ai-subtle svg { width: 14px; height: 14px; color: var(--blue); }
.recording-indicator { display: none; background: #fff0f0; color: #d93b36; font-weight: 650; }
.recording-indicator.show { display: inline-flex; }
.recording-indicator i { width: 7px; height: 7px; border-radius: 50%; background: var(--red); animation: recordingPulse 1.2s infinite; }
@keyframes recordingPulse { 50% { opacity: .35; } }
.title-actions { justify-content: flex-end; gap: 4px; }
.icon-button, .view-switch { width: 36px; height: 36px; border-radius: 7px; color: #646a73; }
.icon-button:hover, .view-switch:hover, .view-switch.active-view { background: var(--surface-soft); color: var(--blue); }

.workspace {
  --panel-width: 420px;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(340px, var(--panel-width), 540px);
  transition: grid-template-columns 180ms ease;
}
.workspace.panel-closed { grid-template-columns: minmax(0, 1fr) 0; }
.workspace.compact-panel-locked { grid-template-columns: minmax(0, 1fr); }
.stage { position: relative; min-width: 0; min-height: 0; display: grid; grid-template-rows: minmax(0, 1fr) 112px; gap: 10px; padding: 12px; background: var(--stage); }
.stage.grid-view { grid-template-rows: minmax(0, 1fr) auto; }
.main-video { min-height: 0; position: relative; overflow: hidden; border: 1px solid #e1e4ea; border-radius: 8px; background: #e9edf3; }
.stage.grid-view .main-video { border-color: transparent; background: transparent; }
.main-video > img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: center 42%; transition: opacity 180ms ease; }
.main-video.camera-off > img { opacity: 0; }
.grid-video-layout { position: absolute; inset: 0; display: none; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 16px; background: #eef1f6; }
.stage.grid-view .main-video > img,
.stage.grid-view .speaker-label,
.stage.grid-view .caption-language { opacity: 0; pointer-events: none; }
.stage.grid-view .grid-video-layout { display: grid; }
.stage.grid-view .participants { display: none; }
.grid-tile { position: relative; min-width: 0; min-height: 0; display: grid; place-items: center; overflow: hidden; border: 1px solid #dfe3eb; border-radius: 8px; background: #fff; }
.grid-tile.active { border-color: var(--blue); box-shadow: none; }
.grid-tile > img { width: 100%; height: 100%; display: block; object-fit: cover; }
.grid-tile > span { position: absolute; left: 10px; bottom: 10px; border-radius: 6px; background: rgba(18,20,24,.72); color: #fff; padding: 5px 7px; font-size: 11px; }
.grid-avatar { width: 70px; height: 70px; display: grid; place-items: center; border-radius: 50%; color: #fff; font-size: 18px; font-weight: 800; }
.camera-off-state { position: absolute; inset: 0; display: none; place-content: center; justify-items: center; gap: 9px; background: #edf0f5; }
.main-video.camera-off .camera-off-state { display: grid; }
.camera-avatar { width: 86px; height: 86px; display: grid; place-items: center; border-radius: 50%; color: #fff; font-size: 24px; font-weight: 800; }
.camera-off-state strong { font-size: 16px; }
.camera-off-state span { color: var(--muted); font-size: 13px; }
.speaker-label {
  position: absolute; top: 16px; left: 16px; display: flex; align-items: center; gap: 8px;
  border: 1px solid rgba(255,255,255,.76); border-radius: 7px; background: rgba(255,255,255,.9);
  color: var(--text); padding: 8px 11px; box-shadow: 0 5px 18px rgba(31,35,41,.09); backdrop-filter: blur(12px);
}
.speaker-label strong { font-size: 13px; }
.speaker-label > span:last-child { color: var(--muted); font-size: 11px; }
.caption-language {
  position: absolute; top: 16px; right: 16px; height: 36px; display: flex; align-items: center; gap: 7px;
  border: 1px solid rgba(255,255,255,.86); border-radius: 7px; background: rgba(255,255,255,.92);
  color: var(--text-2); padding: 0 11px; box-shadow: 0 5px 18px rgba(31,35,41,.09); cursor: pointer; backdrop-filter: blur(12px);
}
.caption-language svg { width: 15px; height: 15px; }
.audio-wave, .status-wave { height: 14px; display: inline-flex; align-items: center; gap: 2px; }
.audio-wave i, .status-wave i { width: 2px; border-radius: 1px; background: var(--green); animation: wave .8s infinite alternate ease-in-out; }
.audio-wave i:nth-child(1), .status-wave i:nth-child(1) { height: 7px; }
.audio-wave i:nth-child(2), .status-wave i:nth-child(2) { height: 14px; animation-delay: -.35s; }
.audio-wave i:nth-child(3), .status-wave i:nth-child(3) { height: 10px; animation-delay: -.55s; }
.status-wave i:nth-child(4) { height: 6px; animation-delay: -.2s; }
@keyframes wave { to { height: 3px; } }

.live-caption {
  position: absolute; left: 50%; bottom: 142px; z-index: 4; width: min(680px, calc(100% - 48px)); transform: translateX(-50%);
  border: 1px solid rgba(255,255,255,.12); border-radius: 7px; background: rgba(18,20,24,.76); color: #fff;
  padding: 7px 12px 8px; box-shadow: 0 8px 24px rgba(0,0,0,.16); backdrop-filter: blur(13px);
  transition: opacity 150ms ease, transform 150ms ease;
}
.stage.grid-view .live-caption {
  position: static;
  width: min(760px, 100%);
  justify-self: center;
  transform: none;
}
.live-caption.hidden { opacity: 0; pointer-events: none; transform: translate(-50%, 10px); }
.stage.grid-view .live-caption.hidden { display: none; transform: translateY(8px); }
.caption-speaker { display: flex; align-items: center; gap: 6px; margin-bottom: 2px; }
.caption-speaker strong { font-size: 11px; color: #fff; }
.caption-speaker > span:last-child { color: #b7bdc8; font-size: 10px; }
.caption-avatar { width: 19px; height: 19px; display: grid; place-items: center; border-radius: 50%; color: #fff; font-size: 6px; font-weight: 800; }
.translation-primary { margin: 0; color: #fff; font-size: 15px; font-weight: 620; line-height: 1.38; }
.source-secondary { display: flex; align-items: flex-start; gap: 7px; margin: 2px 0 0; color: #c9ced7; font-size: 12px; line-height: 1.4; }
.caption-tertiary { display: block; margin: 2px 0 0; color: #c9ced7; font-size: 12px; line-height: 1.55; text-align: right; direction: rtl; unicode-bidi: plaintext; }
.caption-tertiary[hidden] { display: none; }
.source-secondary span { min-width: 27px; height: 19px; display: inline-grid; place-items: center; margin-top: 1px; border-radius: 4px; background: var(--blue-soft); color: var(--blue); font-size: 9px; font-weight: 800; }
.live-caption.caption-rtl .caption-speaker { justify-content: flex-start; text-align: left; direction: ltr; }
.live-caption.caption-rtl .translation-primary { text-align: left; direction: ltr; unicode-bidi: plaintext; }
.live-caption.caption-rtl .source-secondary {
  display: block;
  width: 100%;
  text-align: right;
  direction: rtl;
  unicode-bidi: plaintext;
}
.live-caption.caption-trilingual .source-secondary {
  text-align: left;
  direction: ltr;
}

.participants { min-width: 0; display: grid; grid-template-columns: repeat(3, minmax(160px, 1fr)) 104px; gap: 8px; }
.participant, .more-participants { min-width: 0; display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff; padding: 12px; }
.participant.active { border-color: var(--blue); box-shadow: none; }
.avatar, .mini-avatar { flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; color: #fff; font-weight: 800; }
.avatar { width: 42px; height: 42px; font-size: 11px; }
.mini-avatar { width: 34px; height: 34px; font-size: 9px; }
.avatar-maya { background: #ff3d8d; }
.avatar-david { background: #246bfd; }
.avatar-omar { background: #ff9500; }
.avatar-lin { background: #00b894; }
.participant-copy { min-width: 0; display: grid; gap: 4px; }
.participant-copy strong, .participant-copy span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.participant-copy strong { font-size: 13px; }
.participant-copy span { color: var(--muted); font-size: 11px; }
.mic-state { width: 27px; height: 27px; display: grid; flex: 0 0 auto; place-items: center; margin-left: auto; border-radius: 6px; }
.mic-state svg { width: 14px; height: 14px; }
.mic-state.speaking { background: #e3f8f1; color: var(--green); }
.mic-state.muted { background: var(--surface-soft); color: #8f959e; }
.more-participants { flex-direction: column; justify-content: center; cursor: pointer; }
.more-participants:hover { border-color: #a9bfff; background: #f7f9ff; }
.more-participants span { color: var(--blue); font-size: 18px; font-weight: 800; }
.more-participants small { color: var(--muted); font-size: 10px; }

.side-panel {
  position: relative;
  min-width: 0; min-height: 0; display: grid; grid-template-rows: 70px 52px minmax(0,1fr);
  overflow: hidden; border-left: 1px solid var(--line); background: var(--surface);
  transition: opacity 120ms ease;
}
.workspace.panel-closed .side-panel { opacity: 0; pointer-events: none; }
.workspace.compact-panel-locked .side-panel { display: none; }
.panel-resizer {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 8;
  width: 10px;
  cursor: col-resize;
}
.panel-resizer::after {
  position: absolute;
  top: 50%;
  left: 3px;
  width: 2px;
  height: 42px;
  content: "";
  transform: translateY(-50%);
  border-radius: 999px;
  background: #c8cfda;
  opacity: 0;
  transition: opacity 120ms ease, background 120ms ease;
}
.side-panel:hover .panel-resizer::after,
.panel-resizer:hover::after,
body.resizing-panel .panel-resizer::after {
  background: var(--blue);
  opacity: 1;
}
.panel-topline { min-width: 0; display: flex; align-items: center; justify-content: space-between; padding: 0 18px; }
.panel-title { min-width: 0; display: flex; align-items: center; gap: 10px; }
.panel-icon, .ai-mark { width: 36px; height: 36px; display: grid; flex: 0 0 auto; place-items: center; border-radius: 8px; background: var(--blue-soft); color: var(--blue); }
.panel-icon svg, .ai-mark svg { width: 17px; height: 17px; }
.panel-title > div { min-width: 0; display: grid; gap: 2px; }
.panel-title strong { font-size: 14px; }
.panel-title span { overflow: hidden; color: var(--muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.panel-tabs { display: grid; grid-template-columns: repeat(5,1fr); gap: 3px; margin: 0 16px 8px; border-radius: 7px; background: #f2f3f5; padding: 4px; }
.tab { position: relative; min-width: 0; height: 36px; border: 0; border-radius: 6px; background: transparent; color: #646a73; font-size: 12px; font-weight: 650; cursor: pointer; }
.tab.active { background: #fff; color: var(--blue); box-shadow: 0 1px 5px rgba(31,35,41,.08); }
.new-dot { position: absolute; width: 5px; height: 5px; margin: 1px 0 0 3px; border-radius: 50%; background: var(--green); }
.panel-content { min-height: 0; display: none; overflow: auto; padding: 14px 18px 18px; }
.panel-content.active { display: flex; flex-direction: column; }
.panel-content > * { flex-shrink: 0; }

.language-controls { display: grid; grid-template-columns: 1fr 18px 1fr; align-items: center; gap: 6px; margin-bottom: 13px; }
.language-controls > svg { width: 15px; height: 15px; color: #a1a6af; }
.language-select { min-width: 0; height: 49px; display: flex; align-items: center; justify-content: space-between; gap: 5px; border: 1px solid var(--line); border-radius: 7px; background: #fff; padding: 0 9px; text-align: left; cursor: pointer; }
.language-select:hover { border-color: #a9bfff; }
.language-select span { min-width: 0; display: grid; gap: 2px; }
.language-select small { color: var(--muted); font-size: 9px; }
.language-select strong { overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.language-select svg { width: 13px; height: 13px; flex: 0 0 auto; }
.usage-strip {
  min-height: 36px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  border: 1px solid #ece2ff;
  border-radius: 8px;
  background: #fcf9ff;
  padding: 7px 9px;
}
.usage-strip span,
.plan-badge {
  width: max-content;
  border-radius: 999px;
  background: var(--surface-soft);
  color: #737985;
  padding: 3px 7px;
  font-size: 9px;
  font-weight: 750;
}
.usage-strip strong {
  overflow: hidden;
  color: var(--text-2);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.upgrade-link {
  border: 0;
  background: transparent;
  color: #6d3be8;
  padding: 0;
  font-size: 11px;
  font-weight: 750;
  cursor: pointer;
}
.upgrade-link:hover { color: #4f22bf; text-decoration: underline; }
.transcript { display: grid; gap: 8px; }
.transcript-item { display: grid; grid-template-columns: 34px minmax(0,1fr); gap: 10px; padding: 12px; border: 1px solid transparent; border-radius: 8px; background: #f8f9fb; }
.transcript-item:hover { border-color: transparent; background: #f8f9fb; }
.transcript-item.current:hover { border-color: var(--blue); background: #f5f8ff; }
.transcript-item.current { border-color: var(--blue); background: #f5f8ff; box-shadow: none; }
.transcript-head { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; }
.transcript-head strong { font-size: 12px; }
.transcript-head time { margin-left: auto; color: #a1a6af; font-size: 10px; font-variant-numeric: tabular-nums; }
.transcript-language { min-width: 24px; height: 17px; display: inline-grid; place-items: center; border-radius: 4px; background: var(--blue-soft); color: var(--blue); font-size: 8px; font-weight: 800; }
.arabic-tag { background: #fff0dc; color: #c46700; }
.zh-tag { background: #e6f8f2; color: #008c62; }
.transcript-item p, .chat-message p { margin: 0; font-size: 12px; line-height: 1.6; }
.translated-line { color: var(--text); font-weight: 600; }
.original-line, .english-bridge, .arabic-original { margin-top: 4px !important; color: #737985; }
.original-line b, .english-bridge b { color: var(--blue); font-size: 8px; margin-right: 4px; }
.arabic-original { padding-top: 6px; border-top: 1px solid #f0e3cf; font-family: "Noto Sans Arabic","Geeza Pro",sans-serif; font-size: 14px !important; line-height: 1.8 !important; text-align: right; direction: rtl; unicode-bidi: isolate; }
.transcript.mode-zh-en .arabic-original { display: none; }
.transcript.mode-en-ar .translated-line { display: none; }
.transcript.mode-en-zh .arabic-original,
.transcript.mode-en-ar .translated-line { display: none; }
.transcript.mode-en-zh .transcript-item > div:last-child,
.transcript.mode-en-ar .transcript-item > div:last-child { display: flex; flex-direction: column; }
.transcript.mode-en-zh .transcript-head,
.transcript.mode-en-ar .transcript-head { order: 0; }
.transcript.mode-en-zh .original-line,
.transcript.mode-en-zh .english-bridge,
.transcript.mode-en-ar .original-line,
.transcript.mode-en-ar .english-bridge { order: 1; }
.transcript.mode-en-zh .translated-line { order: 2; margin-top: 4px; }
.transcript.mode-en-ar .arabic-original { order: 2; }
.rtl-item { border-color: transparent; background: #f8f9fb; }
.caption-status { position: sticky; bottom: -18px; display: flex; align-items: center; gap: 8px; margin: auto -18px -18px; border-top: 1px solid var(--line); background: rgba(255,255,255,.97); color: var(--muted); padding: 12px 18px; font-size: 11px; backdrop-filter: blur(12px); }
.caption-status button { width: 28px; height: 28px; display: grid; place-items: center; margin-left: auto; border: 0; border-radius: 6px; background: var(--surface-soft); color: var(--text-2); cursor: pointer; }
.caption-status button svg { width: 13px; height: 13px; }

.ai-summary-frame {
  position: relative;
  overflow: hidden;
  margin-bottom: 10px;
  border: 1px solid transparent;
  border-radius: 10px;
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(135deg, rgba(51,112,255,.75), rgba(168,85,247,.7), rgba(255,93,162,.65)) border-box;
  padding: 15px;
  box-shadow: 0 10px 26px rgba(51,112,255,.08);
}
.summary-header { position: relative; z-index: 1; display: flex; align-items: center; gap: 10px; padding-bottom: 12px; }
.summary-header > div { min-width: 0; display: grid; gap: 2px; }
.summary-header small { color: var(--muted); font-size: 10px; }
.summary-header strong { font-size: 14px; }
.ready-badge { margin-left: auto; border-radius: 5px; background: var(--surface-soft); color: #737985; padding: 5px 7px; font-size: 9px; font-weight: 700; }
.summary-section { padding: 20px 0; border-bottom: 1px solid var(--line); }
.summary-section h3 { display: flex; align-items: center; gap: 7px; margin: 0 0 16px; font-size: 13px; }
.summary-section h3 svg { width: 15px; height: 15px; color: var(--blue); }
.summary-section > p { margin: 0; color: var(--text-2); font-size: 12px; line-height: 1.7; }
.ai-core-section { position: relative; z-index: 1; border-bottom: 0; padding: 12px 0 0; }
.summary-list { display: grid; gap: 10px; margin: 0; padding-left: 18px; color: var(--text-2); font-size: 12px; line-height: 1.7; }
.summary-usage-note {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 14px 0 6px;
  border: 1px solid #eadcff;
  border-radius: 9px;
  background: #fcf9ff;
  color: var(--text-2);
  padding: 0 13px;
  font-size: 11px;
}
.summary-usage-note span {
  flex: 0 0 auto;
  border-radius: 999px;
  background: rgba(255,255,255,.62);
  color: #8f76b5;
  padding: 5px 9px;
  font-size: 10px;
  font-weight: 750;
}
.summary-usage-note strong {
  min-width: 0;
  flex: 1;
  overflow: hidden;
  color: var(--text-2);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.monetization-card {
  display: grid;
  gap: 10px;
  margin: 16px 0 6px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  padding: 12px;
}
.monetization-card strong {
  display: block;
  margin-top: 7px;
  font-size: 13px;
}
.monetization-card p {
  margin: 5px 0 0;
  color: var(--text-2);
  font-size: 11px;
  line-height: 1.55;
}
.premium-card {
  margin-top: 8px;
  border-color: #eadcff;
  background: #fcf9ff;
}
.premium-card .upgrade-link { justify-self: center; font-size: 12px; }
.usage-meter {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: #eceff5;
}
.usage-meter span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #3370ff, #a855f7, #ff5da2);
}
.segment-summary { display: grid; grid-template-columns: 86px 1fr; gap: 9px; margin-bottom: 15px; }
.segment-summary:last-child { margin-bottom: 0; }
.segment-summary time { color: var(--blue); font-size: 10px; font-weight: 650; }
.segment-summary strong { font-size: 12px; }
.segment-summary p { margin: 3px 0 0; color: var(--text-2); font-size: 11px; line-height: 1.55; }
.opinion { display: grid; grid-template-columns: 82px minmax(0,1fr); align-items: start; gap: 10px; margin-bottom: 14px; }
.opinion .mini-avatar { display: none; }
.opinion p { margin: 0; color: var(--text-2); font-size: 11px; line-height: 1.55; }
.opinion strong { display: block; color: var(--text); font-size: 11px; line-height: 1.55; }
.share-summary { min-height: 42px; display: flex; justify-content: center; align-items: center; gap: 7px; margin-top: 16px; border: 0; border-radius: 7px; background: var(--blue); color: #fff; font-size: 12px; font-weight: 700; cursor: pointer; }
.share-summary:hover { background: #245bdb; }
.share-summary svg { width: 15px; height: 15px; }

.panel-toolbar, .member-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-bottom: 14px; }
.panel-toolbar > div { display: grid; gap: 2px; }
.panel-toolbar small { color: var(--muted); font-size: 10px; }
.panel-toolbar strong, .member-toolbar strong { font-size: 14px; }
.bordered { border: 1px solid var(--line); }
.chat-feed { display: grid; gap: 16px; }
.chat-message { display: grid; grid-template-columns: 34px minmax(0,1fr); gap: 10px; }
.chat-message > div:last-child { min-width: 0; display: grid; justify-items: start; }
.chat-message p { border-radius: 8px; background: var(--surface-soft); color: var(--text-2); padding: 10px 11px; }
.chat-message .chat-translation { margin-top: 6px; border: 1px solid #e5edff; background: #f7f9ff; color: var(--text); }
.chat-message.own { grid-template-columns: minmax(0,1fr) 34px; margin-left: 38px; text-align: right; }
.chat-message.own > div:first-child { min-width: 0; display: grid; justify-items: end; }
.chat-message.own .transcript-head { justify-content: flex-end; }
.chat-message.own .transcript-head time { margin-left: 0; }
.chat-message.own p { display: inline-block; max-width: 100%; justify-self: end; background: var(--blue-soft); color: var(--text); text-align: left; }
.translate-chat {
  width: max-content;
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 6px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--blue);
  padding: 0;
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
}
.chat-message.own .translate-chat { justify-self: end; }
.translate-chat svg { width: 12px; height: 12px; }
.file-chip { max-width: 100%; display: flex; align-items: center; gap: 6px; margin-top: 7px; overflow: hidden; border: 1px solid var(--line); border-radius: 7px; background: #fff; color: var(--blue); padding: 8px 9px; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; cursor: pointer; }
.file-chip svg { width: 14px; height: 14px; }
.chat-composer { display: flex; align-items: center; gap: 7px; margin-top: auto; border: 1px solid var(--line); border-radius: 8px; background: #fff; padding: 7px; }
.chat-composer input { min-width: 0; flex: 1; border: 0; outline: 0; color: var(--text); font-size: 12px; }
.chat-composer button { width: 30px; height: 30px; display: grid; place-items: center; border: 0; border-radius: 6px; background: transparent; color: #858b95; cursor: pointer; }
.chat-composer .send-chat { background: var(--blue); color: #fff; }
.chat-composer svg { width: 14px; height: 14px; }
.member-toolbar { align-items: center; }
.member-title { min-width: 96px; display: grid; gap: 2px; }
.member-title span { color: var(--muted); font-size: 10px; }
.member-search {
  min-width: 0;
  height: 32px;
  display: flex;
  flex: 1;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  padding: 0 8px;
}
.member-search svg { width: 13px; height: 13px; color: var(--muted); }
.member-search input { min-width: 0; flex: 1; border: 0; outline: 0; color: var(--text); font-size: 11px; }
.compact-button { height: 32px; display: inline-flex; align-items: center; gap: 5px; border: 1px solid var(--line); border-radius: 6px; background: #fff; color: var(--text-2); padding: 0 9px; font-size: 11px; cursor: pointer; }
.compact-button svg { width: 13px; height: 13px; }
.permission-note {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  margin: -3px 0 10px;
  border-radius: 8px;
  background: #f4f7ff;
  color: #4e5969;
  padding: 9px 10px;
  font-size: 11px;
  line-height: 1.45;
}
.permission-note svg { width: 14px; height: 14px; flex: 0 0 auto; color: var(--blue); }
.member-list { display: grid; gap: 4px; }
.member-row { display: grid; grid-template-columns: 42px minmax(0,1fr) auto auto; align-items: center; gap: 9px; border-radius: 8px; padding: 9px 7px; }
.member-row.hidden { display: none; }
.member-row:hover { background: var(--surface-soft); }
.member-row > div { min-width: 0; display: grid; gap: 3px; }
.member-row strong, .member-row small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.member-row strong { font-size: 12px; }
.member-row small { color: var(--muted); font-size: 10px; }
.role-badge {
  border-radius: 999px;
  background: var(--surface-soft);
  color: #737985;
  padding: 3px 6px;
  font-size: 9px;
  font-weight: 700;
}
.role-badge.host { background: #eaf0ff; color: var(--blue); }
.role-badge.cohost { background: #edf8f3; color: #008c62; }
.member-actions { display: flex !important; align-items: center; gap: 4px; }
.member-device {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 6px;
  background: #fff;
  color: #737985;
  cursor: pointer;
}
.member-device:hover { background: var(--blue-soft); color: var(--blue); }
.member-device.off { background: #fff0f0; color: var(--red); }
.member-device svg { width: 13px; height: 13px; }

.interpretation-hero {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 0 6px;
}
.interpretation-hero .ai-mark { width: 30px; height: 30px; border-radius: 7px; }
.interpretation-hero strong { display: flex; align-items: center; gap: 5px; font-size: 14px; }
.hint-icon {
  width: 20px;
  height: 20px;
  display: inline-grid;
  place-items: center;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--muted);
  padding: 0;
  cursor: help;
}
.hint-icon svg { width: 13px; height: 13px; }
.channel-list { display: grid; gap: 8px; margin-top: 15px; }
.channel-option {
  min-height: 62px;
  display: grid;
  grid-template-columns: 19px minmax(0,1fr) 22px;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 10px 12px;
  text-align: left;
  cursor: pointer;
}
.channel-option:hover { border-color: #b8c9ff; }
.channel-option.selected { border-color: var(--blue); box-shadow: none; background: #f7f9ff; }
.channel-radio { width: 17px; height: 17px; border: 2px solid #c8cfda; border-radius: 50%; }
.channel-option.selected .channel-radio { border: 5px solid #7a4cf2; }
.channel-option > span:nth-child(2) { display: grid; gap: 3px; }
.channel-option strong { font-size: 12px; }
.channel-option small { color: var(--muted); font-size: 10px; }
.channel-option > svg { width: 16px; height: 16px; color: #a1a6af; }
.channel-option > svg.channel-connected { color: var(--green); }
.audio-mix { display: grid; gap: 8px; margin-top: 18px; border-top: 1px solid var(--line); padding-top: 16px; }
.audio-mix > div { display: flex; justify-content: space-between; font-size: 12px; }
.audio-mix > div span { color: var(--blue); font-weight: 650; }
.audio-mix input { width: 100%; accent-color: #7a4cf2; -webkit-appearance: none; appearance: none; background: transparent; }
.audio-mix input::-webkit-slider-thumb {
  width: 18px;
  height: 18px;
  margin-top: -6px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: #7a4cf2;
  box-shadow: 0 2px 8px rgba(87, 56, 185, .35);
  -webkit-appearance: none;
}
.audio-mix input::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, #7a4cf2 var(--source-volume, 20%), #e3e6ee var(--source-volume, 20%));
}
.audio-mix small { color: var(--muted); font-size: 10px; }

.meeting-controls { display: grid; grid-template-columns: 80px minmax(0,1fr) 135px; align-items: center; border-top: 1px solid var(--line); background: var(--surface); padding: 0 12px; }
.footer-spacer { min-width: 0; }
.connection { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 11px; }
.signal { height: 15px; display: flex; align-items: end; gap: 2px; }
.signal i { width: 3px; border-radius: 1px; background: var(--green); }
.signal i:nth-child(1) { height: 5px; } .signal i:nth-child(2) { height: 9px; } .signal i:nth-child(3) { height: 13px; }
.control-group { display: flex; justify-content: center; align-items: center; gap: clamp(1px, .35vw, 5px); }
.control-split { position: relative; display: grid; grid-template-columns: 54px 17px; align-items: center; border-radius: 8px; }
.control-button { width: 54px; height: 62px; display: grid; place-items: center; align-content: center; gap: 5px; border: 0; border-radius: 8px; background: transparent; color: #646a73; cursor: pointer; }
.control-split .control-button { width: 54px; border-radius: 8px 0 0 8px; }
.quick-setting { width: 17px; height: 38px; display: grid; place-items: center; border: 0; border-radius: 0 6px 6px 0; background: transparent; color: #8a9099; padding: 0; cursor: pointer; }
.quick-setting:hover { background: var(--surface-soft); color: var(--blue); }
.quick-setting svg { width: 12px; height: 12px; }
.control-button:hover, .control-button.panel-active { background: var(--surface-soft); color: var(--blue); }
.control-icon { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 7px; }
.control-icon svg { width: 17px; height: 17px; }
.control-button.active-control .control-icon, .control-button.panel-active .control-icon { background: var(--blue-soft); color: var(--blue); }
.control-button.sharing .control-icon { background: #e6f8f2; color: #008c62; }
.control-button:not(.active-control)[data-action="mic"] .control-icon,
.control-button:not(.active-control)[data-action="camera"] .control-icon,
.control-button:not(.active-control)[data-action="caption"] .control-icon { background: #fff0f0; color: var(--red); }
.control-button small { font-size: 10px; white-space: nowrap; }
.control-button.recording .control-icon { background: #fff0f0; color: var(--red); }
.end-button { justify-self: end; height: 40px; display: inline-flex; align-items: center; gap: 7px; border: 0; border-radius: 7px; background: #fff0f0; color: #d93b36; padding: 0 14px; font-size: 12px; font-weight: 700; cursor: pointer; }
.end-button:hover { background: var(--red); color: #fff; }
.end-button svg { width: 15px; height: 15px; }

.floating-menu { position: fixed; z-index: 40; display: none; border: 1px solid var(--line); border-radius: 8px; background: #fff; padding: 6px; box-shadow: 0 12px 36px rgba(31,35,41,.16); }
.floating-menu.show { display: grid; }
.language-menu { width: 320px; }
.language-menu button { display: grid; grid-template-columns: 20px 1fr; gap: 7px; align-items: center; border: 0; border-radius: 6px; background: transparent; padding: 9px; text-align: left; cursor: pointer; }
.language-menu button:hover { background: var(--surface-soft); }
.language-menu button > svg { width: 14px; height: 14px; color: transparent; }
.language-menu button.selected > svg { color: var(--blue); }
.language-menu span { display: grid; gap: 2px; }
.language-menu strong { font-size: 12px; }
.language-menu small { color: var(--muted); font-size: 10px; }
.reaction-menu { grid-template-columns: repeat(6, 36px); gap: 3px; padding: 7px; }
.reaction-menu button { width: 36px; height: 36px; border: 0; border-radius: 7px; background: transparent; font-size: 20px; cursor: pointer; }
.reaction-menu button:hover { background: var(--surface-soft); transform: translateY(-2px); }
.quick-menu { width: 238px; gap: 3px; }
.quick-menu > strong { padding: 7px 9px 5px; font-size: 11px; }
.menu-empty { margin: 0; color: var(--muted); padding: 7px 9px 9px; font-size: 11px; line-height: 1.5; }
.quick-menu > button { min-height: 35px; display: flex; align-items: center; gap: 7px; border: 0; border-radius: 6px; background: transparent; padding: 0 9px; text-align: left; font-size: 11px; cursor: pointer; }
.quick-menu > button:hover { background: var(--surface-soft); }
.quick-menu > button svg { width: 13px; height: 13px; color: transparent; }
.quick-menu > button.selected svg { color: var(--blue); }
.quick-menu label { min-height: 38px; display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); padding: 4px 9px; color: var(--text-2); font-size: 11px; }
.quick-menu input { accent-color: var(--blue); }

.modal-backdrop { position: fixed; inset: 0; z-index: 50; display: none; place-items: center; background: rgba(31,35,41,.28); backdrop-filter: blur(2px); }
.modal-backdrop.show { display: grid; }
.dialog { width: min(440px, calc(100vw - 32px)); border-radius: 10px; background: #fff; padding: 24px; box-shadow: 0 22px 60px rgba(31,35,41,.2); }
.compact-dialog { width: min(390px, calc(100vw - 32px)); text-align: center; }
.dialog-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 9px; background: var(--blue-soft); color: var(--blue); }
.compact-dialog .dialog-icon { margin: 0 auto; }
.dialog-icon.danger { background: #fff0f0; color: var(--red); }
.dialog h2 { margin: 14px 0 7px; font-size: 18px; }
.dialog p { margin: 0; color: var(--text-2); font-size: 12px; line-height: 1.6; }
.trial-quota {
  display: grid;
  gap: 9px;
  margin-top: 18px;
  border: 1px solid #ece2ff;
  border-radius: 9px;
  background: #fcfaff;
  padding: 12px;
  text-align: left;
}
.trial-quota > div:not(.usage-meter) {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--text-2);
  font-size: 12px;
}
.trial-quota strong { color: #6d3be8; }
.billing-dialog { width: min(650px, calc(100vw - 32px)); }
.plan-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 18px;
}
.plan-grid article {
  min-height: 150px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  padding: 14px;
}
.plan-grid article.recommended {
  border-color: var(--blue);
  background: #f7f9ff;
  box-shadow: none;
}
.plan-grid span {
  color: #6d3be8;
  font-size: 11px;
  font-weight: 750;
}
.plan-grid strong {
  display: block;
  margin-top: 7px;
  font-size: 16px;
}
.plan-grid p {
  margin-top: 9px;
  font-size: 11px;
}
.share-options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }
.share-options button { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff; padding: 13px; text-align: left; cursor: pointer; }
.share-options button:hover, .share-options button.selected { border-color: var(--blue); background: #f7f9ff; }
.share-options button > svg { color: var(--blue); }
.share-options span { display: grid; gap: 2px; }
.share-options strong { font-size: 12px; }
.share-options small { color: var(--muted); font-size: 10px; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 22px; }
.dialog-actions button { height: 36px; border: 1px solid var(--line); border-radius: 6px; background: #fff; padding: 0 15px; font-size: 12px; cursor: pointer; }
.dialog-actions .primary { border-color: var(--blue); background: var(--blue); color: #fff; }
.dialog-actions .danger-button { border-color: var(--red); background: var(--red); color: #fff; }

.toast { position: fixed; left: 50%; bottom: 26px; z-index: 70; display: flex; align-items: center; gap: 8px; transform: translate(-50%,70px); border: 1px solid #cfe3dc; border-radius: 8px; background: #fff; color: #08785a; padding: 11px 15px; box-shadow: 0 12px 32px rgba(31,35,41,.16); font-size: 12px; font-weight: 650; opacity: 0; pointer-events: none; transition: 180ms ease; }
.toast svg { width: 16px; height: 16px; color: var(--green); }
.toast.show { transform: translate(-50%,0); opacity: 1; }

@media (min-width: 1700px) {
  .app-window { width: min(1760px, calc(100% - 32px)); height: min(1000px, calc(100vh - 32px)); }
  .workspace { --panel-width: 450px; }
  .translation-primary { font-size: 15px; }
}
@media (max-width: 980px) {
  .desktop-shell { padding: 0; }
  .app-window { width: 100%; height: 100vh; min-height: 700px; border: 0; border-radius: 0; }
  .workspace { grid-template-columns: minmax(0,1fr); }
  .side-panel { display: none; }
  .titlebar { grid-template-columns: minmax(210px,1fr) auto minmax(170px,1fr); }
  .participants { grid-template-columns: repeat(3,1fr); }
  .more-participants { display: none; }
  .meeting-controls { grid-template-columns: 80px minmax(0,1fr) 125px; padding: 0 8px; }
  .connection span:last-child { display: none; }
  .control-button { width: 50px; }
  .control-split { grid-template-columns: 50px 15px; }
  .control-split .control-button { width: 50px; }
  .quick-setting { width: 15px; }
}
@media (max-width: 920px) {
  .app-window { grid-template-columns: 56px minmax(0,1fr); }
  .app-rail { padding-inline: 7px; }
  .titlebar { grid-template-columns: 1fr auto; }
  .meeting-status { display: none; }
  .workspace { grid-template-columns: 1fr; overflow: auto; }
  .workspace.panel-closed { grid-template-columns: 1fr; }
  .connection { display: none; }
  .meeting-controls { grid-template-columns: minmax(0,1fr) 120px; }
  .control-group { justify-content: flex-start; overflow-x: auto; }
}
@media (max-width: 720px) {
  .plan-grid { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .app-window { grid-template-columns: 56px minmax(0, 1fr); }
  .app-rail { display: flex; padding: 54px 7px 12px; }
  .mac-controls { display: flex; left: 8px; gap: 5px; }
  .mac-light { width: 10px; height: 10px; }
  .title-actions .view-switch { display: none; }
  .stage { grid-template-rows: minmax(420px,1fr) 86px; padding: 8px; }
  .participants { gap: 5px; }
  .participant { justify-content: center; padding: 8px; }
  .participant-copy, .mic-state { display: none; }
  .caption-language { display: none; }
  .live-caption { bottom: 12px; width: calc(100% - 20px); }
  .translation-primary { font-size: 15px; }
  .meeting-controls { grid-template-columns: 1fr auto; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
