/* upay.academy · web app. One file, one set of components. Colours from brand/README.md. */
:root {
  --accent: #226691; --accent-hover: #1B5579; --accent-soft: #E3EEF6; --on-accent: #fff;
  --warm: #F08C2E; --warm-hover: #E27F22; --warm-text: #B4560E; --warm-soft: #FDF0E3;
  --text: #13202A; --muted: #576773; --bg: #F4F7F9; --surface: #fff; --surface-2: #EAF0F4; --border: #DCE4EA;
  --danger: #C0392B; --ok: #1F8A4C; --ok-soft: #E6F6EC;
  --radius: 16px; --shadow: 0 1px 2px rgba(16,32,42,.06), 0 2px 8px rgba(16,32,42,.05); --shadow-lg: 0 10px 34px rgba(16,32,42,.14);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
/* Dark: when chosen, or following the device as long as nothing is chosen (js/theme.js sets data-theme) */
:root[data-theme="dark"] { --accent: #6CB4E4; --accent-hover: #8CC6EC; --accent-soft: #12283A; --on-accent: #0C1418;
    --warm: #F5A55C; --warm-hover: #F7B578; --warm-text: #F5A55C; --warm-soft: #33220F;
    --text: #E8EFF3; --muted: #93A4AF; --bg: #0C1418; --surface: #131E25; --surface-2: #1A2830; --border: #24343D; --danger: #F0796B; --ok: #5BC98A;
    --shadow: 0 1px 2px rgba(0,0,0,.4); --shadow-lg: 0 12px 36px rgba(0,0,0,.55); --ok-soft: #10291A; color-scheme: dark;
    --shade-top: rgba(12,20,24,.52); --shade-bottom: rgba(12,20,24,.8); --shade-tile: rgba(12,20,24,.22); --deco: .45; --img-edge: rgba(255,255,255,.1); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --accent: #6CB4E4; --accent-hover: #8CC6EC; --accent-soft: #12283A; --on-accent: #0C1418;
    --warm: #F5A55C; --warm-hover: #F7B578; --warm-text: #F5A55C; --warm-soft: #33220F;
    --text: #E8EFF3; --muted: #93A4AF; --bg: #0C1418; --surface: #131E25; --surface-2: #1A2830; --border: #24343D; --danger: #F0796B; --ok: #5BC98A;
    --shadow: 0 1px 2px rgba(0,0,0,.4); --shadow-lg: 0 12px 36px rgba(0,0,0,.55); --ok-soft: #10291A; color-scheme: dark;
    --shade-top: rgba(12,20,24,.52); --shade-bottom: rgba(12,20,24,.8); --shade-tile: rgba(12,20,24,.22); --deco: .45; --img-edge: rgba(255,255,255,.1); }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.55 var(--font); }
h1, h2, h3, p, ul { margin: 0; }
h1 { font-size: clamp(28px, 4vw, 40px); line-height: 1.15; letter-spacing: -.02em; font-weight: 800; }
h2 { font-size: 20px; letter-spacing: -.01em; }
h3 { font-size: 17px; }
ul { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .5; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.icon { width: 18px; height: 18px; flex: none; }
.muted { color: var(--muted); } .small { font-size: 13px; } .center { text-align: center; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.wrap.narrow { max-width: 760px; }
.boot { padding: 80px 24px; text-align: center; color: var(--muted); }
main { min-height: 70vh; padding-bottom: 80px; }
.link { border: 0; background: none; padding: 0; color: var(--accent); text-decoration: underline; }

/* ---- Buttons ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 18px; border-radius: 12px; border: 1px solid var(--accent); background: var(--accent); color: var(--on-accent); font-weight: 600; white-space: nowrap; cursor: pointer; }
.btn:hover:not(:disabled) { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn-sm { height: 36px; padding: 0 12px; font-size: 14px; border-radius: 10px; }
.btn-block { display: flex; width: 100%; }
.btn-quiet { background: var(--surface); color: var(--text); border-color: var(--border); }
.btn-quiet:hover:not(:disabled) { background: var(--surface-2); border-color: var(--border); }
.btn-go { background: var(--warm); border-color: var(--warm); color: #13202A; }
.btn-go:hover:not(:disabled) { background: var(--warm-hover); border-color: var(--warm-hover); }
.ib { width: 32px; height: 32px; display: inline-grid; place-items: center; border: 0; border-radius: 9px; background: none; color: var(--muted); flex: none; }
.ib:hover:not(:disabled) { background: var(--surface-2); color: var(--text); }
.input { width: 100%; height: 44px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); }

/* ---- Header and footer ---- */
.top { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.logo img { height: 28px; display: block; } .logo .l-dark { display: none; }
:root[data-theme="dark"] .logo .l-light { display: none; } :root[data-theme="dark"] .logo .l-dark { display: block; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .logo .l-light { display: none; } :root:not([data-theme="light"]) .logo .l-dark { display: block; } }
.nav-link { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 10px; font-weight: 500; font-size: 15px; color: var(--muted); }
.nav-link:hover { color: var(--text); background: var(--surface-2); } .nav-link[aria-current="page"] { color: var(--text); background: var(--surface); box-shadow: inset 0 0 0 1px var(--border); }
.nav-count { background: var(--accent); color: var(--on-accent); font-size: 11px; font-weight: 700; border-radius: 99px; padding: 1px 7px; }
.theme-btn { width: 38px; height: 38px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); color: var(--muted); } .theme-btn:hover { color: var(--text); }
@media (max-width: 600px) { .nav-link { padding: 8px; font-size: 14px; } .top-right { gap: 8px; } }
.top-right { display: flex; align-items: center; gap: 12px; }
.save { font-size: 13px; color: var(--muted); white-space: nowrap; }
.save-error, .save-conflict { color: var(--danger); font-weight: 600; }
.seg { display: inline-flex; padding: 3px; gap: 2px; border-radius: 12px; background: var(--surface-2); }
.seg button { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 12px; border: 0; border-radius: 9px; background: none; font-size: 14px; font-weight: 600; color: var(--muted); }
.seg button[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); }
/* Account menu (values from the prototype, konto.css) */
.um-avatar { position: relative; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--on-accent); font-size: 13px; font-weight: 700; letter-spacing: .02em; box-shadow: 0 0 0 2px var(--surface), 0 0 0 3px var(--border); }
.um-avatar:hover, .account.open .um-avatar { box-shadow: 0 0 0 2px var(--surface), 0 0 0 3px var(--accent); }
.um-avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; } .um-avatar.has-img { background: var(--surface-2); }
.um-avatar.is-creator::after, .um-c { display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--warm); color: #13202A; font-size: 11px; font-weight: 800; line-height: 1; }
.um-avatar.is-creator::after { content: "C"; position: absolute; right: -5px; bottom: -5px; box-shadow: 0 0 0 2px var(--surface); }
.um-pop { width: 300px; }
.um-pop { padding: 0 6px 6px; overflow: hidden; }
/* Profile: at the top, set apart by colour, as a whole the way to one's own account */
.menu-pop > a.um-head { display: flex; align-items: center; gap: 12px; margin: 0 -6px 6px; width: auto; padding: 14px 14px; border-radius: 0; background: var(--surface-2); border-bottom: 1px solid var(--border); }
.menu-pop > a.um-head:hover { background: color-mix(in srgb, var(--accent) 10%, var(--surface-2)); }
.um-head .um-pic { flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; overflow: hidden; background: var(--accent); color: var(--on-accent); font-size: 15px; font-weight: 700; box-shadow: 0 0 0 2px var(--surface); } .um-pic img { width: 100%; height: 100%; object-fit: cover; }
.um-head .um-who { flex: 1; min-width: 0; display: grid; gap: 1px; } .um-who strong { font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .um-who span { font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.um-head > .icon { width: 18px; height: 18px; color: var(--muted); }
.um-mode { display: grid; gap: 6px; padding: 6px 10px 10px; border-bottom: 1px solid var(--border); margin-bottom: 4px; }
.um-label { font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; } .um-label em { font-style: normal; font-weight: 500; text-transform: none; letter-spacing: 0; }
.um-seg { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; background: var(--surface-2); border-radius: 10px; padding: 3px; }
.menu-pop .um-seg button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; width: auto; padding: 7px 6px; border: 0; background: none; border-radius: 8px; font-size: 13px; font-weight: 600; color: var(--muted); }
.menu-pop .um-seg button.on { background: var(--surface); color: var(--text); box-shadow: 0 1px 2px rgba(19,32,42,.12); } .um-seg button:not(.on) .um-c { opacity: .55; } .menu-pop .um-c, .menu-pop .um-label { flex: none; }
.um-now { font-size: 12px; color: var(--muted); flex: none; }
.um-tools { display: grid; gap: 2px; padding: 6px 0 4px; border-bottom: 1px solid var(--border); margin-bottom: 4px; } .um-tools .um-label { padding: 4px 10px 2px; }
.menu-pop > .um-item, .menu-pop .um-tools .um-item { display: block; width: 100%; text-align: left; padding: 9px 10px; border: 0; background: none; border-radius: 8px; font-size: 14px; font-weight: 500; color: var(--text); }
.menu-pop .um-item:hover { background: var(--surface-2); } .menu-pop .um-out { color: var(--danger); font-weight: 600; }
.top .btn .icon { width: 16px; height: 16px; }
.foot { border-top: 1px solid var(--border); padding: 20px 0; font-size: 13px; }
.foot .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.foot a { text-decoration: underline; }

/* =========================== COMPONENTS =========================== */
/* Editable text: invisible at rest, tinted on hover, thin ring while writing */
.tx { border-radius: 6px; outline: 0; cursor: text; min-width: 2ch; transition: background .12s; }
.tx:hover { background: color-mix(in srgb, var(--accent) 10%, transparent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 10%, transparent); }
.tx:focus { background: none; box-shadow: none; outline: 1.5px solid var(--accent); outline-offset: 3px; }
.tx:empty::before { content: attr(data-ph); color: var(--muted); font-style: italic; font-weight: 400; }
.tx-multi { white-space: pre-wrap; display: block; }
.hero .tx:hover { background: rgba(255,255,255,.16); box-shadow: 0 0 0 3px rgba(255,255,255,.16); }
.hero .tx:focus { outline-color: #fff; }
.hero .tx:empty::before { color: rgba(255,255,255,.75); }

/* Row in edit mode: grip on the left, tools on the right, both always visible. Nothing appears only on hover. */
.row { position: relative; display: flex; align-items: center; gap: 12px; }
.grip { position: absolute; left: 2px; top: 50%; transform: translateY(-50%); width: 22px; height: 30px; display: grid; place-items: center; border-radius: 6px; color: var(--muted); cursor: grab; opacity: .55; }
.grip .icon { width: 15px; height: 15px; fill: currentColor; stroke: none; }
.grip:hover, .grip:focus-visible { background: var(--surface-2); color: var(--text); opacity: 1; }
.tools { display: flex; align-items: center; gap: 4px; flex: none; }
.tools .ib { color: var(--text); }
.tools .btn-sm { height: 32px; padding: 0 10px; gap: 4px; } .tools .btn-sm .icon { width: 15px; height: 15px; }
.row:has(.menu.open) { z-index: 30; }
.dragging { opacity: .4; }
.drop-before { box-shadow: 0 -2px 0 var(--accent); } .drop-after { box-shadow: 0 2px 0 var(--accent); }
.drop-into { background: var(--accent-soft); border-radius: 10px; }
.row-x { opacity: .5; margin-left: auto; } .row-x:hover:not(:disabled) { opacity: 1; color: var(--danger); }

/* Menu */
.menu { position: relative; display: inline-flex; }
.menu-pop { position: absolute; right: 0; top: calc(100% + 6px); z-index: 50; min-width: 240px; padding: 6px; display: grid; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-lg); }
.menu-pop.up { top: auto; bottom: calc(100% + 6px); }
.menu-left .menu-pop { right: auto; left: 0; }
.menu-pop > a, .menu-pop > button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border: 0; border-radius: 8px; background: none; text-align: left; font-size: 14px; color: var(--text); }
.menu-pop > a:hover, .menu-pop > button:hover:not(:disabled) { background: var(--surface-2); }
.menu-pop .icon { width: 16px; height: 16px; color: var(--muted); }
.menu-pop span { flex: 1; } .menu-pop small { display: block; color: var(--muted); font-size: 12px; }
.menu-pop .danger, .menu-pop .danger .icon { color: var(--danger); }
.menu-pop .on { font-weight: 600; } .menu-pop .on > .icon:last-child { color: var(--accent); }
.menu-pop hr { border: 0; border-top: 1px solid var(--border); margin: 4px 0; width: 100%; }

/* Chip and "add" */
.chip { display: inline-block; font-size: 12px; font-weight: 600; line-height: 1.5; padding: 2px 9px; border-radius: 99px; white-space: nowrap; flex: none; background: var(--surface-2); color: var(--muted); }
.chip-draft { background: var(--warm-soft); color: var(--warm-text); } .chip-live, .chip-preview { background: var(--accent-soft); color: var(--accent); }
.add { display: inline-flex; align-items: center; gap: 8px; padding: 8px 10px; border: 0; border-radius: 8px; background: none; font-size: 14px; font-weight: 500; color: var(--muted); cursor: pointer; }
.add:hover { background: var(--surface-2); color: var(--text); }
.add .icon { width: 16px; height: 16px; }
.add-box { display: flex; justify-content: center; width: 100%; padding: 14px; border: 1px dashed var(--border); border-radius: 12px; }

/* Layers */
.layer { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 16px; background: rgba(10,14,18,.45); }
.sheet { width: 100%; max-width: 480px; max-height: calc(100vh - 32px); display: flex; flex-direction: column; background: var(--surface); border-radius: 20px; box-shadow: var(--shadow-lg); overflow: hidden; }
.layer-panel { place-items: stretch end; padding: 0; background: rgba(10,14,18,.28); }
.layer-panel .sheet { max-width: 460px; max-height: none; height: 100vh; border-radius: 0; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--border); }
.sheet-head h2 { font-size: 17px; } .sheet-head > span { display: grid; gap: 2px; min-width: 0; } .sheet-head small { font-size: 13px; color: var(--muted); }
.btn-del { display: inline-flex; align-items: center; gap: 8px; border: 0; background: none; padding: 8px 4px; font-weight: 600; color: var(--danger); } .btn-del:hover { text-decoration: underline; }
.sheet-body { padding: 20px; overflow-y: auto; display: grid; gap: 14px; align-content: start; }
.sheet-foot { display: flex; align-items: center; justify-content: flex-end; gap: 10px; padding: 14px 20px; border-top: 1px solid var(--border); }
.layer-panel .sheet-foot { justify-content: space-between; }
.sec { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-top: 10px; }
.field { display: grid; gap: 6px; } .field > span { font-size: 14px; font-weight: 600; } .field small, .imgrow small { font-size: 12px; color: var(--muted); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.input-multi { height: auto; padding: 10px 12px; line-height: 1.45; resize: vertical; font: inherit; }
.btn-danger { color: var(--danger); }
.pick { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; } .pick label { display: grid; gap: 2px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 12px; cursor: pointer; } .pick label.on { border-color: var(--accent); background: var(--accent-soft); } .pick input { position: absolute; opacity: 0; } .pick b { font-size: 14px; } .pick label:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.layer-panel .sheet-body { padding: 4px 20px 20px; gap: 0; }
/* Groups in the panel as separate cards (modelled on the settings in upay.me) */
.acc { margin-top: 12px; padding: 0 16px; border: 1px solid var(--border); border-radius: 16px; background: var(--bg); } .acc.open { border-color: color-mix(in srgb, var(--accent) 30%, var(--border)); }
.acc-head { display: flex; align-items: center; gap: 12px; width: 100%; padding: 16px 0; border: 0; background: none; text-align: left; }
.acc-head span { flex: 1; min-width: 0; display: grid; } .acc-head b { font-size: 17px; } .acc-head small { font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acc-head .icon { color: var(--muted); transition: transform .12s; } .acc.open .acc-head .icon { transform: rotate(90deg); }
.acc-body { display: grid; gap: 14px; padding: 2px 0 20px; }
.cover.is-wide { aspect-ratio: 16/7 !important; } .cover.is-none { background: var(--surface-2); color: var(--muted); font-size: 11px; text-align: center; padding: 4px; border: 1px dashed var(--border); }
.share { display: grid; gap: 4px; padding: 8px; border: 1px solid var(--border); border-radius: 12px; font-size: 13px; color: var(--muted); } .share .cover { border-radius: 8px; margin-bottom: 4px; } .share .cover .icon { width: 32px; height: 32px; } .share b { font-size: 15px; color: var(--text); padding: 0 4px; } .share span { padding: 0 4px 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.promo { display: grid; gap: 8px; padding: 12px; border: 1px solid var(--border); border-radius: 12px; } .promo > div { display: flex; gap: 8px; flex-wrap: wrap; }
/* Cover images in the settings: one slot per place, all controls inside the image */
.imgslots { display: grid; gap: 14px; } .imgslot { margin: 0; display: grid; gap: 6px; } .imgslot figcaption { font-size: 12px; font-weight: 600; color: var(--muted); }
.imgslot-pic { position: relative; border-radius: 12px; overflow: hidden; border: 1px solid var(--border); } .imgslot-tile .imgslot-pic { width: 264px; max-width: 100%; }
.imgslot-pic .cover { border-radius: 0; } .imgslot-tile .cover { aspect-ratio: 4/3; } .imgslot-wide .cover { aspect-ratio: 16/9; } .imgslot-pic .cover .icon { width: 40px; height: 40px; }
.imgslot-pic .cover::before, .imgslot-pic .cover::after { display: none !important; }
.imgslot-tools { position: absolute; left: 0; right: 0; bottom: 0; display: flex; gap: 6px; flex-wrap: wrap; padding: 28px 8px 8px; background: linear-gradient(to top, rgba(10,14,18,.62), transparent); }
.imgslot-tools > * { display: inline-flex; align-items: center; height: 28px; padding: 0 10px; border: 0; border-radius: 8px; background: rgba(255,255,255,.94); color: #13202A; font-size: 12.5px; font-weight: 600; cursor: pointer; }
.imgslot-tools > *:hover { background: #fff; } .imgslot-tools > *:focus-visible, .imgslot-tools > *:focus-within { outline: 2px solid #fff; outline-offset: 1px; }
/* Crop dialog */
.crop-frame { width: 100%; border-radius: 12px; background-color: var(--surface-2); background-repeat: no-repeat; background-size: cover; background-position: center; cursor: grab; touch-action: none; user-select: none; box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); }
.crop-frame:active { cursor: grabbing; }
.crop-zoom { display: grid; grid-template-columns: auto 1fr 48px; align-items: center; gap: 12px; font-size: 14px; font-weight: 600; } .crop-zoom input { width: 100%; accent-color: var(--accent); } .crop-zoom .muted { font-weight: 500; text-align: right; }
.sheet-foot .grow { flex: 1; }
/* Color picker */
.cpick { display: grid; gap: 10px; } .cpick-row { display: flex; align-items: center; gap: 8px; } .cpick-row .input { flex: 1; min-width: 0; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.cpick-swatch { width: 40px; height: 40px; flex: none; border-radius: 10px; border: 1px solid var(--border); cursor: pointer; box-shadow: inset 0 0 0 2px var(--surface); } .cpick.on .cpick-swatch { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--text); }
.cpick-pop { display: grid; gap: 10px; padding: 10px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); }
.cpick-area { position: relative; height: 150px; border-radius: 10px; cursor: crosshair; touch-action: none; background-image: linear-gradient(to top, #000, transparent), linear-gradient(to right, #fff, transparent); }
.cpick-area i { position: absolute; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.35); pointer-events: none; }
.cpick-hue { -webkit-appearance: none; appearance: none; width: 100%; height: 14px; border-radius: 7px; background: linear-gradient(to right, #f00, #ff0, #0f0, #0ff, #00f, #f0f, #f00); cursor: pointer; }
.cpick-hue::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 1px solid rgba(0,0,0,.3); box-shadow: 0 1px 3px rgba(0,0,0,.3); }
.cpick-hue::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 1px solid rgba(0,0,0,.3); }
.imgrow { display: flex; gap: 14px; } .imgrow .cover { width: 132px; aspect-ratio: 16/9; border-radius: 10px; flex: none; align-self: flex-start; } .imgrow .cover .icon { width: 26px; height: 26px; }
.imgrow > div:not(.cover) { display: flex; flex-wrap: wrap; gap: 6px; align-content: start; } .imgrow small { flex-basis: 100%; }
.colors { display: flex; gap: 10px; }
.dot { position: relative; width: 30px; height: 30px; border-radius: 50%; cursor: pointer; } .dot input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.dot:has(input:checked) { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--text); }
.sw { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; } .sw input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--accent); flex: none; }
.sw b { display: block; font-size: 14px; } .sw small { display: block; font-size: 13px; color: var(--muted); }
.risk { font-size: 13px; line-height: 1.45; padding: 10px 12px; border-radius: 10px; background: var(--surface-2); color: var(--muted); }
.risk.warn { background: var(--warm-soft); color: var(--warm-text); } .risk ul { list-style: disc; padding-left: 18px; margin-top: 6px; }
.choices { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.choice { display: grid; gap: 4px; justify-items: start; text-align: left; padding: 14px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); }
.choice:hover { border-color: var(--accent); background: var(--accent-soft); } .choice small { color: var(--muted); font-size: 13px; }
.plus { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; background: var(--accent-soft); color: var(--accent); }

/* Toasts */
.toasts { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 90; display: grid; gap: 8px; width: max-content; max-width: calc(100vw - 32px); }
.toast { display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 16px; border-radius: 12px; background: #16222B; color: #fff; box-shadow: var(--shadow-lg); font-size: 14px; }
.toast-warn { background: #5A2A12; }
.toast button:not(.ib) { border: 0; border-radius: 8px; padding: 6px 10px; background: rgba(255,255,255,.16); color: #fff; font-weight: 600; font-size: 13px; }
.toast .ib { color: rgba(255,255,255,.7); width: 28px; height: 28px; }

.cover { aspect-ratio: 16/9; display: grid; place-items: center; border-radius: 12px; color: #fff; background-size: cover; background-position: center; }
.cover .icon { width: 56px; height: 56px; stroke-width: 1.5; }
.av { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; flex: none; overflow: hidden; background: var(--accent); color: var(--on-accent); font-weight: 700; }
.av img { width: 100%; height: 100%; object-fit: cover; }
.empty { display: grid; justify-items: center; gap: 10px; text-align: center; padding: 56px 24px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.empty > .icon { width: 32px; height: 32px; color: var(--muted); }
.wrap.empty { margin-top: 48px; }
.back { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 500; color: var(--muted); margin: 20px 0; }
.back:hover { color: var(--text); }

/* Product bar */
.pbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 8px; margin: 16px 0; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); position: relative; z-index: 5; }
/* The bar stays below the page head while the page scrolls under it. On the course page it has a wrapper of its own, so the wrapper is what sticks. */
/* Not on a phone: there the bar wraps to several lines and would cover a quarter of the screen. */
@media (min-width: 761px) {
  .pbar, .pbar-pin { position: sticky; top: 72px; z-index: 35; }
  /* Closes the gap to the page head, so nothing peeks through above the bar. */
  .pbar::before { content: ''; position: absolute; left: -1px; right: -1px; bottom: calc(100% + 1px); height: 8px; background: var(--bg); }
}
@media (min-width: 861px) { body.editing .buy { top: calc(72px + var(--pbar-h, 50px) + 16px); } }
.tabs { display: inline-flex; padding: 3px; gap: 2px; border-radius: 11px; background: var(--surface-2); }
.tabs a, .tabs button { display: inline-flex; align-items: center; height: 32px; padding: 0 12px; border: 0; background: none; border-radius: 8px; font-size: 14px; font-weight: 600; color: var(--muted); }
.tabs a:hover, .tabs button:hover { color: var(--text); } .tabs a[aria-current="page"], .tabs button[aria-pressed="true"] { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }
.navpick button { height: 28px; padding: 0 10px; font-size: 13px; }
.pbar-facts { padding: 6px 8px; border: 0; border-radius: 8px; background: none; font-size: 15px; } .pbar-facts:hover { background: var(--surface-2); }
.pbar-end { margin-left: auto; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pbar-open { font-size: 13px; font-weight: 600; color: var(--warm-text); }
.set-btn .icon { width: 16px; height: 16px; }

/* =========================== PAGES =========================== */
/* 1 · Overview */
.page-head { padding: 36px 0 24px; display: grid; gap: 4px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
/* Tile page: the tile as visitors and as buyers see it, at the width it has in the overview */
.tile-head { display: grid; gap: 4px; padding: 0 0 20px; }
.tile-views { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 340px)); gap: 28px; align-items: start; }
.tile-views figure { margin: 0; display: grid; gap: 10px; } .tile-views figcaption { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.tile-views { margin-bottom: 56px; }
.card { position: relative; display: flex; flex-direction: column; padding: 12px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
a.card:hover, .card:has(.card-cover a:hover) { box-shadow: var(--shadow); }
.card.drop-before { box-shadow: -3px 0 0 var(--accent); } .card.drop-after { box-shadow: 3px 0 0 var(--accent); }
.card.is-draft .cover { filter: saturate(.55); }
.card-cover { position: relative; }
.card-grip { left: 10px; top: 10px; transform: none; width: 32px; height: 32px; border-radius: 9px; background: rgba(255,255,255,.94); color: #26323B; box-shadow: 0 1px 3px rgba(0,0,0,.2); opacity: 1; }
.card-grip:hover, .card-grip:focus-visible { background: #fff; color: #13202A; }
.card-acts { display: flex; gap: 8px; padding-top: 12px; margin-top: 12px; border-top: 1px solid var(--border); } .card-acts > * { flex: 1; } .card-acts .menu > .btn { width: 100%; } .card-acts .icon { width: 16px; height: 16px; }
.card-body { display: flex; flex-direction: column; gap: 6px; padding: 14px 6px 6px; flex: 1; }
.card .cover { aspect-ratio: 4/3; }
.cover { position: relative; overflow: hidden; } .cover-label { display: none; position: absolute; left: 14px; bottom: 12px; font-weight: 700; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; color: #fff; text-shadow: 0 1px 8px rgba(0,0,0,.35); }
.card .cover-label { display: block; }
.continue { display: flex; align-items: center; gap: 18px; padding: 16px; margin-bottom: 24px; border-radius: var(--radius); background: linear-gradient(120deg, var(--accent-soft), var(--surface) 80%); border: 1px solid var(--border); }
.continue .cover { width: 120px; aspect-ratio: 4/3; flex: none; } .continue .cover .icon { width: 36px; height: 36px; }
.continue .txt { flex: 1; min-width: 0; display: grid; gap: 2px; } .continue small { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--warm-text); } .continue b { font-size: 18px; } .continue .muted { font-size: 14px; }
@media (max-width: 600px) { .continue { flex-direction: column; align-items: stretch; } .continue .cover { width: 100%; aspect-ratio: 16/6; } }
.card-body h3 { font-size: 18px; }
.card-foot { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: auto; padding-top: 12px; }
.card-foot .btn { margin-left: auto; }
.bar { flex: 1; height: 6px; border-radius: 99px; background: var(--surface-2); overflow: hidden; } .bar span { display: block; height: 100%; background: var(--warm); border-radius: 99px; }
.card-new { align-items: center; justify-content: center; gap: 8px; min-height: 260px; border: 1.5px dashed var(--border); background: none; box-shadow: none; }
.card-new:hover:not(:disabled) { border-color: var(--accent); background: var(--accent-soft); }

/* 2 · Sales page */
/* --sale-cover is the shape of the image (width / height); --sale-side the width of the buy box. The buy box is at
   least as tall as the image next to it, so both end on one line: its height is worked out from the width of the
   page (container query unit cqw), because the image's height follows from its width. */
.sale { --sale-cover: 16 / 9; --sale-side: 340px; --sale-gap: 32px; container-type: inline-size; display: grid; grid-template-columns: minmax(0, 1fr) var(--sale-side); gap: var(--sale-gap); align-items: start; }
.sale-main { display: grid; gap: 16px; }
.sale-main h2 { margin-top: 16px; }
.pill { justify-self: start; font-size: 13px; padding: 4px 12px; border-radius: 99px; background: var(--surface-2); color: var(--muted); }
.lead { font-size: 18px; color: var(--muted); }
.benefits { display: grid; gap: 8px; } .benefits li { gap: 10px; } .benefits li > .icon { color: var(--ok); } .benefits .tx { flex: 1; }
.toc { display: grid; gap: 12px; }
.toc section { border: 1px solid var(--border); border-radius: 14px; background: var(--surface); padding: 6px 16px; }
.toc h3 { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 10px 0; font-size: 15px; }
.toc li { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid var(--border); font-size: 15px; } .toc li span:nth-child(2) { flex: 1; } .toc li .icon { color: var(--muted); width: 16px; height: 16px; } .toc a { color: var(--accent); font-size: 14px; font-weight: 600; }
.buy { position: sticky; top: 88px; display: grid; gap: 12px; padding: 22px; border-radius: 20px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); }
@media (min-width: 861px) {
  .buy { display: flex; flex-direction: column; min-height: calc((100cqw - var(--sale-side) - var(--sale-gap)) / (var(--sale-cover))); }
  .buy .trust { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--border); }
}
.price { font-size: 32px; font-weight: 800; letter-spacing: -.02em; } .price small { font-size: 13px; font-weight: 500; color: var(--muted); }
.trust { display: grid; gap: 8px; font-size: 14px; color: var(--muted); } .trust li { display: flex; gap: 8px; align-items: center; } .trust .icon { width: 16px; height: 16px; color: var(--ok); }

/* 3 · Course page */
/* Large color areas are shaded in dark mode (--shade-*, transparent in light mode): the course keeps its
   color as a tone, but the area no longer glares next to the dark page. */
.hero { color: #fff; background: linear-gradient(to bottom, var(--shade-top, transparent), var(--shade-bottom, transparent)), var(--g); padding-bottom: 96px; }
.hero .back { color: rgba(255,255,255,.9); } .hero .back:hover { color: #fff; }
.kicker { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; opacity: .92; margin: 16px 0 0; } .kicker .icon { width: 16px; height: 16px; }
.hero h1 { display: inline-block; max-width: 100%; font-size: clamp(32px, 5vw, 52px); letter-spacing: -.03em; margin: 10px 0 8px; text-shadow: 0 2px 24px rgba(0,0,0,.15); }
.hero p { font-size: 17px; opacity: .92; }
.course-body { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; margin-top: -64px; align-items: start; }
.course-main { min-width: 0; } .course-main > h2 { margin: 8px 0 14px; }
.resume { display: flex; align-items: center; gap: 20px; padding: 22px; margin-bottom: 28px; border-radius: 20px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-lg); }
.ring { width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; flex: none; background: radial-gradient(closest-side, var(--surface) 82%, transparent 83%), conic-gradient(var(--accent) calc(var(--p) * 1%), var(--surface-2) 0); }
.ring b { font-size: 20px; font-weight: 800; } .ring small { font-size: 12px; margin-left: 1px; }
.resume-txt { flex: 1; min-width: 0; display: grid; gap: 3px; } .resume-txt small { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); } .resume-txt b { font-size: 19px; letter-spacing: -.01em; } .resume-txt .muted { font-size: 14px; }
.resume > .btn { height: 52px; padding: 0 22px; font-size: 16px; border-radius: 14px; }
.outline { display: grid; gap: 16px; padding: 14px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.mod { border-radius: 10px; min-width: 0; }
.mrow { padding: 12px 14px 12px 30px; border-radius: 10px; background: var(--surface-2); }
.mno { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); flex: none; }
.mtitle { font-weight: 700; } .count { margin-left: auto; font-size: 14px; color: var(--muted); white-space: nowrap; }
.lrow { padding: 11px 14px 11px 30px; border-radius: 10px; }
.lrow:hover, .lrow:focus-within { background: color-mix(in srgb, var(--surface-2) 60%, transparent); }
.state { position: absolute; left: 6px; width: 18px; height: 18px; display: grid; place-items: center; border-radius: 50%; border: 1.5px solid var(--border); color: var(--muted); }
.state .icon { width: 11px; height: 11px; } .lrow.done .state { background: var(--ok); border-color: var(--ok); color: #fff; }
.state:has(.icon) { border-color: transparent; } .lrow.done .state:has(.icon) { border-color: var(--ok); }
.no { width: 30px; flex: none; font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }
.ltitle { min-width: 40px; } a.ltitle:hover { color: var(--accent); }
/* The whole row is the link, not only the words of the title: the title's link is stretched over the row. Only in
   view mode, where the title is a link; in edit mode the row holds fields and buttons. The same for the card
   "continue here": the whole card leads where its button leads. */
a.ltitle::after, .resume > a.btn::after { content: ''; position: absolute; inset: 0; border-radius: inherit; }
.lrow:has(a.ltitle) { cursor: pointer; } .lrow:has(a.ltitle):hover .ltitle { color: var(--accent); }
.resume { position: relative; cursor: pointer; } .resume > a.btn::after { border-radius: 20px; }
.meta { margin-left: auto; display: flex; align-items: center; gap: 6px; flex: none; font-size: 14px; color: var(--muted); white-space: nowrap; } .meta .icon { width: 16px; height: 16px; }
.addrow { padding-left: 52px; }
.course-side { display: grid; gap: 16px; min-width: 0; }
.sidecard { min-width: 0; padding: 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); display: grid; gap: 10px; box-shadow: var(--shadow); }
.sidecard h3 { font-size: 15px; }
.mat { gap: 10px; padding: 8px 6px 8px 8px; border: 1px solid var(--border); border-radius: 12px; min-width: 0; }
body.editing .mat { padding-left: 26px; }
.fico { width: 36px; height: 44px; display: grid; place-items: center; border-radius: 7px; flex: none; background: color-mix(in srgb, var(--danger) 12%, transparent); color: var(--danger); font-size: 10px; font-weight: 800; }
.cert .fico { background: var(--accent-soft); color: var(--accent); }
.fmeta { flex: 1; min-width: 0; display: grid; } .fmeta b { font-size: 14px; line-height: 1.3; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; } .fmeta small { font-size: 12px; color: var(--muted); }
.teacher { display: flex; gap: 12px; align-items: flex-start; } .teacher > div { flex: 1; min-width: 0; display: grid; gap: 4px; font-size: 14px; }

body.editing .hero { padding-bottom: 36px; } body.editing .course-body { margin-top: 28px; }

/* 4 · Lesson */
.lbar { position: sticky; top: 64px; z-index: 30; }
.lbar .back { min-width: 0; flex: 0 1 auto; } .lbar .back span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 220px; }
.lbar-pr { font-size: 14px; font-weight: 600; color: var(--muted); }
.ltoggle .icon { width: 16px; height: 16px; } .ltoggle.on { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }
.lpill-wrap { position: relative; margin: 0 auto; min-width: 0; }
.lpill { display: flex; align-items: center; gap: 12px; height: 42px; padding: 0 14px 0 18px; max-width: 100%; border-radius: 99px; border: 1px solid var(--border); background: var(--surface); box-shadow: var(--shadow); font-size: 14px; font-weight: 600; }
.lpill:hover, .lpill[aria-expanded="true"] { border-color: var(--accent); } .lpill .icon { width: 16px; height: 16px; color: var(--muted); } .lpill-t { white-space: nowrap; }
.segs { display: inline-flex; gap: 6px; align-items: center; } .segs > span { display: inline-flex; gap: 2px; }
.segs i { width: 14px; height: 6px; border-radius: 3px; background: var(--border); flex: none; transition: background .3s, width .3s; }
.segs i.done { background: var(--ok); } .segs i.cur, .segs i.done.cur { width: 30px; background: var(--warm); }
.segs-many { gap: 4px; } .segs-many i { width: 6px; } .segs-many i.cur, .segs-many i.done.cur { width: 20px; }
.lpop { position: absolute; left: 50%; top: calc(100% + 8px); transform: translateX(-50%); z-index: 50; width: min(440px, calc(100vw - 32px)); max-height: min(70vh, 560px); overflow-y: auto; padding: 8px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-lg); }
.ol { display: grid; gap: 10px; } .ol section { display: grid; gap: 1px; }
.ol-h { display: flex; justify-content: space-between; gap: 12px; padding: 8px 10px 4px; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); } .ol-h .ok { color: var(--ok); }
.ol-row { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 9px; font-size: 14px; line-height: 1.35; }
.ol-row:hover { background: var(--surface-2); } .ol-row.cur { background: var(--accent-soft); font-weight: 600; }
.ol-row .st { width: 18px; height: 18px; flex: none; display: grid; place-items: center; border-radius: 50%; border: 1.5px solid var(--border); color: var(--muted); } .ol-row .st .icon { width: 11px; height: 11px; }
.ol-row.st-done .st { background: var(--ok); border-color: var(--ok); color: #fff; } .ol-row.st-locked .st { border-color: transparent; } .ol-row.cur .st { border-color: var(--accent); }
.ol-row.st-locked .ol-t, .ol-row.st-draft .ol-t { color: var(--muted); }
.ol-t { flex: 1; min-width: 0; overflow-wrap: anywhere; } .ol-no { color: var(--muted); font-weight: 400; margin-right: 8px; font-variant-numeric: tabular-nums; } .ol-meta { flex: none; font-size: 12px; color: var(--muted); font-weight: 400; }
.ol-home { display: flex; align-items: center; gap: 6px; margin-top: 8px; padding: 10px; border-top: 1px solid var(--border); font-size: 14px; font-weight: 600; color: var(--muted); } .ol-home:hover { color: var(--text); } .ol-home .icon { width: 16px; height: 16px; }
.sg-wrap { display: flex; gap: 14px; justify-content: safe center; align-items: center; margin: 0 auto; min-width: 0; overflow-x: auto; scrollbar-width: none; padding: 2px; } .sg-wrap::-webkit-scrollbar { display: none; }
.sg-mini { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 10px; border-radius: 10px; background: var(--surface-2); color: var(--muted); flex: none; border: 1.5px solid transparent; }
.sg-mini:hover { border-color: var(--border); color: var(--text); } .sg-mini b { font-size: 12px; } .sg-mini.ok { background: var(--ok-soft); color: var(--ok); }
.sg-mini .segs i, .sg-mini .segs i.done { width: 14px; }
.sg { display: flex; gap: 4px; flex: none; }
.si { position: relative; height: 36px; min-width: 40px; padding: 0 10px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; background: var(--surface-2); color: var(--muted); border: 1.5px solid transparent; transition: background .15s, border-color .15s; }
.si:hover { border-color: var(--border); color: var(--text); } .si > .icon { width: 18px; height: 18px; }
.si.st-done { background: var(--ok-soft); color: var(--ok); } .si.st-locked { opacity: .55; }
.si.cur { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.si-ok { position: absolute; top: -5px; right: -5px; width: 16px; height: 16px; border-radius: 50%; background: var(--ok); color: #fff; display: grid; place-items: center; box-shadow: 0 0 0 2px var(--surface); } .si-ok .icon { width: 10px; height: 10px; stroke-width: 3.5; }
.lbody { display: flex; align-items: flex-start; } .side-right .lbody { flex-direction: row-reverse; } .side-right .lpanel { border-right: 0; border-left: 1px solid var(--border); } .side-right .lpanel-in { padding: 16px 16px 16px 12px; }
.side-right .ltoggle { order: 9; } .side-right .ltoggle .icon { transform: scaleX(-1); }
.lbody > article { flex: 1; min-width: 0; }
/* Outline at the side: the column spans the full height of the lesson, its content sticks below the bar.
   It only scrolls along once the lesson has ended and it no longer fits into the window itself. */
.lpanel { flex: none; align-self: stretch; width: clamp(300px, 26vw, 340px); border-right: 1px solid var(--border); background: var(--surface); }
.lpanel-in { display: grid; gap: 10px; align-content: start; padding: 16px 12px 16px 16px; }
.lpanel-head { display: flex; align-items: flex-start; gap: 8px; padding: 0 4px 0 10px; } .lpanel-head > span:first-child { flex: 1; min-width: 0; display: grid; } .lpanel-head small { font-size: 13px; color: var(--muted); } .lpanel-in > .bar { flex: none; margin: 0 10px; }
/* From 900 pixels the outline is fixed at the window edge below the bar and does not move at all while scrolling.
   If it is longer than the window, one scrolls inside it. The .lpanel column only reserves the space. */
@media (min-width: 900px) {
  .lbody { min-height: calc(100vh - 129px); }
  .lpanel-in { position: fixed; top: 129px; bottom: 0; left: 0; width: clamp(300px, 26vw, 340px); overflow-y: auto; overscroll-behavior: contain; background: var(--surface); border-right: 1px solid var(--border); z-index: 5; }
  .side-right .lpanel-in { left: auto; right: 0; border-right: 0; border-left: 1px solid var(--border); }
  .lpanel, .side-right .lpanel { border: 0; background: none; }
  body:has(.lesson.panel-open.side-left) .foot { padding-left: clamp(300px, 26vw, 340px); } body:has(.lesson.panel-open.side-right) .foot { padding-right: clamp(300px, 26vw, 340px); }
}
@media (max-width: 899px) { .lbody { display: block; } .lpanel { width: auto; border-right: 0; border-bottom: 1px solid var(--border); } .lpanel-in { position: static; max-height: 60vh; } .hide-md { display: none; } .lpill .segs i { width: 9px; } .lpill .segs i.cur { width: 20px; } .lpill .segs-many { display: none; } }
/* Edit mode on a phone: the tools of the lesson bar wrap instead of pushing the page wider than the screen. */
@media (max-width: 600px) { body.editing .lbar-tools { flex-wrap: wrap; min-width: 0; flex: 1 1 100%; margin-left: 0; } }
@media (max-width: 600px) { .lnav { grid-template-columns: 1fr; } .navcard.next { order: -1; } .hide-sm { display: none; } .lbar .wrap { flex-wrap: wrap; row-gap: 6px; padding-top: 7px; padding-bottom: 7px; } .sg-wrap, .lpill-wrap { order: 10; flex-basis: 100%; } .lpill { width: 100%; justify-content: space-between; } .sg-wrap { justify-content: flex-start; gap: 8px; } .sg-mini .segs { display: none; } }
.lbar { border-bottom: 1px solid var(--border); background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.lbar .wrap { display: flex; align-items: center; gap: 12px; min-height: 64px; max-width: none; padding: 10px 16px; } .lbar .back { margin: 0; } .lbar-tools { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.lesson article { padding-top: 36px; display: grid; gap: 14px; } .lesson .kicker { margin: 0; color: var(--accent); text-transform: uppercase; font-size: 12px; letter-spacing: .06em; }
.lmeta { display: flex; align-items: center; gap: 6px; font-size: 14px; color: var(--muted); } .lmeta .icon { width: 16px; height: 16px; }
.note { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 12px; background: var(--warm-soft); color: var(--warm-text); font-size: 14px; }
.blocks { display: grid; gap: 6px; margin-top: 8px; }
.blk { padding: 6px 0; font-size: 17px; line-height: 1.7; } .row.blk { padding: 6px 0 6px 30px; margin: 0 0 0 -30px; align-items: flex-start; border-radius: 10px; } .row.blk:hover { background: color-mix(in srgb, var(--surface-2) 50%, transparent); }
.row.blk > :not(.grip):not(.tools) { flex: 1; min-width: 0; } .blk .grip { top: 20px; }
.blk h3 { font-size: 19px; margin: 22px 0 4px; }
/* Edit mode: a lesson looks as participants see it. Only the block that was clicked is open: a framed card with a
   head line (grip, kind, remove) and the block's fields. The frame grows outwards, so the content stays where it
   is from left to right; a block the mouse is over shows a faint outline as the hint that it can be opened. */
.row.blk { padding: 6px 0; margin: 0; border-radius: 14px; cursor: pointer; }
.row.blk:hover { background: none; } .row.blk:not(.is-open):hover { outline: 1px solid color-mix(in srgb, var(--accent) 40%, var(--border)); outline-offset: 9px; }
.row.blk > .grip, .row.blk > .blk-kind, .row.blk > .tools { display: none; }
.row.blk.is-open { cursor: auto; z-index: 1; margin: 6px -15px 12px; padding: 44px 14px 14px; border: 1px solid var(--accent); background: var(--surface); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 14%, transparent); }
.row.blk.is-open::before { content: ''; position: absolute; left: 0; right: 0; top: 33px; border-top: 1px solid var(--border); }
.row.blk.is-open > .grip { display: grid; left: 6px; top: 2px; transform: none; }
.row.blk.is-open > .blk-kind { position: absolute; left: 32px; top: 0; height: 33px; display: flex; align-items: center; gap: 6px; flex: none; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.blk-kind .icon { width: 14px; height: 14px; }
.row.blk.is-open > .tools { display: flex; position: absolute; right: 4px; top: 1px; } .row.blk > .tools .ib { color: var(--muted); } .row.blk > .tools .ib:hover { color: var(--danger); }
.row.blk.is-open h3 { margin-top: 0; }
/* Grid children are by default at least as wide as their content (a field, a long word); let them shrink, so a block never pushes the page wider than the screen. */
.blocks, .blocks > .blk, .video-wrap > *, .video-stage > *, .video-fields > * { min-width: 0; }
.callout { display: flex; gap: 12px; padding: 14px 16px; border-radius: 12px; background: var(--accent-soft); font-size: 16px; } .callout .icon { color: var(--accent); margin-top: 3px; } .callout > :last-child { flex: 1; }
.file { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); font-size: 15px; }
.video { aspect-ratio: 16/9; display: grid; place-items: center; align-content: center; gap: 10px; border-radius: 16px; background: linear-gradient(var(--shade-tile, transparent), var(--shade-tile, transparent)), var(--g); color: #fff; font-size: 15px; text-align: center; } .video > .icon { width: 56px; height: 56px; stroke-width: 1.3; } .video small { opacity: .85; }
.cards3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; } .mini { display: grid; gap: 6px; align-content: start; padding: 14px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); font-size: 15px; } .mini .n { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 7px; background: var(--accent-soft); color: var(--accent); font-size: 13px; font-weight: 700; }
.box { position: relative; display: grid; gap: 10px; padding: 18px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); }
.chk { display: flex; align-items: center; gap: 12px; } .chk input { width: 18px; height: 18px; accent-color: var(--accent); } .cb { width: 18px; height: 18px; border: 1.5px solid var(--border); border-radius: 5px; flex: none; } .chk .tx { flex: 1; }
button.opt { text-align: left; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); } button.opt:hover:not(:disabled) { border-color: var(--accent); } button.opt:disabled { opacity: 1; }
.opt.right { border-color: var(--ok); background: color-mix(in srgb, var(--ok) 12%, transparent); } .opt.wrong { border-color: var(--danger); }
.row.opt .tx { flex: 1; } .row.opt input { accent-color: var(--ok); width: 18px; height: 18px; }
.explain { font-size: 15px; } .quiz-x { position: absolute; right: 8px; top: 8px; }
.lockbox { margin-top: 12px; }
.lesson article h1 { letter-spacing: -.025em; line-height: 1.2; }
/* Content parts in view mode, values from the prototype (styles.css, nav.css) */
.checklist { display: grid; gap: 8px; margin: 8px 0; }
.check { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); cursor: pointer; font-size: 16px; transition: border-color .15s, background .15s; }
.check input { width: 20px; height: 20px; accent-color: var(--accent); margin: 2px 0 0; flex: none; }
.check.on { border-color: color-mix(in srgb, var(--ok) 50%, transparent); background: var(--ok-soft); } .check.on span { text-decoration: line-through; color: var(--muted); }
.notes-field { display: grid; gap: 6px; margin-top: 8px; } .notes-field label { font-size: 14px; font-weight: 600; } .notes-field small { font-weight: 400; color: var(--muted); }
.quiz-q { margin: 12px 0; } .quiz-q h3 { font-size: 17px; margin-bottom: 10px; }
.quiz-q button.opt { width: 100%; display: flex; gap: 12px; align-items: center; padding: 13px 14px; margin-top: 8px; font-size: 16px; }
.opt .key { width: 26px; height: 26px; border-radius: 8px; background: var(--surface-2); display: grid; place-items: center; font-size: 13px; font-weight: 700; flex: none; }
.opt.right .key { background: var(--ok); color: #fff; } .opt.wrong .key { background: var(--danger); color: #fff; } .opt.wrong { background: color-mix(in srgb, var(--danger) 8%, transparent); }
.quiz-q .explain { margin-top: 10px; color: var(--muted); }
.score { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: var(--radius); background: var(--accent-soft); } .score b { font-size: 24px; font-weight: 800; color: var(--accent); } .score .btn { margin-left: auto; }
.finish-hero { text-align: center; padding: 32px 16px; border-radius: var(--radius); background: linear-gradient(140deg, var(--accent-soft), var(--surface)); border: 1px solid var(--border); } .finish-hero > .icon { width: 64px; height: 64px; margin: 0 auto 12px; display: block; color: var(--accent); stroke-width: 1.4; } .finish-hero p { margin-top: 6px; }
.done-note { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 26px 0 -24px; font-size: 14px; color: var(--ok); font-weight: 600; } .done-note > .icon { width: 16px; height: 16px; stroke-width: 3; } .done-note .link { color: var(--muted); font-weight: 500; }
.lnav { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 40px; align-items: stretch; }
.navcard { display: grid; gap: 4px; padding: 16px 18px; border-radius: 16px; border: 1px solid var(--border); background: var(--surface); text-align: left; } .navcard small { display: flex; align-items: center; gap: 4px; font-size: 13px; color: var(--muted); } .navcard small .icon { width: 14px; height: 14px; }
.navcard.next { text-align: right; } .navcard.next small { justify-content: flex-end; }
.navcard.go { background: var(--accent); border-color: var(--accent); color: var(--on-accent); box-shadow: 0 8px 24px color-mix(in srgb, var(--accent) 30%, transparent); } .navcard.go small { color: inherit; opacity: .92; font-weight: 600; } .navcard.go b { font-size: 17px; }
.navcard.prev { align-content: center; } .navcard.next { justify-items: end; } .navcard.end { border-color: color-mix(in srgb, var(--accent) 35%, var(--border)); background: var(--accent-soft); } .navcard.end b { color: var(--accent); } .navcard:hover { border-color: var(--accent); }

@media (max-width: 860px) {
  .sale, .course-body { grid-template-columns: 1fr; } .buy { position: static; }
  .seg button span { display: none; } .save { display: none; }
  .cards3 { grid-template-columns: 1fr; } .lrow { flex-wrap: wrap; row-gap: 6px; } .ltitle { flex: 1 1 60%; } .meta { margin-left: 42px; } .lrow .tools { margin-left: auto; } .pbar-end { margin-left: 0; }
  .two, .choices { grid-template-columns: 1fr; } .layer-panel .sheet { max-width: 100%; }
}

.sale-main > .cover { aspect-ratio: var(--sale-cover); border-radius: var(--radius); } .sale-main > .cover .cover-label { display: block; left: 18px; bottom: 16px; }
/* Cover without an image of its own and header of the course page: dot grid and circle as in the prototype */
.cover:not(.has-img):not(.is-none) { position: relative; overflow: hidden; isolation: isolate; background: linear-gradient(var(--shade-tile, transparent), var(--shade-tile, transparent)), var(--g); }
.cover:not(.has-img):not(.is-none)::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .35; background-image: radial-gradient(circle at 20% 20%, rgba(255,255,255,.7) 0 2px, transparent 3px); background-size: 22px 22px; }
.cover:not(.has-img):not(.is-none)::after { content: ""; position: absolute; width: 70%; aspect-ratio: 1; border-radius: 50%; right: -18%; bottom: -30%; background: rgba(255,255,255,.18); z-index: -1; }
.hero { position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.22) 1.5px, transparent 1.6px); background-size: 22px 22px; opacity: calc(.6 * var(--deco, 1)); }
.hero::after { content: ""; position: absolute; width: 520px; height: 520px; right: -120px; bottom: -300px; border-radius: 50%; background: rgba(255,255,255,.14); opacity: var(--deco, 1); }
.hero > .wrap { position: relative; z-index: 1; }
.card .cover .icon, .sale-main > .cover .icon { width: 30%; height: auto; max-width: 96px; stroke-width: 1.4; filter: drop-shadow(0 8px 16px rgba(0,0,0,.18)); }
.imgrow .cover::before, .imgrow .cover::after, .continue .cover::before, .continue .cover::after, .share .cover::before, .share .cover::after { display: none; }
.chip-ok { display: inline-flex; align-items: center; gap: 6px; justify-self: start; background: color-mix(in srgb, var(--ok) 14%, transparent); color: var(--ok); } .chip-ok .icon { width: 13px; height: 13px; }
details.faq { border-top: 1px solid var(--border); padding: 14px 0; } details.faq:last-child { border-bottom: 1px solid var(--border); }
details.faq summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; } details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; color: var(--muted); font-weight: 400; font-size: 20px; line-height: 1; } details.faq[open] summary::after { content: "–"; } details.faq p { color: var(--muted); margin-top: 8px; }
/* Course page in view mode: module as a plain row, next lesson highlighted */
body:not(.editing) .mrow { background: none; padding: 6px 14px 2px 8px; } body:not(.editing) .mrow .mtitle { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); } body:not(.editing) .mrow .mno::after { content: " ·"; }
body:not(.editing) .mrow { gap: 5px; } body:not(.editing) .count { font-size: 12px; font-weight: 700; }
.lrow.upnext { box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--accent) 45%, var(--border)); background: var(--surface); } .lrow.upnext .state { border-color: var(--accent); }
body:not(.editing) .mat .ib { width: 36px; height: 36px; border: 1px solid var(--border); border-radius: 10px; color: var(--text); }
.benefits li > span { flex: 1; }

/* Settings of the space */
.set-title { display: grid; gap: 4px; padding: 0 0 20px; }
.set-card { gap: 0; padding: 24px; margin-bottom: 56px; } .set-head { display: flex; gap: 20px; align-items: flex-start; justify-content: space-between; }
.set-head h2 { font-size: 20px; margin-bottom: 4px; } .set-head .btn { flex: none; } .set-empty { padding: 18px 0 2px; }
.set-acts { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; } .set-acts .grow { flex: 1; }
.set-add { display: grid; gap: 14px; margin-top: 16px; padding: 20px; border: 1.5px dashed color-mix(in srgb, var(--accent) 55%, var(--border)); border-radius: 16px; }
.set-add h3 { display: flex; align-items: center; gap: 10px; font-size: 17px; } .set-add h3 i { font-style: normal; font-weight: 700; color: var(--accent); }
.set-step2 { padding-top: 16px; border-top: 1px dashed var(--border); } .set-add select.input { appearance: auto; }
.note-line { display: flex; align-items: flex-start; gap: 8px; font-size: 14px; font-weight: 500; } .note-line .icon { width: 18px; height: 18px; flex: none; margin-top: 1px; }
.note-line.is-ok { color: var(--ok); } .note-line.is-bad { color: var(--danger); }
.facts { display: grid; gap: 8px; margin: 0; } .facts div { display: grid; gap: 1px; } .facts dt { font-size: 12px; font-weight: 600; color: var(--muted); } .facts dd { margin: 0; font-size: 14px; overflow-wrap: anywhere; }
.btn-remove { background: var(--danger); color: #fff; border-color: transparent; } .linklike { border: 0; background: none; padding: 0; color: inherit; text-decoration: underline; cursor: pointer; }
.menu-pop > .um-set { display: flex; align-items: center; gap: 8px; } .um-set .icon { width: 16px; height: 16px; }
@media (max-width: 600px) { .set-head { flex-direction: column; } .set-card { padding: 16px; } }

/* Video by link: embedded player, and the link field in edit mode */
.video-wrap { display: grid; gap: 10px; } .video-frame { position: relative; aspect-ratio: 16/9; border-radius: 16px; overflow: hidden; background: #000; }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-link { display: grid; gap: 6px; } .video-link > span { font-size: 13px; font-weight: 600; color: var(--muted); } .warn-text { font-size: 12px; color: var(--warm-text); }
/* Speaker of an interview (imported from the Summit-Suite) */
.speaker { display: flex; align-items: center; gap: 14px; margin: 14px 0 22px; } .speaker img, .speaker-ph { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; flex: none; background: var(--surface-2); }
.speaker-ph { display: grid; place-items: center; color: var(--muted); } .speaker span { display: grid; gap: 2px; min-width: 0; } .speaker small { font-size: 14px; color: var(--muted); }
.set-product { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 12px 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); }
.set-product > span { flex: 1 1 220px; display: grid; gap: 2px; min-width: 0; } .set-product small { font-size: 13px; color: var(--muted); }

/* Markdown in text blocks */
.md { display: grid; gap: 12px; } .md p, .md ul, .md ol, .md blockquote, .md h3, .md h4, .md h5 { margin: 0; }
.md h3 { font-size: 19px; margin-top: 10px; } .md h4 { font-size: 17px; margin-top: 8px; } .md h5 { font-size: 15px; margin-top: 6px; }
.md ul, .md ol { padding-left: 22px; display: grid; gap: 4px; } .md ul { list-style: disc; } .md ol { list-style: decimal; }
.md blockquote { padding-left: 14px; border-left: 3px solid var(--border); color: var(--muted); }
.md code { padding: 1px 5px; border-radius: 5px; background: var(--surface-2); font-size: .92em; } .md a { color: var(--accent); text-decoration: underline; }

/* Video with chapters: the lesson gets wider so the list fits next to the player; text keeps its reading width */
.video-stage { display: grid; gap: 14px; } .video-fields { display: grid; gap: 12px; }
.chapters { border: 1px solid var(--border); border-radius: 16px; background: var(--surface); padding: 12px 8px; min-width: 0; }
.chapters h4 { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 2px 8px 8px; }
.chapters ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.chapters button, .chapter-plain { display: grid; grid-template-columns: 52px 1fr; gap: 8px; width: 100%; padding: 8px; border: 0; border-radius: 10px; background: none; text-align: left; font-size: 14.5px; line-height: 1.35; }
.chapters button { cursor: pointer; } .chapters button:hover { background: var(--surface-2); } .chapters time { font-variant-numeric: tabular-nums; color: var(--muted); font-size: 13.5px; }
.chapters li.cur button { background: var(--warm-soft); font-weight: 600; } .chapters li.cur time { color: var(--warm-text); }
@media (min-width: 1000px) {
  .wrap.narrow.has-chapters { max-width: 1080px; } .wrap.narrow.has-chapters > *, .wrap.narrow.has-chapters > .blocks > * { max-width: 712px; }
  .wrap.narrow.has-chapters > .blocks, .wrap.narrow.has-chapters > .blocks > .blk-wide { max-width: none; }
  .video-stage.has-chapters { grid-template-columns: minmax(0, 1fr) 300px; align-items: start; }
  /* The list takes the height of the player and scrolls inside it instead of stretching the row. */
  .video-stage.has-chapters .chapters { align-self: stretch; height: 0; min-height: 100%; overflow-y: auto; }
}
/* Speaker in edit mode */
.speaker.is-edit { align-items: center; } .speaker.is-edit > span { flex: 1; } .speaker-pic { position: relative; flex: none; width: 56px; height: 56px; border-radius: 50%; overflow: hidden; cursor: pointer; display: block; }
.speaker-pic-hint { position: absolute; left: 0; right: 0; bottom: 0; padding: 2px 0 4px; font-size: 10px; font-weight: 700; text-align: center; color: #fff; background: rgba(10,14,18,.6); }
.speaker-add { margin: 10px 0 18px; }

/* Program of a congress: speakers as cards, day by day */
.program { display: grid; gap: 18px; } .program-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; } .program-head h2 { margin: 0; }
.program-search { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px; flex: 0 1 300px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); color: var(--muted); }
.program-search:focus-within { border-color: var(--accent); } .program-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font-size: 15px; color: var(--text); } .program-search .icon { width: 18px; height: 18px; flex: none; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; } .chips button { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); font-size: 14px; font-weight: 600; color: var(--muted); cursor: pointer; }
.chips button:hover { color: var(--text); } .chips button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent, #fff); } .chips small { font-weight: 500; opacity: .75; }
.program-day { display: grid; gap: 12px; } .program-day h3 { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; font-size: 19px; margin-top: 6px; } .program-day h3 small { font-size: 13px; font-weight: 500; color: var(--muted); }
.spk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; }
.spk { display: grid; gap: 4px; align-content: start; padding: 8px 8px 12px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); transition: box-shadow .12s, transform .12s; }
.spk:hover { box-shadow: var(--shadow-lg); transform: translateY(-1px); } .spk.is-next { border-color: var(--warm); box-shadow: 0 0 0 2px var(--warm-soft); }
.spk-pic { position: relative; display: grid; place-items: center; aspect-ratio: 1; margin-bottom: 6px; border-radius: 10px; overflow: hidden; background: var(--surface-2); color: var(--muted); } .spk-pic img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; } .spk-pic > .icon { width: 36px; height: 36px; stroke-width: 1.4; }
.spk b { font-size: 15.5px; line-height: 1.3; padding: 0 4px; } .spk small { font-size: 13px; line-height: 1.4; color: var(--muted); padding: 0 4px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.spk-meta { display: flex; align-items: center; gap: 5px; margin-top: 4px; padding: 0 4px; font-size: 12px; color: var(--muted); } .spk-meta .icon { width: 13px; height: 13px; }
.spk-badge { position: absolute; left: 8px; top: 8px; display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border-radius: 999px; background: rgba(10,14,18,.66); color: #fff; font-size: 11.5px; font-weight: 700; } .spk-badge .icon { width: 12px; height: 12px; stroke-width: 2.4; }
.spk-badge.is-done { background: var(--ok); } .spk-badge.is-free { background: var(--accent); color: var(--on-accent, #fff); } .spk-badge.is-next { left: auto; right: 8px; top: auto; bottom: 8px; background: var(--warm); color: #13202A; }
.spk.st-done .spk-pic img { filter: saturate(.75); } .spk.st-locked .spk-pic img { filter: grayscale(.5) brightness(.92); }
.program-empty { padding: 12px 0; } .program-list { margin: 0; }
@media (max-width: 600px) { .spk-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .program-search { flex: 1 1 100%; } }
/* A congress uses the full width for its program; materials and host follow below it */
.course-body.is-summit { grid-template-columns: minmax(0, 1fr); } .course-body.is-summit .course-side { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; align-items: start; }
.course-body.is-summit .resume { max-width: 760px; }
/* Interviews in the outline: photo with state, name, line about the person */
.ol-spk { align-items: center; padding: 6px 10px; } .ol-pic { position: relative; flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); color: var(--muted); }
.ol-pic img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; object-position: center 20%; } .ol-pic > .icon { width: 16px; height: 16px; }
.ol-pic i { position: absolute; right: -3px; bottom: -3px; width: 16px; height: 16px; display: grid; place-items: center; border-radius: 50%; border: 2px solid var(--surface); background: var(--muted); color: #fff; } .ol-pic i.done { background: var(--ok); } .ol-pic i .icon { width: 9px; height: 9px; stroke-width: 3; }
.ol-spk .ol-t { display: grid; gap: 1px; } .ol-spk .ol-t b { font-weight: 600; } .ol-spk .ol-t small { font-size: 12px; font-weight: 400; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ol-spk.cur .ol-pic { box-shadow: 0 0 0 2px var(--accent); } .ol-spk.st-locked .ol-pic img { filter: grayscale(.6); } .ol-row.cur .ol-pic i { border-color: var(--accent-soft); }
.set-layout { flex: 1 1 100%; } .set-layout label { position: relative; } .set-layout input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
/* Sales page of a congress: numbers and faces */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px; margin: 4px 0 0; }
.stats div { display: grid; gap: 2px; padding: 14px 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); }
.stats dt { font-size: 28px; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; color: var(--accent); } .stats dd { margin: 0; font-size: 13.5px; color: var(--muted); line-height: 1.35; }
.sale-speakers { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); } .spk.is-still:hover { box-shadow: none; transform: none; }

/* Bonus block ("Goodie") */
.goodie { display: flex; gap: 14px; align-items: flex-start; padding: 16px; border-radius: 16px; border: 1px solid color-mix(in srgb, var(--warm) 45%, var(--border)); background: var(--warm-soft); }
.goodie-ico { flex: none; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; background: var(--warm); color: #13202A; } .goodie-ico .icon { width: 20px; height: 20px; }
.goodie-pic { flex: none; width: 40px; height: 40px; border-radius: 50%; object-fit: cover; object-position: center 20%; }
.goodie-body { flex: 1; min-width: 0; display: grid; gap: 8px; font-size: 16px; line-height: 1.55; } .goodie-body p { margin: 0; }
.goodie-kind { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--warm-text); } .goodie-kind .icon { width: 13px; height: 13px; } .goodie-from { font-weight: 600; text-transform: none; letter-spacing: 0; color: var(--muted); }
.goodie-title { font-size: 18px; line-height: 1.3; } .goodie-act { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.goodie-code { display: inline-flex; align-items: center; gap: 8px; padding: 4px 4px 4px 14px; border-radius: 12px; border: 1.5px dashed var(--warm); background: var(--surface); } .goodie-code code { font: 700 16px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .06em; user-select: all; }
.goodie-locked { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--muted); } .goodie-locked .icon { width: 15px; height: 15px; }
.goodie.is-edit { background: var(--surface); } .goodie-kinds { justify-self: start; } .goodie-fields { display: grid; gap: 10px; } .goodie-field { display: grid; gap: 5px; } .goodie-field > span { font-size: 13px; font-weight: 600; color: var(--muted); }
.goodie.is-compact { padding: 14px; background: var(--surface); border-color: var(--border); } .goodie.is-compact .goodie-body { font-size: 14px; gap: 6px; } .goodie.is-compact .goodie-title { font-size: 15.5px; }
.goodie-text { color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; } .goodie-more { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 600; color: var(--muted); } .goodie-more:hover { color: var(--text); } .goodie-more .icon { width: 13px; height: 13px; }
/* Bonus overview of a product */
.bonus { display: grid; gap: 14px; margin-top: 12px; } .bonus h2 { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin: 0; } .bonus h2 small { font-size: 13px; font-weight: 500; color: var(--muted); }
.bonus-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; align-items: start; }
.bonus-row { color: inherit; } .bonus-row:hover { border-color: var(--accent); } .bonus-row > .icon { width: 16px; height: 16px; color: var(--muted); flex: none; } .bonus-row .fico { color: var(--warm-text); background: var(--warm-soft); } .bonus-row .fico .icon { width: 18px; height: 18px; }
body.editing .bonus-row { padding-left: 8px; }
.bonus-teaser { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.bonus-teaser li { display: flex; gap: 12px; align-items: center; padding: 10px 12px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); } .bonus-teaser span:last-child { display: grid; gap: 1px; min-width: 0; } .bonus-teaser small { font-size: 12.5px; color: var(--muted); }
.bonus-teaser .fico { color: var(--warm-text); background: var(--warm-soft); flex: none; } .bonus-teaser .fico .icon { width: 18px; height: 18px; }

/* Quote block */
.quote { position: relative; margin: 6px 0; padding: 4px 0 4px 54px; display: grid; gap: 8px; } .quote > .icon { position: absolute; left: 0; top: 2px; width: 38px; height: 38px; color: var(--warm); stroke-width: 1.6; }
.quote blockquote { margin: 0; font-size: 21px; line-height: 1.5; font-weight: 500; letter-spacing: -.005em; } .quote figcaption { font-size: 14.5px; font-weight: 600; color: var(--muted); }
/* Bonus of the product in edit mode */
.bonus-edit { margin-top: 28px; } .bonus-own { align-items: flex-start; gap: 8px; } .bonus-own > .goodie { flex: 1; min-width: 0; } .bonus-sub { font-size: 14px; color: var(--muted); margin-top: 8px; }
.bonus-edit .bonus-row { padding-left: 8px; } .bonus-edit .bonus-row .btn { flex: none; }

/* Contact and social links of a speaker */
.speaker { align-items: flex-start; } .speaker img, .speaker-ph { margin-top: 2px; }
.speaker .speaker-links { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; } .speaker-links a { display: inline-flex; align-items: center; gap: 5px; height: 28px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); font-size: 13px; font-weight: 600; color: var(--text); }
.speaker-links a:hover { border-color: var(--accent); color: var(--accent); } .speaker-links .icon { width: 13px; height: 13px; }
.speaker .speaker-links-edit { display: grid; gap: 6px; margin-top: 10px; } .speaker-links-h { font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.speaker .speaker-link-row { display: grid; grid-template-columns: 124px minmax(0, 1fr) 32px; align-items: center; gap: 8px; } .speaker-link-row .input { height: 38px; font-size: 14px; }
.speaker .speaker-link-kind { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--muted); } .speaker-link-kind .icon { width: 14px; height: 14px; }
@media (max-width: 600px) { .speaker .speaker-link-row { grid-template-columns: minmax(0, 1fr) 32px; } .speaker .speaker-link-kind { grid-column: 1 / -1; } }
.speaker.is-edit { align-items: flex-start; } .speaker .speaker-links-h { display: block; }
/* Without the resume card nothing overlaps the header of a congress */
.course:has(.course-body.is-summit) .hero { padding-bottom: 36px; } .course-body.is-summit { margin-top: 28px; }
.course-body.is-summit .lrow .state { display: none; }
.card-draft { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 2px 0 0; }

/* ---------- Phone ---------- */
/* Header: a phone has no room for the word mark next to navigation, theme and account, so the logo becomes its icon. */
.logo .l-icon { display: none !important; }
@media (max-width: 600px) {
  .top .wrap { padding: 0 14px; gap: 8px; } .logo img { height: 24px; }
  .top .logo img:not(.l-icon) { display: none !important; }
  .top .logo .l-icon.l-light { display: block !important; height: 28px; }
  :root[data-theme="dark"] .top .logo .l-icon.l-light { display: none !important; } :root[data-theme="dark"] .top .logo .l-icon.l-dark { display: block !important; height: 28px; }
  .top-right { min-width: 0; gap: 6px; } .nav-link { white-space: nowrap; padding: 8px 6px; }
  .seg button { padding: 0 9px; } .theme-btn { width: 34px; height: 34px; }
}
@media (max-width: 600px) and (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .top .logo .l-icon.l-light { display: none !important; } :root:not([data-theme="light"]) .top .logo .l-icon.l-dark { display: block !important; height: 28px; }
}
@media (max-width: 600px) {
  /* Lesson bar while viewing: one row (back, dropdown, outline) instead of two, to leave the screen to the content. */
  body:not(.editing) .lbar .wrap:has(.lpill-wrap) { flex-wrap: nowrap; min-height: 54px; gap: 8px; padding: 6px 12px; }
  body:not(.editing) .lbar .wrap:has(.lpill-wrap) .lpill-wrap { order: 0; flex: 1 1 auto; min-width: 0; }
  body:not(.editing) .lbar .wrap:has(.lpill-wrap) .lbar-tools { margin-left: 0; }
  body:not(.editing) .lbar .wrap:has(.lpill-wrap) .lpill { height: 40px; padding: 0 10px 0 14px; } .lpill-t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
  .lbar { top: 64px; }
}
.trust-inline { display: none; }
@media (max-width: 760px) {
  /* Sales page on a phone: price and buy button stay in reach as a bar at the bottom of the screen. */
  .trust-inline { display: grid; padding: 14px 16px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); }
  .buy { position: sticky; bottom: 0; top: auto; z-index: 20; grid-template-columns: auto 1fr; align-items: center; gap: 12px; margin: 8px -24px 0; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); border-radius: 18px 18px 0 0; border-width: 1px 0 0; box-shadow: 0 -6px 24px rgba(10,14,18,.12); }
  .buy .price { font-size: 22px; white-space: nowrap; } .buy .price small { display: none; }
  .buy .trust, .buy > .btn-quiet, .buy > p { display: none; } .buy > .chip { display: none; } .buy .btn-block { width: 100%; }
}
@media (max-width: 600px) {
  /* Bonus and its editor on a phone */
  .course-main, .bonus, .bonus-grid, .goodie-body { min-width: 0; } .bonus-grid { grid-template-columns: minmax(0, 1fr); }
  .goodie { padding: 12px; gap: 10px; } .goodie.is-edit .goodie-ico { display: none; } .tabs.goodie-kinds { flex-wrap: wrap; max-width: 100%; }
  .bonus-own { flex-wrap: wrap; } .bonus-own > .goodie { flex: 1 1 100%; } .goodie-code { flex-wrap: wrap; max-width: 100%; } .goodie-code code { overflow-wrap: anywhere; }
  .bonus-edit .bonus-row { flex-wrap: wrap; } .video-fields, .video-link { min-width: 0; }
}
/* Outline on phone and tablet: it opens above the lesson and scrolls inside itself instead of running over the text. */
@media (max-width: 899px) { .lpanel-in { overflow-y: auto; overscroll-behavior: contain; background: var(--surface); } }
/* Outline on phone and tablet: closed until asked for, then a layer over the whole screen. */
@media (max-width: 899px) {
  .lpanel { position: fixed; inset: 0; z-index: 70; width: auto; border: 0; background: var(--surface); }
  .lpanel-in { position: static; max-height: none; height: 100%; padding: 14px 12px calc(20px + env(safe-area-inset-bottom)); }
  .lpanel-head { position: sticky; top: -14px; z-index: 1; margin: -14px -12px 0; padding: 14px 12px 10px 22px; background: var(--surface); border-bottom: 1px solid var(--border); align-items: center; } .lpanel-head b { font-size: 17px; }
  .lpanel-head .ib { width: 40px; height: 40px; }
  .lpanel .ol-row { padding-top: 10px; padding-bottom: 10px; font-size: 15px; }
  body.outline-open { overflow: hidden; }
}
/* Speakers on a phone: rows instead of two narrow columns – photo on the left, name and line next to it. */
@media (max-width: 600px) {
  .spk-grid, .sale-speakers { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .spk { grid-template-columns: 76px minmax(0, 1fr); column-gap: 14px; row-gap: 2px; align-content: center; align-items: start; padding: 8px 12px 8px 8px; }
  .spk-pic { grid-column: 1; grid-row: 1 / span 4; width: 76px; margin: 0; align-self: center; }
  .spk > :not(.spk-pic) { grid-column: 2; padding: 0; } .spk b { font-size: 16px; align-self: end; } .spk small { -webkit-line-clamp: 2; }
  .spk:hover { transform: none; } .spk-meta { margin-top: 2px; }
  .spk-badge { left: 4px; top: 4px; padding: 2px 6px; font-size: 10px; } .spk-badge.is-free { left: 3px; right: 3px; top: auto; bottom: 3px; justify-content: center; padding: 2px 2px; font-size: 9.5px; white-space: nowrap; border-radius: 6px; }
}

/* Media player (player.js): Plyr in our colors, and the boxes shown instead of it */
.player { --plyr-color-main: var(--accent); --plyr-video-control-color-hover: #fff; --plyr-font-family: inherit; --plyr-control-radius: 8px; --plyr-menu-radius: 12px;
  border-radius: 16px; overflow: hidden; background: #000; aspect-ratio: 16/9; }
.player .plyr { height: 100%; --plyr-color-main: var(--accent); } .player .plyr__video-wrapper { height: 100%; }
/* While the libraries and the stream load, the bare media element is already in the box. It stays invisible and
   takes the box's size, so nothing jumps: the box shows the preview image until Plyr takes over (Plyr wraps the
   element, so it is no longer a direct child then). */
.player { background-size: contain; background-position: center; background-repeat: no-repeat; }
.player > video, .player > audio { display: block; width: 100%; height: 100%; opacity: 0; pointer-events: none; }
.player.is-audio { min-height: 76px; }
.player.is-audio { aspect-ratio: auto; background: var(--surface); border: 1px solid var(--border); } .player.is-audio .plyr { height: auto; }
.player.is-audio .plyr--audio .plyr__controls { background: transparent; color: var(--text); padding: 14px; }
.player-box { aspect-ratio: 16/9; display: grid; place-items: center; align-content: center; gap: 10px; padding: 20px; border-radius: 16px; background: var(--surface-2); color: var(--muted); font-size: 15px; text-align: center; background-size: cover; background-position: center; }
.player-box > .icon { width: 36px; height: 36px; stroke-width: 1.4; }
.player-box.is-consent { color: #fff; background-color: #1b2630; } .player-box.is-consent small { max-width: 46ch; font-size: 13px; line-height: 1.5; color: rgba(255,255,255,.86); } .player-box.is-consent a { color: #fff; text-decoration: underline; }
.player-go { display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 20px; border: 0; border-radius: 999px; background: #fff; color: #13202A; font-size: 15px; font-weight: 700; cursor: pointer; box-shadow: var(--shadow-lg); }
.player-go:hover { transform: translateY(-1px); } .player-go .icon { width: 20px; height: 20px; }
.player-spin { width: 28px; height: 28px; border-radius: 50%; border: 3px solid var(--border); border-top-color: var(--accent); animation: player-spin .8s linear infinite; } @keyframes player-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .player-spin { animation: none; } }

/* ---- Participants (people.js) ---- */
.chip-off { background: var(--surface-2); color: var(--muted); } .chip-bad { background: color-mix(in srgb, var(--danger) 12%, transparent); color: var(--danger); }
.ppl-title { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding: 4px 0 20px; } .ppl-title > div { display: grid; gap: 4px; } .ppl-title .btn { flex: none; }
.ppl-tools { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.ppl-search { flex: 1 1 220px; max-width: 320px; } .ppl-select { appearance: auto; } .ppl-tools .ppl-select { width: auto; max-width: 260px; flex: 0 1 auto; } .ppl-count { margin-left: auto; }
.ppl-list { list-style: none; margin: 0 0 56px; padding: 0; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.ppl-list li + li { border-top: 1px solid var(--border); }
.ppl-row { display: flex; align-items: center; gap: 14px; width: 100%; padding: 12px 16px; border: 0; background: none; text-align: left; cursor: pointer; } .ppl-row:hover { background: var(--surface-2); }
.ppl-row > .icon { width: 18px; height: 18px; color: var(--muted); flex: none; }
.ppl-av { width: 38px; height: 38px; font-size: 14px; }
.ppl-who { display: grid; gap: 1px; flex: 0 1 260px; min-width: 0; } .ppl-who b, .ppl-who small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .ppl-who small { font-size: 13px; color: var(--muted); }
.ppl-grants { display: flex; flex-wrap: wrap; gap: 6px 14px; flex: 1 1 0; min-width: 0; } .ppl-g { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; min-width: 0; } .ppl-g > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 240px; }
.ppl-since { flex: none; white-space: nowrap; }
.ppl-none { padding: 24px 4px 56px; }
.ppl-facts { padding-top: 14px; } .ppl-h { font-size: 15px; margin: 22px 0 10px; }
.ppl-grant { margin-bottom: 10px; border: 1px solid var(--border); border-radius: 14px; background: var(--bg); }
.ppl-grant-head { display: flex; align-items: center; gap: 10px; padding: 14px; list-style: none; cursor: pointer; border-radius: 14px; } .ppl-grant-head::-webkit-details-marker { display: none; }
.ppl-grant-head b { flex: 1; min-width: 0; } .ppl-grant-head > .icon { flex: none; width: 18px; height: 18px; color: var(--muted); transition: transform .15s; } .ppl-grant[open] > .ppl-grant-head > .icon { transform: rotate(180deg); }
.ppl-grant-head:hover b { color: var(--accent); } .ppl-grant-head:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.ppl-grant-body { display: grid; gap: 8px; padding: 0 14px 14px; }
@media (prefers-reduced-motion: reduce) { .ppl-grant-head > .icon { transition: none; } }
.ppl-grant-acts { display: flex; align-items: flex-end; gap: 8px; flex-wrap: wrap; } .ppl-until { display: grid; gap: 4px; margin-right: auto; font-size: 12px; font-weight: 600; color: var(--muted); } .ppl-until .input { height: 36px; width: 160px; }
.ppl-log summary { font-size: 13px; color: var(--muted); cursor: pointer; } .ppl-log ul { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 4px; font-size: 13px; } .ppl-log li > span { color: var(--muted); font-variant-numeric: tabular-nums; margin-right: 6px; }
.ppl-move { display: flex; gap: 8px; margin-top: 10px; } .ppl-move .input { flex: 1; min-width: 0; } .ppl-move .btn { flex: none; }
.ppl-check { display: flex; align-items: center; gap: 10px; font-size: 14px; cursor: pointer; } .ppl-check input { width: 18px; height: 18px; accent-color: var(--accent); }
@media (max-width: 760px) {
  .nav-people { display: none; }
  .ppl-row { flex-wrap: wrap; gap: 8px 12px; padding: 12px; } .ppl-who { flex: 1 1 0; } .ppl-grants { order: 5; flex: 1 1 100%; padding-left: 50px; } .ppl-since { display: none; }
  .ppl-search { max-width: none; flex-basis: 100%; } .ppl-tools .ppl-select { max-width: none; flex: 1 1 100%; } .ppl-title .btn { width: 100%; justify-content: center; }
}
/* Product bar with four pages: on a phone the switch is a 2×2 grid, on a narrow desktop the hint next to "Veröffentlichen" gives way. */
@media (max-width: 600px) { .pbar .tabs { display: grid; grid-template-columns: 1fr 1fr; width: 100%; } .pbar .tabs a { justify-content: center; } }
@media (min-width: 761px) and (max-width: 1100px) { .pbar-open { display: none; } }

/* Collapsible text (block "details"): a title that opens on a click */
.fold { margin: 6px 0; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.fold > summary, .fold-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; font-size: 17px; font-weight: 650; line-height: 1.35; }
.fold > summary { list-style: none; cursor: pointer; border-radius: var(--radius); } .fold > summary::-webkit-details-marker { display: none; }
.fold > summary:hover { color: var(--accent); } .fold > summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.fold > summary .icon { flex: none; width: 20px; height: 20px; color: var(--muted); transition: transform .15s; } .fold[open] > summary .icon { transform: rotate(180deg); }
.fold-body { padding: 0 18px 14px; font-size: 16px; line-height: 1.65; } .fold-body > :first-child { margin-top: 0; } .fold-body > :last-child { margin-bottom: 0; }
.fold-head > b { flex: 1; min-width: 0; } .fold-state { flex: none; font-size: 12.5px; font-weight: 500; color: var(--muted); }
.fold-opt { margin: 0 18px 14px; }
@media (prefers-reduced-motion: reduce) { .fold > summary .icon { transition: none; } }

/* Images inside text (Markdown): small by nature (book covers, logos), never wider than the text */
.md-img { max-width: 100%; height: auto; max-height: 220px; border-radius: 8px; vertical-align: top; margin: 4px 8px 4px 0; }
.md-imglink { display: inline-block; } .md-imglink:hover .md-img { box-shadow: 0 0 0 2px var(--accent); }

/* Address of a product to share */
.share-link { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; } .share-link code { flex: 1 1 200px; min-width: 0; padding: 9px 12px; border-radius: 10px; background: var(--surface-2); font-size: 13px; overflow-wrap: anywhere; user-select: all; }

/* Kept on the home screen (viewport-fit=cover): stay clear of the notch and the home bar */
body { padding-left: env(safe-area-inset-left); padding-right: env(safe-area-inset-right); }
.top { padding-top: env(safe-area-inset-top); } .foot { padding-bottom: env(safe-area-inset-bottom); }
/* Opened like an app there is no browser to pull the page along: no rubber band behind the pinned bars */
@media (display-mode: standalone) { html { overscroll-behavior-y: none; } }

/* Sales page as plain HTML from the server (/p/{key}), shown until the app has started */
.has-prerender .boot { display: none; } .prerender { padding-top: 40px; padding-bottom: 60px; } .prerender h2 { margin-top: 28px; } .prerender ul { padding-left: 20px; list-style: disc; }

/* Phone: products as rows instead of tiles, so several fit on one screen. Small picture on the left, the same
   content next to it. The tile page shows the same row, because that is how the product appears there. */
@media (max-width: 600px) {
  .grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .card { flex-direction: row; align-items: flex-start; gap: 12px; padding: 10px; }
  .card-cover { flex: none; width: 104px; } .card .cover { border-radius: 10px; } .card .cover-label { display: none; }
  .card-body { padding: 1px 2px 2px 0; gap: 4px; min-width: 0; }
  .card-body h3 { font-size: 16px; line-height: 1.25; }
  .card-body > p.muted { font-size: 14px; line-height: 1.4; }
  body:not(.editing) .card-body > p.muted { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .card-foot { padding-top: 6px; gap: 6px 8px; } .card-foot .btn { height: 36px; padding: 0 14px; }
  .card-acts { flex-wrap: wrap; padding-top: 8px; margin-top: 8px; } .card-acts .btn { height: 36px; padding: 0 10px; font-size: 14px; }
  .card-grip { left: 4px; top: 4px; width: 28px; height: 28px; }
  .card-new { flex-direction: row; min-height: 76px; }
}

/* Space settings, upay.me: the key shown once, and the rows that say which product unlocks which */
.set-sub { margin: 18px 0 2px; font-size: 16px; } .set-sub + .facts, .key-once + .facts { margin-top: 8px; } .set-card .facts + .set-acts, .set-card .set-empty + .set-acts { margin-top: 12px; } .set-card .set-acts + p.small { margin-top: 10px; } .set-card + .set-card { margin-top: 20px; }
.key-once { display: grid; gap: 8px; margin: 8px 0 14px; padding: 14px; border-radius: 14px; border: 1px solid var(--warm); background: var(--warm-soft); } .key-once small { color: var(--muted); } .key-once code { background: var(--surface); }
.map-row { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--border); } .map-row .input { height: 40px; flex: 0 1 260px; min-width: 0; }
.map-what { display: grid; flex: 1 1 0; min-width: 0; } .map-what small { color: var(--muted); font-size: 13px; } .map-row.is-waiting .map-what small { color: var(--warm-text); font-weight: 600; }
.map-new .input:first-child { flex: 1 1 0; }
@media (max-width: 600px) { .map-row { flex-wrap: wrap; } .map-what, .map-row .input { flex: 1 1 100%; } .map-new .btn { flex: 1 1 100%; } }

/* Import of participants: the place to drop the file shows how far reading is; then columns, plan, progress */
.ppl-acts { display: flex; gap: 8px; flex-wrap: wrap; }
.imp-bar { display: block; height: 6px; border-radius: 99px; background: var(--surface-2); overflow: hidden; } .imp-bar i { display: block; height: 100%; border-radius: 99px; background: var(--accent); transition: width .25s ease; }
.imp-bar.is-done i { background: var(--ok); } .imp-bar.is-failed i { background: var(--danger); }
.imp-sub { margin: 22px 0 4px; font-size: 16px; }
.imp-plan { display: grid; margin: 8px 0 10px; border: 1px solid var(--border); border-radius: 14px; background: var(--bg); } .imp-plan div { display: flex; justify-content: space-between; gap: 14px; padding: 9px 14px; border-top: 1px solid var(--border); font-size: 15px; }
.imp-plan div:first-child { border-top: 0; } .imp-plan dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; } .imp-plan .is-main dt { font-weight: 600; } .imp-plan .is-main dd { color: var(--accent); font-size: 17px; } .imp-plan .is-warn dd { color: var(--warm-text); }
.imp-first { margin: 0 0 10px; } .imp-run { display: grid; gap: 8px; } .imp-run .imp-bar { height: 10px; } .imp-run > b { font-size: 17px; }
@media (prefers-reduced-motion: reduce) { .imp-bar i, .up-item { transition: none; } .up-ring { animation: none; } }
/* Narrow phones: the buttons at the foot of a dialog or panel share the width and wrap instead of running out of it */
@media (max-width: 480px) { .sheet-foot { flex-wrap: wrap-reverse; } .sheet-foot .btn { flex: 1 1 auto; } }

/* "Gratis ansehen" on a speaker's photo: a band across the bottom edge in the warm colour of the brand (the orange of the quote mark and of "Veröffentlichen"). It carries its own
   background over the full width, so it reads the same on every photo, in light and in dark. */
.spk-badge.is-free { left: 0; right: 0; top: auto; bottom: 0; justify-content: center; gap: 6px; padding: 7px 8px; border-radius: 0; background: var(--warm); color: #13202A; font-size: 13px; letter-spacing: .01em; }
.spk-badge.is-free .icon { width: 15px; height: 15px; stroke-width: 2.2; }
.spk:has(.spk-badge.is-free) { border-color: var(--warm); box-shadow: 0 0 0 1px var(--warm); }
@media (max-width: 600px) { .spk-badge.is-free { left: 0; right: 0; bottom: 0; padding: 3px 2px; font-size: 9.5px; border-radius: 0; } .spk-badge.is-free .icon { display: none; } }

/* Import, loading a file: the look and behaviour of the upload in Sermiva (FilePond). A grey field to drop the
   file; then one bar per file, dark while it loads with a ring on the right, green when done, red on an error. */
.up { display: grid; gap: 8px; }
.up-sample { justify-self: start; padding: 0; border: 0; background: none; color: var(--accent); font-size: 14px; font-weight: 500; cursor: pointer; } .up-sample:hover { text-decoration: underline; text-underline-offset: 3px; }
.up-drop { min-height: 76px; padding: 16px; border: 0; border-radius: 10px; background: var(--surface-2); color: var(--muted); font-size: 15px; cursor: pointer; transition: background .15s, box-shadow .15s; }
.up-drop:hover, .up-drop.is-over { background: var(--accent-soft); box-shadow: inset 0 0 0 1.5px var(--accent); color: var(--text); }
.up-panel { padding-bottom: 44px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); }
.up-item { display: flex; align-items: center; gap: 14px; margin: -1px; padding: 9px 10px 9px 16px; border-radius: 9px; background: #64605E; color: #fff; transition: background .3s; }
.up-item.is-ready { background: #369763; } .up-item.is-bad { background: #C44E47; }
.up-name, .up-status { display: grid; gap: 1px; min-width: 0; } .up-name { flex: 1; } .up-status { text-align: right; flex: none; }
.up-item b { font-size: 15px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .up-item small { font-size: 12.5px; opacity: .62; }
.up-btn { flex: none; width: 34px; height: 34px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; background: rgba(0,0,0,.5); color: #fff; cursor: pointer; } .up-btn:hover { background: rgba(0,0,0,.7); }
.up-btn .icon { width: 16px; height: 16px; stroke-width: 3; }
.up-ring { width: 26px; height: 26px; animation: up-spin 1s linear infinite; } .up-ring circle { fill: none; stroke: #fff; stroke-width: 2.6; stroke-linecap: round; stroke-dasharray: 26 50; }
@keyframes up-spin { to { transform: rotate(360deg); } }
.up-error { margin: 10px 16px -30px; color: var(--danger); font-size: 14px; }

/* Import, the columns: one row per thing we need, its name on the left, the column of the file on the right */
.map { min-width: 0; margin: 18px 0 0; padding: 4px 18px 18px; border: 1px solid var(--border); border-radius: 16px; }
.map legend { padding: 0 8px; margin-left: -8px; font-size: 15px; font-weight: 500; }
.map-line { display: grid; grid-template-columns: minmax(96px, 32%) minmax(0, 1fr); gap: 4px 16px; align-items: start; padding-top: 14px; }
.map-line > label { padding-top: 11px; font-size: 15px; } .map-line > label i { margin-left: 2px; color: var(--danger); font-style: normal; font-size: 12px; vertical-align: super; }
.map-line .input { width: 100%; height: 44px; } .map-line small { display: block; margin-top: 6px; font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
@media (max-width: 520px) { .map { padding: 2px 14px 16px; } .map-line { grid-template-columns: minmax(0, 1fr); } .map-line > label { padding-top: 0; } .up-status small { display: none; } .up-item b { font-size: 14px; } }

/* A price lowered by a coupon: what is paid, and next to it the amount of the plan, struck through */
.price s, s.was { font-size: .5em; font-weight: 500; color: var(--muted); text-decoration-thickness: 1.5px; } s.was { font-size: 13px; }
/* Space settings, upay.me: a product of theirs that no product here has yet */
.map-todo { flex: 0 1 300px; font-size: 13px; color: var(--warm-text); } .map-row .btn { flex: none; max-width: 60%; overflow: hidden; text-overflow: ellipsis; }
.map-line .tabs, .field > .tabs { justify-self: start; } .map-line .tabs + small { margin-top: 8px; }
.map-line .tabs button, .field > .tabs button { white-space: nowrap; padding: 0 16px; }

/* Panel of a person: a product with all its unlocks. The row of the product says whether they have it; inside,
   each unlock is a block of its own with where it came from, the order at upay.me and its buttons. */
.ppl-grant-what { display: grid; gap: 1px; flex: 1; min-width: 0; } .ppl-grant-what small { font-size: 12.5px; font-weight: 400; color: var(--muted); }
.ppl-grant-body { gap: 0; padding: 0 14px 6px; }
.ppl-unlock { border-top: 1px solid var(--border); } .ppl-unlock-body { display: grid; gap: 8px; padding: 0 0 14px; }
.ppl-unlock-head { display: flex; align-items: center; gap: 10px; padding: 11px 0; font-size: 14.5px; list-style: none; cursor: pointer; } .ppl-unlock-head::-webkit-details-marker { display: none; }
.ppl-unlock-head > .icon { flex: none; width: 16px; height: 16px; color: var(--muted); transition: transform .15s; } .ppl-unlock[open] > .ppl-unlock-head > .icon { transform: rotate(180deg); }
.ppl-unlock-head:hover b { color: var(--accent); } .ppl-unlock-head:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 8px; } .ppl-unlock p { margin: 0; } .ppl-unlock code { font-size: 12.5px; }
.ppl-why { color: var(--warm-text); }
.ppl-more { font-size: 12px; font-weight: 600; color: var(--muted); white-space: nowrap; }

/* Bonus block, second look (17 Nov 2026): the tinted frame says "Bonus"; inside, the thing looks like what it is.
   A voucher is a ticket: the code on the left, a perforated line with two notches, the stub with "Kopieren". */
.goodie { --goodie-bg: var(--warm-soft); gap: 12px; padding: 18px 20px; } .goodie.is-edit, .goodie.is-compact { --goodie-bg: var(--surface); }
.goodie-kind .tx { min-width: 60px; }
.voucher { display: inline-flex; align-items: stretch; max-width: 100%; border-radius: 14px; background: var(--surface); border: 1px solid color-mix(in srgb, var(--warm) 50%, var(--border)); box-shadow: var(--shadow); }
.voucher-main { position: relative; display: grid; gap: 2px; align-content: center; padding: 11px 22px 12px 18px; border-right: 2px dashed color-mix(in srgb, var(--warm) 60%, var(--border)); min-width: 0; }
.voucher-main small { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.voucher-main code { font: 800 21px/1.15 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .1em; color: var(--text); overflow-wrap: anywhere; }
.voucher-main::before, .voucher-main::after { content: ''; position: absolute; right: -9px; width: 16px; height: 16px; border-radius: 50%; background: var(--goodie-bg); border: 1px solid color-mix(in srgb, var(--warm) 50%, var(--border)); }
.voucher-main::before { top: -9px; clip-path: inset(50% 0 0 0); } .voucher-main::after { bottom: -9px; clip-path: inset(0 0 50% 0); }
.voucher-stub { display: grid; place-items: center; padding: 8px 12px 8px 14px; }
.goodie-item { display: flex; align-items: center; gap: 10px; max-width: 460px; padding: 8px 6px 8px 8px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); color: inherit; font-size: 15px; line-height: 1.35; }
.goodie-item:hover { border-color: var(--accent); } .goodie-item:hover .goodie-go { border-color: var(--accent); color: var(--accent); }
.goodie-item .fmeta { display: grid; gap: 1px; min-width: 0; flex: 1; } .goodie-item .fmeta b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .goodie-item .fmeta small { color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.goodie-go { flex: none; width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid var(--border); border-radius: 10px; color: var(--text); } .goodie-go .icon { width: 18px; height: 18px; }
.fico.is-link { background: var(--accent-soft); color: var(--accent); } .fico.is-link .icon { width: 18px; height: 18px; }
@media (max-width: 600px) { .goodie { padding: 14px; } .voucher { flex-wrap: wrap; } .voucher-main { flex: 1 1 auto; } .goodie-item { max-width: none; } }

/* Space settings, team: one row per person with role and remove */
.team-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--border); } .team-row .av { flex: none; } .team-row .input { height: 40px; flex: 0 0 150px; } .team-row .ib:hover:not(:disabled) { color: var(--danger); }
.set-form { display: grid; gap: 12px; margin-top: 12px; padding: 16px; border: 1.5px dashed var(--border); border-radius: 14px; } .set-form .field { margin: 0; }
.team-roles { margin-top: 12px; font-size: 14px; } .team-roles summary { cursor: pointer; color: var(--muted); font-weight: 600; } .team-roles .facts { margin-top: 10px; }
@media (max-width: 600px) { .team-row { flex-wrap: wrap; } .team-row .map-what { flex: 1 1 calc(100% - 60px); } .team-row .input { flex: 1 1 0; min-width: 0; } }
.set-form .two { align-items: start; }

/* Bonus block: the word "Bonus" sits in the line of the frame, like the legend of a form group. Its background
   is half what lies outside the frame and half the frame's own tint, so the line runs out to both sides of it. */
.goodie { position: relative; margin-top: 12px; padding-top: 22px; }
.goodie > .goodie-body > .goodie-kind:first-child { position: absolute; top: -10px; left: 12px; padding: 0 8px; border-radius: 6px; line-height: 20px;
  background: linear-gradient(to bottom, var(--goodie-out, var(--bg)) 0 50%, var(--goodie-bg) 50% 100%); }
.row.blk.is-open .goodie, .sidecard .goodie, .box .goodie { --goodie-out: var(--surface); }

/* Photos in the dark theme: a bright picture glares on a dark page. So a picture gets the same light veil the
   coloured tiles already have (--shade-tile) and a hairline edge that sets it off from the surface; under the
   pointer the veil lifts and the picture shows as it is. The light theme has no veil and no edge. */
.cover.has-img { position: relative; overflow: hidden; }
.cover.has-img::before, .spk-pic:has(img)::before { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: var(--shade-tile, transparent); box-shadow: inset 0 0 0 1px var(--img-edge, transparent); transition: background .2s; }
.card:hover .cover.has-img::before, .sale-main > .cover.has-img:hover::before, .spk:hover .spk-pic::before { background: transparent; }
@media (prefers-reduced-motion: reduce) { .cover.has-img::before, .spk-pic:has(img)::before { transition: none; } }
