:root {
  color-scheme: light;
  --ink: #12251d;
  --muted: #64746c;
  --cream: #f6f3e9;
  --paper: rgba(255, 255, 251, 0.88);
  --line: rgba(18, 37, 29, 0.12);
  --green: #256b4a;
  --green-dark: #164a35;
  --mint: #dcecdf;
  --gold: #d49b45;
  --danger: #9f3e35;
  --shadow: 0 24px 70px rgba(25, 47, 37, 0.11);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: var(--cream);
  overflow-x: hidden;
}

button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible {
  outline: 3px solid rgba(37, 107, 74, 0.3);
  outline-offset: 2px;
}

.ambient {
  position: fixed;
  border-radius: 999px;
  filter: blur(2px);
  pointer-events: none;
  z-index: -1;
}
.ambient-one { width: 480px; height: 480px; right: -150px; top: -190px; background: rgba(205, 228, 207, 0.72); }
.ambient-two { width: 380px; height: 380px; left: -210px; bottom: 4%; background: rgba(227, 199, 142, 0.2); }

.topbar {
  width: min(1180px, calc(100% - 40px));
  height: 84px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
}
.brand strong { font-weight: 700; color: var(--green); }
.brand-mark { width: 30px; height: 30px; display: block; border-radius: 8px; object-fit: cover; }

.account { display: flex; align-items: center; gap: 14px; color: var(--muted); font-size: 14px; }
.text-button, .copy-email { border: 0; color: var(--green); background: none; padding: 4px; cursor: pointer; font-weight: 700; }

main { width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: 42px 0 72px; }
.center-card { min-height: 60vh; display: grid; place-content: center; justify-items: center; color: var(--muted); }
.pulse-mark { width: 42px; height: 42px; border-radius: 12px; object-fit: cover; animation: breathe 1.4s ease-in-out infinite; }
@keyframes breathe { 50% { transform: scale(1.08); opacity: .62; } }

.signin-layout { min-height: calc(100vh - 200px); display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(320px, .75fr); align-items: center; gap: 80px; }
.signin-copy h1, .hero-row h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(48px, 6.4vw, 84px);
  line-height: .98;
  letter-spacing: -.045em;
  max-width: 780px;
  margin: 14px 0 24px;
  font-weight: 500;
}
.eyebrow, .section-kicker { text-transform: uppercase; letter-spacing: .18em; font-weight: 800; font-size: 11px; color: var(--green); margin: 0; }
.lede { color: var(--muted); font-size: 18px; line-height: 1.7; max-width: 680px; margin: 0; }
.promise-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 54px; max-width: 650px; }
.promise-row div { border-top: 1px solid var(--line); padding-top: 14px; }
.promise-row span { color: var(--gold); font-family: Georgia, serif; }
.promise-row p { margin: 7px 0 0; font-size: 14px; font-weight: 700; }

.signin-card { background: var(--ink); color: #f9f7ef; border-radius: 28px; padding: 42px; box-shadow: var(--shadow); }
.signin-card h2 { font-family: Georgia, serif; font-weight: 500; font-size: 32px; line-height: 1.1; margin: 28px 0 12px; }
.signin-card > p { color: #afbeb6; line-height: 1.6; }
.mini-wave { height: 32px; display: flex; align-items: center; gap: 5px; }
.mini-wave i { width: 4px; border-radius: 4px; background: #a8d4b3; display: block; }
.mini-wave i:nth-child(1), .mini-wave i:nth-child(5) { height: 10px; }
.mini-wave i:nth-child(2), .mini-wave i:nth-child(4) { height: 22px; }
.mini-wave i:nth-child(3) { height: 32px; }
.primary-button { border: 0; border-radius: 12px; min-height: 52px; padding: 0 20px; font-weight: 800; cursor: pointer; background: var(--green); color: white; transition: transform .18s ease, background .18s ease; }
.primary-button:hover { background: var(--green-dark); transform: translateY(-1px); }
.primary-button:disabled { opacity: .55; cursor: wait; transform: none; }
.google-button { width: 100%; background: #f7f4e9; color: var(--ink); display: flex; justify-content: center; align-items: center; gap: 12px; margin: 28px 0 20px; }
.google-button:hover { background: white; }
.google-button span { width: 25px; height: 25px; display: grid; place-items: center; border-radius: 50%; background: white; color: #4285f4; box-shadow: 0 1px 5px rgba(0,0,0,.2); }
.signin-card .fine-print { font-size: 12px; color: #8fa198; margin: 0; }

.dashboard { animation: reveal .35s ease both; }
@keyframes reveal { from { opacity: 0; transform: translateY(8px); } }
.hero-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; margin-bottom: 42px; }
.hero-row h1 { font-size: clamp(48px, 5.7vw, 74px); margin-bottom: 16px; }
.date-chip { width: 120px; min-width: 120px; aspect-ratio: 1; border: 1px solid var(--line); border-radius: 50%; display: grid; place-content: center; text-align: center; background: rgba(255,255,255,.3); }
.date-chip span { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.date-chip strong { font-family: Georgia, serif; font-size: 30px; font-weight: 500; }

.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(280px, .65fr); gap: 22px; align-items: start; }
.panel { background: var(--paper); border: 1px solid rgba(18,37,29,.1); border-radius: 22px; box-shadow: 0 12px 38px rgba(20,42,32,.06); backdrop-filter: blur(12px); }
.dispatch-card { padding: 30px; }
.panel-heading, .section-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; }
.panel-heading h2, .section-heading h2 { font-family: Georgia, serif; font-size: 30px; font-weight: 500; margin: 7px 0 0; }
.live-dot { font-size: 11px; color: var(--green); font-weight: 800; padding: 7px 10px; border-radius: 999px; background: var(--mint); }
.live-dot::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 6px; background: var(--green); border-radius: 50%; }

form { margin-top: 30px; }
label { display: block; font-size: 12px; font-weight: 800; margin: 0 0 9px; }
label span { color: var(--muted); font-weight: 500; margin-left: 5px; }
input, select { width: 100%; min-height: 50px; border: 1px solid var(--line); background: rgba(250,250,244,.92); border-radius: 11px; padding: 0 14px; color: var(--ink); }
.url-field { position: relative; }
.url-field span { position: absolute; left: 16px; top: 15px; color: var(--green); }
.url-field input { padding-left: 43px; font-size: 15px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 20px; }
.invite-hint { display: flex; align-items: center; gap: 12px; border: 1px dashed rgba(37,107,74,.3); border-radius: 12px; padding: 13px 15px; margin-top: 20px; background: rgba(220,236,223,.42); }
.invite-icon { width: 28px; height: 28px; border-radius: 50%; background: var(--green); color: white; display: grid; place-items: center; font-weight: 700; }
.invite-hint p { font-size: 12px; color: var(--muted); margin: 0; line-height: 1.55; }
.invite-hint strong { color: var(--ink); }
.copy-email { font-size: inherit; padding: 0; }
.consent-row { display: flex; align-items: flex-start; gap: 10px; margin: 18px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; cursor: pointer; }
.consent-row input { width: 17px; min-height: 17px; height: 17px; margin: 1px 0 0; padding: 0; flex: 0 0 auto; accent-color: var(--green); }
.consent-row span { color: inherit; font-weight: 600; margin: 0; }
.form-message { min-height: 20px; color: var(--danger); font-size: 13px; margin: 14px 0 4px; }
.form-message.success { color: var(--green); }
.dispatch-button { width: 100%; display: flex; align-items: center; justify-content: space-between; padding: 0 22px; }
.supported { margin: 12px 0 0; text-align: center; color: var(--muted); font-size: 11px; }

.summary-column { display: grid; gap: 22px; }
.metrics { display: grid; grid-template-columns: repeat(3, 1fr); padding: 24px 16px; }
.metrics div { text-align: center; border-right: 1px solid var(--line); }
.metrics div:last-child { border: 0; }
.metrics span { display: block; color: var(--muted); font-size: 10px; line-height: 1.2; min-height: 24px; }
.metrics strong { display: block; font-family: Georgia, serif; font-size: 28px; margin-top: 6px; font-weight: 500; }
.plan-card { padding: 24px; }
.plan-card-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.plan-card h3 { margin: 6px 0 0; font-family: Georgia, serif; font-size: 24px; font-weight: 500; }
.plan-card a { color: var(--green); font-size: 12px; font-weight: 800; text-decoration: none; }
.plan-card > strong { display: block; margin-top: 20px; font-size: 15px; }
.plan-card > p { color: var(--muted); font-size: 11px; line-height: 1.55; margin: 10px 0 0; }
.quota-track { width: 100%; height: 7px; margin-top: 12px; overflow: hidden; border-radius: 999px; background: rgba(18,37,29,.09); }
.quota-track span { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--gold); transition: width .25s ease; }
.privacy-card { padding: 24px; display: flex; gap: 15px; background: var(--ink); color: white; }
.privacy-mark { width: 32px; height: 32px; border: 1px solid rgba(255,255,255,.3); border-radius: 50%; display: grid; place-items: center; flex: 0 0 auto; color: #a8d4b3; }
.privacy-card h3 { margin: 1px 0 7px; font-family: Georgia, serif; font-weight: 500; font-size: 21px; }
.privacy-card p { margin: 0; color: #aebdb5; font-size: 12px; line-height: 1.6; }

.meetings-section { margin-top: 52px; }
.section-heading { align-items: end; margin-bottom: 18px; }
.secondary-button { border: 1px solid var(--line); border-radius: 10px; background: transparent; min-height: 38px; padding: 0 14px; cursor: pointer; color: var(--ink); font-weight: 700; }
.secondary-button:hover { background: rgba(255,255,255,.55); }
.meeting-list { display: grid; gap: 12px; }
.meeting-card { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 18px 20px; }
.platform-mark { width: 42px; height: 42px; border-radius: 12px; object-fit: cover; }
.meeting-title-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.meeting-title { margin: 0; font-size: 15px; }
.status-pill { border-radius: 999px; padding: 4px 8px; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; background: #edece5; color: var(--muted); }
.status-pill.in-call, .status-pill.joining { background: var(--mint); color: var(--green); }
.status-pill.waiting-room, .status-pill.scheduled { background: #f3e8d4; color: #8a5b20; }
.status-pill.failed { background: #f3ded9; color: var(--danger); }
.status-pill.completed { background: #dcecdf; color: var(--green); }
.meeting-meta, .meeting-detail { margin: 5px 0 0; font-size: 12px; color: var(--muted); }
.meeting-detail { margin-top: 3px; }
.meeting-actions { display: flex; align-items: center; gap: 10px; }
.meeting-link, .view-note-button, .resend-button, .retry-button, .cancel-button { font-size: 12px; font-weight: 800; }
.meeting-link { color: var(--green); text-decoration: none; }
.view-note-button, .resend-button, .retry-button, .cancel-button { border: 0; background: none; cursor: pointer; padding: 7px; }
.view-note-button, .resend-button, .retry-button { color: var(--green); }
.cancel-button { color: var(--danger); }
.empty-state { border: 1px dashed rgba(18,37,29,.2); border-radius: 18px; padding: 44px 24px; text-align: center; color: var(--muted); }
.empty-state strong { display: block; color: var(--ink); font-family: Georgia, serif; font-size: 23px; font-weight: 500; margin-bottom: 8px; }

.note-dialog { width: min(760px, calc(100% - 32px)); max-height: calc(100vh - 48px); margin: auto; padding: 30px; border: 1px solid var(--line); border-radius: 24px; color: var(--ink); background: #fffef8; box-shadow: 0 30px 90px rgba(18,37,29,.28); }
.note-dialog::backdrop { background: rgba(18,37,29,.55); backdrop-filter: blur(4px); }
.note-dialog-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.note-dialog h2 { margin: 6px 0 0; font-family: Georgia, serif; font-size: 32px; font-weight: 500; }
.note-dialog h3 { margin: 24px 0 8px; font-size: 14px; }
.note-dialog p, .note-dialog li { color: var(--muted); line-height: 1.65; }
.note-dialog ul { margin: 0; padding-left: 22px; }
.dialog-close { width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 50%; background: transparent; color: var(--ink); cursor: pointer; font-size: 24px; line-height: 1; }
.note-state { min-height: 24px; }
.note-dialog details { margin-top: 26px; border-top: 1px solid var(--line); padding-top: 18px; }
.note-dialog summary { color: var(--green); cursor: pointer; font-weight: 800; }
.note-dialog pre { max-height: 320px; overflow: auto; white-space: pre-wrap; word-break: break-word; color: var(--ink); font: 13px/1.65 ui-monospace, SFMono-Regular, Menlo, monospace; }

@media (max-width: 840px) {
  .signin-layout, .dashboard-grid { grid-template-columns: 1fr; }
  .signin-layout { gap: 40px; padding: 32px 0; }
  .signin-card { max-width: 520px; }
  .hero-row { align-items: flex-start; }
  .date-chip { width: 92px; min-width: 92px; }
  .summary-column { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .topbar, main { width: min(100% - 28px, 1180px); }
  .topbar { height: 70px; }
  main { padding-top: 24px; }
  .account #account-name { display: none; }
  .signin-copy h1, .hero-row h1 { font-size: 46px; }
  .promise-row { grid-template-columns: 1fr; gap: 12px; margin-top: 36px; }
  .promise-row div { display: flex; align-items: center; gap: 12px; }
  .promise-row p { margin: 0; }
  .signin-card, .dispatch-card { padding: 24px; border-radius: 19px; }
  .hero-row { display: block; }
  .date-chip { display: none; }
  .form-row, .summary-column { grid-template-columns: 1fr; }
  .meeting-card { grid-template-columns: 38px minmax(0, 1fr); }
  .platform-mark { width: 38px; height: 38px; }
  .meeting-actions { grid-column: 2; justify-content: flex-start; }
  .note-dialog { padding: 22px; }
}

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