/* ============================================================
   Fyreside portal — themed subscriber experience
   Three themes (Atelier · Hearth · Studio) × Light/Dark
   Mobile-first; desktop shows a centered 440px column.
   ============================================================ */

.portal-themed { --tab-h: 66px; }
.portal-themed *,
.portal-themed *::before,
.portal-themed *::after { box-sizing: border-box; }

.portal-themed { background: var(--bg); color: var(--ink); min-height: 100vh; font-size: 14px; line-height: 1.5; }

/* Links and buttons inherit color and drop defaults — components paint accents themselves. */
.portal-themed a { color: inherit; text-decoration: none; }
.portal-themed button { font-family: inherit; color: inherit; background: transparent; }

/* Default SVG sizing inside small chrome (play, icons, tag arrows) */
.portal-themed .play svg { width: 12px; height: 12px; }
.portal-themed .back svg,
.portal-themed .ic svg { width: 14px; height: 14px; }

/* Mobile: full width. Desktop: center and frame */
.portal-themed .scr {
    max-width: 460px;
    margin: 0 auto;
    background: var(--bg);
    color: var(--ink);
    min-height: 100vh;
    padding-bottom: calc(var(--tab-h) + env(safe-area-inset-bottom) + 12px);
    position: relative;
    font-size: 14px;
    line-height: 1.5;
}
@media (min-width: 768px) {
    .portal-themed { padding: 24px 12px; }
    .portal-themed .scr {
        min-height: calc(100vh - 48px);
        border-radius: 20px;
        box-shadow: 0 24px 60px -28px rgba(0,0,0,.25);
        overflow: hidden;
    }
}

/* Shared buttons */
.portal-themed .btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 7px;
    padding: 11px 16px; border-radius: 10px;
    font: 500 13px Inter, system-ui, sans-serif;
    cursor: pointer; border: 0; text-decoration: none;
}
.portal-themed .btn.primary { background: var(--accent); color: #fff; }
.portal-themed .btn.ink { background: var(--ink); color: var(--bg); }
.portal-themed .btn.ghost { background: transparent; border: 1px solid var(--line); color: var(--ink); }
.portal-themed .btn-sm { padding: 8px 12px; font-size: 12px; }

/* Bottom tab bar */
.portal-themed .tabbar {
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 40;
    background: var(--surface);
    border-top: 1px solid var(--line);
    padding: 8px 10px calc(10px + env(safe-area-inset-bottom));
    display: grid; grid-template-columns: repeat(5, 1fr); gap: 2px;
    max-width: 460px; margin: 0 auto;
    backdrop-filter: blur(10px);
}
.portal-themed .tabbar .tb {
    display: flex; flex-direction: column; align-items: center; gap: 3px;
    font-size: 10px; color: var(--ink-3);
    padding: 6px 2px; border-radius: 8px; font-weight: 500;
    text-decoration: none;
}
.portal-themed .tabbar .tb.active { color: var(--accent); }
.portal-themed .tabbar .tb svg { width: 18px; height: 18px; }

/* Top bar (shared shell inside each screen) */
.portal-themed .topbar {
    display: flex; align-items: center; justify-content: space-between;
    padding: 10px 16px 12px;
}
.portal-themed .topbar .n { font-size: 16px; font-weight: 600; letter-spacing: -.01em; }
.portal-themed .topbar .r { display: flex; gap: 8px; align-items: center; }
.portal-themed .topbar .ic {
    width: 30px; height: 30px; border-radius: 50%;
    background: var(--surface-2);
    display: grid; place-items: center; color: var(--ink-2);
    border: 0; cursor: pointer; text-decoration: none;
}
.portal-themed .topbar .ic svg { width: 14px; height: 14px; }
.portal-themed .topbar .av {
    width: 32px; height: 32px; border-radius: 50%;
    background: linear-gradient(135deg, var(--avatar-a, #eed6bf), var(--avatar-b, #4e2518));
    display: grid; place-items: center; color: #fff; font-size: 12px; font-weight: 600;
    text-decoration: none;
}

/* ================================================================
   OPTION A — ATELIER (editorial, serif, monochrome + clay)
   ================================================================ */
.portal-themed.a.theme-light {
    --bg:#f4f1ea; --surface:#fdfbf6; --surface-2:#eceadf;
    --ink:#17130e; --ink-2:#4a4239; --ink-3:#8b8275;
    --line:#e4dfd2; --line-2:#ece8db;
    --accent:#b8563d; --good:#385540;
}
.portal-themed.a.theme-dark {
    --bg:#141211; --surface:#1c1917; --surface-2:#25211c;
    --ink:#f1ebde; --ink-2:#b8aea0; --ink-3:#7a7164;
    --line:#2a261f; --line-2:#221e18;
    --accent:#d9765a; --good:#86b697;
}

.portal-themed.a .topbar { border-bottom: 1px solid var(--line-2); }
.portal-themed.a .topbar .n { font-family: 'Instrument Serif', serif; font-weight: 400; font-size: 18px; }

/* HOME */
.portal-themed.a .home .hero { padding: 16px 16px 0; }
.portal-themed.a .home .hero .mono {
    font-family: 'JetBrains Mono', monospace; font-size: 10px;
    letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3);
}
.portal-themed.a .home .hero h1 {
    font-family: 'Instrument Serif', serif; font-weight: 400;
    font-size: 30px; line-height: 1.02; letter-spacing: -.02em; margin: 4px 0 10px;
}
.portal-themed.a .home .hero h1 em { font-style: italic; color: var(--accent); }

.portal-themed.a .home .cont { margin-top: 10px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); overflow: hidden; }
.portal-themed.a .home .cont .cover { position: relative; aspect-ratio: 16/9; background: linear-gradient(135deg, #eed6bf, #4e2518); }
.portal-themed.a .home .cont .cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.portal-themed.a .home .cont .cover .tag { position: absolute; top: 8px; left: 8px; background: rgba(255,255,255,.9); color: var(--ink); padding: 3px 8px; border-radius: 999px; font-family: 'JetBrains Mono', monospace; font-size: 9px; letter-spacing: .14em; }
.portal-themed.a .home .cont .cover .play { position: absolute; bottom: 8px; right: 8px; width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.95); display: grid; place-items: center; color: var(--accent); text-decoration: none; }
.portal-themed.a .home .cont .cover .play svg { width: 12px; height: 12px; }
.portal-themed.a .home .cont .cover .bar { position: absolute; bottom: 0; left: 0; right: 0; height: 3px; background: rgba(0,0,0,.2); }
.portal-themed.a .home .cont .cover .bar i { display: block; height: 100%; background: var(--accent); }
.portal-themed.a .home .cont .body { padding: 12px 14px; }
.portal-themed.a .home .cont .body .l { font-family: 'JetBrains Mono', monospace; font-size: 9px; letter-spacing: .12em; color: var(--ink-3); text-transform: uppercase; }
.portal-themed.a .home .cont .body h3 { font-family: 'Instrument Serif', serif; font-weight: 400; font-size: 18px; letter-spacing: -.01em; margin: 3px 0 6px; line-height: 1.15; }
.portal-themed.a .home .cont .body .meta { display: flex; justify-content: space-between; font-size: 11px; color: var(--ink-3); }

.portal-themed.a .home .streak { margin: 14px 16px 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.portal-themed.a .home .streak b { font-family: 'Instrument Serif', serif; font-weight: 400; font-size: 17px; }
.portal-themed.a .home .streak .days { display: flex; gap: 3px; }
.portal-themed.a .home .streak .days i { width: 14px; height: 14px; border-radius: 3px; background: var(--line); display: block; }
.portal-themed.a .home .streak .days i.on { background: var(--accent); }

.portal-themed.a .home .sh { padding: 18px 16px 8px; }
.portal-themed.a .home .sh .eye { font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: .16em; color: var(--ink-3); text-transform: uppercase; }
.portal-themed.a .home .sh h2 { font-family: 'Instrument Serif', serif; font-weight: 400; font-size: 22px; letter-spacing: -.015em; margin: 2px 0 0; }
.portal-themed.a .home .sh h2 em { font-style: italic; color: var(--accent); }
.portal-themed.a .home .sh { position: relative; padding-right: 64px; }
.portal-themed.a .home .sh .all { position: absolute; right: 16px; top: 22px; font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }

.portal-themed.a .home .lib { padding: 0 16px; display: grid; gap: 8px; }
.portal-themed.a .home .lib .r { display: grid; grid-template-columns: 44px 1fr auto; gap: 10px; align-items: center; padding: 10px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; text-decoration: none; color: var(--ink); }
.portal-themed.a .home .lib .r .tb { width: 44px; height: 44px; border-radius: 8px; background-size: cover; background-position: center; }
.portal-themed.a .home .lib .r .t b { display: block; font-family: 'Instrument Serif', serif; font-weight: 400; font-size: 14px; line-height: 1.15; }
.portal-themed.a .home .lib .r .t span { font-size: 10px; color: var(--ink-3); font-family: 'JetBrains Mono', monospace; letter-spacing: .08em; text-transform: uppercase; }
.portal-themed.a .home .lib .r .p { font-family: 'Instrument Serif', serif; font-size: 14px; color: var(--accent); }

.portal-themed.a .home .comm { margin: 14px 16px 0; padding: 12px 14px; border-radius: 12px; background: var(--ink); color: var(--bg); }
.portal-themed.a .home .comm .h { display: flex; justify-content: space-between; align-items: center; font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: #c4bdb0; }
.portal-themed.a .home .comm .h .d { width: 6px; height: 6px; border-radius: 50%; background: #65e08a; animation: pl 2s infinite; }
.portal-themed.a .home .comm p { margin: 6px 0 0; font-family: 'Instrument Serif', serif; font-size: 14px; line-height: 1.35; }
.portal-themed.a .home .comm .who { margin-top: 8px; font-size: 11px; color: #c4bdb0; display: flex; align-items: center; gap: 6px; }
.portal-themed.a .home .comm .who .av { width: 18px; height: 18px; border-radius: 50%; background: linear-gradient(135deg, #d7c2a4, #6e4a2d); }

.portal-themed.a .home .promo { margin: 14px 16px 0; padding: 14px; border: 1px dashed var(--line); border-radius: 12px; display: grid; grid-template-columns: 50px 1fr auto; gap: 10px; align-items: center; text-decoration: none; color: var(--ink); }
.portal-themed.a .home .promo .c { width: 50px; height: 50px; border-radius: 8px; background: linear-gradient(135deg, #d9e2cf, #3d5642); background-size: cover; background-position: center; }
.portal-themed.a .home .promo b { font-family: 'Instrument Serif', serif; font-size: 14px; display: block; margin-bottom: 2px; }
.portal-themed.a .home .promo span { font-size: 11px; color: var(--ink-2); display: block; }
.portal-themed.a .home .promo .p { font-family: 'Instrument Serif', serif; font-size: 16px; color: var(--accent); }

/* CATALOG */
.portal-themed.a .cat .top { padding: 8px 16px; display: flex; align-items: center; gap: 8px; border-bottom: 1px solid var(--line-2); }
.portal-themed.a .cat .top .back { width: 30px; height: 30px; border-radius: 50%; background: var(--surface-2); display: grid; place-items: center; color: var(--ink-2); text-decoration: none; }
.portal-themed.a .cat .top .t { flex: 1; font-family: 'Instrument Serif', serif; font-size: 17px; }
.portal-themed.a .cat .search { margin: 12px 16px 0; padding: 10px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; display: flex; align-items: center; gap: 8px; color: var(--ink-3); font-size: 12.5px; }
.portal-themed.a .cat .chips { margin: 12px 16px 0; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; }
.portal-themed.a .cat .chips::-webkit-scrollbar { display: none; }
.portal-themed.a .cat .chips span { flex: 0 0 auto; padding: 6px 11px; border: 1px solid var(--line); border-radius: 999px; font-size: 11px; color: var(--ink-2); background: var(--surface); font-family: 'JetBrains Mono', monospace; letter-spacing: .06em; text-transform: uppercase; }
.portal-themed.a .cat .chips span.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }

.portal-themed.a .cat .flagship { margin: 14px 16px 0; border-radius: 14px; overflow: hidden; background: var(--ink); color: var(--bg); position: relative; text-decoration: none; display: block; }
.portal-themed.a .cat .flagship .cover { aspect-ratio: 16/10; background: linear-gradient(135deg, #4e2518, #17130e); background-size: cover; background-position: center; position: relative; }
.portal-themed.a .cat .flagship .cover .live { position: absolute; top: 8px; left: 8px; background: var(--accent); color: #fff; padding: 3px 7px; border-radius: 3px; font-family: 'JetBrains Mono', monospace; font-size: 9px; letter-spacing: .14em; text-transform: uppercase; }
.portal-themed.a .cat .flagship .body { padding: 12px 14px 14px; }
.portal-themed.a .cat .flagship .body .l { font-family: 'JetBrains Mono', monospace; font-size: 9px; letter-spacing: .12em; color: var(--accent); text-transform: uppercase; }
.portal-themed.a .cat .flagship .body h3 { font-family: 'Instrument Serif', serif; font-weight: 400; font-size: 20px; margin: 4px 0 6px; line-height: 1.1; color: var(--bg); }
.portal-themed.a .cat .flagship .body p { margin: 0 0 10px; font-size: 12px; color: #c4bdb0; line-height: 1.45; }
.portal-themed.a .cat .flagship .body .row { display: flex; justify-content: space-between; align-items: center; padding-top: 10px; border-top: 1px solid rgba(255,255,255,.12); gap: 10px; }
.portal-themed.a .cat .flagship .body .row .p { font-family: 'Instrument Serif', serif; font-size: 17px; }
.portal-themed.a .cat .flagship .body .row .cta { background: var(--accent); color: #fff; padding: 8px 14px; border-radius: 999px; font-size: 11.5px; }

.portal-themed.a .cat .grid { margin: 14px 16px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.portal-themed.a .cat .grid .c { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; text-decoration: none; color: var(--ink); display: block; }
.portal-themed.a .cat .grid .c .cv { aspect-ratio: 4/3; background-size: cover; background-position: center; }
.portal-themed.a .cat .grid .c .b { padding: 8px 10px 10px; }
.portal-themed.a .cat .grid .c .b .k { font-family: 'JetBrains Mono', monospace; font-size: 9px; letter-spacing: .1em; color: var(--ink-3); text-transform: uppercase; }
.portal-themed.a .cat .grid .c .b h4 { margin: 2px 0 5px; font-family: 'Instrument Serif', serif; font-weight: 400; font-size: 14px; line-height: 1.15; letter-spacing: -.005em; }
.portal-themed.a .cat .grid .c .b .p { font-family: 'Instrument Serif', serif; font-size: 14px; color: var(--accent); }

/* PLAYER */
.portal-themed.a .play .video { background: #000; aspect-ratio: 16/9; position: relative; overflow: hidden; }
.portal-themed.a .play .video iframe, .portal-themed.a .play .video video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.portal-themed.a .play .video .bg { position: absolute; inset: 0; background: linear-gradient(160deg, #4e2518, #1a0a05); }
.portal-themed.a .play .video .back { position: absolute; top: 10px; left: 10px; width: 30px; height: 30px; border-radius: 50%; background: rgba(0,0,0,.5); display: grid; place-items: center; color: #fff; z-index: 3; text-decoration: none; }
.portal-themed.a .play .body { padding: 14px 16px; }
.portal-themed.a .play .kind { font-family: 'JetBrains Mono', monospace; font-size: 10px; color: var(--ink-3); letter-spacing: .12em; text-transform: uppercase; }
.portal-themed.a .play h2 { font-family: 'Instrument Serif', serif; font-weight: 400; font-size: 20px; margin: 3px 0 6px; line-height: 1.15; letter-spacing: -.01em; }
.portal-themed.a .play .sub { font-size: 11.5px; color: var(--ink-3); }
.portal-themed.a .play .acts { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin: 10px 0 14px; }
.portal-themed.a .play .acts .a { padding: 9px; text-align: center; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; font-size: 11.5px; color: var(--ink-2); display: flex; align-items: center; justify-content: center; gap: 5px; cursor: pointer; }
.portal-themed.a .play .acts .a.done { background: var(--good); color: #fff; border-color: var(--good); }
.portal-themed.a .play .acts button.a { border: 1px solid var(--line); font: inherit; }
.portal-themed.a .play .tabs { border-bottom: 1px solid var(--line); display: flex; gap: 14px; }
.portal-themed.a .play .tabs .t { padding: 8px 0; font-size: 12px; color: var(--ink-3); font-weight: 500; border-bottom: 2px solid transparent; cursor: pointer; }
.portal-themed.a .play .tabs .t.on { color: var(--ink); border-color: var(--ink); }
.portal-themed.a .play .up { margin-top: 12px; display: grid; gap: 8px; }
.portal-themed.a .play .up .u { display: grid; grid-template-columns: 28px 1fr auto; gap: 9px; align-items: center; padding: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; text-decoration: none; color: var(--ink); }
.portal-themed.a .play .up .u .n { font-family: 'JetBrains Mono', monospace; font-size: 10px; color: var(--ink-3); text-align: center; }
.portal-themed.a .play .up .u b { font-family: 'Instrument Serif', serif; font-weight: 400; font-size: 13px; line-height: 1.15; display: block; }
.portal-themed.a .play .up .u span { font-size: 10px; color: var(--ink-3); }
.portal-themed.a .play .up .u .st { font-family: 'JetBrains Mono', monospace; font-size: 9px; color: var(--ink-3); letter-spacing: .06em; text-transform: uppercase; }
.portal-themed.a .play .up .u.cur { background: var(--surface-2); border-color: var(--accent); }
.portal-themed.a .play .up .u.cur .st { color: var(--accent); }

/* LIBRARY */
.portal-themed.a .lib .head { padding: 10px 16px; }
.portal-themed.a .lib .head h1 { font-family: 'Instrument Serif', serif; font-weight: 400; font-size: 24px; margin: 0; letter-spacing: -.015em; }
.portal-themed.a .lib .head .sub { font-size: 11px; color: var(--ink-3); margin-top: 2px; font-family: 'JetBrains Mono', monospace; letter-spacing: .06em; text-transform: uppercase; }
.portal-themed.a .lib .subtabs { padding: 12px 16px 0; display: flex; gap: 12px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.portal-themed.a .lib .subtabs::-webkit-scrollbar { display: none; }
.portal-themed.a .lib .subtabs .st { padding: 8px 0; font-size: 12px; color: var(--ink-3); border-bottom: 2px solid transparent; white-space: nowrap; font-weight: 500; }
.portal-themed.a .lib .subtabs .st.on { color: var(--ink); border-color: var(--ink); }
.portal-themed.a .lib .list { padding: 12px 16px; display: grid; gap: 10px; }
.portal-themed.a .lib .list .c { display: grid; grid-template-columns: 90px 1fr; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; text-decoration: none; color: var(--ink); }
.portal-themed.a .lib .list .c .cv { background: linear-gradient(135deg, #eed6bf, #4e2518); background-size: cover; background-position: center; }
.portal-themed.a .lib .list .c .bd { padding: 10px 12px; }
.portal-themed.a .lib .list .c .k { font-family: 'JetBrains Mono', monospace; font-size: 9px; letter-spacing: .1em; color: var(--ink-3); text-transform: uppercase; }
.portal-themed.a .lib .list .c h4 { font-family: 'Instrument Serif', serif; font-weight: 400; font-size: 15px; margin: 2px 0 6px; line-height: 1.15; letter-spacing: -.005em; }
.portal-themed.a .lib .list .c .prog { height: 3px; background: var(--line); border-radius: 2px; margin-bottom: 5px; }
.portal-themed.a .lib .list .c .prog i { display: block; height: 100%; background: var(--accent); border-radius: 2px; }
.portal-themed.a .lib .list .c .meta { font-size: 10.5px; color: var(--ink-3); display: flex; justify-content: space-between; font-family: 'JetBrains Mono', monospace; letter-spacing: .04em; }
.portal-themed.a .lib .list .c.done .meta b { color: var(--good); text-transform: uppercase; }

/* PROFILE */
.portal-themed.a .pro .head { padding: 16px; text-align: center; border-bottom: 1px solid var(--line-2); }
.portal-themed.a .pro .head .av { width: 68px; height: 68px; border-radius: 50%; background: linear-gradient(135deg, #d9e2cf, #3d5642); margin: 0 auto 10px; display: grid; place-items: center; color: #fff; font-weight: 600; font-size: 22px; }
.portal-themed.a .pro .head h1 { font-family: 'Instrument Serif', serif; font-weight: 400; font-size: 24px; margin: 0; letter-spacing: -.01em; }
.portal-themed.a .pro .head .h { font-size: 11px; color: var(--ink-3); font-family: 'JetBrains Mono', monospace; letter-spacing: .08em; margin-top: 4px; text-transform: uppercase; }
.portal-themed.a .pro .stats { margin: 14px 16px 0; padding: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; display: grid; grid-template-columns: 1fr 1fr 1fr; text-align: center; }
.portal-themed.a .pro .stats div { border-right: 1px solid var(--line); }
.portal-themed.a .pro .stats div:last-child { border: 0; }
.portal-themed.a .pro .stats b { display: block; font-family: 'Instrument Serif', serif; font-size: 20px; line-height: 1; margin-bottom: 3px; }
.portal-themed.a .pro .stats span { font-size: 9.5px; color: var(--ink-3); font-family: 'JetBrains Mono', monospace; letter-spacing: .08em; text-transform: uppercase; }
.portal-themed.a .pro .section { margin: 16px 16px 0; }
.portal-themed.a .pro .section .title { font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 7px; }
.portal-themed.a .pro .menu { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.portal-themed.a .pro .menu .m { padding: 12px 14px; display: flex; justify-content: space-between; align-items: center; font-size: 13px; border-bottom: 1px solid var(--line-2); text-decoration: none; color: var(--ink); width: 100%; background: transparent; border-left: 0; border-right: 0; border-top: 0; font-family: inherit; cursor: pointer; }
.portal-themed.a .pro .menu .m:last-child { border: 0; }
.portal-themed.a .pro .menu .m .r { color: var(--ink-3); font-size: 11px; display: flex; align-items: center; gap: 5px; }
.portal-themed.a .pro .menu .m .r svg { width: 10px; height: 10px; }

/* ================================================================
   OPTION B — HEARTH (warm journal)
   ================================================================ */
.portal-themed.b.theme-light {
    --bg:#f7f1e8; --surface:#fbf6ee; --surface-2:#ede5d4;
    --ink:#2d1f14; --ink-2:#6b5a45; --ink-3:#a89879;
    --line:#e0d4bf; --line-2:#ebe2cf;
    --accent:#c87545; --good:#7a8b4d;
}
.portal-themed.b.theme-dark {
    --bg:#1a1510; --surface:#221a12; --surface-2:#2a2018;
    --ink:#f3e6d1; --ink-2:#bfae93; --ink-3:#7c6f5a;
    --line:#2f2520; --line-2:#262019;
    --accent:#e69268; --good:#a9c08a;
}

.portal-themed.b .topbar .n { font-family: 'Fraunces', serif; font-weight: 500; font-size: 17px; letter-spacing: -.01em; }
.portal-themed.b .topbar .ic { border: 1px solid var(--line-2); background: var(--surface); }

/* HOME B */
.portal-themed.b .home .hero { padding: 4px 16px 0; }
.portal-themed.b .home .wave { font-family: 'Caveat', cursive; font-size: 22px; color: var(--accent); }
.portal-themed.b .home .hero h1 { font-family: 'Fraunces', serif; font-weight: 400; font-size: 26px; margin: 0 0 10px; line-height: 1.05; letter-spacing: -.02em; }
.portal-themed.b .home .hero h1 em { font-style: italic; color: var(--accent); font-weight: 500; }

.portal-themed.b .home .cont { margin: 8px 16px 0; background: var(--surface); border-radius: 16px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 8px 18px -12px rgba(0,0,0,.1); }
.portal-themed.b .home .cont .cover { position: relative; aspect-ratio: 16/9; background: linear-gradient(135deg, #f1d5b5, #6e3d22); }
.portal-themed.b .home .cont .cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.portal-themed.b .home .cont .cover .stamp { position: absolute; top: 8px; left: 8px; background: rgba(255,255,255,.92); color: var(--ink); padding: 4px 9px; border-radius: 999px; font-family: 'Caveat', cursive; font-size: 14px; }
.portal-themed.b .home .cont .cover .play { position: absolute; bottom: 10px; right: 10px; width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.95); display: grid; place-items: center; color: var(--accent); text-decoration: none; }
.portal-themed.b .home .cont .body { padding: 12px 14px; }
.portal-themed.b .home .cont .body .k { font-family: 'Caveat', cursive; font-size: 15px; color: var(--accent); }
.portal-themed.b .home .cont .body h3 { font-family: 'Fraunces', serif; font-weight: 500; font-size: 17px; margin: 0 0 8px; line-height: 1.15; letter-spacing: -.005em; }
.portal-themed.b .home .cont .body .prog { height: 5px; background: var(--line); border-radius: 3px; margin-bottom: 6px; }
.portal-themed.b .home .cont .body .prog i { display: block; height: 100%; background: var(--accent); border-radius: 3px; }
.portal-themed.b .home .cont .body .meta { display: flex; justify-content: space-between; font-size: 11px; color: var(--ink-3); font-family: 'Fraunces', serif; }

.portal-themed.b .home .streak { margin: 14px 16px 0; padding: 14px; background: var(--surface); border-radius: 14px; border: 1px dashed var(--line); display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.portal-themed.b .home .streak b { font-family: 'Fraunces', serif; font-weight: 500; font-size: 16px; }
.portal-themed.b .home .streak .c { font-family: 'Caveat', cursive; color: var(--accent); font-size: 14px; }
.portal-themed.b .home .streak .days { display: flex; gap: 3px; }
.portal-themed.b .home .streak .days i { width: 13px; height: 13px; border-radius: 50%; background: var(--line-2); }
.portal-themed.b .home .streak .days i.on { background: var(--accent); }

.portal-themed.b .home .sh { padding: 18px 16px 8px; position: relative; padding-right: 64px; }
.portal-themed.b .home .sh .eye { font-family: 'Caveat', cursive; font-size: 17px; color: var(--accent); }
.portal-themed.b .home .sh h2 { font-family: 'Fraunces', serif; font-weight: 400; font-size: 21px; margin: 0; letter-spacing: -.015em; }
.portal-themed.b .home .sh h2 em { font-style: italic; color: var(--accent); }
.portal-themed.b .home .sh .all { position: absolute; right: 16px; bottom: 10px; font-family: 'Caveat', cursive; font-size: 14px; color: var(--accent); }

.portal-themed.b .home .lib { padding: 0 16px; display: grid; gap: 8px; }
.portal-themed.b .home .lib .r { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 10px; display: grid; grid-template-columns: 48px 1fr auto; gap: 10px; align-items: center; text-decoration: none; color: var(--ink); }
.portal-themed.b .home .lib .r .tb { width: 48px; height: 48px; border-radius: 10px; background: linear-gradient(135deg, #f1d5b5, #6e3d22); background-size: cover; background-position: center; }
.portal-themed.b .home .lib .r b { font-family: 'Fraunces', serif; font-weight: 500; font-size: 14px; display: block; line-height: 1.2; }
.portal-themed.b .home .lib .r span { font-size: 11px; color: var(--ink-3); font-family: 'Fraunces', serif; }
.portal-themed.b .home .lib .r .p { font-family: 'Caveat', cursive; color: var(--accent); font-size: 17px; }

.portal-themed.b .home .comm { margin: 14px 16px 0; padding: 14px; background: var(--accent); color: #fff; border-radius: 14px; }
.portal-themed.b .home .comm .eye { font-family: 'Caveat', cursive; font-size: 15px; opacity: .9; }
.portal-themed.b .home .comm p { margin: 4px 0 0; font-family: 'Fraunces', serif; font-size: 14px; line-height: 1.4; font-style: italic; }
.portal-themed.b .home .comm .who { margin-top: 8px; font-size: 11px; opacity: .9; display: flex; align-items: center; gap: 6px; }
.portal-themed.b .home .comm .who .av { width: 18px; height: 18px; border-radius: 50%; background: linear-gradient(135deg, #f5d5b0, #73391e); border: 1px solid rgba(255,255,255,.3); }

.portal-themed.b .home .promo { margin: 14px 16px 0; padding: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; display: grid; grid-template-columns: 52px 1fr auto; gap: 10px; align-items: center; text-decoration: none; color: var(--ink); }
.portal-themed.b .home .promo .c { width: 52px; height: 52px; border-radius: 10px; background: linear-gradient(135deg, #d9e2cf, #4a5c42); background-size: cover; background-position: center; }
.portal-themed.b .home .promo b { font-family: 'Fraunces', serif; font-weight: 500; font-size: 14px; display: block; line-height: 1.15; }
.portal-themed.b .home .promo span { font-size: 11px; color: var(--ink-3); font-family: 'Fraunces', serif; }
.portal-themed.b .home .promo .p { font-family: 'Fraunces', serif; font-size: 15px; color: var(--accent); }

/* CATALOG B */
.portal-themed.b .cat .top { padding: 8px 16px; display: flex; align-items: center; gap: 8px; }
.portal-themed.b .cat .top .back { width: 30px; height: 30px; border-radius: 50%; background: var(--surface); border: 1px solid var(--line-2); display: grid; place-items: center; color: var(--ink-2); text-decoration: none; }
.portal-themed.b .cat .top .t { flex: 1; font-family: 'Fraunces', serif; font-weight: 500; font-size: 17px; }
.portal-themed.b .cat .search { margin: 10px 16px 0; padding: 10px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; display: flex; align-items: center; gap: 8px; color: var(--ink-3); font-size: 12.5px; font-family: 'Fraunces', serif; font-style: italic; }
.portal-themed.b .cat .chips { margin: 12px 16px 0; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; }
.portal-themed.b .cat .chips::-webkit-scrollbar { display: none; }
.portal-themed.b .cat .chips span { flex: 0 0 auto; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: 12px; color: var(--ink-2); background: var(--surface); font-family: 'Fraunces', serif; }
.portal-themed.b .cat .chips span.on { background: var(--accent); color: #fff; border-color: var(--accent); }
.portal-themed.b .cat .flagship { margin: 14px 16px 0; border-radius: 16px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); position: relative; text-decoration: none; color: var(--ink); display: block; }
.portal-themed.b .cat .flagship::after { content: "★ flagship"; position: absolute; top: 12px; right: 12px; background: var(--accent); color: #fff; padding: 4px 10px; border-radius: 999px; font-family: 'Caveat', cursive; font-size: 14px; z-index: 3; }
.portal-themed.b .cat .flagship .cover { aspect-ratio: 16/10; background: linear-gradient(135deg, #f1d5b5, #6e3d22); background-size: cover; background-position: center; }
.portal-themed.b .cat .flagship .body { padding: 14px; }
.portal-themed.b .cat .flagship .body .k { font-family: 'Caveat', cursive; font-size: 15px; color: var(--accent); }
.portal-themed.b .cat .flagship .body h3 { font-family: 'Fraunces', serif; font-weight: 500; font-size: 20px; margin: 2px 0 6px; line-height: 1.1; }
.portal-themed.b .cat .flagship .body p { font-size: 12.5px; color: var(--ink-2); margin: 0 0 10px; }
.portal-themed.b .cat .flagship .body .row { display: flex; justify-content: space-between; align-items: center; padding-top: 10px; border-top: 1px dashed var(--line); gap: 10px; }
.portal-themed.b .cat .flagship .body .p { font-family: 'Fraunces', serif; font-size: 18px; }
.portal-themed.b .cat .flagship .body .row .cta { background: var(--accent); color: #fff; padding: 8px 14px; border-radius: 999px; font-size: 11.5px; }
.portal-themed.b .cat .grid { margin: 14px 16px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.portal-themed.b .cat .grid .c { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; text-decoration: none; color: var(--ink); display: block; }
.portal-themed.b .cat .grid .c .cv { aspect-ratio: 4/3; background-size: cover; background-position: center; }
.portal-themed.b .cat .grid .c .b { padding: 9px 10px 10px; }
.portal-themed.b .cat .grid .c .b .k { font-family: 'Caveat', cursive; font-size: 13.5px; color: var(--accent); }
.portal-themed.b .cat .grid .c .b h4 { font-family: 'Fraunces', serif; font-weight: 500; font-size: 14px; margin: 2px 0 5px; line-height: 1.15; }
.portal-themed.b .cat .grid .c .b .p { font-family: 'Fraunces', serif; font-size: 13.5px; }

/* PLAYER B */
.portal-themed.b .play .video { background: #000; aspect-ratio: 16/9; position: relative; overflow: hidden; }
.portal-themed.b .play .video iframe, .portal-themed.b .play .video video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.portal-themed.b .play .video .bg { position: absolute; inset: 0; background: linear-gradient(160deg, #6e3d22, #1a0a05); }
.portal-themed.b .play .video .back { position: absolute; top: 10px; left: 10px; width: 30px; height: 30px; border-radius: 50%; background: rgba(0,0,0,.5); display: grid; place-items: center; color: #fff; z-index: 3; text-decoration: none; }
.portal-themed.b .play .body { padding: 14px 16px; }
.portal-themed.b .play .kind { font-family: 'Caveat', cursive; font-size: 15px; color: var(--accent); }
.portal-themed.b .play h2 { font-family: 'Fraunces', serif; font-weight: 500; font-size: 19px; margin: 2px 0 5px; line-height: 1.15; }
.portal-themed.b .play .sub { font-size: 11px; color: var(--ink-3); font-family: 'Fraunces', serif; font-style: italic; }
.portal-themed.b .play .acts { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin: 10px 0 14px; }
.portal-themed.b .play .acts .a { padding: 9px; text-align: center; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; font-size: 12px; color: var(--ink-2); display: flex; align-items: center; justify-content: center; gap: 5px; font-family: 'Fraunces', serif; cursor: pointer; }
.portal-themed.b .play .acts .a.done { background: var(--good); color: #fff; border-color: var(--good); font-weight: 500; }
.portal-themed.b .play .acts button.a { font: inherit; border: 1px solid var(--line); }
.portal-themed.b .play .tabs { display: flex; gap: 14px; padding: 0; border-bottom: 1px dashed var(--line); }
.portal-themed.b .play .tabs .t { padding: 8px 0; font-size: 12.5px; color: var(--ink-3); font-family: 'Fraunces', serif; border-bottom: 2px solid transparent; cursor: pointer; }
.portal-themed.b .play .tabs .t.on { color: var(--ink); border-color: var(--accent); font-weight: 500; }
.portal-themed.b .play .up { margin-top: 12px; display: grid; gap: 8px; }
.portal-themed.b .play .up .u { display: grid; grid-template-columns: 30px 1fr auto; gap: 9px; align-items: center; padding: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; text-decoration: none; color: var(--ink); }
.portal-themed.b .play .up .u .n { font-family: 'Caveat', cursive; font-size: 17px; color: var(--ink-3); text-align: center; }
.portal-themed.b .play .up .u b { font-family: 'Fraunces', serif; font-weight: 500; font-size: 13px; line-height: 1.15; display: block; }
.portal-themed.b .play .up .u span { font-size: 11px; color: var(--ink-3); font-family: 'Fraunces', serif; font-style: italic; }
.portal-themed.b .play .up .u .st { font-family: 'Caveat', cursive; font-size: 13px; color: var(--ink-3); }
.portal-themed.b .play .up .u.cur { background: var(--accent); color: #fff; border-color: var(--accent); }
.portal-themed.b .play .up .u.cur .n, .portal-themed.b .play .up .u.cur span, .portal-themed.b .play .up .u.cur .st { color: rgba(255,255,255,.85); }

/* LIBRARY B */
.portal-themed.b .lib .head { padding: 8px 16px; }
.portal-themed.b .lib .head .eye { font-family: 'Caveat', cursive; font-size: 17px; color: var(--accent); }
.portal-themed.b .lib .head h1 { font-family: 'Fraunces', serif; font-weight: 500; font-size: 22px; margin: 0; letter-spacing: -.015em; }
.portal-themed.b .lib .subtabs { padding: 12px 16px 0; display: flex; gap: 14px; overflow-x: auto; scrollbar-width: none; border-bottom: 1px dashed var(--line); }
.portal-themed.b .lib .subtabs::-webkit-scrollbar { display: none; }
.portal-themed.b .lib .subtabs .st { padding: 8px 0; font-size: 13px; color: var(--ink-3); white-space: nowrap; font-family: 'Fraunces', serif; border-bottom: 2px solid transparent; }
.portal-themed.b .lib .subtabs .st.on { color: var(--ink); border-color: var(--accent); font-weight: 500; }
.portal-themed.b .lib .list { padding: 12px 16px; display: grid; gap: 10px; }
.portal-themed.b .lib .list .c { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; display: grid; grid-template-columns: 90px 1fr; text-decoration: none; color: var(--ink); }
.portal-themed.b .lib .list .c .cv { background: linear-gradient(135deg, #f1d5b5, #6e3d22); background-size: cover; background-position: center; }
.portal-themed.b .lib .list .c .bd { padding: 10px 12px; }
.portal-themed.b .lib .list .c .k { font-family: 'Caveat', cursive; font-size: 13.5px; color: var(--accent); }
.portal-themed.b .lib .list .c h4 { font-family: 'Fraunces', serif; font-weight: 500; font-size: 14.5px; margin: 0 0 6px; line-height: 1.15; }
.portal-themed.b .lib .list .c .prog { height: 4px; background: var(--line); border-radius: 3px; margin-bottom: 5px; }
.portal-themed.b .lib .list .c .prog i { display: block; height: 100%; background: var(--accent); border-radius: 3px; }
.portal-themed.b .lib .list .c .meta { font-size: 11px; color: var(--ink-3); display: flex; justify-content: space-between; font-family: 'Fraunces', serif; font-style: italic; }

/* PROFILE B */
.portal-themed.b .pro .head { padding: 16px; text-align: center; }
.portal-themed.b .pro .head .av { width: 76px; height: 76px; border-radius: 50%; margin: 0 auto 8px; background: linear-gradient(135deg, #f1d5b5, #6e3d22); border: 3px solid var(--surface); box-shadow: 0 4px 12px -4px rgba(0,0,0,.15); display: grid; place-items: center; color: #fff; font-weight: 600; font-size: 24px; }
.portal-themed.b .pro .head .wave { font-family: 'Caveat', cursive; font-size: 16px; color: var(--accent); }
.portal-themed.b .pro .head h1 { font-family: 'Fraunces', serif; font-weight: 500; font-size: 23px; margin: 2px 0 0; }
.portal-themed.b .pro .head .h { font-size: 11px; color: var(--ink-3); font-family: 'Fraunces', serif; font-style: italic; }
.portal-themed.b .pro .stats { margin: 12px 16px 0; padding: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; display: grid; grid-template-columns: 1fr 1fr 1fr; text-align: center; }
.portal-themed.b .pro .stats div { border-right: 1px dashed var(--line); }
.portal-themed.b .pro .stats div:last-child { border: 0; }
.portal-themed.b .pro .stats b { display: block; font-family: 'Fraunces', serif; font-weight: 500; font-size: 20px; color: var(--accent); }
.portal-themed.b .pro .stats span { font-size: 10.5px; color: var(--ink-3); font-family: 'Fraunces', serif; font-style: italic; }
.portal-themed.b .pro .section { margin: 16px 16px 0; }
.portal-themed.b .pro .section .title { font-family: 'Caveat', cursive; font-size: 16px; color: var(--accent); margin-bottom: 7px; }
.portal-themed.b .pro .menu { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.portal-themed.b .pro .menu .m { padding: 12px 14px; display: flex; justify-content: space-between; align-items: center; font-family: 'Fraunces', serif; font-size: 13.5px; border-bottom: 1px dashed var(--line); color: var(--ink); text-decoration: none; background: transparent; border-left: 0; border-right: 0; border-top: 0; cursor: pointer; width: 100%; }
.portal-themed.b .pro .menu .m:last-child { border: 0; }
.portal-themed.b .pro .menu .m .r { color: var(--ink-3); font-size: 11.5px; font-style: italic; }

/* ================================================================
   OPTION C — STUDIO (bold magazine)
   ================================================================ */
.portal-themed.c.theme-light {
    --bg:#f0ece2; --surface:#fff; --surface-2:#e6e1d3;
    --ink:#0f0e0c; --ink-2:#3a3832; --ink-3:#7a766b;
    --line:#d9d3c2; --line-2:#e3ddcc;
    --accent:#d9452b; --good:#1e4d3d;
}
.portal-themed.c.theme-dark {
    --bg:#0c0b09; --surface:#161411; --surface-2:#1e1b16;
    --ink:#f4efe1; --ink-2:#bbb29e; --ink-3:#6d665a;
    --line:#241f18; --line-2:#1b1712;
    --accent:#ef6144; --good:#7da794;
}

.portal-themed.c .topbar { border-bottom: 1px solid var(--ink); padding: 10px 16px; }
.portal-themed.c .topbar .n { font-weight: 700; font-size: 15px; letter-spacing: -.01em; text-transform: uppercase; }
.portal-themed.c .topbar .ic { width: 30px; height: 30px; border: 1px solid var(--ink); border-radius: 0; background: transparent; color: var(--ink); }
.portal-themed.c .topbar .av { width: 32px; height: 32px; border-radius: 0; background: linear-gradient(135deg, #e8d5c2, #3d1e14); }
.portal-themed.c .mast { padding: 8px 16px; display: flex; justify-content: space-between; font-family: 'JetBrains Mono', monospace; font-size: 9.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-3); border-bottom: 1px solid var(--line-2); }

/* HOME C */
.portal-themed.c .home .hero { padding: 14px 16px 4px; }
.portal-themed.c .home .hero h1 { font-family: 'Fraunces', serif; font-weight: 400; font-size: 44px; line-height: .92; letter-spacing: -.035em; margin: 0 0 12px; color: var(--ink); }
.portal-themed.c .home .hero h1 em { font-style: italic; color: var(--accent); font-weight: 500; }

.portal-themed.c .home .cont { margin: 0 16px; background: var(--surface); border: 1px solid var(--ink); overflow: hidden; text-decoration: none; color: var(--ink); display: block; }
.portal-themed.c .home .cont .cover { position: relative; aspect-ratio: 16/9; background: linear-gradient(135deg, #e8d5c2, #3d1e14); border-bottom: 1px solid var(--ink); }
.portal-themed.c .home .cont .cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.portal-themed.c .home .cont .cover .live { position: absolute; top: 8px; left: 8px; background: var(--accent); color: #fff; padding: 3px 7px; font-family: 'JetBrains Mono', monospace; font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase; }
.portal-themed.c .home .cont .cover .play { position: absolute; bottom: 10px; right: 10px; width: 34px; height: 34px; background: var(--accent); display: grid; place-items: center; color: #fff; text-decoration: none; }
.portal-themed.c .home .cont .body { padding: 12px; }
.portal-themed.c .home .cont .body .k { font-family: 'JetBrains Mono', monospace; font-size: 9.5px; letter-spacing: .14em; color: var(--ink-3); text-transform: uppercase; }
.portal-themed.c .home .cont .body h3 { font-family: 'Fraunces', serif; font-weight: 500; font-size: 18px; margin: 2px 0 6px; letter-spacing: -.01em; line-height: 1.1; }
.portal-themed.c .home .cont .body .bar { height: 3px; background: var(--line); margin: 6px 0; }
.portal-themed.c .home .cont .body .bar i { display: block; height: 100%; background: var(--ink); }
.portal-themed.c .home .cont .body .meta { display: flex; justify-content: space-between; font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: .08em; color: var(--ink-3); text-transform: uppercase; }

.portal-themed.c .home .streak { margin: 14px 16px 0; padding: 12px 14px; background: var(--ink); color: var(--bg); display: flex; justify-content: space-between; align-items: center; font-family: 'JetBrains Mono', monospace; font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; gap: 10px; }
.portal-themed.c .home .streak b { color: var(--accent); font-family: Inter, system-ui, sans-serif; font-size: 18px; font-weight: 700; letter-spacing: -.01em; text-transform: none; }
.portal-themed.c .home .streak .days { display: flex; gap: 2px; }
.portal-themed.c .home .streak .days i { width: 10px; height: 10px; background: rgba(255,255,255,.15); }
.portal-themed.c .home .streak .days i.on { background: var(--accent); }

.portal-themed.c .home .sh { padding: 18px 16px 10px; display: flex; justify-content: space-between; align-items: baseline; border-top: 1px solid var(--ink); margin-top: 18px; }
.portal-themed.c .home .sh .eye { font-family: 'JetBrains Mono', monospace; font-size: 9.5px; letter-spacing: .18em; color: var(--accent); text-transform: uppercase; }
.portal-themed.c .home .sh h2 { font-family: 'Fraunces', serif; font-weight: 400; font-size: 24px; margin: 0; letter-spacing: -.02em; line-height: 1; }
.portal-themed.c .home .sh h2 em { font-style: italic; color: var(--accent); font-weight: 500; }
.portal-themed.c .home .sh .all { font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); text-decoration: none; }

.portal-themed.c .home .lib { padding: 0 16px; display: grid; gap: 0; border-top: 1px solid var(--line); }
.portal-themed.c .home .lib .r { display: grid; grid-template-columns: 54px 1fr auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.portal-themed.c .home .lib .r .tb { width: 54px; height: 54px; background: linear-gradient(135deg, #e8d5c2, #3d1e14); background-size: cover; background-position: center; }
.portal-themed.c .home .lib .r .t .k { font-family: 'JetBrains Mono', monospace; font-size: 9.5px; letter-spacing: .14em; color: var(--ink-3); text-transform: uppercase; }
.portal-themed.c .home .lib .r .t b { font-family: 'Fraunces', serif; font-weight: 500; font-size: 15px; display: block; margin-top: 2px; line-height: 1.1; letter-spacing: -.005em; }
.portal-themed.c .home .lib .r .p { font-family: 'JetBrains Mono', monospace; font-size: 12px; color: var(--accent); font-weight: 500; }

.portal-themed.c .home .comm { margin: 14px 16px 0; padding: 14px; background: var(--accent); color: #fff; }
.portal-themed.c .home .comm .eye { font-family: 'JetBrains Mono', monospace; font-size: 9.5px; letter-spacing: .18em; text-transform: uppercase; opacity: .9; }
.portal-themed.c .home .comm p { font-family: 'Fraunces', serif; font-style: italic; font-size: 15px; margin: 4px 0 0; line-height: 1.35; }
.portal-themed.c .home .comm .who { font-family: 'JetBrains Mono', monospace; font-size: 9.5px; letter-spacing: .12em; margin-top: 8px; opacity: .9; }

.portal-themed.c .home .promo { margin: 14px 16px 0; padding: 12px; background: var(--ink); color: var(--bg); display: grid; grid-template-columns: 52px 1fr auto; gap: 10px; align-items: center; text-decoration: none; }
.portal-themed.c .home .promo .c { width: 52px; height: 52px; background: linear-gradient(135deg, #d4e2d4, #3d5642); background-size: cover; background-position: center; }
.portal-themed.c .home .promo .k { font-family: 'JetBrains Mono', monospace; font-size: 9.5px; letter-spacing: .14em; color: var(--accent); text-transform: uppercase; }
.portal-themed.c .home .promo b { font-family: 'Fraunces', serif; font-weight: 500; font-size: 14px; display: block; letter-spacing: -.005em; line-height: 1.1; margin-top: 2px; color: var(--bg); }
.portal-themed.c .home .promo .p { font-family: 'JetBrains Mono', monospace; font-size: 11.5px; color: var(--accent); font-weight: 500; }

/* CATALOG C */
.portal-themed.c .cat .top { padding: 10px 16px; display: flex; align-items: center; gap: 10px; border-bottom: 1px solid var(--ink); }
.portal-themed.c .cat .top .back { width: 30px; height: 30px; border: 1px solid var(--ink); display: grid; place-items: center; color: var(--ink); text-decoration: none; }
.portal-themed.c .cat .top .t { flex: 1; font-weight: 700; font-size: 14px; letter-spacing: -.01em; text-transform: uppercase; }
.portal-themed.c .cat .search { margin: 10px 16px 0; padding: 10px 12px; border: 1px solid var(--ink); display: flex; align-items: center; gap: 8px; color: var(--ink-3); font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; }
.portal-themed.c .cat .chips { margin: 12px 16px 0; display: flex; gap: 0; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--line); }
.portal-themed.c .cat .chips::-webkit-scrollbar { display: none; }
.portal-themed.c .cat .chips span { flex: 0 0 auto; padding: 8px 12px; font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: .14em; color: var(--ink-3); text-transform: uppercase; border-right: 1px solid var(--line); }
.portal-themed.c .cat .chips span.on { color: var(--accent); border-bottom: 2px solid var(--accent); margin-bottom: -1px; }
.portal-themed.c .cat .flagship { margin: 14px 16px 0; background: var(--ink); color: var(--bg); text-decoration: none; display: block; position: relative; }
.portal-themed.c .cat .flagship .cover { aspect-ratio: 16/10; background: linear-gradient(135deg, #3d1e14, #0f0e0c); background-size: cover; background-position: center; position: relative; }
.portal-themed.c .cat .flagship .cover .live { position: absolute; top: 8px; left: 8px; background: var(--accent); color: #fff; padding: 3px 7px; font-family: 'JetBrains Mono', monospace; font-size: 9px; letter-spacing: .14em; text-transform: uppercase; }
.portal-themed.c .cat .flagship .body { padding: 14px; }
.portal-themed.c .cat .flagship .body .k { font-family: 'JetBrains Mono', monospace; font-size: 9.5px; letter-spacing: .14em; color: var(--accent); text-transform: uppercase; }
.portal-themed.c .cat .flagship .body h3 { font-family: 'Fraunces', serif; font-weight: 500; font-size: 22px; margin: 3px 0 6px; line-height: 1.05; letter-spacing: -.015em; color: var(--bg); }
.portal-themed.c .cat .flagship .body p { font-size: 12px; color: #c4bdb0; margin: 0 0 10px; font-family: 'Fraunces', serif; }
.portal-themed.c .cat .flagship .body .row { display: flex; justify-content: space-between; align-items: center; padding-top: 10px; border-top: 1px solid rgba(255,255,255,.15); gap: 10px; }
.portal-themed.c .cat .flagship .body .p { font-family: 'JetBrains Mono', monospace; font-size: 12.5px; color: var(--accent); font-weight: 500; }
.portal-themed.c .cat .flagship .body .row .cta { background: var(--accent); color: #fff; padding: 8px 12px; font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; font-family: 'JetBrains Mono', monospace; }
.portal-themed.c .cat .grid { margin: 14px 16px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-top: 1px solid var(--ink); border-left: 1px solid var(--ink); }
.portal-themed.c .cat .grid .c { border-right: 1px solid var(--ink); border-bottom: 1px solid var(--ink); background: var(--surface); text-decoration: none; color: var(--ink); display: block; }
.portal-themed.c .cat .grid .c .cv { aspect-ratio: 4/3; background-size: cover; background-position: center; }
.portal-themed.c .cat .grid .c .b { padding: 9px 10px 12px; }
.portal-themed.c .cat .grid .c .b .k { font-family: 'JetBrains Mono', monospace; font-size: 9px; letter-spacing: .14em; color: var(--ink-3); text-transform: uppercase; }
.portal-themed.c .cat .grid .c .b h4 { font-family: 'Fraunces', serif; font-weight: 500; font-size: 14px; margin: 2px 0 5px; line-height: 1.1; }
.portal-themed.c .cat .grid .c .b .p { font-family: 'JetBrains Mono', monospace; font-size: 11.5px; color: var(--accent); font-weight: 500; }

/* PLAYER C */
.portal-themed.c .play .video { background: #000; aspect-ratio: 16/9; position: relative; overflow: hidden; }
.portal-themed.c .play .video iframe, .portal-themed.c .play .video video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.portal-themed.c .play .video .bg { position: absolute; inset: 0; background: linear-gradient(160deg, #3d1e14, #0a0605); }
.portal-themed.c .play .video .back { position: absolute; top: 10px; left: 10px; width: 30px; height: 30px; background: rgba(0,0,0,.55); display: grid; place-items: center; color: #fff; z-index: 3; text-decoration: none; }
.portal-themed.c .play .body { padding: 14px 16px; }
.portal-themed.c .play .kind { font-family: 'JetBrains Mono', monospace; font-size: 10px; color: var(--accent); letter-spacing: .16em; text-transform: uppercase; }
.portal-themed.c .play h2 { font-family: 'Fraunces', serif; font-weight: 500; font-size: 21px; margin: 3px 0 4px; line-height: 1.1; letter-spacing: -.015em; }
.portal-themed.c .play .sub { font-family: 'JetBrains Mono', monospace; font-size: 10px; color: var(--ink-3); letter-spacing: .08em; text-transform: uppercase; }
.portal-themed.c .play .acts { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin: 12px 0 14px; border: 1px solid var(--ink); }
.portal-themed.c .play .acts .a { padding: 11px; text-align: center; font-family: 'JetBrains Mono', monospace; font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); display: flex; align-items: center; justify-content: center; gap: 5px; background: var(--surface); border-right: 1px solid var(--ink); cursor: pointer; }
.portal-themed.c .play .acts .a:last-child { border-right: 0; }
.portal-themed.c .play .acts .a.done { background: var(--good); color: #fff; }
.portal-themed.c .play .acts button.a { font: inherit; border: 0; border-right: 1px solid var(--ink); }
.portal-themed.c .play .tabs { display: flex; gap: 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.portal-themed.c .play .tabs .t { padding: 10px 14px; font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: .14em; color: var(--ink-3); border-right: 1px solid var(--line); text-transform: uppercase; cursor: pointer; }
.portal-themed.c .play .tabs .t.on { color: var(--ink); background: var(--surface-2); }
.portal-themed.c .play .up { margin-top: 0; display: grid; gap: 0; padding: 0 16px; }
.portal-themed.c .play .up .u { display: grid; grid-template-columns: 32px 1fr auto; gap: 10px; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.portal-themed.c .play .up .u .n { font-family: 'JetBrains Mono', monospace; font-size: 10.5px; color: var(--ink-3); letter-spacing: .08em; }
.portal-themed.c .play .up .u b { font-family: 'Fraunces', serif; font-weight: 500; font-size: 13.5px; display: block; line-height: 1.1; }
.portal-themed.c .play .up .u span { font-family: 'JetBrains Mono', monospace; font-size: 10px; color: var(--ink-3); letter-spacing: .08em; text-transform: uppercase; margin-top: 1px; display: block; }
.portal-themed.c .play .up .u .st { font-family: 'JetBrains Mono', monospace; font-size: 9.5px; color: var(--ink-3); letter-spacing: .1em; text-transform: uppercase; }
.portal-themed.c .play .up .u.cur { background: var(--surface-2); padding: 11px 8px; margin: 0 -8px; }
.portal-themed.c .play .up .u.cur .n, .portal-themed.c .play .up .u.cur .st { color: var(--accent); }

/* LIBRARY C */
.portal-themed.c .lib .head { padding: 14px 16px; }
.portal-themed.c .lib .head .eye { font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); }
.portal-themed.c .lib .head h1 { font-family: 'Fraunces', serif; font-weight: 400; font-size: 32px; margin: 4px 0 0; letter-spacing: -.03em; line-height: .98; }
.portal-themed.c .lib .head h1 em { font-style: italic; font-weight: 500; }
.portal-themed.c .lib .subtabs { padding: 12px 16px 0; display: flex; gap: 0; border-bottom: 1px solid var(--ink); overflow-x: auto; scrollbar-width: none; }
.portal-themed.c .lib .subtabs::-webkit-scrollbar { display: none; }
.portal-themed.c .lib .subtabs .st { padding: 10px 12px; font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: .14em; color: var(--ink-3); text-transform: uppercase; border-right: 1px solid var(--line); white-space: nowrap; }
.portal-themed.c .lib .subtabs .st.on { color: var(--ink); border-bottom: 2px solid var(--accent); margin-bottom: -1px; }
.portal-themed.c .lib .list { padding: 0 16px; }
.portal-themed.c .lib .list .c { padding: 14px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 80px 1fr; gap: 12px; text-decoration: none; color: var(--ink); }
.portal-themed.c .lib .list .c .cv { aspect-ratio: 1; background: linear-gradient(135deg, #e8d5c2, #3d1e14); background-size: cover; background-position: center; }
.portal-themed.c .lib .list .c .k { font-family: 'JetBrains Mono', monospace; font-size: 9.5px; letter-spacing: .14em; color: var(--ink-3); text-transform: uppercase; }
.portal-themed.c .lib .list .c h4 { font-family: 'Fraunces', serif; font-weight: 500; font-size: 15px; margin: 2px 0 6px; letter-spacing: -.005em; line-height: 1.1; }
.portal-themed.c .lib .list .c .prog { height: 2px; background: var(--line); margin-bottom: 4px; }
.portal-themed.c .lib .list .c .prog i { display: block; height: 100%; background: var(--accent); }
.portal-themed.c .lib .list .c .meta { font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: .08em; color: var(--ink-3); display: flex; justify-content: space-between; text-transform: uppercase; }

/* PROFILE C */
.portal-themed.c .pro .head { padding: 16px; border-bottom: 1px solid var(--ink); display: grid; grid-template-columns: 60px 1fr; gap: 14px; align-items: center; }
.portal-themed.c .pro .head .av { width: 60px; height: 60px; background: linear-gradient(135deg, #d4e2d4, #3d5642); display: grid; place-items: center; color: #fff; font-weight: 600; font-size: 20px; }
.portal-themed.c .pro .head .eye { font-family: 'JetBrains Mono', monospace; font-size: 9.5px; letter-spacing: .16em; color: var(--accent); text-transform: uppercase; }
.portal-themed.c .pro .head h1 { font-family: 'Fraunces', serif; font-weight: 500; font-size: 24px; margin: 3px 0 0; letter-spacing: -.02em; line-height: 1; }
.portal-themed.c .pro .head .h { font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: .08em; color: var(--ink-3); text-transform: uppercase; margin-top: 3px; }
.portal-themed.c .pro .stats { padding: 14px 16px; display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0; border-bottom: 1px solid var(--ink); }
.portal-themed.c .pro .stats div { text-align: center; border-right: 1px solid var(--line); }
.portal-themed.c .pro .stats div:last-child { border: 0; }
.portal-themed.c .pro .stats b { font-family: 'Fraunces', serif; font-weight: 500; font-size: 22px; color: var(--accent); display: block; line-height: 1; }
.portal-themed.c .pro .stats span { font-family: 'JetBrains Mono', monospace; font-size: 9px; letter-spacing: .14em; color: var(--ink-3); text-transform: uppercase; margin-top: 3px; display: block; }
.portal-themed.c .pro .section { padding: 14px 16px; border-bottom: 1px solid var(--ink); }
.portal-themed.c .pro .section .title { font-family: 'JetBrains Mono', monospace; font-size: 9.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
.portal-themed.c .pro .menu .m { padding: 11px 0; display: flex; justify-content: space-between; align-items: center; font-size: 13px; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); width: 100%; background: transparent; border-left: 0; border-right: 0; border-top: 0; font-family: inherit; cursor: pointer; }
.portal-themed.c .pro .menu .m:last-child { border: 0; }
.portal-themed.c .pro .menu .m b { font-weight: 500; }
.portal-themed.c .pro .menu .m .r { color: var(--ink-3); font-size: 11px; font-family: 'JetBrains Mono', monospace; letter-spacing: .06em; text-transform: uppercase; }

/* Pulse animation */
@keyframes pl { 50% { opacity: .5; } }

/* Cross-theme visibility: the HTML emits all theme variants of labels; hide unused. */
.portal-themed.a .cont .cover .stamp,
.portal-themed.a .cont .cover .live,
.portal-themed.a .cont .body .k,
.portal-themed.a .cont .body .prog,
.portal-themed.a .cont .body .bar { display: none; }
.portal-themed.b .cont .cover .tag,
.portal-themed.b .cont .cover .live,
.portal-themed.b .cont .cover .bar,
.portal-themed.b .cont .body .l,
.portal-themed.b .cont .body .bar { display: none; }
.portal-themed.c .cont .cover .tag,
.portal-themed.c .cont .cover .stamp,
.portal-themed.c .cont .body .l,
.portal-themed.c .cont .body .prog { display: none; }
/* Home comm header variants */
.portal-themed.a .home .comm .eye { display: none; }
.portal-themed.b .home .comm .h,
.portal-themed.c .home .comm .h { display: none; }

/* Home promo: A/B have no .k eyebrow */
.portal-themed.a .home .promo .k,
.portal-themed.b .home .promo .k { display: none; }

/* Home hero eyebrow: A uses .mono, B uses .wave, C uses neither (just h1) */
.portal-themed.a .home .hero .wave { display: none; }
.portal-themed.b .home .hero .mono { display: none; }
.portal-themed.c .home .hero .mono,
.portal-themed.c .home .hero .wave { display: none; }

/* Flagship label cross-theme */
.portal-themed.a .flagship .body .k { display: none; }
.portal-themed.b .flagship .body .l,
.portal-themed.c .flagship .body .l { display: none; }

/* Home library row: A uses plain span, B uses nothing fancy, C uses .k */
.portal-themed.a .home .lib .r .t .k { display: none; }
.portal-themed.b .home .lib .r .t .k { display: none; }
.portal-themed.c .home .lib .r .t > span:not(.k),
.portal-themed.c .home .lib .r .t > .k + span { display: none; }

/* (promo .k hide + comm variants already declared earlier) */
.portal-themed.c .home .promo > div > span:not(.k) { display: none; }

/* Empty state */
.portal-themed .empty { padding: 32px 16px; text-align: center; color: var(--ink-3); }
.portal-themed .empty h4 { color: var(--ink); margin: 8px 0 4px; font-family: 'Instrument Serif', serif; font-weight: 400; font-size: 18px; }
.portal-themed.b .empty h4 { font-family: 'Fraunces', serif; }
.portal-themed.c .empty h4 { font-family: 'Fraunces', serif; }

/* ============================================================
   DETAIL — course overview screen (all 3 themes × light/dark)
   ============================================================ */

/* Atelier (A) */
.portal-themed.a .det .hero { position: relative; aspect-ratio: 4/5; background: linear-gradient(160deg, #eed6bf, #4e2518); padding: 8px 16px; display: flex; flex-direction: column; color: #fff; }
.portal-themed.a .det .hero .cover-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.portal-themed.a .det .hero .top { position: relative; display: flex; justify-content: space-between; z-index: 2; }
.portal-themed.a .det .hero .top .back { width: 30px; height: 30px; border-radius: 50%; background: rgba(255,255,255,.2); backdrop-filter: blur(10px); display: grid; place-items: center; color: #fff; text-decoration: none; }
.portal-themed.a .det .hero .play { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 52px; height: 52px; border-radius: 50%; background: rgba(255,255,255,.95); display: grid; place-items: center; color: var(--accent); z-index: 2; text-decoration: none; }
.portal-themed.a .det .hero .play svg { width: 16px; height: 16px; }
.portal-themed.a .det .hero .btm { position: relative; z-index: 2; margin-top: auto; padding-bottom: 10px; }
.portal-themed.a .det .hero .btm .kind { font-family: 'JetBrains Mono', monospace; font-size: 9.5px; letter-spacing: .16em; text-transform: uppercase; color: rgba(255,255,255,.8); }
.portal-themed.a .det .hero .btm h1 { font-family: 'Instrument Serif', serif; font-weight: 400; font-size: 26px; line-height: 1.03; letter-spacing: -.015em; margin: 4px 0 0; max-width: 92%; color: #fff; }
.portal-themed.a .det .body { padding: 16px; }
.portal-themed.a .det .by { display: flex; align-items: center; gap: 8px; font-size: 11.5px; color: var(--ink-2); padding-bottom: 10px; border-bottom: 1px solid var(--line-2); }
.portal-themed.a .det .by .av { width: 28px; height: 28px; border-radius: 50%; background: linear-gradient(135deg, #eed6bf, #4e2518); background-size: cover; background-position: center; }
.portal-themed.a .det .by .rt { margin-left: auto; font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: .08em; color: var(--accent); }
.portal-themed.a .det .meta { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0; margin-top: 14px; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line); padding: 10px 0; }
.portal-themed.a .det .meta div { padding: 0 10px; border-right: 1px solid var(--line); }
.portal-themed.a .det .meta div:last-child { border: 0; }
.portal-themed.a .det .meta b { display: block; font-family: 'Instrument Serif', serif; font-size: 16px; line-height: 1; margin-bottom: 2px; font-weight: 400; color: var(--ink); }
.portal-themed.a .det .meta span { font-size: 10px; color: var(--ink-3); font-family: 'JetBrains Mono', monospace; letter-spacing: .08em; text-transform: uppercase; }
.portal-themed.a .det .desc { margin-top: 14px; font-size: 13.5px; line-height: 1.55; color: var(--ink-2); }
.portal-themed.a .det .desc b { color: var(--ink); font-weight: 500; }
.portal-themed.a .det .syl { margin-top: 16px; }
.portal-themed.a .det .syl h3 { font-family: 'Instrument Serif', serif; font-weight: 400; font-size: 16px; margin: 0 0 8px; color: var(--ink); }
.portal-themed.a .det .syl .m { display: grid; grid-template-columns: 28px 1fr auto; gap: 8px; padding: 10px 0; border-bottom: 1px solid var(--line-2); align-items: center; }
.portal-themed.a .det .syl .m:last-child { border: 0; }
.portal-themed.a .det .syl .m .n { font-family: 'JetBrains Mono', monospace; font-size: 10px; color: var(--ink-3); letter-spacing: .06em; }
.portal-themed.a .det .syl .m b { font-size: 12.5px; font-weight: 500; line-height: 1.25; color: var(--ink); }
.portal-themed.a .det .syl .m span { display: block; font-size: 10.5px; color: var(--ink-3); margin-top: 1px; font-family: 'JetBrains Mono', monospace; letter-spacing: .06em; text-transform: uppercase; }
.portal-themed.a .det .syl .m .d { font-size: 10.5px; color: var(--ink-3); font-family: 'JetBrains Mono', monospace; }
.portal-themed.a .det .price { margin: 18px -16px -16px; padding: 12px 16px calc(16px + env(safe-area-inset-bottom)); background: var(--surface); border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.portal-themed.a .det .price .p { font-family: 'Instrument Serif', serif; font-size: 22px; line-height: 1; color: var(--ink); }
.portal-themed.a .det .price .p span { display: block; font-family: Inter, sans-serif; font-size: 9px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); font-weight: 500; }
.portal-themed.a .det .price .btn { flex: 1; }
.portal-themed.a .det .progress { margin-top: 14px; padding: 12px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 12px; color: var(--ink-2); }
.portal-themed.a .det .progress .bar { flex: 1; height: 4px; background: var(--line); border-radius: 3px; overflow: hidden; }
.portal-themed.a .det .progress .bar i { display: block; height: 100%; background: var(--accent); }
.portal-themed.a .det .progress .pct { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--accent); }

/* Hearth (B) */
.portal-themed.b .det .hero { position: relative; aspect-ratio: 4/5; background: linear-gradient(160deg, #f1d5b5, #6e3d22); color: #fff; padding: 10px 16px; display: flex; flex-direction: column; }
.portal-themed.b .det .hero .cover-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.portal-themed.b .det .hero .top { position: relative; z-index: 2; display: flex; justify-content: space-between; }
.portal-themed.b .det .hero .top .back { width: 30px; height: 30px; border-radius: 50%; background: rgba(255,255,255,.2); backdrop-filter: blur(10px); display: grid; place-items: center; color: #fff; text-decoration: none; }
.portal-themed.b .det .hero .play { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 54px; height: 54px; border-radius: 50%; background: rgba(255,255,255,.95); display: grid; place-items: center; color: var(--accent); z-index: 3; text-decoration: none; }
.portal-themed.b .det .hero .play svg { width: 16px; height: 16px; }
.portal-themed.b .det .hero .btm { position: relative; z-index: 2; margin-top: auto; padding-bottom: 10px; }
.portal-themed.b .det .hero .btm .kind { font-family: 'Caveat', cursive; font-size: 16px; opacity: .95; }
.portal-themed.b .det .hero .btm h1 { font-family: 'Fraunces', serif; font-weight: 400; font-size: 28px; margin: 2px 0 0; line-height: 1; letter-spacing: -.015em; color: #fff; }
.portal-themed.b .det .body { padding: 16px; }
.portal-themed.b .det .by { display: flex; align-items: center; gap: 8px; padding-bottom: 12px; border-bottom: 1px dashed var(--line); }
.portal-themed.b .det .by .av { width: 32px; height: 32px; border-radius: 50%; background: linear-gradient(135deg, #f1d5b5, #6e3d22); background-size: cover; background-position: center; }
.portal-themed.b .det .by b { font-family: 'Fraunces', serif; font-weight: 500; font-size: 13.5px; display: block; color: var(--ink); }
.portal-themed.b .det .by span { font-size: 10.5px; color: var(--ink-3); font-family: 'Fraunces', serif; }
.portal-themed.b .det .by .rt { margin-left: auto; font-family: 'Caveat', cursive; font-size: 14px; color: var(--accent); }
.portal-themed.b .det .meta { display: flex; gap: 14px; margin-top: 14px; font-size: 11.5px; color: var(--ink-2); font-family: 'Fraunces', serif; flex-wrap: wrap; }
.portal-themed.b .det .meta div { display: flex; align-items: center; gap: 5px; }
.portal-themed.b .det .desc { margin-top: 12px; font-family: 'Fraunces', serif; font-size: 14px; line-height: 1.55; color: var(--ink-2); }
.portal-themed.b .det .desc b { color: var(--ink); font-weight: 500; }
.portal-themed.b .det .syl { margin-top: 16px; }
.portal-themed.b .det .syl h3 { font-family: 'Fraunces', serif; font-weight: 500; font-size: 16px; margin: 0 0 8px; color: var(--ink); }
.portal-themed.b .det .syl .m { display: grid; grid-template-columns: 1fr auto; gap: 8px; padding: 10px 0; border-bottom: 1px dashed var(--line); align-items: center; }
.portal-themed.b .det .syl .m:last-child { border: 0; }
.portal-themed.b .det .syl .m b { font-family: 'Fraunces', serif; font-weight: 500; font-size: 13px; display: block; color: var(--ink); }
.portal-themed.b .det .syl .m span { font-size: 11px; color: var(--ink-3); font-family: 'Fraunces', serif; font-style: italic; }
.portal-themed.b .det .syl .m .d { font-family: 'Caveat', cursive; font-size: 13px; color: var(--ink-3); }
.portal-themed.b .det .price { margin: 16px -16px -16px; padding: 12px 16px calc(16px + env(safe-area-inset-bottom)); background: var(--surface); border-top: 1px dashed var(--line); display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.portal-themed.b .det .price .p { font-family: 'Fraunces', serif; font-size: 20px; color: var(--ink); }
.portal-themed.b .det .price .p span { display: block; font-family: 'Caveat', cursive; font-size: 12px; color: var(--ink-3); margin-bottom: -2px; }
.portal-themed.b .det .price .btn { flex: 1; border-radius: 999px; padding: 12px; }
.portal-themed.b .det .progress { margin-top: 14px; padding: 12px 14px; background: var(--surface); border: 1px dashed var(--line); border-radius: 14px; display: flex; align-items: center; gap: 10px; font-family: 'Fraunces', serif; font-style: italic; font-size: 12px; color: var(--ink-2); }
.portal-themed.b .det .progress .bar { flex: 1; height: 4px; background: var(--line); border-radius: 3px; overflow: hidden; }
.portal-themed.b .det .progress .bar i { display: block; height: 100%; background: var(--accent); }
.portal-themed.b .det .progress .pct { font-family: 'Caveat', cursive; font-style: normal; font-size: 15px; color: var(--accent); }

/* Studio (C) */
.portal-themed.c .det .hero { position: relative; aspect-ratio: 4/5; background: linear-gradient(160deg, #e8d5c2, #3d1e14); color: #fff; padding: 8px 16px; display: flex; flex-direction: column; }
.portal-themed.c .det .hero .cover-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.portal-themed.c .det .hero .top { position: relative; z-index: 2; display: flex; justify-content: space-between; }
.portal-themed.c .det .hero .top .back { width: 28px; height: 28px; background: rgba(0,0,0,.35); backdrop-filter: blur(6px); display: grid; place-items: center; color: #fff; text-decoration: none; }
.portal-themed.c .det .hero .no { position: absolute; top: 12px; right: 12px; font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: .14em; color: #fff; z-index: 3; }
.portal-themed.c .det .hero .play { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 52px; height: 52px; background: var(--accent); display: grid; place-items: center; color: #fff; z-index: 3; text-decoration: none; }
.portal-themed.c .det .hero .play svg { width: 16px; height: 16px; }
.portal-themed.c .det .hero .btm { position: relative; z-index: 2; margin-top: auto; padding-bottom: 10px; }
.portal-themed.c .det .hero .btm .kind { background: var(--accent); color: #fff; padding: 3px 7px; font-family: 'JetBrains Mono', monospace; font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase; display: inline-block; }
.portal-themed.c .det .hero .btm h1 { font-family: 'Fraunces', serif; font-weight: 400; font-size: 32px; margin: 8px 0 0; line-height: .98; letter-spacing: -.02em; max-width: 92%; color: #fff; }
.portal-themed.c .det .body { padding: 16px; }
.portal-themed.c .det .by { display: flex; align-items: center; gap: 8px; padding-bottom: 12px; border-bottom: 1px solid var(--ink); }
.portal-themed.c .det .by .av { width: 30px; height: 30px; background: linear-gradient(135deg, #e8d5c2, #3d1e14); background-size: cover; background-position: center; }
.portal-themed.c .det .by b { font-weight: 600; font-size: 12.5px; color: var(--ink); }
.portal-themed.c .det .by span { font-size: 10px; color: var(--ink-3); font-family: 'JetBrains Mono', monospace; letter-spacing: .08em; text-transform: uppercase; display: block; }
.portal-themed.c .det .by .rt { margin-left: auto; font-family: 'JetBrains Mono', monospace; font-size: 10px; color: var(--accent); letter-spacing: .08em; }
.portal-themed.c .det .meta { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0; margin-top: 14px; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); padding: 10px 0; text-align: center; }
.portal-themed.c .det .meta div { border-right: 1px solid var(--line); }
.portal-themed.c .det .meta div:last-child { border: 0; }
.portal-themed.c .det .meta b { display: block; font-family: 'Fraunces', serif; font-weight: 500; font-size: 16px; line-height: 1; margin-bottom: 2px; color: var(--ink); }
.portal-themed.c .det .meta span { font-family: 'JetBrains Mono', monospace; font-size: 8.5px; letter-spacing: .14em; color: var(--ink-3); text-transform: uppercase; }
.portal-themed.c .det .desc { font-family: 'Fraunces', serif; font-size: 14px; line-height: 1.5; color: var(--ink-2); margin-top: 14px; }
.portal-themed.c .det .desc::first-letter { font-family: 'Fraunces', serif; font-size: 42px; float: left; line-height: .85; margin: 4px 6px -2px 0; color: var(--accent); font-weight: 500; }
.portal-themed.c .det .syl { margin-top: 16px; border-top: 1px solid var(--ink); }
.portal-themed.c .det .syl h3 { font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); margin: 12px 0 6px; font-weight: 500; }
.portal-themed.c .det .syl .m { display: grid; grid-template-columns: 32px 1fr auto; gap: 8px; padding: 10px 0; border-bottom: 1px solid var(--line); align-items: center; }
.portal-themed.c .det .syl .m .n { font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: .1em; color: var(--ink-3); }
.portal-themed.c .det .syl .m b { font-family: 'Fraunces', serif; font-weight: 500; font-size: 13.5px; display: block; line-height: 1.15; color: var(--ink); }
.portal-themed.c .det .syl .m span { font-family: 'JetBrains Mono', monospace; font-size: 9.5px; letter-spacing: .08em; color: var(--ink-3); text-transform: uppercase; display: block; margin-top: 1px; }
.portal-themed.c .det .syl .m .d { font-family: 'JetBrains Mono', monospace; font-size: 10px; color: var(--ink-3); }
.portal-themed.c .det .price { margin: 16px -16px -16px; padding: 12px 16px calc(16px + env(safe-area-inset-bottom)); background: var(--ink); color: var(--bg); display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.portal-themed.c .det .price .p { font-family: 'Fraunces', serif; font-weight: 500; font-size: 22px; line-height: 1; color: var(--bg); }
.portal-themed.c .det .price .p span { display: block; font-family: 'JetBrains Mono', monospace; font-size: 9px; letter-spacing: .14em; color: #857e70; text-transform: uppercase; margin-bottom: 2px; font-weight: 400; }
.portal-themed.c .det .price .btn { flex: 1; border-radius: 0; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; font-size: 11.5px; background: var(--accent); }
.portal-themed.c .det .progress { margin-top: 14px; padding: 12px 14px; background: var(--surface-2); border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); display: flex; align-items: center; gap: 10px; font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
.portal-themed.c .det .progress .bar { flex: 1; height: 3px; background: var(--line); overflow: hidden; }
.portal-themed.c .det .progress .bar i { display: block; height: 100%; background: var(--accent); }
.portal-themed.c .det .progress .pct { color: var(--accent); }

/* Shared: content blocks under Player's up-next (lesson body / rich content) */
.portal-themed .play .ccontent { padding: 14px 16px 0; color: var(--ink-2); font-size: 13.5px; line-height: 1.6; }
.portal-themed .play .ccontent > * + * { margin-top: 10px; }
.portal-themed .play .ccontent img { max-width: 100%; border-radius: 8px; display: block; }
.portal-themed .play .ccontent iframe,
.portal-themed .play .ccontent video { width: 100%; aspect-ratio: 16/9; border-radius: 8px; background: #000; display: block; }
.portal-themed .play .ccheckpoints { padding: 14px 16px 0; }
.portal-themed .play .ccheckpoints h3 { font-family: inherit; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 8px; font-weight: 600; }
.portal-themed .play .ccheckpoint { padding: 12px; border: 1px solid var(--line); border-radius: 10px; margin-bottom: 10px; background: var(--surface); }
.portal-themed .play .ccheckpoint.is-done { border-color: var(--good); }
.portal-themed .play .ccp-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; }
.portal-themed .play .ccp-title { font-weight: 600; color: var(--ink); flex: 1; font-size: 13px; }
.portal-themed .play .ccp-pill { font-size: 10px; padding: 2px 7px; border-radius: 999px; background: var(--line-2); color: var(--ink-3); }
.portal-themed .play .ccp-pill-ok { background: var(--good); color: #fff; }
.portal-themed .play .ccp-prompt { margin: 4px 0 10px; color: var(--ink-2); font-size: 12.5px; }
.portal-themed .play .ccp-preview { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.portal-themed .play .ccp-preview img { width: 72px; height: 72px; object-fit: cover; border-radius: 8px; }
.portal-themed .play .ccp-preview-meta { font-size: 11px; color: var(--ink-3); }
.portal-themed .play .ccp-upload-btn { display: inline-block; padding: 8px 12px; border-radius: 8px; background: var(--accent); color: #fff; font-weight: 500; font-size: 12px; cursor: pointer; }
.portal-themed .play .ccheckpoint.is-done .ccp-upload-btn { background: var(--line-2); color: var(--ink-2); }

/* ================================================================
   Desktop sidebar + tabbar hide (mobile default: hidden sidebar)
   ================================================================ */
.portal-themed .portal-side { display: none; }

/* Player rail — mobile shows inline up-next, desktop shows side rail */
.portal-themed .play .desktop-up { display: none; }
.portal-themed .play .desktop-up .hd {
    font-family: 'JetBrains Mono', monospace; font-size: 10px;
    letter-spacing: .14em; color: var(--ink-3); text-transform: uppercase;
    display: flex; justify-content: space-between;
    padding: 16px 18px; border-bottom: 1px solid var(--line);
}

/* ================================================================
   DESKTOP LAYER — sidebar shell + wider screens (min-width: 1024px)
   All mobile styles above are preserved. This layer reshapes the
   container, reveals the sidebar, hides the tabbar, and widens
   per-screen layouts into multi-column grids matching the design.
   ================================================================ */
@media (min-width: 1024px) {
    /* --- root shell: sidebar + main --- */
    .portal-themed { padding: 0; min-height: 100vh; }
    .portal-themed.portal-root {
        display: grid;
        grid-template-columns: 240px 1fr;
        align-items: stretch;
    }
    .portal-themed .tabbar { display: none; }

    /* remove mobile centering frame */
    .portal-themed .scr {
        max-width: none;
        margin: 0;
        border-radius: 0;
        box-shadow: none;
        overflow: visible;
        padding-bottom: 60px;
        min-height: calc(100vh - 0px);
    }

    /* sidebar */
    .portal-themed .portal-side {
        display: flex; flex-direction: column; gap: 4px;
        padding: 18px 14px;
        background: var(--nav-bg, var(--ink));
        color: var(--nav-ink, var(--bg));
        position: sticky; top: 0;
        height: 100vh; overflow-y: auto;
        border-right: 1px solid var(--line);
    }
    .portal-themed .portal-side .brand {
        padding: 6px 10px 16px; margin-bottom: 14px;
        border-bottom: 1px solid rgba(255,255,255,.08);
        display: flex; align-items: center; gap: 10px;
    }
    .portal-themed .portal-side .brand .lg {
        width: 32px; height: 32px; border-radius: 50%;
        background: linear-gradient(135deg,#eed6bf,#4e2518);
        background-size: cover; background-position: center;
        flex: 0 0 32px;
    }
    .portal-themed .portal-side .brand .n {
        font-weight: 600; font-size: 13px; letter-spacing: -.01em;
    }
    .portal-themed .portal-side .brand .sb {
        font-size: 10.5px; color: var(--nav-ink-3, var(--ink-3)); margin-top: 1px;
    }
    .portal-themed .portal-side .lbl {
        font-family: 'JetBrains Mono', monospace;
        font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase;
        color: var(--nav-ink-3, var(--ink-3));
        padding: 14px 10px 6px;
    }
    .portal-themed .portal-side .lnk {
        display: grid; grid-template-columns: 18px 1fr auto; gap: 10px;
        align-items: center; padding: 9px 10px; border-radius: 8px;
        font-size: 13px; color: var(--nav-ink-3, var(--ink-3));
        text-decoration: none;
    }
    .portal-themed .portal-side .lnk svg { width: 16px; height: 16px; }
    .portal-themed .portal-side .lnk.active {
        background: rgba(255,255,255,.08);
        color: var(--nav-ink, var(--bg));
    }
    .portal-themed .portal-side .lnk:hover { color: var(--nav-ink, var(--bg)); }
    .portal-themed .portal-side .foot {
        margin-top: auto; padding: 10px;
        font-size: 10px; color: var(--nav-ink-3, var(--ink-3)); line-height: 1.4;
        border-top: 1px solid rgba(255,255,255,.06);
    }

    /* theme-specific sidebar tokens */
    .portal-themed.a.theme-light .portal-side { background: #17130e; color: #eceadf; --nav-ink-3: #8b8275; }
    .portal-themed.a.theme-dark  .portal-side { background: #0d0c0a; color: #f1ebde; --nav-ink-3: #7a7164; }
    .portal-themed.b.theme-light .portal-side { background: var(--surface); color: var(--ink); --nav-ink-3: var(--ink-3); border-right: 1px solid var(--line); }
    .portal-themed.b.theme-dark  .portal-side { background: var(--surface); color: var(--ink); --nav-ink-3: var(--ink-3); border-right: 1px solid var(--line); }
    .portal-themed.b .portal-side .lnk.active { background: var(--surface-2); color: var(--ink); }
    .portal-themed.c.theme-light .portal-side { background: #0f0e0c; color: #f0ece2; --nav-ink-3: #8c857a; }
    .portal-themed.c.theme-dark  .portal-side { background: #050504; color: #f4efe1; --nav-ink-3: #6d665a; }

    /* --- wider content padding --- */
    .portal-themed .portal-main { min-width: 0; }
    .portal-themed .scr .topbar,
    .portal-themed .scr .hero,
    .portal-themed .scr .streak,
    .portal-themed .scr .comm,
    .portal-themed .scr .sh,
    .portal-themed .scr .lib,
    .portal-themed .scr .promo,
    .portal-themed .scr .cont,
    .portal-themed .scr .grid,
    .portal-themed .scr .flagship,
    .portal-themed .scr .top,
    .portal-themed .scr .search,
    .portal-themed .scr .chips,
    .portal-themed .scr .list,
    .portal-themed .scr .subtabs,
    .portal-themed .scr .head,
    .portal-themed .scr .stats,
    .portal-themed .scr .section {
        max-width: 1280px;
    }
    .portal-themed .scr .topbar { padding: 18px 32px; }

    /* on desktop, hide topbar brand name (already in sidebar) but keep actions */
    .portal-themed .scr .topbar .n { display: none; }

    /* --- HOME: 2-column hero, 3-col library --- */
    .portal-themed .home { padding: 16px 32px 40px; }
    .portal-themed .home .hero { padding: 4px 0 0 !important; max-width: 1280px; }
    .portal-themed .home .hero h1 { font-size: 48px !important; line-height: 1.02; }
    .portal-themed.b .home .hero h1 { font-size: 44px !important; }
    .portal-themed.c .home .hero h1 { font-size: 64px !important; line-height: .95; }
    .portal-themed .home .cont { margin: 20px 0 0 !important; max-width: 820px; }
    .portal-themed .home .cont .cover { aspect-ratio: 16/7; }
    .portal-themed .home .cont .body { padding: 20px 24px; }
    .portal-themed .home .cont .body h3 { font-size: 28px !important; }
    .portal-themed .home .streak { margin: 14px 0 0 !important; max-width: 820px; padding: 20px !important; }
    .portal-themed .home .streak b { font-size: 32px !important; }
    .portal-themed .home .comm { margin: 14px 0 0 !important; max-width: 820px; padding: 20px 22px !important; }
    .portal-themed .home .sh { padding: 24px 0 10px !important; max-width: 1280px; }
    .portal-themed .home .sh h2 { font-size: 28px !important; }
    .portal-themed .home .sh .all { position: static !important; margin-left: auto; }
    .portal-themed .home .lib {
        padding: 0 !important;
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 14px !important;
        max-width: 1280px;
    }
    .portal-themed .home .lib .r {
        grid-template-columns: 1fr !important;
        padding: 0 !important;
        overflow: hidden;
        display: flex !important;
        flex-direction: column;
        min-height: 240px;
    }
    .portal-themed .home .lib .r .tb {
        width: 100% !important; height: 160px !important;
        border-radius: 0 !important;
        background-size: cover; background-position: center;
    }
    .portal-themed .home .lib .r .t { padding: 14px 16px; flex: 1; }
    .portal-themed .home .lib .r .t b { font-size: 18px !important; }
    .portal-themed .home .lib .r .p { padding: 0 16px 14px; font-size: 15px !important; }
    .portal-themed .home .promo {
        margin: 20px 0 0 !important;
        padding: 22px 24px !important;
        grid-template-columns: 100px 1fr auto auto !important;
        gap: 18px !important;
        max-width: 1280px;
    }
    .portal-themed .home .promo .c { width: 100px !important; height: 72px !important; }
    .portal-themed .home .promo b { font-size: 22px !important; }

    /* --- CATALOG: 4-col grid --- */
    .portal-themed .cat { padding: 24px 32px 40px; }
    .portal-themed .cat .top { padding: 0 0 16px !important; border-bottom: 1px solid var(--line); }
    .portal-themed .cat .top .back { display: none; }
    .portal-themed .cat .top .t { font-size: 32px !important; }
    .portal-themed .cat .search { margin: 16px 0 0 !important; width: 380px; }
    .portal-themed .cat .chips { margin: 18px 0 0 !important; flex-wrap: wrap; }
    .portal-themed .cat .flagship {
        margin: 22px 0 0 !important;
        display: grid !important;
        grid-template-columns: 1.3fr 1fr !important;
    }
    .portal-themed .cat .flagship .cover { aspect-ratio: auto !important; min-height: 340px; }
    .portal-themed .cat .flagship .body { padding: 32px 36px !important; display: flex; flex-direction: column; justify-content: center; }
    .portal-themed .cat .flagship .body h3 { font-size: 36px !important; }
    .portal-themed .cat .flagship .body p { font-size: 14px !important; line-height: 1.5; }
    .portal-themed .cat .grid {
        margin: 22px 0 0 !important;
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 14px !important;
    }
    .portal-themed .cat .grid .c .b { padding: 14px 16px; }
    .portal-themed .cat .grid .c .b h4 { font-size: 18px !important; }

    /* --- DETAIL: wider hero banner + 2-col body --- */
    .portal-themed .det { padding: 24px 32px 40px; }
    .portal-themed .det .hero {
        aspect-ratio: 21/9 !important;
        max-width: 1280px;
        border-radius: 16px;
        overflow: hidden;
        margin-bottom: 28px;
    }
    .portal-themed.c .det .hero { border-radius: 0; }
    .portal-themed .det .hero .btm h1 { font-size: 56px !important; }
    .portal-themed .det .body {
        padding: 0 !important;
        max-width: 1280px;
        display: grid !important;
        grid-template-columns: 1fr 320px;
        gap: 40px;
        align-items: start;
    }
    .portal-themed .det .by,
    .portal-themed .det .meta,
    .portal-themed .det .progress,
    .portal-themed .det .desc,
    .portal-themed .det .syl { grid-column: 1; }
    .portal-themed .det .price {
        grid-column: 2; grid-row: 1 / span 6;
        position: sticky; top: 20px;
        margin: 0 !important;
        padding: 22px !important;
        background: var(--surface) !important;
        border: 1px solid var(--line) !important;
        border-radius: 14px !important;
        display: flex; flex-direction: column; gap: 14px; align-items: stretch !important;
    }
    .portal-themed.c .det .price { border-radius: 0 !important; background: var(--ink) !important; color: var(--bg) !important; }
    .portal-themed .det .price .p { font-size: 32px !important; }
    .portal-themed .det .price .btn { padding: 14px 20px !important; width: 100%; }
    .portal-themed .det .syl h3 { font-size: 24px !important; }

    /* --- PLAYER: video + side rail --- */
    .portal-themed .play {
        display: grid !important;
        grid-template-columns: 1fr 340px !important;
        align-items: start;
    }
    .portal-themed .play .video,
    .portal-themed .play .body,
    .portal-themed .play .ccontent,
    .portal-themed .play .ccheckpoints { grid-column: 1; }
    .portal-themed .play .mobile-up { display: none; }
    .portal-themed .play .desktop-up {
        display: block !important;
        grid-column: 2;
        grid-row: 1 / span 20;
        position: sticky; top: 0;
        max-height: 100vh;
        overflow-y: auto;
        background: var(--surface);
        border-left: 1px solid var(--line);
        padding: 0;
    }
    .portal-themed .play .desktop-up .u {
        display: grid;
        grid-template-columns: 34px 1fr auto;
        gap: 10px; align-items: center;
        padding: 14px 18px;
        border-bottom: 1px solid var(--line);
        text-decoration: none; color: var(--ink);
        border-radius: 0;
    }
    .portal-themed .play .desktop-up .u .n {
        font-family: 'JetBrains Mono', monospace; font-size: 11px;
        color: var(--ink-3); text-align: center;
    }
    .portal-themed .play .desktop-up .u b {
        font-family: 'Instrument Serif', serif; font-weight: 400;
        font-size: 14.5px; display: block; line-height: 1.15;
    }
    .portal-themed.b .play .desktop-up .u b { font-family: 'Fraunces', serif; font-weight: 500; }
    .portal-themed.c .play .desktop-up .u b { font-family: 'Fraunces', serif; font-weight: 500; }
    .portal-themed .play .desktop-up .u span {
        font-size: 10.5px; color: var(--ink-3);
    }
    .portal-themed .play .desktop-up .u .st {
        font-family: 'JetBrains Mono', monospace; font-size: 9.5px;
        color: var(--ink-3); letter-spacing: .08em; text-transform: uppercase;
    }
    .portal-themed .play .desktop-up .u.cur { background: var(--surface-2); }
    .portal-themed .play .desktop-up .u.cur .st { color: var(--accent); }
    .portal-themed .play .desktop-up .u.done .n { color: var(--good); }

    .portal-themed .play .video { border-radius: 0 !important; }
    .portal-themed .play .body { padding: 20px 32px !important; }
    .portal-themed .play h2 { font-size: 32px !important; }
    .portal-themed .play .acts { grid-template-columns: repeat(4, 1fr) !important; }

    /* --- LIBRARY: 3-col card grid on desktop --- */
    .portal-themed .lib { padding: 24px 32px 40px; }
    .portal-themed .lib .head { padding: 0 0 12px !important; }
    .portal-themed .lib .head h1 { font-size: 40px !important; }
    .portal-themed .lib .subtabs { padding: 12px 0 0 !important; border-top: 1px solid var(--line); }
    .portal-themed .lib .subtabs .st { padding: 12px 0 !important; font-size: 14px !important; }
    .portal-themed .lib .list {
        padding: 18px 0 0 !important;
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 14px !important;
    }
    .portal-themed .lib .list .c {
        grid-template-columns: 1fr !important;
        display: flex !important;
        flex-direction: column;
    }
    .portal-themed .lib .list .c .cv {
        aspect-ratio: 16/9;
        min-height: 0;
    }
    .portal-themed .lib .list .c .bd { padding: 14px 16px !important; }
    .portal-themed .lib .list .c h4 { font-size: 18px !important; }

    /* --- PROFILE: head + 4-col stats + row2 --- */
    .portal-themed .pro { padding: 24px 32px 40px; }
    .portal-themed .pro .head {
        text-align: left !important;
        display: grid !important;
        grid-template-columns: 96px 1fr auto;
        gap: 22px;
        align-items: center;
        padding: 0 0 24px !important;
        border-bottom: 1px solid var(--line);
    }
    .portal-themed .pro .head .av {
        width: 96px !important; height: 96px !important;
        margin: 0 !important; font-size: 30px !important;
    }
    .portal-themed .pro .head h1 { font-size: 36px !important; }
    .portal-themed .pro .stats {
        margin: 22px 0 0 !important;
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 14px !important;
        padding: 0 !important;
        background: transparent !important;
        border: 0 !important;
    }
    .portal-themed .pro .stats div {
        padding: 18px 20px;
        background: var(--surface);
        border: 1px solid var(--line) !important;
        border-radius: 12px;
        text-align: left;
    }
    .portal-themed .pro .stats b { font-size: 40px !important; margin-bottom: 6px !important; }
    .portal-themed .pro .section {
        margin: 28px 0 0 !important;
        max-width: 820px;
    }

    /* --- MARKETPLACE alias: uses .cat classes already --- */

    /* --- COURSES listing page (lib variant with course tiles) --- */
    /* already covered by .lib above */
}

/* ================================================================
   Extra-wide breakpoint — further polish past 1440px
   ================================================================ */
@media (min-width: 1440px) {
    .portal-themed.portal-root { grid-template-columns: 260px 1fr; }
    .portal-themed .home,
    .portal-themed .cat,
    .portal-themed .det,
    .portal-themed .lib,
    .portal-themed .pro { padding: 28px 44px 60px; }
    .portal-themed .play .body { padding: 24px 44px !important; }
}

/* ================================================================
   COURSE LANDING PAGE (/courses/{id})
   Public pre-enrollment sales page — themed in Atelier/Hearth/Studio
   using the creator's microsite theme. Self-contained section, not
   dependent on the portal shell.
   ================================================================ */

/* Outer shell wraps the themed top bar + main content */
.clp-shell {
    background: var(--bg);
    color: var(--ink);
    min-height: 100vh;
    font-size: 14px;
    line-height: 1.5;
}
.clp-shell main { display: block; }

.clp-topbar {
    position: sticky; top: 0; z-index: 20;
    display: flex; align-items: center; justify-content: space-between;
    gap: 12px;
    padding: 14px 20px;
    background: color-mix(in oklab, var(--bg) 92%, transparent);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}
.clp-topbar-brand {
    display: inline-flex; align-items: center; gap: 10px;
    color: var(--ink);
    text-decoration: none;
    min-width: 0;
}
.clp-topbar-logo {
    width: 32px; height: 32px; border-radius: 8px;
    object-fit: contain; background: var(--surface);
    border: 1px solid var(--line); padding: 2px;
    flex: 0 0 32px;
}
.clp-topbar-sigil {
    width: 32px; height: 32px; border-radius: 8px;
    background: var(--accent); color: #fff;
    display: inline-grid; place-items: center;
    font-weight: 600; font-size: 14px;
    flex: 0 0 32px;
}
.clp-topbar-name {
    font-weight: 600; font-size: 15px; letter-spacing: -0.01em;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.portal-themed.a .clp-topbar-name { font-family: 'Instrument Serif', serif; font-weight: 400; font-size: 18px; }
.portal-themed.b .clp-topbar-name { font-family: 'Fraunces', serif; font-weight: 500; font-size: 17px; }
.portal-themed.c .clp-topbar-name { font-family: 'Fraunces', serif; font-weight: 500; font-size: 17px; }
.clp-topbar-right { display: inline-flex; align-items: center; gap: 10px; }
.portal-themed .clp-topbar-link {
    color: var(--ink-2); font-size: 13px; font-weight: 500;
    padding: 8px 4px; text-decoration: none;
}
.portal-themed .clp-topbar-link:hover { color: var(--ink); }
.portal-themed .clp-topbar-cta {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 16px; border-radius: 999px;
    background: var(--ink); color: var(--bg);
    font-size: 13px; font-weight: 500;
    text-decoration: none;
    border: 1px solid var(--ink);
}
.portal-themed .clp-topbar-cta:hover { filter: brightness(1.08); }
.portal-themed.c .clp-topbar-cta { border-radius: 0; }

.clp.portal-themed {
    display: block;
    background: var(--bg);
    color: var(--ink);
    max-width: 1080px;
    margin: 0 auto;
    padding: 28px 28px 120px;
    min-height: auto;
    font-size: 15px;
    line-height: 1.6;
}
.clp * { box-sizing: border-box; }
.clp a { color: inherit; text-decoration: none; }

.clp-back {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 13px; color: var(--ink-3);
    font-family: 'JetBrains Mono', monospace;
    letter-spacing: .04em;
}
.clp-back:hover { color: var(--ink); }

.clp-hero { margin: 28px 0 12px; max-width: 780px; }
.clp-eyebrow {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10.5px; letter-spacing: .18em;
    text-transform: uppercase; color: var(--ink-3);
    margin-bottom: 16px;
}
.clp-title {
    font-weight: 400;
    font-size: clamp(42px, 7vw, 78px); line-height: 1.02;
    letter-spacing: -0.03em; margin: 0;
    color: var(--ink);
}
.clp-title-dot { color: var(--accent); font-style: italic; }
.clp-tagline {
    font-style: italic; font-weight: 400;
    font-size: 22px; line-height: 1.4; color: var(--accent);
    margin: 18px 0 0; max-width: 620px;
}
.clp .clp-lede-wrap { margin: 14px 0 0; max-width: 580px; }
.clp .clp-lede {
    font-size: 15px; line-height: 1.55; color: var(--ink-3);
    margin: 0;
    white-space: pre-line;
}
.clp .clp-lede em { font-style: italic; color: var(--ink); }
.clp .clp-lede.is-clipped {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    white-space: normal;
    max-height: calc(1.55em * 3);
}
.clp .clp-lede-toggle {
    margin-top: 6px; padding: 0; border: 0; background: none; cursor: pointer;
    color: var(--accent, var(--ink)); font: 600 11.5px/1 'JetBrains Mono', monospace;
    letter-spacing: .08em; text-transform: uppercase;
}
.clp .clp-lede-toggle:hover { text-decoration: underline; }
.clp-meta {
    display: flex; flex-wrap: wrap; align-items: center; gap: 12px;
    margin-top: 26px; font-size: 13px; color: var(--ink-3);
    font-family: 'JetBrains Mono', monospace; letter-spacing: .04em;
}
.clp-meta span { display: inline-flex; align-items: center; gap: 6px; }
.clp-meta-dot {
    width: 3px; height: 3px; border-radius: 50%; background: var(--ink-3);
    display: inline-block;
}
.clp-meta-em { color: var(--accent); font-weight: 500; }

.clp-cta-row {
    display: flex; flex-wrap: wrap; align-items: center; gap: 12px;
    margin-top: 28px;
}
.portal-themed .clp-btn-primary {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 14px 26px; border-radius: 999px;
    background: var(--accent); color: #fff;
    font-weight: 500; font-size: 15px;
    border: 1px solid var(--accent);
    cursor: pointer; transition: transform .15s, filter .15s;
}
.portal-themed .clp-btn-primary:hover { filter: brightness(1.08); transform: translateY(-1px); }
.portal-themed .clp-btn-primary svg { transition: transform .2s; }
.portal-themed .clp-btn-primary:hover svg { transform: translateX(3px); }
.portal-themed .clp-btn-big { padding: 16px 32px; font-size: 16px; }
.portal-themed .clp-btn-ghost {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 13px 20px; border-radius: 999px;
    background: transparent; color: var(--ink);
    font-weight: 500; font-size: 14.5px;
    border: 1px solid var(--line);
    cursor: pointer;
}
.portal-themed .clp-btn-ghost:hover { background: var(--surface-2); border-color: var(--ink); }

.clp-cover-top { margin-bottom: 24px; }
.clp-cover {
    margin: 32px auto; max-width: 960px;
    border-radius: 18px; overflow: hidden;
    aspect-ratio: 16/9;
    background: var(--surface);
    box-shadow: 0 24px 48px -24px rgba(0,0,0,.3);
}
.clp-cover iframe, .clp-cover video {
    width: 100%; height: 100%; display: block; object-fit: cover; border: 0;
}
.clp-cover img { width: 100%; height: 100%; display: block; object-fit: cover; border: 0; }
.clp-cover-playable { position: relative; cursor: pointer; }
.clp-cover-poster { width: 100%; height: 100%; object-fit: cover; }
.clp-cover-fallback {
    background: var(--surface-2);
    background-image: radial-gradient(circle at 50% 50%,
        color-mix(in oklab, var(--accent) 20%, var(--surface-2)) 0%,
        var(--surface-2) 70%);
}
.clp-cover-play {
    position: absolute; inset: 0; margin: auto;
    width: 76px; height: 76px; border-radius: 50%;
    background: rgba(255,255,255,.95); color: var(--accent);
    border: 0; cursor: pointer;
    display: grid; place-items: center;
    box-shadow: 0 12px 36px rgba(0,0,0,.35);
    transition: transform .15s, background .15s;
}
.clp-cover-play svg { margin-left: 3px; }
.clp-cover-playable:hover .clp-cover-play { transform: scale(1.06); background: #fff; }

.clp-section { margin-top: 68px; padding-top: 48px; border-top: 1px solid var(--line); }
.clp-section-head { margin-bottom: 28px; max-width: 640px; }
.clp-section-title {
    font-weight: 400;
    font-size: clamp(30px, 4.5vw, 44px); line-height: 1.1;
    letter-spacing: -0.02em; margin: 0; color: var(--ink);
}
.clp-section-title em { font-style: italic; color: var(--accent); }

/* Instructor */
.clp-instructor-card {
    display: flex; gap: 22px; align-items: flex-start;
    background: var(--surface); border: 1px solid var(--line);
    border-radius: 16px; padding: 22px;
}
.clp-instructor-avatar {
    flex: 0 0 auto; width: 84px; height: 84px; border-radius: 50%;
    object-fit: cover; border: 1px solid var(--line);
}
.clp-instructor-avatar-fallback {
    display: grid; place-items: center;
    font-size: 30px; font-weight: 500; color: var(--accent);
    background: var(--surface-2);
}
.clp-instructor-meta { flex: 1; min-width: 0; }
.clp-instructor-name { font-size: 22px; color: var(--ink); font-weight: 500; }
.clp-instructor-tag {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
    color: var(--accent); margin-top: 4px;
}
.clp-instructor-bio {
    margin: 12px 0 0; font-size: 14.5px; line-height: 1.65; color: var(--ink-2);
    white-space: pre-line;
}

/* Outcomes */
.clp-outcomes-list {
    list-style: none; padding: 0; margin: 0;
    display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 14px;
}
.clp-outcomes-list li {
    display: flex; gap: 12px; align-items: flex-start;
    padding: 16px 18px; background: var(--surface);
    border: 1px solid var(--line); border-radius: 12px;
    font-size: 14.5px; line-height: 1.5; color: var(--ink);
}
.clp-outcomes-list svg { color: var(--accent); flex-shrink: 0; margin-top: 2px; }

/* Curriculum */
.clp-modules { display: flex; flex-direction: column; gap: 10px; }
.clp-module {
    background: var(--surface);
    border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
    transition: border-color .15s;
}
.clp-module[open] { border-color: var(--accent); }
.clp-module > summary {
    display: flex; align-items: center; gap: 18px;
    padding: 16px 20px; cursor: pointer; list-style: none;
}
.clp-module > summary::-webkit-details-marker { display: none; }
.clp-module-num {
    flex-shrink: 0; width: 40px; height: 40px; border-radius: 10px;
    background: var(--surface-2); display: inline-grid; place-items: center;
    font-weight: 500;
    font-size: 14px; color: var(--accent);
    border: 1px solid var(--line);
    font-family: 'JetBrains Mono', monospace;
    letter-spacing: .04em;
}
.clp-module-meta { flex: 1; min-width: 0; }
.clp-module-title { font-size: 17px; font-weight: 500; letter-spacing: -0.005em; color: var(--ink); }
.clp-module-sub {
    font-size: 11.5px; color: var(--ink-3); margin-top: 2px;
    font-family: 'JetBrains Mono', monospace; letter-spacing: .04em;
}
.clp-chev { color: var(--ink-3); transition: transform .2s; flex-shrink: 0; }
.clp-module[open] .clp-chev { transform: rotate(180deg); }
.clp-lessons {
    padding: 0 20px 18px 76px;
    display: flex; flex-direction: column; gap: 6px;
}
.clp-lesson {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 14px; border-radius: 10px;
    background: var(--bg);
    font-size: 13.5px; color: var(--ink);
}
.clp-lesson-num {
    font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--ink-3);
    width: 24px; letter-spacing: .04em;
}
.clp-lesson-title { flex: 1; }
.clp-free {
    font-family: 'JetBrains Mono', monospace; font-size: 10px; text-transform: uppercase;
    letter-spacing: .1em; padding: 3px 8px; border-radius: 999px;
    background: var(--surface-2); color: var(--accent);
}
.clp-empty { padding: 8px 0; color: var(--ink-3); font-size: 13px; }

/* Reviews */
.clp-reviews-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 16px;
}
.clp-review {
    background: var(--surface); border: 1px solid var(--line);
    border-radius: 14px; padding: 22px;
}
.clp-review-stars { display: flex; gap: 2px; color: var(--accent); margin-bottom: 12px; }
.clp-review-body {
    font-style: italic; font-size: 16px; line-height: 1.55;
    color: var(--ink); margin: 0 0 16px;
}
.clp-review-author { font-size: 13px; color: var(--ink-2); }
.clp-review-author strong { display: block; color: var(--ink); font-weight: 600; }
.clp-review-media-img {
    display: block; width: 100%; max-width: 100%; height: auto; max-height: 280px;
    object-fit: contain; background: var(--surface-2);
    border: 1px solid var(--line); border-radius: 10px; margin: 0 0 12px;
}
.clp-review-media-video {
    position: relative; width: 100%; aspect-ratio: 16/9;
    border-radius: 10px; overflow: hidden; margin: 0 0 12px; background: #000;
}
.clp-review-media-video iframe,
.clp-review-media-video video {
    position: absolute; inset: 0; width: 100%; height: 100%; border: 0;
}

/* FAQs */
.clp-faqs-list { display: flex; flex-direction: column; gap: 10px; max-width: 780px; }
.clp-faq {
    background: var(--surface); border: 1px solid var(--line);
    border-radius: 12px; overflow: hidden;
}
.clp-faq[open] { border-color: var(--accent); }
.clp-faq > summary {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 16px 20px; cursor: pointer; list-style: none;
    font-size: 16px; font-weight: 500; color: var(--ink);
}
.clp-faq > summary::-webkit-details-marker { display: none; }
.clp-faq[open] .clp-chev { transform: rotate(180deg); }
.clp-faq-body {
    padding: 0 20px 20px; color: var(--ink-2); font-size: 14.5px; line-height: 1.65;
    white-space: pre-line;
}

/* Enroll (single plan) */
.clp-enroll-card {
    background: var(--ink); color: var(--bg);
    border-radius: 24px; padding: 52px 32px; text-align: center;
    max-width: 640px; margin: 0 auto;
}
.clp-enroll-eyebrow { color: var(--accent); margin-bottom: 14px; }
.clp-price {
    font-weight: 400;
    font-size: clamp(56px, 10vw, 84px); line-height: 1; letter-spacing: -0.03em;
    color: var(--bg);
}
.clp-enroll-note {
    color: rgba(255,255,255,.64); margin: 14px 0 28px; font-size: 15px;
}
.portal-themed .clp-enroll-card .clp-btn-primary {
    background: var(--bg); color: var(--ink); border-color: var(--bg);
}
.portal-themed .clp-enroll-card .clp-btn-primary:hover { background: #fff; filter: none; }
.portal-themed .clp-enroll-card .clp-member a { color: var(--bg); }
.clp-refund {
    display: inline-flex; align-items: center; gap: 8px; justify-content: center;
    margin: 20px 0 0; font-size: 13px; color: rgba(255,255,255,.76);
}
.clp-refund svg { color: var(--accent); }
.clp-member { margin-top: 16px; font-size: 13px; color: rgba(255,255,255,.7); }
.clp-member a { color: var(--bg); text-decoration: underline; text-underline-offset: 3px; }

/* Enroll (multi-plan tiers) */
.clp-tier-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px; max-width: 980px; margin: 24px auto 0;
}
.clp-tier {
    background: var(--ink); color: var(--bg);
    border-radius: 22px; padding: 30px 24px; text-align: left;
    position: relative; display: flex; flex-direction: column; gap: 12px;
}
.clp-tier.is-default { outline: 2px solid var(--accent); outline-offset: -2px; }
.clp-tier-badge {
    position: absolute; top: -12px; left: 24px;
    background: var(--accent); color: #fff;
    padding: 4px 12px; border-radius: 999px;
    font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
}
.clp-tier-name { font-size: 22px; color: var(--bg); font-weight: 500; }
.clp-tier-price { font-size: 38px; line-height: 1; color: var(--bg); font-weight: 400; }
.clp-tier-period { font-size: 13px; color: rgba(255,255,255,.6); margin-left: 4px; font-weight: 400; }
.clp-tier-validity { color: rgba(255,255,255,.68); font-size: 13px; margin: 0; }
.clp-tier-desc { color: rgba(255,255,255,.82); font-size: 14px; margin: 0; }
.clp-tier-perks { list-style: none; padding: 0; margin: 0 0 12px; display: flex; flex-direction: column; gap: 4px; }
.clp-tier-perks li {
    color: rgba(255,255,255,.86); font-size: 13px;
    padding-left: 18px; position: relative;
}
.clp-tier-perks li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); }
.portal-themed .clp-tier .clp-btn-primary {
    background: var(--bg); color: var(--ink); border-color: var(--bg); margin-top: auto;
}
.portal-themed .clp-tier .clp-btn-primary:hover { background: #fff; filter: none; }

/* Sticky mobile CTA */
.portal-themed .clp-sticky {
    position: fixed; bottom: 14px; left: 14px; right: 14px; z-index: 30;
    display: none; align-items: center; justify-content: space-between; gap: 12px;
    padding: 12px 16px 12px 18px;
    background: var(--ink); color: var(--bg);
    border-radius: 999px;
    box-shadow: 0 12px 24px -8px rgba(0,0,0,.4);
}
.clp-sticky-price { display: inline-flex; align-items: baseline; gap: 8px; }
.clp-sticky-label { font-size: 10.5px; text-transform: uppercase; letter-spacing: .12em; opacity: .7; }
.clp-sticky-price strong { font-size: 17px; font-weight: 500; }
.clp-sticky-cta { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 500; }

.clp-toast {
    position: fixed; top: 14px; left: 14px; right: 14px; z-index: 50;
    display: flex; align-items: flex-start; gap: 12px;
    background: #1F1914; color: #FAF6EF;
    padding: 14px 16px; border-radius: 14px;
    box-shadow: 0 12px 24px -8px rgba(0,0,0,.3);
    max-width: 400px;
}
.clp-toast button {
    margin-left: auto; background: transparent; border: 0; color: inherit;
    font-size: 20px; cursor: pointer; opacity: .7;
}
.clp-toast-sub { font-size: 12.5px; opacity: .72; margin-top: 2px; }

@media (min-width: 640px) {
    .clp-toast { left: auto; }
}
@media (max-width: 640px) {
    .clp.portal-themed { padding: 18px 18px 100px; }
    .clp-hero { margin-top: 16px; }
    .clp-lede { font-size: 15.5px; }
    .clp-tagline { font-size: 19px; }
    .clp-lessons { padding-left: 66px; }
    .clp-enroll-card { padding: 40px 22px; }
    .clp-instructor-card { flex-direction: column; gap: 14px; }
    .clp-sticky { display: flex; }
    .clp-section { margin-top: 52px; padding-top: 36px; }
}

/* --- Atelier (a): Instrument Serif titles, monochrome clay --- */
.clp.portal-themed.a .clp-title,
.clp.portal-themed.a .clp-section-title,
.clp.portal-themed.a .clp-price,
.clp.portal-themed.a .clp-tier-price,
.clp.portal-themed.a .clp-tier-name,
.clp.portal-themed.a .clp-instructor-name,
.clp.portal-themed.a .clp-module-title,
.clp.portal-themed.a .clp-faq > summary,
.clp.portal-themed.a .clp-sticky-price strong,
.clp.portal-themed.a .clp-review-body {
    font-family: 'Instrument Serif', serif;
}

/* --- Hearth (b): Fraunces + Caveat accents --- */
.clp.portal-themed.b .clp-title,
.clp.portal-themed.b .clp-section-title,
.clp.portal-themed.b .clp-price,
.clp.portal-themed.b .clp-tier-price,
.clp.portal-themed.b .clp-tier-name,
.clp.portal-themed.b .clp-instructor-name,
.clp.portal-themed.b .clp-module-title,
.clp.portal-themed.b .clp-faq > summary,
.clp.portal-themed.b .clp-sticky-price strong,
.clp.portal-themed.b .clp-review-body {
    font-family: 'Fraunces', serif;
}
.clp.portal-themed.b .clp-title { font-weight: 500; }
.clp.portal-themed.b .clp-tagline { font-family: 'Caveat', cursive; font-style: normal; font-size: 26px; }
.clp.portal-themed.b .clp-eyebrow { font-family: 'Caveat', cursive; font-size: 16px; letter-spacing: 0; text-transform: none; color: var(--accent); }
.clp.portal-themed.b .clp-meta { font-family: 'Fraunces', serif; letter-spacing: 0; font-style: italic; }
.clp.portal-themed.b .clp-module[open],
.clp.portal-themed.b .clp-faq[open] { border-color: var(--accent); }
.clp.portal-themed.b .clp-module { border-style: dashed; }
.clp.portal-themed.b .clp-module-sub { font-family: 'Fraunces', serif; font-style: italic; letter-spacing: 0; }
.clp.portal-themed.b .clp-lesson-num { font-family: 'Caveat', cursive; font-size: 14px; letter-spacing: 0; }
.clp.portal-themed.b .clp-btn-primary { font-family: 'Fraunces', serif; font-weight: 500; }

/* --- Studio (c): Fraunces + bold editorial mono --- */
.clp.portal-themed.c .clp-title,
.clp.portal-themed.c .clp-section-title,
.clp.portal-themed.c .clp-price,
.clp.portal-themed.c .clp-tier-price,
.clp.portal-themed.c .clp-tier-name,
.clp.portal-themed.c .clp-instructor-name,
.clp.portal-themed.c .clp-module-title,
.clp.portal-themed.c .clp-faq > summary,
.clp.portal-themed.c .clp-sticky-price strong,
.clp.portal-themed.c .clp-review-body {
    font-family: 'Fraunces', serif;
}
.clp.portal-themed.c .clp-title { font-weight: 500; letter-spacing: -0.035em; }
.clp.portal-themed.c .clp-section-title { font-weight: 500; }
.clp.portal-themed.c .clp-module,
.clp.portal-themed.c .clp-faq,
.clp.portal-themed.c .clp-review,
.clp.portal-themed.c .clp-tier,
.clp.portal-themed.c .clp-enroll-card,
.clp.portal-themed.c .clp-instructor-card,
.clp.portal-themed.c .clp-cover,
.clp.portal-themed.c .clp-outcomes-list li,
.clp.portal-themed.c .clp-lesson {
    border-radius: 0;
}
.clp.portal-themed.c .clp-btn-primary,
.clp.portal-themed.c .clp-btn-ghost,
.clp.portal-themed.c .clp-sticky { border-radius: 0; }
.clp.portal-themed.c .clp-section { border-top-color: var(--ink); }
.clp.portal-themed.c .clp-eyebrow { color: var(--accent); }

