:root {
  --purple: #8763AA;
  --purple-dark: #5B3F7C;
  --ink: #1F2329;
  --muted: #6B7280;
  --line: #E5E7EB;
  --red: #E8262B;
  --green: #00A651;
  --bg: #1B1D24;
  --bg-2: #252833;
  --chrome-ink: #E8E9EE;
  --chrome-muted: #9AA0AD;
  --font: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  --plex: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  --navy: #1A1F36;
  --blue: #2F5597;
  --grey: #6B7280;
}
* { box-sizing: border-box; }
html, body, #app { margin: 0; height: 100%; }
body { background: var(--bg); color: var(--chrome-ink); font-family: var(--font); }
[v-cloak] { display: none; }

button {
  font: inherit; font-weight: 600; font-size: 14px; cursor: pointer;
  background: var(--purple); color: #fff; border: 0; border-radius: 6px; padding: 8px 16px;
}
button:hover:not(:disabled) { background: var(--purple-dark); }
button:disabled { opacity: .45; cursor: default; }
button.ghost { background: transparent; color: inherit; border: 1px solid rgba(255,255,255,.18); }
button.ghost:hover:not(:disabled) { background: rgba(255,255,255,.08); }
button.small { padding: 4px 10px; font-size: 13px; }
button.danger { color: #FF8A8C; }
input { font: inherit; font-size: 15px; padding: 9px 12px; border-radius: 6px; border: 1px solid #3A3E4B; background: #13151A; color: var(--chrome-ink); }
input:focus, textarea:focus { outline: 2px solid var(--purple); outline-offset: 1px; }
.muted { color: var(--chrome-muted); }
.small { font-size: 12px; }
.error { color: #FF8A8C; }
.ok { color: #6EE7A0; }
.row { display: flex; gap: 8px; align-items: center; }
.pill { display: inline-block; padding: 2px 8px; border-radius: 99px; background: var(--purple); color: #fff; font-size: 12px; font-weight: 700; }
.brand { display: flex; align-items: center; gap: 8px; font-weight: 700; letter-spacing: .02em; }
.brand .dot { width: 12px; height: 12px; border-radius: 50%; background: var(--purple); box-shadow: 0 0 0 3px rgba(127,91,166,.35); }
.brand .sep { color: var(--chrome-muted); font-weight: 400; }

/* ---------------- login ---------------- */
.login { min-height: 100%; display: grid; place-items: center; padding: 16px;
  background: radial-gradient(1200px 600px at 20% 10%, #3A2A52 0%, transparent 60%), var(--bg); }
.login-card { width: 100%; max-width: 360px; display: flex; flex-direction: column; gap: 12px;
  background: var(--bg-2); padding: 32px; border-radius: 14px; box-shadow: 0 20px 60px rgba(0,0,0,.4); }
.login-card h1 { margin: 12px 0 0; font-size: 28px; }
.login-card p { margin: 0 0 8px; }
.login-card button { padding: 11px; font-size: 15px; }

/* ---------------- shell ---------------- */
.shell { height: 100%; display: flex; flex-direction: column; }
.topbar { display: flex; align-items: center; gap: 16px; padding: 10px 20px; background: #13151A; border-bottom: 1px solid #2C2F3A; flex-wrap: wrap; }
.topbar .wave { color: var(--chrome-muted); font-size: 14px; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar .actions { display: flex; gap: 8px; margin-left: auto; }
.stage-wrap { flex: 1; position: relative; overflow: hidden; display: grid; place-items: center; }
.stage { width: 1280px; height: 720px; position: absolute; left: 50%; top: calc(50% - 14px); margin: -360px 0 0 -640px; transform-origin: center center; }
.empty { text-align: center; }
.nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 40px; height: 64px; font-size: 32px; line-height: 1;
  padding: 0; background: rgba(255,255,255,.06); color: var(--chrome-ink); }
.nav.prev { left: 12px; } .nav.next { right: 12px; }
.dots { position: absolute; bottom: 12px; left: 0; right: 0; display: flex; justify-content: center; gap: 8px; }
.dots button { width: 9px; height: 9px; padding: 0; border-radius: 50%; background: #4B5060; }
.dots button.on { background: var(--purple); width: 26px; border-radius: 5px; }

/* ---------------- slide (Medmind 2026 style) ---------------- */
.slide { position: absolute; inset: 0; background: #fff; color: var(--navy); padding: 40px 56px 0; overflow: hidden;
  box-shadow: 0 24px 70px rgba(0,0,0,.45); display: flex; flex-direction: column; font-family: var(--plex); }
.slide .logo { position: absolute; top: 34px; right: 52px; width: 60px; }
.slide h3 { margin: 0 0 6px; font-size: 15px; font-weight: 600; text-align: center; color: var(--navy); }
.slide h3.center { margin-top: 4px; }
.red { color: var(--red); }
.kicker { font-size: 12.5px; letter-spacing: .24em; text-transform: uppercase; color: var(--blue); font-weight: 500; }
.slide-head h2 { margin: 6px 0 0; font-size: 36px; font-weight: 400; color: var(--navy); line-height: 1.1; letter-spacing: -.005em; }
.bullets { position: relative; margin: 10px 0 4px; min-height: 60px; max-width: 1080px; }
.bullets p { margin: 0 0 3px 18px; font-size: 14.5px; line-height: 1.35; color: var(--grey); position: relative; }
.bullets p::before { content: ""; position: absolute; left: -16px; top: .55em; width: 6px; height: 6px; border-radius: 50%; background: var(--purple); }
.bullets .edit-btn { position: absolute; right: 0; top: -40px; opacity: 0; background: #F1EEF7; color: var(--purple); font-size: 12px; padding: 4px 10px; }
.bullets:hover .edit-btn { opacity: 1; }
.custom-tag { position: absolute; right: 0; bottom: -2px; font-size: 11px; color: var(--grey); }
.bullet-edit textarea { width: 100%; font: inherit; font-size: 14px; padding: 8px; border: 1px solid var(--line); border-radius: 6px; resize: vertical; }
.bullet-edit .row { margin: 4px 0 6px; }
.bullet-edit button.ghost { color: var(--navy); border-color: var(--line); }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-top: 8px; }
.chart { position: relative; }
.range-chart { width: 568px; height: 262px; }
.adoption-chart { width: 1168px; height: 410px; }

.stat-table { width: 568px; border-collapse: collapse; table-layout: fixed; font-size: 12.5px; margin-top: 2px; color: var(--navy); }
.stat-table th { width: 92px; text-align: left; font-weight: 500; padding: 3px 4px; border-bottom: 1px solid var(--line); white-space: nowrap; color: var(--grey); }
.stat-table td { text-align: center; padding: 3px 2px; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.stat-table tr:first-child td, .stat-table tr:first-child th { font-weight: 500; line-height: 1.2; border-bottom: 1.5px solid var(--blue); font-size: 11.5px; color: var(--navy); }
.stat-table td.cur { font-weight: 600; }
.stat-table td.shade { background: #EEF1F8; }
.mk { display: inline-block; margin-right: 6px; vertical-align: middle; }
.mk.sq { width: 9px; height: 9px; background: var(--red); }
.mk.tri { width: 0; height: 0; border-left: 5px solid transparent; border-right: 5px solid transparent; border-bottom: 9px solid var(--green); }

.legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 22px; font-size: 12.5px; margin-top: 2px; color: var(--grey); }
.legend i { display: inline-block; width: 10px; height: 10px; margin-right: 6px; vertical-align: -1px; }

.foot { margin-top: auto; padding: 6px 0 18px; font-size: 10px; color: var(--grey); }
.foot p { margin: 0; line-height: 1.4; max-width: 1110px; }
.rule { display: flex; align-items: center; gap: 22px; margin-top: 10px; }
.rule i { flex: 1; height: 2px; border-radius: 1px; background: linear-gradient(90deg, #6CC5C9 0%, #2F5597 40%, #8763AA 65%, #C8475A 85%, #E89A3C 100%); }
.rule .pg { font-size: 15px; color: var(--grey); font-variant-numeric: tabular-nums; }

/* title slide */
.title-slide { padding: 0; background: #F5F6FA url("/static/img/title-bg.jpg") center / cover no-repeat; }
.title-slide .logo { left: 80px; right: auto; top: 60px; width: 96px; }
.title-body { position: absolute; left: 82px; top: 268px; }
.title-body h1 { font-size: 64px; line-height: 1.05; margin: 12px 0 12px; font-weight: 400; color: var(--navy); letter-spacing: -.01em; }
.title-body .kicker { font-size: 15px; letter-spacing: .2em; }
.title-body .subtitle { font-size: 20px; color: var(--grey); margin: 0; font-weight: 300; }
.base { display: flex; gap: 40px; margin: 44px 0 0; }
.base div { border-top: 1.5px solid var(--blue); padding-top: 8px; min-width: 96px; }
.base dt { font-size: 34px; font-weight: 300; color: var(--navy); line-height: 1.1; }
.base dd { margin: 2px 0 0; font-size: 13px; color: var(--grey); }
.title-foot { position: absolute; left: 82px; bottom: 44px; display: flex; flex-direction: column; gap: 4px; }
.title-foot .prepared { font-size: 15px; color: var(--navy); }
.title-foot .prepared b { font-weight: 600; }
.title-foot .draft { font-size: 12px; color: var(--grey); }
.title-foot .demo-note { color: var(--red); }

/* ---------------- drawer ---------------- */
.drawer-bg { position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 10; display: flex; justify-content: flex-end; }
.drawer { width: min(460px, 100%); height: 100%; background: var(--bg-2); padding: 20px; overflow: auto; display: flex; flex-direction: column; gap: 12px; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; }
.drawer h2 { margin: 0; } .drawer h3 { margin: 12px 0 0; font-size: 15px; }
.drop { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 28px 16px; border: 2px dashed #4B5060; border-radius: 10px; cursor: pointer; text-align: center; }
.drop.over, .drop:hover { border-color: var(--purple); background: rgba(127,91,166,.08); }
.drawer .row input { flex: 1; min-width: 0; }
.history { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.history li { display: flex; justify-content: space-between; gap: 8px; align-items: center; padding: 10px 12px; border-radius: 8px; background: #1E2029; border: 1px solid transparent; }
.history li.active { border-color: var(--purple); }
.hist-actions { display: flex; gap: 6px; align-items: center; flex-shrink: 0; }

@media (max-width: 700px) {
  .topbar .wave { display: none; }
  .nav { display: none; }
}

/* ---------------- print: one slide per landscape page ---------------- */
@media print {
  @page { size: 1280px 720px; margin: 0; }
  body { background: #fff; }
  .topbar, .nav, .dots, .drawer-bg, .edit-btn, .custom-tag { display: none !important; }
  .slide, .title-slide { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .shell, .stage-wrap { display: block; height: auto; overflow: visible; }
  .stage { position: static; transform: none !important; margin: 0; width: auto; height: auto; }
  .slide { position: relative; width: 1280px; height: 720px; box-shadow: none; page-break-after: always; break-after: page; display: flex !important; }
}
