@font-face {
  font-family: "Inter";
  src: url("assets/fonts/inter-cyrillic-400.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("assets/fonts/inter-cyrillic-500.woff2") format("woff2");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("assets/fonts/inter-cyrillic-600.woff2") format("woff2");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("assets/fonts/inter-cyrillic-700.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

:root {
  color-scheme: light;
  --bg: #fbfbfa;
  --panel: #ffffff;
  --panel-subtle: #f7f8f6;
  --text: #10192e;
  --muted: #69728a;
  --muted-strong: #4c576f;
  --line: #e3e6e1;
  --line-strong: #cfd5cd;
  --primary: #0f9f57;
  --primary-dark: #087a40;
  --primary-soft: #e9f8ef;
  --blue: #2474e5;
  --danger: #c83c4e;
  --warning: #a66c00;
  --shadow: 0 12px 32px rgba(17, 28, 49, 0.06);
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--bg); }
body { margin: 0; min-height: 100vh; color: var(--text); background: var(--bg); font-size: 15px; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { appearance: none; }
a { color: var(--blue); text-underline-offset: 3px; }
[hidden] { display: none !important; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 10px clamp(24px, 4vw, 64px);
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--text); cursor: pointer; flex: 0 0 auto; }
.logo { width: 38px; height: 38px; border-radius: 10px; object-fit: cover; }
.brand-name { font-size: 20px; line-height: 1.05; font-weight: 700; letter-spacing: -0.02em; }
.brand-sub { margin-top: 4px; color: var(--muted); font-size: 12px; line-height: 1.1; }
.top-actions { display: flex; align-items: center; justify-content: flex-end; gap: 18px; min-width: 0; }
.main-nav { display: flex; align-items: stretch; gap: 24px; }
.main-nav .ghost { min-height: 52px; padding: 0 2px; border: 0; border-bottom: 2px solid transparent; border-radius: 0; background: transparent; color: var(--muted-strong); font-weight: 500; }
.main-nav .ghost:hover, .main-nav .ghost.active { color: var(--text); background: transparent; border-bottom-color: var(--primary); }
.sub-status { min-height: 32px; padding: 5px 11px; border: 1px solid #9ad8b3; border-radius: 7px; background: #f2fbf5; color: var(--primary-dark); font-size: 13px; font-weight: 600; }
.sub-status:hover { background: var(--primary-soft); }
.account-shortcut { color: var(--muted-strong); white-space: nowrap; }
.account-shortcut i { font-size: 18px; }

.network-banner { padding: 10px 24px; text-align: center; background: #fff4da; border-bottom: 1px solid #eed79e; color: #75500a; }
.shell { width: min(1328px, calc(100% - 64px)); margin: 0 auto; padding: 28px 0 64px; }
.screen { display: none; }
.screen.active { display: block; }

h1, h2, h3 { margin-top: 0; color: var(--text); letter-spacing: -0.025em; }
h1 { font-size: clamp(36px, 3.5vw, 48px); line-height: 1.06; }
h2 { font-size: 22px; line-height: 1.2; }
h3 { font-size: 17px; line-height: 1.3; }
p { line-height: 1.6; }
.eyebrow { margin-bottom: 10px; color: var(--primary-dark); font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.hint, .muted, small { color: var(--muted); }

button, .button, .primary, .secondary, .ghost, .link {
  min-height: 42px;
  padding: 10px 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 7px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: border-color .16s ease, background-color .16s ease, color .16s ease, transform .16s ease;
}
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 3px solid rgba(15, 159, 87, .2); outline-offset: 2px; }
.primary { color: #fff; background: var(--primary); border-color: var(--primary); }
.primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); }
.secondary { color: var(--text); background: #fff; border-color: var(--line-strong); }
.secondary:hover { background: var(--panel-subtle); border-color: #aeb7ad; }
.ghost, .link { color: var(--muted-strong); background: transparent; }
.ghost:hover, .link:hover { color: var(--text); background: #f2f4f1; }
.text-button { min-height: auto; padding: 4px 0; color: var(--blue); background: transparent; border: 0; border-radius: 3px; font-weight: 500; }
.text-button:hover { color: #155fbd; background: transparent; }
.wide { width: 100%; }
button:disabled { opacity: .5; cursor: not-allowed; }
.danger { color: var(--danger); }

input, select, textarea { width: 100%; min-height: 42px; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: 7px; background: #fff; color: var(--text); }
textarea { min-height: 120px; resize: vertical; }
label { color: var(--muted-strong); }

.start-workspace { display: grid; grid-template-columns: minmax(0, 1fr) 365px; gap: 48px; align-items: start; }
.start-primary { min-width: 0; }
.start-intro { margin-bottom: 20px; }
.start-intro .eyebrow { display: none; }
.start-intro h1 { margin: 0 0 9px; }
.start-intro p { max-width: 760px; margin: 0; color: var(--muted); font-size: 16px; }

.source-list { border-top: 1px solid var(--line); }
.source-row { min-height: 70px; display: grid; grid-template-columns: 42px minmax(180px, 1fr) minmax(360px, auto) auto; gap: 16px; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--line); }
.source-icon { color: var(--text); font-size: 25px; text-align: center; }
.source-copy { display: grid; gap: 5px; }
.source-copy strong { font-size: 15px; }
.source-copy span { color: var(--muted); font-size: 13px; line-height: 1.35; }
.source-options { display: inline-flex; align-items: center; justify-content: flex-end; gap: 0; border: 1px solid var(--line-strong); border-radius: 8px; background: #fff; overflow: hidden; }
.source-options .chip { min-height: 38px; padding: 8px 13px; border: 0; border-right: 1px solid var(--line); border-radius: 0; background: #fff; color: var(--muted-strong); font-size: 13px; font-weight: 500; white-space: nowrap; }
.source-options .chip:last-child { border-right: 0; }
.source-options .chip:hover { background: #f5f7f4; color: var(--text); }
.source-options .chip.active { background: var(--primary-soft); color: var(--primary-dark); box-shadow: inset 0 0 0 1px #5fc58a; }
.source-options.disabled { opacity: .55; }
.compact-toggle { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; color: var(--muted-strong); cursor: pointer; }
.compact-toggle input { width: 17px; height: 17px; min-height: 0; accent-color: var(--primary); }
.recognition-options { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 8px; grid-column: 3 / 5; }
.source-details { border-bottom: 1px solid var(--line); color: var(--muted-strong); }
.source-details summary { width: fit-content; margin-left: 58px; padding: 6px 0 8px; cursor: pointer; font-size: 12px; }
.camera-settings { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; padding: 4px 0 18px 58px; }
.field-inline { display: grid; gap: 6px; color: var(--muted); font-size: 12px; }

.legal-consent { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; margin-top: 18px; color: var(--muted-strong); font-size: 13px; }
.legal-consent input { width: 19px; height: 19px; min-height: 0; margin: 0; accent-color: var(--primary); }
.record-actions { display: grid; grid-template-columns: minmax(220px, 1.25fr) 1fr 1fr; gap: 12px; margin-top: 16px; }
.record-primary { min-height: 50px; font-size: 16px; }
.record-primary i { font-size: 19px; }
.pro-action i { color: #c18a13; }
.hotkeys { display: flex; align-items: center; gap: 7px; margin-top: 10px; font-size: 12px; }
.pay-status { margin-top: 12px; padding: 10px 12px; border-radius: 7px; background: #f0f4f1; color: var(--muted-strong); font-size: 13px; }
.pay-status:empty { display: none; }
.status-error { background: #fff0f2; color: var(--danger); }
.status-success { background: var(--primary-soft); color: var(--primary-dark); }
#record-start-status.status-success { padding: 0; background: transparent; }
.limit-box { margin-top: 14px; padding: 16px; border-left: 3px solid var(--warning); background: #fff8e8; }
.limit-box-title { font-weight: 700; }
.limit-box-body { margin: 6px 0 12px; color: var(--muted-strong); }
.recording-badge { margin-top: 12px; color: var(--danger); font-weight: 700; }
.resume-row { display: flex; align-items: center; gap: 12px; margin-top: 12px; }

.start-aside { padding-left: 36px; border-left: 1px solid var(--line); }
.meeting-panel, .readiness-panel { padding: 22px 0; }
.meeting-panel { padding-top: 0; }
.readiness-panel { border-top: 1px solid var(--line); }
.section-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 18px; }
.section-heading.compact { align-items: center; }
.section-heading h2 { margin: 0; font-size: 18px; }
.calendar-list { min-height: 106px; margin-bottom: 14px; padding: 18px; border: 1px solid var(--line); background: var(--panel-subtle); color: var(--muted-strong); line-height: 1.6; }
.calendar-list > div { padding: 8px 0; border-bottom: 1px solid var(--line); color: var(--text); font-weight: 500; }
.calendar-list > div:last-child { border-bottom: 0; }
.status-pill { padding: 5px 9px; border-radius: 999px; background: var(--primary-soft); color: var(--primary-dark); font-size: 12px; font-weight: 700; }
.readiness-list { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.readiness-list li { display: flex; align-items: center; gap: 11px; padding: 11px 0; border-bottom: 1px solid var(--line); color: var(--muted-strong); }
.readiness-list i { width: 20px; color: var(--text); font-size: 17px; text-align: center; }
.readiness-tip { margin-top: 14px; color: var(--primary-dark); font-size: 13px; font-weight: 600; }

.recent-section { margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--line); }
.recent-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 14px; }
.recent-heading h2 { margin: 0; font-size: 22px; }
.recent-table { border-top: 1px solid var(--line); }
.recent-table-head, .recent-item { display: grid; grid-template-columns: minmax(240px, 1.8fr) 150px 110px 150px 90px; gap: 20px; align-items: center; }
.recent-table-head { padding: 10px 14px; background: #f4f5f3; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .05em; }
.recent-item { min-height: 64px; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.recent-item:hover { background: #fafbf9; }
.recent-main { min-width: 0; display: flex; align-items: center; gap: 12px; }
.recent-main i { color: var(--muted-strong); font-size: 17px; }
.recent-title { overflow: hidden; color: var(--text); font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.recent-meta { margin-top: 3px; color: var(--muted); font-size: 12px; }
.recent-cell { color: var(--muted-strong); font-size: 13px; }
.recent-status { width: fit-content; padding: 5px 9px; border-radius: 999px; background: var(--primary-soft); color: var(--primary-dark); font-size: 11px; font-weight: 600; }
.recent-status.pending { background: #eef3fb; color: #35649d; }
.recent-open { min-height: auto; padding: 6px 0; color: var(--blue); background: transparent; border: 0; justify-self: start; }
.empty-state { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 24px 14px; color: var(--muted); }
.empty-state strong { display: block; margin-bottom: 4px; color: var(--text); }

.card, .panel, .recording-wrap, .results-main, .timeline, .results-side, .pay-wrap, .activate-wrap, .account-wrap, .import-wrap {
  padding: clamp(20px, 3vw, 32px);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}
.card { margin-top: 18px; }
.card .card { box-shadow: none; }
.card-title { margin-bottom: 14px; color: var(--text); font-size: 17px; font-weight: 700; }
.grid, .feature-grid, .plans, .source-grid, .result-grid, .meta-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.actions-row, .history-actions, .recording-actions, .links-row, .toggle, .tabs, .diff-legend { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.switches { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.chip, .badge, .speaker-tag { min-height: 34px; padding: 7px 11px; border: 1px solid var(--line-strong); border-radius: 999px; background: #fff; color: var(--muted-strong); font-size: 12px; }
.chip.active { border-color: #81cda0; background: var(--primary-soft); color: var(--primary-dark); }
.history-screen { margin-top: 0; }
.history-head { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; }
.history-head h2 { margin: 0; }
.history-import-cta { margin-left: auto; }
.history-controls { display: grid; grid-template-columns: 1fr 220px; gap: 12px; margin: 20px 0 12px; }
.history-item, .background-job, .speaker, .time { margin: 8px 0; padding: 12px; border: 1px solid var(--line); border-radius: 7px; background: #fff; }
.history-item { display: flex; align-items: center; gap: 10px; }
.history-item-main { min-width: 0; flex: 1; display: block; text-align: left; color: var(--text); background: transparent; border: 0; }
.history-item-title { font-weight: 700; }
.history-item-sub { margin-top: 4px; color: var(--muted); font-size: 12px; }
.history-check { width: 17px; min-height: 17px; }

.results-layout { display: grid; grid-template-columns: 230px minmax(0, 1fr) 270px; gap: 16px; align-items: start; }
.tabs { border-bottom: 1px solid var(--line); margin-bottom: 14px; overflow-x: auto; }
.tabs button { color: var(--muted); background: transparent; border: 0; border-bottom: 2px solid transparent; border-radius: 0; white-space: nowrap; }
.tabs button.active { color: var(--primary-dark); border-bottom-color: var(--primary); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }
.result-record-title, .timer { margin-bottom: 18px; color: var(--text); font-size: 25px; font-weight: 700; }
.preview-card { margin: 18px 0; }
.preview-head, .recording-head { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
video, audio { width: 100%; max-height: 520px; border-radius: 7px; background: #10131b; }
.levels { display: grid; gap: 10px; margin: 18px 0; }
.bar, .progress { height: 9px; overflow: hidden; border-radius: 999px; background: #e6e9e4; }
.bar span, .progress-bar { display: block; height: 100%; width: 0; background: var(--primary); transition: width .2s ease; }
.notes { margin-top: 24px; }
.notes-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.diff-row { padding: 7px 9px; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; white-space: pre-wrap; }
.diff-row-add { background: var(--primary-soft); }
.diff-row-del { background: #fff0f2; }

.site-footer { padding: 40px clamp(24px, 4vw, 64px) 28px; background: #111a2c; color: #aeb8ca; }
.footer-grid { max-width: 1328px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.footer-grid > div { display: grid; align-content: start; gap: 9px; }
.footer-grid a { color: #cbd3e0; text-decoration: none; }
.footer-grid a:hover { color: #fff; }
.footer-title { color: #fff !important; font-weight: 700; }
.footer-copy { max-width: 1328px; margin: 34px auto 0; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.12); font-size: 12px; }

@media (max-width: 1120px) {
  .topbar { align-items: flex-start; }
  .top-actions { flex-wrap: wrap; gap: 10px 16px; }
  .main-nav { order: 3; width: 100%; justify-content: flex-end; gap: 18px; }
  .start-workspace { grid-template-columns: minmax(0, 1fr) 315px; gap: 30px; }
  .start-aside { padding-left: 28px; }
  .source-row { grid-template-columns: 38px 1fr; }
  .source-options, .recognition-options { grid-column: 2; justify-self: start; justify-content: flex-start; }
  .compact-toggle { grid-column: 2; }
  .recent-table-head, .recent-item { grid-template-columns: minmax(220px, 1.6fr) 130px 100px 130px 70px; gap: 12px; }
  .results-layout { grid-template-columns: 210px minmax(0, 1fr); }
  .results-side { grid-column: 1 / -1; }
}

@media (max-width: 820px) {
  .topbar { position: static; flex-wrap: wrap; padding: 12px 20px; }
  .top-actions { width: 100%; justify-content: space-between; }
  .main-nav { order: 3; justify-content: flex-start; overflow-x: auto; }
  .main-nav .ghost { min-height: 40px; white-space: nowrap; }
  .account-shortcut span { display: none; }
  .shell { width: min(100% - 32px, 720px); padding-top: 30px; }
  .start-workspace { grid-template-columns: 1fr; }
  .start-aside { padding: 28px 0 0; border-left: 0; border-top: 1px solid var(--line); }
  .record-actions { grid-template-columns: 1fr; }
  .recent-table-head { display: none; }
  .recent-item { grid-template-columns: 1fr auto; gap: 8px 14px; padding: 14px 4px; }
  .recent-item .recent-cell { grid-column: 1; }
  .recent-item .recent-status, .recent-item .recent-open { grid-column: 2; }
  .history-controls { grid-template-columns: 1fr; }
  .results-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  body { font-size: 14px; }
  .brand-sub { display: none; }
  .main-nav { gap: 14px; }
  .sub-status { margin-left: auto; }
  .shell { width: min(100% - 24px, 520px); padding-top: 24px; }
  h1 { font-size: 36px; }
  .start-intro p { font-size: 15px; }
  .source-row { grid-template-columns: 32px 1fr; gap: 12px; }
  .source-options { max-width: 100%; overflow-x: auto; }
  .source-options .chip { padding-inline: 10px; }
  .camera-settings { grid-template-columns: 1fr; padding-left: 44px; }
  .source-details summary { margin-left: 44px; }
  .legal-consent { align-items: flex-start; }
  .recent-item { grid-template-columns: 1fr; }
  .recent-item .recent-status, .recent-item .recent-open { grid-column: 1; }
  .empty-state { align-items: flex-start; flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* Sidebar + editorial illustration direction */
@media (min-width: 901px) {
  body { padding-left: 230px; }

  .topbar {
    position: fixed;
    inset: 0 auto 0 0;
    width: 230px;
    min-height: 100vh;
    padding: 24px 18px 20px;
    align-items: stretch;
    justify-content: flex-start;
    flex-direction: column;
    gap: 22px;
    background: #f8faf9;
    border-right: 1px solid var(--line);
    border-bottom: 0;
    backdrop-filter: none;
  }

  .topbar .brand { padding: 0 4px 20px; border-bottom: 1px solid var(--line); }
  .topbar .logo { width: 42px; height: 42px; }
  .topbar .brand-name { font-size: 21px; }
  .topbar .brand-sub { max-width: 130px; line-height: 1.35; }
  .top-actions { min-height: 0; flex: 1; width: 100%; align-items: stretch; justify-content: flex-start; flex-direction: column; gap: 10px; }
  .main-nav { width: 100%; align-items: stretch; flex-direction: column; gap: 6px; }
  .main-nav .ghost { width: 100%; min-height: 48px; padding: 11px 14px; justify-content: flex-start; border: 0; border-radius: 7px; color: var(--muted-strong); text-align: left; }
  .main-nav .ghost:hover, .main-nav .ghost.active { color: var(--primary-dark); border: 0; background: var(--primary-soft); }
  .main-nav .ghost i { width: 18px; font-size: 17px; text-align: center; }
  .sub-status { position: absolute; top: 31px; right: 15px; padding-inline: 8px; }
  .sub-status { display: none; }
  .account-shortcut { width: 100%; margin-top: auto; justify-content: flex-start; border-top: 1px solid var(--line); border-radius: 0; padding: 16px 8px 4px; }
}

.shell { width: min(1190px, calc(100% - 48px)); padding-top: 30px; }
.start-workspace { grid-template-columns: minmax(0, 1fr) 360px; gap: 32px; }
.start-intro { margin-bottom: 24px; }
.start-intro .page-date { margin-bottom: 13px; color: var(--muted); font-size: 14px; }
.start-intro h1 { max-width: 760px; margin-bottom: 10px; font-size: clamp(38px, 3.7vw, 51px); line-height: 1.08; }
.start-intro p { font-size: 16px; }

.recording-console { padding: 16px; background: #f4f6f5; border: 1px solid #edf0ed; border-radius: 8px; }
.console-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.console-source { min-width: 0; padding: 0 13px; border-right: 1px solid var(--line); }
.console-source:first-child { padding-left: 0; }
.console-source:last-child { padding-right: 0; border-right: 0; }
.console-label { display: flex; align-items: center; gap: 8px; margin-bottom: 11px; color: var(--text); font-size: 13px; }
.console-label i { font-size: 17px; }
.console-source .source-options { width: 100%; display: grid; gap: 0; border-radius: 7px; }
.console-source .source-options[data-group="video"] { grid-template-columns: 1fr 1fr; }
.console-source .source-options[data-group="audio"], .console-source .source-options[data-group="lang"] { grid-template-columns: repeat(3, 1fr); }
.console-source .source-options[data-group="format"] { grid-template-columns: 1fr 1fr; }
.console-source .source-options .chip { min-width: 0; width: 100%; padding: 7px 5px; font-size: 10.5px; }
.console-details { margin-top: 14px; border-top: 1px solid var(--line); }
.console-details summary { width: fit-content; padding: 10px 0 0; color: var(--muted); cursor: pointer; font-size: 12px; }
.console-details .camera-settings { padding: 14px 0 0; }
.console-details .compact-toggle { align-self: end; min-height: 42px; }
.recording-console .record-primary { width: 100%; min-height: 58px; margin-top: 18px; font-size: 18px; }
.console-meta { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 5px 14px; align-items: center; margin-top: 12px; }
.console-meta .legal-consent { grid-column: 1; margin: 0; }
.console-meta .legal-links { grid-column: 1; display: flex; gap: 12px; padding-left: 31px; font-size: 12px; }
.console-meta .hotkeys { grid-column: 2; grid-row: 1 / span 2; margin: 0; white-space: nowrap; }
.secondary-actions { display: none; gap: 9px; margin-top: 10px; }
.secondary-actions .secondary { min-height: 36px; padding: 7px 11px; font-size: 12px; }
#record-start-status.status-success { display: none; }

.meeting-illustration { margin: 22px 0 0; padding-top: 18px; border-top: 1px solid var(--line); }
.meeting-illustration img { display: block; width: 100%; height: 292px; object-fit: contain; object-position: center bottom; background: #fff; }
.meeting-illustration figcaption { display: grid; gap: 6px; margin-top: 5px; }
.meeting-illustration figcaption strong { font-size: 20px; color: var(--text); letter-spacing: -0.02em; }
.meeting-illustration figcaption span { max-width: 690px; color: var(--muted); line-height: 1.55; }

.start-aside { padding-left: 24px; border-left: 1px solid var(--line); }
.start-aside .meeting-panel { padding: 18px; margin-bottom: 20px; background: #f1faf4; border: 1px solid #e2f2e7; border-radius: 8px; }
.start-aside .section-heading { margin-bottom: 12px; }
.start-aside .calendar-list { min-height: 78px; margin-bottom: 10px; padding: 14px; background: #f8faf8; }
.start-aside .recent-section { margin-top: 0; padding-top: 20px; border-top: 1px solid var(--line); }
.start-aside .recent-heading { align-items: center; margin-bottom: 8px; }
.start-aside .recent-heading h2 { margin: 0; font-size: 20px; }
.start-aside .recent-table { border-top: 1px solid var(--line); }
.start-aside .recent-table-head { display: none; }
.start-aside .recent-item { min-height: 78px; padding: 11px 0; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto auto; gap: 4px 10px; border-radius: 0; }
.start-aside .recent-main { grid-column: 1; grid-row: 1; gap: 8px; }
.start-aside .recent-main i { display: none; }
.start-aside .recent-title { font-size: 14px; }
.start-aside .recent-meta { font-size: 11px; }
.start-aside .recent-cell { font-size: 11px; }
.start-aside .recent-item > .recent-cell:nth-child(2) { grid-column: 1; grid-row: 2; }
.start-aside .recent-item > .recent-cell:nth-child(3) { grid-column: 1; grid-row: 2; margin-left: 104px; }
.start-aside .recent-status { grid-column: 2; grid-row: 1; align-self: start; font-size: 10px; }
.start-aside .recent-open { grid-column: 2; grid-row: 2; justify-self: end; font-size: 11px; }
.start-aside .empty-state { padding: 18px 0; flex-direction: column; align-items: flex-start; gap: 10px; font-size: 13px; }
.start-aside .readiness-panel { display: grid; grid-template-columns: 32px 1fr; gap: 12px; margin-top: 20px; padding-top: 20px; }
.start-aside .readiness-panel .section-heading { margin-bottom: 6px; }
.start-aside .readiness-panel h2 { font-size: 15px; }
.start-aside .tip-icon { color: var(--text); font-size: 24px; }
.start-aside .readiness-tip { margin: 0; color: var(--muted-strong); font-weight: 400; line-height: 1.5; }

@media (max-width: 1180px) and (min-width: 901px) {
  .start-workspace { grid-template-columns: minmax(0, 1fr) 310px; gap: 24px; }
  .console-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 0; }
  .console-source:nth-child(2) { border-right: 0; }
  .console-source:nth-child(3) { padding-left: 0; }
  .start-intro h1 { font-size: 42px; }
}

@media (max-width: 900px) {
  body { padding-left: 0; }
  .topbar { position: static; min-height: auto; padding: 12px 20px; flex-direction: row; }
  .top-actions { width: 100%; flex-direction: row; }
  .main-nav { width: 100%; flex-direction: row; overflow-x: auto; }
  .main-nav .ghost { width: auto; min-height: 40px; white-space: nowrap; }
  .start-workspace { grid-template-columns: 1fr; }
  .start-aside { padding: 26px 0 0; border-left: 0; border-top: 1px solid var(--line); }
  .meeting-illustration img { height: auto; max-height: 330px; }
}

@media (max-width: 680px) {
  .console-grid { grid-template-columns: 1fr 1fr; gap: 16px 0; }
  .console-source:nth-child(2) { border-right: 0; }
  .console-source:nth-child(3) { padding-left: 0; }
  .console-meta { grid-template-columns: 1fr; }
  .console-meta .hotkeys { grid-column: 1; grid-row: auto; padding-left: 31px; }
  .secondary-actions { flex-wrap: wrap; }
}

@media (max-width: 470px) {
  .console-grid { grid-template-columns: 1fr; }
  .console-source { padding: 13px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .console-source:first-child { padding-top: 0; }
  .console-source:last-child { border-bottom: 0; }
  .console-details .camera-settings { padding-left: 0; }
  .meeting-illustration img { max-height: 250px; }
}

/* Calm motion system */
:root {
  --motion-fast: 180ms;
  --motion-base: 360ms;
  --motion-slow: 620ms;
  --motion-ease: cubic-bezier(.22, 1, .36, 1);
}

.screen.active {
  animation: screen-enter var(--motion-base) var(--motion-ease) both;
}

#start.active .start-intro {
  animation: content-rise 520ms var(--motion-ease) 40ms both;
}

#start.active .recording-console {
  animation: content-rise 560ms var(--motion-ease) 100ms both;
}

#start.active .meeting-illustration {
  animation: content-rise var(--motion-slow) var(--motion-ease) 170ms both;
}

#start.active .start-aside {
  animation: content-rise 560ms var(--motion-ease) 130ms both;
}

.meeting-illustration img {
  transform-origin: 50% 90%;
  animation: illustration-breathe 9s ease-in-out 900ms infinite;
}

button,
.button,
.primary,
.secondary,
.ghost,
.link,
.recent-item,
.calendar-list,
.recording-console {
  transition-duration: var(--motion-fast);
  transition-timing-function: ease-out;
}

button:not(:disabled):active,
.button:active {
  transform: translateY(0) scale(.985);
}

.record-primary {
  box-shadow: 0 8px 20px rgba(15, 159, 87, 0);
  transition: background-color var(--motion-fast) ease-out,
    border-color var(--motion-fast) ease-out,
    box-shadow var(--motion-fast) ease-out,
    transform var(--motion-fast) ease-out;
}

.record-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(15, 159, 87, .18);
}

.source-options .chip,
.tabs button,
.status-pill,
.recent-status {
  transition: color var(--motion-fast) ease-out,
    background-color var(--motion-fast) ease-out,
    border-color var(--motion-fast) ease-out,
    box-shadow var(--motion-fast) ease-out,
    transform var(--motion-fast) ease-out;
}

.source-options .chip:hover {
  transform: translateY(-1px);
}

.recent-item {
  animation: row-enter 420ms var(--motion-ease) both;
}

.recent-item:nth-child(2) { animation-delay: 45ms; }
.recent-item:nth-child(3) { animation-delay: 90ms; }
.recent-item:nth-child(4) { animation-delay: 135ms; }

.recent-item:hover {
  transform: translateX(3px);
}

.source-details[open] .camera-settings {
  animation: details-enter 300ms var(--motion-ease) both;
}

.pay-status:not(:empty) {
  animation: status-enter 260ms var(--motion-ease) both;
}

@media (min-width: 901px) {
  .topbar {
    animation: sidebar-enter 480ms var(--motion-ease) both;
  }

  .main-nav .ghost {
    transition: color var(--motion-fast) ease-out,
      background-color var(--motion-fast) ease-out,
      transform var(--motion-fast) ease-out;
  }

  .main-nav .ghost:hover {
    transform: translateX(3px);
  }
}

@keyframes screen-enter {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes content-rise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes sidebar-enter {
  from { opacity: 0; transform: translateX(-10px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes row-enter {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes details-enter {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes status-enter {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes illustration-breathe {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation: none !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    transition-delay: 0ms !important;
  }
}
