/* Methodica Notetaker. Brand: logo cyan #82D2E7 with near-black ink. Light theme by default;
   dark theme when <html data-theme="dark"> (toggle in the top bar, stored in a cookie).
   Fonts are the platform's own (SF Pro on Apple, Segoe UI Variable on Windows): CSP allows
   fonts only from 'self'. Layout rule: decorative marks always sit in their own grid cell or
   flow position, never on top of text. */

:root {
  --brand: #82d2e7;
  --brand-strong: #2aa3c4;
  --brand-ink: #0a6c85;
  --tint: #eef8fb;
  --tint-line: #cfeaf3;

  --ink: #0f1720;
  --ink-2: #3a4752;
  --muted: #6b7882;
  --bg: #f5f7f8;
  --surface: #ffffff;
  --surface-2: #f8fafb;
  --line: #e6ebee;
  --line-strong: #d3dbe0;
  --topbar: rgba(255, 255, 255, 0.85);

  --ok: #157347; --ok-bg: #e7f5ed;
  --warn: #8a5300; --warn-bg: #fdf2df;
  --bad: #b42318; --bad-bg: #fdecea;
  --live: #d92d20;

  --primary-bg: #0f1720; --primary-ink: #ffffff; --primary-hover: #26313c;
  --ring: 0 0 0 3px rgba(130, 210, 231, 0.45);
  --shadow-sm: 0 1px 2px rgba(15, 23, 32, 0.05);
  --shadow: 0 1px 2px rgba(15, 23, 32, 0.05), 0 10px 28px -12px rgba(15, 23, 32, 0.14);

  /* Hero and sign-in panel */
  --hero-bg:
    radial-gradient(90% 120% at 100% 0%, rgba(130, 210, 231, 0.38), transparent 60%),
    linear-gradient(135deg, #ffffff 0%, #f2fafc 55%, #e6f5fa 100%);
  --hero-line: #d6edf4;
  --hero-ink: #0f1720;
  --hero-sub: #46545f;
  --hero-hint: #6b7882;
  --hero-art: #82d2e7;
  --hero-art-opacity: 0.55;
  --signal: #0a6c85;
  --field-bg: #ffffff;
  --field-line: #d3dbe0;
  --field-ink: #0f1720;
  --field-ph: #8a97a0;
  --cta-bg: #0f1720; --cta-ink: #ffffff; --cta-hover: #26313c;

  --radius: 16px;
  --radius-sm: 10px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI Variable Text", "Segoe UI",
    "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI Variable Display",
    "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Consolas, monospace;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  color-scheme: light;
}

:root[data-theme="dark"] {
  --brand-ink: #82d2e7;
  --tint: rgba(130, 210, 231, 0.1);
  --tint-line: rgba(130, 210, 231, 0.22);
  --ink: #eef3f5;
  --ink-2: #bcc8cf;
  --muted: #8b9aa4;
  --bg: #0a0f13;
  --surface: #10171d;
  --surface-2: #151e25;
  --line: #1f2a32;
  --line-strong: #2c3943;
  --topbar: rgba(10, 15, 19, 0.82);
  --ok: #4cc38a; --ok-bg: rgba(76, 195, 138, 0.13);
  --warn: #e7a94e; --warn-bg: rgba(231, 169, 78, 0.13);
  --bad: #f2786d; --bad-bg: rgba(242, 120, 109, 0.13);
  --live: #ff6b5e;
  --primary-bg: #82d2e7; --primary-ink: #0b1218; --primary-hover: #9fdeef;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.35);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.35), 0 16px 40px -16px rgba(0, 0, 0, 0.6);

  --hero-bg:
    radial-gradient(90% 120% at 100% 0%, rgba(130, 210, 231, 0.2), transparent 60%),
    linear-gradient(140deg, #0b1218 0%, #0e1c24 55%, #10252f 100%);
  --hero-line: rgba(255, 255, 255, 0.07);
  --hero-ink: #ffffff;
  --hero-sub: rgba(255, 255, 255, 0.72);
  --hero-hint: rgba(255, 255, 255, 0.5);
  --hero-art: #82d2e7;
  --hero-art-opacity: 0.35;
  --signal: #ffffff;
  --field-bg: rgba(255, 255, 255, 0.07);
  --field-line: rgba(255, 255, 255, 0.14);
  --field-ink: #ffffff;
  --field-ph: rgba(255, 255, 255, 0.5);
  --cta-bg: #82d2e7; --cta-ink: #0b1218; --cta-hover: #9fdeef;
  color-scheme: dark;
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column; overflow-x: hidden;
  background: var(--bg); color: var(--ink); font: 15px/1.55 var(--font); letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
::selection { background: rgba(130, 210, 231, 0.45); }
a { color: var(--brand-ink); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--font-display); color: var(--ink); }
h1 { font-size: 26px; line-height: 1.2; font-weight: 600; letter-spacing: -0.022em; margin: 0 0 6px; }
h2 { font-size: 16px; font-weight: 600; letter-spacing: -0.01em; margin: 0; }
h3 { font-size: 15px; font-weight: 600; margin: 16px 0 6px; }
p { margin: 0 0 10px; }
code { font: 13px var(--mono); background: var(--surface-2); border: 1px solid var(--line); padding: 1px 6px; border-radius: 6px; }
:focus-visible { outline: 2px solid var(--brand-strong); outline-offset: 2px; }
.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; }
.muted, .meta, .hint { color: var(--muted); }
.meta, .hint { font-size: 13px; }
.body-2 { color: var(--ink-2); }
.alert { color: var(--bad); }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.inline { display: inline; margin: 0; }
.narrow { max-width: 640px; margin-left: auto; margin-right: auto; }

/* ---------- Brand mark ---------- */
.mark { display: block; color: var(--brand); }
.mk-node { transform-box: fill-box; transform-origin: center; }
.mk-signal { stroke: var(--signal); stroke-dasharray: 0.04 0.96; opacity: 0; }

/* ---------- Top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 10; background: var(--topbar); border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: saturate(180%) blur(16px); backdrop-filter: saturate(180%) blur(16px);
}
.topbar-inner { max-width: 1140px; margin: 0 auto; padding: 0 24px; height: 60px; display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 11px; color: var(--ink); flex: none; }
.brand:hover { text-decoration: none; }
.brand-mark { width: 28px; height: 28px; }
.wordmark { display: flex; align-items: center; gap: 11px; line-height: 1; }
.wm-name { font-family: var(--font-display); font-weight: 600; font-size: 13.5px; letter-spacing: 0.2em; text-transform: uppercase; }
.wm-sub { color: var(--muted); font-size: 13.5px; padding-left: 11px; border-left: 1px solid var(--line-strong); }
.nav { display: flex; gap: 4px; }
.nav a { color: var(--ink-2); font-size: 14px; font-weight: 500; padding: 7px 13px; border-radius: 999px; }
.nav a:hover { color: var(--ink); background: var(--surface-2); text-decoration: none; }
.nav a[aria-current="page"] { color: var(--ink); background: var(--tint); box-shadow: inset 0 0 0 1px var(--tint-line); }
.account { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.who { color: var(--muted); font-size: 13px; }
.avatar {
  flex: none; display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  background: var(--tint); color: var(--brand-ink); box-shadow: inset 0 0 0 1px var(--tint-line);
  font-size: 13px; font-weight: 600;
}
.theme-toggle {
  flex: none; display: inline-grid; place-items: center; width: 34px; height: 34px; padding: 0;
  border-radius: 50%; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink-2); cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.theme-toggle:hover { color: var(--ink); border-color: var(--muted); }
.theme-toggle svg { width: 17px; height: 17px; }
.theme-toggle .ic-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .ic-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .ic-moon { display: none; }

.page { flex: 1; width: 100%; max-width: 1140px; margin: 0 auto; padding: 24px 24px 8px; }
.foot { color: var(--muted); font-size: 12px; padding: 24px 16px 32px; text-align: center; }

/* ---------- Buttons and inputs ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 38px; padding: 0 16px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink);
  font: 500 14px var(--font); cursor: pointer; white-space: nowrap;
  transition: background 0.15s, border-color 0.15s, box-shadow 0.2s;
}
.btn:hover { background: var(--surface-2); border-color: var(--muted); text-decoration: none; }
.btn.primary { background: var(--primary-bg); color: var(--primary-ink); border-color: transparent; }
.btn.primary:hover { background: var(--primary-hover); box-shadow: var(--ring); }
.btn.cta { background: var(--cta-bg); color: var(--cta-ink); border-color: transparent; font-weight: 600; }
.btn.cta:hover { background: var(--cta-hover); box-shadow: var(--ring); }
.btn.danger { color: var(--bad); }
.btn.danger:hover { background: var(--bad-bg); border-color: var(--bad); }
.btn.ghost { border-color: transparent; background: transparent; color: var(--ink-2); }
.btn.ghost:hover { background: var(--surface-2); color: var(--ink); }
.btn.small { height: 32px; padding: 0 12px; font-size: 13px; }
.btn.wide { display: flex; width: 100%; height: 46px; margin-top: 12px; font-size: 15px; }
button.link { background: none; border: 0; color: var(--brand-ink); font: inherit; cursor: pointer; padding: 0; }

input[type=text], input[type=url], input[type=email] {
  width: 100%; height: 40px; padding: 0 13px; font: inherit; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  transition: border-color 0.15s, box-shadow 0.2s;
}
input::placeholder { color: var(--muted); opacity: 0.85; }
input[type=text]:focus, input[type=url]:focus, input[type=email]:focus { outline: none; border-color: var(--brand-strong); box-shadow: var(--ring); }
label { display: block; }

/* ---------- Pills ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 999px;
  font-size: 12px; font-weight: 500; white-space: nowrap; background: var(--surface-2); color: var(--ink-2);
  box-shadow: inset 0 0 0 1px var(--line);
}
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill.large { height: 28px; padding: 0 13px; font-size: 13px; }
.pill.scheduled { background: var(--tint); color: var(--brand-ink); box-shadow: inset 0 0 0 1px var(--tint-line); }
.pill.ok, .pill.done { background: var(--ok-bg); color: var(--ok); box-shadow: none; }
.pill.live { background: var(--bad-bg); color: var(--live); box-shadow: none; }
.pill.live::before { animation: beat 1.4s ease-in-out infinite; }
.pill.processing, .pill.joining, .pill.waiting_room, .pill.warn { background: var(--warn-bg); color: var(--warn); box-shadow: none; }
.pill.failed { background: var(--bad-bg); color: var(--bad); box-shadow: none; }

/* ---------- Cards ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; margin-bottom: 18px; box-shadow: var(--shadow-sm); }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.count { font-size: 12px; font-weight: 600; color: var(--muted); background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; padding: 1px 9px; }
.grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); column-gap: 18px; }
.empty { text-align: center; padding: 20px 12px 10px; }
.empty p { margin: 0 0 4px; color: var(--ink-2); font-weight: 500; }
.empty .hint { font-weight: 400; color: var(--muted); }
.banner { padding: 11px 15px; border-radius: var(--radius-sm); font-weight: 500; }
.banner.ok { background: var(--ok-bg); color: var(--ok); }
.banner.bad { background: var(--bad-bg); color: var(--bad); }

/* ---------- Dashboard hero ---------- */
.hero {
  display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: 32px; align-items: center;
  margin-bottom: 18px; padding: 34px 40px; border-radius: 22px;
  background: var(--hero-bg); border: 1px solid var(--hero-line); box-shadow: var(--shadow);
}
.hero-body { min-width: 0; }
.hero-art { order: 2; display: grid; place-items: center; }
.hero-mark { width: 200px; height: 192px; color: var(--hero-art); }
.hero-mark .mk-line, .hero-mark .mk-node { opacity: var(--hero-art-opacity); }
.hero-mark .mk-signal { animation: flow 7s linear infinite, fade-in 1s 0.3s forwards; }
.hero-mark .mk-piece:nth-of-type(2) .mk-signal { animation-delay: -2.3s, 0.3s; }
.hero-mark .mk-piece:nth-of-type(3) .mk-signal { animation-delay: -4.6s, 0.3s; }
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--brand-strong); margin-bottom: 8px; min-height: 18px; }
:root[data-theme="dark"] .eyebrow { color: var(--brand); }
.hero-title { color: var(--hero-ink); font-size: clamp(26px, 3.4vw, 36px); letter-spacing: -0.03em; line-height: 1.12; margin-bottom: 8px; }
.hero-sub { color: var(--hero-sub); font-size: 15.5px; margin-bottom: 20px; }
.launch { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) auto; gap: 8px; }
.launch-field { position: relative; }
.launch-field input { height: 46px; border-radius: 12px; background: var(--field-bg); border-color: var(--field-line); color: var(--field-ink); }
.launch-field input::placeholder { color: var(--field-ph); opacity: 1; }
.launch-field.url input { padding-left: 42px; }
.launch-icon { position: absolute; left: 14px; top: 50%; width: 19px; height: 19px; transform: translateY(-50%); color: var(--brand-strong); pointer-events: none; }
.launch .btn { height: 46px; border-radius: 12px; padding: 0 20px; }
.hero-hint { color: var(--hero-hint); font-size: 13px; margin: 10px 0 0 2px; }

.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.stat { display: grid; gap: 4px; padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); color: var(--ink); }
.stat-label { display: flex; align-items: center; gap: 7px; font-size: 11.5px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.stat-value { font-family: var(--font-display); font-size: 28px; font-weight: 600; letter-spacing: -0.03em; line-height: 1.15; font-variant-numeric: tabular-nums; }
.stat-value.small { display: flex; align-items: center; gap: 8px; font-size: 18px; line-height: 1.8; }
.stat.is-live .stat-value { color: var(--live); }
.stat.link:hover { text-decoration: none; border-color: var(--tint-line); box-shadow: var(--shadow); }
.live-dot, .ok-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--live); flex: none; }
.live-dot { animation: beat 1.4s ease-in-out infinite; }
.ok-dot { background: var(--ok); box-shadow: 0 0 0 3px var(--ok-bg); }

/* ---------- Meeting lists ---------- */
.meetings { list-style: none; margin: 0 -10px; padding: 0; }
.meetings li + li { border-top: 1px solid var(--line); }
.meetings a {
  display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; gap: 14px; align-items: center;
  padding: 10px; border-radius: 12px; color: var(--ink);
}
.meetings a:hover { background: var(--surface-2); text-decoration: none; }
.date-tile { display: grid; justify-items: center; align-content: center; width: 48px; height: 50px; border-radius: 12px; background: var(--tint); box-shadow: inset 0 0 0 1px var(--tint-line); line-height: 1; }
.dt-mon { font-size: 10.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--brand-ink); }
.dt-day { font-family: var(--font-display); font-size: 19px; font-weight: 600; margin-top: 4px; color: var(--ink); font-variant-numeric: tabular-nums; }
.m-main { display: grid; gap: 1px; min-width: 0; }
.m-title { font-weight: 600; letter-spacing: -0.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.m-meta { font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- Meeting page ---------- */
.back { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 500; color: var(--muted); margin-bottom: 12px; }
.back::before { content: ""; width: 7px; height: 7px; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); }
.back:hover { color: var(--ink); text-decoration: none; }
.m-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.m-heading { min-width: 0; }
.m-heading h1 { font-size: clamp(24px, 3vw, 30px); letter-spacing: -0.028em; overflow-wrap: anywhere; }
.m-heading .meta { margin: 0; }
.toolbar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.m-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 18px; align-items: start; }

.ai-note { font-size: 12px; color: var(--muted); }
.summary { font-size: 16px; line-height: 1.65; color: var(--ink); margin: 0; }
.minutes h3 { font-family: var(--font); font-size: 11.5px; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; color: var(--muted); margin: 24px 0 8px; }
.bullets { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.bullets li { position: relative; padding-left: 20px; color: var(--ink-2); }
.bullets li::before { content: ""; position: absolute; left: 3px; top: 0.62em; width: 6px; height: 6px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 3px var(--tint); }
.bullets.decisions li { color: var(--ink); font-weight: 500; }
.bullets.decisions li::before { border-radius: 1px; transform: rotate(45deg); background: var(--brand-strong); }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; padding: 9px 13px; background: var(--surface-2); font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.table td { text-align: left; padding: 11px 13px; border-top: 1px solid var(--line); vertical-align: top; color: var(--ink-2); }
.table tbody tr:hover { background: var(--surface-2); }
.table td.task { color: var(--ink); font-weight: 500; }
.table td.due { white-space: nowrap; color: var(--muted); }
.owner { display: inline-block; padding: 2px 10px; border-radius: 999px; background: var(--tint); color: var(--brand-ink); font-size: 12.5px; font-weight: 500; white-space: nowrap; }

.transcript { list-style: none; margin: 0; padding: 0; }
.transcript li { display: grid; grid-template-columns: 32px minmax(0, 1fr); column-gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.transcript li:first-child { border-top: 0; padding-top: 2px; }
.transcript li.new { animation: rise 0.4s var(--ease); }
.t-avatar { grid-row: span 2; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--tint); color: var(--brand-ink); font-size: 13px; font-weight: 600; box-shadow: inset 0 0 0 1px var(--tint-line); }
.t-head { display: flex; align-items: baseline; gap: 8px; min-width: 0; flex-wrap: wrap; }
.transcript .speaker { font-weight: 600; font-size: 14px; overflow-wrap: anywhere; }
.transcript .ts { font: 12px var(--mono); color: var(--muted); }
.transcript .text { grid-column: 2; color: var(--ink-2); overflow-wrap: anywhere; }

.people { list-style: none; margin: 0; padding: 0; }
.people li { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line); flex-wrap: wrap; }
.people li:first-child { border-top: 0; padding-top: 0; }
.p-main { display: grid; min-width: 0; flex: 1; }
.p-name { font-size: 14px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.p-main .meta { font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.add-member { display: flex; gap: 8px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.add-member input { flex: 1; min-width: 0; height: 32px; font-size: 13px; }

/* ---------- Settings ---------- */
.page-title { font-size: 28px; letter-spacing: -0.028em; margin-bottom: 16px; }
.group-title { font-family: var(--font); font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin: 24px 4px 8px; }
.card.group { padding: 2px 22px; }
.setting { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 15px 0; flex-wrap: wrap; margin: 0; }
.s-label { font-weight: 500; color: var(--ink); margin: 0; }
.setting .hint { margin: 2px 0 0; }
.switch { position: relative; display: flex; align-items: center; gap: 12px; cursor: pointer; }
.switch input { position: absolute; opacity: 0; width: 44px; height: 26px; margin: 0; cursor: pointer; }
.track { position: relative; flex: none; width: 44px; height: 26px; border-radius: 999px; background: var(--line-strong); transition: background 0.2s; }
.track::after { content: ""; position: absolute; left: 3px; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25); transition: transform 0.2s var(--ease); }
.switch input:checked + .track { background: var(--brand-strong); }
.switch input:checked + .track::after { transform: translateX(18px); }
.switch input:focus-visible + .track { box-shadow: var(--ring); }
.rules { margin: 0; padding: 14px 0; list-style: none; display: grid; gap: 8px; }
.rules li { position: relative; padding-left: 20px; color: var(--ink-2); }
.rules li::before { content: ""; position: absolute; left: 3px; top: 0.62em; width: 6px; height: 6px; border-radius: 50%; background: var(--brand); }

/* ---------- Sign-in ---------- */
.auth { position: relative; flex: 1; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); min-height: 100vh; }
.auth-hero { display: flex; align-items: center; justify-content: center; padding: 56px 48px; background: var(--hero-bg); border-right: 1px solid var(--hero-line); }
.auth-hero-inner { width: 100%; max-width: 460px; }
.auth-mark { width: clamp(140px, 18vw, 220px); height: auto; margin-bottom: 36px; color: var(--brand); }
.auth-mark .mk-signal { filter: drop-shadow(0 0 6px rgba(130, 210, 231, 0.9)); }
.lockup { display: grid; gap: 7px; margin: 0 0 22px; line-height: 1; color: var(--hero-ink); }
.lockup-name { font-family: var(--font-display); font-size: 16px; font-weight: 600; letter-spacing: 0.32em; text-transform: uppercase; }
.lockup-sub { font-size: 10px; letter-spacing: 0.7em; text-transform: uppercase; color: var(--hero-hint); }
.display { color: var(--hero-ink); font-size: clamp(38px, 4.4vw, 56px); line-height: 1.04; letter-spacing: -0.04em; margin: 0 0 22px; }
.display .grad { background: linear-gradient(90deg, #1f9cc0, #82d2e7); -webkit-background-clip: text; background-clip: text; color: transparent; }
:root[data-theme="dark"] .display .grad { background-image: linear-gradient(90deg, #82d2e7, #d7f3fa); }
.features { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; color: var(--hero-sub); }
.features li { position: relative; padding-left: 20px; }
.features li::before { content: ""; position: absolute; left: 2px; top: 0.6em; width: 7px; height: 7px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 10px rgba(130, 210, 231, 0.9); }
.auth-panel { position: relative; display: grid; place-items: center; padding: 72px 28px 40px; background: var(--bg); }
.auth-tools { position: absolute; top: 18px; right: 18px; }
.auth-card { width: 100%; max-width: 370px; }
.auth-card h2 { font-size: 26px; letter-spacing: -0.028em; margin-bottom: 6px; }
.auth-card .muted { margin-bottom: 16px; }
.btn.google { gap: 12px; box-shadow: var(--shadow-sm); }
.g-logo { width: 18px; height: 18px; }
.auth-foot { margin-top: 28px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }

/* Signature animation on sign-in: the mark draws itself, nodes light up, a signal runs the circuit. */
.draw .mk-line { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.6s var(--ease) forwards; }
.draw .mk-piece:nth-of-type(2) .mk-line { animation-delay: 0.15s; }
.draw .mk-piece:nth-of-type(3) .mk-line { animation-delay: 0.3s; }
.draw .mk-node { transform: scale(0); animation: pop 0.45s var(--ease) 1.1s forwards; }
.draw .mk-signal { animation: flow 6s linear 1.8s infinite, fade-in 0.6s 1.8s forwards; }
.draw .mk-piece:nth-of-type(2) .mk-signal { animation-delay: 3.8s, 1.8s; }
.draw .mk-piece:nth-of-type(3) .mk-signal { animation-delay: 5.8s, 1.8s; }

@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes pop { to { transform: scale(1); } }
@keyframes flow { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes fade-in { to { opacity: 1; } }
@keyframes beat { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .draw .mk-line { stroke-dashoffset: 0; }
  .draw .mk-node { transform: none; }
  .mk-signal { display: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .m-layout { grid-template-columns: minmax(0, 1fr); }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .who { display: none; }
}
@media (max-width: 860px) {
  .grid { grid-template-columns: minmax(0, 1fr); }
  .hero { grid-template-columns: minmax(0, 1fr); padding: 26px 22px; border-radius: 18px; }
  .hero-art { display: none; }
  .launch { grid-template-columns: minmax(0, 1fr); }
  .auth { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .auth-hero { padding: 64px 24px 32px; border-right: 0; border-bottom: 1px solid var(--hero-line); }
  .auth-mark { width: 88px; margin-bottom: 22px; }
  .display { font-size: 36px; margin-bottom: 0; }
  .features { display: none; }
  .auth-panel { padding: 32px 22px 40px; place-items: start center; }
  .auth-tools { position: fixed; top: 14px; right: 14px; z-index: 5; }
}
@media (max-width: 640px) {
  .topbar-inner { padding: 0 14px; gap: 10px; height: 56px; }
  .wm-sub, .account .avatar { display: none; }
  .nav a { padding: 6px 10px; }
  .account { gap: 4px; }
  .account .btn.small { padding: 0 8px; }
  .page { padding: 16px 14px 8px; }
  .card { padding: 16px; border-radius: 14px; }
  .card.group { padding: 2px 16px; }
  .stats { gap: 10px; }
  .stat { padding: 13px 14px; }
  .stat-value { font-size: 24px; }
  .stat-value.small { font-size: 16px; }
  .meetings a { grid-template-columns: 44px minmax(0, 1fr); row-gap: 6px; }
  .date-tile { width: 44px; height: 46px; grid-row: span 2; }
  .meetings .pill { grid-column: 2; justify-self: start; }
  .transcript .text { grid-column: 1 / -1; margin-top: 4px; }
  .t-avatar { grid-row: auto; width: 26px; height: 26px; font-size: 11px; }
  .transcript li { grid-template-columns: 26px minmax(0, 1fr); column-gap: 10px; }
}
@media (max-width: 400px) {
  .wordmark { display: none; }
}
