.brand__sub { font-weight: 400; font-size: 0.8rem; color: var(--on-blueprint-muted); border-left: 1px solid rgba(255,179,138,0.4); padding-left: 10px; margin-left: 2px; }
:root {
  --paper: #f2f4fa;
  --surface: #ffffff;
  --surface-2: #e6eaf5;
  --ink: #1a120e;
  --muted: #545b78;
  --line: #d3d9ea;
  --blueprint: #141010;
  --blueprint-grid: rgba(255,255,255,0.07);
  --on-blueprint: #f4f6ff;
  --on-blueprint-muted: #b9c2ea;
  --sun: #ffb38a;
  --on-sun: #1a120e;
  --ok: #1f8a5b;
  --danger: #b4233c;
  --overlay: rgba(10, 14, 36, 0.55);
  --display: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  color-scheme: light;
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0e1230; --surface: #161b3f; --surface-2: #1f2550; --ink: #eef1ff; --muted: #a7afd6;
    --line: #2b3266; --blueprint: #15215a; --on-blueprint: #f4f6ff; --on-blueprint-muted: #b9c2ea;
    --ok: #4cc38a; --danger: #ff7a90; --overlay: rgba(3, 5, 18, 0.7); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0e1230; --surface: #161b3f; --surface-2: #1f2550; --ink: #eef1ff; --muted: #a7afd6;
  --line: #2b3266; --blueprint: #15215a; --on-blueprint: #f4f6ff; --on-blueprint-muted: #b9c2ea;
  --ok: #4cc38a; --danger: #ff7a90; --overlay: rgba(3, 5, 18, 0.7); color-scheme: dark;
}
html { scroll-padding-top: calc(env(safe-area-inset-top, 0px) + 72px); scroll-behavior: smooth; }
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--body); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--blueprint); }
img { max-width: 100%; }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

/* Header */
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: var(--blueprint); color: var(--on-blueprint); border-bottom: 1px solid var(--blueprint-grid); }
.top__in { max-width: 1160px; margin: 0 auto; padding: 14px 20px; display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 800; font-size: 1.2rem; color: inherit; text-decoration: none; letter-spacing: -0.02em; }
.brand__mark { width: 30px; height: 30px; border-radius: 8px; background: var(--sun); color: var(--on-sun); display: grid; place-items: center; font-family: var(--mono); font-size: 0.85rem; }
.nav { display: flex; gap: 20px; margin-left: auto; }
.nav a { color: var(--on-blueprint-muted); text-decoration: none; font-size: 0.95rem; }
.nav a:hover { color: var(--on-blueprint); }
.cartbtn { display: inline-flex; align-items: center; gap: 8px; border: 1px solid rgba(255,255,255,0.25); background: transparent; color: var(--on-blueprint); padding: 8px 14px; border-radius: 999px; cursor: pointer; }
.cartbtn__n { min-width: 22px; height: 22px; border-radius: 11px; background: var(--sun); color: var(--on-sun); font-size: 0.8rem; font-weight: 600; display: grid; place-items: center; padding: 0 6px; }
@media (max-width: 640px) { .nav { display: none; } .cartbtn { margin-left: auto; } }

/* Hero */
.hero { background-color: var(--blueprint); background-image: linear-gradient(var(--blueprint-grid) 1px, transparent 1px), linear-gradient(90deg, var(--blueprint-grid) 1px, transparent 1px); background-size: 40px 40px; color: var(--on-blueprint); }
.hero__head { max-width: 1160px; margin: 0 auto; padding: 48px 20px 0; display: grid; grid-template-columns: 1.3fr 1fr; gap: 24px; align-items: end; }
.hero h1 { font-family: var(--display); font-weight: 800; font-size: clamp(2.3rem, 6vw, 4.6rem); line-height: 0.98; letter-spacing: -0.04em; margin: 0; }
.hero__lede { color: var(--on-blueprint-muted); margin: 0; max-width: 40ch; font-size: 1.05rem; }
.hero__lede strong { color: var(--on-blueprint); font-weight: 600; }
.hero__menu { position: relative; height: clamp(460px, 70vh, 720px); max-width: 1400px; margin: 0 auto; }
.hero__hint { text-align: center; color: var(--on-blueprint-muted); font-size: 0.9rem; margin: 0; padding: 0 20px 28px; }
@media (max-width: 760px) { .hero__head { grid-template-columns: 1fr; padding-top: 32px; } }

/* Sections */
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.section { padding: 80px 0 0; }
.section h2 { font-family: var(--display); font-weight: 800; font-size: clamp(1.8rem, 4vw, 2.8rem); letter-spacing: -0.03em; line-height: 1.05; margin: 0 0 12px; }
.section__intro { color: var(--muted); max-width: 60ch; margin: 0 0 36px; }

/* Course list */
.courses { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.course { display: grid; grid-template-columns: 120px 1fr auto; gap: 28px; align-items: center; padding: 28px 0; border-bottom: 1px solid var(--line); }
.course__art { width: 120px; height: 120px; border-radius: 22px; overflow: hidden; display: block; background: var(--surface-2); }
.course__art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tile-ph { display: block; width: 100%; height: 100%; }
.course h3 { font-family: var(--display); font-weight: 600; font-size: 1.5rem; letter-spacing: -0.02em; margin: 0 0 6px; line-height: 1.15; }
.course__sum { margin: 0 0 12px; color: var(--muted); max-width: 62ch; }
.facts { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.facts li { background: var(--surface-2); color: var(--ink); font-size: 0.85rem; padding: 3px 10px; border-radius: 6px; }
.course__buy { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; min-width: 190px; }
.price { font-family: var(--display); font-weight: 800; font-size: 2rem; letter-spacing: -0.03em; line-height: 1; }
.btnrow { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.btn { border: 0; border-radius: 10px; padding: 10px 16px; cursor: pointer; font-weight: 600; font-size: 0.95rem; }
.btn--sun { background: var(--sun); color: var(--on-sun); }
.btn--sun:hover { filter: brightness(0.96); }
.btn--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn--ghost:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn--done { background: transparent; color: var(--ok); box-shadow: inset 0 0 0 1.5px var(--ok); cursor: default; }
.btn--block { width: 100%; padding: 14px; font-size: 1rem; }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }
@media (max-width: 760px) {
  .course { grid-template-columns: 84px 1fr; gap: 16px; }
  .course__art { width: 84px; height: 84px; border-radius: 16px; }
  .course__buy { grid-column: 1 / -1; flex-direction: row; align-items: center; justify-content: space-between; min-width: 0; }
}

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; counter-reset: s; margin: 0; padding: 0; list-style: none; }
.steps li { padding: 24px 24px 24px 0; border-top: 2px solid var(--ink); counter-increment: s; }
.steps li + li { padding-left: 24px; border-left: 1px solid var(--line); }
.steps li::before { content: counter(s); font-family: var(--display); font-weight: 800; font-size: 2.6rem; line-height: 1; display: block; margin-bottom: 12px; color: var(--blueprint); }
:root[data-theme="dark"] .steps li::before { color: var(--sun); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .steps li::before { color: var(--sun); } }
.steps h3 { margin: 0 0 6px; font-family: var(--display); font-size: 1.2rem; }
.steps p { margin: 0; color: var(--muted); }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } .steps li + li { padding-left: 0; border-left: 0; } }

/* FAQ */
.faq { border-top: 2px solid var(--ink); max-width: 800px; }
.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 1.05rem; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--display); font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq p { color: var(--muted); margin: 10px 0 0; max-width: 65ch; }

.foot { margin-top: 96px; padding: 32px 0 40px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.9rem; }
/* Header course search */
.top__in { max-width: 1320px; gap: 16px; }
.nav { gap: 16px; overflow-x: auto; scrollbar-width: none; flex: 0 1 auto; }
.nav::-webkit-scrollbar { display: none; }
.nav a { white-space: nowrap; }
@media (max-width: 1300px) and (min-width: 641px) { .nav { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent); padding-right: 22px; } }
.top__search { display: inline-flex; align-items: center; gap: 8px; flex: none; min-width: 0; height: 40px; padding: 0 12px; border: 1px solid rgba(255,255,255,0.22); background: rgba(255,255,255,0.04); color: var(--on-blueprint-muted); border-radius: 4px; font: inherit; font-size: 0.92rem; cursor: pointer; text-align: left; }
.top__search:hover, .top__search:focus-visible { border-color: var(--sun); color: var(--on-blueprint); outline: none; }
.top__search svg { flex: none; }
.top__search .lbl { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kbd { flex: none; border: 1px solid rgba(255,255,255,0.25); border-radius: 4px; padding: 1px 6px; font-size: 0.75rem; color: var(--on-blueprint-muted); font-family: var(--body); }
@media (max-width: 1180px) { .top__search { flex: 0 0 auto; } .top__search .lbl, .top__search .kbd { display: none; } .top__search { width: 40px; padding: 0; justify-content: center; } }
@media (max-width: 640px) { .top__search { margin-left: auto; } }
.srch { position: fixed; inset: 0; z-index: 48; background: var(--overlay); display: flex; justify-content: center; align-items: flex-start; padding: 5vh 16px 16px; animation: fade 0.15s ease; }
.srch__panel { width: min(980px, 100%); max-height: 90vh; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; box-shadow: 0 24px 60px rgba(0,0,0,0.55); overflow: hidden; }
.srch__bar { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.srch__bar svg { flex: none; color: var(--muted); }
.srch__bar input { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--ink); font: inherit; font-size: 1.1rem; padding: 6px 0; outline: none; }
.srch__bar input::placeholder { color: var(--muted); }
.srch__bar input::-webkit-search-cancel-button { display: none; }
.srch__clear, .srch__close { flex: none; border: 1px solid var(--line); background: transparent; color: var(--muted); border-radius: 4px; padding: 6px 10px; font: inherit; font-size: 0.85rem; cursor: pointer; min-height: 34px; }
.srch__clear:hover, .srch__close:hover { color: var(--ink); border-color: var(--sun); }
.srch__filters { display: flex; flex-wrap: wrap; gap: 10px 12px; align-items: flex-end; padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.srch__f { display: grid; gap: 4px; font-size: 0.78rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
.srch__f select { min-width: 150px; max-width: 240px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 4px; background: var(--surface); color: var(--ink); font: inherit; font-size: 0.9rem; text-transform: none; letter-spacing: 0; }
.srch__f select:focus { outline: none; border-color: var(--sun); }
.srch__f.is-set select { border-color: var(--sun); }
.srch__lv { display: flex; gap: 6px; flex-wrap: wrap; }
.srch__lv .chip { padding: 6px 10px; font-size: 0.85rem; text-transform: none; letter-spacing: 0; min-height: 36px; }
.srch__lv .chip span { opacity: 0.7; margin-left: 4px; font-size: 0.78rem; }
.srch__reset { border: 0; background: none; color: var(--sun); font: inherit; font-size: 0.88rem; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; padding: 8px 2px; margin-left: auto; }
.srch__meta { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 10px 16px 6px; color: var(--muted); font-size: 0.88rem; }
.srch__meta strong { color: var(--ink); }
.srch__recent { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; padding: 2px 16px 8px; font-size: 0.85rem; color: var(--muted); }
.srch__recent .chip { padding: 4px 10px; font-size: 0.82rem; min-height: 30px; }
.srch__list { list-style: none; margin: 0; padding: 4px 8px 8px; overflow-y: auto; flex: 1; min-height: 120px; }
.srch__item { display: grid; grid-template-columns: 1fr auto; gap: 6px 16px; align-items: center; padding: 10px 10px; border-radius: 4px; border: 1px solid transparent; }
.srch__item.is-act { border-color: var(--sun); background: rgba(255,179,138,0.06); }
.srch__main { min-width: 0; text-align: left; background: none; border: 0; color: inherit; font: inherit; padding: 0; cursor: pointer; }
.srch__t { display: block; font-weight: 600; color: var(--ink); font-size: 1rem; line-height: 1.35; }
.srch__t mark, .srch__s mark { background: rgba(255,179,138,0.28); color: inherit; border-radius: 2px; padding: 0 1px; }
.srch__m { display: flex; flex-wrap: wrap; gap: 4px 10px; margin-top: 3px; color: var(--muted); font-size: 0.82rem; }
.srch__s { display: block; margin-top: 3px; color: var(--muted); font-size: 0.85rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.srch__badge { border: 1px solid var(--ok); color: var(--ok); border-radius: 4px; padding: 0 6px; font-size: 0.75rem; }
.srch__side { display: flex; align-items: center; gap: 10px; }
.srch__price { color: var(--sun); font-weight: 700; white-space: nowrap; }
.srch__side .btn { padding: 7px 12px; font-size: 0.85rem; min-height: 36px; white-space: nowrap; }
.srch__empty { padding: 28px 16px 32px; text-align: center; color: var(--muted); }
.srch__empty .btn { margin-top: 10px; }
.srch__more { display: flex; justify-content: center; padding: 6px 0 12px; }
.srch__foot { display: flex; gap: 16px; flex-wrap: wrap; padding: 8px 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.78rem; }
.srch__foot .kbd { color: var(--muted); border-color: var(--line); }
@media (max-width: 640px) {
  .srch { padding: 0; }
  .srch__panel { max-height: 100vh; height: 100%; border-radius: 0; border: 0; }
  .srch__filters { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding: 10px 12px; }
  .srch__filters::-webkit-scrollbar { display: none; }
  .srch__f select { min-width: 132px; }
  .srch__lv { flex-wrap: nowrap; }
  .srch__item { grid-template-columns: 1fr; }
  .srch__side { justify-content: space-between; }
  .srch__foot { display: none; }
  .srch__reset { margin-left: 0; white-space: nowrap; }
}
.srch__page { position: static; inset: auto; z-index: auto; background: none; display: block; padding: 32px 16px 56px; animation: none; min-height: 70vh; }
.srch__page .srch__head { max-width: 1100px; margin: 0 auto 18px; }
.srch__page .srch__head h1 { font-family: var(--display, inherit); font-size: clamp(1.7rem, 3vw, 2.4rem); margin: 10px 0 6px; color: var(--ink); }
.srch__page .srch__head p { margin: 0; color: var(--muted); }
.srch__back { color: var(--sun); font-size: 0.9rem; text-decoration: none; }
.srch__back:hover { text-decoration: underline; }
.srch__page .srch__panel { width: min(1100px, 100%); margin: 0 auto; max-height: none; box-shadow: none; overflow: visible; }
.srch__page .srch__list { overflow: visible; flex: none; }
.top__search.is-on { border-color: var(--sun); color: var(--sun); }
@media (max-width: 640px) { .srch__page { padding: 18px 12px 40px; } .srch__page .srch__panel { height: auto; max-height: none; border: 1px solid var(--line); border-radius: 6px; } }
.srch__item { grid-template-columns: 64px 1fr auto; }
.srch__img { width: 64px; height: 64px; padding: 0; border: 0; border-radius: 6px; overflow: hidden; background: var(--surface-2); cursor: pointer; align-self: start; }
.srch__img img, .srch__img .tile-ph { width: 100%; height: 100%; object-fit: cover; display: block; }
.cchips { display: flex; flex-wrap: wrap; gap: 6px 8px; }
.cchips--col { flex-direction: column; align-items: flex-start; margin: 10px 0; text-align: left; }
.cchip { display: inline-flex; align-items: center; gap: 8px; padding: 3px 10px 3px 3px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface-2); color: var(--ink); font: inherit; font-size: 0.88rem; line-height: 1.25; text-align: left; max-width: 100%; }
.cchip--btn { cursor: pointer; }
.cchip--btn:hover { border-color: var(--sun); }
.cchip__img { flex: none; width: 32px; height: 32px; border-radius: 4px; overflow: hidden; }
.cchip__img img, .cchip__img .tile-ph { width: 100%; height: 100%; object-fit: cover; display: block; }
.cchip__t em { font-style: normal; color: var(--ok); margin-left: 6px; font-size: 0.8rem; }
.tbl .cchip { border: 0; background: none; padding: 0; }
@media (max-width: 640px) { .srch__item { grid-template-columns: 56px 1fr; } .srch__img { width: 56px; height: 56px; } .srch__side { grid-column: 1 / -1; } }
.cpn { margin: 16px 0 4px; padding: 12px; border: 1px dashed var(--line); border-radius: 6px; }
.cpn__form label { display: block; font-size: 0.88rem; color: var(--muted); margin-bottom: 6px; }
.cpn__row { display: flex; gap: 8px; }
.cpn__row input { flex: 1; min-width: 0; padding: 9px 10px; border: 1px solid var(--line); border-radius: 4px; background: var(--surface-2, transparent); color: var(--ink); font: inherit; letter-spacing: 0.06em; text-transform: uppercase; }
.cpn__row input:focus { outline: none; border-color: var(--sun); }
.cpn__row input[aria-invalid="true"] { border-color: var(--danger); }
.cpn__row .btn { flex: none; min-height: 40px; padding: 8px 16px; }
.cpn__msg { margin: 8px 0 0; color: var(--danger); font-size: 0.88rem; }
.cpn__hint { margin: 8px 0 0; color: var(--muted); font-size: 0.82rem; }
.cpn__hint button { background: none; border: 0; padding: 0; color: var(--sun); font: inherit; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.cpn__on { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.cpn__tag { border: 1px solid var(--ok); color: var(--ok); border-radius: 4px; padding: 2px 8px; font-weight: 700; letter-spacing: 0.06em; font-size: 0.85rem; }
.cpn__txt { flex: 1; min-width: 160px; font-size: 0.9rem; }
.cpn__txt small { display: block; color: var(--muted); font-size: 0.8rem; }
.cpn__on button { background: none; border: 0; color: var(--danger); cursor: pointer; font: inherit; font-size: 0.85rem; padding: 4px 0; }
.cpn__rows { display: grid; gap: 4px; margin: 12px 0 6px; font-size: 0.92rem; color: var(--muted); }
.cpn__rows > div { display: flex; justify-content: space-between; gap: 10px; }
.cpn__disc { color: var(--ok); }
.cpn__saved { color: var(--ok); }
.line:not(:has(img)) { grid-template-columns: 1fr auto; }
.paybox > strong + span { margin-left: 0.3em; }
.brand__mark { padding: 0; }
.brand__mark .logo-svg { width: 100%; height: 100%; display: block; color: var(--on-sun); }
.foot__brand { display: inline-flex; align-items: center; gap: 10px; }
.foot__mark { width: 22px; height: 22px; flex: none; border-radius: 6px; }
.foot .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.foot__links { display: flex; flex-wrap: wrap; gap: 6px 18px; width: 100%; }
.linkbtn { background: none; border: 0; padding: 0; color: inherit; font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.linkbtn:hover { color: var(--ink); }
.foot__note { width: 100%; margin: 0; font-size: 0.82rem; line-height: 1.5; }
.legal__head { display: flex; justify-content: space-between; gap: 12px; padding: 22px 24px 8px; align-items: flex-start; }
.legal__head h2 { margin: 0; }
.legal__head p { margin: 4px 0 0; }
.legal__tabs { display: flex; gap: 6px; flex-wrap: wrap; padding: 8px 24px 12px; border-bottom: 1px solid var(--line); }
.legal__tab { background: transparent; border: 1px solid var(--line); color: var(--ink); border-radius: 999px; padding: 6px 12px; font: inherit; font-size: 0.85rem; cursor: pointer; }
.legal__tab.is-on { background: var(--ink); color: var(--surface); border-color: var(--ink); }
.legal__body { padding: 6px 24px 26px; }
.legal__body h3 { margin: 20px 0 6px; font-size: 1.02rem; }
.legal__body p { margin: 0 0 10px; color: var(--muted); line-height: 1.6; }
.agree { display: flex; gap: 10px; align-items: flex-start; margin-top: 16px; font-size: 0.88rem; line-height: 1.5; color: var(--muted); }
.agree input { margin-top: 3px; width: 18px; height: 18px; flex: none; }
.agree .linkbtn { color: var(--ink); }
.agree__err { display: block; color: #ff8a8a; font-style: normal; font-size: 0.85rem; margin-top: 6px; }

/* Modal & drawer */
.overlay { position: fixed; inset: 0; background: var(--overlay); z-index: 50; display: flex; animation: fade 0.2s ease; }
@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { transform: translateY(24px); opacity: 0; } }
@keyframes slide { from { transform: translateX(40px); opacity: 0; } }
.modal { margin: auto; width: min(760px, calc(100% - 24px)); max-height: calc(100% - 48px); overflow: auto; background: var(--surface); color: var(--ink); border-radius: 20px; animation: rise 0.25s ease; }
.modal__head { display: grid; grid-template-columns: 96px 1fr auto; gap: 20px; align-items: center; padding: 24px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--surface); }
.modal__head img { width: 96px; height: 96px; border-radius: 18px; display: block; }
.modal__head h2 { margin: 0 0 4px; font-family: var(--display); font-size: 1.6rem; letter-spacing: -0.02em; line-height: 1.1; }
.modal__head p { margin: 0; color: var(--muted); }
.x { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--surface-2); color: var(--ink); cursor: pointer; font-size: 1.3rem; line-height: 1; align-self: start; }
.modal__body { padding: 24px; }
.modal__body h3 { font-family: var(--display); font-size: 1.15rem; margin: 0 0 12px; }
.modules { list-style: none; margin: 0 0 28px; padding: 0; counter-reset: m; }
.modules li { counter-increment: m; display: grid; grid-template-columns: 36px 1fr; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line); }
.modules li::before { content: counter(m); font-family: var(--display); font-weight: 800; font-size: 1.3rem; color: var(--muted); }
.modules strong { display: block; }
.modules span { color: var(--muted); font-size: 0.93rem; }
.twocol { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 28px; }
.twocol ul { margin: 0; padding-left: 18px; color: var(--muted); }
.modal__foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 24px; border-top: 1px solid var(--line); position: sticky; bottom: 0; background: var(--surface); }
@media (max-width: 600px) { .modal__head { grid-template-columns: 64px 1fr auto; padding: 18px; } .modal__head img { width: 64px; height: 64px; } .twocol { grid-template-columns: 1fr; } .modal__body { padding: 18px; } }

.drawer { margin-left: auto; width: min(440px, 100%); height: 100%; background: var(--surface); color: var(--ink); display: flex; flex-direction: column; animation: slide 0.25s ease; padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); }
.drawer__head { display: flex; justify-content: space-between; align-items: center; padding: 20px 22px; border-bottom: 1px solid var(--line); }
.drawer__head h2 { margin: 0; font-family: var(--display); font-size: 1.4rem; }
.drawer__body { flex: 1; overflow: auto; padding: 8px 22px 22px; }
.drawer__foot { padding: 18px 22px; border-top: 1px solid var(--line); }
.line { display: grid; grid-template-columns: 52px 1fr auto; gap: 12px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.line img { width: 52px; height: 52px; border-radius: 12px; display: block; }
.line strong { display: block; line-height: 1.25; }
.line button { background: none; border: 0; color: var(--danger); cursor: pointer; padding: 0; font-size: 0.85rem; }
.total { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; }
.total strong { font-family: var(--display); font-size: 1.6rem; }
.empty { text-align: center; padding: 48px 8px; color: var(--muted); }
.field { display: block; margin: 16px 0 0; }
.field span { display: block; font-size: 0.9rem; font-weight: 600; margin-bottom: 6px; }
.field input { width: 100%; padding: 12px 14px; border-radius: 10px; border: 1.5px solid var(--line); background: var(--paper); color: var(--ink); font: inherit; }
.field input:focus { outline: none; border-color: var(--ink); }
.field em { display: block; color: var(--danger); font-style: normal; font-size: 0.85rem; margin-top: 4px; }
.note { font-size: 0.85rem; color: var(--muted); margin: 12px 0 0; }
.done { text-align: center; padding: 32px 4px; }
.done__tick { width: 64px; height: 64px; border-radius: 50%; background: var(--ok); color: #fff; display: grid; place-items: center; margin: 0 auto 16px; font-size: 1.8rem; }
.done h3 { font-family: var(--display); font-size: 1.5rem; margin: 0 0 8px; }
.done p { color: var(--muted); margin: 0 0 6px; }
.toast { position: fixed; left: 50%; bottom: calc(env(safe-area-inset-bottom, 0px) + 20px); transform: translateX(-50%); background: var(--ink); color: var(--paper); padding: 10px 18px; border-radius: 999px; z-index: 60; font-size: 0.95rem; animation: rise 0.2s ease; max-width: calc(100% - 32px); }

.paybox { background: var(--surface-2); border-radius: 12px; padding: 12px 14px; margin-top: 16px; display: grid; gap: 2px; font-size: 0.93rem; }
.paybox span { color: var(--muted); word-break: break-word; }
.payerr { color: var(--danger); font-weight: 600; margin: 12px 0 0; }
.modal.quiz { width: min(820px, calc(100% - 24px)); }
.quiz__pad { padding: 24px; }
.quiz__pad > div > h3 { font-family: var(--display); font-size: 1.1rem; margin: 0 0 10px; }
.quiz__rules { margin: 0 0 8px; padding-left: 20px; color: var(--muted); }
.quiz__rules li { margin: 4px 0; }
.quiz__bar { display: flex; justify-content: space-between; font-size: 0.9rem; color: var(--muted); margin-bottom: 8px; }
.quiz__time { font-variant-numeric: tabular-nums; font-weight: 600; color: var(--ink); }
.quiz__time--low { color: var(--danger); }
.quiz__progress { height: 6px; background: var(--surface-2); border-radius: 3px; overflow: hidden; }
.quiz__progress i { display: block; height: 100%; background: var(--sun); transition: width 0.25s ease; }
.quiz__q { font-family: var(--display); font-size: 1.35rem; line-height: 1.25; margin: 24px 0 16px; }
.quiz__opts { display: grid; gap: 10px; }
.quiz__opt { display: grid; grid-template-columns: 32px 1fr; gap: 12px; align-items: center; text-align: left; padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--paper); color: var(--ink); cursor: pointer; }
.quiz__opt b { width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; background: var(--surface-2); font-size: 0.9rem; }
.quiz__opt:hover { border-color: var(--muted); }
.quiz__opt.is-on { border-color: var(--ink); background: var(--surface-2); }
.quiz__opt.is-on b { background: var(--sun); color: var(--on-sun); }
.quiz__nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 24px; }
.quiz__score { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.quiz__score strong { font-family: var(--display); font-size: 4rem; line-height: 1; letter-spacing: -0.04em; }
.quiz__score.is-pass strong { color: var(--ok); }
.quiz__score.is-fail strong { color: var(--danger); }
.quiz__score span { color: var(--muted); }
.quiz__verdict { font-family: var(--display); font-size: 1.25rem; margin: 12px 0 24px; }
.quiz__review { padding-left: 20px; margin: 0 0 24px; }
.quiz__review li { margin: 0 0 14px; }
.quiz__review span { display: block; color: var(--muted); font-size: 0.93rem; }
.quiz__review .ok { color: var(--ok); }
.cert__img { width: 100%; height: auto; border-radius: 8px; display: block; box-shadow: 0 0 0 1px var(--line); }
.cert__loading { aspect-ratio: 1600 / 1131; display: grid; place-items: center; background: var(--surface-2); border-radius: 8px; color: var(--muted); }
.cert__meta { display: flex; flex-wrap: wrap; gap: 12px 28px; margin: 18px 0; }
.cert__meta dt { font-size: 0.8rem; color: var(--muted); }
.cert__meta dd { margin: 0; font-weight: 600; word-break: break-all; }
.quiz__sub { list-style: none; margin-left: -4px !important; font-size: 0.93rem; }
.quiz__sub::before { content: "– "; }
.quiz__text { width: 100%; padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--paper); color: var(--ink); font: inherit; line-height: 1.55; resize: vertical; }
.quiz__text:focus { outline: none; border-color: var(--ink); }
.quiz__hint { display: flex; justify-content: space-between; gap: 12px; font-size: 0.85rem; color: var(--muted); margin-top: 6px; }
.quiz__leave { background: var(--surface-2); border-radius: 12px; padding: 14px; margin-bottom: 16px; display: grid; gap: 10px; }
.quiz__leave .btnrow { justify-content: flex-start; }
.qnav { display: grid; grid-template-columns: repeat(auto-fill, minmax(36px, 1fr)); gap: 6px; margin-top: 24px; }
.qnav__b { height: 36px; border-radius: 8px; border: 1.5px solid var(--line); background: var(--paper); color: var(--ink); cursor: pointer; font-size: 0.85rem; font-weight: 600; }
.qnav__b.is-written { border-style: dashed; }
.qnav__b.is-done { background: var(--surface-2); border-color: var(--muted); border-style: solid; }
.qnav__b.is-here { border-color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.quiz__break { list-style: none; padding: 0; margin: 0 0 12px; border-top: 1px solid var(--line); }
.quiz__break li { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--line); }
.quiz__yours { white-space: pre-wrap; }
.pts { list-style: none; padding: 0; margin: 4px 0 0; font-size: 0.93rem; }
.pts .is-hit { color: var(--ok); }
.pts .is-miss { color: var(--muted); }
.quiz__palette { display: grid; grid-template-columns: repeat(auto-fill, minmax(34px, 1fr)); gap: 6px; margin: 16px 0 4px; }
.quiz__pal { height: 34px; border-radius: 8px; border: 1.5px solid var(--line); background: var(--paper); color: var(--muted); font-size: 0.85rem; cursor: pointer; padding: 0; }
.quiz__pal.is-done { background: var(--surface-2); color: var(--ink); border-color: var(--surface-2); }
.quiz__pal.is-current { border-color: var(--ink); color: var(--ink); font-weight: 600; }
.quiz__sec { margin: 18px 0 0; font-size: 0.9rem; font-weight: 600; color: var(--muted); }
.quiz__sec + .quiz__q { margin-top: 6px; }
.quiz__text { width: 100%; padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--paper); color: var(--ink); font: inherit; line-height: 1.55; resize: vertical; }
.quiz__text:focus { outline: none; border-color: var(--ink); }
.quiz__review .mark { color: var(--ink); font-weight: 600; }
.quiz__review .ans { white-space: pre-wrap; }
.quiz__review .miss { color: var(--danger); }
.modal.learn { width: min(1060px, calc(100% - 24px)); }
.learn__progress { height: 4px; background: var(--surface-2); overflow: hidden; }
.learn__progress i { display: block; height: 100%; background: var(--sun); transition: width 0.3s ease; }
.learn__progress--row { max-width: 320px; height: 6px; border-radius: 3px; margin-top: 2px; }
.learn__grid { display: grid; grid-template-columns: 280px 1fr; align-items: start; }
.learn__nav { border-right: 1px solid var(--line); padding: 8px 16px 20px; }
.learn__nav summary { cursor: pointer; font-weight: 600; padding: 10px 0; }
@media (min-width: 761px) { .learn__nav summary { display: none; } .learn__nav { position: sticky; top: 145px; } }
.learn__lvl p { margin: 14px 0 6px; font-size: 0.82rem; font-weight: 600; color: var(--muted); }
.learn__lvl ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.learn__item { width: 100%; display: grid; grid-template-columns: 26px 1fr; gap: 10px; align-items: center; text-align: left; padding: 8px 10px; border: 0; border-radius: 10px; background: transparent; color: var(--ink); cursor: pointer; font-size: 0.92rem; line-height: 1.3; }
.learn__item:hover:not(:disabled) { background: var(--surface-2); }
.learn__item.is-current { background: var(--surface-2); font-weight: 600; }
.learn__item:disabled { color: var(--muted); cursor: not-allowed; opacity: 0.55; }
.learn__mark { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 0.78rem; box-shadow: inset 0 0 0 1.5px var(--line); }
.learn__item.is-done .learn__mark { background: var(--ok); color: var(--surface); box-shadow: none; }
.learn__item.is-current .learn__mark { box-shadow: inset 0 0 0 2px var(--ink); }
.learn__body { padding: 24px 28px 32px; min-width: 0; }
.learn__body > p { max-width: 68ch; }
.learn__level { margin: 0; font-size: 0.85rem; font-weight: 600; color: var(--muted); }
.learn__title { font-family: var(--display); font-size: clamp(1.4rem, 3vw, 1.9rem); letter-spacing: -0.02em; line-height: 1.15; margin: 4px 0 16px; }
.learn__code { background: var(--blueprint); color: var(--on-blueprint); border-radius: 12px; padding: 16px; overflow-x: auto; font-family: var(--mono); font-size: 0.86rem; line-height: 1.55; margin: 20px 0; white-space: pre; }
.learn__points { background: var(--surface-2); border-radius: 12px; padding: 14px 18px; margin: 20px 0; }
.learn__points h4 { margin: 0 0 6px; font-family: var(--display); font-size: 1rem; }
.learn__points ul { margin: 0; padding-left: 20px; }
.learn__points li { margin: 4px 0; }
.learn__actions { display: flex; justify-content: space-between; gap: 12px; margin-top: 24px; flex-wrap: wrap; }
.learn__ready { margin-top: 24px; padding: 18px; border-radius: 14px; box-shadow: inset 0 0 0 2px var(--ok); }
.learn__ready p { margin: 6px 0 14px; color: var(--muted); }
@media (max-width: 760px) { .learn__grid { grid-template-columns: 1fr; } .learn__nav { border-right: 0; border-bottom: 1px solid var(--line); } .learn__body { padding: 20px 18px 28px; } }
a.btn { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.learn__guide { display: flex; width: 100%; margin: 12px 0 2px; font-size: 0.88rem; }
.learn__pdf { margin-top: 8px; border: 0; background: var(--sun); color: var(--on-sun); font: inherit; font-weight: 600; font-size: 0.85rem; padding: 6px 12px; border-radius: 8px; cursor: pointer; }
.learn__pdf:hover { filter: brightness(0.96); }
/* Black and peach theme */
:root, :root:not([data-theme="light"]), :root[data-theme="dark"], :root[data-theme="light"] {
  --paper: #0b0908; --surface: #161211; --surface-2: #241d1a; --ink: #fcefe7; --muted: #bba79c; --line: #3a2f2b;
  --blueprint: #000000; --blueprint-grid: rgba(255, 179, 138, 0.08); --on-blueprint: #fff4ee; --on-blueprint-muted: #cdb5a8;
  --sun: #ffb38a; --on-sun: #1a0f0a; --ok: #7fd1a8; --danger: #ff8f80; --overlay: rgba(0, 0, 0, 0.72);
  color-scheme: dark;
}
.steps li::before { color: var(--sun) !important; }
.top { border-bottom-color: rgba(255, 179, 138, 0.18); }
.hero h1 { color: var(--on-blueprint); }
.hero h1::after { content: ""; display: block; width: 72px; height: 6px; border-radius: 3px; background: var(--sun); margin-top: 18px; }
.btn--sun { box-shadow: 0 6px 18px rgba(255, 179, 138, 0.18); }
.course__art { box-shadow: 0 0 0 1px var(--line); }
.modal, .drawer { box-shadow: 0 0 0 1px var(--line); }
.learn__code { box-shadow: inset 0 0 0 1px var(--line); }
.faq summary::after, .price { color: var(--sun); }
.finder { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 0 0 10px; }
.finder__search { flex: 1 1 260px; }
.finder__search input, .finder__sort select { width: 100%; padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; }
.finder__search input::placeholder { color: var(--muted); }
.finder__search input:focus, .finder__sort select:focus { outline: none; border-color: var(--sun); }
.finder__chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { border: 1.5px solid var(--line); background: transparent; color: var(--ink); border-radius: 999px; padding: 8px 14px; cursor: pointer; font: inherit; font-size: 0.9rem; }
.chip:hover { border-color: var(--sun); }
.chip.is-on { background: var(--sun); color: var(--on-sun); border-color: var(--sun); font-weight: 600; }
.finder__sort { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 0.9rem; }
.finder__sort select { width: auto; }
.finder__count { color: var(--muted); font-size: 0.9rem; margin: 0 0 12px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* Plain, hand-built look */
body { font-family: var(--body); font-size: 16px; line-height: 1.55; letter-spacing: 0; }
h1, h2, h3, h4, .brand, .price, .hero h1, .section h2, .course h3, .modal__head h2, .learn__title, .quiz__q, .quiz__verdict,
.infinite-menu__title, .total strong, .done h3, .drawer__head h2, .steps h3 { font-family: var(--body); letter-spacing: 0 !important; }
.hero { background-image: none; }
.hero__head { padding-top: 40px; }
.hero h1 { font-size: clamp(2rem, 4.6vw, 3.1rem); line-height: 1.12; font-weight: 700; }
.hero h1::after { display: none; }
.hero__lede { font-size: 1rem; }
.section { padding-top: 64px; }
.section h2 { font-size: 1.6rem; font-weight: 700; line-height: 1.2; }
.section__intro { margin-bottom: 24px; }
.brand { font-weight: 700; font-size: 1.05rem; }
.brand__mark { border-radius: 4px; width: 28px; height: 28px; }
.btn, .cartbtn, .chip, .finder__search input, .finder__sort select, .field input, .quiz__text, .quiz__opt, .quiz__pal,
.learn__item, .learn__pdf, .x, .toast, .facts li, .learn__points, .learn__code, .learn__ready, .paybox, .course__art,
.modal, .cert__img, .cert__loading, .infinite-menu__action { border-radius: 4px !important; }
.x { width: 34px; height: 34px; font-size: 1.1rem; }
.btn { padding: 9px 14px; font-weight: 600; font-size: 0.92rem; }
.btn--sun, .btn--sun:hover { box-shadow: none; filter: none; }
.btn--sun:hover { background: #ffc4a3; }
.btn--ghost { box-shadow: inset 0 0 0 1px var(--line); }
.chip { padding: 6px 12px; font-size: 0.88rem; }
.courses { border-top: 1px solid var(--line); }
.course { padding: 22px 0; gap: 22px; }
.course h3 { font-size: 1.15rem; font-weight: 700; }
.course__art, .course__art img { border-radius: 4px; }
.facts li { background: transparent; box-shadow: inset 0 0 0 1px var(--line); color: var(--muted); font-size: 0.8rem; padding: 2px 8px; }
.price { font-size: 1.35rem; font-weight: 700; }
.steps li { border-top-width: 1px; }
.steps li::before { font-size: 1rem; font-weight: 700; font-family: var(--mono); margin-bottom: 8px; }
.steps li::before { content: "0" counter(s); }
.faq { border-top-width: 1px; }
.faq summary { font-weight: 600; font-size: 1rem; }
.modal__head h2 { font-size: 1.3rem; font-weight: 700; }
.modal__head img { border-radius: 4px; }
.learn__title { font-size: 1.5rem; font-weight: 700; }
.quiz__score strong { font-family: var(--body); font-size: 3rem; }
.infinite-menu__title { font-weight: 700 !important; }
.toast { font-size: 0.9rem; }
/* Phone layout */
@media (pointer: coarse) {
  .infinite-menu__canvas { touch-action: pan-y; }
  .chip, .btn, .cartbtn { min-height: 42px; }
  .quiz__pal { height: 40px; }
}
@media (max-width: 640px) {
  .top__in { flex-wrap: wrap; row-gap: 0; padding: 10px 16px 0; }
  .nav { display: flex; order: 3; width: 100%; margin: 0; gap: 20px; overflow-x: auto; padding: 8px 0 10px; scrollbar-width: none; }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { white-space: nowrap; font-size: 0.92rem; }
  .cartbtn { margin-left: auto; }
  html { scroll-padding-top: calc(env(safe-area-inset-top, 0px) + 110px); }
  .wrap, .hero__head { padding-left: 16px; padding-right: 16px; }
  .hero__head { padding-top: 28px; padding-bottom: 20px; gap: 14px; }
  .hero__menu { height: 420px; }
  .hero__hint { padding-bottom: 20px; font-size: 0.85rem; }
  .section { padding-top: 48px; }
  .course { grid-template-columns: 72px 1fr; gap: 14px; align-items: start; padding: 18px 0; }
  .course__art { width: 72px; height: 72px; }
  .course__sum { font-size: 0.92rem; margin-bottom: 10px; }
  .course__buy { flex-wrap: wrap; gap: 10px; }
  .course__buy .btnrow { flex: 1 1 auto; justify-content: flex-end; }
  .finder { gap: 10px; }
  .finder__search { flex-basis: 100%; }
  .finder__chips { flex: 1 1 100%; }
  .finder__sort { flex: 1 1 100%; }
  .finder__sort select { flex: 1; }
  .overlay { align-items: stretch; }
  .modal, .modal.learn, .modal.quiz { width: 100%; max-height: none; height: 100%; margin: 0; border-radius: 0 !important; display: flex; flex-direction: column; overflow: auto; }
  .modal__head { padding: 14px 16px; padding-top: calc(env(safe-area-inset-top, 0px) + 14px); grid-template-columns: 52px 1fr auto; gap: 12px; }
  .modal__head img { width: 52px; height: 52px; }
  .modal__head h2 { font-size: 1.1rem; }
  .modal__body, .quiz__pad, .learn__body { padding: 16px; }
  .modal__foot { padding: 12px 16px; padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 12px); }
  .learn__nav { padding: 4px 16px 10px; }
  .learn__actions { position: sticky; bottom: 0; background: var(--surface); padding: 12px 0; padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 12px); margin: 16px 0 0; }
  .learn__actions .btn { flex: 1 1 0; }
  .quiz__nav { position: sticky; bottom: 0; background: var(--surface); padding: 12px 0; padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 12px); margin-top: 16px; }
  .quiz__nav .btn { flex: 1 1 0; }
  .quiz__q { font-size: 1.15rem; margin-top: 16px; }
  .quiz__palette { grid-template-columns: repeat(auto-fill, minmax(38px, 1fr)); }
  .cert__meta { gap: 10px 20px; }
  .drawer { width: 100%; }
  .steps li { padding: 18px 0; }
  .foot .wrap { flex-direction: column; gap: 6px; }
}
.modal.reader, .modal.kp { display: flex; flex-direction: column; overflow: hidden; }
.modal.reader { width: min(980px, calc(100% - 24px)); height: min(940px, calc(100% - 32px)); max-height: none; }
.modal.kp { width: min(860px, calc(100% - 24px)); max-height: calc(100% - 32px); }
.modal.reader .modal__head, .modal.kp .modal__head { position: static; flex: 0 0 auto; }
.reader__bar { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; padding: 8px 16px; border-bottom: 1px solid var(--line); flex: 0 0 auto; }
.reader__where { color: var(--muted); font-size: 0.9rem; }
.reader__tools { display: flex; gap: 6px; flex-wrap: wrap; }
.reader__tools .btn { padding: 6px 10px; min-height: 36px; font-size: 0.85rem; }
.reader__scroll { flex: 1 1 auto; min-height: 0; overflow: auto; background: #000; padding: 14px 12px 36px; -webkit-overflow-scrolling: touch; }
.reader__scroll:focus-visible { outline-offset: -3px; }
.reader__pages { display: flex; flex-direction: column; gap: 12px; width: max-content; margin: 0 auto; }
.reader__page { background: #fff; aspect-ratio: 595.28 / 841.89; }
.reader__page canvas { display: block; width: 100%; height: 100%; }
.reader__note { color: var(--on-blueprint-muted); max-width: 44ch; margin: 40px auto; text-align: center; }
.reader__note .btn { display: inline-block; text-decoration: none; }
.reader__foot { flex: 0 0 auto; border-top: 1px solid var(--line); padding: 10px 16px; padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 10px); display: grid; gap: 8px; background: var(--surface); }
.reader__meter { height: 4px; background: var(--surface-2); }
.reader__meter i { display: block; height: 100%; background: var(--sun); transition: width 0.3s ease; }
.reader__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.reader__msg { margin: 0; font-size: 0.92rem; color: var(--muted); flex: 1 1 220px; }
.reader__sure { display: flex; gap: 8px; align-items: center; font-size: 0.92rem; }
.reader__sure input { accent-color: var(--sun); width: 18px; height: 18px; }
.kp__body { flex: 1 1 auto; min-height: 0; overflow: auto; padding: 20px 24px; }
.kp__intro { color: var(--muted); margin: 0 0 8px; max-width: 62ch; }
.kp__level { margin-top: 22px; }
.kp__level > h3 { margin: 0 0 8px; font-size: 1.15rem; padding-bottom: 6px; border-bottom: 1px solid var(--line); }
.kp__lesson { margin: 14px 0; }
.kp__lesson h4 { margin: 0 0 4px; font-size: 1rem; }
.kp__lesson ul { margin: 0; padding-left: 20px; }
.kp__lesson li { margin: 3px 0; }
.kp__foot { flex: 0 0 auto; border-top: 1px solid var(--line); padding: 12px 24px; padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 12px); display: flex; gap: 10px; justify-content: space-between; align-items: center; flex-wrap: wrap; background: var(--surface); }
.kp__facts { color: var(--muted); font-size: 0.9rem; }
.kp__btns { display: flex; gap: 8px; flex-wrap: wrap; }
@media (max-width: 640px) {
  .modal.reader, .modal.kp { width: 100%; height: 100%; max-height: none; margin: 0; border-radius: 0 !important; }
  .reader__bar { padding: 6px 12px; }
  .reader__foot { padding: 10px 12px; padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 10px); }
  .reader__row .btn { flex: 1 1 100%; }
  .kp__body { padding: 16px; }
  .kp__foot { padding: 12px 16px; padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 12px); }
  .kp__btns { width: 100%; }
  .kp__btns .btn { flex: 1 1 0; }
}
.nav a { white-space: nowrap; }
.plain { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.plain > li { display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--line); }
.plain h3 { margin: 0 0 4px; font-size: 1.1rem; font-weight: 700; }
.plain p { margin: 0; color: var(--muted); max-width: 64ch; }
.plain .meta, .meta { color: var(--muted); font-size: 0.88rem; margin: 6px 0 0; }
.notice__label { display: block; font-weight: 700; margin-bottom: 2px; }
.prog { padding: 20px 0; border-bottom: 1px solid var(--line); }
.prog:first-of-type { border-top: 1px solid var(--line); }
.prog__head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; flex-wrap: wrap; }
.prog h3 { margin: 0 0 4px; font-size: 1.1rem; font-weight: 700; }
.prog__about { margin: 0; color: var(--muted); max-width: 64ch; }
.prog__state { color: var(--ok); font-weight: 600; }
.prog table { width: 100%; border-collapse: collapse; margin-top: 12px; font-size: 0.92rem; }
.prog th, .prog td { text-align: left; padding: 7px 12px 7px 0; border-top: 1px solid var(--line); vertical-align: top; }
.prog th { color: var(--muted); font-weight: 600; width: 110px; white-space: nowrap; }
.campus__top { display: flex; justify-content: space-between; gap: 20px; align-items: flex-start; flex-wrap: wrap; margin-bottom: 8px; }
.campus__name { margin: 0; font-size: 1.4rem; }
.campus__rename { margin-top: 12px; display: flex; gap: 8px; flex-wrap: wrap; }
.campus__rename input { padding: 9px 12px; border: 1px solid var(--line); border-radius: 4px; background: var(--surface); color: var(--ink); font: inherit; min-width: 220px; }
.campus__rename input:focus { outline: none; border-color: var(--sun); }
.campus h3, #campus h3.sub { margin: 28px 0 8px; font-size: 1.1rem; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); margin: 20px 0 0; border: 1px solid var(--line); }
.stats > div { padding: 14px 16px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: -0px; }
.stats dt { color: var(--muted); font-size: 0.82rem; }
.stats dd { margin: 2px 0 0; font-size: 1.5rem; font-weight: 700; }
.bars { display: flex; align-items: flex-end; gap: 8px; margin: 10px 0 6px; max-width: 560px; }
.bars > div { flex: 1; text-align: center; font-size: 0.78rem; color: var(--muted); display: flex; flex-direction: column; justify-content: flex-end; align-items: center; min-height: 130px; }
.bars i { display: block; width: 100%; background: var(--sun); }
.tbl-wrap { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: 0.92rem; min-width: 560px; }
.tbl th, .tbl td { padding: 9px 10px 9px 0; border-top: 1px solid var(--line); text-align: left; white-space: nowrap; }
.tbl th { color: var(--muted); font-weight: 600; }
.tbl td:first-child { white-space: normal; min-width: 180px; }
.tbl tfoot td { font-weight: 700; }
.diplomas { display: grid; gap: 10px; margin: 6px 0 0; padding: 0; list-style: none; }
.diplomas li { display: flex; justify-content: space-between; gap: 12px; align-items: center; flex-wrap: wrap; padding: 10px 0; border-top: 1px solid var(--line); }
@media (max-width: 640px) {
  .plain > li { grid-template-columns: 1fr; gap: 10px; }
  .prog th { width: 84px; }
  .campus__rename input { min-width: 0; flex: 1 1 160px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
}
.finder__sort { min-width: 0; }
.finder__sort select { min-width: 0; max-width: 100%; text-overflow: ellipsis; }
@media (max-width: 640px) { .finder__sort select { width: 100%; } }
.hero h2.hero__title { font-family: var(--display); font-weight: 800; font-size: clamp(2.3rem, 6vw, 4.6rem); line-height: 0.98; letter-spacing: -0.04em; margin: 0; color: var(--on-blueprint); }
.hero h2.hero__title::after { content: ""; display: block; width: 72px; height: 6px; border-radius: 3px; background: var(--sun); margin-top: 18px; }
a.btn { display: inline-block; text-decoration: none; text-align: center; }
.announce { background: var(--sun); color: #1a0f0a; font-size: 0.92rem; font-weight: 600; padding: 9px 16px; display: flex; gap: 6px 14px; justify-content: center; align-items: center; flex-wrap: wrap; text-align: center; }
.announce button { background: #1a0f0a; color: var(--sun); border: 0; border-radius: 4px; padding: 6px 12px; font-weight: 700; cursor: pointer; min-height: 34px; }
.top__apply { margin-left: 8px; padding: 8px 14px; min-height: 40px; font-size: 0.9rem; white-space: nowrap; }
.hero__cta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.faculties { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); margin-top: 22px; }
.faculty { padding: 22px; border-right: 1px solid var(--line); display: grid; gap: 8px; align-content: start; }
.faculty:last-child { border-right: 0; }
.faculty h3 { margin: 0; font-size: 1.2rem; }
.faculty p { margin: 0; color: var(--muted); }
.faculty .btn { justify-self: start; margin-top: 4px; }
.plan { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; border: 1px solid var(--line); border-left: 4px solid var(--sun); padding: 22px; }
.plan__price { font-size: 2.4rem; font-weight: 800; line-height: 1.1; }
.plan__price span { font-size: 1rem; font-weight: 400; color: var(--muted); }
.plan__list { margin: 12px 0 0; padding-left: 20px; color: var(--muted); }
.plan__list li { margin: 3px 0; }
.plan__act { display: grid; gap: 10px; justify-items: start; }
.plan__state { color: var(--ok); font-weight: 600; margin: 0; }
@media (max-width: 760px) { .faculties { grid-template-columns: 1fr; } .faculty { border-right: 0; border-bottom: 1px solid var(--line); } .faculty:last-child { border-bottom: 0; } }
@media (max-width: 640px) { .plan { grid-template-columns: 1fr; padding: 16px; } .plan__act .btn { width: 100%; } .top__apply { margin-left: 0; } }
.brand, .brand__sub { white-space: nowrap; flex-shrink: 0; }
.nav { min-width: 0; }
@media (max-width: 640px) { .announce { font-size: 0.84rem; padding: 7px 12px; } }
.btn, .cartbtn, .course, .faculty { -webkit-tap-highlight-color: transparent; }
button, a.btn { touch-action: manipulation; }
.btn { transition: transform 0.15s ease, background-color 0.2s ease, border-color 0.2s ease, opacity 0.2s ease, box-shadow 0.2s ease; }
.btn:hover:not(:disabled) { transform: translateY(-1px); }
.btn:active:not(:disabled) { transform: translateY(0) scale(0.97); }
.course__art img { transition: transform 0.4s ease; }
.course:hover .course__art img { transform: scale(1.05); }
.overlay, .drawer, .modal { overscroll-behavior: contain; }
.rv { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.rv.in { opacity: 1; transform: none; }
.logos { padding-top: 8px; }
.logos__view { overflow: hidden; margin-top: 16px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.logos__track { display: flex; width: max-content; animation: marquee 45s linear infinite; will-change: transform; }
.logos__set { display: flex; gap: 52px; padding-right: 52px; }
@media (hover: hover) and (pointer: fine) { .logos:hover .logos__track { animation-play-state: paused; } }
.logo { display: flex; align-items: center; gap: 10px; color: var(--muted); font-weight: 600; font-size: 1.05rem; white-space: nowrap; opacity: 0.8; transition: opacity 0.2s ease, color 0.2s ease; }
.logo:hover { opacity: 1; color: var(--ink); }
.logo svg { width: 28px; height: 28px; flex: none; fill: currentColor; }
.logos__note { margin: 14px 0 0; font-size: 0.8rem; color: var(--muted); max-width: 70ch; }
.logo__img { height: 30px; width: auto; display: block; flex: none; }
.logo__img--nvidia { height: 36px; }
.logo__img--anthropic { height: 28px; }
.logo__img--google { height: 30px; }
.logos__set { gap: 14px; padding-right: 14px; }
.logo { background: #ffffff; color: #1a1a1a; border-radius: 14px; height: 62px; padding: 0 20px; opacity: 0.94; }
.logo:hover { color: #1a1a1a; opacity: 1; }
.logo span { color: #1a1a1a; }
.logo svg { fill: #1a1a1a; }
.logo__img--intel, .logo__img--nvidia { height: 42px; }
.logo__img--github, .logo__img--apple { height: 34px; }
.logo__img--hugging { height: 38px; }
.logo__img--amazon { height: 32px; }
.founders { display: grid; grid-template-columns: repeat(2, 1fr); border: 1px solid var(--line); margin-top: 22px; }
.founder { padding: 22px; display: flex; gap: 16px; align-items: center; border-right: 1px solid var(--line); }
.founder:last-child { border-right: 0; }
.founder__av { width: 56px; height: 56px; border-radius: 50%; background: var(--sun); color: #1a0f0a; display: grid; place-items: center; font-weight: 800; font-size: 1.15rem; flex: none; }
.founder h3 { margin: 0; font-size: 1.2rem; }
.founder p { margin: 2px 0 0; color: var(--muted); }
@media (max-width: 640px) { .founders { grid-template-columns: 1fr; } .founder { border-right: 0; border-bottom: 1px solid var(--line); } .founder:last-child { border-bottom: 0; } }
.logo__img--meta, .logo__img--microsoft, .logo__img--openai { height: 30px; }
@media (max-width: 640px) { .logo { height: 54px; padding: 0 16px; } .logo__img--intel, .logo__img--nvidia { height: 36px; } }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .logos__track { animation: none; width: auto; flex-wrap: wrap; } .logos__set--dup { display: none; } .logos__set { flex-wrap: wrap; row-gap: 18px; } .rv { opacity: 1; transform: none; } }
/* InfiniteMenu component CSS (React Bits) */
.infinite-menu { position: relative; width: 100%; height: 100%; overflow: hidden; outline: none; container-type: inline-size; color: var(--infinite-menu-text); -webkit-tap-highlight-color: transparent; }
.infinite-menu:focus-visible { box-shadow: none; }
.infinite-menu__canvas { position: absolute; inset: 0; display: block; width: 100%; height: 100%; cursor: grab; touch-action: none; }
.infinite-menu__canvas:active { cursor: grabbing; }
.infinite-menu__info, .infinite-menu__custom { position: absolute; inset: 0; pointer-events: none; }
.infinite-menu__title, .infinite-menu__description, .infinite-menu__action { transition: opacity 0.45s ease, transform 0.45s cubic-bezier(0.22, 1, 0.36, 1); }
.infinite-menu__title { position: absolute; top: 50%; right: calc(50% + var(--infinite-menu-tile, 160px) + 28px); max-width: calc(50% - var(--infinite-menu-tile, 160px) - 48px); margin: 0; font-family: var(--display); font-size: clamp(1.2rem, calc((50cqw - var(--infinite-menu-tile, 160px)) * 0.2), 3.4rem); font-weight: 800; line-height: 1.05; letter-spacing: -0.03em; text-align: right; text-shadow: var(--infinite-menu-shadow); transform: translateY(-50%); text-wrap: balance; }
.infinite-menu__description { position: absolute; top: 50%; left: calc(50% + var(--infinite-menu-tile, 160px) + 28px); max-width: min(22ch, calc(50% - var(--infinite-menu-tile, 160px) - 48px)); margin: 0; font-size: clamp(0.85rem, 1.5cqw, 1.05rem); line-height: 1.55; text-shadow: var(--infinite-menu-shadow); opacity: 0.8; transform: translateY(-50%); }
.infinite-menu__action { position: absolute; bottom: 7%; left: 50%; display: grid; place-items: center; width: 52px; height: 52px; padding: 0; border: none; border-radius: 50%; background: var(--infinite-menu-accent); color: var(--infinite-menu-on-accent); cursor: pointer; pointer-events: auto; transform: translateX(-50%); }
.infinite-menu__action:hover { transform: translateX(-50%) scale(1.06); }
.infinite-menu__action:focus-visible { outline: 2px solid var(--infinite-menu-accent); outline-offset: 3px; }
.infinite-menu__info[data-moving='true'] .infinite-menu__title { opacity: 0; transform: translate(16px, -50%); transition-duration: 0.18s; }
.infinite-menu__info[data-moving='true'] .infinite-menu__description { opacity: 0; transform: translate(-16px, -50%); transition-duration: 0.18s; }
.infinite-menu__info[data-moving='true'] .infinite-menu__action { opacity: 0; pointer-events: none; transform: translate(-50%, 16px) scale(0.6); transition-duration: 0.18s; }
.infinite-menu__info[data-layout='stacked'] .infinite-menu__title { top: auto; right: 88px; bottom: 52px; left: 20px; max-width: none; font-size: clamp(1.3rem, 6cqw, 1.8rem); text-align: left; transform: none; }
.infinite-menu__info[data-layout='stacked'] .infinite-menu__description { top: auto; right: 88px; bottom: 22px; left: 20px; max-width: 36ch; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transform: none; }
.infinite-menu__info[data-layout='stacked'] .infinite-menu__action { right: 20px; bottom: 22px; left: auto; transform: none; }
.infinite-menu__info[data-layout='stacked'] .infinite-menu__action:hover { transform: scale(1.06); }
.infinite-menu__info[data-layout='stacked'][data-moving='true'] .infinite-menu__title,
.infinite-menu__info[data-layout='stacked'][data-moving='true'] .infinite-menu__description { transform: translateY(12px); }
.infinite-menu__info[data-layout='stacked'][data-moving='true'] .infinite-menu__action { transform: translateY(12px) scale(0.6); }
.nogl { position: absolute; inset: 0; display: grid; place-items: center; color: var(--on-blueprint-muted); padding: 20px; text-align: center; }
.more { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px; margin: 24px 0 0; }
.more .meta { margin: 0; }
.courses > .course { content-visibility: auto; contain-intrinsic-size: auto 170px; }
.teachers { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); margin-top: 22px; }
.teacher { padding: 22px; border-right: 1px solid var(--line); display: grid; gap: 8px; align-content: start; }
.teacher:last-child { border-right: 0; }
.teacher h3 { margin: 0; font-size: 1.2rem; }
.teacher p { margin: 0; color: var(--muted); }
.teacher .teacher__field { color: var(--ink); font-weight: 600; }
.teacher .btn { justify-self: start; margin-top: 4px; }
.teacher__id { display: flex; gap: 14px; align-items: center; }
.teacher__av img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }
.teacher__av { overflow: hidden; width: 60px; height: 60px; border-radius: 50%; color: #1a0f0a; display: grid; place-items: center; font-weight: 800; font-size: 1.25rem; flex: none; }
.teacher__tag { margin: 2px 0 0; font-size: 0.85rem; color: var(--muted); }
@media (max-width: 760px) { .teachers { grid-template-columns: 1fr; } .teacher { border-right: 0; border-bottom: 1px solid var(--line); } .teacher:last-child { border-bottom: 0; } }
.drawer--chat { width: min(520px, 100%); }
.drawer--chat .drawer__head h2 { font-size: 1.2rem; }
.chat { display: flex; flex-direction: column; gap: 10px; padding-top: 14px; }
.chat__course { display: grid; gap: 4px; font-size: 0.85rem; color: var(--muted); }
.chat__course select { width: 100%; font: inherit; color: var(--ink); background: var(--surface); border: 1.5px solid var(--line); border-radius: 10px; padding: 8px 10px; }
.chat__mode { margin: 0; font-size: 0.82rem; color: var(--muted); }
.chat__msg { padding: 10px 14px; border-radius: 14px; max-width: 92%; white-space: pre-wrap; line-height: 1.55; overflow-wrap: anywhere; }
.chat__msg--me { align-self: flex-end; background: var(--sun); color: #1a0f0a; }
.chat__msg--ai { align-self: flex-start; background: var(--surface-2); color: var(--ink); }
.chat__note { margin: 0; font-size: 0.85rem; color: var(--danger, #c2410c); }
.chat__chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.chat__form { display: flex; gap: 8px; align-items: flex-end; }
.chat__form textarea { flex: 1; resize: none; font: inherit; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); }
/* device-fit v1 */
@media (max-width: 480px) {
  .top__apply { display: none; }
  .brand__sub { display: none; }
  .top__in { gap: 10px; padding: 8px 14px 0; }
  .brand { font-size: 1.05rem; gap: 8px; min-width: 0; flex: 0 1 auto; white-space: nowrap; }
  .cartbtn { padding: 8px 12px; gap: 6px; margin-left: auto; }
  .top__search { margin-left: auto; }
  .nav { gap: 4px; padding: 0 0 4px; }
  .nav a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 10px; }
  .infinite-menu__action { width: 40px; height: 40px; }
  .srch__f select { text-overflow: ellipsis; }
}
@media (max-width: 340px) { .top__in { padding: 8px 10px 0; gap: 6px; } .brand { font-size: 0.86rem; gap: 5px; } .brand__mark { width: 26px; height: 26px; } .top__search { width: 36px; } .cartbtn { padding: 8px 8px; gap: 4px; } }
@media (min-width: 341px) and (max-width: 380px) { .brand { font-size: 0.92rem; gap: 6px; } .cartbtn { padding: 8px 9px; } .top__in { gap: 8px; } }
@media (max-width: 640px) { .foot .linkbtn { padding: 10px 2px; min-height: 40px; } }
@media (pointer: coarse) { .nav a { min-height: 40px; display: inline-flex; align-items: center; } }
/* id photo */
.idph { display: flex; flex-direction: column; align-items: center; gap: 8px; flex: none; }
.idph__frame { width: 105px; height: 130px; border-radius: 6px; overflow: hidden; background: #241d1a; border: 2px solid var(--sun); display: grid; place-items: center; }
.idph__frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.idph__frame span { color: var(--sun); font-weight: 700; font-size: 2.2rem; }
.idph__btns { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.idph__add { cursor: pointer; padding: 6px 12px; font-size: 0.88rem; }
.idph__add:focus-within { outline: 2px solid var(--sun); outline-offset: 2px; }
.campus__who { flex: 1 1 260px; min-width: 0; }
@media (max-width: 480px) { .idph { flex-direction: row; width: 100%; } .idph__btns { align-items: flex-start; } }
/* borderless v1 */
body *, body *::before, body *::after { border-color: transparent !important; }
.faculties, .founders, .teachers, .stats { gap: 12px; }
.faculty, .founder, .teacher, .stats > div, .plan, .cpn, .srch__page .srch__panel { background: var(--surface-2); border-radius: 12px; }
.srch__page .srch__bar, .srch__page .srch__filters { background: transparent; }
.field input, .finder__search input, .finder__sort select, .srch__f select, .campus__rename input, .chat__course select, .chat__form textarea, .quiz__text, .srch__bar input { background: var(--surface-2) !important; }
.srch__page .srch__bar input, .srch__page .srch__f select, .cpn__row input { background: var(--surface) !important; }
.field input:focus, .finder__search input:focus, .finder__sort select:focus, .srch__f select:focus, .campus__rename input:focus, .chat__course select:focus, .chat__form textarea:focus, .quiz__text:focus, .cpn__row input:focus, .srch__bar input:focus { outline: none; box-shadow: 0 0 0 2px var(--sun); }
.cpn__row input[aria-invalid="true"] { box-shadow: 0 0 0 2px var(--danger); }
.chip:not(.is-on) { background: var(--surface-2); }
.legal__tab:not(.is-on) { background: var(--surface-2); }
.quiz__opt { background: var(--surface-2); }
.quiz__opt:hover { filter: brightness(1.06); }
.quiz__opt.is-on { background: rgba(255,179,138,0.30); }
.qnav__b, .quiz__pal { background: var(--surface-2); }
.qnav__b.is-here, .quiz__pal.is-current { background: var(--sun) !important; color: var(--on-sun) !important; }
.cartbtn, .top__search, .kbd { background: rgba(255,255,255,0.08); }
.cartbtn:hover, .top__search:hover, .top__search.is-on { background: rgba(255,179,138,0.18); }
.srch__clear, .srch__close { background: var(--surface-2); }
.srch__badge, .cpn__tag { background: rgba(31,138,91,0.16); }
.tbl tbody tr:nth-child(odd) > *, .prog tbody tr:nth-child(odd) > * { background: var(--surface-2); }
.course { padding-top: 22px; padding-bottom: 22px; }
.modal__head, .drawer__head, .reader__bar { box-shadow: 0 1px 0 rgba(0,0,0,0.06); }
/* borderless v2 */
.btn--ghost, .btn--ghost:hover, .btn--done, .learn__mark, .learn__ready, .learn__code, .facts li { box-shadow: none !important; }
.btn--ghost { background: var(--surface-2); }
.btn--ghost:hover { background: rgba(255,179,138,0.22); }
.faculty .btn--ghost, .teacher .btn--ghost, .founder .btn--ghost, .plan .btn--ghost, .cpn .btn--ghost, .stats .btn--ghost, .srch__page .srch__panel .btn--ghost { background: var(--surface); }
.faculty .btn--ghost:hover, .teacher .btn--ghost:hover, .plan .btn--ghost:hover, .cpn .btn--ghost:hover, .srch__page .srch__panel .btn--ghost:hover { background: rgba(255,179,138,0.22); }
.top .btn--ghost, .hero .btn--ghost { background: rgba(255,255,255,0.09); color: var(--on-blueprint); }
.top .btn--ghost:hover, .hero .btn--ghost:hover { background: rgba(255,179,138,0.22); }
.facts li, .learn__code, .learn__ready { background: var(--surface-2); }
.learn__mark { background: var(--surface-2); }
.qnav__b.is-here { box-shadow: none !important; }
.field input:focus, .finder__search input:focus, .finder__sort select:focus, .srch__f select:focus, .campus__rename input:focus, .chat__course select:focus, .chat__form textarea:focus, .quiz__text:focus, .cpn__row input:focus, .srch__bar input:focus { box-shadow: none; background: rgba(255,179,138,0.12) !important; }
/* borderless v3 */
.modal, .drawer { box-shadow: 0 24px 70px rgba(0,0,0,0.45) !important; }
.course__art, .cert__img { box-shadow: none !important; }
.learn__item.is-current .learn__mark { box-shadow: none !important; background: var(--sun); color: var(--on-sun); }
.btn--done { background: rgba(31,138,91,0.16); color: var(--ok); }
.cpn__row input[aria-invalid="true"] { box-shadow: none; background: rgba(180,35,60,0.14) !important; }
/* admission photo */
.admph > span { display: block; font-weight: 600; margin-bottom: 8px; }
.admph__row { display: flex; gap: 14px; align-items: center; }
.admph__frame { width: 84px; height: 104px; }
.admph__frame span { font-size: 2rem; font-weight: 400; }
.admph__side { display: grid; gap: 6px; justify-items: start; }
.admph__side small { color: var(--muted); font-size: 0.82rem; line-height: 1.35; }
.admph--err .admph__frame { background: rgba(180,35,60,0.18); }
.admph em { display: block; color: var(--danger); font-style: normal; font-size: 0.88rem; margin-top: 6px; }
/* pages v1 */
.pgback { padding-top: 22px; }
.pgback a { color: var(--sun); text-decoration: none; font-size: 0.92rem; }
.pgback a:hover { text-decoration: underline; }
.nav a.is-on { color: var(--on-blueprint); font-weight: 600; background: linear-gradient(var(--sun), var(--sun)) left bottom / 100% 2px no-repeat; padding-bottom: 3px; }
.xgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; margin-top: 22px; }
.xcard { display: grid; gap: 6px; align-content: start; padding: 20px; border-radius: 12px; background: var(--surface-2); color: var(--ink); text-decoration: none; transition: background-color 0.2s ease, transform 0.15s ease; }
.xcard:hover, .xcard:focus-visible { background: rgba(255,179,138,0.2); transform: translateY(-2px); }
.xcard b { font-size: 1.1rem; font-family: var(--display); }
.xcard span { color: var(--muted); font-size: 0.92rem; line-height: 1.45; }
.xcard em { color: var(--sun); font-style: normal; font-size: 0.85rem; font-weight: 600; margin-top: 4px; }
/* pages v1b */
.steps { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 28px; }
.steps li, .steps li + li { padding-left: 0; border-left: 0; }
/* pages v2 */
.overlay.asPage { position: relative; overflow-x: clip; inset: auto; background: none; z-index: auto; display: block; animation: none; padding: 0 16px; }
.asPage .drawer, .asPage .modal { margin: 14px auto 56px; width: min(820px, 100%); height: auto; max-height: none; overflow: visible; animation: none; background: var(--surface-2); border-radius: 14px; display: block; padding-top: 0; padding-bottom: 0; }
.asPage .drawer__body { overflow: visible; padding: 8px 24px 20px; }
.asPage .drawer__head, .asPage .modal__head { position: static; background: none; }
.asPage .drawer__foot, .asPage .modal__foot { position: static; background: none; padding: 0 24px 24px; }
.asPage .modal__foot { padding: 18px 24px 24px; }
.asPage .x { display: none; }
.asPage .legal__tabs { background: none; }
@media (max-width: 640px) { .overlay.asPage { padding: 0 10px; } .asPage .drawer__body { padding: 6px 16px 16px; } .asPage .drawer__foot { padding: 0 16px 20px; } }
/* login v1 */
.top__login { display: inline-flex; align-items: center; gap: 7px; margin-left: 8px; min-height: 40px; padding: 8px 14px; border-radius: 999px; background: rgba(255,255,255,0.08); color: var(--on-blueprint); text-decoration: none; font-size: 0.9rem; white-space: nowrap; max-width: 150px; }
.top__login .lbl { overflow: hidden; text-overflow: ellipsis; }
.top__login:hover, .top__login.is-on { background: rgba(255,179,138,0.18); color: var(--sun); }
.top__login + .cartbtn { margin-left: 8px; }
@media (max-width: 640px) { .top__login { margin-left: 0; width: 40px; padding: 0; justify-content: center; } .top__login .lbl { display: none; } .top__login + .cartbtn { margin-left: 6px; } }
@media (max-width: 340px) { .top__login { width: 36px; } }
@media (max-width: 420px) { .top__in { gap: 6px; } .top__in .top__search, .top__in .top__login { width: 36px; height: 36px; min-height: 36px; } header .top__in .cartbtn { padding: 0 7px; } header .top__in .top__login + .cartbtn { margin-left: 0; } }
@media (max-width: 345px) { header .top__in .cartbtn { padding: 0 5px; } .brand { font-size: 0.78rem; } .brand__mark { width: 24px; height: 24px; } }
@media (max-width: 1360px) { .top__login { width: 40px; padding: 0; justify-content: center; } .top__login .lbl { display: none; } }
@media (max-width: 480px) { .top__in .cartbtn { font-size: 0; gap: 0; padding: 0 10px; min-height: 40px; } .top__in .cartbtn::before { content: ""; width: 18px; height: 18px; margin-right: 5px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='20' r='1.5'/%3E%3Ccircle cx='18' cy='20' r='1.5'/%3E%3Cpath d='M2 3h3l2.7 12.4a2 2 0 0 0 2 1.6h7.7a2 2 0 0 0 2-1.6L21 7H6'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='20' r='1.5'/%3E%3Ccircle cx='18' cy='20' r='1.5'/%3E%3Cpath d='M2 3h3l2.7 12.4a2 2 0 0 0 2 1.6h7.7a2 2 0 0 0 2-1.6L21 7H6'/%3E%3C/svg%3E") center / contain no-repeat; } .top__in .cartbtn .cartbtn__n { font-size: 0.8rem; } }
.auth { max-width: 520px; margin: 0 auto; background: var(--surface-2); border-radius: 14px; padding: 24px; }
.auth__tabs { display: flex; gap: 6px; background: var(--paper); border-radius: 999px; padding: 4px; margin-bottom: 6px; }
.auth__tabs button { flex: 1; border: 0; background: none; padding: 10px 12px; border-radius: 999px; font: inherit; font-weight: 600; color: var(--ink); cursor: pointer; min-height: 42px; }
.auth__tabs button[aria-selected="true"] { background: var(--ink); color: var(--paper); }
.auth__err { margin: 14px 0 0; padding: 10px 12px; border-radius: 10px; background: rgba(220,38,38,0.1); color: var(--danger); font-size: 0.92rem; }
.auth__note { margin: 14px 0 0; font-size: 0.86rem; color: var(--muted, inherit); opacity: 0.85; }
.auth__show { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 0.9rem; }
.auth .btn--block { margin-top: 18px; }
.auth__me dt { font-size: 0.82rem; opacity: 0.75; margin-top: 12px; } .auth__me dd { margin: 2px 0 0; font-weight: 600; word-break: break-word; }
.auth__row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
@media (max-width: 640px) { .auth { padding: 18px 16px; } .auth__row .btn { flex: 1 1 100%; } }
/* reader ask v1 */
.reader__btns { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.reader__ask { display: inline-flex; align-items: center; gap: 7px; }
@media (max-width: 640px) { .reader__row .reader__btns { flex: 1 1 100%; } .reader__row .reader__btns .btn { flex: 1 1 0; min-width: 0; padding-left: 10px; padding-right: 10px; } }
/* google login v1 */
.auth .field input { background: rgba(255,255,255,0.06); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.16); }
.auth .field input:focus { box-shadow: inset 0 0 0 2px var(--sun); }
.auth__g { margin: 14px 0 8px; }
.auth__gbtn { min-height: 44px; display: flex; justify-content: center; }
.auth__or { display: flex; align-items: center; gap: 12px; margin: 16px 0 4px; font-size: 0.85rem; opacity: 0.75; }
.auth__or::before, .auth__or::after { content: ""; flex: 1; height: 1px; background: currentColor; opacity: 0.3; }
/* login gate v1 */
.gate { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 32px 16px; background: radial-gradient(ellipse 80% 50% at 50% 0%, rgba(255,179,138,0.16), transparent 70%); }
.gate__card { width: min(460px, 100%); background: var(--surface-2); border-radius: 18px; padding: 28px 24px 10px; }
.gate__brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.05rem; line-height: 1.2; }
.gate__brand .brand__mark { width: 38px; height: 38px; border-radius: 10px; padding: 5px; flex: none; }
.gate__brand small { display: block; font-weight: 500; opacity: 0.7; font-size: 0.78rem; }
.gate h1 { font-size: 1.75rem; margin: 22px 0 6px; line-height: 1.2; }
.gate__sub { margin: 0 0 4px; opacity: 0.85; }
.gate .section { padding: 0; } .gate .section .wrap { padding: 0; max-width: none; width: auto; } .gate .auth { padding: 0; background: none; max-width: none; margin: 0; }
.gate .auth__g { margin-top: 18px; }
.gate__mail { margin-top: 6px; }
.gate__links { margin: 20px 0 6px; font-size: 0.9rem; text-align: center; } .gate__links a { color: inherit; opacity: 0.8; }
.gate__fine { font-size: 0.78rem; opacity: 0.6; margin: 0; text-align: center; }
@media (max-width: 480px) { .gate { justify-content: flex-start; padding-top: 24px; } .gate__card { padding: 22px 18px 8px; } .gate h1 { font-size: 1.5rem; } }
/* nav row v1: all page links on their own row so none get cut off */
@media (min-width: 641px) {
  .top__in { flex-wrap: wrap; row-gap: 0; }
  .top .nav { order: 10; flex: 1 1 100%; width: 100%; margin: 0; justify-content: center; flex-wrap: wrap; gap: 4px 28px; overflow: visible; -webkit-mask-image: none; mask-image: none; padding: 2px 0 10px; }
  .top .top__search { margin-left: auto; }
}
@media (max-width: 640px) {
  .top .nav { flex-wrap: wrap; justify-content: center; overflow: visible; gap: 0 2px; padding: 2px 0 6px; -webkit-mask-image: none; mask-image: none; }
  .top .nav a { min-height: 34px; padding: 0 8px; font-size: 0.88rem; }
}
@media (max-width: 480px) { header.top .top__apply { display: none; } }
/* open library v1 */
.olib__bar { margin: 8px 0 12px; }
.olib__bar input { width: 100%; max-width: 480px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); font: inherit; }
.olib__cats { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
.olib__cat { padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink); font: inherit; font-size: 14px; cursor: pointer; }
.olib__cat.is-on { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.olib__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.olib__item { display: flex; flex-direction: column; gap: 6px; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.olib__item h3 { margin: 0; font-size: 17px; }
.olib__item p { margin: 0; color: var(--muted); font-size: 14px; flex: 1; }
.olib__item .btn { align-self: flex-start; margin-top: 6px; }
.olib__inst { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.olib__note { margin-top: 18px; }
.olib__lock { padding: 22px; border: 1px dashed var(--line); border-radius: 14px; background: var(--surface); max-width: 640px; }
.olib__lockt { font-size: 18px; font-weight: 600; margin: 0 0 8px; }
.olib__lock .btn { margin-top: 14px; }
/* books shelf v1 */
.olib__tabs { display: inline-flex; gap: 4px; margin: 6px 0 16px; padding: 4px; border: 1px solid var(--line); border-radius: 999px; }
.olib__tab { padding: 8px 18px; border: 0; border-radius: 999px; background: none; color: var(--muted); font: inherit; font-weight: 600; cursor: pointer; }
.olib__tab.is-on { background: var(--sun); color: var(--on-sun); }
.bks__list { list-style: none; margin: 0 0 22px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.bks__item { display: flex; gap: 14px; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.bks__cover { flex: 0 0 72px; height: 100px; border-radius: 6px; background: linear-gradient(160deg, hsl(var(--bk-h, 20) 55% 42%), hsl(var(--bk-h, 20) 45% 22%)); box-shadow: inset 3px 0 0 rgba(0,0,0,.25); display: flex; align-items: flex-end; padding: 6px; overflow: hidden; }
.bks__cover span { font-size: 10px; line-height: 1.2; color: #fff; font-weight: 600; }
.bks__info { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.bks__info h4 { margin: 0; font-size: 16px; }
.bks__info p { margin: 0; }
.bks__info .btn { align-self: flex-start; margin-top: 6px; }
.bkr { max-width: 720px; }
.bkr__bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 14px; }
.bkr__bar select { flex: 1 1 200px; min-width: 0; max-width: 100%; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); font: inherit; }
.bkr__sz { display: inline-flex; gap: 4px; }
.bkr__sz button { min-width: 40px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--ink); font: inherit; cursor: pointer; }
.bkr__head h3 { margin: 0; font-size: 26px; }
.bkr__ch { margin: 22px 0 12px; font-size: 20px; }
.bkr__text p { font-size: var(--bk-size, 18px); line-height: 1.7; margin: 0 0 1em; white-space: pre-line; overflow-wrap: anywhere; }
.bkr__nav { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin: 26px 0 12px; }
.bkr__lic { margin-top: 18px; }
/* auto library v1 */
.lsrch { display: flex; gap: 8px; max-width: 640px; }
.lsrch input { flex: 1 1 auto; min-width: 0; }
.lsrch .btn { flex: 0 0 auto; }
.pps__list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 12px; }
.pps__item { padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); display: flex; flex-direction: column; gap: 6px; }
.pps__item h4 { margin: 0; font-size: 16px; line-height: 1.4; overflow-wrap: anywhere; }
.pps__item p { margin: 0; overflow-wrap: anywhere; }
.pps__item .btn { align-self: flex-start; }
.nts__subs { margin: 24px 0; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.nts__subs h4 { margin: 0 0 8px; }
.nts__subs ul { margin: 0; padding-left: 18px; columns: 2 240px; }
.nts__subs li { margin: 4px 0; break-inside: avoid; }
.olib__tabs { flex-wrap: wrap; }
/* paper reader v1 */
.ppr { max-width: 860px; }
.ppr__pages { display: flex; flex-direction: column; gap: 12px; margin-top: 12px; }
.ppr__pg { width: 100%; aspect-ratio: 210 / 297; background: #fff; border-radius: 6px; overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,.25); }
.ppr__pg canvas { width: 100%; height: 100%; display: block; }
.pps__lic { display: inline-block; font-size: 12px; padding: 2px 8px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); }
/* white and peach theme v1 */
:root, :root:not([data-theme="light"]), :root[data-theme="dark"], :root[data-theme="light"] {
  --paper: #fffaf6; --surface: #ffffff; --surface-2: #fff1e7; --ink: #2b1a12; --muted: #765c50; --line: #f1d9ca;
  --blueprint: #ffffff; --blueprint-grid: rgba(240, 138, 93, 0.10); --on-blueprint: #2b1a12; --on-blueprint-muted: #6f5548;
  --sun: #ffb38a; --on-sun: #2b1208; --sun-ink: #b4501f; --ok: #1d7f52; --danger: #c0392b; --overlay: rgba(43, 26, 18, 0.45);
  color-scheme: light;
}
body { background: var(--paper); color: var(--ink); }
.top { background: rgba(255, 255, 255, 0.96); border-bottom: 1px solid var(--line); box-shadow: 0 1px 0 rgba(240, 138, 93, 0.06); }
@supports (backdrop-filter: blur(8px)) { .top { background: rgba(255, 255, 255, 0.86); backdrop-filter: blur(10px); } }
body::before { background: #ffffff; }
.hero { background-color: #ffeadd; background-image: linear-gradient(180deg, #ffe3d3 0%, #fff4ec 60%, var(--paper) 100%); }
.cartbtn, .kbd { border-color: var(--line); }
.top__search { border-color: var(--line); background: #ffffff; color: var(--on-blueprint-muted); }
.top__login { background: #fff1e7; color: var(--ink); }
.top .btn--ghost, .hero .btn--ghost { background: #ffffff; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.top .btn--ghost:hover, .hero .btn--ghost:hover { background: #fff1e7; }
.btn--ghost { background: #ffffff; color: var(--ink); }
.btn--ghost:hover { background: #fff1e7; }
.btn--sun:hover { background: #ffa673; }
.announce button { background: #2b1a12; color: #ffd7c0; }
.faq summary::after, .price, .pgback a, .srch__back, .srch__price, .srch__reset, .steps li::before, .xcard em, .idph__frame span,
.top__login:hover, .top__login.is-on, .top__search.is-on, .cpn__hint button { color: var(--sun-ink) !important; }
.nav a.is-on { color: var(--ink); }
a { color: inherit; }
.reader__scroll { background: #f3e7df; }
.course, .xcard, .modal, .drawer, .olib__item, .bks__item, .pps__item, .nts__subs { box-shadow: 0 1px 2px rgba(120, 60, 30, 0.04); }
.olib__cat.is-on { background: #2b1a12; color: #ffffff; border-color: #2b1a12; }
.chip.is-on { color: var(--on-sun); }
::selection { background: #ffd2b8; color: #2b1a12; }
.hero { background-size: auto !important; }
.auth .field input, .field input, .field select, .field textarea, .finder__search input, .finder__sort select, .srch__bar input, .olib__bar input { background: #ffffff; border: 1px solid #e9c9b6; color: var(--ink); }
.auth .field input:focus, .field input:focus, .finder__search input:focus, .olib__bar input:focus { border-color: #f08a5d; outline: none; box-shadow: 0 0 0 3px rgba(255, 179, 138, 0.35); }
.auth, .gate__card { background: #ffffff; box-shadow: 0 1px 3px rgba(120, 60, 30, 0.08), 0 0 0 1px var(--line); }
/* dark mode v1 */
:root[data-theme="dark"] {
  --paper: #0b0908; --surface: #161211; --surface-2: #241d1a; --ink: #fcefe7; --muted: #bba79c; --line: #3a2f2b;
  --blueprint: #000000; --blueprint-grid: rgba(255, 179, 138, 0.08); --on-blueprint: #fff4ee; --on-blueprint-muted: #cdb5a8;
  --sun: #ffb38a; --on-sun: #1a0f0a; --sun-ink: #ffb38a; --ok: #7fd1a8; --danger: #ff8f80; --overlay: rgba(0, 0, 0, 0.72);
  color-scheme: dark;
}
html[data-theme="dark"] .top { background: rgba(0, 0, 0, 0.92); border-bottom-color: rgba(255, 179, 138, 0.18); box-shadow: none; }
html[data-theme="dark"] body::before { background: #000000; }
html[data-theme="dark"] .hero { background-color: #000000; background-image: linear-gradient(var(--blueprint-grid) 1px, transparent 1px), linear-gradient(90deg, var(--blueprint-grid) 1px, transparent 1px); background-size: 40px 40px !important; }
html[data-theme="dark"] .cartbtn, html[data-theme="dark"] .kbd { border-color: rgba(255, 255, 255, 0.25); }
html[data-theme="dark"] .top__search { border-color: rgba(255, 255, 255, 0.22); background: rgba(255, 255, 255, 0.04); }
html[data-theme="dark"] .top__login, html[data-theme="dark"] .top__theme { background: rgba(255, 255, 255, 0.08); color: var(--on-blueprint); }
html[data-theme="dark"] .top .btn--ghost, html[data-theme="dark"] .hero .btn--ghost { background: rgba(255, 255, 255, 0.09); color: var(--on-blueprint); box-shadow: none; }
html[data-theme="dark"] .btn--ghost { background: transparent; color: var(--ink); }
html[data-theme="dark"] .btn--ghost:hover, html[data-theme="dark"] .top .btn--ghost:hover, html[data-theme="dark"] .hero .btn--ghost:hover { background: rgba(255, 179, 138, 0.16); }
html[data-theme="dark"] .btn--sun:hover { background: #ffc4a3; }
html[data-theme="dark"] .announce button { background: #1a0f0a; color: var(--sun); }
html[data-theme="dark"] .auth .field input, html[data-theme="dark"] .field input, html[data-theme="dark"] .field select, html[data-theme="dark"] .field textarea, html[data-theme="dark"] .finder__search input, html[data-theme="dark"] .finder__sort select, html[data-theme="dark"] .srch__bar input, html[data-theme="dark"] .olib__bar input, html[data-theme="dark"] .bkr__bar select { background: var(--surface); border: 1px solid var(--line); color: var(--ink); }
html[data-theme="dark"] .auth, html[data-theme="dark"] .gate__card { background: var(--surface); box-shadow: 0 0 0 1px var(--line); }
html[data-theme="dark"] .reader__scroll { background: #000000; }
html[data-theme="dark"] .olib__cat.is-on { background: var(--sun); color: var(--on-sun); border-color: var(--sun); }
html[data-theme="dark"] .course, html[data-theme="dark"] .xcard, html[data-theme="dark"] .modal, html[data-theme="dark"] .drawer, html[data-theme="dark"] .olib__item, html[data-theme="dark"] .bks__item, html[data-theme="dark"] .pps__item, html[data-theme="dark"] .nts__subs { box-shadow: none; }
html[data-theme="dark"] ::selection { background: #5a3a2a; color: #fff4ee; }
.top__theme { display: inline-grid; place-items: center; width: 40px; height: 40px; flex: none; margin-left: 8px; border: 0; border-radius: 999px; background: #fff1e7; color: var(--ink); cursor: pointer; }
.top__theme:hover { background: #ffe1cf; }
html[data-theme="dark"] .top__theme:hover { background: rgba(255, 179, 138, 0.2); }
@media (max-width: 480px) {
  header.top .top__in { gap: 4px !important; flex-wrap: wrap; }
  header.top .brand { font-size: 0.95rem; min-width: 0; }
  header.top .brand__sub { display: none; }
  header.top .top__theme, header.top .top__login, header.top .top__search { width: 34px; height: 34px; min-height: 34px; padding: 0; margin-left: 0; justify-content: center; flex: none; }
  header.top .top__in .cartbtn { padding: 0 6px; gap: 2px; flex: none; min-height: 34px; margin-left: 0; }
  header.top .top__search { margin-left: auto; }
}
@media (max-width: 380px) { header.top .brand { font-size: 0.76rem; } header.top .brand__mark { width: 24px; height: 24px; } }
@media (max-width: 380px) { .prog table, .prog tbody, .prog tr, .prog th, .prog td { display: block; width: 100%; } .prog th { padding-bottom: 2px; } }
@media (max-width: 340px) { header.top .brand { font-size: 0; gap: 0; } header.top .brand__mark { width: 30px; height: 30px; } header.top .top__theme, header.top .top__login, header.top .top__search { width: 32px; height: 32px; min-height: 32px; } header.top .top__in { padding-left: 8px !important; padding-right: 8px !important; } }

/* dept art v1 */
.dart { display: block; width: 100%; height: auto; border-radius: 14px; }
.dart--wide { aspect-ratio: 8 / 3; }
.plain.dgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; border-top: 0; }
.plain.dgrid > li { display: flex; flex-direction: column; gap: 12px; padding: 12px 12px 16px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); align-items: stretch; }
.plain.dgrid > li > div { flex: 1; }
.plain.dgrid > li > .btn { align-self: flex-start; }
.faculty > .dart { margin-bottom: 6px; }
.prog > .dart { max-height: 150px; margin-bottom: 14px; }
.dhero { display: grid; grid-template-columns: minmax(0, 320px) 1fr; gap: 18px; align-items: center; margin: 0 0 20px; }
.dhero h3 { margin: 0 0 6px; }
.olib__item > .dart { margin-bottom: 6px; }
.pps__item.has-art { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 14px; align-items: start; }
.pps__item.has-art > .dart { width: 84px; height: 84px; }
.pps__item.has-art > div { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.pps__item.has-art h4 { margin: 0; }
.ntd { list-style: none; margin: 16px 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 12px; }
.ntd__btn { display: flex; flex-direction: column; gap: 8px; width: 100%; padding: 8px 8px 10px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); color: var(--ink); font: inherit; font-weight: 600; font-size: 0.9rem; cursor: pointer; text-align: left; }
.ntd__btn:hover, .ntd__btn:focus-visible { border-color: var(--sun-ink, #b4501f); }
.nts h3.sub { margin: 22px 0 10px; }
.ntn h5 { margin: 16px 0 6px; font-size: 1rem; }
.ntn ul { margin: 0; padding-left: 20px; }
.ntn li { margin: 4px 0; }
.nts__page > .dart { margin: 10px 0 6px; max-height: 190px; }
@media (max-width: 640px) { .dhero { grid-template-columns: 1fr; } .pps__item.has-art { grid-template-columns: 64px minmax(0, 1fr); } .pps__item.has-art > .dart { width: 64px; height: 64px; } }
.olib__warn { margin: 10px 0; padding: 10px 14px; border-radius: 12px; background: var(--surface-2, #fff1e7); border: 1px solid var(--line); font-size: 0.92rem; }
/* pro theme v2: institutional catalogue look */
:root, :root:not([data-theme="light"]), :root[data-theme="light"] {
  --paper: #ffffff; --surface: #ffffff; --surface-2: #f5f6f8; --ink: #1c2430; --muted: #5a6473; --line: #e1e4e9;
  --blueprint: #ffffff; --blueprint-grid: transparent; --on-blueprint: #1c2430; --on-blueprint-muted: #5a6473;
  --primary: #1f3a5f; --primary-hover: #172d4a; --on-primary: #ffffff; --tint: #eef2f8;
  --sun: #ffb38a; --on-sun: #2a160b; --sun-ink: #1f3a5f; --peach-soft: #fff1e8;
  --ok: #1d7a4f; --danger: #b42318; --overlay: rgba(16, 24, 36, 0.5);
  --display: "Source Serif 4", Georgia, "Times New Roman", serif;
  --body: "Source Sans 3", -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --r-sm: 4px; --r: 6px; --r-lg: 8px;
  color-scheme: light;
}
html:root[data-theme="dark"], html:root[data-theme="dark"]:not([data-theme="light"]) {
  --paper: #10151c; --surface: #161d26; --surface-2: #1b232e; --ink: #e5eaf1; --muted: #9ba6b4; --line: #29323e;
  --blueprint: #10151c; --on-blueprint: #e5eaf1; --on-blueprint-muted: #9ba6b4;
  --primary: #c9d8ee; --primary-hover: #e1eaf6; --on-primary: #10151c; --tint: #1d2735;
  --sun: #ffb38a; --on-sun: #2a160b; --sun-ink: #c9d8ee; --peach-soft: #2a211c;
  --ok: #5cc38f; --danger: #ff8f84; --overlay: rgba(0, 0, 0, 0.6); color-scheme: dark;
}
html body { background: var(--paper); color: var(--ink); font-family: var(--body); font-size: 17px; line-height: 1.55; letter-spacing: 0; }
html body::before { background: var(--paper); }
::selection { background: #ffd9c4; color: #1c2430; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--primary) !important; outline-offset: 2px; }

/* type scale */
html .section h2, html .hero h1, html .srch__page .srch__head h1 { font-family: var(--display); font-weight: 600; letter-spacing: -0.01em; color: var(--ink); }
html .hero h1 { font-size: clamp(2.2rem, 4.6vw, 3.5rem); line-height: 1.08; }
html .section h2 { font-size: clamp(1.75rem, 3vw, 2.35rem); line-height: 1.15; margin-bottom: 10px; }
html .section h3, html .course h3, html .plain h3, html .faculty h3 { font-family: var(--body); font-weight: 700; letter-spacing: 0; }
html .course h3 { font-size: 1.25rem; line-height: 1.25; }
html .section__intro { color: var(--muted); font-size: 1.05rem; max-width: 62ch; }
html .meta, html .plain .meta { color: var(--muted); font-size: 0.9rem; }
html .price { font-family: var(--body); font-weight: 700; font-size: 1.5rem; letter-spacing: 0; color: var(--ink) !important; }

/* header: utility row + main nav row */
html .top { background: var(--paper) !important; backdrop-filter: none !important; border-bottom: 1px solid var(--line); box-shadow: none !important; color: var(--ink); }
html .top__in { max-width: 1200px; padding-top: 12px; padding-bottom: 0; }
html .brand { font-family: var(--display); font-weight: 700; font-size: 1.3rem; letter-spacing: -0.01em; }
html .brand__mark { border-radius: var(--r); }
html .brand__sub { font-family: var(--body); font-size: 0.85rem; color: var(--muted); font-weight: 600; padding-left: 10px; margin-left: 2px; border-left: 1px solid var(--line); }
html .top .nav a { color: var(--muted); font-size: 0.98rem; font-weight: 600; padding: 12px 0 13px; border-bottom: 2px solid transparent; }
html .top .nav a:hover { color: var(--ink); }
html .top .nav a.is-on { color: var(--ink); border-bottom-color: var(--sun); }
html .top .nav a.is-on::after { display: none !important; }
@media (min-width: 641px) {
  html .top .nav { justify-content: flex-start !important; gap: 0 28px !important; padding: 0 !important; margin-top: 10px !important; border-top: 1px solid var(--line); }
}
html .top__search, html .top__login, html .top__theme, html .cartbtn { border-radius: var(--r) !important; border: 1px solid var(--line) !important; background: var(--paper) !important; color: var(--ink) !important; box-shadow: none !important; }
html .top__search:hover, html .top__login:hover, html .top__theme:hover, html .cartbtn:hover { background: var(--surface-2) !important; }
html .cartbtn__n { background: var(--sun); color: var(--on-sun); border-radius: var(--r-sm); }

/* buttons */
html .btn { border-radius: var(--r); font-weight: 600; letter-spacing: 0; padding: 10px 18px; min-height: 42px; }
html .btn--sun, html .top .btn--sun { background: var(--primary); color: var(--on-primary); box-shadow: none; filter: none; }
html .btn--sun:hover, html .top .btn--sun:hover { background: var(--primary-hover); filter: none; }
html .btn--ghost, html .top .btn--ghost, html .hero .btn--ghost { background: var(--paper); color: var(--ink); box-shadow: inset 0 0 0 1px #c8ced6; }
html[data-theme="dark"] .btn--ghost, html[data-theme="dark"] .top .btn--ghost { box-shadow: inset 0 0 0 1px #3a4552; }
html .btn--ghost:hover, html .top .btn--ghost:hover, html .hero .btn--ghost:hover { background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--ink); }
html .linkbtn { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }

/* announcement bar */
html .announce { background: var(--primary); color: var(--on-primary); font-weight: 500; }
html .announce button { background: var(--sun); color: var(--on-sun); border-radius: var(--r-sm); }

/* hero: plain, ruled */
html .hero { background: var(--paper) !important; background-image: none !important; border-bottom: 1px solid var(--line); }
html .hero__lede { color: var(--muted); }

/* breadcrumb */
html .pgback { padding-top: 20px; }
.crumbs { display: flex; gap: 8px; align-items: center; font-size: 0.9rem; color: var(--muted); }
.crumbs a { color: var(--primary) !important; text-decoration: none; }
.crumbs a:hover { text-decoration: underline; text-underline-offset: 3px; }
.crumbs span[aria-hidden] { color: #a3acb8; }

/* surfaces: one border, no shadows */
html .course, html .xcard, html .olib__item, html .bks__item, html .pps__item, html .nts__subs, html .modal, html .drawer, html .auth, html .gate__card, html .plain.dgrid > li, html .ntd__btn { box-shadow: none !important; }
html .olib__item, html .bks__item, html .pps__item, html .plain.dgrid > li, html .ntd__btn, html .faculty, html .xcard { border-radius: var(--r-lg); border-color: var(--line); }
html .plain.dgrid > li { padding: 0 0 18px; overflow: hidden; gap: 14px; }
html .plain.dgrid > li > div, html .plain.dgrid > li > .btn { margin: 0 18px; }
html .plain.dgrid > li > .dart { border-radius: 0; border-bottom: 1px solid var(--line); }
html .plain.dgrid > li:hover { border-color: #c8ced6; }

/* chips and filters */
html .chip, html .olib__cat { border-radius: var(--r) !important; border: 1px solid var(--line) !important; background: var(--paper); color: var(--ink); font-weight: 500; }
html .chip.is-on, html .olib__cat.is-on { background: var(--ink) !important; color: var(--paper) !important; border-color: var(--ink) !important; }
html .chip:hover, html .olib__cat:hover { border-color: #b8c0ca !important; }

/* tabs: underlined, not pills */
html .olib__tabs { display: flex; gap: 0 26px; padding: 0; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; margin: 8px 0 22px; }
html .olib__tab { padding: 10px 0 11px; border-radius: 0; background: none !important; color: var(--muted) !important; border-bottom: 2px solid transparent; margin-bottom: -1px; font-weight: 600; }
html .olib__tab:hover { color: var(--ink) !important; }
html .olib__tab.is-on { color: var(--ink) !important; border-bottom-color: var(--sun); }

/* inputs */
html .auth .field input, html .field input, html .field select, html .field textarea, html .finder__search input, html .finder__sort select, html .srch__bar input, html .olib__bar input, html .lsrch input {
  background: var(--paper); border: 1px solid #c8ced6; border-radius: var(--r); color: var(--ink); }
html[data-theme="dark"] .finder__search input, html[data-theme="dark"] .finder__sort select, html[data-theme="dark"] .olib__bar input, html[data-theme="dark"] .field input { border-color: #3a4552; }
html .auth .field input:focus, html .field input:focus, html .finder__search input:focus, html .olib__bar input:focus, html .lsrch input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(31, 58, 95, 0.15); outline: none; }

/* department pictures: flat tints */
.dart__bg { fill: color-mix(in srgb, var(--a, #1f3a5f) 13%, #ffffff); }
.dart__fg { stroke: color-mix(in srgb, var(--a, #1f3a5f) 78%, #000000); }
html[data-theme="dark"] .dart__bg { fill: color-mix(in srgb, var(--a, #1f3a5f) 22%, #161d26); }
html[data-theme="dark"] .dart__fg { stroke: color-mix(in srgb, var(--a, #1f3a5f) 55%, #ffffff); }
html .dart { border-radius: var(--r); }

/* reading pages */
html .bkr__head h3, html .ppr .bkr__head h3, html .nts__page .bkr__head h3 { font-family: var(--display); font-weight: 600; font-size: clamp(1.6rem, 3vw, 2.1rem); line-height: 1.2; letter-spacing: -0.005em; }
html .bkr__text, html .ppr__text { font-family: var(--display); font-size: 1.12rem; line-height: 1.7; max-width: 68ch; }
html .bkr__text h4, html .bkr__ch { font-family: var(--body); font-weight: 700; }
html .olib__warn { background: var(--tint); border: 1px solid var(--line); border-left: 3px solid var(--primary); border-radius: var(--r); }
html .pps__lic { border-radius: var(--r-sm); background: var(--tint); color: var(--primary); }

/* footer */
html .foot { background: var(--surface-2); border-top: 1px solid var(--line); margin-top: 88px; }
html .foot a { color: var(--ink); }

/* faq */
html .faq summary::after { color: var(--muted) !important; font-family: var(--body); }
html .steps li::before { color: var(--primary) !important; font-family: var(--display); font-weight: 600; }
/* pro theme v2: alignment and outlines */
html .top__in { max-width: 1160px; padding-left: 20px; padding-right: 20px; }
html .btn--ghost, html .top .btn--ghost, html .hero .btn--ghost, html .plain .btn--ghost { box-shadow: none !important; border: 1px solid #c8ced6 !important; }
html[data-theme="dark"] .btn--ghost { border-color: #3a4552 !important; }
html .btn--ghost:hover { border-color: var(--ink) !important; }
html form.lsrch input, html .olib__bar input[type="search"] { border: 1px solid #c8ced6 !important; border-radius: var(--r) !important; background: var(--paper) !important; min-height: 44px; padding: 0 14px; }
html[data-theme="dark"] form.lsrch input { border-color: #3a4552 !important; }
html .top { border-bottom: 1px solid var(--line) !important; }
html .finder__search input, html .finder__sort select { background: var(--paper) !important; border: 1px solid #c8ced6 !important; border-radius: var(--r) !important; }
html[data-theme="dark"] .finder__search input, html[data-theme="dark"] .finder__sort select { border-color: #3a4552 !important; }
@media (max-width: 640px) {
  html .top .nav { display: flex !important; order: 10; flex: 1 1 100% !important; flex-wrap: nowrap !important; justify-content: flex-start !important; overflow-x: auto !important; gap: 0 22px !important; padding: 0 !important; margin: 8px 0 0 !important; border-top: 1px solid var(--line);
    -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 32px), transparent) !important; mask-image: linear-gradient(to right, #000 calc(100% - 32px), transparent) !important; scrollbar-width: none; }
  html .top .nav::-webkit-scrollbar { display: none; }
  html .top .nav a { flex: none; padding: 10px 0 11px; font-size: 0.95rem; }
  html .brand { font-size: 1.1rem; }
}
@media (max-width: 640px) { html .olib__tabs { flex-wrap: nowrap !important; overflow-x: auto; gap: 0 22px; scrollbar-width: none; } html .olib__tab { flex: none; } }
/* pro login v1 */
html .gate { display: block; min-height: 100vh; min-height: 100dvh; padding: 0; background: var(--paper) !important; background-image: none !important; }
.gate__wrap { min-height: 100vh; min-height: 100dvh; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
.gate__aside { background: #1f3a5f; color: #ffffff; padding: 48px 56px; display: flex; flex-direction: column; justify-content: space-between; gap: 40px; }
.gate__aside .gate__brand { color: #ffffff; }
.gate__aside .gate__brand small { color: #c9d6e8; opacity: 1; }
.gate__lead h2 { font-family: var(--display); font-weight: 600; font-size: clamp(1.9rem, 2.6vw, 2.5rem); line-height: 1.15; margin: 0 0 16px; color: #ffffff; letter-spacing: -0.01em; max-width: 16ch; }
.gate__lead p { margin: 0; color: #d6e0ee; font-size: 1.05rem; line-height: 1.6; max-width: 40ch; }
.gate__facts { list-style: none; margin: 0; padding: 0; border-top: 1px solid rgba(255, 255, 255, 0.22) !important; max-width: 420px; }
.gate__facts li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.22) !important; font-size: 0.95rem; color: #d6e0ee; }
.gate__facts li strong { color: #ffffff; font-weight: 600; }
.gate__main { display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 48px 24px; }
html .gate__card { width: min(400px, 100%); background: none; border: 0; border-radius: 0; padding: 0; box-shadow: none; }
.gate__card > .gate__brand { display: none; }
html .gate h1 { font-family: var(--display); font-weight: 600; font-size: 2rem; line-height: 1.2; margin: 0 0 8px; letter-spacing: -0.01em; }
html .gate__sub { margin: 0; color: var(--muted); opacity: 1; font-size: 1rem; line-height: 1.5; }
html .gate .auth__tabs { display: flex; gap: 0 28px; background: none; border-radius: 0; padding: 0; margin: 28px 0 22px; border: 0 !important; border-bottom: 1px solid var(--line) !important; box-shadow: none !important; }
html .gate .auth__tabs button { flex: none; padding: 10px 0 11px; min-height: 0; border-radius: 0; background: none; color: var(--muted); border: 0 !important; border-bottom: 2px solid transparent !important; margin-bottom: -1px; font-weight: 600; font-size: 1rem; box-shadow: none !important; }
html .gate .auth__tabs button:hover { color: var(--ink); }
html .gate .auth__tabs button[aria-selected="true"] { background: none; color: var(--ink); border-bottom-color: var(--sun) !important; }
html .gate .auth .field { margin: 0 0 16px; }
html .gate .auth .field label, html .gate .auth .field > span { display: block; font-weight: 600; font-size: 0.92rem; margin: 0 0 6px; color: var(--ink); }
html .gate .auth .field input { width: 100%; min-height: 44px; padding: 0 12px; background: var(--paper) !important; border: 1px solid #c8ced6 !important; border-radius: var(--r) !important; box-shadow: none !important; color: var(--ink); font: inherit; }
html[data-theme="dark"] .gate .auth .field input { border-color: #3a4552 !important; }
html .gate .auth .field input:focus { border-color: var(--primary) !important; box-shadow: 0 0 0 3px rgba(31, 58, 95, 0.15) !important; outline: none; }
html .gate .auth__show { margin: -4px 0 0; color: var(--muted); font-size: 0.92rem; }
html .gate .auth .btn--block { width: 100%; margin-top: 20px; min-height: 46px; font-size: 1rem; }
html .gate .auth__note { margin: 16px 0 0; color: var(--muted); opacity: 1; font-size: 0.88rem; line-height: 1.55; }
html .gate .auth__note a { color: var(--primary); }
html .gate .auth__err { border-radius: var(--r); }
html .gate .auth__or { opacity: 1; color: var(--muted); }
html .gate__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 20px; margin: 40px 0 8px; font-size: 0.88rem; }
html .gate__links a { color: var(--muted); opacity: 1; text-decoration: none; }
html .gate__links a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
html .gate__fine { color: var(--muted); opacity: 1; font-size: 0.8rem; text-align: center; max-width: 400px; }
html .gate__card, html .gate .section, html .gate .auth, html[data-theme="dark"] .gate__card, html[data-theme="dark"] .gate .auth { background: none !important; box-shadow: none !important; border: 0 !important; }
html[data-theme="dark"] .gate__aside { background: #17263b; }
@media (max-width: 860px) {
  .gate__wrap { grid-template-columns: 1fr; }
  .gate__aside { display: none; }
  .gate__main { justify-content: flex-start; padding: 32px 20px 40px; }
  .gate__card > .gate__brand { display: flex; margin: 0 0 28px; }
  html .gate h1 { font-size: 1.75rem; }
}
/* perf v1 */
.rv, .rv.in { opacity: 1 !important; transform: none !important; transition: none !important; }
.plain.dgrid > li { content-visibility: auto; contain-intrinsic-size: auto 420px; }
ul.courses > li { content-visibility: auto; contain-intrinsic-size: auto 180px; }
.prog { content-visibility: auto; contain-intrinsic-size: auto 900px; }
p.more { margin: 24px 0 0; }

/* showcase v1 */
.show { max-width: 1160px; margin: 0 auto; padding: 36px 20px 48px; }
.show__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.show__title { font-size: 1.15rem; margin: 0; }
.show__all { font-weight: 600; color: var(--ink, #1f3a5f); white-space: nowrap; }
.show__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.show__card { display: flex; flex-direction: column; gap: 8px; width: 100%; padding: 0; border: 0; background: none; text-align: left; cursor: pointer; color: inherit; font: inherit; }
.show__img { display: block; aspect-ratio: 1 / 1; border-radius: 8px; overflow: hidden; background: #1f2a3a; }
.show__img img, .show__img .tile-ph { width: 100%; height: 100%; object-fit: cover; display: block; }
.show__card:hover .show__t, .show__card:focus-visible .show__t { text-decoration: underline; }
.show__card:focus-visible { outline: 2px solid #1f3a5f; outline-offset: 4px; border-radius: 8px; }
.show__t { font-weight: 600; line-height: 1.3; font-size: 0.95rem; }
.show__grid li { min-width: 0; }
.show__m { font-size: 0.9rem; color: var(--muted, #5b6575); }
@media (max-width: 900px) { .show__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; } }
@media (max-width: 600px) { .show { padding: 24px 16px 32px; } }

/* further reading v1 */
.fread { margin: 28px 0 8px; padding-top: 16px; border-top: 1px solid var(--line, #e3e6ea); }
.fread h3 { margin: 0 0 4px; font-size: 1rem; }
.fread .meta { margin: 0 0 10px; font-size: 0.88rem; }
.fread ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 6px 24px; }
.fread li { font-size: 0.92rem; line-height: 1.4; }
.fread li span { color: var(--muted, #5b6575); }
.fread a { font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.fread--compact ul { grid-template-columns: 1fr; }

/* featured papers v1 */
.ppf { margin-top: 18px; }
.ppf h3 { margin: 0 0 4px; }
.olib__cat.is-on { background: var(--primary, #1f3a5f); color: #fff; border-color: var(--primary, #1f3a5f); }

/* globe v1 */
.globe { background: #1f3a5f; color: #fff; padding: 40px 0 8px; margin-top: 24px; }
.globe__head { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.globe__head h2 { color: #fff; margin: 0 0 6px; font-size: 1.3rem; }
.globe__head p { color: rgba(255,255,255,0.75); margin: 0; }
.globe__menu { position: relative; height: clamp(420px, 64vh, 640px); max-width: 1400px; margin: 0 auto; }
@media (max-width: 600px) { .globe { padding-top: 28px; } .globe__head { padding: 0 16px; } .globe__menu { height: 400px; } }

/* globes3 v1 */
.g3 { background: #1f3a5f; color: #fff; padding: 36px 0 32px; }
.g3--top { margin: 0; }
.g3__head, .g3__grid { max-width: 1240px; margin: 0 auto; padding: 0 20px; }
.g3__head h2 { color: #fff; margin: 0 0 6px; font-size: 1.3rem; }
.g3__head p { color: rgba(255,255,255,0.75); margin: 0 0 18px; }
.g3__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.g3__card { margin: 0; background: rgba(255,255,255,0.05); border-radius: 14px; overflow: hidden; }
.g3__label { display: flex; align-items: center; gap: 8px; padding: 12px 14px 0; font-weight: 600; color: #fff; }
.g3__dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.g3__n { margin-left: auto; font-weight: 400; font-size: 0.85rem; color: rgba(255,255,255,0.7); }
.g3__menu { position: relative; height: 360px; }
@media (max-width: 900px) { .g3__grid { grid-template-columns: 1fr; } .g3__menu { height: 320px; } .g3__head, .g3__grid { padding: 0 16px; } }

/* loginart v1 */
.authbg { position: relative; overflow: hidden; background: #1f3a5f; min-height: 640px; }
.authbg > .wrap { position: relative; z-index: 1; display: flex; justify-content: flex-end; align-items: center; min-height: 600px; }
.authbg .auth { width: 100%; margin: 0 0 0 auto; box-shadow: 0 12px 40px rgba(0,0,0,0.25); }
.authbg__art { position: absolute; z-index: 0; left: max(0px, calc(50% - 620px)); bottom: 0; width: min(42vw, 520px); height: auto; pointer-events: none; user-select: none; }
@media (max-width: 900px) {
  .authbg { min-height: 0; padding-top: 0; }
  .authbg > .wrap { display: block; min-height: 0; }
  .authbg__art { position: relative; display: block; left: auto; width: min(78vw, 320px); margin: 8px auto -36px; }
  .authbg .auth { margin: 0 auto; }
}

/* gateart v1 */
.gate .authbg { background: none !important; min-height: 0; overflow: visible; }
.gate .authbg__art { display: none !important; }
.gate .authbg > .wrap { display: block; min-height: 0; }
.gate .authbg .auth { box-shadow: none; }
.gate__art { display: block; width: 100%; max-width: 380px; max-height: min(34vh, 300px); object-fit: contain; object-position: left bottom; margin: -16px 0 -24px; pointer-events: none; user-select: none; }
.gate__artm { display: none; }
@media (max-width: 860px) { .gate__artm { display: block; width: min(64vw, 240px); height: auto; margin: 0 auto 4px; pointer-events: none; user-select: none; } }
@media (max-height: 640px) and (min-width: 861px) { .gate__art { display: none; } }
