/* Quillmoor: a working online learning demo (concept project, made-up sample data only). */
:root {
  --bg: #f7f5f0; --surface: #ffffff; --surface-2: #faf8f3; --surface-3: #f2efe7; --border: #e8e3d8; --border-2: #d9d2c3;
  --text: #271435; --text-2: #4d385c; --muted: #796786; --faint: #ada2b6;
  --primary: #7e22ce; --primary-2: #6b21a8; --primary-soft: #f3e8ff; --primary-ring: rgba(126, 34, 206, .22);
  --marker: #ffd23f; --marker-2: #f5b800; --marker-soft: #fff5cc; --marker-ink: #7a5600;
  --coral: #f2553d; --coral-soft: #ffece8;
  --green: #15803d; --green-soft: #e4f6ea; --amber: #b45309; --amber-soft: #fef1d9; --red: #d92d3a; --red-soft: #fdeaec;
  --blue: #7e22ce; --blue-soft: #f3e8ff; --gray-soft: #f0eee8;
  --ink: #241132; --ink-2: #331b45; --ink-text: #dcc7eb; --ink-muted: #a189b3;
  --chart-1: #7e22ce; --chart-2: #b98af5; --ring-track: #ebe8f1; --star: #f5b400;
  --shadow-sm: 0 1px 2px rgba(39, 20, 53, .06);
  --shadow: 0 1px 2px rgba(39, 20, 53, .04), 0 8px 24px rgba(39, 20, 53, .06);
  --shadow-lg: 0 30px 80px rgba(39, 20, 53, .22);
  --r: 18px; --r-sm: 12px;
  --font: "Segoe UI Variable Text", "Segoe UI", -apple-system, BlinkMacSystemFont, "SF Pro Text", Roboto, "Helvetica Neue", Arial, sans-serif;
  --display: "Segoe UI Variable Display", "Segoe UI", -apple-system, BlinkMacSystemFont, "SF Pro Display", Roboto, Arial, sans-serif;
  --serif: Georgia, "Iowan Old Style", "Palatino Linotype", "Times New Roman", serif;
  --mono: Consolas, "Cascadia Mono", "SF Mono", Menlo, monospace;
  color-scheme: light;
}
[data-theme="dark"] {
  --bg: #120a17; --surface: #1f1229; --surface-2: #261631; --surface-3: #2f1c3d; --border: #392449; --border-2: #4c335e;
  --text: #f7eefe; --text-2: #dac9e7; --muted: #af98c0; --faint: #7b618e;
  --primary: #c084fc; --primary-2: #d8b4fe; --primary-soft: rgba(192, 132, 252, .15); --primary-ring: rgba(192, 132, 252, .32);
  --marker: #ffd84d; --marker-soft: rgba(255, 216, 77, .13); --marker-ink: #ffd84d;
  --coral: #ff8a73; --coral-soft: rgba(255, 138, 115, .14);
  --green: #4ade80; --green-soft: rgba(74, 222, 128, .12); --amber: #fbbf24; --amber-soft: rgba(251, 191, 36, .13); --red: #fb7185; --red-soft: rgba(251, 113, 133, .14);
  --blue: #c99bfc; --blue-soft: rgba(192, 132, 252, .15); --gray-soft: #2f1c3d;
  --ink: #0f0714; --ink-2: #241430;
  --chart-1: #c084fc; --chart-2: #8e3fd9; --ring-track: #3a254a;
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 10px 28px rgba(0, 0, 0, .35);
  --shadow-lg: 0 30px 80px rgba(0, 0, 0, .55);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font: 14.5px/1.5 var(--font); -webkit-font-smoothing: antialiased; }
body { min-height: 100vh; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p, figure, blockquote { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
.i { flex: none; display: block; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.grow { flex: 1; min-width: 0; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.center { text-align: center; justify-content: center; }
.mt { margin-top: 20px; }
.w100 { width: 100%; }
.only-m { display: none !important; }
:focus-visible { outline: 3px solid var(--primary-ring); outline-offset: 2px; border-radius: 8px; }
em { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--primary); letter-spacing: -.01em; }
[data-theme="dark"] em { color: var(--marker); }
.link { border: 0; background: none; padding: 0; color: var(--primary); font-weight: 650; display: inline-flex; gap: 6px; align-items: center; }
.link:hover { text-decoration: underline; }
.tiny { font-size: 12.5px; color: var(--muted); display: flex; gap: 6px; align-items: center; margin-top: 10px; }
.tiny.center { justify-content: center; }
.sep { height: 1px; background: var(--border); margin: 16px 0; }

/* ---------- basic components ---------- */
.btn { height: 42px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 16px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font-weight: 650; white-space: nowrap; box-shadow: var(--shadow-sm); transition: border-color .15s, background .15s, transform .1s; }
.btn:hover { border-color: var(--border-2); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-primary { background: linear-gradient(180deg, #8b2fdb, #7e22ce); border-color: #6b21a8; color: #fff; box-shadow: 0 8px 18px rgba(126, 34, 206, .26), inset 0 1px 0 rgba(255, 255, 255, .22); }
.btn-primary:hover { border-color: #6b21a8; background: linear-gradient(180deg, #9438e6, #7220c0); }
[data-theme="dark"] .btn-primary { background: linear-gradient(180deg, #a24bf0, #8b2fd9); border-color: #b366f5; box-shadow: 0 8px 22px rgba(139, 47, 217, .35); }
.btn-marker { background: linear-gradient(180deg, #ffdc5c, #ffd023); border-color: #f2c014; color: #271435; box-shadow: 0 8px 18px rgba(245, 184, 0, .28), inset 0 1px 0 rgba(255, 255, 255, .5); }
.btn-marker:hover { background: linear-gradient(180deg, #ffe170, #ffcc12); }
.btn-white { background: #fff; color: #271435; border-color: transparent; }
.btn-ghost { background: transparent; border-color: transparent; box-shadow: none; color: var(--text-2); }
.btn-ghost:hover { background: var(--surface-3); }
.btn-danger { background: var(--red-soft); color: var(--red); border-color: transparent; box-shadow: none; }
.btn-done { background: var(--green-soft); color: var(--green); border-color: transparent; box-shadow: none; }
.btn-sm { height: 34px; padding: 0 12px; border-radius: 10px; font-size: 13px; }
.btn-lg { height: 52px; font-size: 15.5px; border-radius: 14px; padding: 0 22px; }
.icon-btn { position: relative; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); color: var(--text-2); box-shadow: var(--shadow-sm); flex: none; }
.icon-btn:hover { border-color: var(--border-2); color: var(--text); }
.icon-btn.sm { width: 32px; height: 32px; border-radius: 9px; box-shadow: none; border-color: transparent; background: transparent; color: var(--muted); }
.icon-btn.sm:hover { background: var(--surface-3); color: var(--text); }
.icon-btn.ghost { background: transparent; border-color: transparent; box-shadow: none; }
.dot-badge { position: absolute; top: -5px; right: -5px; min-width: 19px; height: 19px; border-radius: 10px; background: var(--coral); color: #fff; font: 700 10.5px/19px var(--font); font-style: normal; text-align: center; padding: 0 5px; border: 2px solid var(--bg); }
.dot-badge.soft { background: var(--text); color: var(--bg); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chips.scroll-x { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.chips.scroll-x::-webkit-scrollbar { display: none; }
.chip { height: 36px; display: inline-flex; align-items: center; gap: 7px; padding: 0 15px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--text-2); font-weight: 650; font-size: 13px; white-space: nowrap; flex: none; }
.chip:hover { border-color: var(--border-2); }
.chip.on { background: var(--text); border-color: var(--text); color: var(--bg); }
.chip.sm { height: 30px; padding: 0 12px; font-size: 12.5px; }
.chip.sm.on { background: var(--primary-soft); color: var(--primary); border-color: transparent; }
.seg { display: inline-flex; padding: 4px; border-radius: 12px; background: var(--surface-3); border: 1px solid var(--border); gap: 2px; }
.seg button { height: 32px; padding: 0 12px; border-radius: 9px; border: 0; background: transparent; color: var(--muted); font-weight: 650; display: inline-flex; align-items: center; justify-content: center; gap: 6px; font-size: 13px; white-space: nowrap; }
.seg button.on { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm), 0 0 0 1px var(--border); }
.seg.w100 { display: flex; }
.seg.w100 button { flex: 1; }
.seg.sm button { height: 28px; font-size: 12.5px; }
.input, select.input, textarea.input { height: 42px; width: 100%; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); padding: 0 14px; outline: none; transition: border-color .15s, box-shadow .15s; }
textarea.input { height: auto; padding: 11px 14px; resize: vertical; line-height: 1.5; }
.input:focus { border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-ring); }
.input.sm { height: 34px; border-radius: 9px; padding: 0 10px; }
.input.auto { width: auto; }
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field label { font-weight: 650; font-size: 13px; color: var(--text-2); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: end; }
.check-line { display: flex; align-items: center; gap: 8px; font-weight: 600; height: 42px; }
.search { position: relative; }
.search > .i { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--faint); pointer-events: none; }
.search .input { padding-left: 40px; }
.pill { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 10px; border-radius: 999px; font-weight: 700; font-size: 11.5px; white-space: nowrap; }
.pill.sm { height: 20px; padding: 0 8px; font-size: 11px; }
.p-green { background: var(--green-soft); color: var(--green); }
.p-amber { background: var(--amber-soft); color: var(--amber); }
.p-red { background: var(--red-soft); color: var(--red); }
.p-blue { background: var(--blue-soft); color: var(--blue); }
.p-gray { background: var(--gray-soft); color: var(--muted); }
.p-marker { background: var(--marker); color: #271435; }
.p-white { background: rgba(255, 255, 255, .16); color: #fff; }
.switch { position: relative; width: 44px; height: 26px; border-radius: 13px; background: var(--border-2); flex: none; transition: background .2s; display: inline-block; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .2s; }
.switch.on { background: var(--green); }
.switch.on::after { transform: translateX(18px); }
.bar { height: 8px; border-radius: 6px; background: var(--surface-3); overflow: hidden; }
.bar > i { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, #b77af7, var(--primary)); }
.bar.g > i { background: var(--green); }
.stars { --s: 14px; display: inline-block; flex: none; width: calc(var(--s) * 5); height: var(--s); vertical-align: -2px; background: linear-gradient(90deg, var(--star) var(--v), var(--border-2) var(--v));
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m12 2.2 2.95 6.1 6.7.92-4.9 4.66 1.2 6.62L12 17.3l-5.95 3.2 1.2-6.62-4.9-4.66 6.7-.92z'/%3E%3C/svg%3E") 0 0 / var(--s) var(--s) repeat-x;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m12 2.2 2.95 6.1 6.7.92-4.9 4.66 1.2 6.62L12 17.3l-5.95 3.2 1.2-6.62-4.9-4.66 6.7-.92z'/%3E%3C/svg%3E") 0 0 / var(--s) var(--s) repeat-x; }
.avatar { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font: 700 13px var(--font); color: #fff; flex: none; letter-spacing: .02em; }
.avatar.xs { width: 26px; height: 26px; font-size: 10px; }
.avatar.sm { width: 30px; height: 30px; font-size: 11px; }
.avatar.lg { width: 48px; height: 48px; font-size: 16px; }
.avatar.xl { width: 68px; height: 68px; font-size: 22px; }
.empty { display: grid; place-items: center; gap: 10px; text-align: center; padding: 40px 16px; color: var(--muted); }
.empty b { color: var(--text); font-size: 16px; }
.empty.sm { padding: 26px 12px; font-size: 13.5px; }
.empty .i { color: var(--faint); }
.empty-ic { width: 60px; height: 60px; border-radius: 18px; background: var(--surface-3); display: grid; place-items: center; color: var(--faint); }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); box-shadow: var(--shadow); padding: 22px; min-width: 0; }
.card-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; }
.card-h h3 { font: 700 16px var(--display); }
.card-h small { color: var(--muted); }
.h2 { font: 750 21px/1.25 var(--display); letter-spacing: -.015em; }
.h3 { font: 700 15.5px var(--display); margin: 18px 0 10px; }
.prose { color: var(--text-2); line-height: 1.7; max-width: 760px; }
.grid { display: grid; gap: 18px; }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g2-1 { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.tbl-wrap { overflow-x: auto; }
table.t { width: 100%; border-collapse: collapse; }
table.t th { text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--faint); font-weight: 700; padding: 10px 12px; border-bottom: 1px solid var(--border); white-space: nowrap; }
table.t td { padding: 12px; border-bottom: 1px solid var(--border); vertical-align: middle; }
table.t tr:last-child td { border-bottom: 0; }
table.t .r { text-align: right; }
table.t tr.click { cursor: pointer; }
table.t tr.click:hover td { background: var(--surface-2); }
.tc { display: flex; align-items: center; gap: 12px; min-width: 0; }
.tc b { display: block; font-weight: 650; }
.tc small { display: block; color: var(--muted); font-size: 12.5px; }
.pcell { display: flex; align-items: center; gap: 10px; min-width: 110px; }
.pcell .bar { flex: 1; }
.pcell span { font-size: 12.5px; color: var(--muted); width: 34px; text-align: right; }
.back-link { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-weight: 650; margin-bottom: 14px; }
.back-link:hover { color: var(--text); }
.spin { width: 16px; height: 16px; border-radius: 50%; border: 2.5px solid rgba(255, 255, 255, .4); border-top-color: #fff; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.ring .ring-l { font: 800 1em var(--display); fill: var(--text); }
.ring .ring-s { font: 600 1em var(--font); fill: var(--muted); }
.chart { width: 100%; height: auto; display: block; }
.chart text { font: 600 11px var(--font); fill: var(--faint); }
.spark { width: 120px; height: 36px; display: block; }

/* ---------- logo and site header ---------- */
.logo { display: inline-flex; align-items: center; gap: 10px; font: 780 19px var(--display); letter-spacing: -.02em; color: var(--text); }
.logo svg { width: 34px; height: 34px; flex: none; }
.logo.light { color: #fff; }
.logo.sm svg { width: 30px; height: 30px; }
.nav { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(14px); border-bottom: 1px solid var(--border); }
.nav-in { max-width: 1320px; margin: 0 auto; height: 70px; display: flex; align-items: center; gap: 22px; padding: 0 28px; }
.nav-links { display: flex; gap: 4px; }
.nav-links a { height: 40px; display: inline-flex; align-items: center; padding: 0 14px; border-radius: 11px; font-weight: 650; color: var(--text-2); position: relative; }
.nav-links a:hover { background: var(--surface-3); color: var(--text); }
.nav-links a.on { color: var(--text); }
.nav-links a.on::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 4px; border-radius: 3px; background: var(--marker); }
.nav-search { flex: 1; max-width: 440px; height: 42px; display: flex; align-items: center; gap: 10px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--muted); text-align: left; box-shadow: var(--shadow-sm); margin-left: auto; }
.nav-search span { flex: 1; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
kbd { font: 600 11px var(--font); padding: 2px 7px; border-radius: 6px; border: 1px solid var(--border-2); background: var(--surface-2); color: var(--muted); }
.nav-r { display: flex; align-items: center; gap: 8px; position: relative; }
.me-btn { height: 42px; display: inline-flex; align-items: center; gap: 8px; padding: 0 10px 0 4px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); font-weight: 650; box-shadow: var(--shadow-sm); }
.me-btn .avatar { width: 32px; height: 32px; font-size: 12px; }
.page { max-width: 1320px; margin: 0 auto; padding: 30px 28px 60px; min-width: 0; }
.pop { position: absolute; top: 54px; right: 0; width: 340px; background: var(--surface); border: 1px solid var(--border); border-radius: 18px; box-shadow: var(--shadow-lg); z-index: 60; overflow: hidden; animation: pop .15s ease-out; }
.pop-h { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px 12px 18px; border-bottom: 1px solid var(--border); }
.pop-h b { font: 750 15px var(--display); }
.ntf { width: 100%; display: flex; gap: 12px; padding: 12px 16px; border: 0; border-bottom: 1px solid var(--border); background: none; text-align: left; font-size: 13.5px; }
.ntf:hover { background: var(--surface-2); }
.ntf:last-child { border-bottom: 0; }
.ntf.unread { background: color-mix(in srgb, var(--primary-soft) 55%, transparent); }
.ntf .ico { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; background: var(--surface-3); color: var(--primary); flex: none; }
.ntf small { display: block; color: var(--muted); margin-top: 2px; font-size: 12px; }
.acct-pop { width: 290px; padding: 8px; }
.acct-h { display: flex; gap: 12px; align-items: center; padding: 10px 10px 14px; border-bottom: 1px solid var(--border); margin-bottom: 6px; }
.acct-h b { display: block; font-weight: 700; }
.acct-h small { color: var(--muted); font-size: 12.5px; }
.mi { width: 100%; display: flex; align-items: center; gap: 12px; height: 42px; padding: 0 12px; border: 0; border-radius: 11px; background: none; font-weight: 600; color: var(--text-2); text-align: left; }
.mi:hover { background: var(--surface-3); color: var(--text); }
.mi .i { color: var(--muted); }
.mi.strong { color: var(--text); font-weight: 700; }
.mi .pill { margin-left: auto; }
.msep { height: 1px; background: var(--border); margin: 6px 4px; }
.tabbar { display: none; }
.sfoot { border-top: 1px solid var(--border); background: var(--surface-2); margin-top: 30px; }
.foot-in { max-width: 1320px; margin: 0 auto; padding: 44px 28px 26px; display: grid; grid-template-columns: 1.2fr 2fr; gap: 40px; }
.foot-brand p { color: var(--muted); margin-top: 12px; max-width: 320px; }
.foot-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.foot-cols b { display: block; font: 700 13px var(--display); margin-bottom: 10px; text-transform: uppercase; letter-spacing: .08em; color: var(--faint); }
.foot-cols a, .foot-cols button { display: block; border: 0; background: none; padding: 5px 0; color: var(--text-2); font-weight: 550; text-align: left; }
.foot-cols a:hover, .foot-cols button:hover { color: var(--primary); }
.foot-note { max-width: 1320px; margin: 0 auto; padding: 16px 28px 30px; color: var(--muted); font-size: 12.5px; border-top: 1px solid var(--border); }

/* ---------- page heads and sections ---------- */
.ph { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.ph h1 { font: 780 34px/1.1 var(--display); letter-spacing: -.03em; }
.ph p { color: var(--muted); margin-top: 8px; font-size: 15px; }
.ph-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.sec { margin-top: 56px; }
.sec-h { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.sec-h h2 { font: 780 28px/1.15 var(--display); letter-spacing: -.025em; }
.sec-h p { color: var(--muted); margin-top: 6px; }

/* ---------- course art and cards ---------- */
.art { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: radial-gradient(120% 95% at 88% 0%, color-mix(in srgb, var(--b) 80%, #fff 20%) 0%, transparent 58%), linear-gradient(140deg, var(--a), var(--b)); }
.art > svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.cc { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .18s, box-shadow .18s; min-width: 0; }
.cc:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.cc-art { display: block; position: relative; }
.tagb { position: absolute; left: 12px; top: 12px; height: 24px; padding: 0 10px; border-radius: 7px; font: 750 11.5px/24px var(--font); background: #fff; color: #271435; box-shadow: 0 2px 8px rgba(0, 0, 0, .15); }
.tagb.bestseller { background: var(--marker); }
.tagb.new { background: #fff; color: #15803d; }
.tagb.draft { background: rgba(255, 255, 255, .18); color: #fff; box-shadow: none; position: static; }
.heart { position: absolute; right: 10px; top: 10px; width: 36px; height: 36px; border-radius: 50%; border: 0; display: grid; place-items: center; background: rgba(255, 255, 255, .92); color: #271435; box-shadow: 0 2px 10px rgba(0, 0, 0, .15); z-index: 2; }
.heart.on { color: #fff; background: var(--coral); }
.heart.on svg path { fill: currentColor; }
.cc-b { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 5px; flex: 1; }
.cc-cat { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); }
.cc-t { font: 700 16.5px/1.3 var(--display); letter-spacing: -.01em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cc-t:hover { color: var(--primary); }
.cc-ins { color: var(--muted); font-size: 13px; }
.cc-rate { display: flex; align-items: center; gap: 6px; font-size: 13px; }
.cc-rate b { color: var(--marker-ink); }
[data-theme="dark"] .cc-rate b { color: var(--marker); }
.cc-rate small { color: var(--muted); }
.cc-meta { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12.5px; }
.cc-f { display: flex; align-items: baseline; gap: 8px; margin-top: auto; padding-top: 8px; }
.price { font: 800 18px var(--display); }
.cc-f s, .buy-price s { color: var(--faint); font-size: 13px; }
.off { color: var(--green); font-weight: 700; font-size: 12.5px; }
.cc-prog { margin-top: auto; padding-top: 10px; display: flex; align-items: center; gap: 10px; }
.cc-prog .bar { flex: 1; }
.cc-prog small { color: var(--muted); font-weight: 650; font-size: 12px; white-space: nowrap; }
.cards4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.cards3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }

/* ---------- sign in ---------- */
.login { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; }
.login-art { position: relative; overflow: hidden; background: radial-gradient(700px 500px at 90% 0%, rgba(160, 82, 242, .45), transparent 65%), radial-gradient(500px 400px at 0% 100%, rgba(255, 210, 63, .16), transparent 70%), #241132; color: #fff; padding: 44px 56px; display: flex; flex-direction: column; gap: 30px; }
.login-art::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, .09) 1.2px, transparent 1.2px); background-size: 26px 26px; pointer-events: none; }
.login-art > * { position: relative; }
.la-copy h2 { font: 800 54px/1.04 var(--display); letter-spacing: -.035em; max-width: 560px; margin-top: 20px; }
.la-copy h2 em { color: var(--marker); }
.la-copy p { color: #d8c6e7; font-size: 17px; max-width: 470px; margin-top: 16px; line-height: 1.6; }
.la-stage { position: relative; height: 340px; max-width: 560px; }
.la-card { position: absolute; background: #fff; color: #271435; border-radius: 18px; box-shadow: 0 30px 60px rgba(0, 0, 0, .35); }
.la-card.main { left: 0; top: 0; width: 330px; overflow: hidden; transform: rotate(-2deg); }
.la-art { aspect-ratio: 16 / 9; }
.la-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 56px; height: 56px; border-radius: 50%; background: #fff; color: #271435; display: grid; place-items: center; box-shadow: 0 8px 24px rgba(0, 0, 0, .25); }
.la-cb { padding: 14px 16px 16px; display: grid; gap: 6px; }
.la-cb small { color: #796786; font-weight: 650; font-size: 12px; }
.la-cb b { font: 700 16px var(--display); }
.la-cb .bar { background: #eeecf3; }
.la-card.la-chip { display: flex; align-items: center; gap: 12px; padding: 12px 16px 12px 12px; }
.la-card.la-chip b, .la-card.la-cert b { display: block; font-size: 14px; }
.la-card.la-chip small, .la-card.la-cert small { color: #796786; font-size: 12px; }
.la-card.streak { left: 300px; top: 30px; }
.la-card.streak .i { width: 38px; height: 38px; padding: 8px; border-radius: 12px; background: #fff1c2; color: #e08a00; }
.la-card.la-quiz { left: 270px; top: 150px; }
.la-card.la-quiz .ring-l { fill: #271435; font-size: 9px; }
.la-card.la-cert { left: 60px; top: 250px; display: flex; align-items: center; gap: 12px; padding: 12px 18px 12px 12px; }
.la-card.la-cert .i { width: 40px; height: 40px; padding: 9px; border-radius: 12px; background: #7e22ce; color: #ffd23f; }
.la-foot { color: #a189b3; margin-top: auto; }
.login-form { display: grid; place-items: center; padding: 40px 24px; }
.login-box { width: min(420px, 100%); display: flex; flex-direction: column; gap: 16px; }
.login-box h1 { font: 780 32px var(--display); letter-spacing: -.03em; }
.login-box > p { color: var(--muted); margin-top: -8px; }
.role-chips { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.role-chips button { display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 14px; border: 1.5px solid var(--border); background: var(--surface); text-align: left; color: var(--text-2); }
.role-chips button b { display: block; color: var(--text); font-size: 14px; }
.role-chips button small { color: var(--muted); font-size: 12px; }
.role-chips button.on { border-color: var(--primary); background: var(--primary-soft); }
.role-chips button.on .i { color: var(--primary); }
.or { display: flex; align-items: center; gap: 12px; color: var(--faint); font-size: 12.5px; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.demo-note { font-size: 12.5px; color: var(--muted); text-align: center; }

/* ---------- home ---------- */
.hero { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; padding: 26px 0 10px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; height: 38px; padding: 0 14px 0 6px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); font-weight: 650; font-size: 13.5px; color: var(--text-2); box-shadow: var(--shadow-sm); }
.hero h1 { font: 800 58px/1.03 var(--display); letter-spacing: -.04em; margin-top: 22px; }
.hero .lead { color: var(--muted); font-size: 18px; line-height: 1.6; margin-top: 18px; max-width: 560px; }
.hero-search { margin-top: 26px; display: flex; align-items: center; gap: 10px; height: 62px; padding: 0 8px 0 20px; border-radius: 999px; background: var(--surface); border: 1.5px solid var(--border-2); box-shadow: var(--shadow); max-width: 580px; }
.hero-search:focus-within { border-color: var(--primary); box-shadow: 0 0 0 5px var(--primary-ring); }
.hero-search .i { color: var(--faint); }
.hero-search input { flex: 1; min-width: 0; border: 0; outline: none; background: none; font-size: 16px; height: 100%; }
.hero-search .btn { height: 46px; border-radius: 999px; padding: 0 22px; }
.popular { display: flex; align-items: center; gap: 8px; margin-top: 14px; flex-wrap: wrap; color: var(--muted); font-size: 13px; font-weight: 600; }
.hero-stats { display: flex; gap: 30px; margin-top: 34px; flex-wrap: wrap; }
.hero-stats div { display: flex; flex-direction: column; }
.hero-stats b { font: 800 26px var(--display); letter-spacing: -.02em; display: flex; align-items: center; height: 34px; }
.hero-stats b .i { color: var(--primary); width: 26px; height: 26px; }
.hero-stats span { color: var(--muted); font-size: 13px; }
.hero-r { position: relative; height: 500px; }
.hero-r::before { content: ""; position: absolute; right: 20px; top: 30px; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #ffe27a, #ffd23f 60%, #f7c300); opacity: .95; }
[data-theme="dark"] .hero-r::before { background: radial-gradient(circle at 35% 35%, #9a45e8, #561a94 62%, #3a1066); opacity: .9; }
.hv-dots { position: absolute; left: 10px; bottom: 10px; width: 180px; height: 120px; background-image: radial-gradient(var(--border-2) 2px, transparent 2px); background-size: 16px 16px; }
.hv-card { position: absolute; left: 40px; top: 70px; width: 420px; background: var(--surface); border-radius: 22px; overflow: hidden; box-shadow: 0 40px 80px rgba(39, 20, 53, .25); transform: rotate(-2.5deg); border: 1px solid var(--border); }
.hv-art { aspect-ratio: 16 / 9; }
.hv-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 68px; height: 68px; border-radius: 50%; background: #fff; color: #271435; display: grid; place-items: center; box-shadow: 0 10px 30px rgba(0, 0, 0, .3); }
.hv-play .i { margin-left: 4px; }
.hv-body { padding: 16px 18px 18px; display: grid; gap: 6px; }
.hv-body small { color: var(--muted); font-weight: 650; font-size: 12px; }
.hv-body b { font: 750 18px var(--display); }
.hv-body span { color: var(--muted); font-size: 12.5px; }
.hv-bar { height: 8px; border-radius: 6px; background: var(--surface-3); overflow: hidden; }
.hv-bar i { display: block; height: 100%; background: linear-gradient(90deg, #b77af7, #7e22ce); border-radius: 6px; }
.hv-chip { position: absolute; display: flex; align-items: center; gap: 12px; padding: 12px 18px 12px 12px; background: var(--surface); border: 1px solid var(--border); border-radius: 18px; box-shadow: 0 20px 50px rgba(39, 20, 53, .18); }
.hv-chip b { display: block; font-size: 14px; }
.hv-chip small { color: var(--muted); font-size: 12px; }
.hv-chip.a { right: 0; top: 18px; }
.hv-chip.a > .i { width: 40px; height: 40px; padding: 9px; border-radius: 12px; background: var(--marker-soft); color: #e08a00; }
.hv-chip.b { right: 10px; top: 330px; }
.hv-chip.b .ring circle:last-of-type { stroke: var(--green); }
.hv-chip.c { left: 0; top: 400px; }
.hv-seal { width: 40px; height: 40px; border-radius: 12px; background: var(--primary); color: #ffd23f; display: grid; place-items: center; }
.cont-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.cont { display: flex; gap: 14px; padding: 12px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); box-shadow: var(--shadow-sm); transition: box-shadow .15s, transform .15s; min-width: 0; }
.cont:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.cont-art { width: 132px; flex: none; border-radius: 12px; aspect-ratio: 4 / 3.2; }
.mini-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 36px; height: 36px; border-radius: 50%; background: rgba(255, 255, 255, .95); color: #271435; display: grid; place-items: center; }
.mini-play .i { margin-left: 2px; }
.cont-b { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; }
.cont-b small { color: var(--muted); font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.cont-b b { font: 700 15px/1.3 var(--display); }
.cont-b .next { color: var(--muted); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cont-p { display: flex; align-items: center; gap: 8px; margin-top: auto; }
.cont-p .bar { flex: 1; }
.cont-p span { font-weight: 700; font-size: 12px; }
.cat-tiles { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 14px; }
.cat-tile { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 18px 16px; border-radius: 18px; border: 1px solid var(--border); background: var(--surface); text-align: left; box-shadow: var(--shadow-sm); transition: transform .15s, box-shadow .15s; }
.cat-tile:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.cat-tile .ico { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 10px; }
.cat-tile b { font: 700 15px var(--display); }
.cat-tile small { color: var(--muted); font-size: 12.5px; }
.ct0 .ico { background: #f3e8ff; color: #7e22ce; } .ct1 .ico { background: #fff4cc; color: #9a6b00; } .ct2 .ico { background: #e6f7ee; color: #15803d; }
.ct3 .ico { background: #ffece8; color: #d1432d; } .ct4 .ico { background: #fde7f1; color: #be185d; } .ct5 .ico { background: #e2f4fb; color: #0369a1; } .ct6 .ico { background: #eeeaf3; color: #4b5563; }
[data-theme="dark"] .cat-tile .ico { background: var(--surface-3); }
.two-promo { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.promo { border-radius: 24px; padding: 30px; display: flex; gap: 20px; align-items: center; justify-content: space-between; overflow: hidden; position: relative; min-height: 230px; }
.promo h3 { font: 780 26px/1.15 var(--display); letter-spacing: -.02em; margin: 14px 0 8px; }
.promo p { max-width: 330px; margin-bottom: 18px; line-height: 1.6; }
.promo .pill { gap: 6px; }
.promo.goal { background: var(--marker-soft); border: 1px solid color-mix(in srgb, var(--marker) 50%, transparent); }
.promo.goal p { color: var(--text-2); }
.promo.teach { background: radial-gradient(400px 300px at 100% 0%, rgba(160, 82, 242, .55), transparent 70%), #241132; color: #fff; }
.promo.teach p { color: #d8c6e7; }
.promo-art { position: relative; width: 200px; height: 170px; flex: none; }
.promo-art .art { position: absolute; width: 170px; border-radius: 14px; box-shadow: 0 20px 40px rgba(0, 0, 0, .35); }
.pa1 { left: 0; top: 0; transform: rotate(-6deg); }
.pa2 { right: 0; bottom: 0; transform: rotate(5deg); }
.week { display: flex; gap: 8px; }
.wd { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.wd i { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-3); color: #fff; border: 2px dashed var(--border-2); }
.wd.on i { background: linear-gradient(180deg, #ffb020, #f27b00); border: 0; }
.wd.today i { box-shadow: 0 0 0 3px var(--surface), 0 0 0 5px var(--marker-2); }
.wd small { font-size: 11px; font-weight: 700; color: var(--muted); }
.week.big { flex: none; background: var(--surface); padding: 18px; border-radius: 18px; box-shadow: var(--shadow); }
.week.big i { width: 34px; height: 34px; }
.ins-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.ins-card { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 26px 18px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); box-shadow: var(--shadow-sm); transition: transform .15s; }
.ins-card:hover { transform: translateY(-2px); }
.ins-card .avatar { margin-bottom: 10px; box-shadow: 0 0 0 4px var(--surface), 0 0 0 6px var(--marker); }
.ins-card b { font: 700 16px var(--display); }
.ins-card small { color: var(--muted); }
.ins-st { display: flex; align-items: center; gap: 5px; margin-top: 8px; font-size: 12.5px; color: var(--text-2); font-weight: 600; }
.ins-st .i { color: var(--star); fill: var(--star); }
.quotes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.quote { position: relative; padding: 28px 26px 24px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); display: flex; flex-direction: column; gap: 18px; box-shadow: var(--shadow-sm); }
.qmark { font: 400 72px/0.6 var(--serif); color: var(--marker-2); height: 30px; }
.quote blockquote { font: italic 400 18px/1.55 var(--serif); color: var(--text); }
.quote figcaption { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.quote figcaption b { display: block; font-size: 14px; }
.quote figcaption a { color: var(--muted); font-size: 12.5px; }
.quote figcaption a:hover { color: var(--primary); }

/* ---------- catalogue ---------- */
.cat-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 26px; align-items: start; }
.filters { position: sticky; top: 90px; padding: 8px 18px 18px; max-height: calc(100vh - 110px); overflow-y: auto; }
.fgroup { padding: 14px 0; border-bottom: 1px solid var(--border); }
.fgroup:last-of-type { border-bottom: 0; margin-bottom: 8px; }
.fgroup h4 { font: 700 12px var(--font); text-transform: uppercase; letter-spacing: .08em; color: var(--faint); margin-bottom: 8px; }
.fopt { width: 100%; display: flex; align-items: center; gap: 10px; height: 36px; padding: 0 8px; border: 0; border-radius: 10px; background: none; color: var(--text-2); font-weight: 600; font-size: 13.5px; text-align: left; }
.fopt:hover { background: var(--surface-3); }
.fopt small { margin-left: auto; color: var(--faint); font-weight: 600; }
.fopt .rd { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--border-2); flex: none; }
.fopt.on .rd { border: 5px solid var(--primary); }
.fopt .cb { width: 18px; height: 18px; border-radius: 6px; border: 2px solid var(--border-2); display: grid; place-items: center; flex: none; color: transparent; }
.fopt.on .cb { background: var(--primary); border-color: var(--primary); color: #fff; }
.fopt.on { color: var(--text); }
.fopt .stars { --s: 12px; }
.cat-tools { display: flex; gap: 12px; align-items: center; }
.cat-tools .search .input { height: 46px; border-radius: 14px; }
.sort { display: flex; align-items: center; gap: 8px; color: var(--muted); font-weight: 600; white-space: nowrap; }
.sort select { height: 46px; border-radius: 14px; width: auto; min-width: 180px; }
.nb { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--primary); color: #fff; font: 700 11px/20px var(--font); text-align: center; }
.cat-sub { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 16px 0 18px; color: var(--muted); }
.cat-sub > span { margin-right: 6px; }
.cat-sub > span b { color: var(--text); }

/* ---------- course page ---------- */
.page.flush { max-width: none; padding: 0 0 60px; }
.c-hero { background: radial-gradient(800px 420px at 92% 0%, color-mix(in srgb, var(--b) 50%, transparent), transparent 70%), linear-gradient(115deg, #231032 40%, color-mix(in srgb, var(--a) 55%, #231032)); color: #fff; }
.c-hero-in { max-width: 1320px; margin: 0 auto; padding: 34px 448px 44px 28px; }
.crumbs { display: flex; align-items: center; gap: 6px; color: #c3a8d8; font-weight: 650; font-size: 13.5px; }
.crumbs a:hover, .crumbs button:hover { color: #fff; }
.crumbs button { border: 0; background: none; padding: 0; color: inherit; font-weight: inherit; }
.c-badges { display: flex; align-items: center; gap: 10px; margin-top: 18px; }
.c-badges .tagb { position: static; }
.c-upd { color: #c3a8d8; font-size: 13px; }
.c-hero h1 { font: 800 42px/1.08 var(--display); letter-spacing: -.035em; margin-top: 14px; max-width: 780px; }
.c-sub { font-size: 18px; color: #e5d3f2; margin-top: 12px; max-width: 700px; line-height: 1.55; }
.c-facts { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 18px; color: #e5d3f2; font-size: 14px; align-items: center; }
.c-facts span { display: inline-flex; align-items: center; gap: 7px; }
.c-rate b { color: var(--marker); font-size: 16px; }
.c-rate .link { color: #fff; text-decoration: underline; text-underline-offset: 3px; font-weight: 600; }
.c-by { display: flex; align-items: center; gap: 10px; margin-top: 18px; color: #e5d3f2; }
.c-by b { color: #fff; }
.c-body { max-width: 1320px; margin: 30px auto 0; padding: 0 28px; display: grid; grid-template-columns: minmax(0, 1fr) 372px; grid-template-areas: "main side"; gap: 36px; align-items: start; }
.c-main { grid-area: main; display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.c-side { grid-area: side; margin-top: -330px; position: sticky; top: 90px; z-index: 5; }
.buy { padding: 0; overflow: hidden; }
.buy-art { aspect-ratio: 16 / 9; }
.buy-prev { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; color: #fff; font-weight: 700; background: linear-gradient(180deg, transparent 40%, rgba(19, 10, 25, .55)); }
.buy-prev .i { width: 60px; height: 60px; padding: 18px 16px 18px 20px; border-radius: 50%; background: #fff; color: #271435; box-shadow: 0 10px 30px rgba(0, 0, 0, .3); }
.buy-prev span { position: absolute; bottom: 14px; text-shadow: 0 1px 6px rgba(0, 0, 0, .4); }
.buy-b { padding: 20px 22px 18px; display: flex; flex-direction: column; gap: 10px; }
.buy-price { display: flex; align-items: baseline; gap: 10px; margin-bottom: 4px; }
.buy-price b { font: 800 32px var(--display); letter-spacing: -.02em; }
.buy-prog { display: flex; align-items: center; gap: 14px; margin-bottom: 6px; }
.buy-prog b { display: block; font: 700 16px var(--display); }
.buy-prog small { color: var(--muted); }
.incl { display: grid; gap: 9px; margin: 10px 0 6px; padding-top: 14px; border-top: 1px solid var(--border); }
.incl li { display: flex; align-items: center; gap: 10px; color: var(--text-2); font-size: 13.5px; }
.incl .i { color: var(--primary); }
.note-box { display: flex; gap: 10px; padding: 12px 14px; border-radius: 12px; background: var(--marker-soft); color: var(--text-2); font-size: 13px; align-items: flex-start; }
.learn { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 26px; margin-top: 16px; }
.learn li { display: flex; gap: 10px; color: var(--text-2); line-height: 1.45; }
.learn .i { color: var(--green); margin-top: 2px; }
.cblock { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); padding: 22px; box-shadow: var(--shadow); }
.cb-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.cb-h p { margin-top: 4px; }
.acc { border: 1px solid var(--border); border-radius: 14px; margin-bottom: 10px; overflow: hidden; background: var(--surface-2); }
.acc-h { width: 100%; display: flex; align-items: center; gap: 10px; padding: 14px 16px; border: 0; background: none; text-align: left; }
.acc-h b { flex: 1; font-weight: 700; }
.acc-h small { color: var(--muted); font-size: 12.5px; white-space: nowrap; }
.acc-h .i { transition: transform .2s; color: var(--muted); }
.acc.open .acc-h .i { transform: rotate(180deg); }
.acc-b { background: var(--surface); border-top: 1px solid var(--border); padding: 6px 8px; }
.lrow { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 10px; font-size: 14px; }
.lrow:hover { background: var(--surface-2); }
.lrow a:not(.prev) { flex: 1; min-width: 0; color: var(--text); }
.lrow a:not(.prev):hover { color: var(--primary); text-decoration: underline; }
.lrow > span:not(.lic):not(.lck):not(.lk) { flex: 1; color: var(--text-2); }
.lrow small { color: var(--muted); font-size: 12.5px; white-space: nowrap; }
.lic { color: var(--muted); display: inline-grid; }
.lck { width: 20px; height: 20px; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; flex: none; }
.lk { color: var(--faint); }
.prev { color: var(--primary); font-weight: 700; font-size: 12.5px; padding: 3px 9px; border-radius: 8px; background: var(--primary-soft); }
.req { display: grid; gap: 8px; }
.req li { padding-left: 18px; position: relative; color: var(--text-2); }
.req li::before { content: ""; position: absolute; left: 2px; top: 9px; width: 6px; height: 6px; border-radius: 50%; background: var(--primary); }
.ins-big { display: flex; gap: 20px; align-items: flex-start; }
.ins-big b { font: 750 19px var(--display); display: block; }
.ins-big small { color: var(--muted); }
.ins-big p { color: var(--text-2); margin-top: 10px; line-height: 1.65; }
.ins-facts { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 10px; font-size: 13px; font-weight: 600; color: var(--text-2); }
.ins-facts span { display: inline-flex; align-items: center; gap: 6px; }
.rv-sum { display: flex; gap: 32px; align-items: center; padding: 18px; background: var(--surface-2); border-radius: 16px; margin-bottom: 18px; }
.rv-big { display: flex; flex-direction: column; align-items: center; gap: 6px; flex: none; }
.rv-big b { font: 800 52px/1 var(--display); color: var(--marker-ink); letter-spacing: -.03em; }
[data-theme="dark"] .rv-big b { color: var(--marker); }
.rv-big small { color: var(--muted); font-weight: 650; }
.rv-bars { flex: 1; display: grid; gap: 7px; }
.rvb { display: grid; grid-template-columns: 44px 1fr 46px; gap: 10px; align-items: center; font-size: 12.5px; color: var(--muted); font-weight: 650; }
.rvb span { display: inline-flex; align-items: center; gap: 4px; }
.rvb .bar > i { background: var(--star); }
.rvb small { text-align: right; }
.rv-list { display: grid; gap: 4px; }
.rv { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.rv:last-child { border-bottom: 0; }
.rv-b { flex: 1; min-width: 0; }
.rv-h { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.rv-h small { color: var(--muted); font-size: 12.5px; }
.rv-b p, .sr p, .sq p { color: var(--text-2); margin-top: 6px; line-height: 1.6; }
.rv-reply { margin-top: 10px; padding: 12px 14px; border-left: 3px solid var(--marker); background: var(--surface-2); border-radius: 0 12px 12px 0; font-size: 13.5px; }
.rv-reply p { margin-top: 3px !important; }
.star-pick { display: flex; align-items: center; gap: 4px; }
.sp { border: 0; background: none; padding: 2px; color: var(--border-2); }
.sp.on { color: var(--star); }
.sp.on svg path { fill: currentColor; }
#sp-l { margin-left: 10px; font-weight: 700; color: var(--text-2); }

/* ---------- checkout ---------- */
.co { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 24px; align-items: start; }
.co-main { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.pm-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 16px 0 18px; }
.pm { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 14px; border: 1.5px solid var(--border); background: var(--surface); text-align: left; }
.pm b { display: block; font-size: 15px; }
.pm small { color: var(--muted); font-size: 12.5px; }
.pm-ic { width: 42px; height: 42px; border-radius: 12px; background: var(--surface-3); display: grid; place-items: center; color: var(--text-2); flex: none; }
.pm .rd { margin-left: auto; width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--border-2); flex: none; }
.pm.on { border-color: var(--primary); background: var(--primary-soft); }
.pm.on .pm-ic { background: var(--primary); color: #fff; }
.pm.on .rd { border: 6px solid var(--primary); }
.upi { display: flex; gap: 24px; align-items: flex-start; }
.qr-box { flex: none; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px; border-radius: 16px; border: 1px solid var(--border); background: #fff; }
.qr { width: 170px; height: 170px; display: block; }
.qr-box small { color: #796786; font-weight: 650; }
.upi-b { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.upi-b b { font: 700 16px var(--display); }
.upi-apps { display: flex; gap: 8px; flex-wrap: wrap; }
.upi-apps span { height: 30px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--border); display: inline-flex; align-items: center; font-size: 12.5px; font-weight: 650; color: var(--muted); }
.cardpay { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 22px; align-items: start; }
.cardviz { aspect-ratio: 1.586; border-radius: 18px; padding: 18px 20px; color: #fff; background: radial-gradient(240px 180px at 100% 0%, rgba(255, 210, 63, .55), transparent 70%), linear-gradient(135deg, #4a1580, #7e22ce 60%, #a35cf3); box-shadow: 0 20px 40px rgba(126, 34, 206, .35); display: flex; flex-direction: column; justify-content: space-between; }
.cv-top { display: flex; justify-content: space-between; align-items: center; }
.cv-top svg { width: 34px; height: 34px; }
.cv-top span { font: 800 13px var(--font); letter-spacing: .2em; opacity: .8; }
.cv-num { font: 600 19px var(--mono); letter-spacing: .08em; }
.cv-foot { display: flex; justify-content: space-between; font-weight: 650; font-size: 13.5px; }
.cv-foot small { display: block; font-size: 10px; opacity: .7; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; }
.cardform { display: flex; flex-direction: column; gap: 12px; }
.bill { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; margin-top: 14px; }
.co-sum { position: sticky; top: 90px; display: flex; flex-direction: column; gap: 10px; }
.co-item { display: flex; gap: 14px; align-items: center; padding: 6px 0 14px; border-bottom: 1px solid var(--border); margin: 6px 0 4px; }
.co-art { width: 96px; flex: none; border-radius: 10px; }
.co-item b { display: block; font: 700 15px/1.3 var(--display); }
.co-item small { color: var(--muted); font-size: 12.5px; }
.sumrow { display: flex; justify-content: space-between; align-items: center; gap: 10px; color: var(--text-2); }
.sumrow s { color: var(--faint); }
.neg { color: var(--green); font-weight: 650; }
.sumrow.total { padding-top: 12px; border-top: 1px dashed var(--border-2); color: var(--text); font-weight: 700; }
.sumrow.total b { font: 800 26px var(--display); letter-spacing: -.02em; }
.coupon { display: flex; gap: 8px; margin-top: 8px; }
.coupon .input { text-transform: uppercase; }
.cmsg { display: flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; }
.cmsg.ok { color: var(--green); }
.cmsg.bad { color: var(--red); }
.cmsg.hint { color: var(--muted); font-weight: 500; }

/* ---------- my learning ---------- */
.lstats { display: grid; grid-template-columns: 1.3fr 1.2fr 1fr 1fr; gap: 18px; }
.ls { display: flex; flex-direction: column; gap: 10px; justify-content: center; }
.ls b { font: 750 16px var(--display); }
.ls small { color: var(--muted); }
.ls .lbl { display: flex; align-items: center; gap: 6px; font-weight: 650; }
.ls .big { font: 800 30px var(--display); letter-spacing: -.02em; }
.ls-h { display: flex; gap: 12px; align-items: center; }
.ls-h b { display: block; font-size: 18px; }
.flame { width: 50px; height: 50px; border-radius: 16px; background: linear-gradient(180deg, #ffb020, #f27b00); color: #fff; display: grid; place-items: center; box-shadow: 0 10px 24px rgba(242, 123, 0, .3); }
.goal-card { flex-direction: row; align-items: center; gap: 16px; justify-content: flex-start; }
.goal-card > div { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.goal-card .btn { margin-top: 6px; }
.resume { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 26px; padding: 18px; margin-top: 20px; align-items: center; }
.rs-art { border-radius: 14px; aspect-ratio: 16 / 9; }
.rs-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 64px; height: 64px; border-radius: 50%; background: #fff; color: #271435; display: grid; place-items: center; box-shadow: 0 10px 30px rgba(0, 0, 0, .3); }
.rs-play .i { margin-left: 4px; }
.rs-b small { color: var(--primary); font-weight: 750; text-transform: uppercase; letter-spacing: .08em; font-size: 12px; }
.rs-b h2 { font: 780 26px/1.15 var(--display); letter-spacing: -.02em; margin: 6px 0 8px; }
.rs-b p { color: var(--text-2); display: flex; align-items: center; gap: 8px; }
.rs-p { display: flex; align-items: center; gap: 12px; margin: 16px 0; max-width: 440px; }
.rs-p .bar { flex: 1; }
.rs-p span { color: var(--muted); font-size: 13px; font-weight: 600; white-space: nowrap; }
.rs-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.ltabs { display: flex; gap: 6px; margin: 30px 0 16px; border-bottom: 1px solid var(--border); overflow-x: auto; scrollbar-width: none; }
.ltabs::-webkit-scrollbar { display: none; }
.ltabs button, .ptabs button { height: 44px; padding: 0 14px; border: 0; background: none; color: var(--muted); font-weight: 700; position: relative; white-space: nowrap; flex: none; }
.ltabs button b, .ptabs button b { display: inline-grid; place-items: center; min-width: 22px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--surface-3); font-size: 11.5px; margin-left: 4px; color: var(--text-2); }
.ltabs button.on, .ptabs button.on { color: var(--text); }
.ltabs button.on::after, .ptabs button.on::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 3px; border-radius: 3px; background: var(--primary); }
.lbody { display: flex; flex-direction: column; gap: 12px; }
.lrow-c { display: flex; align-items: center; gap: 18px; padding: 14px 18px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); box-shadow: var(--shadow-sm); }
.lr-art { width: 110px; flex: none; border-radius: 10px; }
.lr-b { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.lr-t { font: 700 16px var(--display); }
.lr-t:hover { color: var(--primary); }
.lr-b > small { color: var(--muted); font-size: 12.5px; }
.lr-b .next { display: flex; align-items: center; gap: 6px; font-size: 13.5px; color: var(--text-2); font-weight: 600; }
.lr-b .next.ok { color: var(--green); }
.lr-act { flex: none; }
.certs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.cert-card { display: flex; gap: 18px; align-items: center; padding: 16px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); box-shadow: var(--shadow-sm); }
.cert-mini { width: 200px; flex: none; aspect-ratio: 1.414; border-radius: 6px; background: #fffdf7; border: 6px solid #f1ead6; outline: 1px solid #d9cba5; outline-offset: -10px; color: #271435; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 4px; padding: 10px; position: relative; }
.cert-mini small { font-size: 7px; letter-spacing: .14em; text-transform: uppercase; font-weight: 800; color: #7e22ce; }
.cert-mini b { font: 750 11px var(--display); }
.cert-mini i { font: italic 13px var(--serif); }
.cm-seal { position: absolute; right: 10px; bottom: 10px; width: 24px; height: 24px; border-radius: 50%; background: #ffd23f; color: #7e22ce; display: grid; place-items: center; }
.cm-seal .i { width: 14px; height: 14px; }
.cert-meta { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.cert-meta b { font: 700 16px var(--display); }
.cert-meta small { color: var(--muted); }
.goal-opts { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.gopt { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 14px 6px; border-radius: 14px; border: 1.5px solid var(--border); background: var(--surface); }
.gopt b { font: 750 16px var(--display); }
.gopt small { color: var(--muted); font-size: 12px; }
.gopt.on { border-color: var(--primary); background: var(--primary-soft); }

/* ---------- lesson player ---------- */
.pl { min-height: 100vh; }
.pbar { position: sticky; top: 0; z-index: 40; height: 66px; display: flex; align-items: center; gap: 14px; padding: 0 22px; background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: blur(14px); border-bottom: 1px solid var(--border); }
.pb-t { min-width: 0; padding-left: 14px; border-left: 1px solid var(--border); }
.pb-t small { display: block; color: var(--muted); font-size: 12px; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pb-t b { display: block; font: 750 16px var(--display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pb-r { margin-left: auto; display: flex; align-items: center; gap: 12px; flex: none; }
.pb-prog { display: flex; align-items: center; gap: 10px; }
.pb-prog .ring-l { font-size: 11px; }
.pb-prog b { display: block; font-size: 13px; }
.pb-prog small { display: block; font-size: 11.5px; color: var(--muted); }
.pgrid { display: grid; grid-template-columns: minmax(0, 1fr) 370px; gap: 24px; max-width: 1560px; margin: 0 auto; padding: 22px 24px 70px; align-items: start; }
.pgrid.theatre { grid-template-columns: minmax(0, 1fr); max-width: 1280px; }
.pgrid.theatre .pside { display: none; }
.pmain { min-width: 0; }
.vp { border-radius: 18px; overflow: hidden; background: #1b0c28; box-shadow: 0 20px 50px rgba(36, 17, 50, .25); }
.stage { position: relative; aspect-ratio: 16 / 9; background: #241132; user-select: none; }
.stage-svg, .stage-svg svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.cc-line { position: absolute; left: 50%; bottom: 5%; transform: translateX(-50%); max-width: 82%; width: max-content; padding: 7px 14px; border-radius: 10px; background: rgba(14, 6, 21, .8); color: #fff; font-size: clamp(12px, 1.35vw, 17px); line-height: 1.4; text-align: center; pointer-events: none; }
.cc-line:empty { display: none; }
.big-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 86px; height: 86px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .96); color: #271435; display: grid; place-items: center; box-shadow: 0 14px 40px rgba(0, 0, 0, .35); transition: transform .15s, opacity .2s; }
.big-play .i { margin-left: 5px; }
.big-play:hover { transform: translate(-50%, -50%) scale(1.06); }
.stage.playing .big-play, .stage.ended .big-play { opacity: 0; pointer-events: none; }
.end-card { position: absolute; inset: 0; display: none; place-items: center; background: rgba(21, 9, 30, .82); backdrop-filter: blur(4px); color: #fff; text-align: center; }
.stage.ended .end-card { display: grid; }
.end-card > div { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.end-card b { font: 780 26px var(--display); }
.end-card small { color: #d8c6e7; font-size: 15px; margin-bottom: 10px; }
.ec-ic { width: 60px; height: 60px; border-radius: 50%; background: #22c55e; display: grid; place-items: center; margin-bottom: 4px; }
.ctrl { display: flex; align-items: center; gap: 4px; padding: 10px 12px; background: #1b0c28; color: #fff; }
.cbtn { height: 38px; min-width: 38px; padding: 0 6px; border-radius: 10px; border: 0; background: transparent; color: rgba(255, 255, 255, .86); display: grid; place-items: center; font-weight: 750; font-size: 13px; }
.cbtn:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.cbtn.play { background: #fff; color: #271435; border-radius: 50%; width: 40px; }
.cbtn.on { color: var(--marker); }
.ptime { font: 650 13px var(--font); font-variant-numeric: tabular-nums; color: rgba(255, 255, 255, .85); padding: 0 8px; white-space: nowrap; }
.scrub { flex: 1; position: relative; height: 26px; display: flex; align-items: center; cursor: pointer; margin: 0 8px; touch-action: none; }
.segs { display: flex; gap: 3px; width: 100%; height: 6px; }
.seg-c { height: 100%; border-radius: 3px; background: rgba(255, 255, 255, .22); overflow: hidden; }
.seg-c i { display: block; height: 100%; width: 0; background: var(--marker); }
.knob { position: absolute; top: 50%; left: 0; width: 15px; height: 15px; margin: -7.5px 0 0 -7.5px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px rgba(255, 210, 63, .35); pointer-events: none; }
.prev-banner { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 14px; background: var(--marker-soft); border: 1px solid color-mix(in srgb, var(--marker) 45%, transparent); margin-bottom: 16px; font-weight: 600; color: var(--text-2); }
.prev-banner span { flex: 1; }
.lhead { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin: 22px 0 6px; flex-wrap: wrap; }
.lhead small { color: var(--muted); font-weight: 650; font-size: 13px; }
.lhead h1 { font: 780 28px/1.15 var(--display); letter-spacing: -.025em; margin-top: 4px; }
.lh-act { display: flex; gap: 10px; flex-wrap: wrap; }
.ptabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-top: 18px; overflow-x: auto; scrollbar-width: none; }
.ptabs::-webkit-scrollbar { display: none; }
.ptab-b { padding: 20px 0; }
.chaps { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.chap { display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); text-align: left; }
.chap:hover { border-color: var(--primary); }
.chap b { flex: 1; font-weight: 650; font-size: 13.5px; }
.chap small { color: var(--muted); font-variant-numeric: tabular-nums; }
.chn { width: 26px; height: 26px; border-radius: 8px; background: var(--primary-soft); color: var(--primary); font-weight: 800; font-size: 12px; display: grid; place-items: center; flex: none; }
.ov-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 8px; }
.ov-box .h3 { margin-top: 14px; }
.res { width: 100%; display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); text-align: left; }
.res:hover { border-color: var(--primary); }
.res span { flex: 1; }
.res b { display: block; font-size: 13.5px; }
.res small { color: var(--muted); font-size: 12px; }
.mini-ins { display: flex; align-items: center; gap: 12px; padding: 10px 0; }
.mini-ins b { display: block; }
.mini-ins small { color: var(--muted); }
.note-form { display: flex; gap: 10px; align-items: center; padding: 10px; border-radius: 14px; border: 1px solid var(--border); background: var(--surface); }
.note-form .input { border: 0; box-shadow: none; padding: 0 6px; }
.note-at { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 10px; border-radius: 9px; background: var(--marker-soft); color: var(--marker-ink); font-weight: 700; font-size: 13px; flex: none; font-variant-numeric: tabular-nums; }
[data-theme="dark"] .note-at { color: var(--marker); }
.notes { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.nt { display: flex; align-items: flex-start; gap: 12px; padding: 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); }
.nt p { flex: 1; line-height: 1.55; }
.nt small { color: var(--muted); font-size: 12px; white-space: nowrap; padding-top: 2px; }
.tchip { display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 9px; border-radius: 8px; border: 0; background: var(--primary-soft); color: var(--primary); font-weight: 750; font-size: 12px; flex: none; font-variant-numeric: tabular-nums; }
.note-foot { margin-top: 12px; }
.tr-list { max-height: 440px; overflow-y: auto; display: flex; flex-direction: column; gap: 2px; padding-right: 6px; position: relative; }
.tr-l { display: flex; gap: 14px; padding: 9px 12px; border-radius: 10px; border: 0; background: none; text-align: left; line-height: 1.55; color: var(--text-2); }
.tr-l:hover { background: var(--surface-3); }
.tr-l small { color: var(--faint); font-weight: 700; font-variant-numeric: tabular-nums; padding-top: 1px; width: 36px; flex: none; }
.tr-l.on { background: var(--marker-soft); color: var(--text); }
.tr-l.on small { color: var(--marker-ink); }
[data-theme="dark"] .tr-l.on small { color: var(--marker); }
.ask { display: flex; gap: 12px; padding: 14px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); }
.ask textarea { border: 0; padding: 6px 2px; box-shadow: none !important; resize: none; }
.ask-f { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 6px; }
.ask-f small { color: var(--muted); font-size: 12px; }
.qa-h { display: flex; align-items: center; justify-content: space-between; margin: 20px 0 8px; }
.qa { display: flex; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--border); }
.qa-b { flex: 1; min-width: 0; }
.qa-m { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.qa-m small { color: var(--muted); font-size: 12.5px; }
.qa-b > p { margin-top: 4px; line-height: 1.55; }
.qa-a { display: flex; gap: 16px; margin-top: 8px; align-items: center; }
.qa-a .link { color: var(--muted); font-weight: 650; font-size: 13px; }
.vote { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px; border-radius: 9px; border: 1px solid var(--border); background: var(--surface); font-weight: 700; font-size: 12.5px; color: var(--text-2); }
.vote.on { background: var(--primary-soft); color: var(--primary); border-color: transparent; }
.replies { margin-top: 12px; padding-left: 14px; border-left: 2px solid var(--border); display: flex; flex-direction: column; gap: 12px; }
.rp { display: flex; gap: 10px; }
.rp p { margin-top: 3px; color: var(--text-2); line-height: 1.55; font-size: 13.5px; }
.reply-f { display: flex; gap: 8px; margin-top: 4px; }
.pside { position: sticky; top: 86px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; max-height: calc(100vh - 106px); display: flex; flex-direction: column; }
.ps-h { display: flex; justify-content: space-between; align-items: center; padding: 16px 18px; border-bottom: 1px solid var(--border); }
.ps-h b { font: 750 15.5px var(--display); }
.ps-h small { color: var(--green); font-weight: 700; }
.ps-list { overflow-y: auto; padding: 6px 8px 12px; }
.ps-list.in-tab { border: 1px solid var(--border); border-radius: 16px; background: var(--surface); }
.ps-st { padding: 12px 10px 6px; }
.ps-st small { display: block; font-size: 11px; font-weight: 750; text-transform: uppercase; letter-spacing: .08em; color: var(--faint); }
.ps-st b { font-size: 13.5px; }
.ps-l { display: flex; gap: 10px; padding: 9px 10px; border-radius: 11px; align-items: flex-start; }
.ps-l:hover { background: var(--surface-2); }
.ps-l.cur { background: var(--primary-soft); }
.ps-l.cur .ps-tt { color: var(--primary); font-weight: 700; }
.ps-c { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--border-2); flex: none; display: grid; place-items: center; margin-top: 1px; color: var(--faint); }
.ps-l.done .ps-c { background: var(--green); border-color: var(--green); color: #fff; }
.ps-l.cur:not(.done) .ps-c { border-color: var(--primary); box-shadow: inset 0 0 0 3px var(--surface); background: var(--primary); }
.ps-l.lk { opacity: .7; }
.ps-tt { flex: 1; min-width: 0; font-size: 13.5px; color: var(--text-2); line-height: 1.35; }
.ps-tt small { display: flex; align-items: center; gap: 5px; color: var(--muted); font-size: 11.5px; margin-top: 3px; }
.ps-tt small .i { width: 13px; height: 13px; }
.locked { display: grid; grid-template-columns: 320px 1fr; gap: 26px; align-items: center; }
.lk-art { border-radius: 14px; }
.lk-ic { width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; background: var(--surface-3); color: var(--muted); margin-bottom: 10px; }
.locked h2 { font: 780 24px var(--display); }
.locked p { color: var(--muted); margin: 8px 0 16px; }

/* ---------- quiz and reading ---------- */
.quiz { padding: 32px 36px; border-radius: 20px; min-height: 420px; }
.quiz.intro { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 12px; background: radial-gradient(500px 260px at 50% 0%, var(--primary-soft), transparent 70%), var(--surface); }
.qz-ic { width: 64px; height: 64px; border-radius: 20px; background: var(--primary); color: #fff; display: grid; place-items: center; box-shadow: 0 12px 30px rgba(126, 34, 206, .35); }
.quiz.intro h2 { font: 780 28px var(--display); letter-spacing: -.02em; }
.quiz.intro p { color: var(--muted); }
.qz-past { display: flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 10px; background: var(--green-soft); color: var(--green); font-weight: 600; }
.qz-h { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.qz-h small { color: var(--muted); font-weight: 650; }
.qz-dots { margin-left: auto; display: flex; gap: 6px; }
.qz-dots i { width: 26px; height: 6px; border-radius: 3px; background: var(--surface-3); }
.qz-dots i.cur { background: var(--primary); }
.qz-dots i.ok { background: var(--green); }
.qz-dots i.bad { background: var(--red); }
.qz-q { font: 750 24px/1.3 var(--display); letter-spacing: -.015em; margin: 22px 0 18px; }
.qz-opts { display: grid; gap: 10px; }
.opt { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 14px; border: 1.5px solid var(--border); background: var(--surface); text-align: left; font-weight: 600; font-size: 15px; color: var(--text); transition: border-color .15s, background .15s; }
.opt:hover:not(:disabled) { border-color: var(--primary); background: var(--primary-soft); }
.opt:disabled { cursor: default; }
.opt span:nth-child(2) { flex: 1; }
.ol { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: var(--surface-3); font-weight: 800; font-size: 13px; color: var(--text-2); flex: none; }
.opt.right { border-color: var(--green); background: var(--green-soft); }
.opt.right .ol { background: var(--green); color: #fff; }
.opt.right .i { color: var(--green); }
.opt.wrong { border-color: var(--red); background: var(--red-soft); }
.opt.wrong .ol { background: var(--red); color: #fff; }
.opt.wrong .i { color: var(--red); }
.opt.dim { opacity: .55; }
.qz-exp { margin-top: 16px; padding: 14px 16px; border-radius: 14px; animation: pop .2s ease-out; }
.qz-exp b { display: flex; align-items: center; gap: 8px; font-size: 15px; }
.qz-exp p { margin-top: 4px; color: var(--text-2); line-height: 1.55; }
.qz-exp.ok { background: var(--green-soft); } .qz-exp.ok b { color: var(--green); }
.qz-exp.bad { background: var(--amber-soft); } .qz-exp.bad b { color: var(--amber); }
.qz-f { display: flex; justify-content: flex-end; margin-top: 16px; }
.quiz .tiny { margin-top: 16px; }
.qr-top { display: flex; gap: 28px; align-items: center; }
.qr-top h2 { font: 800 30px var(--display); letter-spacing: -.02em; margin: 10px 0 6px; }
.qr-top p { color: var(--muted); max-width: 440px; margin-bottom: 16px; }
.qr-top .ring-l { font-size: 30px !important; }
.qr-list { margin-top: 26px; display: grid; gap: 8px; }
.qr-i { display: flex; gap: 12px; padding: 12px 14px; border-radius: 12px; background: var(--surface-2); align-items: flex-start; }
.qr-i b { display: block; font-size: 14px; }
.qr-i small { color: var(--muted); font-size: 12.5px; }
.qr-ic { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; color: #fff; flex: none; }
.qr-i.ok .qr-ic { background: var(--green); }
.qr-i.bad .qr-ic { background: var(--red); }
.reading { padding: 36px 44px; border-radius: 20px; max-width: 900px; }
.reading h2 { font: 800 32px/1.15 var(--display); letter-spacing: -.025em; margin: 16px 0 12px; }
.reading .lead { font: italic 19px/1.6 var(--serif); color: var(--text-2); }
.reading h3 { font: 750 19px var(--display); margin: 26px 0 8px; }
.reading p { color: var(--text-2); line-height: 1.75; }
.takeaways { margin: 26px 0 20px; padding: 18px 20px; border-radius: 16px; background: var(--marker-soft); }
.takeaways b { display: flex; align-items: center; gap: 8px; }
.takeaways ul { margin-top: 8px; display: grid; gap: 6px; }
.takeaways li { padding-left: 18px; position: relative; color: var(--text-2); }
.takeaways li::before { content: ""; position: absolute; left: 3px; top: 9px; width: 6px; height: 6px; border-radius: 50%; background: var(--marker-2); }

/* ---------- certificate ---------- */
.cert-tools { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.cert-tools .back-link { margin: 0; }
.cert-wrap { display: grid; place-items: center; padding: 10px 0; }
.cert { container-type: inline-size; width: 100%; max-width: 1040px; aspect-ratio: 1.414; background-color: #fffdf6; background-image: repeating-linear-gradient(45deg, rgba(126, 34, 206, .08) 0 1.5px, transparent 1.5px 9px), repeating-linear-gradient(-45deg, rgba(245, 184, 0, .14) 0 1.5px, transparent 1.5px 9px); padding: 2.2cqw; border-radius: 6px; box-shadow: 0 40px 90px rgba(39, 20, 53, .25), 0 0 0 1px rgba(39, 20, 53, .08); color: #271435; }
.cert-in { height: 100%; background: #fffdf6; border: .25cqw solid #271435; outline: .12cqw solid #c7b27a; outline-offset: -1.1cqw; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 3.2cqw 5cqw 2.6cqw; position: relative; }
.cert-top { width: 100%; display: flex; justify-content: space-between; align-items: flex-start; }
.cert-top .logo { font-size: 2.1cqw; color: #271435; gap: 1cqw; }
.cert-top .logo svg { width: 3.4cqw; height: 3.4cqw; }
.cert-id { text-align: right; font-size: 1.1cqw; color: #796786; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; line-height: 1.5; }
.cert-id b { color: #271435; font-size: 1.35cqw; letter-spacing: .06em; }
.cert-k { margin-top: 1.4cqw; font: 800 1.45cqw var(--font); letter-spacing: .32em; text-transform: uppercase; color: #7e22ce; }
.cert-pre { font: italic 1.75cqw var(--serif); color: #5e4a6c; margin-top: 1.6cqw; }
.cert-name { font: italic 400 5.6cqw/1.1 var(--serif); margin-top: .6cqw; padding: 0 3cqw .4cqw; background: linear-gradient(transparent 70%, #ffe680 70%, #ffe680 92%, transparent 92%); }
.cert-course { font: 800 3cqw/1.15 var(--display); letter-spacing: -.02em; margin-top: .8cqw; }
.cert-meta { font-size: 1.4cqw; color: #796786; margin-top: 1.2cqw; }
.cert-foot { margin-top: auto; width: 100%; display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: 3cqw; }
.cert-foot .seal { width: 8.6cqw; height: auto; }
.sig { display: flex; flex-direction: column; align-items: center; gap: .3cqw; }
.sig-s { font: 400 2.6cqw "Segoe Script", "Brush Script MT", "Snell Roundhand", cursive; color: #5e1b9e; line-height: 1.2; }
.sig-d { font: 700 1.9cqw var(--display); line-height: 1.6; }
.sig i { width: 100%; max-width: 22cqw; height: .14cqw; background: #271435; margin: .3cqw 0 .5cqw; }
.sig b { font-size: 1.35cqw; }
.sig small { font-size: 1.1cqw; color: #796786; }

/* ---------- studio ---------- */
.studio { display: grid; grid-template-columns: 256px minmax(0, 1fr); min-height: 100vh; }
.sside { position: sticky; top: 0; height: 100vh; background: radial-gradient(300px 260px at 0% 0%, rgba(160, 82, 242, .3), transparent 70%), #241132; color: var(--ink-text); display: flex; flex-direction: column; padding: 22px 14px 16px; gap: 22px; }
.sside .logo { padding: 2px 8px; font-size: 18px; }
.studio-tag { font: 750 10.5px var(--font); letter-spacing: .12em; text-transform: uppercase; color: #271435; background: var(--marker); padding: 3px 7px; border-radius: 6px; }
[data-theme="dark"] .sside { background: radial-gradient(300px 260px at 0% 0%, rgba(160, 82, 242, .22), transparent 70%), #0f0714; border-right: 1px solid var(--border); }
.snav { display: flex; flex-direction: column; gap: 3px; }
.snav-i { width: 100%; display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 12px; color: var(--ink-text); font-weight: 650; position: relative; border: 0; background: none; text-align: left; }
.snav-i:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.snav-i.on { background: rgba(255, 255, 255, .1); color: #fff; }
.snav-i.on::before { content: ""; position: absolute; left: -14px; top: 10px; bottom: 10px; width: 4px; border-radius: 0 4px 4px 0; background: var(--marker); }
.snav-i.on .i { color: var(--marker); }
.snav-i .nb { margin-left: auto; background: rgba(255, 255, 255, .12); }
.sside-card { padding: 16px; border-radius: 16px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .1); display: flex; flex-direction: column; gap: 4px; }
.sside-card small { color: var(--ink-muted); font-size: 11.5px; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
.sside-card b { color: #fff; font: 700 15px var(--display); }
.sside-card span { color: var(--ink-muted); font-size: 12.5px; margin-bottom: 8px; }
.sside-foot { margin-top: auto; display: flex; flex-direction: column; gap: 2px; }
.sside .me { display: flex; align-items: center; gap: 10px; padding: 10px 8px 0; margin-top: 8px; border-top: 1px solid rgba(255, 255, 255, .08); }
.sside .me b { display: block; color: #fff; font-size: 13.5px; }
.sside .me small { color: var(--ink-muted); font-size: 12px; }
.sside .me .icon-btn { margin-left: auto; color: var(--ink-muted); }
.smain { min-width: 0; display: flex; flex-direction: column; }
.stop { position: sticky; top: 0; z-index: 40; height: 70px; display: flex; align-items: center; gap: 14px; padding: 0 28px; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(14px); border-bottom: 1px solid var(--border); }
.stop .nav-search { margin-left: 0; }
.stop .nav-r { margin-left: auto; }
.smain .page { max-width: 1400px; width: 100%; }
.kpi { display: flex; flex-direction: column; gap: 10px; }
.kpi .lbl { display: flex; align-items: center; gap: 9px; font-weight: 650; color: var(--text-2); }
.kpi .ico { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); }
.kpi .val { font: 800 30px var(--display); letter-spacing: -.025em; display: flex; align-items: baseline; gap: 8px; }
.kpi-s { display: inline-flex; }
.kpi .foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; font-size: 12.5px; color: var(--muted); margin-top: auto; }
.delta { font-weight: 700; }
.delta.up { color: var(--green); }
.delta.down { color: var(--red); }
.delta .muted { font-weight: 500; }
.donut-wrap { display: flex; align-items: center; gap: 18px; }
.donut { width: 150px; height: 150px; flex: none; }
.mix { flex: 1; display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; min-width: 0; }
.donut-wrap.stack { flex-direction: column; align-items: stretch; gap: 16px; }
.donut-wrap.stack .donut { align-self: center; width: 170px; height: 170px; }
.donut-wrap.stack .mix-row .grow { white-space: normal; }
.mix-row { display: flex; align-items: center; gap: 10px; font-size: 13.5px; }
.mix-row .sw { width: 12px; height: 12px; border-radius: 4px; flex: none; }
.mix-row .grow { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tl-row { display: flex; align-items: center; gap: 12px; padding: 8px 0; }
.tl-row b { display: block; font-size: 13.5px; }
.tl-row small { color: var(--muted); font-size: 12px; }
.sq, .sr { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.sq:last-child, .sr:last-child { border-bottom: 0; }
.sq .reply-f { margin-top: 10px; }
.sr .btn { margin-top: 10px; }
.sc-list { display: flex; flex-direction: column; gap: 16px; }
.sc { display: grid; grid-template-columns: 220px minmax(0, 1fr) auto auto; gap: 22px; align-items: center; padding: 16px; }
.sc-art { border-radius: 12px; }
.sc-t { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.sc-t b { font: 750 18px var(--display); }
.sc-b p { color: var(--muted); margin: 4px 0 10px; }
.sc-meta { display: flex; gap: 14px; flex-wrap: wrap; color: var(--text-2); font-size: 13px; font-weight: 600; }
.sc-meta span { display: inline-flex; align-items: center; gap: 6px; }
.sc-stats { display: grid; grid-template-columns: repeat(3, auto); gap: 22px; padding: 0 10px; }
.sc-stats b { display: block; font: 800 19px var(--display); }
.sc-stats small { color: var(--muted); font-size: 12px; }
.sc-a { display: flex; flex-direction: column; gap: 8px; }
.tip { display: flex; gap: 12px; align-items: center; margin-top: 18px; color: var(--text-2); background: var(--marker-soft); border-color: color-mix(in srgb, var(--marker) 40%, transparent); box-shadow: none; }
.tc-art { width: 72px; border-radius: 8px; flex: none; }
.b-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.b-title { display: flex; align-items: center; gap: 16px; min-width: 0; }
.bh-art { width: 104px; border-radius: 12px; flex: none; }
.b-title h1 { font: 780 28px/1.15 var(--display); letter-spacing: -.025em; }
.b-sub { display: flex; align-items: center; gap: 12px; margin-top: 6px; }
.saved { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); font-size: 12.5px; font-weight: 600; }
.saved .i { color: var(--green); }
.b-act { display: flex; gap: 10px; align-items: center; }
.pub-toggle { display: flex; align-items: center; gap: 12px; height: 54px; padding: 0 18px 0 14px; border-radius: 14px; border: 1.5px solid var(--border); background: var(--surface); text-align: left; box-shadow: var(--shadow-sm); }
.pub-toggle b { display: block; font-size: 14px; }
.pub-toggle small { display: block; color: var(--muted); font-size: 12px; }
.pub-toggle.on { border-color: color-mix(in srgb, var(--green) 50%, transparent); background: var(--green-soft); }
.b-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 22px; align-items: start; }
.b-side { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.b-side .card { display: flex; flex-direction: column; gap: 12px; }
.b-side .h3 { margin: 0; }
.secs { display: flex; flex-direction: column; gap: 14px; }
.bsec { border: 1px solid var(--border); border-radius: 16px; background: var(--surface-2); }
.bsec-h { display: flex; align-items: center; gap: 10px; padding: 10px 12px 10px 6px; }
.bsec-n { font-size: 11.5px; font-weight: 750; text-transform: uppercase; letter-spacing: .08em; color: var(--faint); white-space: nowrap; }
.bsec-t { flex: 1; font: 700 15.5px var(--display); cursor: text; min-width: 0; }
.bsec-h small { color: var(--muted); font-size: 12.5px; white-space: nowrap; }
.row-a { display: flex; gap: 2px; }
.bles { padding: 0 12px 12px 12px; display: flex; flex-direction: column; gap: 8px; }
.bl { display: flex; align-items: center; gap: 10px; padding: 7px 8px 7px 4px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; min-height: 50px; }
.bl-ty { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; flex: none; }
.bl-ty.t-v { background: var(--primary-soft); color: var(--primary); }
.bl-ty.t-r { background: var(--green-soft); color: var(--green); }
.bl-ty.t-q { background: var(--marker-soft); color: var(--marker-ink); }
[data-theme="dark"] .bl-ty.t-q { color: var(--marker); }
.bl-t { flex: 1; font-weight: 600; min-width: 0; cursor: text; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bl small { color: var(--muted); font-size: 12.5px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.inline-in { flex: 1; min-width: 0; font-weight: 650; }
.grip { width: 28px; height: 34px; border: 0; background: none; color: var(--faint); display: grid; place-items: center; border-radius: 8px; cursor: grab; touch-action: none; flex: none; }
.grip:hover { color: var(--text); background: var(--surface-3); }
.bl-empty { padding: 12px; border: 1.5px dashed var(--border-2); border-radius: 12px; color: var(--muted); font-size: 13px; text-align: center; }
.add-l { display: flex; align-items: center; justify-content: center; gap: 8px; height: 40px; border-radius: 12px; border: 1.5px dashed var(--border-2); background: transparent; color: var(--muted); font-weight: 650; }
.add-l:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-soft); }
.drag-ghost { position: fixed; z-index: 500; pointer-events: none; margin: 0; box-shadow: 0 24px 50px rgba(39, 20, 53, .28); transform: rotate(1.2deg); opacity: .97; background: var(--surface); }
.drag-src { opacity: .32; }
.drop-line { position: fixed; z-index: 499; height: 4px; border-radius: 3px; background: var(--primary); box-shadow: 0 0 0 3px var(--primary-ring); display: none; pointer-events: none; }
body.is-dragging, body.is-dragging * { cursor: grabbing !important; user-select: none; }
.swatches { display: flex; gap: 7px; flex-wrap: wrap; }
.swb { width: 33px; height: 33px; border-radius: 11px; border: 2px solid transparent; background: linear-gradient(135deg, var(--a) 50%, var(--b) 50%); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .3); position: relative; }
.swb::after { content: ""; position: absolute; right: 4px; bottom: 4px; width: 9px; height: 9px; border-radius: 50%; background: var(--c); }
.swb.on { border-color: var(--text); }
.motifs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mtb { padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; background: none; }
.mtb.on { border-color: var(--text); }
.mt-art { aspect-ratio: 16 / 10; }
.chk { display: grid; gap: 9px; }
.chk li { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 13.5px; color: var(--text-2); }
.chk li span { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; flex: none; color: #fff; }
.chk li.ok span { background: var(--green); }
.chk li.no span { background: var(--red); }
.chk li.rec span { background: var(--amber); }
.b-side .cc { box-shadow: none; }
.b-side .cc:hover { transform: none; }
.tools { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.mini-k .mk { padding: 16px 18px; }
.mk small { color: var(--muted); font-weight: 650; }
.mk b { display: block; font: 800 26px var(--display); letter-spacing: -.02em; margin-top: 2px; }
.pager { display: flex; justify-content: space-between; align-items: center; padding-top: 14px; color: var(--muted); font-size: 13px; gap: 10px; flex-wrap: wrap; }
.lr-head { display: flex; align-items: center; gap: 14px; min-width: 0; }
.lr-course { display: flex; align-items: center; gap: 14px; padding: 12px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--border); }
.lr-course > div { flex: 1; min-width: 0; }
.lr-course b { display: block; font-weight: 700; }
.lr-course small { color: var(--muted); }
.lrc-art { width: 84px; border-radius: 8px; flex: none; }
.kv { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.kv > div { padding: 12px 14px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--border); }
.kv small { display: block; color: var(--muted); font-size: 12px; font-weight: 650; }
.kv b { font-weight: 700; }
.tl { display: flex; flex-direction: column; gap: 12px; padding-left: 6px; }
.tl > div { display: grid; grid-template-columns: 14px 1fr auto; gap: 10px; align-items: baseline; font-size: 13.5px; }
.tl i { width: 10px; height: 10px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 0 4px var(--primary-soft); }
.tl small { color: var(--muted); font-size: 12px; white-space: nowrap; }

/* ---------- overlays ---------- */
.overlay { position: fixed; inset: 0; z-index: 100; background: rgba(24, 12, 32, .45); backdrop-filter: blur(3px); display: grid; place-items: center; padding: 20px; animation: fade .15s ease-out; }
.modal { width: min(540px, 100%); max-height: calc(100vh - 40px); overflow-y: auto; background: var(--surface); border: 1px solid var(--border); border-radius: 22px; box-shadow: var(--shadow-lg); animation: pop .18s ease-out; }
.modal.wide { width: min(760px, 100%); }
.modal-h { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 22px 24px 6px; }
.modal-h h2 { font: 780 21px var(--display); letter-spacing: -.015em; }
.modal-h p { color: var(--muted); margin-top: 4px; font-size: 13.5px; }
.modal-b { padding: 14px 24px; display: flex; flex-direction: column; gap: 14px; }
.modal-f { padding: 12px 24px 22px; display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
.modal-f.center { justify-content: center; }
.overlay.k-side { place-items: stretch end; padding: 0; }
.overlay.k-side .modal { width: min(480px, 100%); max-height: none; height: 100vh; border-radius: 22px 0 0 22px; animation: slide .2s ease-out; display: flex; flex-direction: column; }
.overlay.k-side .modal-b { flex: 1; }
.overlay.k-top { place-items: start center; padding-top: 12vh; }
.overlay.k-top .modal { width: min(620px, 100%); }
.overlay.k-sheet .modal { width: min(480px, 100%); }
.sheet-list { padding-top: 6px; gap: 2px; }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.98); } }
@keyframes slide { from { transform: translateX(40px); opacity: 0; } }
@keyframes up { from { transform: translateY(40px); } }
.pal-in { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--border); }
.pal-in .i { color: var(--muted); }
.pal-in input { flex: 1; border: 0; outline: none; background: none; font-size: 16px; height: 34px; min-width: 0; }
.pal-list { max-height: 400px; overflow-y: auto; padding: 8px; }
.pal-g { font-size: 11px; font-weight: 750; text-transform: uppercase; letter-spacing: .08em; color: var(--faint); padding: 10px 10px 6px; }
.pal-i { width: 100%; display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 11px; border: 0; background: none; text-align: left; }
.pal-i.on { background: var(--primary-soft); }
.pal-l { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; }
.pal-i .k { color: var(--muted); font-size: 12px; white-space: nowrap; max-width: 45%; overflow: hidden; text-overflow: ellipsis; }
.pal-i .ico { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: var(--surface-3); color: var(--text-2); flex: none; }
.pal-art { width: 32px; height: 32px; border-radius: 9px; display: block; }
.pal-foot { display: flex; gap: 16px; padding: 10px 18px; border-top: 1px solid var(--border); color: var(--muted); font-size: 12px; }
.pal-foot kbd { margin-right: 3px; }
#toasts { position: fixed; right: 22px; bottom: 22px; z-index: 300; display: flex; flex-direction: column; gap: 10px; align-items: flex-end; pointer-events: none; }
.toast { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 14px; background: #271435; color: #fff; box-shadow: var(--shadow-lg); font-weight: 600; animation: pop .18s ease-out; max-width: 380px; }
.toast .i { color: #4ade80; }
.toast.warn .i { color: var(--marker); }
.toast.out { opacity: 0; transform: translateY(6px); transition: all .3s; }
[data-theme="dark"] .toast { background: #f7eefe; color: #271435; }
[data-theme="dark"] .toast .i { color: #15803d; }
[data-theme="dark"] .toast.warn .i { color: #b45309; }
.celebrate { position: relative; text-align: center; padding: 34px 28px 8px; overflow: hidden; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.celebrate h2 { font: 800 28px var(--display); letter-spacing: -.02em; }
.celebrate p { color: var(--text-2); max-width: 380px; }
.cel-ic { width: 76px; height: 76px; border-radius: 24px; display: grid; place-items: center; background: linear-gradient(180deg, #ffdc5c, #f5b800); color: #271435; box-shadow: 0 16px 36px rgba(245, 184, 0, .4); position: relative; }
.cel-ic.ok { background: linear-gradient(180deg, #34d399, #16a34a); color: #fff; box-shadow: 0 16px 36px rgba(22, 163, 74, .35); }
.confetti { position: absolute; left: 0; right: 0; top: 0; height: 120px; pointer-events: none; }
.celebrate > :not(.confetti) { position: relative; z-index: 1; }
.confetti i { position: absolute; width: 8px; height: 14px; border-radius: 2px; opacity: .9; animation: fall 1.6s ease-out both; }
@keyframes fall { from { transform: translateY(-60px) rotate(0); opacity: 0; } 20% { opacity: 1; } }
.rc-box { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; width: 100%; margin-top: 8px; }
.rc-box > div { padding: 10px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--border); }
.rc-box small { display: block; color: var(--muted); font-size: 11.5px; }
.rc-box b { font-size: 14px; }
.fsheet { padding-top: 0; }
.fsheet .fgroup:first-child { padding-top: 6px; }

/* ---------- responsive ---------- */
@media (max-width: 1280px) {
  .cards4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cards4 > :nth-child(4) { display: none; }
  .cat-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lstats { grid-template-columns: 1fr 1fr; }
  .sc { grid-template-columns: 180px minmax(0, 1fr) auto; }
  .sc-stats { display: none; }
  .pgrid { grid-template-columns: minmax(0, 1fr) 320px; }
}
@media (max-width: 1080px) {
  .hero { grid-template-columns: 1fr; }
  .hero-r { display: none; }
  .cards3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cat-layout { grid-template-columns: 220px minmax(0, 1fr); }
  .c-hero-in { padding-right: 28px; }
  .c-body { grid-template-columns: minmax(0, 1fr); grid-template-areas: "side" "main"; }
  .c-side { margin-top: 0; position: static; max-width: 560px; }
  .co, .b-grid, .g2-1, .g2, .two-promo { grid-template-columns: minmax(0, 1fr); }
  .co-sum { position: static; }
  .login { grid-template-columns: 1fr; }
  .login-art { display: none; }
  .login-box .logo.only-m { display: inline-flex !important; margin-bottom: 8px; }
  .pgrid { grid-template-columns: minmax(0, 1fr); }
  .pside { display: none; }
  .ptabs .only-m { display: inline-block !important; }
  .cont-row, .ins-row, .quotes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cont-row > :nth-child(3), .ins-row > :nth-child(n+3) { display: none; }
}
@media (max-width: 860px) {
  body { font-size: 14px; }
  .icon-btn.only-m { display: grid !important; }
  .btn.only-m, .logo.only-m { display: inline-flex !important; }
  small.only-m { display: block !important; }
  .hide-m { display: none !important; }
  .nav-in { height: 60px; padding: 0 16px; gap: 10px; }
  .nav-links, .nav .nav-search { display: none; }
  .nav-r { margin-left: auto; }
  .logo { font-size: 18px; }
  .logo svg { width: 30px; height: 30px; }
  .me-btn { padding: 0 4px; height: 42px; border-radius: 999px; gap: 2px; }
  .me-btn .i { display: none; }
  .page { padding: 20px 16px 110px; }
  .ph { margin-bottom: 18px; }
  .ph h1 { font-size: 27px; }
  .ph p { font-size: 14px; }
  .pop { position: fixed; top: 66px; left: 12px; right: 12px; width: auto; }
  .tabbar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: color-mix(in srgb, var(--surface) 94%, transparent); backdrop-filter: blur(12px); border-top: 1px solid var(--border); padding: 7px 4px calc(7px + env(safe-area-inset-bottom)); }
  .tabbar a, .tabbar button { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 11px; font-weight: 650; color: var(--muted); border: 0; background: none; padding: 4px 0; min-width: 0; }
  .tabbar .on { color: var(--primary); }
  .tabbar .on .i { stroke-width: 2.4; }
  .sfoot { display: none; }
  .hero { padding-top: 6px; }
  .hero h1 { font-size: 38px; margin-top: 16px; }
  .hero .lead { font-size: 15.5px; margin-top: 12px; }
  .hero-search { height: 54px; padding: 0 6px 0 16px; margin-top: 20px; }
  .hero-search .btn { height: 42px; padding: 0 16px; }
  .hero-stats { gap: 14px 22px; margin-top: 24px; }
  .hero-stats b { font-size: 21px; height: 28px; }
  .hero-stats > div:last-child { display: none; }
  .sec { margin-top: 40px; }
  .sec-h { align-items: flex-start; }
  .sec-h h2 { font-size: 23px; }
  .sec-h p { font-size: 13.5px; }
  .sec-h .btn { display: none; }
  .cont-row, .ins-row, .quotes, .cards3, .certs { grid-template-columns: minmax(0, 1fr); }
  .cont-row > :nth-child(3), .ins-row > :nth-child(n+3) { display: flex; }
  .ins-row > :nth-child(n+3) { display: none; }
  .cards4 { grid-template-columns: minmax(0, 1fr); }
  .cards4 > :nth-child(4) { display: flex; }
  .cards4 > :nth-child(n+4) { display: none; }
  .cat-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .cat-tile { padding: 14px; }
  .cat-tile .ico { width: 38px; height: 38px; margin-bottom: 6px; }
  .promo { flex-direction: column; align-items: flex-start; padding: 22px; min-height: 0; }
  .promo-art { display: none; }
  .week.big { padding: 12px; gap: 6px; }
  .week.big i { width: 30px; height: 30px; }
  .quote blockquote { font-size: 16.5px; }
  .cat-layout { grid-template-columns: minmax(0, 1fr); }
  .filters { display: none; }
  .cat-tools { flex-wrap: wrap; }
  .cat-tools .search { flex-basis: 100%; }
  .sort { flex: 1; }
  .sort select { width: 100%; min-width: 0; }
  .c-hero-in { padding: 22px 16px 30px; }
  .c-body { padding: 0 16px; }
  .page.flush { padding-bottom: 110px; }
  .c-hero h1 { font-size: 29px; }
  .c-sub { font-size: 15.5px; }
  .c-facts { gap: 6px 14px; font-size: 13px; }
  .c-body { margin-top: 18px; gap: 18px; }
  .c-main { gap: 16px; }
  .learn { grid-template-columns: minmax(0, 1fr); }
  .cblock, .card { padding: 18px; }
  .rv-sum { flex-direction: column; gap: 14px; align-items: stretch; }
  .ins-big { flex-direction: column; gap: 12px; }
  .acc-h { padding: 13px 12px; align-items: flex-start; }
  .acc-h small { display: none; }
  .pm-tabs { grid-template-columns: 1fr 1fr; gap: 8px; }
  .pm { padding: 10px; gap: 8px; }
  .pm-ic { width: 34px; height: 34px; }
  .pm .rd { display: none; }
  .upi { flex-direction: column; align-items: stretch; }
  .qr-box { align-self: center; }
  .cardpay { grid-template-columns: minmax(0, 1fr); }
  .cardviz { max-width: 320px; }
  .bill { grid-template-columns: minmax(0, 1fr); }
  .lstats { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
  .lstats .streak-card { grid-column: 1 / -1; }
  .lstats .goal-card { grid-column: 1 / -1; }
  .week { justify-content: space-between; }
  .ls .big { font-size: 24px; }
  .resume { grid-template-columns: minmax(0, 1fr); gap: 14px; padding: 14px; }
  .rs-b h2 { font-size: 21px; }
  .lrow-c { flex-wrap: wrap; gap: 12px; padding: 14px; }
  .lrow-c .lr-art { display: none; }
  .lrow-c .ring { width: 50px; height: 50px; }
  .lr-act { width: 100%; }
  .lr-act .btn { width: 100%; }
  .cert-card { flex-direction: column; align-items: stretch; }
  .cert-mini { width: 100%; }
  .goal-opts { grid-template-columns: repeat(3, 1fr); }
  .pbar { padding: 0 12px; gap: 10px; height: 60px; }
  .pb-t { padding-left: 0; border-left: 0; }
  .pb-t b { font-size: 14.5px; }
  .pgrid { padding: 0 0 100px; gap: 0; }
  .vp { border-radius: 0; box-shadow: none; }
  .ctrl { flex-wrap: wrap; padding: 6px 8px 8px; gap: 2px; }
  .scrub { order: -1; flex-basis: 100%; margin: 0 6px 4px; }
  .ptime { margin-right: auto; }
  .pmain > :not(.vp):not(.quiz):not(.reading):not(.locked) { margin-left: 16px; margin-right: 16px; }
  .pmain > .quiz, .pmain > .reading, .pmain > .locked { margin: 12px 12px 0; }
  .prev-banner { margin-top: 12px; flex-wrap: wrap; font-size: 13px; }
  .lhead { margin-top: 16px; }
  .lhead h1 { font-size: 22px; }
  .lh-act { width: 100%; }
  .lh-act .btn { flex: 1; }
  .ptabs button { padding: 0 9px; font-size: 13.5px; }
  .bl .row-a [data-act="ren"] { display: none; }
  .bl .pill { display: none; }
  .ov-grid { grid-template-columns: minmax(0, 1fr); }
  .note-form { flex-wrap: wrap; }
  .note-form .input { flex-basis: 100%; order: 3; border: 1px solid var(--border); padding: 0 12px; }
  .note-form .btn { margin-left: auto; }
  .nt { flex-wrap: wrap; }
  .tr-list { max-height: 360px; }
  .quiz { padding: 22px 18px; min-height: 0; }
  .qz-q { font-size: 19px; margin: 16px 0 14px; }
  .qz-dots { margin-left: 0; width: 100%; }
  .qz-dots i { flex: 1; }
  .opt { padding: 12px; font-size: 14px; }
  .qr-top { flex-direction: column; align-items: flex-start; gap: 16px; }
  .reading { padding: 22px 18px; }
  .reading h2 { font-size: 24px; }
  .locked { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .cert-tools .row { width: 100%; }
  .cert-tools .row .btn { flex: 1; padding: 0 10px; font-size: 13px; }
  .cert { padding: 2.6cqw; }
  .studio { grid-template-columns: minmax(0, 1fr); }
  .sside { display: none; }
  .stop { height: 60px; padding: 0 16px; }
  .stop .nav-search { display: none; }
  .stop .logo b { font-size: 17px; }
  .b-head { align-items: stretch; flex-direction: column; }
  .b-title h1 { font-size: 22px; }
  .bh-art { width: 76px; }
  .b-act { width: 100%; }
  .b-act > * { flex: 1; }
  .pub-toggle { height: 50px; }
  .bsec-n { display: none; }
  .bl { gap: 6px; }
  .bl small { display: none; }
  .sc { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .sc-a { flex-direction: row; }
  .sc-a .btn { flex: 1; }
  .tools .search { flex-basis: 100%; }
  .tools .input.auto { flex: 1; }
  .kpi .val { font-size: 24px; }
  .kpi .spark { display: none; }
  .g4 { gap: 12px; }
  .kpi { padding: 16px; }
  .mk b { font-size: 22px; }
  .donut-wrap { flex-direction: column; align-items: stretch; }
  .donut { align-self: center; }
  .ph-actions { width: 100%; }
  .ph-actions .seg { width: 100%; }
  .ph-actions .seg button { flex: 1; padding: 0 6px; }
  .overlay { padding: 12px; }
  .overlay.k-sheet { place-items: end stretch; padding: 0; }
  .overlay.k-sheet .modal { width: 100%; max-height: 88vh; border-radius: 22px 22px 0 0; animation: up .22s ease-out; }
  .overlay.k-side .modal { width: 100%; border-radius: 0; }
  .overlay.k-top { padding: 12px; padding-top: 70px; }
  .modal-h, .modal-b, .modal-f { padding-left: 18px; padding-right: 18px; }
  .rc-box { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .rc-box > div:last-child { grid-column: 1 / -1; }
  .pal-foot { display: none; }
  .two { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  #toasts { left: 16px; right: 16px; bottom: 86px; align-items: stretch; }
  .toast { max-width: none; }
  table.t td, table.t th { padding: 10px 8px; }
}
@media print {
  @page { size: A4 landscape; margin: 0; }
  body * { visibility: hidden !important; }
  .cert, .cert * { visibility: visible !important; }
  .cert { position: fixed; left: 0; top: 0; width: 297mm; max-width: none; height: 210mm; box-shadow: none; border-radius: 0; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
