:root{--bg:#f8f7f3;--paper:#fff;--ink:#2c342f;--muted:#7c887d;--line:#e5e8df;--sage:#4e6a56;--sage2:#dae4d8;--gold:#bda27b;--lav:#eee7ea;--danger:#a8574f;--shadow:0 18px 55px rgba(40,52,39,.055);--serif:Georgia,'Times New Roman',serif;--sans:'Segoe UI',Arial,sans-serif}
*{box-sizing:border-box}html,body{margin:0;min-height:100%;background:var(--bg);color:var(--ink);font-family:var(--sans);font-size:14px;-webkit-font-smoothing:antialiased}button,input,select,textarea{font:inherit}button{cursor:pointer}button:disabled{opacity:.5;cursor:wait}a{color:inherit;text-decoration:none}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #97b69e;outline-offset:2px}h1,h2,h3,p{margin-top:0}h1,h2,.serif{font-family:var(--serif);font-weight:normal}h1{font-size:clamp(37px,4vw,62px);line-height:1.14;letter-spacing:-1.3px}h2{font-size:clamp(25px,2.5vw,36px)}h3{font-size:19px}p{line-height:1.68}small,.small{font-size:12px;color:var(--muted)}.eyebrow{font-size:10px;font-weight:750;letter-spacing:.2em;text-transform:uppercase;color:var(--sage)}.muted{color:var(--muted)}.loading{min-height:90vh;display:grid;align-content:center;justify-items:center;gap:16px;color:var(--sage)}.loading .moon{font-family:var(--serif);font-size:70px;color:var(--gold)}.loading p{letter-spacing:.06em;font-size:12px}#toast{position:fixed;right:22px;bottom:22px;z-index:99;max-width:380px;background:#354f3d;color:white;box-shadow:var(--shadow);padding:14px 20px;border-radius:12px;opacity:0;transform:translateY(15px);transition:opacity .18s,transform .18s;pointer-events:none;font-size:13px;line-height:1.5}#toast.show{opacity:1;transform:translateY(0)}#toast.error{background:#9f534d}.btn{border:1px solid transparent;display:inline-flex;align-items:center;justify-content:center;gap:9px;border-radius:11px;padding:12px 19px;min-height:43px;font-size:12px;font-weight:700;transition:background .15s,transform .15s}.btn:hover:not(:disabled){transform:translateY(-1px)}.btn-primary{background:var(--sage);color:white}.btn-primary:hover{background:#3b5643}.btn-soft{background:#edf1e9;color:#43634a}.btn-ghost{background:white;border-color:#dbe2d7;color:#49604e}.btn-alert{background:#fff4f2;border-color:#f2dfd8;color:var(--danger)}.btn-small{padding:7px 11px;min-height:32px;border-radius:9px;font-size:11px}.btn-wide{width:100%}.stack{display:grid;gap:15px}.row{display:flex;align-items:center;gap:12px}.between{justify-content:space-between}.wrap{flex-wrap:wrap}.grow{flex:1;min-width:0}.field{display:block;width:100%;border:1px solid #dde3d9;background:#fff;border-radius:10px;padding:12px 13px;font-size:13px;color:var(--ink);min-height:45px}.field:focus{border-color:#9ab5a0}.field-label{display:grid;gap:7px;font-size:11px;letter-spacing:.02em;font-weight:700;color:#6a796c}.field-label textarea{resize:vertical;min-height:90px}.field-help{font-size:11px;color:#89948b}.section-rule{height:1px;background:var(--line);border:0;margin:23px 0}.pill{display:inline-flex;align-items:center;gap:7px;padding:7px 11px;border-radius:30px;background:#edf1ec;color:#55735a;font-size:10px;font-weight:700;letter-spacing:.02em}.pill-warn{background:#fff4df;color:#926c3b}.pill-neutral{background:#f4f1ed;color:#7d746d}.pill-bad{background:#fff1ee;color:#ae655d}.dot{width:6px;height:6px;border-radius:50%;background:#84a18b}.card{background:#fff;border:1px solid var(--line);border-radius:17px;box-shadow:var(--shadow)}.card-pad{padding:24px}.card h3{margin:0 0 10px}.card p:last-child{margin-bottom:0}.empty{padding:39px 27px;text-align:center;border:1px dashed #d8ddd3;border-radius:16px;background:#fbfcf9}.empty strong{font-family:var(--serif);font-size:23px;font-weight:normal;display:block;margin-bottom:8px}.empty p{max-width:430px;margin:0 auto;color:var(--muted);font-size:13px}.auth-page{min-height:100vh;display:grid;grid-template-columns:minmax(0,1fr) minmax(360px,.75fr)}.auth-art{background:#e8eae0;position:relative;overflow:hidden;padding:55px min(6vw,100px);display:flex;flex-direction:column;justify-content:space-between}.auth-art:before,.auth-art:after{content:"";border:1px solid rgba(88,119,94,.19);border-radius:50%;position:absolute;width:570px;height:570px;right:-80px;top:24%;pointer-events:none}.auth-art:after{width:400px;height:400px;right:4px;top:35%}.auth-brand{font-family:var(--serif);font-size:31px;letter-spacing:5px;position:relative;z-index:2}.auth-brand small{font-family:var(--sans);display:block;font-size:10px;letter-spacing:.4em;color:var(--sage);margin-top:5px}.auth-art h1{max-width:590px;z-index:2;position:relative;margin-bottom:20px}.auth-art h1 em,.hero h1 em{color:var(--sage);font-weight:normal}.auth-art p{position:relative;z-index:2;max-width:380px;color:#758476;font-size:13px}.orbit-stones{position:absolute;right:13%;top:38%;width:300px;height:280px;opacity:.83}.stone{position:absolute;border-radius:50%;box-shadow:inset 12px 12px 26px #fff9,inset -15px -10px 24px #223d3326,0 17px 25px #1a2c2316}.s1{width:170px;height:170px;background:radial-gradient(circle at 32% 24%,#e9f2d9,#8da994 60%,#536c5d);left:75px;top:20px}.s2{width:90px;height:90px;background:radial-gradient(circle at 30% 20%,#faf1ee,#cdb8b7 57%,#ac8388);left:15px;top:155px}.s3{width:58px;height:58px;background:radial-gradient(circle at 25% 20%,#fffbed,#d1b784,#9d835a);right:2px;top:180px}.auth-quote{font-family:var(--serif);font-style:italic;font-size:22px;max-width:380px;line-height:1.4;z-index:2;position:relative;color:#5f745f}.auth-side{display:flex;align-items:center;justify-content:center;padding:48px 36px}.auth-content{width:min(390px,100%)}.auth-content h2{font-size:38px;margin:14px 0 12px}.auth-content p{color:var(--muted);font-size:13px}.auth-form{display:grid;gap:17px;margin-top:29px}.pending-code{font-family:ui-monospace,'Consolas',monospace;display:block;background:#edf2ec;border:1px dashed #b5c7b4;border-radius:11px;padding:22px 12px;margin:20px 0;letter-spacing:.09em;text-align:center;font-weight:bold;font-size:clamp(18px,3vw,25px);color:#38593e;user-select:all}.site{display:grid;grid-template-columns:252px minmax(0,1fr);min-height:100vh}.sidebar{background:white;border-right:1px solid var(--line);padding:32px 17px 23px;position:sticky;top:0;height:100vh;display:flex;flex-direction:column}.brand{display:flex;align-items:center;gap:12px;padding:0 17px}.brand-word{font-family:var(--serif);font-size:23px;letter-spacing:.15em}.brand-word span{display:block;font-family:var(--sans);font-size:9px;color:#879e88;letter-spacing:.34em;margin-top:4px}.sidebar-sub{padding:24px 17px 37px;font-size:10px;color:#a1a99f}.menu-label{font-size:10px;letter-spacing:.02em;color:#9ba59e;font-weight:800;padding:0 15px 14px}.menu{display:grid;gap:3px}.menu-item{display:flex;align-items:center;gap:11px;width:100%;border:0;background:transparent;border-radius:10px;text-align:left;padding:13px 13px;font-size:12px;font-weight:650;color:#6c7b6f}.menu-item:hover{background:#f4f7f2}.menu-item.active{background:#e9f0e7;color:#476b4c}.menu-symbol{font-size:17px;width:22px;font-family:var(--serif);text-align:center;color:#78917a}.sidebar-bottom{margin-top:auto;padding:14px;background:#f7f8f5;border:1px solid var(--line);border-radius:14px;display:grid;gap:8px}.sidebar-bottom strong{font-size:12px}.sidebar-bottom small{line-height:1.55}.main-col{min-width:0;display:flex;flex-direction:column}.topbar{min-height:76px;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;padding:0 clamp(18px,4vw,65px);background:#f9f9f5}.topbar-title{font-size:10px;letter-spacing:.18em;color:#8c998e;font-weight:700}.topbar-actions{display:flex;align-items:center;gap:13px}.user-initial{display:grid;place-items:center;border-radius:50%;background:#e8d9c8;color:#79644e;width:36px;height:36px;font-family:var(--serif);font-size:18px}.content{width:min(1290px,100%);margin:0 auto;flex:1;padding:35px clamp(18px,4vw,65px) 70px}.site-footer{padding:0 clamp(18px,4vw,65px) 24px;font-size:10px;letter-spacing:.15em;color:#9ba49a}.mobile-nav-toggle{display:none}.heading{display:flex;align-items:end;justify-content:space-between;gap:20px;margin:0 0 23px}.heading h2{margin:9px 0 0}.heading p{font-size:12px;color:var(--muted);margin:8px 0 0}.hero{border:1px solid #e1e5dc;border-radius:22px;min-height:330px;background:linear-gradient(115deg,#e9eae0,#f4efe8 75%,#e5e9df);padding:48px 52px;position:relative;overflow:hidden;display:flex;align-items:center}.hero-inner{max-width:540px;z-index:2;position:relative}.hero h1{margin:17px 0}.hero p{color:#738072;font-size:13px;max-width:410px}.hero .orbit-stones{right:9%;top:24%;transform:scale(.8)}.stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:22px 0 32px}.stat{padding:21px 24px}.stat strong{display:block;font-family:var(--serif);font-size:31px;font-weight:normal;margin-bottom:7px}.stat span{font-size:11px;color:var(--muted)}.grid-courses{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:17px}.course{overflow:hidden}.course-art{height:147px;background:linear-gradient(115deg,#d5e0d3,#eef0e4 45%,#e9e1d9);position:relative;overflow:hidden}.course-art:before,.course-art:after{position:absolute;content:'';border-radius:50%;box-shadow:inset 13px 14px 30px #fff8,inset -11px -14px 30px #2e4c3921}.course-art:before{width:125px;height:125px;background:radial-gradient(circle at 40% 30%,#e3efd8,#7e9a82);top:11px;right:22%}.course-art:after{width:68px;height:68px;background:radial-gradient(circle at 40% 30%,#ffece6,#bd9297);top:67px;right:10%}.course-body{padding:22px}.course-body h3{font-family:var(--serif);font-size:24px;font-weight:normal;margin:10px 0}.course-body p{color:var(--muted);font-size:12px;margin-bottom:18px}.progress-line{height:5px;background:#eef1eb;border-radius:8px;overflow:hidden}.progress-line span{display:block;height:100%;background:#7f9b83}.lesson-list{display:grid;gap:12px}.lesson-row{display:grid;grid-template-columns:47px 1fr auto;align-items:center;gap:15px;text-align:left;width:100%;border:1px solid var(--line);background:white;border-radius:14px;padding:18px 20px;color:var(--ink)}.lesson-row:hover{border-color:#b7cab8;background:#fdfefc}.lesson-num{font-family:var(--serif);font-size:22px;color:#a3b3a1}.lesson-row h3{font-size:15px;margin:0 0 5px;font-family:var(--sans);font-weight:650}.lesson-row p{font-size:11px;margin:0;color:var(--muted)}.lesson-status{font-size:11px;color:var(--sage);background:#f0f4ee;border-radius:25px;padding:7px 9px}.lesson-layout{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(240px,.8fr);gap:20px}.player{aspect-ratio:16/9;background:radial-gradient(circle at 35% 28%,#e3e7d9,#c5d0c1 55%,#b6c7b8);border-radius:14px;display:grid;place-items:center;text-align:center;padding:30px;position:relative;overflow:hidden}.player:before,.player:after{content:'';position:absolute;width:350px;height:350px;border-radius:50%;border:1px solid #fff8;pointer-events:none}.player:after{width:240px;height:240px}.player-inner{z-index:2;max-width:410px}.play-icon{display:grid;place-items:center;margin:0 auto 18px;width:68px;height:68px;border-radius:50%;border:1px solid #fff;background:#ffffffb8;font-size:25px;color:#557b61}.player h3{font-family:var(--serif);font-size:25px;font-weight:normal;margin:0 0 9px}.player p{font-size:12px;color:#627266}.aside-card{padding:23px}.aside-card h3{font-family:var(--serif);font-weight:normal;font-size:22px}.aside-card p{font-size:12px;color:var(--muted)}.library-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.mineral{padding:23px;display:grid;gap:10px}.mineral .gem{font-family:var(--serif);font-size:41px;color:#9eb1a4}.mineral strong{font-family:var(--serif);font-size:22px;font-weight:normal}.mineral p{font-size:12px;color:var(--muted)}.admin-tabs{display:flex;flex-wrap:wrap;gap:7px;margin-bottom:22px}.admin-tabs .btn.active{background:#dce8da;color:#385d42}.admin-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.table-wrap{overflow-x:auto}.table{width:100%;border-collapse:collapse;font-size:12px;min-width:600px}.table th,.table td{border-bottom:1px solid var(--line);padding:13px 11px;text-align:left;vertical-align:middle}.table th{font-size:10px;color:#829186;letter-spacing:.1em;text-transform:uppercase}.table tr:last-child td{border-bottom:none}.table strong{font-weight:700}.device-entry,.request-entry{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:15px 0;border-bottom:1px solid var(--line)}.device-entry:last-child,.request-entry:last-child{border-bottom:0}.device-entry p,.request-entry p{font-size:11px;color:var(--muted);margin:4px 0 0}.choice{display:flex;gap:8px;align-items:center;font-size:11px;cursor:pointer}.choice input{accent-color:#537658}.admin-section{margin-top:24px}.section-caption{color:var(--muted);font-size:12px;margin-bottom:20px}.mono{font-family:Consolas,monospace}.inline-error{padding:13px 15px;color:#994d4b;background:#fff3f0;border:1px solid #f2d9d2;border-radius:10px;font-size:12px}.top-notice{background:#f7f2e8;border:1px solid #e9dfce;border-radius:12px;padding:13px 16px;font-size:12px;color:#8b765e;margin-bottom:20px}
@media(max-width:1100px){.hero .orbit-stones{right:-10%}.library-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:850px){.auth-page{grid-template-columns:1fr}.auth-art{min-height:200px;padding:30px 28px}.auth-art h1{font-size:34px;max-width:490px}.auth-art p,.auth-quote,.auth-art .orbit-stones{display:none}.auth-side{padding:35px 22px}.auth-content{max-width:460px}.site{grid-template-columns:1fr}.sidebar{display:none;position:fixed;height:100%;width:265px;left:0;z-index:51;box-shadow:0 10px 100px #17261925}.sidebar.open{display:flex}.mobile-nav-toggle{display:inline-flex;border:1px solid var(--line);border-radius:9px;background:white;padding:7px 10px;color:var(--sage)}.topbar{padding:0 20px}.content{padding:24px 20px 55px}.site-footer{padding:0 20px 20px}.hero{padding:36px 30px}.lesson-layout{grid-template-columns:1fr}.admin-grid{grid-template-columns:1fr}}@media(max-width:540px){.hero{padding:32px 25px;min-height:305px}.hero h1{font-size:36px}.hero .orbit-stones{opacity:.22;right:-32%}.stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.stats>.stat:last-child{grid-column:1/-1}.stat{padding:17px}.grid-courses,.library-grid{grid-template-columns:1fr}.card-pad{padding:20px}.lesson-row{grid-template-columns:31px 1fr;gap:8px;padding:17px 15px}.lesson-status{grid-column:2;justify-self:start}.heading{display:block}.heading .btn{margin-top:10px}.topbar-title{font-size:9px;letter-spacing:.08em}.topbar-actions .pill{display:none}.auth-side{padding:32px 20px}.auth-content h2{font-size:31px}.admin-tabs .btn{padding:9px 11px}.request-entry,.device-entry{align-items:flex-start;flex-direction:column}}

.spaced-top{margin-top:18px}.spaced-top-small{margin-top:12px}.spaced-top-med{margin-top:15px}.spaced-top-mini{margin-top:5px}.spaced-bottom{margin-bottom:23px}.pad-top{padding-top:22px}.search-box{max-width:440px;margin-bottom:23px}.lesson-row.read-only{cursor:default}.progress-line{display:block;width:100%;height:6px;appearance:none;-webkit-appearance:none;border:0;border-radius:8px;overflow:hidden;background:#eef1eb}.progress-line::-webkit-progress-bar{background:#eef1eb}.progress-line::-webkit-progress-value{background:#7f9b83;border-radius:8px}.progress-line::-moz-progress-bar{background:#7f9b83}
[hidden]{display:none!important}

/* LunaVi palette and editorial photography */
:root {
  --bg: #fbf7f2;
  --paper: #fffcf8;
  --ink: #2e2129;
  --muted: #6e5a61;
  --line: #e6d9d8;
  --sage: #713b53;
  --sage2: #eedee4;
  --gold: #b79778;
  --lav: #f0e3e8;
  --shadow: 0 18px 48px #37212f0d;
  --plum-dark: #24131d;
  --plum-soft: #f2e5e9;
  --warm-white: #fff6ed;
  --jewelry-photo: url('/moonstone-necklace.webp');
}

button:focus-visible, a:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible {
  outline-color: #9a5f78;
}

.auth-page {
  min-height: 100svh;
  grid-template-columns: minmax(0, 1.25fr) minmax(360px, 1fr);
}

.auth-art {
  background: #33202b;
  background-image: linear-gradient(180deg, #21121ab8 0%, #21121a00 30%, #21121a00 46%, #1b1118 100%), var(--jewelry-photo);
  background-position: center, center bottom;
  background-size: cover;
  color: var(--warm-white);
  padding: clamp(33px, 5vw, 80px);
  isolation: isolate;
}

.auth-art::before, .auth-art::after,
.course-art::before, .course-art::after,
.player::before, .player::after { display: none; }

.auth-brand {
  width: fit-content;
  display: grid;
  justify-items: center;
  font-size: clamp(30px, 3.4vw, 48px);
  line-height: 1;
  letter-spacing: .045em;
}

.auth-brand > span {
  color: #dec29e;
  font-family: var(--serif);
  font-size: 29px;
  margin-bottom: 8px;
}

.auth-brand small {
  color: #f0d9c7;
  font-size: 9px;
  letter-spacing: .36em;
  margin-top: 10px;
}

.auth-intro { margin-top: clamp(260px, 38vh, 480px); }
.auth-intro .eyebrow { color: #e2c4b4; font-size: 10px; margin-bottom: 15px; }
.auth-art h1 { font-size: clamp(38px, 5.1vw, 76px); margin: 0 0 17px; line-height: 1.02; }
.auth-art h1 em { display: block; color: #ead0d2; }
.auth-intro p { color: #f7e6de; font-size: 14px; margin: 0; }
.auth-side { background: var(--bg); padding: clamp(31px, 4vw, 60px); }
.auth-content { width: min(100%, 430px); }
.auth-content h2 { font-size: clamp(32px, 4vw, 48px); line-height: 1.09; }
.auth-content > p { font-size: 14px; }
.auth-form { gap: 16px; margin-top: 24px; }

.btn { border-radius: 8px; }
.btn-primary:hover { background: #522b3d; }
.btn-soft { background: var(--plum-soft); color: #582c40; }
.btn-ghost { background: var(--paper); border-color: var(--line); color: #62394a; }
.field { background: var(--paper); border-color: #d8c8ca; border-radius: 8px; }
.field:focus { border-color: #9a5f78; }
.field-label { color: #58454d; font-size: 12px; }
.field-help, .site-footer, .sidebar-sub, .menu-label { color: var(--muted); }
.pending-code { background: var(--plum-soft); color: #582c40; border-color: #b899a8; }
#toast { background: #522b3d; }

.sidebar, .card, .lesson-row { background: var(--paper); }
.brand-word { letter-spacing: .045em; }
.brand-word span, .menu-symbol, .topbar-title { color: #78475d; }
.sidebar-bottom, .topbar { background: var(--bg); }
.menu-item { color: #604b54; }
.menu-item:hover, .lesson-row:hover { background: #f8ecf1; }
.menu-item.active { background: var(--plum-soft); color: #582c40; }
.lesson-row:hover { border-color: #c6a8b5; }
.pill, .lesson-status { color: #65384d; background: var(--plum-soft); }
.pill-warn { color: #744f25; background: #f8ebd7; }
.pill-neutral { color: #635255; background: #f2eae7; }
.pill-bad { color: var(--danger); background: #fff1ee; }
.dot { background: #99667d; }
.user-initial { color: #6a3f52; background: #eedde4; }

.hero {
  border-color: var(--line);
  border-radius: 17px;
  background: linear-gradient(120deg, #f4e6e9, #faf0e7);
}
.hero-inner { width: 70%; }
.hero p { color: #654d59; }
.hero h1 { font-size: clamp(33px, 4vw, 58px); }
.hero-art {
  position: absolute;
  inset: 0 0 0 auto;
  width: 46%;
  background: linear-gradient(90deg, #f7ebe8 0%, #f7ebe800 36%), #35202d var(--jewelry-photo) center 55% / cover no-repeat;
  pointer-events: none;
}
.course-art { background: #35202d var(--jewelry-photo) center 54% / cover no-repeat; }
.player { background: linear-gradient(135deg, #f7ebe6, #ebdbe5); }
.player p, .lesson-num, .mineral .gem, .table th { color: #79566a; }
.progress-line, .progress-line::-webkit-progress-bar { background: var(--plum-soft); }
.progress-line::-webkit-progress-value { background: #8a516d; }
.progress-line::-moz-progress-bar { background: #8a516d; }
.choice input { accent-color: #713b53; }
.dashboard-note { border-color: #c29bad; color: var(--muted); }
.empty { background: var(--paper); border-color: var(--line); }

@media (max-width: 850px) {
  .auth-page { grid-template-columns: 1fr; }
  .auth-art { padding: 25px clamp(23px, 6vw, 48px); }
  .auth-brand > span { font-size: 22px; margin-bottom: 5px; }
  .auth-intro { margin-top: clamp(90px, 20vw, 160px); }
  .auth-art h1 { font-size: clamp(36px, 8vw, 59px); margin-bottom: 9px; }
  .auth-art h1 em { display: inline; }
  .auth-intro p { display: block; }
  .auth-intro .eyebrow { margin-bottom: 9px; }
  .auth-side { padding: 30px clamp(23px, 6vw, 48px) 40px; }
}

@media (max-width: 540px) {
  .auth-art h1 em { display: block; }
  .auth-intro p { font-size: 13px; }
  .hero-inner { width: 100%; }
  .hero-art { width: 60%; opacity: .24; }
}

.brand {
  color: #82536a;
  gap: 12px;
}

.brand .brand-word { color: var(--ink); line-height: 1.05; }
.brand .brand-word span { margin-top: 6px; }

.brand-on-cover {
  color: #e8cdbb;
  position: relative;
  padding: 0;
  gap: 15px;
}

.brand-on-cover .brand-word { color: var(--warm-white); font-size: clamp(32px, 4vw, 56px); }
.brand-on-cover .brand-word span { color: #f0d9c7; margin-top: 9px; }

.menu-item { gap: 11px; }
.jewel-icon {
  --gem-color: #78475d;
  --gem-tint: #eedce6;
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  color: var(--gem-color);
}
.jewel-icon .gem-fill { fill: var(--gem-tint); }
.jewel-overview { --gem-color: #7d4d61; --gem-tint: #ead2d9; }
.jewel-confirmation { --gem-color: #565f54; --gem-tint: #dce5d8; }
.jewel-students { --gem-color: #7e5570; --gem-tint: #ecdae7; }
.jewel-courses { --gem-color: #866143; --gem-tint: #f1e0c3; }
.jewel-lessons { --gem-color: #595b82; --gem-tint: #e1e2f2; }
.jewel-journal { --gem-color: #735469; --gem-tint: #e7d8e6; }
.jewel-library { --gem-color: #576c7f; --gem-tint: #dbe8ee; }

.hero-with-cover {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, .92fr);
  padding: 0;
  align-items: stretch;
  min-height: 0;
}
.hero-with-cover .hero-inner { width: 100%; align-self: center; padding: clamp(27px, 4vw, 49px); }
.hero-with-cover h1 { font-size: clamp(32px, 3.8vw, 56px); }
.hero-cover {
  position: relative;
  margin: 0;
  min-height: 320px;
  background: #26171f;
}
.hero-cover img { position: absolute; width: 100%; height: 100%; object-fit: cover; object-position: center 63%; }
.hero-cover figcaption {
  position: absolute;
  inset: auto 0 0;
  padding: 25px 18px 14px;
  color: #fff3e8;
  font-size: 11px;
  letter-spacing: .04em;
  background: linear-gradient(transparent, #21121ad9);
}

.course-admin-card h3 { font-family: var(--serif); font-size: 26px; font-weight: normal; }
.course-emblem {
  display: grid;
  place-items: center;
  width: 49px;
  height: 49px;
  border: 1px solid #eadcce;
  border-radius: 12px;
  background: #f8efe2;
  margin-bottom: 20px;
}
.course-emblem .jewel-icon { width: 30px; height: 30px; }
.course-facts { display: flex; flex-wrap: wrap; gap: 16px 27px; padding: 13px 0; border-top: 1px solid var(--line); }
.course-facts dt { font-size: 12px; color: var(--muted); }
.course-facts dd { margin: 4px 0 0; font-family: var(--serif); font-size: 25px; }

.lesson-video { display: grid; justify-items: start; gap: 12px; margin-top: 12px; }
.lesson-video video { display: block; width: 100%; aspect-ratio: 16 / 9; background: #21151b; border-radius: 12px; }
.lesson-video .lesson-video-status { margin: 0; color: var(--muted); font-size: 13px; }

@media (max-width: 620px) {
  .hero-with-cover { grid-template-columns: 1fr; }
  .hero-cover { order: -1; min-height: 0; aspect-ratio: 1.55; }
  .hero-cover img { object-position: center 61%; }
}

.lesson-video [hidden] { display: none; }

.admin-create summary { cursor: pointer; font-weight: 700; }

.progress-summary .progress-line { display:block; width:min(100%,520px); height:10px; accent-color:var(--sage); }


/* Lesson view */
.lesson-focus {
  --bg: #f7f2ed;
  --ink: #30262c;
  --sage: #633b52;
  --line: #dfd2ca;
  --muted: #65565f;
  background: var(--bg);
}
.lesson-focus .sidebar, .lesson-focus .topbar { background: #f9f4ef; }
.lesson-focus .menu-item.active { background: #633b52; color: #fff; }
.lesson-focus .menu-item.active .jewel-icon { color: #fff; --gem-tint: #835970; }
.lesson-focus .user-initial { background: #f5ebe5; color: #633b52; border: 1px solid #c9aaa9; }
.workshop-lesson { max-width: 1040px; margin: 0 auto; }
.lesson-return { border: 0; background: transparent; padding: 9px 0; color: #405e62; font-weight: 650; }
.lesson-return:hover { text-decoration: underline; text-underline-offset: 4px; }
.workshop-heading { padding: clamp(18px, 3vw, 35px) 0 24px; }
.workshop-course { color: #633b52; margin-bottom: 8px; font-size: 13px; font-weight: 650; }
.workshop-heading h2 { font-size: clamp(32px, 5vw, 56px); line-height: 1.08; letter-spacing: -.025em; margin: 0 0 12px; }
.workshop-intro { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 18px; color: #65565f; }
.workshop-intro p { margin: 0; }
.workshop-duration { font-variant-numeric: tabular-nums; white-space: nowrap; }
.workshop-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(16px, 2.5vw, 26px); }
.workshop-gallery { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:clamp(12px,2.1vw,22px); }
.workshop-screen { border-radius: 22px; background: #30262c; overflow:hidden; color: #f7f2ed; }
.workshop-screen .lesson-video { margin: 0; gap: 0; }
.workshop-screen .lesson-video video { border-radius:0; }
.workshop-screen .lesson-video-status { color: #f7f2ed; padding: 10px 12px; }
.workshop-screen .lesson-video button { margin: 0 12px 12px; }
.workshop-notes { display:grid; gap:clamp(12px,2.1vw,22px); min-width:0; }
.workshop-notes.has-materials { grid-template-columns:repeat(2,minmax(0,1fr)); }
.workshop-notes .card { background: #fcf8f4; border: 1px solid #dfd2ca; border-radius: 18px; box-shadow: none; }
.workshop-notes .admin-section { margin: 0; }
.workshop-notes h3 { font: 23px/1.15 var(--serif); margin: 0 0 12px; }
.workshop-notes ul { padding-left: 18px; line-height: 1.6; margin-bottom: 0; }
.workshop-notes li + li { margin-top: 6px; }
.workshop-notes .btn-primary { background: #633b52; }
.workshop-notes .btn-primary:hover { background: #502e43; }
.workshop-notes .btn:disabled { background: #e7d8df; color: #533348; opacity: 1; cursor: default; }
.enrollment-editor { margin-bottom: 8px; min-width: 190px; }
.enrollment-editor summary { cursor: pointer; font-weight: 650; }
@media (max-width: 650px) {
  .workshop-gallery,.workshop-notes.has-materials { grid-template-columns:minmax(0,1fr); }
  .workshop-heading { padding-top: 14px; padding-bottom: 18px; }
  .workshop-screen { border-radius: 17px; }
  .lesson-focus .topbar { padding-inline: 12px; }
  .lesson-focus .topbar-actions { gap: 6px; }
}

/* Encyclopedia */
.mineral-guide { --guide-ink:#30262c; --guide-accent:#633b52; --guide-line:#dfd2ca; color:var(--guide-ink); }
.guide-filters { display:grid; grid-template-columns:minmax(0,2fr) minmax(0,1fr); gap:12px; }
.guide-results { margin:12px 0 18px; color:#65565f; }
.guide-group + .guide-group { margin-top:26px; }
.guide-group h3 { font:25px/1.15 var(--serif); margin-bottom:12px; }
.guide-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; align-items:start; }
.guide-card { background:#fcf8f4; border:1px solid var(--guide-line); border-radius:14px; padding:0 15px; }
.guide-card summary { cursor:pointer; padding:13px 0; color:var(--guide-accent); font-weight:700; }
.guide-card summary small { display:inline-block; margin-left:8px; color:#65565f; }
.guide-card-body { padding:2px 0 12px; }
.guide-card-body dl { margin-bottom:0; }
.guide-card-body dt { font-weight:700; margin-top:10px; }
.guide-card-body dd { margin:3px 0 0; line-height:1.55; }
.guide-sources { margin-top:24px; color:#65565f; font-size:13px; }
.guide-sources a { color:#405e62; text-decoration:underline; text-underline-offset:2px; }
@media(max-width:620px){.guide-filters,.guide-grid{grid-template-columns:1fr;}}

.brand { display: grid; justify-items: start; gap: 5px; }
.brand-logo { display:block; position:relative; overflow:hidden; width: clamp(94px, 11vw, 125px); aspect-ratio: 659 / 219; }
.brand-logo img { position:absolute; width:146.89%; max-width:none; height:auto; left:-24.74%; top:-58.45%; }
.brand-caption { font-size:9px; font-weight:650; letter-spacing:.25em; color:#78475d; }
.brand-on-cover .brand-logo { width:clamp(127px, 18vw, 206px); }
.brand-on-cover .brand-logo img { filter:brightness(0) invert(1); }
.brand-on-cover .brand-caption { color:#f0d9c7; }

.device-limit-form { display:grid; gap:5px; margin-top:10px; min-width:105px; }
.device-limit-form input { width:92px; min-height:32px; padding:6px 9px; }

/* LunaVi Art */
:root {
  --bg: #f5f0ec;
  --paper: #fffcf8;
  --ink: #2a252c;
  --muted: #62555c;
  --line: #ded3ce;
  --sage: #56374b;
  --plum-soft: #eee3e9;
  --metal: #8d665a;
  --easing: cubic-bezier(.22,.61,.36,1);
}
.sidebar { background:#faf6f2; padding-top:37px; border-right-color:#ded3ce; }
.brand { min-height:48px; }
.sidebar-sub { padding-bottom:28px; }
.menu { gap:5px; }
.menu-item { position:relative; border-radius:12px; min-height:43px; font-size:13px; transition:background .18s,color .18s; }
.menu-item.active,.lesson-focus .menu-item.active { background:#56374b; color:#fff9f5; }
.menu-item.active::before { content:""; position:absolute; top:11px; bottom:11px; left:0; width:2px; border-radius:0 3px 3px 0; background:#eac8a9; }
.menu-item.active .jewel-icon { color:#fff5ee; --gem-tint:#82556d; }
.topbar { background:#faf6f2; border-bottom-color:#ded3ce; }
.topbar-title { color:#644e5a; }
.user-initial { background:#efe5df; border:1px solid #d5beb3; color:#56374b; }
.content { padding-top:clamp(23px,3.8vw,48px); }
.heading h2 { font-size:clamp(32px,4.4vw,50px); letter-spacing:-.02em; line-height:1.04; }
.heading p { font-size:14px; }
.card,.lesson-row,.guide-card { border:1px solid var(--line); box-shadow:none; }
.card { border-radius:17px; }
.lesson-row { border-radius:13px; transition:background .18s,border-color .18s; }
.lesson-row:hover { background:#fbf6f2; border-color:#ae8997; }
.lesson-row h3 { font-size:15px; }
.btn { min-height:39px; border-radius:10px; transition:background .18s,border-color .18s; }
.btn-small { min-height:33px; }
.btn:hover:not(:disabled) { transform:none; }
.btn-primary { background:#56374b; }
.btn-primary:hover { background:#412b3a; }
.auth-form .btn { min-height:45px; }
.course-admin-card,.progress-summary { border-top:2px solid #a4777c; }
.progress-summary .progress-line { border-radius:5px; }
.workshop-screen { box-shadow:0 12px 30px #30202a1c; }
.workshop-notes .card { border-radius:15px; }
.guide-card summary:hover { color:#3d5861; }
.guide-card[open] { border-color:#b3959d; }
.enrollment-editor summary:hover { color:#633b52; }
@keyframes lunavi-page-enter { from { opacity:.92; transform:translateY(5px); } to { opacity:1; transform:translateY(0); } }
@media (prefers-reduced-motion:no-preference) {
  .content.page-enter { animation:lunavi-page-enter .27s var(--easing) both; }
}
@media (max-width:620px) {
  .heading h2 { font-size:34px; }
  .content { padding-inline:16px; }
  .menu-item { min-height:44px; }
}
@media (prefers-reduced-motion:reduce) {
  .content.page-enter { transform:none; animation:none; }
  .menu-item,.lesson-row,.btn { transition:none; }
}




.brand { --wordmark-width:clamp(94px,11vw,125px); gap:5px; justify-content:start; }
.brand-on-cover { --wordmark-width:clamp(127px,18vw,206px); }
.brand .brand-logo, .brand-signature { width:var(--wordmark-width); }
.brand-signature { display:block; height:auto; mix-blend-mode:multiply; }
.brand-on-cover .brand-signature { mix-blend-mode:screen; filter:invert(1); }

/* Course album */
.lesson-row.has-frame { grid-template-columns: minmax(84px, 112px) minmax(0, 1fr) auto; gap: clamp(9px, 2vw, 21px); padding: 10px 16px 10px 10px; }
.lesson-thumb { position:relative; display:grid; overflow:hidden; place-items:center; aspect-ratio:4/3; background:#efe5df; border-radius:9px; }
.lesson-thumb .lesson-frame-image { width:100%; height:100%; position:absolute; inset:0; object-fit:contain; }
.lesson-thumb .lesson-num { position:absolute; left:4px; top:4px; background:#fcf8f2; color:#604350; border-radius:5px; font-size:12px; line-height:1; padding:4px 5px; z-index:1; }
.course-body p, .lesson-row p { line-height:1.55; }
.lesson-row p { color:#695860; }
.course-art.has-frame { height:clamp(170px, 25vw, 245px); display:grid; place-items:center; background:#eee2e2; }
.course-art.has-frame .lesson-frame-image { width:100%; height:100%; display:block; object-fit:contain; }
.lesson-frame { margin:0; border:1px solid #dfd2ca; border-radius:16px; background:#fcf8f4; overflow:hidden; }
.lesson-frame-window { display:grid; place-items:center; background:#ede4df; }
.lesson-frame-result .lesson-frame-window { aspect-ratio:1.2; }
.lesson-frame-detail .lesson-frame-window { aspect-ratio:16/9; }
.workshop-gallery .lesson-frame { min-width:0; background:var(--paper); border-color:var(--line); }
.workshop-gallery .lesson-frame-window { aspect-ratio:4/3; }
.workshop-gallery .lesson-frame-window .lesson-frame-image { object-fit:cover; }
.lesson-frame-window .lesson-frame-image { width:100%; height:100%; object-fit:contain; display:block; min-height:0; }
.lesson-frame-caption { display:flex; flex-wrap:wrap; align-items:baseline; justify-content:space-between; gap:3px 12px; padding:11px 14px; font-size:13px; font-weight:600; }
.admin-lesson-frames { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; margin-top:16px; align-items:start; }
@media(max-width:650px){
  .admin-lesson-frames { grid-template-columns:1fr; }
}
@media(max-width:540px){
  .lesson-row.has-frame { grid-template-columns:76px minmax(0,1fr); align-items:center; gap:4px 10px; }
  .lesson-row.has-frame .lesson-thumb { grid-row:1/3; }
  .lesson-row.has-frame .lesson-status { padding:4px 8px; }
}


.site-mineral-picker { display:flex; align-items:center; gap:7px; color:var(--muted); }
.site-mineral-picker select { width:auto; padding:6px; max-width:177px; }
@media(max-width:650px){.site-mineral-picker span{display:none}.site-mineral-picker select{max-width:122px}}
html[data-mineral-theme]:not([data-mineral-theme="classic"]) .site .main-col {
  background:linear-gradient(100deg,var(--mineral-wash),transparent 76%),var(--mineral-texture) center/cover fixed;
}
html[data-mineral-theme]:not([data-mineral-theme="classic"]) .site :is(.sidebar,.topbar,.sidebar-bottom,.card,.lesson-row,.guide-card,.guide-card summary,.next-lesson,.lesson-view,.field) {
  background-color:var(--paper); color:var(--ink); border-color:var(--line);
}
html[data-mineral-theme]:not([data-mineral-theme="classic"]) .site :is(.heading,.site-footer) { color:var(--ink); }
html[data-mineral-theme]:not([data-mineral-theme="classic"]) .site .heading > div {
  padding:10px 14px; border-radius:8px; background:var(--mineral-wash);
}
html[data-mineral-theme]:not([data-mineral-theme="classic"]) .site :is(.menu-item:hover,.menu-item.active,.lesson-row:hover,.btn-soft,.guide-card summary:hover) {
  background-color:var(--sage2); color:var(--ink);
}
html[data-mineral-theme="black-tourmaline"] .site .brand-logo img { filter:brightness(0) invert(1); }
html[data-mineral-theme="black-tourmaline"] .site .brand-signature { filter:invert(1); mix-blend-mode:screen; }
html[data-mineral-theme="black-tourmaline"] .site :is(.menu-item,.btn-ghost,.topbar-title,.sidebar-bottom strong) { color:var(--ink); }
html[data-mineral-theme="black-tourmaline"] .site :is(.menu-item .jewel-icon,.sidebar-bottom small,.site-mineral-picker) { color:var(--muted); }
@media (hover:none),(pointer:coarse) {
  html[data-mineral-theme]:not([data-mineral-theme="classic"]) .site .main-col { background-attachment:scroll; }
}

:root{--stone-image-lab:url("/stone-photos/lab.webp");}
html[data-mineral-theme="lab"]{--bg:#dce8f0;--paper:#edf5f7;--ink:#213747;--muted:#415e6e;--line:#90acba;--sage2:#d2e7ec;--mineral-wash:#dceaf1e8;--mineral-texture:var(--stone-image-lab);color-scheme:light;}
:root{--stone-image-crystal:url("/stone-photos/crystal.webp");}
html[data-mineral-theme="crystal"]{--bg:#edf0ef;--paper:#f8faf8;--ink:#233138;--muted:#415861;--line:#9bacb0;--sage2:#dce7e6;--mineral-wash:#eef2f2e8;--mineral-texture:var(--stone-image-crystal);color-scheme:light;}
:root{--stone-image-amethyst:url("/stone-photos/amethyst.webp");}
html[data-mineral-theme="amethyst"]{--bg:#e9def0;--paper:#f8f0fa;--ink:#432d53;--muted:#634d72;--line:#a58db4;--sage2:#e9d8f1;--mineral-wash:#ecdef3e8;--mineral-texture:var(--stone-image-amethyst);color-scheme:light;}
:root{--stone-image-rose:url("/stone-photos/rose.webp");}
html[data-mineral-theme="rose"]{--bg:#efd9d5;--paper:#f8e5e0;--ink:#492a32;--muted:#69434a;--line:#b98890;--sage2:#eac8c7;--mineral-wash:#f1dbd6e8;--mineral-texture:var(--stone-image-rose);color-scheme:light;}
:root{--stone-image-blue-agate:url("/stone-photos/blue-agate.webp");}
html[data-mineral-theme="blue-agate"]{--bg:#dfe9f3;--paper:#f0f6fc;--ink:#233b54;--muted:#3e5972;--line:#8aa6bd;--sage2:#d2e3f2;--mineral-wash:#e2edf7e8;--mineral-texture:var(--stone-image-blue-agate);color-scheme:light;}
:root{--stone-image-moss-agate:url("/stone-photos/moss-agate.webp");}
html[data-mineral-theme="moss-agate"]{--bg:#e3e7d8;--paper:#f4f3e7;--ink:#2d412f;--muted:#4d604b;--line:#92a38b;--sage2:#dce4cf;--mineral-wash:#e8ecdfe8;--mineral-texture:var(--stone-image-moss-agate);color-scheme:light;}
:root{--stone-image-moonstone:url("/stone-photos/moonstone.webp");}
html[data-mineral-theme="moonstone"]{--bg:#eae7df;--paper:#faf7ef;--ink:#30394a;--muted:#4e5867;--line:#9fa8b4;--sage2:#e0e6ee;--mineral-wash:#ede9e0e8;--mineral-texture:var(--stone-image-moonstone);color-scheme:light;}
:root{--stone-image-fluorite:url("/stone-photos/fluorite.webp");}
html[data-mineral-theme="fluorite"]{--bg:#e6e9ee;--paper:#f2effa;--ink:#30394a;--muted:#465760;--line:#92aaa5;--sage2:#dceee4;--mineral-wash:#ebdff5e8;--mineral-texture:var(--stone-image-fluorite);color-scheme:light;}
:root{--stone-image-smoky-quartz:url("/stone-photos/smoky-quartz.webp");}
html[data-mineral-theme="smoky-quartz"]{--bg:#f3eee6;--paper:#faf7f1;--ink:#3b352f;--muted:#61564d;--line:#b6ab9e;--sage2:#ebe3d9;--mineral-wash:#faf6eee8;--mineral-texture:var(--stone-image-smoky-quartz);color-scheme:light;}
:root{--stone-image-dendritic-opal:url("/stone-photos/dendritic-opal.webp");}
html[data-mineral-theme="dendritic-opal"]{--bg:#eae8e2;--paper:#f8f6ef;--ink:#343b3b;--muted:#515b58;--line:#9fa8a1;--sage2:#e2e8e2;--mineral-wash:#eeeae2e8;--mineral-texture:var(--stone-image-dendritic-opal);color-scheme:light;}
:root{--stone-image-aquamarine:url("/stone-photos/aquamarine.webp");}
html[data-mineral-theme="aquamarine"]{--bg:#e1eef1;--paper:#f0f8f8;--ink:#244551;--muted:#3e6069;--line:#86aab1;--sage2:#d3eae9;--mineral-wash:#e3f0f3e8;--mineral-texture:var(--stone-image-aquamarine);color-scheme:light;}
:root{--stone-image-nacre:url("/stone-photos/nacre.webp");}
html[data-mineral-theme="nacre"]{--bg:#f1e8e4;--paper:#faf3ec;--ink:#493c48;--muted:#66545f;--line:#b9a7b0;--sage2:#efe1e5;--mineral-wash:#f5ebe5e8;--mineral-texture:var(--stone-image-nacre);color-scheme:light;}
:root{--stone-image-black-tourmaline:url("/stone-photos/black-tourmaline.webp");}
html[data-mineral-theme="black-tourmaline"]{--bg:#101113;--paper:#1b1d21;--ink:#f1f0ed;--muted:#c5c6cb;--line:#555961;--sage2:#252830;--mineral-wash:#111216e8;--mineral-texture:var(--stone-image-black-tourmaline);color-scheme:dark;}

.student-hero {
  display:grid; grid-template-columns:minmax(0,1.08fr) minmax(0,1fr);
  padding:0; background:var(--paper); color:var(--ink); overflow:hidden;
}
.student-hero .hero-inner {
  width:auto; min-width:0; padding:clamp(22px,4vw,48px); align-self:center;
}
.student-hero :is(h1,h1 em) { color:var(--ink); }
.student-hero :is(p,.eyebrow) { color:var(--muted); }
.student-hero-photo { margin:0; min-width:0; align-self:stretch; display:grid; background:#291e26; }
.student-hero-photo img { width:100%; height:100%; max-height:430px; object-fit:contain; object-position:center; display:block; }
@media(max-width:850px) {
  .student-hero { grid-template-columns:minmax(0,1fr); }
  .student-hero-photo img { height:auto; max-height:340px; }
}

.course-art.course-art-workshop {
  display:block; height:auto; aspect-ratio:3/2; background:#e9dfd4;
}
.course-art-workshop img { display:block; width:100%; height:100%; object-fit:contain; }

.lesson-illustration-label { display:block; font-size:.84em; color:var(--muted); margin-top:3px; }
