:root {
  color-scheme: light;
  --ink: #161720;
  --ink-soft: #4f5262;
  --ink-faint: #777a89;
  --paper: #f7f7f4;
  --surface: #ffffff;
  --surface-soft: #f1f1ed;
  --line: #deded8;
  --line-strong: #c9c9c1;
  --brand: #635bdf;
  --brand-dark: #4b43c1;
  --brand-soft: #ecebff;
  --purple: #8b5cf6;
  --green: #18794e;
  --green-soft: #e9f7ef;
  --orange: #b54708;
  --orange-soft: #fff1df;
  --red: #c33838;
  --red-soft: #fff0ef;
  --blue: #2563a7;
  --blue-soft: #e9f2fb;
  --shadow-sm: 0 1px 2px rgba(22, 23, 32, 0.05), 0 5px 16px rgba(22, 23, 32, 0.04);
  --shadow-md: 0 10px 36px rgba(22, 23, 32, 0.1), 0 2px 8px rgba(22, 23, 32, 0.05);
  --shadow-lg: 0 24px 80px rgba(22, 23, 32, 0.2), 0 5px 20px rgba(22, 23, 32, 0.08);
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --max-width: 1180px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

body.dialog-open {
  overflow: hidden;
}

button,
input,
select {
  font: inherit;
}

button,
a,
label[for] {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
}

button:not(:disabled),
a,
label[for] {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

a {
  color: inherit;
  text-decoration: none;
}

svg {
  display: block;
  width: 1.25em;
  height: 1.25em;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

[hidden] {
  display: none !important;
}

.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;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 12px;
  z-index: 1000;
  padding: 9px 14px;
  border-radius: var(--radius-sm);
  background: var(--ink);
  color: white;
  transform: translateY(-150%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

:focus-visible {
  outline: 3px solid rgba(99, 91, 223, 0.3);
  outline-offset: 3px;
}

.app-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid rgba(222, 222, 216, 0.85);
  background: rgba(247, 247, 244, 0.88);
  backdrop-filter: blur(18px);
}

.header-inner,
.page-shell {
  width: min(calc(100% - 40px), var(--max-width));
  margin: 0 auto;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 760;
  letter-spacing: -0.03em;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 10px;
  background: var(--ink);
  color: white;
}

.brand-mark svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke-width: 1.65;
}

.brand-mark .brand-wave {
  stroke: #b5ffb1;
  stroke-width: 1.45;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 10px;
}

.account-menu-wrap {
  position: relative;
}

.account-button {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 42px;
  max-width: 230px;
  padding: 4px 9px 4px 5px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: var(--shadow-sm);
  text-align: left;
  transition: border-color 150ms ease, background 150ms ease, box-shadow 150ms ease;
}

.account-button:hover,
.account-button[aria-expanded="true"] {
  border-color: var(--line-strong);
  background: var(--surface);
  box-shadow: 0 5px 18px rgba(22, 23, 32, 0.08);
}

.account-avatar {
  display: grid;
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 10px;
  background: linear-gradient(145deg, var(--brand), #8b5cf6);
  color: white;
  font-size: 10px;
  font-weight: 820;
  letter-spacing: 0.02em;
}

.account-button-copy {
  display: grid;
  min-width: 0;
  line-height: 1.2;
}

.account-button-copy strong,
.account-button-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-button-copy strong { font-size: 11px; }
.account-button-copy small { margin-top: 2px; color: var(--ink-faint); font-size: 9px; }
.account-chevron { flex: 0 0 auto; width: 13px; height: 13px; color: var(--ink-faint); }

.account-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 60;
  width: 280px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--surface);
  box-shadow: var(--shadow-md);
  animation: account-menu-in 140ms ease-out;
}

.account-menu-identity {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 16px;
}

.account-avatar-large { width: 40px; height: 40px; border-radius: 12px; font-size: 12px; }
.account-menu-identity > span:last-child { display: grid; min-width: 0; }
.account-menu-identity strong,
.account-menu-identity small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-menu-identity strong { font-size: 13px; }
.account-menu-identity small { margin-top: 2px; color: var(--ink-faint); font-size: 10px; }

.account-privacy-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0 10px 8px;
  padding: 10px;
  border-radius: 9px;
  background: var(--green-soft);
  color: #315b47;
  font-size: 10px;
  line-height: 1.45;
}

.account-privacy-note svg { flex: 0 0 auto; width: 14px; height: 14px; margin-top: 1px; color: var(--green); }

.account-menu-action {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  min-height: 44px;
  padding: 10px 15px;
  border: 0;
  border-top: 1px solid var(--line);
  background: white;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 680;
  text-align: left;
}

.account-menu-action:hover { background: var(--surface-soft); color: var(--red); }
.account-menu-action svg { width: 17px; height: 17px; }

.nav-link {
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 650;
}

.nav-link:hover,
.nav-link.is-active {
  background: var(--surface-soft);
  color: var(--ink);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 9px 16px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-weight: 690;
  line-height: 1.2;
  transition: border-color 150ms ease, background 150ms ease, color 150ms ease, transform 150ms ease, box-shadow 150ms ease;
}

.button:not(:disabled):active {
  transform: translateY(1px);
}

.button svg {
  width: 18px;
  height: 18px;
}

.button-primary {
  border-color: var(--brand);
  background: var(--brand);
  color: #fff;
  box-shadow: 0 2px 8px rgba(99, 91, 223, 0.25);
}

.button-primary:not(:disabled):hover {
  border-color: var(--brand-dark);
  background: var(--brand-dark);
  box-shadow: 0 5px 15px rgba(99, 91, 223, 0.28);
}

.button-secondary {
  border-color: var(--line-strong);
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}

.button-secondary:not(:disabled):hover {
  border-color: #aaa9a0;
  background: #fafaf8;
}

.button-ghost {
  border-color: transparent;
  background: transparent;
  color: var(--ink-soft);
}

.button-ghost:not(:disabled):hover {
  background: var(--surface-soft);
  color: var(--ink);
}

.button-danger {
  border-color: var(--red);
  background: var(--red);
  color: white;
  box-shadow: 0 2px 8px rgba(195, 56, 56, 0.2);
}

.button-danger:hover {
  background: #a72e2e;
}

.button-compact {
  min-height: 38px;
  padding: 8px 13px;
  font-size: 14px;
}

.button-large {
  min-height: 50px;
  padding: 13px 20px;
}

.button-small {
  min-height: 34px;
  padding: 7px 11px;
  font-size: 13px;
}

.record-dot {
  width: 9px;
  height: 9px;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  background: white;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.18);
}

/* Authentication */
.auth-view {
  position: relative;
  min-height: calc(100dvh - 69px);
  overflow: hidden;
  background:
    radial-gradient(circle at 8% 13%, rgba(99, 91, 223, 0.12), transparent 28%),
    radial-gradient(circle at 94% 92%, rgba(24, 121, 78, 0.1), transparent 24%),
    var(--paper);
}

.auth-view::before,
.auth-view::after {
  position: absolute;
  z-index: 0;
  color: rgba(99, 91, 223, 0.2);
  font-size: 32px;
  content: "✦";
  pointer-events: none;
}

.auth-view::before { top: 14%; left: 7%; }
.auth-view::after { right: 7%; bottom: 10%; color: rgba(24, 121, 78, 0.22); font-size: 22px; }

.auth-shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(390px, 470px);
  align-items: center;
  gap: clamp(54px, 8vw, 120px);
  width: min(calc(100% - 40px), 1080px);
  min-height: calc(100dvh - 69px);
  margin: 0 auto;
  padding: 60px 0;
}

.auth-story h1 {
  max-width: 610px;
  margin: 0;
  font-size: clamp(48px, 5.4vw, 72px);
  font-weight: 720;
  letter-spacing: -0.062em;
  line-height: 0.99;
}

.auth-story h1 span { color: var(--brand); }

.auth-story > p {
  max-width: 560px;
  margin: 23px 0 0;
  color: var(--ink-soft);
  font-size: 17px;
  line-height: 1.67;
}

.auth-trust-list {
  display: grid;
  gap: 14px;
  margin-top: 34px;
}

.auth-trust-list > div {
  display: flex;
  align-items: center;
  gap: 12px;
}

.auth-trust-list > div > span:last-child { display: grid; }
.auth-trust-list strong { font-size: 12px; }
.auth-trust-list small { margin-top: 1px; color: var(--ink-faint); font-size: 10px; }

.auth-trust-icon {
  display: grid;
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid rgba(99, 91, 223, 0.14);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--brand);
  box-shadow: var(--shadow-sm);
}

.auth-trust-icon svg { width: 18px; height: 18px; }

.auth-card-wrap { position: relative; }

.auth-card-wrap::before {
  position: absolute;
  inset: -14px 28px 14px -14px;
  z-index: -1;
  border: 1px solid rgba(99, 91, 223, 0.16);
  border-radius: 25px;
  background: rgba(236, 235, 255, 0.55);
  content: "";
  transform: rotate(-1.4deg);
}

.auth-card {
  padding: clamp(27px, 4vw, 38px);
  border: 1px solid rgba(222, 222, 216, 0.92);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 24px 70px rgba(22, 23, 32, 0.13), 0 2px 9px rgba(22, 23, 32, 0.05);
  backdrop-filter: blur(14px);
}

.auth-card-heading { text-align: center; }

.auth-card-mark {
  display: grid;
  width: 46px;
  height: 46px;
  margin: 0 auto 16px;
  place-items: center;
  border-radius: 14px;
  background: var(--ink);
  color: white;
  box-shadow: 0 8px 22px rgba(22, 23, 32, 0.18);
}

.auth-card-mark svg { width: 29px; height: 29px; stroke-width: 1.6; }
.auth-card-mark .brand-wave { stroke: #b5ffb1; stroke-width: 1.45; }
.auth-card-heading .eyebrow { margin-bottom: 7px; }

.auth-card-heading h2 {
  margin: 0;
  font-size: 30px;
  font-weight: 740;
  letter-spacing: -0.045em;
  line-height: 1.1;
}

.auth-card-heading p { margin: 8px 0 0; color: var(--ink-faint); font-size: 12px; }

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
  margin-top: 25px;
  padding: 3px;
  border-radius: 11px;
  background: var(--surface-soft);
}

.auth-tab {
  min-height: 38px;
  padding: 7px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ink-faint);
  font-size: 11px;
  font-weight: 720;
}

.auth-tab:hover { color: var(--ink); }
.auth-tab.is-active { background: white; color: var(--ink); box-shadow: var(--shadow-sm); }

.auth-form {
  display: grid;
  gap: 16px;
  margin-top: 22px;
}

.auth-form .field-group { gap: 6px; }
.auth-form .field-group label { color: #373946; font-size: 11px; }
.auth-form .field-group input { min-height: 47px; background: #fdfdfc; }
.auth-form .field-group input:focus { background: white; }

.field-hint {
  color: var(--ink-faint);
  font-size: 9px;
}

.auth-error {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 10px 11px;
  border: 1px solid #f0c4c1;
  border-radius: 9px;
  background: var(--red-soft);
  color: #833232;
  font-size: 10px;
  line-height: 1.45;
}

.auth-error svg { flex: 0 0 auto; width: 15px; height: 15px; margin-top: 1px; color: var(--red); }
.auth-submit { width: 100%; margin-top: 2px; }

.auth-switch {
  margin: 17px 0 0;
  color: var(--ink-faint);
  font-size: 11px;
  text-align: center;
}

.auth-switch button {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--brand);
  font-weight: 750;
}

.auth-switch button:hover { color: var(--brand-dark); text-decoration: underline; }

.auth-local-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--ink-faint);
  font-size: 9px;
  line-height: 1.5;
}

.auth-local-note svg { flex: 0 0 auto; width: 14px; height: 14px; color: var(--green); }

.dashboard-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(380px, 0.95fr);
  align-items: center;
  gap: clamp(40px, 8vw, 100px);
  min-height: 540px;
  padding: 70px 0 82px;
}

.eyebrow {
  display: block;
  margin-bottom: 10px;
  color: var(--brand);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.11em;
  line-height: 1.2;
  text-transform: uppercase;
}

.hero-copy h1 {
  max-width: 690px;
  margin: 0;
  font-size: clamp(48px, 6vw, 78px);
  font-weight: 720;
  letter-spacing: -0.065em;
  line-height: 0.98;
}

.hero-copy h1 span {
  color: var(--brand);
}

.hero-copy > p:not(.privacy-note) {
  max-width: 600px;
  margin: 24px 0 0;
  color: var(--ink-soft);
  font-size: 18px;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 32px;
}

.privacy-note {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 15px 0 0;
  color: var(--ink-faint);
  font-size: 12px;
}

.privacy-note svg {
  width: 15px;
  height: 15px;
}

.hero-visual {
  position: relative;
  min-height: 380px;
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: 12% 8% 8% 10%;
  border-radius: 48% 52% 45% 55% / 56% 44% 56% 44%;
  background: linear-gradient(145deg, #e5e2ff 0%, #e8f7d9 100%);
  transform: rotate(-4deg);
}

.visual-card {
  position: absolute;
  z-index: 1;
  border: 1px solid rgba(201, 201, 193, 0.75);
  background: rgba(255, 255, 255, 0.93);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(8px);
}

.visual-card-main {
  top: 47px;
  right: 12px;
  left: 20px;
  min-height: 230px;
  padding: 22px;
  border-radius: 20px;
  transform: rotate(1.5deg);
}

.visual-card-top {
  display: flex;
  justify-content: space-between;
  color: var(--ink-faint);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.fake-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--red);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.fake-live i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--red);
}

.fake-speaker {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 30px;
}

.fake-avatar {
  display: grid;
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-size: 13px;
  font-weight: 800;
}

.fake-speaker > div {
  flex: 1;
  font-size: 13px;
  font-weight: 750;
}

.waveform {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 24px;
  margin-top: 5px;
}

.waveform i {
  width: 3px;
  height: 8px;
  border-radius: 3px;
  background: var(--brand);
}

.waveform i:nth-child(2),
.waveform i:nth-child(8) { height: 16px; }
.waveform i:nth-child(3),
.waveform i:nth-child(6) { height: 21px; }
.waveform i:nth-child(4),
.waveform i:nth-child(9) { height: 12px; }
.waveform i:nth-child(5) { height: 18px; }

.fake-caption {
  margin-top: 27px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-family: ui-serif, Georgia, serif;
  font-size: 16px;
  line-height: 1.5;
}

.visual-note {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 230px;
  padding: 13px 15px;
  border-radius: 13px;
}

.note-decision {
  right: -15px;
  bottom: 45px;
  transform: rotate(-2deg);
}

.note-action {
  bottom: 2px;
  left: -5px;
  transform: rotate(1deg);
}

.visual-icon {
  display: grid;
  flex: 0 0 auto;
  width: 31px;
  height: 31px;
  place-items: center;
  border-radius: 9px;
  font-size: 15px;
  font-weight: 800;
}

.visual-icon-green { background: var(--green-soft); color: var(--green); }
.visual-icon-orange { background: var(--orange-soft); color: var(--orange); }

.visual-note small,
.visual-note strong {
  display: block;
}

.visual-note small {
  color: var(--ink-faint);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.visual-note strong {
  margin-top: 2px;
  font-size: 12px;
}

.decorative-star {
  position: absolute;
  z-index: 2;
  color: var(--brand);
  font-size: 26px;
}

.star-one { top: 4px; right: 48px; }
.star-two { top: 118px; left: -10px; color: #e19339; font-size: 17px; }

.library-section {
  padding: 58px 0 90px;
  border-top: 1px solid var(--line);
}

.section-heading-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.section-heading-row h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 720;
  letter-spacing: -0.045em;
  line-height: 1.1;
}

.library-tools {
  display: flex;
  gap: 9px;
}

.search-control,
.select-control {
  position: relative;
  display: flex;
  align-items: center;
}

.search-control > svg {
  position: absolute;
  left: 12px;
  width: 17px;
  height: 17px;
  color: var(--ink-faint);
  pointer-events: none;
}

.search-control input,
.select-control select,
.field-group input {
  min-height: 42px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
  outline: none;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.search-control input {
  width: 220px;
  padding: 9px 12px 9px 38px;
}

.search-control input::placeholder,
.field-group input::placeholder {
  color: #96988f;
}

.search-control input:focus,
.select-control select:focus,
.field-group input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(99, 91, 223, 0.12);
}

.select-control select {
  min-width: 150px;
  padding: 9px 36px 9px 12px;
  appearance: none;
}

.select-control svg {
  position: absolute;
  right: 11px;
  width: 16px;
  height: 16px;
  color: var(--ink-faint);
  pointer-events: none;
}

.meeting-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.meeting-card {
  position: relative;
  display: flex;
  min-height: 250px;
  flex-direction: column;
  padding: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.meeting-card-clickable:hover {
  border-color: #c0beb8;
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.meeting-card-clickable:focus-within {
  border-color: var(--brand);
}

.meeting-card-link {
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
}

.meeting-card-head,
.meeting-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.meeting-card-date {
  color: var(--ink-faint);
  font-size: 12px;
  font-weight: 640;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  min-height: 25px;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1;
  text-transform: uppercase;
}

.status-badge i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.status-completed { background: var(--green-soft); color: var(--green); }
.status-processing,
.status-queued,
.status-uploading { background: var(--brand-soft); color: var(--brand-dark); }
.status-failed { background: var(--red-soft); color: var(--red); }

.status-processing i,
.status-queued i,
.status-uploading i {
  animation: pulse-dot 1.4s ease-in-out infinite;
}

.meeting-card h3 {
  margin: 22px 0 10px;
  font-size: 19px;
  font-weight: 730;
  letter-spacing: -0.025em;
  line-height: 1.25;
}

.meeting-card-summary {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.processing-card-body {
  margin: auto 0;
}

.processing-card-body h3 {
  margin-top: 10px;
}

.mini-progress {
  height: 5px;
  margin-top: 18px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--surface-soft);
}

.mini-progress span {
  display: block;
  width: 40%;
  height: 100%;
  border-radius: inherit;
  background: var(--brand);
  animation: indeterminate 1.5s ease-in-out infinite;
}

.meeting-card-footer {
  margin-top: auto;
  padding-top: 18px;
  color: var(--ink-faint);
  font-size: 12px;
}

.meeting-card-footer span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.meeting-card-footer svg {
  width: 14px;
  height: 14px;
}

.card-arrow {
  color: var(--brand);
  transition: transform 160ms ease;
}

.meeting-card:hover .card-arrow {
  transform: translateX(3px);
}

.skeleton-card {
  gap: 13px;
  pointer-events: none;
}

.skeleton {
  border-radius: 6px;
  background: linear-gradient(90deg, #eeeeea 25%, #f8f8f6 50%, #eeeeea 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite linear;
}

.skeleton-line { width: 100%; height: 13px; }
.skeleton-short { width: 30%; }
.skeleton-title { width: 70%; height: 22px; margin-top: 15px; }
.skeleton-medium { width: 52%; }

.empty-state,
.error-state {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 260px;
  padding: 36px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.55);
  text-align: center;
}

.empty-state-inner,
.error-state-inner {
  max-width: 430px;
}

.empty-icon,
.error-icon {
  display: grid;
  width: 54px;
  height: 54px;
  margin: 0 auto 17px;
  place-items: center;
  border-radius: 17px;
  background: var(--brand-soft);
  color: var(--brand);
}

.empty-icon svg,
.error-icon svg {
  width: 26px;
  height: 26px;
}

.error-icon { background: var(--red-soft); color: var(--red); }

.empty-state h3,
.error-state h3 {
  margin: 0;
  font-size: 19px;
}

.empty-state p,
.error-state p {
  margin: 7px 0 18px;
  color: var(--ink-soft);
  font-size: 14px;
}

/* Detail */
.detail-shell {
  padding-top: 34px;
  padding-bottom: 100px;
}

.back-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 27px;
  padding: 4px 0;
  border: 0;
  background: transparent;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 670;
}

.back-button:hover { color: var(--brand); }
.back-button svg { width: 17px; height: 17px; }

.detail-loading {
  display: grid;
  gap: 18px;
}

.detail-loading .skeleton:first-child { width: 16%; height: 14px; }
.detail-loading .skeleton:nth-child(2) { width: 55%; height: 46px; }
.detail-loading .skeleton:nth-child(3) { width: 34%; height: 18px; }
.detail-loading .skeleton:nth-child(4) { width: 100%; height: 330px; margin-top: 30px; }

.detail-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 32px;
}

.detail-title-group {
  min-width: 0;
}

.detail-kicker {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 11px;
}

.detail-header h1 {
  margin: 0;
  overflow-wrap: anywhere;
  font-size: clamp(34px, 5vw, 52px);
  font-weight: 720;
  letter-spacing: -0.055em;
  line-height: 1.08;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 15px;
  color: var(--ink-faint);
  font-size: 13px;
}

.detail-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.detail-meta svg { width: 15px; height: 15px; }

.detail-actions {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.action-menu-wrap {
  position: relative;
}

.more-menu {
  position: absolute;
  top: calc(100% + 7px);
  right: 0;
  z-index: 10;
  min-width: 180px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface);
  box-shadow: var(--shadow-md);
}

.more-menu button {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 9px 10px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  text-align: left;
  font-size: 13px;
  font-weight: 650;
}

.more-menu button:hover { background: var(--surface-soft); }
.more-menu .delete-meeting { color: var(--red); }
.more-menu svg { width: 16px; height: 16px; }

.processing-panel,
.failed-panel {
  display: grid;
  min-height: 430px;
  place-items: center;
  padding: 50px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  text-align: center;
}

.processing-detail-stack {
  display: grid;
  gap: 18px;
}

.processing-detail-stack .processing-panel,
.processing-detail-stack .failed-panel {
  min-height: 390px;
}

.processing-panel-inner,
.failed-panel-inner {
  width: min(100%, 540px);
}

.processing-panel h2,
.failed-panel h2 {
  margin: 24px 0 9px;
  font-size: 28px;
  letter-spacing: -0.035em;
}

.processing-panel p,
.failed-panel p {
  margin: 0 auto;
  color: var(--ink-soft);
}

.processing-orbit {
  position: relative;
  width: 88px;
  height: 88px;
  margin: 0 auto;
  border: 1px solid #d8d5ff;
  border-radius: 50%;
  background: var(--brand-soft);
}

.processing-orbit::before {
  content: "";
  position: absolute;
  inset: 25px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 25px rgba(99, 91, 223, 0.45);
}

.processing-orbit span,
.processing-orbit i,
.processing-orbit b {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand);
  transform-origin: -31px 0;
  animation: orbit 2.4s linear infinite;
}

.processing-orbit i { transform-origin: -35px 0; animation-duration: 3.1s; background: #b4adff; }
.processing-orbit b { width: 6px; height: 6px; transform-origin: -29px 0; animation-duration: 1.8s; animation-direction: reverse; background: #84ce7d; }

.processing-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-top: 30px;
}

.processing-step {
  position: relative;
  padding-top: 16px;
  color: var(--ink-faint);
  font-size: 11px;
  font-weight: 700;
}

.processing-step::before {
  content: "";
  position: absolute;
  top: 0;
  right: 3px;
  left: 3px;
  height: 4px;
  border-radius: 5px;
  background: var(--surface-soft);
}

.processing-step.is-done::before { background: var(--green); }
.processing-step.is-active { color: var(--brand); }
.processing-step.is-active::before { background: var(--brand); animation: pulse-bar 1.5s infinite; }

.failed-symbol {
  display: grid;
  width: 74px;
  height: 74px;
  margin: 0 auto;
  place-items: center;
  border-radius: 22px;
  background: var(--red-soft);
  color: var(--red);
}

.failed-symbol svg { width: 34px; height: 34px; }
.failed-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 22px;
}

.failed-panel .failed-actions .button { margin-top: 0; }

.failed-panel .retry-processing-error {
  margin-top: 16px;
  color: var(--red);
  font-weight: 650;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.55fr);
  align-items: start;
  gap: 18px;
}

.detail-main,
.detail-side {
  display: grid;
  gap: 18px;
}

.content-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.content-card-padding {
  padding: clamp(20px, 3vw, 30px);
}

.card-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.card-section-title > div:first-child {
  display: flex;
  align-items: center;
  gap: 10px;
}

.card-section-title h2,
.card-section-title h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 750;
  letter-spacing: -0.02em;
}

.section-icon {
  display: grid;
  width: 31px;
  height: 31px;
  place-items: center;
  border-radius: 9px;
  background: var(--brand-soft);
  color: var(--brand);
}

.section-icon svg { width: 17px; height: 17px; }
.section-icon-green { background: var(--green-soft); color: var(--green); }
.section-icon-orange { background: var(--orange-soft); color: var(--orange); }
.section-icon-blue { background: var(--blue-soft); color: var(--blue); }

.summary-overview {
  margin: 0;
  color: #30323d;
  font-family: ui-serif, Georgia, serif;
  font-size: 18px;
  line-height: 1.72;
}

.topic-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 22px;
}

.topic-chip {
  padding: 6px 10px;
  border: 1px solid #d9d6ff;
  border-radius: 999px;
  background: #f7f6ff;
  color: var(--brand-dark);
  font-size: 11px;
  font-weight: 720;
}

.note-list,
.decision-list,
.question-list,
.action-list,
.visual-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.note-list li,
.decision-list li,
.question-list li {
  position: relative;
  padding: 13px 0 13px 28px;
  border-top: 1px solid #ecece7;
  color: var(--ink-soft);
  font-size: 14px;
}

.note-list li:first-child,
.decision-list li:first-child,
.question-list li:first-child { border-top: 0; }

.note-list li::before {
  content: "";
  position: absolute;
  top: 21px;
  left: 6px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 4px var(--brand-soft);
}

.decision-list li::before {
  content: "\2713";
  position: absolute;
  top: 13px;
  left: 3px;
  color: var(--green);
  font-weight: 900;
}

.question-list li::before {
  content: "?";
  position: absolute;
  top: 12px;
  left: 2px;
  display: grid;
  width: 18px;
  height: 18px;
  place-items: center;
  border-radius: 50%;
  background: var(--orange-soft);
  color: var(--orange);
  font-size: 11px;
  font-weight: 850;
}

.action-item {
  padding: 14px 0;
  border-top: 1px solid #ecece7;
}

.action-item:first-child { padding-top: 0; border-top: 0; }
.action-item:last-child { padding-bottom: 0; }

.action-task {
  display: flex;
  gap: 9px;
  color: #30323d;
  font-size: 13px;
  font-weight: 680;
  line-height: 1.5;
}

.action-checkbox {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  margin-top: 2px;
  border: 1.5px solid var(--line-strong);
  border-radius: 4px;
}

.action-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 10px;
  margin: 7px 0 0 25px;
  color: var(--ink-faint);
  font-size: 11px;
}

.action-meta span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.action-meta svg { width: 13px; height: 13px; }

.empty-content {
  margin: 0;
  color: var(--ink-faint);
  font-size: 13px;
  font-style: italic;
}

.media-card {
  overflow: hidden;
  background: #12131a;
}

.media-fetch-card {
  overflow: hidden;
}

.media-fetch-card:not(.is-ready) {
  background:
    radial-gradient(circle at 92% 12%, rgba(99, 91, 223, 0.11), transparent 32%),
    var(--surface);
}

.media-fetch-shell {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 17px;
  min-height: 118px;
  padding: 22px 24px;
}

.media-fetch-shell.is-unavailable {
  grid-template-columns: auto minmax(0, 1fr);
}

.media-fetch-icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 14px;
  background: var(--brand-soft);
  color: var(--brand);
}

.media-fetch-icon svg { width: 23px; height: 23px; }
.media-fetch-icon.is-preparing svg { animation: spin 1.1s linear infinite; }

.media-fetch-copy { min-width: 0; }

.media-fetch-copy h2 {
  margin: 0;
  font-size: 17px;
  font-weight: 750;
  letter-spacing: -0.02em;
}

.media-fetch-copy p {
  max-width: 590px;
  margin: 4px 0 0;
  color: var(--ink-faint);
  font-size: 12px;
  line-height: 1.55;
}

.media-fetch-copy .media-fetch-error {
  margin-top: 7px;
  color: var(--red);
  font-weight: 650;
}

.meeting-video {
  display: block;
  width: 100%;
  max-height: 460px;
  background: #12131a;
}

.meeting-audio {
  display: block;
  width: calc(100% - 32px);
  margin: 0 16px;
  padding: 24px 0;
  background: #12131a;
}

.media-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 16px;
  background: var(--surface);
  color: var(--ink-faint);
  font-size: 11px;
}

.visual-item {
  display: grid;
  grid-template-columns: 62px 1fr;
  gap: 11px;
  padding: 11px 0;
  border-top: 1px solid #ecece7;
}

.visual-item:first-child { border-top: 0; padding-top: 0; }
.visual-item:last-child { padding-bottom: 0; }

.visual-timestamp {
  align-self: start;
  padding: 4px 6px;
  border: 0;
  border-radius: 6px;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 11px;
  font-weight: 760;
}

.visual-context-copy {
  min-width: 0;
}

.visual-thumb {
  display: block;
  width: 100%;
  max-height: 160px;
  margin-bottom: 9px;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}

.visual-item p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.5;
}

.transcript-card {
  grid-column: 1 / -1;
  margin-top: 18px;
}

.transcript-header {
  padding-bottom: 21px;
  border-bottom: 1px solid var(--line);
}

.transcript-heading-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.transcript-heading-row h2 {
  margin: 0;
  font-size: 25px;
  letter-spacing: -0.035em;
}

.transcript-heading-row p {
  margin: 4px 0 0;
  color: var(--ink-faint);
  font-size: 12px;
}

.speaker-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 17px;
}

.speaker-chip {
  display: inline-flex;
  position: relative;
  z-index: 2;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: white;
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 680;
}

.speaker-chip:hover { border-color: var(--speaker-color); color: var(--ink); }
.speaker-chip i { width: 8px; height: 8px; border-radius: 50%; background: var(--speaker-color); }
.speaker-chip svg { width: 12px; height: 12px; color: var(--ink-faint); }

.transcript-list {
  display: grid;
  gap: 0;
  margin-top: 4px;
}

.transcript-segment {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 23px;
  padding: 20px 0;
  border-bottom: 1px solid #ecece7;
}

.transcript-segment:last-child { border-bottom: 0; padding-bottom: 0; }

.segment-meta {
  min-width: 0;
}

.segment-speaker {
  display: block;
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: transparent;
  color: var(--speaker-color);
  font-size: 12px;
  font-weight: 780;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.segment-speaker:hover { text-decoration: underline; }

.segment-time {
  position: relative;
  z-index: 2;
  display: inline-flex;
  margin-top: 5px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink-faint);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.segment-time:hover { color: var(--brand); }

.segment-text {
  margin: 0;
  color: #3d3f4a;
  font-size: 14px;
  line-height: 1.68;
}

/* Dialogs and capture */
dialog {
  color: var(--ink);
}

dialog::backdrop {
  background: rgba(18, 19, 26, 0.58);
  backdrop-filter: blur(5px);
}

.recorder-dialog {
  width: min(760px, calc(100% - 28px));
  max-height: calc(100dvh - 28px);
  padding: 0;
  overflow: auto;
  border: 0;
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
}

.recorder-dialog[open],
.rename-dialog[open] {
  animation: dialog-in 180ms ease-out;
}

.dialog-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 28px 18px;
  border-bottom: 1px solid var(--line);
}

.dialog-header h2,
.small-dialog-header h2 {
  margin: 0;
  font-size: 26px;
  font-weight: 730;
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.dialog-header .eyebrow,
.small-dialog-header .eyebrow {
  margin-bottom: 6px;
}

.icon-button {
  display: grid;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  padding: 0;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: var(--ink-soft);
}

.icon-button:hover { background: var(--surface-soft); color: var(--ink); }
.icon-button svg { width: 19px; height: 19px; }

.recorder-content {
  padding: 22px 28px 28px;
}

.analysis-mode-note {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: -2px 0 18px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-soft);
}

.analysis-mode-note .mode-dot {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ink-faint);
}

.analysis-mode-note.is-live { border-color: #cde8d8; background: var(--green-soft); }
.analysis-mode-note.is-live .mode-dot { background: var(--green); }
.analysis-mode-note.is-demo { border-color: #f0d1a8; background: var(--orange-soft); }
.analysis-mode-note.is-demo .mode-dot { background: var(--orange); }
.analysis-mode-note strong,
.analysis-mode-note small { display: block; }
.analysis-mode-note strong { font-size: 12px; }
.analysis-mode-note small { margin-top: 1px; color: var(--ink-soft); font-size: 10px; }

.field-group {
  display: grid;
  gap: 7px;
}

.field-group label {
  font-size: 12px;
  font-weight: 750;
}

.field-group input {
  width: 100%;
  min-height: 48px;
  padding: 11px 13px;
}

.consent-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 14px 0 20px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fafaf8;
}

.consent-card:has(input:checked) {
  border-color: #c8c4ff;
  background: #f7f6ff;
}

.consent-card input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.custom-checkbox {
  display: grid;
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  margin-top: 1px;
  place-items: center;
  border: 1.5px solid var(--line-strong);
  border-radius: 5px;
  background: white;
  color: white;
}

.custom-checkbox svg { width: 14px; height: 14px; stroke-width: 2.5; opacity: 0; }
.consent-card input:checked + .custom-checkbox { border-color: var(--brand); background: var(--brand); }
.consent-card input:checked + .custom-checkbox svg { opacity: 1; }
.consent-card input:focus-visible + .custom-checkbox { outline: 3px solid rgba(99, 91, 223, 0.25); outline-offset: 2px; }
.consent-card strong,
.consent-card small { display: block; }
.consent-card strong { font-size: 12px; }
.consent-card small { margin-top: 3px; color: var(--ink-faint); font-size: 10px; line-height: 1.45; }

.permission-panel {
  margin: 0 0 20px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fafaf8;
}

.permission-panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.permission-panel-header .eyebrow { margin-bottom: 3px; font-size: 8px; }
.permission-panel-header h3 { margin: 0; font-size: 14px; letter-spacing: -0.01em; }

.permission-refresh {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex: 0 0 auto;
  padding: 5px 7px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--brand);
  font-size: 10px;
  font-weight: 750;
}

.permission-refresh:hover { background: var(--brand-soft); }
.permission-refresh:disabled { color: var(--ink-faint); }
.permission-refresh svg { width: 13px; height: 13px; }

.permission-intro {
  margin: 7px 0 12px;
  color: var(--ink-faint);
  font-size: 10px;
  line-height: 1.5;
}

.permission-list {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
}

.permission-row {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 9px 11px;
}

.permission-row + .permission-row { border-top: 1px solid var(--line); }

.permission-icon {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--ink-soft);
}

.permission-icon svg { width: 15px; height: 15px; }
.permission-copy { min-width: 0; }
.permission-copy strong,
.permission-copy small { display: block; }
.permission-copy strong { font-size: 11px; }
.permission-copy small { margin-top: 2px; color: var(--ink-faint); font-size: 9px; line-height: 1.4; }

.permission-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  max-width: 130px;
  padding: 4px 7px;
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--ink-soft);
  font-size: 9px;
  font-weight: 780;
  line-height: 1.2;
  text-align: right;
}

.permission-status::before {
  content: "";
  flex: 0 0 auto;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--line-strong);
}

.permission-status.is-ready { background: var(--green-soft); color: var(--green); }
.permission-status.is-ready::before { background: var(--green); }
.permission-status.is-action { background: var(--brand-soft); color: var(--brand); }
.permission-status.is-action::before { background: var(--brand); }
.permission-status.is-warning { background: var(--orange-soft); color: var(--orange); }
.permission-status.is-warning::before { background: var(--orange); }
.permission-status.is-blocked { background: var(--red-soft); color: var(--red); }
.permission-status.is-blocked::before { background: var(--red); }
.permission-status.is-checking::before { animation: pulse-dot 1.3s infinite; }

.permission-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 10px;
}

.screen-permission-help {
  margin-top: 10px;
  border-radius: 9px;
  background: #f3f2ff;
  color: var(--ink-soft);
  font-size: 10px;
}

.screen-permission-help summary {
  padding: 9px 11px;
  cursor: pointer;
  color: var(--brand);
  font-weight: 750;
  list-style-position: inside;
}

.screen-permission-help > div { padding: 0 12px 12px; }
.screen-permission-help p { margin: 0; line-height: 1.5; }
.screen-permission-help ol { margin: 8px 0; padding-left: 18px; line-height: 1.55; }
.screen-permission-help a { color: var(--brand); font-weight: 750; }

.capture-options {
  display: grid;
  gap: 10px;
}

.capture-option {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 82px;
  padding: 14px 15px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface);
  text-align: left;
  transition: border-color 150ms ease, background 150ms ease, transform 150ms ease;
}

.capture-option:not(:disabled):hover {
  border-color: var(--brand);
  background: #fafaff;
}

.capture-option-icon {
  display: grid;
  flex: 0 0 auto;
  width: 45px;
  height: 45px;
  place-items: center;
  border-radius: 12px;
  background: var(--brand-soft);
  color: var(--brand);
}

.capture-option-icon svg { width: 23px; height: 23px; }
.capture-option > span:nth-child(2) { flex: 1; }
.capture-option strong,
.capture-option small { display: block; }
.capture-option strong { font-size: 14px; }
.capture-option small { margin-top: 3px; color: var(--ink-faint); font-size: 11px; }
.option-arrow { flex: 0 0 auto; color: var(--ink-faint); }

.upload-option {
  position: relative;
}

.upload-option input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.upload-option:has(input:focus-visible) {
  outline: 3px solid rgba(99, 91, 223, 0.3);
  outline-offset: 3px;
}

.option-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink-faint);
  font-size: 10px;
  text-transform: uppercase;
}

.option-divider::before,
.option-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.capture-requirements {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 20px;
  margin-top: 17px;
  color: var(--ink-faint);
  font-size: 10px;
}

.capture-requirements span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.capture-requirements svg { width: 14px; height: 14px; }

.headphone-tip {
  margin: 9px 0 0;
  color: var(--ink-faint);
  font-size: 10px;
  text-align: center;
}

.recording-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 13px;
}

.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--red);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.live-badge i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red);
  animation: pulse-dot 1.3s infinite;
}

.recording-timer {
  color: var(--ink);
  font-size: 21px;
  font-weight: 740;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.signal-indicators {
  display: flex;
  gap: 9px;
  color: var(--ink-faint);
  font-size: 9px;
}

.signal-indicators span { display: inline-flex; align-items: center; gap: 4px; }
.signal-indicators i { width: 6px; height: 6px; border-radius: 50%; background: var(--line-strong); }
.signal-indicators .is-on { color: var(--green); }
.signal-indicators .is-on i { background: var(--green); }
.signal-indicators .is-warning { color: var(--orange); }
.signal-indicators .is-warning i { background: var(--orange); }

.preview-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 13px;
  background: #171820;
}

.preview-frame video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.preview-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 10px;
  color: #a3a6b2;
  font-size: 12px;
}

.preview-placeholder svg { width: 42px; height: 42px; }

.recording-guidance {
  margin: 10px 0 0;
  color: var(--ink-faint);
  font-size: 10px;
  text-align: center;
}

.recording-audio-notice {
  margin: 10px 0 0;
  padding: 9px 11px;
  border: 1px solid #f0d1a8;
  border-radius: 9px;
  background: var(--orange-soft);
  color: #7b4a0b;
  font-size: 10px;
  line-height: 1.45;
  text-align: center;
}

.recording-actions,
.review-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin-top: 18px;
}

.stop-icon {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  background: currentColor;
}

.review-preview {
  overflow: hidden;
  border-radius: 13px;
  background: #171820;
}

.review-preview video {
  display: block;
  width: 100%;
  max-height: 360px;
  object-fit: contain;
}

.file-preview {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 190px;
  color: white;
}

.file-preview-icon {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.1);
}

.file-preview-icon svg { width: 28px; height: 28px; }
.file-preview strong,
.file-preview small { display: block; max-width: 330px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-preview strong { font-size: 14px; }
.file-preview small { margin-top: 4px; color: #a9abb5; font-size: 11px; }

.review-heading {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 20px;
}

.success-check {
  display: grid;
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 50%;
  background: var(--green-soft);
  color: var(--green);
  font-weight: 900;
}

.review-heading h3,
.upload-stage h3 { margin: 0; font-size: 19px; letter-spacing: -0.02em; }
.review-heading p,
.upload-stage p { margin: 3px 0 0; color: var(--ink-faint); font-size: 12px; }

.upload-stage {
  display: grid;
  min-height: 390px;
  place-content: center;
  justify-items: center;
  padding: 30px;
  text-align: center;
}

.upload-stage .processing-orbit { width: 78px; height: 78px; margin-bottom: 24px; }

.progress-track {
  width: min(100%, 390px);
  height: 7px;
  margin-top: 26px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--surface-soft);
}

.progress-track span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--brand);
  transition: width 180ms ease;
}

.progress-label {
  margin-top: 8px;
  color: var(--ink-faint);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.recorder-error {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 14px;
  padding: 11px 12px;
  border: 1px solid #f0c4c1;
  border-radius: 9px;
  background: var(--red-soft);
  color: var(--red);
}

.recorder-error > svg { flex: 0 0 auto; width: 18px; height: 18px; margin-top: 1px; }
.recorder-error strong { font-size: 11px; }
.recorder-error p { margin: 2px 0 0; color: #833232; font-size: 10px; }

.rename-dialog {
  width: min(430px, calc(100% - 28px));
  padding: 0;
  border: 0;
  border-radius: 17px;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
}

.small-dialog-shell { padding: 24px; }
.small-dialog-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.small-dialog-shell > p { margin: 16px 0; color: var(--ink-soft); font-size: 13px; }
.small-dialog-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 20px; }

.toast-region {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 100;
  display: grid;
  gap: 8px;
  width: min(360px, calc(100% - 40px));
}

.toast {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid #33343d;
  border-radius: 11px;
  background: #20212a;
  color: white;
  box-shadow: var(--shadow-md);
  font-size: 12px;
  animation: toast-in 180ms ease-out;
}

.toast svg { flex: 0 0 auto; width: 17px; height: 17px; margin-top: 1px; color: #b5ffb1; }
.toast.is-error svg { color: #ff9e98; }

@keyframes shimmer {
  to { background-position: -200% 0; }
}

@keyframes indeterminate {
  0% { transform: translateX(-100%); }
  50% { transform: translateX(120%); }
  100% { transform: translateX(330%); }
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.75); }
}

@keyframes pulse-bar {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}

@keyframes orbit {
  from { transform: rotate(0deg) translateX(31px) rotate(0deg); }
  to { transform: rotate(360deg) translateX(31px) rotate(-360deg); }
}

@keyframes dialog-in {
  from { opacity: 0; transform: translateY(8px) scale(0.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes toast-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes account-menu-in {
  from { opacity: 0; transform: translateY(-5px) scale(0.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 940px) {
  .auth-shell {
    grid-template-columns: 1fr;
    gap: 44px;
    width: min(calc(100% - 40px), 680px);
    padding: 56px 0 72px;
  }

  .auth-story { text-align: center; }
  .auth-story h1,
  .auth-story > p { margin-right: auto; margin-left: auto; }
  .auth-trust-list { grid-template-columns: repeat(3, minmax(0, 1fr)); text-align: left; }
  .auth-trust-list > div { align-items: flex-start; }

  .dashboard-hero {
    grid-template-columns: 1fr;
    gap: 30px;
    padding-top: 58px;
  }

  .hero-copy {
    max-width: 690px;
  }

  .hero-visual {
    width: min(100%, 560px);
    margin: 0 auto;
  }

  .meeting-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .detail-layout { grid-template-columns: 1fr; }
  .transcript-card { grid-column: auto; }
}

@media (max-width: 680px) {
  .header-inner,
  .page-shell { width: min(calc(100% - 28px), var(--max-width)); }

  .header-inner { min-height: 60px; }
  .nav-link { display: none; }
  .button-compact { min-height: 36px; }
  .account-button { min-height: 38px; padding: 3px; border-color: transparent; background: transparent; box-shadow: none; }
  .account-button-copy,
  .account-chevron { display: none; }
  .account-avatar { width: 32px; height: 32px; }
  .account-menu { position: fixed; top: 66px; right: 14px; width: min(280px, calc(100% - 28px)); }

  .auth-view { min-height: calc(100dvh - 61px); }
  .auth-shell {
    width: min(calc(100% - 28px), 560px);
    min-height: calc(100dvh - 61px);
    gap: 34px;
    padding: 42px 0 55px;
  }
  .auth-story h1 { font-size: clamp(42px, 13vw, 58px); }
  .auth-story > p { font-size: 15px; }
  .auth-trust-list { grid-template-columns: 1fr; width: min(100%, 390px); margin: 27px auto 0; }
  .auth-trust-list small { font-size: 9px; }
  .auth-card-wrap::before { inset: -9px 18px 9px -9px; }
  .auth-card { padding: 25px 20px; border-radius: 18px; }
  .auth-card-heading h2 { font-size: 27px; }

  .dashboard-hero {
    min-height: auto;
    padding: 46px 0 55px;
  }

  .hero-copy h1 { font-size: clamp(44px, 14vw, 64px); }
  .hero-copy > p:not(.privacy-note) { font-size: 16px; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .hero-actions .button { width: 100%; }

  .hero-visual { min-height: 340px; }
  .visual-card-main { right: 3px; left: 3px; }
  .note-decision { right: -3px; }
  .note-action { left: -3px; }
  .visual-note { min-width: 205px; }

  .section-heading-row { align-items: stretch; flex-direction: column; }
  .library-tools { flex-direction: column; }
  .search-control input,
  .select-control select { width: 100%; }
  .meeting-grid { grid-template-columns: 1fr; }

  .detail-shell { padding-top: 22px; }
  .detail-header { flex-direction: column; }
  .detail-actions { width: 100%; justify-content: flex-start; }
  .detail-actions .button-primary { flex: 1; }
  .more-menu { right: auto; left: 0; }

  .content-card-padding { padding: 20px; }
  .transcript-heading-row { flex-direction: column; }
  .transcript-segment { grid-template-columns: 1fr; gap: 8px; }
  .segment-meta { display: flex; align-items: center; gap: 10px; }
  .segment-speaker { width: auto; max-width: 70%; }
  .segment-time { margin-top: 0; }
  .media-fetch-shell { grid-template-columns: auto 1fr; padding: 19px; }
  .media-fetch-shell .button { grid-column: 1 / -1; width: 100%; }

  .dialog-header { padding: 19px 18px 15px; }
  .recorder-content { padding: 17px 18px 20px; }
  .permission-panel { padding: 12px; }
  .permission-panel-header { align-items: center; }
  .permission-row { grid-template-columns: 28px minmax(0, 1fr); }
  .permission-status { grid-column: 2; justify-self: start; }
  .capture-option { min-height: 74px; padding: 12px; gap: 11px; }
  .capture-option-icon { width: 40px; height: 40px; }
  .capture-option .button-small { display: none; }
  .signal-indicators { width: 100%; justify-content: center; order: 3; }
  .recording-actions,
  .review-actions { align-items: stretch; flex-direction: column; }
  .recording-actions .button,
  .review-actions .button { width: 100%; }
  .review-heading { justify-content: flex-start; }
}

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