:root {
  --bg: #fbf8f3;
  --bg-2: #f3eee5;
  --surface: #ffffff;
  --ink: #17161a;
  --ink-2: #4a4750;
  --ink-3: #8a8690;
  --line: #e6e0d6;
  --accent: #ff5a36;
  --accent-ink: #ffffff;
  --accent-soft: #ffe7df;
  --blue: #2f6bff;
  --green: #12a150;
  --danger: #e03131;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(23, 22, 26, .06), 0 8px 24px rgba(23, 22, 26, .08);
  --shadow-lg: 0 24px 60px rgba(23, 22, 26, .18);
  --display: 'Bricolage Grotesque', ui-sans-serif, system-ui, sans-serif;
  --body: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #131217; --bg-2: #1b1a20; --surface: #201f26; --ink: #f4f1ec; --ink-2: #c4c0c8; --ink-3: #8d8994;
    --line: #2f2d36; --accent-soft: #3a1f19; --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.35); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #131217; --bg-2: #1b1a20; --surface: #201f26; --ink: #f4f1ec; --ink-2: #c4c0c8; --ink-3: #8d8994;
  --line: #2f2d36; --accent-soft: #3a1f19; --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.35); color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: var(--body); background: var(--bg); color: var(--ink); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); letter-spacing: -0.02em; line-height: 1.1; margin: 0 0 .5em; }
button { font: inherit; color: inherit; cursor: pointer; }
input { font: inherit; color: inherit; }
[hidden] { display: none !important; }

/* ---- buttons ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; border: 1px solid transparent; background: var(--surface); color: var(--ink); padding: .62em 1.1em; border-radius: 999px; font-weight: 600; font-size: .95rem; text-decoration: none; transition: transform .12s, background .15s, box-shadow .15s, border-color .15s; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 6px 16px -6px var(--accent); }
.btn-primary:hover { background: #ff4519; }
.btn-dark { background: var(--ink); color: var(--bg); }
.btn-ghost { background: transparent; border-color: var(--line); }
.btn-ghost:hover { background: var(--bg-2); }
.btn-danger { background: transparent; color: var(--danger); border-color: color-mix(in srgb, var(--danger) 35%, transparent); }
.btn-sm { padding: .42em .85em; font-size: .85rem; }
.btn-lg { padding: .9em 1.6em; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn-oauth { width: 100%; border-color: var(--line); background: var(--surface); }
.btn-oauth:hover { background: var(--bg-2); }
.btn-oauth[data-disabled] { opacity: .7; }

/* ---- header ---- */
.site-header { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 16px; padding: 14px max(clamp(16px, 4vw, 40px), calc((100% - 1240px) / 2 + clamp(16px, 4vw, 40px))); background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: blur(10px); }
/* The mark is two overlapping squares; its box spans both so the wordmark centres on the whole mark. */
.logo { display: inline-flex; align-items: center; gap: 12px; font-family: var(--display); font-weight: 800; font-size: 1.6rem; line-height: 1; text-decoration: none; letter-spacing: -0.035em; }
.logo-mark { width: 38px; height: 38px; position: relative; flex: none; }
.logo-mark i { position: absolute; inset: 0 9px 9px 0; border-radius: 8px; border: 2.5px solid var(--ink); background: var(--surface); }
.logo-mark i:last-child { inset: 9px 0 0 9px; background: var(--accent); border-color: var(--ink); }
.logo > span:last-child { padding-bottom: .06em; } /* optical: the display face sits slightly high */
.logo span b { color: var(--accent); }
.nav { display: flex; gap: 4px; margin-left: 12px; }
.nav a { text-decoration: none; padding: .4em .8em; border-radius: 999px; color: var(--ink-2); font-weight: 500; font-size: .95rem; }
.nav a:hover, .nav a.active { background: var(--bg-2); color: var(--ink); }
.nav .count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; margin-left: 4px; border-radius: 99px; background: var(--accent); color: #fff; font-size: .72rem; font-weight: 700; }
.account { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px 4px 4px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font-weight: 600; font-size: .9rem; }
.chip:hover { border-color: var(--ink-3); }
.chip-tag { font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); font-weight: 700; }
.avatar { width: 28px; height: 28px; border-radius: 50%; display: inline-grid; place-items: center; background: var(--c, var(--accent)); color: #fff; font-weight: 700; font-size: .85rem; flex: none; text-transform: uppercase; }
@media (max-width: 720px) {
  .nav { display: none; }
  .chip-name, .chip-tag, .account .chip ~ [data-login] { display: none; }
  .chip { padding: 3px; }
}

/* ---- landing ---- */
.hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(24px, 4.5vw, 64px); align-items: center; padding: clamp(16px, 4.5vh, 64px) clamp(16px, 4vw, 40px) 40px; max-width: 1240px; margin: 0 auto; }
.hero-copy { container-type: inline-size; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 99px; background: var(--accent-soft); color: var(--accent); font-weight: 700; font-size: .8rem; letter-spacing: .02em; }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: pulse 1.6s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .4; transform: scale(.75); } }
/* Sized from the column width so "Present together," always fits on one line. */
.hero h1 { font-size: clamp(2.1rem, 12cqi, 4.6rem); font-weight: 800; line-height: 1.02; margin: 0 0 18px; }
.hero h1 .l1 { display: block; white-space: nowrap; }
.hero h1 em { font-style: normal; color: var(--accent); position: relative; white-space: nowrap; }
.hero h1 em svg { position: absolute; left: -2%; bottom: -.14em; width: 104%; height: .32em; }
.lede { font-size: clamp(1rem, 1.4vw, 1.15rem); color: var(--ink-2); max-width: 32em; margin: 0 0 24px; }

.dropzone { position: relative; display: block; border: 2px dashed color-mix(in srgb, var(--ink) 25%, transparent); border-radius: 22px; padding: 26px; background: var(--surface); text-align: center; cursor: pointer; transition: border-color .15s, background .15s, transform .15s; box-shadow: var(--shadow); }
.dropzone:hover, .dropzone.drag { border-color: var(--accent); background: color-mix(in srgb, var(--accent-soft) 45%, var(--surface)); }
.dropzone.drag { transform: scale(1.015); }
.dropzone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.dz-icon { width: 54px; height: 54px; margin: 0 auto 10px; border-radius: 16px; display: grid; place-items: center; background: var(--accent); color: #fff; box-shadow: 0 10px 24px -10px var(--accent); }
.dz-title { font-family: var(--display); font-size: 1.35rem; font-weight: 700; }
.dz-sub { color: var(--ink-3); font-size: .92rem; margin-top: 4px; }
.dz-sub b { color: var(--ink-2); }
.dz-progress { display: none; margin-top: 14px; }
.dropzone.busy .dz-progress { display: block; }
.dropzone.busy input { display: none; }
.bar { height: 8px; border-radius: 99px; background: var(--bg-2); overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; background: var(--accent); border-radius: inherit; transition: width .2s; }
.bar.indeterminate i { width: 35% !important; animation: indet 1.1s infinite ease-in-out; }
@keyframes indet { from { transform: translateX(-100%); } to { transform: translateX(300%); } }
.dz-status { font-size: .88rem; color: var(--ink-2); margin-top: 8px; }
.trust { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 14px; color: var(--ink-3); font-size: .86rem; }
.trust span::before { content: '✓'; color: var(--green); font-weight: 800; margin-right: 6px; }
.alt-sources { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-top: 14px; position: relative; z-index: 2; }

/* hero visual: a fake live session */
.demo { position: relative; aspect-ratio: 4 / 3.3; }
.demo-window { position: absolute; inset: 0 0 8% 0; border-radius: 20px; background: #1d1c22; box-shadow: var(--shadow-lg); overflow: hidden; display: flex; flex-direction: column; transform: rotate(1.2deg); }
.demo-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; color: #bdb8c4; font-size: .78rem; }
.demo-bar i { width: 10px; height: 10px; border-radius: 50%; background: #3a3842; }
.demo-bar .live { margin-left: auto; color: #ff8a6e; font-weight: 700; display: flex; align-items: center; gap: 6px; }
.demo-bar .live::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #ff5a36; animation: pulse 1.4s infinite; }
.demo-slide { position: relative; margin: 0 14px 14px; flex: 1; border-radius: 10px; background: #fffdf8; overflow: hidden; color: #17161a; padding: 7% 8%; }
.demo-slide h4 { font-family: var(--display); font-size: clamp(1rem, 2.4vw, 1.8rem); margin: 0 0 6%; letter-spacing: -0.02em; }
.demo-bars { display: flex; align-items: flex-end; gap: 6%; height: 46%; padding-left: 4%; border-left: 2px solid #e6e0d6; border-bottom: 2px solid #e6e0d6; }
.demo-bars span { flex: 1; border-radius: 6px 6px 0 0; background: #2f6bff; }
.demo-bars span:nth-child(2) { background: #8fb0ff; }
.demo-bars span:nth-child(3) { background: #ff5a36; }
.demo-ink { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.demo-ink path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.demo-ink .circle { stroke: #ff5a36; stroke-width: 4; stroke-dasharray: 600; stroke-dashoffset: 600; animation: draw 6s infinite; }
.demo-ink .laser { stroke: #ff2d55; stroke-width: 5; filter: drop-shadow(0 0 6px #ff2d55); stroke-dasharray: 300; stroke-dashoffset: 300; animation: laser 6s infinite; }
@keyframes draw { 0%, 15% { stroke-dashoffset: 600; } 40%, 100% { stroke-dashoffset: 0; } }
@keyframes laser { 0%, 55% { stroke-dashoffset: 300; opacity: 1; } 70% { stroke-dashoffset: 0; opacity: 1; } 90%, 100% { stroke-dashoffset: 0; opacity: 0; } }
.demo-cursor { position: absolute; display: flex; align-items: flex-start; gap: 2px; pointer-events: none; animation: var(--anim) 6s infinite ease-in-out; }
.demo-cursor svg { filter: drop-shadow(0 2px 3px rgba(0,0,0,.25)); }
.demo-cursor b { margin-top: 14px; padding: 2px 8px; border-radius: 99px; color: #fff; font-size: .72rem; font-weight: 700; white-space: nowrap; }
@keyframes c1 { 0% { left: 20%; top: 70%; } 25% { left: 58%; top: 42%; } 45% { left: 64%; top: 50%; } 70% { left: 40%; top: 30%; } 100% { left: 20%; top: 70%; } }
@keyframes c2 { 0% { left: 75%; top: 25%; } 30% { left: 70%; top: 65%; } 60% { left: 35%; top: 55%; } 100% { left: 75%; top: 25%; } }
@keyframes c3 { 0% { left: 45%; top: 80%; } 50% { left: 82%; top: 78%; } 100% { left: 45%; top: 80%; } }
.demo-note { position: absolute; right: -2%; bottom: 0; background: var(--surface); border-radius: 14px; box-shadow: var(--shadow-lg); padding: 10px 14px; display: flex; align-items: center; gap: 10px; font-size: .85rem; transform: rotate(-2deg); }
.demo-note .avatars { display: flex; }
.demo-note .avatar { width: 26px; height: 26px; border: 2px solid var(--surface); margin-left: -8px; font-size: .7rem; }
.demo-note .avatar:first-child { margin-left: 0; }

.section { max-width: 1240px; margin: 0 auto; padding: clamp(40px, 7vw, 90px) clamp(16px, 4vw, 40px); }
.section h2 { font-size: clamp(1.9rem, 4vw, 3rem); font-weight: 800; }
.section .sub { color: var(--ink-2); font-size: 1.1rem; max-width: 40em; }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 36px; counter-reset: s; }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 26px; position: relative; }
.step::before { counter-increment: s; content: counter(s); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--ink); color: var(--bg); font-family: var(--display); font-weight: 800; font-size: 1.2rem; margin-bottom: 16px; }
.step h3 { font-size: 1.3rem; }
.step p { color: var(--ink-2); margin: 0; }
.features { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 36px; }
.feature { padding: 22px; border-radius: 18px; background: var(--bg-2); }
.feature .ic { font-size: 1.6rem; margin-bottom: 10px; display: block; }
.feature h3 { font-size: 1.1rem; font-family: var(--body); letter-spacing: -0.01em; font-weight: 700; margin-bottom: 6px; }
.feature p { margin: 0; color: var(--ink-2); font-size: .94rem; }
.cta-band { margin: 0 auto 60px; max-width: 1160px; border-radius: 28px; background: var(--ink); color: var(--bg); padding: clamp(32px, 6vw, 64px); display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-band h2 { color: var(--bg); margin: 0; font-size: clamp(1.8rem, 4vw, 2.8rem); }
.cta-band p { color: color-mix(in srgb, var(--bg) 70%, transparent); margin: 8px 0 0; }
footer { text-align: center; color: var(--ink-3); font-size: .88rem; padding: 30px 16px 40px; }

.recent-strip { max-width: 1240px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px); }
.recent-card { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 14px 18px; box-shadow: var(--shadow); }
.recent-card .items { display: flex; gap: 8px; flex-wrap: wrap; flex: 1; }
.recent-card .items a { text-decoration: none; padding: 6px 12px; border-radius: 10px; background: var(--bg-2); font-weight: 600; font-size: .9rem; max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; }
  .demo { max-width: 560px; width: 100%; margin: 0 auto; }
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .steps, .features { grid-template-columns: 1fr; }
  .dropzone { padding: 20px 14px; }
}

/* ---- nudge / banners ---- */
.nudge { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 16px; border-radius: 14px; background: var(--accent-soft); color: var(--ink); font-size: .92rem; }
.nudge b { font-weight: 700; }
.nudge .btn { margin-left: auto; }
.nudge-x { background: none; border: 0; font-size: 1.2rem; color: var(--ink-3); padding: 0 4px; }

/* ---- my slides ---- */
.page { max-width: 1240px; margin: 0 auto; padding: 24px clamp(16px, 4vw, 40px) 60px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.page-head h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin: 0; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; transition: transform .15s, box-shadow .15s; }
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.card-thumb { aspect-ratio: 16 / 10; background: var(--bg-2); display: grid; place-items: center; overflow: hidden; position: relative; text-decoration: none; }
.card-thumb canvas { max-width: 100%; max-height: 100%; box-shadow: 0 2px 10px rgba(0,0,0,.12); }
.card-thumb .live-badge { position: absolute; top: 10px; left: 10px; background: var(--accent); color: #fff; font-size: .72rem; font-weight: 700; padding: 3px 9px; border-radius: 99px; }
.card-body { padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.card-title { font-weight: 700; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card-meta { color: var(--ink-3); font-size: .84rem; }
.card-actions { display: flex; gap: 6px; padding: 0 12px 12px; }
.empty { text-align: center; padding: 50px 20px; border: 2px dashed var(--line); border-radius: 22px; color: var(--ink-2); }
.add-card { border: 2px dashed var(--line); background: transparent; display: grid; place-items: center; min-height: 220px; border-radius: 18px; color: var(--ink-2); font-weight: 600; position: relative; }
.add-card:hover { border-color: var(--accent); color: var(--accent); }
.add-card input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.section-title { font-size: 1.2rem; margin: 40px 0 14px; font-family: var(--body); font-weight: 700; letter-spacing: -0.01em; }

/* ---- modal ---- */
.modal-wrap { position: fixed; inset: 0; z-index: 100; background: rgba(15, 14, 18, .5); display: grid; place-items: center; padding: 16px; opacity: 0; transition: opacity .2s; }
.modal-wrap.in { opacity: 1; }
.modal { position: relative; background: var(--surface); color: var(--ink); border-radius: 22px; padding: 28px; width: min(440px, 100%); max-height: calc(100vh - 32px); overflow: auto; box-shadow: var(--shadow-lg); transform: translateY(8px) scale(.98); transition: transform .2s; }
.modal-wide { width: min(720px, 100%); }
.modal-wrap.in .modal { transform: none; }
.modal-x { position: absolute; top: 12px; right: 12px; width: 34px; height: 34px; border-radius: 50%; border: 0; background: var(--bg-2); font-size: 1.3rem; line-height: 1; }
.modal h2 { font-size: 1.6rem; }
.modal label { display: block; font-weight: 600; font-size: .88rem; margin-bottom: 12px; }
.modal input[type=email], .modal input[type=password], .modal input[type=text], .modal input:not([type]), .modal input[type=search] { display: block; width: 100%; margin-top: 6px; padding: .7em .9em; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); outline: none; }
.modal input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.modal .row { display: flex; gap: 8px; align-items: center; }
.modal .row input { flex: 1; }
.modal .row .btn { margin-top: 6px; }
.hint { color: var(--ink-3); font-size: .84rem; margin: -6px 0 12px; }
.form-error { color: var(--danger); font-size: .88rem; min-height: 1.2em; margin: 4px 0 10px; }
.auth-tabs { display: flex; gap: 4px; background: var(--bg-2); border-radius: 999px; padding: 4px; margin: 0 40px 16px 0; }
.auth-tab { flex: 1; border: 0; background: none; padding: .55em; border-radius: 999px; font-weight: 600; color: var(--ink-2); }
.auth-tab.active { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.auth-reason { color: var(--ink-2); margin: 0 0 16px; }
.auth-providers { display: grid; gap: 8px; }
.or { display: flex; align-items: center; gap: 10px; color: var(--ink-3); font-size: .8rem; margin: 18px 0 14px; }
.or::before, .or::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.auth-fine { color: var(--ink-3); font-size: .82rem; margin: 14px 0 0; }
.profile-meta { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }

.file-list { list-style: none; padding: 0; margin: 12px 0 0; max-height: 50vh; overflow: auto; display: grid; gap: 6px; }
.file-list button { width: 100%; text-align: left; display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); }
.file-list button:hover { border-color: var(--accent); }
.file-list .kind { margin-left: auto; font-size: .75rem; color: var(--ink-3); white-space: nowrap; }

/* ---- toasts ---- */
.toasts { position: fixed; z-index: 200; left: 50%; bottom: 24px; transform: translateX(-50%); display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; width: max-content; max-width: calc(100vw - 32px); }
.toast { pointer-events: auto; display: flex; align-items: center; gap: 12px; background: #17161a; color: #f4f1ec; padding: 10px 16px; border-radius: 14px; box-shadow: var(--shadow-lg); font-size: .92rem; opacity: 0; transform: translateY(10px); transition: opacity .25s, transform .25s; }
.toast.in { opacity: 1; transform: none; }
.toast-success { background: #0f5132; }
.toast-error { background: #a61e1e; }
.toast-action { white-space: nowrap; border: 0; background: rgba(255,255,255,.16); color: #fff; padding: 4px 10px; border-radius: 8px; font-weight: 700; font-size: .85rem; }

/* ---- coachmarks ---- */
.coach { position: fixed; z-index: 150; width: min(300px, calc(100vw - 24px)); background: var(--ink); color: var(--bg); border-radius: 16px; padding: 14px 16px; box-shadow: var(--shadow-lg); opacity: 0; transform: translateY(4px); transition: opacity .25s, transform .25s; font-size: .9rem; }
.coach.in { opacity: 1; transform: none; }
.coach strong { display: block; font-size: 1rem; margin-bottom: 2px; }
.coach p { margin: 0; color: color-mix(in srgb, var(--bg) 80%, transparent); }
.coach-actions { display: flex; gap: 6px; justify-content: flex-end; margin-top: 10px; }
.coach .btn-ghost { color: var(--bg); border-color: color-mix(in srgb, var(--bg) 30%, transparent); }
.coach .btn-ghost:hover { background: color-mix(in srgb, var(--bg) 12%, transparent); }
.coach::before { content: ''; position: absolute; width: 14px; height: 14px; background: var(--ink); transform: rotate(45deg); border-radius: 3px; }
.coach-bottom::before { top: -6px; left: calc(var(--arrow-x) - 7px); }
.coach-top::before { bottom: -6px; left: calc(var(--arrow-x) - 7px); }
.coach-left::before { right: -6px; top: calc(var(--arrow-y) - 7px); }
.coach-right::before { left: -6px; top: calc(var(--arrow-y) - 7px); }
.coach-target { position: relative; z-index: 1; box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 45%, transparent) !important; animation: ring 1.6s infinite; }
@keyframes ring { 0%, 100% { box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 50%, transparent); } 50% { box-shadow: 0 0 0 8px color-mix(in srgb, var(--accent) 15%, transparent); } }

/* ---- v2 additions ---- */
.sbs-checking body { visibility: hidden; }
.tagline { font-family: var(--display); font-weight: 700; font-size: clamp(1.15rem, 4.2cqi, 1.6rem); line-height: 1.2; letter-spacing: -0.02em; margin: 0 0 10px; color: var(--ink); }
.tagline span { color: var(--accent); white-space: nowrap; }
.nowrap { white-space: nowrap; }
.btn-warn { position: relative; }
.warn-ic { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: #f2a516; color: #17161a; font-weight: 900; font-size: .75rem; line-height: 1; flex: none; }
.badge { display: inline-flex; align-items: center; gap: 4px; font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; padding: 2px 8px; border-radius: 6px; background: var(--bg-2); color: var(--ink-2); }
.badge-private { background: #f1e9ff; color: #6741d9; }
.badge-shared { background: #e3f0ff; color: #1c5fd6; }
.badge-public { background: #e3f8ea; color: #12763c; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .badge-private { background: #2c2440; color: #b9a3ff; } :root:not([data-theme="light"]) .badge-shared { background: #1b2a40; color: #8bb8ff; } :root:not([data-theme="light"]) .badge-public { background: #16301f; color: #7fd8a0; } }
.card-thumb .vis { position: absolute; top: 10px; right: 10px; }
.empty-state { text-align: center; padding: 48px 20px; border: 2px dashed var(--line); border-radius: 22px; color: var(--ink-2); }
.empty-state h3 { font-size: 1.3rem; margin-bottom: 6px; }
.invite-card { max-width: 460px; margin: 10vh auto 40px; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 32px; box-shadow: var(--shadow); text-align: center; }
.invite-card h1 { font-size: 1.9rem; }
.invite-card .actions { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 18px; }

/* account deletion */
.danger-zone { margin-top: 18px; padding-top: 12px; border-top: 1px solid var(--line); text-align: right; }
.link-danger { border: 0; background: none; color: var(--danger); font-size: .85rem; font-weight: 600; padding: 4px 0; }
.link-danger:hover { text-decoration: underline; }
.delete-list { padding-left: 18px; color: var(--ink-2); }
.delete-list li { margin-bottom: 6px; }
.btn-danger-solid { background: var(--danger); color: #fff; }
.btn-danger-solid:hover { background: #c92a2a; }

/* same-name upload: new version or new file */
.choice-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px; }
