:root {
  color-scheme: light; --bg:#f4f6fb; --surface:#fff; --ink:#171f3b; --muted:#4e5e76;
  --line:#dce4ef; --mint:#bef5d0; --green:#116645; --lav:#eeeaff; --accent:#473cb7;
  --red:#9f2631; --shadow:0 12px 30px rgba(30,40,75,.065);
  font-family: system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
}
* { box-sizing:border-box; }
body { margin:0; color:var(--ink); background:var(--bg); line-height:1.55; }
a { color:var(--accent); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline:3px solid #6255d9; outline-offset:3px; }
.top { background:#141c36; color:white; }
.top-inner { max-width:1100px; margin:auto; padding:13px 22px; display:flex; align-items:center; justify-content:space-between; }
.brand { display:inline-flex; align-items:center; gap:10px; text-decoration:none; color:white; font-size:1.19rem; font-weight:800; letter-spacing:-.03em; }
.brand img { display:block; }
.layout,.single { margin:auto; padding:24px 20px; min-height:calc(100vh - 126px); }
.layout { max-width:1100px; } .single { max-width:570px; }
.hero { background:#20284a; color:white; border-radius:20px; padding:clamp(23px,5vw,47px); margin-bottom:22px; position:relative; overflow:hidden; }
.hero::after { content:""; position:absolute; width:270px; height:270px; right:-116px; top:-145px; border:32px solid rgba(190,245,208,.16); border-radius:50%; pointer-events:none; }
.hero.compact { padding:clamp(22px,6vw,36px); }
.hero h1 { font-size:clamp(2rem,7vw,3.8rem); max-width:17ch; letter-spacing:-.055em; line-height:1.02; margin:9px 0 13px; }
.hero p:not(.eyebrow) { margin:0; max-width:46ch; color:#e4ebfc; }
.eyebrow { color:var(--accent); font-size:.73rem; font-weight:800; letter-spacing:.12em; margin:0; }
.hero .eyebrow { color:var(--mint); }
.dashboard { display:grid; grid-template-columns:minmax(0,.92fr) minmax(0,1.08fr); gap:22px; align-items:start; }
.card { background:var(--surface); border:1px solid var(--line); border-radius:18px; padding:clamp(18px,3vw,26px); box-shadow:var(--shadow); min-width:0; }
.card h2,.section-title h2 { font-size:1.26rem; margin:0; letter-spacing:-.035em; }
.card h3 { margin:0; font-size:1.47rem; letter-spacing:-.04em; }
.card p { margin-top:.4rem; overflow-wrap:anywhere; }
.muted,.optional { color:var(--muted); } .optional { font-weight:400; }
.form-stack { display:grid; gap:14px; margin-top:17px; }
label { display:block; font-size:.91rem; font-weight:650; min-width:0; }
input,select,textarea { display:block; width:100%; min-width:0; margin-top:5px; background:#fff; color:var(--ink); border:1px solid #aebbd0; font:inherit; font-weight:400; border-radius:8px; padding:9px 11px; min-height:44px; }
textarea { resize:vertical; }
.split { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.btn { min-height:44px; padding:9px 14px; display:inline-flex; justify-content:center; align-items:center; gap:8px; border:1px solid transparent; border-radius:9px; font:inherit; font-weight:720; cursor:pointer; text-decoration:none; }
.primary { background:#473cb7; color:#fff; } .primary:hover { background:#372d96; } .primary span { margin-left:auto; }
.secondary { background:var(--lav); color:#34298e; white-space:nowrap; } .secondary:hover { background:#e2dbfe; }
.dark { background:#273454; color:#fff; font-size:.88rem; }
.notice { border-radius:8px; padding:10px 14px; background:#e3f7ea; color:#165b3d; margin:0 0 15px; }
.notice.error { background:#ffeced; color:#84272e; } ul.notice { padding-left:34px; }
.section-title,.slot-head { display:flex; justify-content:space-between; align-items:center; gap:12px; }
.section-title { margin:3px 1px 11px; } .section-title span { color:var(--muted); font-size:.85rem; }
.slot { margin-bottom:12px; } .highlight { border-color:#6f5fce; }
.pill { display:inline-block; padding:5px 9px; border-radius:50px; background:#eef1f7; color:var(--muted); font-size:.77rem; font-weight:750; white-space:nowrap; }
.pill.open { background:#def6e8; color:var(--green); } .pill.claimed { background:var(--lav); color:#34298e; }
.link-row,.slot-actions { display:flex; align-items:center; gap:8px; }
.link-row input { margin-top:0; background:#f7f8fc; }
.slot-actions { justify-content:space-between; flex-wrap:wrap; }
.text-btn { padding:5px 0; min-height:34px; display:inline-flex; align-items:center; color:var(--accent); border:0; background:none; font:inherit; font-size:.87rem; cursor:pointer; }
.danger { color:var(--red); }
.copy-feedback { display:block; font-size:.83rem; color:var(--green); margin:4px 0; }
.copy-feedback:empty { display:none; }
.claim-info,.lesson-note { padding:10px 12px; background:#f2effe; border-radius:8px; overflow-wrap:anywhere; }
.claim-info span { color:var(--muted); }
.empty { text-align:center; padding:28px 14px; } .dash-icon { color:var(--accent); font-size:1.7rem; }
.facts { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.facts dt { font-size:.82rem; color:var(--muted); } .facts dd { margin:0; font-weight:650; overflow-wrap:anywhere; }
hr { border:0; border-top:1px solid var(--line); margin:20px 0; }
.footer { text-align:center; color:var(--muted); font-size:.78rem; padding:17px 10px; } .footer span { padding:0 4px; }
.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; }
@media (max-width:720px) { .dashboard { grid-template-columns:1fr; } }
@media (max-width:360px) { .split {grid-template-columns:1fr;} .layout,.single {padding:15px 12px;} }
.top-actions,.language-switch { display:flex; align-items:center; gap:8px; flex-wrap:wrap; justify-content:flex-end; }
.language-switch a { color:#e4ebfc; font-size:.8rem; padding:6px; border-radius:6px; text-decoration:none; }
.language-switch a[aria-current] { color:#fff; background:#3a4671; text-decoration:underline; }
.wa { margin-top:8px; }
@media (max-width:390px){ .top-inner {padding-inline:13px;} .top-actions,.language-switch{gap:4px;} .language-switch a{padding:4px;} .dark{padding-inline:7px;} }

/* Private owner workspace navigation */
.owner-nav { margin-block: 0 1rem; }
.owner-nav nav { display:flex; flex-wrap:wrap; gap:.45rem; }
.owner-nav nav a { display:inline-flex; align-items:center; min-height:44px; padding:.45rem .8rem; border:1px solid #d5daea; border-radius:.65rem; background:#fff; color:#272356; font-weight:700; text-decoration:none; }
.owner-nav nav a[aria-current="page"] { background:#272356; border-color:#272356; color:#fff; }

.slot-history { margin-top: 1rem; }
.slot-history > summary { cursor: pointer; font-weight: 700; }
.slot-history > form { margin: .75rem 0; }
.slot-history > .slot { margin-top: .75rem; }
