/* ===========================================================================
   The Human Blueprint — design system
   Built on the original course styling, extended for auth, community & admin.
   =========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,500;0,600;0,700;1,400;1,500;1,600&family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,700;1,9..40,400&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

:root {
  --bg:#F8F6F2; --white:#FFFFFF; --surface:#EDEAE3;
  --border:rgba(0,0,0,0.12); --border2:rgba(0,0,0,0.2);
  --text-dark:#111009; --text-mid:#3A3530; --text-soft:#5A5550;
  --gold:#8A5C10; --gold-bg:rgba(138,92,16,0.09); --gold-bd:rgba(138,92,16,0.25);
  --green:#1E5C36; --green-bg:rgba(30,92,54,0.1);
  --red:#9A2B2B;
  --serif:'Cormorant Garamond',Georgia,serif;
  --sans:'DM Sans',system-ui,sans-serif;
  --r:12px; --rl:16px;
}

body { font-family:var(--sans); background:var(--bg); color:var(--text-dark); min-height:100vh; font-size:18px; line-height:1.7; }
em { font-style:italic; }
button { font-family:var(--sans); }
a { color:var(--gold); }

/* ─── AUTH SCREEN ─── */
.auth-wrap { position:relative; min-height:100vh; display:grid; grid-template-columns:1.1fr 1fr; }

.auth-scroll-cue {
  position:absolute; left:50%; bottom:1.25rem; transform:translateX(-50%);
  display:flex; flex-direction:column; align-items:center; gap:0.15rem;
  background:var(--text-dark); color:#fff; border:none; border-radius:99px;
  padding:0.5rem 1.1rem; font-family:var(--sans); font-size:12px; font-weight:500;
  letter-spacing:0.03em; cursor:pointer; box-shadow:0 4px 16px rgba(0,0,0,0.2);
  animation:auth-scroll-bounce 2.2s ease-in-out infinite;
}
.auth-scroll-cue:hover { background:#2E2A26; }
.auth-scroll-arrow { font-size:14px; line-height:1; }
@keyframes auth-scroll-bounce {
  0%, 100% { transform:translateX(-50%) translateY(0); }
  50% { transform:translateX(-50%) translateY(5px); }
}
@media (max-width:840px){ .auth-scroll-cue { bottom:0.85rem; } }
@media (max-width:840px){ .auth-wrap { grid-template-columns:1fr; } .auth-hero { display:none; } }

.auth-hero {
  background:linear-gradient(150deg,#1A1815 0%,#2A2118 60%,#3A2A12 100%);
  color:#fff; padding:3.5rem 3rem; display:flex; flex-direction:column; justify-content:center;
  position:relative; overflow:hidden;
}
.auth-hero::before { content:''; position:absolute; inset:0; background:radial-gradient(ellipse at 30% 20%,rgba(154,107,30,0.25),transparent 60%); }
.auth-hero-tag { position:relative; font-size:12px; letter-spacing:0.18em; text-transform:uppercase; color:rgba(214,178,110,0.9); margin-bottom:1.5rem; font-weight:500; }
.auth-hero-title { position:relative; font-family:var(--serif); font-size:clamp(2.4rem,4vw,3.6rem); font-weight:700; line-height:1.08; margin-bottom:1.25rem; }
.auth-hero-title em { color:#D6B26E; }
.auth-hero-body { position:relative; font-size:17px; color:rgba(255,255,255,0.72); max-width:420px; line-height:1.7; margin-bottom:2rem; }
.auth-hero-steps { position:relative; list-style:none; display:flex; flex-direction:column; gap:0.6rem; }
.auth-hero-steps li { display:flex; gap:0.75rem; align-items:center; font-size:15px; color:rgba(255,255,255,0.85); }
.auth-hero-steps .n { font-size:12px; color:#D6B26E; min-width:22px; font-weight:500; }
.auth-hero-stats { position:relative; margin-top:2rem; padding-top:1.25rem; border-top:1px solid rgba(255,255,255,0.15); font-size:14px; color:rgba(255,255,255,0.7); }

.auth-panel { display:flex; align-items:center; justify-content:center; padding:2.5rem 1.5rem; }
.auth-card { width:100%; max-width:400px; }
.auth-card h2 { font-family:var(--serif); font-size:2rem; font-weight:700; margin-bottom:0.35rem; }
.auth-card .sub { color:var(--text-mid); font-size:15px; margin-bottom:1.75rem; }
.field { margin-bottom:1rem; }
.field label { display:block; font-size:13px; font-weight:500; color:var(--text-soft); margin-bottom:0.35rem; letter-spacing:0.02em; }
.field input, .field select, .field textarea {
  width:100%; font-family:var(--sans); font-size:16px; color:var(--text-dark);
  background:var(--white); border:1.5px solid var(--border2); border-radius:10px;
  padding:0.7rem 0.9rem; outline:none; transition:border-color 0.15s;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color:rgba(138,92,16,0.55); }
.btn-primary {
  width:100%; font-size:16px; font-weight:500; padding:0.85rem; border-radius:10px;
  background:var(--text-dark); color:#fff; border:none; cursor:pointer; min-height:52px;
  transition:background 0.15s, transform 0.1s;
}
.btn-primary:hover { background:#2E2A26; transform:translateY(-1px); }
.btn-primary:disabled { opacity:0.6; cursor:default; transform:none; }
.btn-begin { display:inline-flex; align-items:center; gap:0.7rem; font-family:var(--sans); font-size:17px; font-weight:500; padding:1rem 2.25rem; background:var(--text-dark); color:#fff; border:none; border-radius:var(--r); cursor:pointer; min-height:56px; text-decoration:none; transition:background 0.15s,transform 0.1s; }
.btn-begin:hover { background:#2E2A26; transform:translateY(-1px); color:#fff; }
#begin { font-size:20px; font-weight:600; padding:1.25rem 3rem; min-height:66px; }
.auth-switch { margin-top:1.25rem; font-size:14px; color:var(--text-mid); text-align:center; }
.auth-switch button { background:none; border:none; color:var(--gold); cursor:pointer; font-size:14px; font-weight:500; text-decoration:underline; text-underline-offset:3px; }
.form-err { background:rgba(154,43,43,0.08); border:1px solid rgba(154,43,43,0.3); color:var(--red); font-size:14px; padding:0.6rem 0.85rem; border-radius:8px; margin-bottom:1rem; }

/* ─── AUTH STORY (long-form landing copy below the fold) ─── */
.auth-story { background:var(--white); border-top:1px solid var(--border); }
.story-bridge {
  background:linear-gradient(150deg,#1A1815 0%,#2A2118 60%,#3A2A12 100%); color:#fff;
  text-align:center; padding:3rem 1.5rem;
}
.story-bridge p { font-family:var(--serif); font-size:clamp(1.4rem,3vw,2rem); font-weight:600; line-height:1.4; max-width:640px; margin:0 auto; }
.story-bridge p:first-child { color:rgba(255,255,255,0.6); }
.story-bridge p + p { color:#D6B26E; margin-top:0.5rem; }

.story-block { max-width:640px; margin:0 auto; padding:3rem 1.5rem; border-bottom:1px solid var(--border); }
.story-block:last-of-type { border-bottom:none; }
.story-block h2 { font-family:var(--serif); font-size:clamp(1.6rem,3vw,2.1rem); font-weight:700; margin-bottom:1rem; }
.story-block p { color:var(--text-mid); margin-bottom:0.9rem; }
.story-block p:last-child { margin-bottom:0; }

.story-list { list-style:none; margin:1.25rem 0; display:flex; flex-direction:column; gap:0.6rem; }
.story-list li { position:relative; padding-left:1.5rem; color:var(--text-mid); }
.story-list li::before { content:'—'; position:absolute; left:0; color:var(--gold); }

.story-steps { list-style:none; margin-top:1.25rem; display:flex; flex-direction:column; gap:0.85rem; }
.story-steps li { display:flex; align-items:flex-start; gap:0.75rem; font-size:16px; color:var(--text-dark); background:var(--gold-bg); border:1px solid var(--gold-bd); border-radius:var(--r); padding:0.75rem 1rem; }

.story-tagline { font-family:var(--serif); font-size:1.4rem; font-weight:700; color:var(--gold); margin:1.25rem 0 !important; }

.story-cta { text-align:center; padding:3rem 1.5rem 4rem; }
.story-cta .btn-primary { width:auto; display:inline-flex; padding:1rem 2.5rem; font-size:17px; }

.auth-footer { text-align:center; padding:0 1.5rem 2.5rem; font-size:13px; color:var(--text-soft); }
.auth-footer a { color:var(--text-soft); text-decoration:underline; text-underline-offset:2px; }
.auth-footer a:hover { color:var(--gold); }

/* legal pages — public, no login required */
.legal-page { min-height:100vh; background:var(--bg); padding:2.5rem 1.5rem; }
.legal-page-inner { max-width:720px; margin:0 auto; }
.legal-back { display:inline-block; margin-bottom:2rem; font-size:14px; color:var(--gold); text-decoration:none; font-weight:500; }
.legal-back:hover { text-decoration:underline; }
#legal-body h1 { font-family:var(--serif); font-size:2rem; font-weight:700; margin-bottom:1.5rem; }
#legal-body .rich h2 { font-family:var(--serif); font-size:1.3rem; margin:1.75rem 0 0.5rem; }
#legal-body .rich p { color:var(--text-mid); line-height:1.7; margin-bottom:1rem; }
.form-note { font-size:13px; color:var(--text-soft); margin-top:0.75rem; line-height:1.5; }

/* ─── APP SHELL ─── */
.shell { display:grid; grid-template-columns:300px 1fr; min-height:100vh; }
.sidebar { background:var(--white); border-right:2px solid var(--border); display:flex; flex-direction:column; position:sticky; top:0; height:100vh; overflow-y:auto; scrollbar-width:thin; }
.sidebar-logo { padding:1.1rem 1.75rem 0.75rem; border-bottom:1px solid var(--border); display:flex; flex-direction:column; align-items:center; justify-content:center; background:var(--white); }
.sidebar-brand { padding:1.75rem 1.75rem 0.3rem; border-bottom:2px solid var(--border); text-align:center; }
.brand-logo { width:118px; height:auto; display:block; margin:0 auto; }
.brand-supertag { font-size:11px; font-weight:700; letter-spacing:0.25em; color:var(--gold); text-align:center; margin-top:0.35rem; }
.brand-motto { font-size:12px; color:var(--text-dark); line-height:1.3; margin-top:0.2rem; text-align:center; }
.brand-tag { font-size:14px; font-weight:500; letter-spacing:0.15em; text-transform:uppercase; color:var(--gold); margin-bottom:0.4rem; }
.brand-name { font-family:var(--serif); font-size:1.5rem; font-weight:700; line-height:1.2; }

.sidebar-progress { padding:0.15rem 1.75rem 0.5rem; margin-top:-0.6rem; border-top:2px solid var(--border); }
.prog-house { display:flex; justify-content:center; margin-top:-0.2rem; margin-bottom:0.25rem; }
.prog-row { display:flex; justify-content:space-between; font-size:14px; font-weight:500; color:var(--text-mid); margin-bottom:0.5rem; }
.prog-bar { height:6px; background:var(--surface); border-radius:99px; overflow:hidden; }
.prog-fill { height:100%; background:var(--gold); border-radius:99px; width:0%; transition:width 0.5s ease; }

.nav-group { padding:0.85rem 0 0.25rem; }
.nav-group-label { font-size:11px; font-weight:500; letter-spacing:0.12em; text-transform:uppercase; color:var(--text-soft); padding:0 1.75rem 0.4rem; display:flex; align-items:center; justify-content:space-between; }
.nav-btn { display:flex; align-items:center; gap:0.75rem; width:100%; padding:0.7rem 1.75rem; background:none; border:none; border-left:3px solid transparent; font-size:15px; color:var(--text-mid); cursor:pointer; text-align:left; line-height:1.4; transition:background 0.12s,color 0.12s,border-color 0.12s; }
.nav-btn:hover { background:var(--surface); color:var(--text-dark); }
.nav-btn.active { background:var(--gold-bg); border-left-color:var(--gold); color:var(--gold); font-weight:500; }
.nav-dot { width:9px; height:9px; border-radius:50%; border:2px solid currentColor; flex-shrink:0; opacity:0.6; }
.nav-btn.active .nav-dot { background:var(--gold); border-color:var(--gold); opacity:1; }
.nav-btn.done .nav-dot { background:var(--green); border-color:var(--green); opacity:1; }
.nav-btn.locked { opacity:0.55; }
.nav-step { font-size:12px; color:var(--text-soft); min-width:20px; }
.nav-btn.active .nav-step { color:var(--gold); }
.lock-ic { margin-left:auto; font-size:12px; opacity:0.6; }
.section-ic { font-size:16px; }

.sidebar-foot { padding:1rem 1.75rem 1.5rem; border-top:1px solid var(--border); }
.user-chip { display:flex; align-items:center; gap:0.65rem; margin-bottom:0.75rem; }
.avatar { width:34px; height:34px; border-radius:50%; background:var(--gold-bg); color:var(--gold); display:flex; align-items:center; justify-content:center; font-weight:600; font-size:15px; flex-shrink:0; }
.user-name { font-size:14px; font-weight:500; line-height:1.2; }
.user-role { font-size:12px; color:var(--text-soft); }
.text-link { font-size:13px; color:var(--text-soft); background:none; border:none; cursor:pointer; padding:0.2rem 0; text-decoration:underline; text-underline-offset:3px; display:block; }
.text-link.danger { color:var(--red); opacity:0.75; }
.text-link.danger:hover { opacity:1; }

/* ─── MAIN / PANELS ─── */
.main { min-height:100vh; min-width:0; display:flex; flex-direction:column; }
.view { display:none; flex:1; flex-direction:column; animation:up 0.25s ease; }
.view.active { display:flex; }
@keyframes up { from{opacity:0;transform:translateY(6px);} to{opacity:1;transform:translateY(0);} }

/* video */
.video-zone { background:#111010; margin:1.75rem 2.5rem 0; border-radius:14px; overflow:hidden; box-shadow:0 8px 28px rgba(0,0,0,0.14); }
@media (max-width:700px){ .video-zone { margin:0; border-radius:0; } }
.video-frame { aspect-ratio:16/9; width:100%; border:none; display:block; background:#000; }
.video-placeholder { aspect-ratio:16/9; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:1rem; position:relative; overflow:hidden; }
.video-placeholder::before { content:''; position:absolute; inset:0; background:radial-gradient(ellipse at center,rgba(154,107,30,0.12) 0%,transparent 70%); }
.play-btn { width:68px; height:68px; border-radius:50%; background:rgba(255,255,255,0.95); display:flex; align-items:center; justify-content:center; position:relative; z-index:1; box-shadow:0 4px 24px rgba(0,0,0,0.3); }
.play-triangle { width:0; height:0; border-top:10px solid transparent; border-bottom:10px solid transparent; border-left:18px solid var(--gold); margin-left:4px; }
.video-label { font-size:15px; color:rgba(255,255,255,0.55); position:relative; z-index:1; }
.video-zone-wrap { position:relative; }
.video-step-tag { position:absolute; top:1rem; left:1rem; font-size:12px; font-weight:500; letter-spacing:0.1em; text-transform:uppercase; color:#D6B26E; background:rgba(0,0,0,0.55); padding:0.3rem 0.8rem; border-radius:99px; z-index:2; }
.video-bar { background:#1A1815; padding:1.1rem 2rem; display:flex; align-items:center; justify-content:space-between; gap:1rem; flex-wrap:wrap; }
.video-bar-title { font-family:var(--serif); font-size:1.2rem; font-style:italic; color:rgba(255,255,255,0.9); }
.video-bar-tip { font-size:13px; color:rgba(255,255,255,0.75); }

/* lesson intro band — minimal step layout (no title chrome) */
.lesson-intro-band { padding:1.1rem 2rem 0; background:var(--white); border-bottom:1px solid var(--border); text-align:center; }
.lesson-intro-band .band-text { font-size:18px; color:var(--text-mid); line-height:1.6; max-width:720px; padding-bottom:1rem; margin:0 auto; }

/* lesson body */
.lesson-body { flex:1; padding:2.5rem 3rem; max-width:820px; width:100%; }
.lesson-eyebrow { font-size:12px; font-weight:500; letter-spacing:0.14em; text-transform:uppercase; color:var(--gold); margin-bottom:0.6rem; }
.lesson-title { font-family:var(--serif); font-size:clamp(2rem,3.5vw,2.8rem); font-weight:700; line-height:1.1; margin-bottom:1rem; }
.lesson-intro { font-size:17px; color:var(--text-mid); line-height:1.75; margin-bottom:2rem; max-width:600px; }

/* welcome */
.welcome-wrap { padding:2.5rem 3rem 3rem; }
.welcome-greeting { font-size:20px; font-weight:500; color:var(--text-mid); margin-bottom:0.75rem; }
.welcome-kicker { font-size:20px; font-weight:500; letter-spacing:0.03em; text-transform:none; color:var(--gold); margin-bottom:1.25rem; }
.welcome-title { font-family:var(--serif); font-size:clamp(2.5rem,5vw,4rem); font-weight:700; line-height:1.06; margin-bottom:1.25rem; }
.welcome-title em, .welcome-title i { color:var(--gold); font-style:italic; }
.welcome-body { font-size:18px; color:var(--text-mid); line-height:1.75; margin-bottom:2.25rem; max-width:540px; }
.steps-list { list-style:none; border:1.5px solid var(--border); border-radius:var(--rl); overflow:hidden; background:var(--white); margin-bottom:2.25rem; }
.steps-list li { display:flex; align-items:center; gap:1.1rem; padding:1rem 1.5rem; border-bottom:1px solid var(--border); }
.steps-list li:last-child { border-bottom:none; }
.sl-num { font-size:12px; font-weight:500; color:var(--gold); min-width:24px; }
.sl-name { font-size:16px; font-weight:500; flex:1; }
.sl-desc { font-size:14px; color:var(--text-soft); }

/* intro sections (welcome + community) */
.intro-section { background:var(--white); border:1.5px solid var(--border); border-radius:var(--rl); padding:2rem 2.25rem; margin-bottom:1.75rem; }
.intro-united { background:var(--gold-bg); border-color:var(--gold-bd); }
.teaser-section { cursor:pointer; transition:border-color 0.12s,transform 0.12s; }
.teaser-section:hover { border-color:var(--gold-bd); transform:translateY(-1px); }
.invite-count { font-size:14px; color:var(--gold); font-weight:500; margin-top:0.75rem; }
.invite-note { background:var(--gold-bg); border:1.5px solid var(--gold-bd); border-radius:10px; padding:0.75rem 1rem; font-size:14px; color:var(--text-dark); margin-bottom:1rem; }
.teaser-post { background:var(--surface); border:1.5px solid var(--border); border-radius:10px; padding:0.9rem 1.1rem; font-size:15px; color:var(--text-mid); line-height:1.6; white-space:pre-wrap; }
.intro-heading { font-family:var(--serif); font-size:1.5rem; font-weight:600; margin-bottom:1rem; line-height:1.3; }
.intro-body { font-size:17px; color:var(--text-mid); line-height:1.8; margin-bottom:0.9rem; }
.intro-body:last-child { margin-bottom:0; }

/* welcome — step path */
.path-track { position:relative; display:flex; justify-content:space-between; align-items:flex-start; gap:0.5rem; padding-top:0.5rem; }
.path-line { position:absolute; top:66px; left:66px; right:66px; height:3px; background:var(--border); z-index:0; }
.path-step { position:relative; z-index:1; display:flex; flex-direction:column; align-items:center; gap:0.6rem; cursor:pointer; flex:1; min-width:0; }
.path-step-img { position:relative; width:132px; aspect-ratio:1/1; border-radius:50%; background:var(--white); border:3px solid var(--border); display:flex; align-items:center; justify-content:center; overflow:hidden; transition:border-color 0.15s,transform 0.15s; }
.path-step-img img { width:78px; height:78px; object-fit:contain; }
.path-step:hover .path-step-img { border-color:var(--gold); transform:translateY(-3px); }
.path-step-check { position:absolute; top:-6px; right:-6px; width:34px; height:34px; border-radius:50%; background:var(--green); color:#fff; font-size:17px; font-weight:700; display:none; align-items:center; justify-content:center; border:2px solid var(--white); }
.path-step.is-done .path-step-img { border-color:var(--green); }
.path-step.is-done .path-step-check { display:flex; }
.path-step-name { font-size:14px; font-weight:500; text-align:center; line-height:1.35; }
@media (max-width:700px){
  .path-line { display:none; }
  .path-track { flex-wrap:wrap; justify-content:center; }
  .path-step { flex:0 0 30%; }
  .path-step-img { width:100px; max-width:100%; }
  .path-step-img img { width:56px; height:56px; max-width:100%; }
}
@media (max-width:360px){
  .path-step { flex:0 0 45%; }
}

/* step preview modal */
.sp-overlay { display:none; position:fixed; inset:0; background:rgba(17,16,9,0.55); z-index:500; align-items:center; justify-content:center; padding:1.5rem; }
.sp-overlay.show { display:flex; }
.sp-card { background:var(--white); border-radius:16px; max-width:520px; width:100%; max-height:88vh; overflow-y:auto; position:relative; box-shadow:0 20px 60px rgba(0,0,0,0.3); padding:2.5rem 2.25rem; }
.sp-close-btn { position:absolute; top:0.75rem; right:0.75rem; width:44px; height:44px; border-radius:50%; border:none; background:var(--surface); color:var(--text-soft); font-size:22px; line-height:1; cursor:pointer; display:flex; align-items:center; justify-content:center; }
.sp-eyebrow { font-size:12px; font-weight:600; letter-spacing:0.12em; text-transform:uppercase; color:var(--gold); margin-bottom:0.5rem; }
.sp-title { font-family:var(--serif); font-size:1.7rem; font-weight:600; margin-bottom:1.25rem; line-height:1.25; }
.sp-block { margin-bottom:1.25rem; }
.sp-block-label { font-size:11px; font-weight:600; letter-spacing:0.1em; text-transform:uppercase; color:var(--text-soft); margin-bottom:0.4rem; }
.sp-block p { font-size:15px; color:var(--text-mid); line-height:1.7; }
@media (max-width:560px){
  .sp-overlay { padding:0.75rem; align-items:flex-end; }
  .sp-card { padding:2.25rem 1.25rem 1.75rem; max-height:92vh; border-radius:16px 16px 0 0; }
}

/* commit & share */
.commit-share-wrap { background:var(--white); border:1.5px solid var(--border); border-top:3px solid var(--green); border-radius:var(--r); overflow:hidden; margin:0 2.5rem 1.5rem; }
@media (max-width:900px){ .commit-share-wrap { margin-left:1.5rem; margin-right:1.5rem; } }
.commit-share-head { display:flex; align-items:flex-start; gap:1rem; padding:1.1rem 1.5rem; background:var(--green-bg); border-bottom:1px solid rgba(30,92,54,0.15); }
.commit-share-icon { font-size:1.5rem; flex-shrink:0; margin-top:2px; }
.commit-share-title { font-size:16px; font-weight:600; color:var(--green); margin-bottom:0.2rem; }
.commit-share-sub { font-size:14px; color:var(--text-mid); line-height:1.55; }
.commit-share-body { padding:1.1rem 1.5rem; }
.commit-share-body textarea { background:var(--surface); min-height:90px; margin-bottom:0.75rem; }
.commit-share-prompt { font-size:14px; color:var(--text-soft); font-style:italic; line-height:1.5; }
.commit-share-prompt a { color:var(--gold); font-weight:600; }

/* reflection */
.reflect-wrap { border-top:2px solid var(--border); padding:2.5rem 3rem; background:var(--white); }
.reflect-heading { font-family:var(--serif); font-size:1.5rem; font-weight:600; margin-bottom:0.4rem; }
.reflect-sub { font-size:15px; color:var(--text-mid); margin-bottom:1.75rem; line-height:1.6; }
.reflect-cards { display:grid; grid-template-columns:1fr 1fr; gap:1.25rem; }
@media (max-width:640px){ .reflect-cards { grid-template-columns:1fr; } }
.reflect-card { background:var(--bg); border:1.5px solid var(--border); border-radius:var(--r); overflow:hidden; }
.rc-head { padding:0.9rem 1.1rem; border-bottom:1.5px solid var(--border); display:flex; align-items:center; gap:0.6rem; background:var(--surface); }
.rc-icon { font-size:18px; }
.rc-label { font-size:15px; font-weight:500; }
.rc-body { padding:1rem 1.1rem; }
.rc-hint { font-size:14px; color:var(--text-mid); margin-bottom:0.65rem; font-style:italic; }
.chips { display:flex; flex-wrap:wrap; gap:0.4rem; margin-bottom:0.8rem; }
.chip { font-size:13px; color:var(--text-mid); background:var(--white); border:1.5px solid var(--border2); border-radius:99px; padding:0.3rem 0.8rem; cursor:pointer; transition:all 0.12s; line-height:1.5; }
.chip:hover { color:var(--gold); border-color:var(--gold-bd); background:var(--gold-bg); }
.iam-list { list-style:none; margin-bottom:0.5rem; }
.iam-row { display:flex; align-items:center; gap:0.6rem; padding:0.45rem 0; border-bottom:1px solid var(--border); }
.iam-row:last-child { border-bottom:none; }
.iam-dash { color:var(--gold); font-size:1.1rem; }
.iam-input { flex:1; font-size:15px; color:var(--text-dark); background:none; border:none; outline:none; min-width:0; line-height:1.5; }
.iam-input::placeholder { color:var(--text-soft); }
.iam-del { background:none; border:none; cursor:pointer; color:var(--text-soft); font-size:16px; padding:0 4px; line-height:1; transition:color 0.12s; }
.iam-del:hover { color:var(--red); }
.iam-add { font-size:14px; color:var(--gold); background:none; border:none; cursor:pointer; display:flex; align-items:center; gap:0.3rem; padding:0.3rem 0; font-weight:500; }
.iam-add:hover { opacity:0.75; }

/* done row + buttons */
.done-row { display:flex; align-items:center; gap:1rem; padding:1.75rem 3rem; border-top:2px solid var(--border); background:var(--bg); justify-content:space-between; flex-wrap:wrap; }
.btn-done { display:inline-flex; align-items:center; gap:0.6rem; font-size:16px; font-weight:500; padding:0.9rem 2rem; border-radius:var(--r); background:var(--text-dark); color:#fff; border:none; cursor:pointer; transition:background 0.15s,transform 0.1s; min-height:52px; }
.btn-done:hover { background:#2E2A26; transform:translateY(-1px); }
.btn-done.done { background:var(--green-bg); color:var(--green); border:2px solid rgba(30,92,54,0.3); }
.btn-next { display:inline-flex; align-items:center; gap:0.5rem; font-size:15px; padding:0.8rem 1.4rem; border-radius:var(--r); background:none; color:var(--text-mid); border:1.5px solid var(--border2); cursor:pointer; min-height:52px; transition:all 0.12s; }
.btn-next:hover { background:var(--white); color:var(--text-dark); }

/* commit / final */
.final-body { flex:1; padding:2.5rem 3rem; }
.commit-card { background:var(--white); border:1.5px solid var(--border); border-radius:var(--r); padding:1.25rem 1.5rem; margin-bottom:1rem; }
.commit-label { font-size:14px; font-weight:500; letter-spacing:0.06em; text-transform:uppercase; color:var(--text-soft); margin-bottom:0.6rem; }
textarea { width:100%; font-family:var(--sans); font-size:16px; color:var(--text-dark); background:var(--surface); border:1.5px solid var(--border); border-radius:8px; padding:0.85rem 1rem; min-height:80px; resize:vertical; outline:none; line-height:1.65; }
textarea:focus { border-color:rgba(138,92,16,0.45); }
.completion-banner { background:var(--gold-bg); border:1.5px solid var(--gold-bd); border-radius:var(--rl); padding:2.25rem 2rem; text-align:center; margin:1.75rem 0; }
.cb-title { font-family:var(--serif); font-size:2rem; font-weight:700; margin-bottom:0.6rem; }
.cb-text { font-size:16px; color:var(--text-mid); line-height:1.7; margin-bottom:0.85rem; }
.cb-quote { font-family:var(--serif); font-size:1.15rem; font-style:italic; color:var(--gold); }

/* blueprint */
.blueprint-section { margin-bottom:1.75rem; }
.bp-step-label { font-size:12px; font-weight:500; letter-spacing:0.12em; text-transform:uppercase; color:var(--gold); margin-bottom:0.75rem; padding-bottom:0.5rem; border-bottom:1.5px solid var(--border); }
.bp-grid { display:grid; grid-template-columns:1fr 1fr; gap:0.75rem; }
@media (max-width:560px){ .bp-grid { grid-template-columns:1fr; } }
.bp-card { background:var(--white); border:1px solid var(--border); border-radius:var(--r); padding:1rem 1.1rem; }
.bp-card-label { font-size:12px; font-weight:500; letter-spacing:0.08em; text-transform:uppercase; color:var(--text-soft); margin-bottom:0.5rem; }
.bp-item { font-family:var(--serif); font-style:italic; font-size:1.05rem; line-height:1.6; padding:0.15rem 0; }

/* generic page header used by community / admin / locked */
.page { flex:1; padding:2.5rem 3rem; max-width:920px; width:100%; }
.page.page-narrow { max-width:none; }
.page-head { margin-bottom:1.75rem; }
.page-eyebrow { font-size:12px; font-weight:500; letter-spacing:0.14em; text-transform:uppercase; color:var(--gold); margin-bottom:0.5rem; }
.page-title { font-family:var(--serif); font-size:clamp(1.9rem,3.5vw,2.6rem); font-weight:700; line-height:1.1; }
.page-sub { font-size:16px; color:var(--text-mid); margin-top:0.5rem; max-width:620px; line-height:1.6; }

/* locked state */
.locked-card { text-align:center; background:var(--white); border:1.5px solid var(--border); border-radius:var(--rl); padding:3rem 2rem; max-width:520px; margin:2rem auto; }
.locked-emoji { font-size:2.5rem; margin-bottom:1rem; }
.locked-card h3 { font-family:var(--serif); font-size:1.6rem; margin-bottom:0.6rem; }
.locked-card p { color:var(--text-mid); font-size:15px; line-height:1.65; }

/* pricing / upgrade */
.pricing-card { max-width:460px; }
.plan-grid { display:grid; grid-template-columns:1fr 1fr; gap:0.9rem; margin-top:1.5rem; }
.plan-btn {
  position:relative; text-align:center; background:var(--white); border:1.5px solid var(--border2);
  border-radius:var(--r); padding:1.25rem 0.75rem; cursor:pointer; transition:border-color 0.15s, transform 0.1s;
  font-family:var(--sans);
}
.plan-btn:hover { border-color:var(--gold); transform:translateY(-1px); }
.plan-btn:disabled { opacity:0.6; cursor:default; transform:none; }
.plan-btn.featured { border-color:var(--gold); background:var(--gold-bg); }
.plan-badge { position:absolute; top:-10px; left:50%; transform:translateX(-50%); background:var(--gold); color:#fff; font-size:11px; font-weight:600; letter-spacing:0.04em; text-transform:uppercase; padding:0.2rem 0.6rem; border-radius:99px; white-space:nowrap; }
.plan-name { font-size:14px; font-weight:500; color:var(--text-soft); margin-bottom:0.4rem; }
.plan-price { font-family:var(--serif); font-size:1.9rem; font-weight:700; color:var(--text-dark); }
.plan-price span { font-family:var(--sans); font-size:14px; font-weight:500; color:var(--text-soft); }

/* community */
.composer { background:var(--white); border:1.5px solid var(--border); border-radius:var(--r); padding:1.1rem 1.25rem; margin-bottom:1.5rem; }
.composer-kind { display:flex; gap:0.4rem; flex-wrap:wrap; margin-bottom:0.75rem; }
.kind-chip { font-size:13px; color:var(--text-mid); background:var(--bg); border:1.5px solid var(--border2); border-radius:99px; padding:0.35rem 0.85rem; cursor:pointer; transition:all 0.12s; }
.kind-chip.active { color:var(--gold); border-color:var(--gold-bd); background:var(--gold-bg); font-weight:500; }
.composer textarea { background:var(--bg); min-height:70px; }
.composer-foot { display:flex; justify-content:space-between; align-items:center; margin-top:0.75rem; }
.composer-foot .count { font-size:13px; color:var(--text-soft); }
.btn-sm { font-size:14px; font-weight:500; padding:0.55rem 1.2rem; border-radius:9px; background:var(--text-dark); color:#fff; border:none; cursor:pointer; transition:background 0.15s; }
.btn-sm:hover { background:#2E2A26; }
.btn-sm.ghost { background:none; color:var(--text-mid); border:1.5px solid var(--border2); }
.btn-sm.ghost:hover { background:var(--white); color:var(--text-dark); }

.activity-strip { display:flex; align-items:center; gap:0.75rem; background:var(--white); border:1.5px solid var(--border); border-radius:var(--r); padding:0.85rem 1.1rem; margin-bottom:0.75rem; flex-wrap:wrap; }
.activity-avatars { display:flex; }
.activity-avatars .avatar { margin-left:-8px; border:2px solid var(--white); }
.activity-avatars .avatar:first-child { margin-left:0; }
.activity-label { font-size:13px; color:var(--text-mid); }
.waiting-banner, .new-activity-banner, .streak-banner { font-size:14px; padding:0.75rem 1rem; border-radius:10px; margin-bottom:0.75rem; }
.waiting-banner { background:var(--gold-bg); border:1.5px solid var(--gold-bd); color:var(--text-dark); }
.new-activity-banner { background:var(--green-bg); border:1.5px solid rgba(30,92,54,0.3); color:var(--green); font-weight:500; }
.streak-banner { background:var(--surface); border:1.5px solid var(--border); color:var(--text-mid); }

.post { background:var(--white); border:1.5px solid var(--border); border-radius:var(--r); padding:1.1rem 1.25rem; margin-bottom:1rem; }
.post-pinned { border-color:var(--gold-bd); border-top:3px solid var(--gold); }
.post-pin-flag { font-size:11px; font-weight:600; color:var(--gold); text-transform:uppercase; letter-spacing:0.04em; margin-bottom:0.5rem; }
.post-head { display:flex; align-items:flex-start; gap:0.7rem; margin-bottom:0.65rem; }
.post-meta { line-height:1.3; flex:1; }
.post-author { font-size:15px; font-weight:500; }
.badge-admin { font-size:10px; font-weight:600; color:var(--gold); background:var(--gold-bg); border:1px solid var(--gold-bd); border-radius:99px; padding:0.1rem 0.5rem; text-transform:uppercase; letter-spacing:0.03em; vertical-align:middle; }
.badge-graduate { font-size:10px; font-weight:600; color:var(--green); background:var(--green-bg); border:1px solid rgba(30,92,54,0.3); border-radius:99px; padding:0.1rem 0.5rem; text-transform:uppercase; letter-spacing:0.03em; vertical-align:middle; }
.post-sub, .post-time { font-size:12px; color:var(--text-soft); }
.post-kind { font-size:12px; font-weight:500; padding:0.2rem 0.65rem; border-radius:99px; white-space:nowrap; }
.post-kind-win { background:var(--gold-bg); color:var(--gold); }
.post-kind-support { background:rgba(154,43,43,0.08); color:var(--red); }
.post-body { font-size:15.5px; color:var(--text-mid); line-height:1.65; white-space:pre-wrap; }
.post-foot { display:flex; align-items:center; gap:0.9rem; margin-top:0.85rem; flex-wrap:wrap; }
.post-act { font-size:13px; color:var(--text-soft); background:none; border:none; cursor:pointer; display:flex; align-items:center; gap:0.3rem; padding:0.2rem 0; }
.post-act:hover { color:var(--text-dark); }
.post-react { font-size:13px; color:var(--text-soft); background:none; border:1.5px solid var(--border2); border-radius:99px; cursor:pointer; display:flex; align-items:center; gap:0.3rem; padding:0.25rem 0.6rem; transition:all 0.12s; }
.post-react:hover { border-color:var(--gold-bd); color:var(--text-dark); }
.post-react.active { color:var(--gold); border-color:var(--gold-bd); background:var(--gold-bg); font-weight:500; }

.post-replies { margin-top:0.85rem; padding-top:0.85rem; border-top:1px solid var(--border); display:flex; flex-direction:column; gap:0.75rem; }
.reply-row { display:flex; align-items:flex-start; gap:0.6rem; }
.reply-body-wrap { flex:1; background:var(--bg); border-radius:10px; padding:0.6rem 0.85rem; }
.reply-meta { display:flex; gap:0.5rem; align-items:baseline; margin-bottom:0.2rem; }
.reply-author { font-size:13px; font-weight:500; color:var(--text-dark); }
.reply-time { font-size:11px; color:var(--text-soft); }
.reply-body { font-size:14px; color:var(--text-mid); line-height:1.55; white-space:pre-wrap; }
.reply-del { background:none; border:none; cursor:pointer; color:var(--text-soft); font-size:13px; padding:0 4px; align-self:center; }
.reply-del:hover { color:var(--red); }
.reply-composer { display:flex; gap:0.5rem; align-items:center; }
.reply-input { flex:1; font-family:var(--sans); font-size:14px; color:var(--text-dark); background:var(--bg); border:1.5px solid var(--border2); border-radius:99px; padding:0.5rem 0.9rem; outline:none; }
.reply-input:focus { border-color:rgba(138,92,16,0.45); }

.post-milestone { background:var(--gold-bg); border:1.5px dashed var(--gold-bd); border-radius:var(--r); padding:0.85rem 1.1rem; margin-bottom:1rem; text-align:center; }
.post-milestone-body { font-family:var(--serif); font-style:italic; font-size:16px; color:var(--text-dark); margin-bottom:0.4rem; }
.post-milestone-foot { display:flex; justify-content:center; align-items:center; gap:0.75rem; flex-wrap:wrap; }

.avatar-sm { width:26px; height:26px; font-size:11px; flex-shrink:0; }
.empty { text-align:center; padding:2.5rem 1rem; color:var(--text-soft); font-style:italic; }

/* admin */
.admin-tabs { display:flex; gap:0.5rem; border-bottom:2px solid var(--border); margin-bottom:1.75rem; flex-wrap:wrap; }
.admin-tab { font-size:14px; font-weight:500; padding:0.6rem 1rem; background:none; border:none; border-bottom:3px solid transparent; color:var(--text-soft); cursor:pointer; margin-bottom:-2px; }
.admin-tab.active { color:var(--gold); border-bottom-color:var(--gold); }
.admin-section { background:var(--white); border:1.5px solid var(--border); border-radius:var(--r); padding:1.5rem; margin-bottom:1.25rem; }
.admin-section h3 { font-family:var(--serif); font-size:1.3rem; margin-bottom:0.25rem; }
.admin-section .hint { font-size:13px; color:var(--text-soft); margin-bottom:1.1rem; line-height:1.5; }
.admin-grid2 { display:grid; grid-template-columns:1fr 1fr; gap:1rem; }
@media (max-width:640px){ .admin-grid2 { grid-template-columns:1fr; } }
.lesson-acc { border:1.5px solid var(--border); border-radius:var(--r); margin-bottom:0.75rem; overflow:hidden; }
.lesson-acc-head { width:100%; display:flex; align-items:center; gap:0.75rem; padding:0.9rem 1.1rem; background:var(--surface); border:none; cursor:pointer; font-size:15px; font-weight:500; text-align:left; }
.lesson-acc-head .step-pill { font-size:11px; font-weight:600; color:var(--gold); background:var(--gold-bg); padding:0.15rem 0.5rem; border-radius:99px; }
.lesson-acc-body { padding:1.25rem 1.1rem; display:none; }
.lesson-acc.open .lesson-acc-body { display:block; }
.lesson-acc-head .caret { margin-left:auto; transition:transform 0.15s; color:var(--text-soft); }
.lesson-acc.open .caret { transform:rotate(90deg); }
.video-set { display:flex; gap:0.6rem; align-items:flex-end; }
.video-set .field { flex:1; margin-bottom:0; }
.step-stat-row { display:grid; grid-template-columns:170px 1fr 56px; align-items:center; gap:0.75rem; margin-bottom:0.6rem; }
.step-stat-label { font-size:13px; color:var(--text-mid); }
.step-stat-bar { height:8px; background:var(--surface); border-radius:99px; overflow:hidden; }
.step-stat-fill { height:100%; background:var(--gold); border-radius:99px; }
.step-stat-fill.fill-green { background:var(--green); }
.step-stat-fill.fill-muted { background:var(--border2); }
.step-stat-count { font-size:12px; color:var(--text-soft); text-align:right; }
@media (max-width:560px){ .step-stat-row { grid-template-columns:1fr; gap:0.25rem; } .step-stat-count { text-align:left; } }
.table-scroll { overflow-x:auto; -webkit-overflow-scrolling:touch; }
table.users { width:100%; min-width:560px; border-collapse:collapse; font-size:14px; }
table.users th { text-align:left; font-size:12px; text-transform:uppercase; letter-spacing:0.06em; color:var(--text-soft); padding:0.6rem 0.5rem; border-bottom:1.5px solid var(--border); font-weight:500; }
table.users td { padding:0.7rem 0.5rem; border-bottom:1px solid var(--border); vertical-align:middle; }
.access-toggles { display:flex; gap:0.75rem; flex-wrap:wrap; }
.toggle { display:flex; align-items:center; gap:0.35rem; font-size:13px; color:var(--text-mid); cursor:pointer; }
.toggle input { width:auto; }
.role-badge { font-size:11px; font-weight:600; text-transform:uppercase; letter-spacing:0.05em; padding:0.2rem 0.55rem; border-radius:99px; }
.role-badge.admin { color:var(--gold); background:var(--gold-bg); }
.role-badge.member { color:var(--text-soft); background:var(--surface); }
.save-bar { position:sticky; bottom:0; background:var(--bg); border-top:2px solid var(--border); padding:1rem 0; margin-top:1rem; display:flex; gap:0.75rem; align-items:center; }
.saved-flash { color:var(--green); font-size:14px; font-weight:500; }

/* rich text rendering (member-facing) */
.rich { font-size:17px; color:var(--text-mid); line-height:1.75; }
.rich p { margin-bottom:0.85em; }
.rich p:last-child { margin-bottom:0; }
.rich h2 { font-family:var(--serif); font-size:1.7rem; color:var(--text-dark); margin:1.2em 0 0.4em; line-height:1.2; }
.rich h3 { font-family:var(--serif); font-size:1.35rem; color:var(--text-dark); margin:1.1em 0 0.35em; line-height:1.25; }
.rich ul, .rich ol { margin:0.6em 0 0.9em 1.4em; }
.rich li { margin-bottom:0.3em; }
.rich a { color:var(--gold); text-decoration:underline; text-underline-offset:2px; }
.rich blockquote { border-left:4px solid var(--gold-bd); background:var(--gold-bg); margin:1em 0; padding:0.6em 1.1em; border-radius:0 var(--r) var(--r) 0; font-family:var(--serif); font-style:italic; font-size:1.2rem; color:var(--text-dark); }
.lesson-intro.rich, .welcome-body.rich { max-width:600px; }
.page-rich { max-width:680px; }

/* rich editor (admin) */
.rich-wrap { border:1.5px solid var(--border2); border-radius:10px; overflow:hidden; background:var(--white); }
.rich-toolbar { display:flex; flex-wrap:wrap; gap:2px; padding:0.4rem 0.5rem; background:var(--surface); border-bottom:1.5px solid var(--border); }
.rich-toolbar .rt { font-size:13px; min-width:30px; padding:0.3rem 0.5rem; background:var(--white); border:1px solid var(--border); border-radius:6px; cursor:pointer; color:var(--text-mid); line-height:1; }
.rich-toolbar .rt:hover { background:var(--gold-bg); color:var(--gold); border-color:var(--gold-bd); }
.rich-editor { min-height:120px; padding:0.85rem 1rem; font-size:15px; line-height:1.7; color:var(--text-dark); outline:none; }
.rich-editor:focus { box-shadow:inset 0 0 0 2px rgba(138,92,16,0.25); }
.rich-editor p { margin-bottom:0.6em; }
.rich-editor h3 { font-family:var(--serif); font-size:1.25rem; margin:0.4em 0; }
.rich-editor ul, .rich-editor ol { margin-left:1.3em; }
.rich-editor:empty::before { content:'Write here…'; color:var(--text-soft); }
.rich-editor.inline { min-height:auto; padding:0.6rem 0.9rem; font-weight:500; }
.rich-editor.inline i, .rich-editor.inline em { color:var(--gold); }

/* admin structural controls */
.lesson-acc-head { display:flex; align-items:center; gap:0.5rem; background:var(--surface); border-bottom:1px solid var(--border); }
.acc-toggle { flex:1; display:flex; align-items:center; gap:0.6rem; padding:0.85rem 1.1rem; background:none; border:none; cursor:pointer; font-size:15px; font-weight:500; text-align:left; color:var(--text-dark); font-family:var(--sans); }
.lesson-acc.open .lesson-acc-head { border-bottom-color:var(--border); }
.lesson-acc:not(.open) .lesson-acc-head { border-bottom:none; }
.acc-controls { display:flex; gap:3px; padding-right:0.6rem; }
.mini-btn { font-size:12px; min-width:28px; height:28px; padding:0 0.4rem; background:var(--white); border:1px solid var(--border2); border-radius:6px; cursor:pointer; color:var(--text-mid); line-height:1; }
.mini-btn:hover:not(:disabled) { background:var(--surface); color:var(--text-dark); }
.mini-btn:disabled { opacity:0.35; cursor:default; }
.mini-btn.add { background:var(--gold-bg); color:var(--gold); border-color:var(--gold-bd); width:auto; padding:0 0.7rem; font-weight:500; }
.mini-btn.danger:hover { background:rgba(154,43,43,0.1); color:var(--red); border-color:rgba(154,43,43,0.3); }
.sub-head { display:flex; align-items:center; justify-content:space-between; gap:0.5rem; margin:1.1rem 0 0.5rem; font-size:13px; font-weight:500; color:var(--text-soft); }
.row-item { display:flex; align-items:flex-start; gap:0.6rem; margin-bottom:0.6rem; }
.row-item .admin-grid2 { flex:1; }
.card-edit { background:var(--bg); border:1.5px solid var(--border); border-radius:var(--r); padding:1rem; margin-bottom:0.75rem; }

/* drag-and-drop reordering */
.drag-handle { display:inline-flex; align-items:center; justify-content:center; min-width:26px; height:28px; cursor:grab; color:var(--text-soft); font-size:15px; border-radius:6px; user-select:none; }
.drag-handle:hover { background:var(--white); color:var(--text-dark); }
.drag-handle:active { cursor:grabbing; }
.lesson-acc.dragging { opacity:0.45; }
.lesson-acc.drop-target { outline:2px dashed var(--gold); outline-offset:2px; }

/* image upload field (admin) */
.img-field { display:flex; align-items:center; gap:0.75rem; flex-wrap:wrap; }
.img-prev { width:60px; height:60px; border-radius:10px; border:1.5px solid var(--border); background:var(--surface); display:flex; align-items:center; justify-content:center; overflow:hidden; flex-shrink:0; }
.img-prev img { width:100%; height:100%; object-fit:cover; }
.img-none { font-size:11px; color:var(--text-soft); text-align:center; padding:0 4px; }
.img-actions { display:flex; gap:0.4rem; }

/* uploaded imagery (member-facing) */
.rc-img { width:26px; height:26px; border-radius:6px; object-fit:cover; flex-shrink:0; }

/* topbar (mobile) */
.topbar { display:none; align-items:center; justify-content:space-between; padding:1rem 1.5rem; background:var(--white); border-bottom:2px solid var(--border); position:sticky; top:0; z-index:200; }
.topbar-title { font-family:var(--serif); font-size:1.15rem; font-weight:600; }
.ham { background:none; border:none; cursor:pointer; display:flex; flex-direction:column; gap:5px; padding:6px; }
.ham span { display:block; width:24px; height:2px; background:var(--text-mid); border-radius:99px; }
.overlay { display:none; position:fixed; inset:0; background:rgba(0,0,0,0.35); z-index:90; }
.overlay.show { display:block; }

.payment-banner { background:#fdf1e0; border-bottom:1.5px solid #e8c896; color:#7a4a12; font-size:14px; padding:0.75rem 1.5rem; text-align:center; }
.payment-banner .text-link { color:#8A5C10; font-weight:600; text-decoration:underline; margin-left:0.5rem; }

@media (max-width:900px){
  .shell { grid-template-columns:1fr; }
  .sidebar { position:fixed; top:0; left:0; bottom:0; width:300px; transform:translateX(-100%); transition:transform 0.25s ease; z-index:100; }
  .sidebar.open { transform:translateX(0); }
  .topbar { display:flex; }
  .lesson-intro-band,.final-body,.reflect-wrap,.done-row,.welcome-wrap,.page { padding-left:1.5rem; padding-right:1.5rem; }
}

/* toast */
#toast { position:fixed; bottom:2rem; left:50%; transform:translateX(-50%); background:#1A1714; color:#fff; font-size:15px; padding:0.8rem 1.6rem; border-radius:10px; z-index:9999; box-shadow:0 4px 20px rgba(0,0,0,0.25); transition:opacity 0.3s; max-width:90vw; text-align:center; pointer-events:none; opacity:0; }

::-webkit-scrollbar { width:5px; }
::-webkit-scrollbar-thumb { background:var(--border2); border-radius:99px; }

@media print {
  .sidebar,.topbar,.video-zone,.video-bar,.done-row,.overlay,.save-bar { display:none !important; }
  .shell { grid-template-columns:1fr; }
  .view:not(#view-blueprint) { display:none !important; }
  #view-blueprint { display:flex !important; }
}
