/* PrepWings website — one stylesheet for every page.
   Brand: the app icon's deep indigo, its orange contrail, white. Phone first. */
:root {
  --ink: #15132f;          /* hero / dark sections */
  --ink-2: #1e1b4b;
  --indigo: #4f46e5;
  --indigo-soft: #eef0ff;
  --orange: #f97316;
  --amber: #fdba74;
  --paper: #fbfbfe;        /* page background */
  --card: #ffffff;
  --text: #1c1b2e;
  --muted: #5b5f78;
  --line: #e4e5f0;
  --display: 'Sora', 'Segoe UI', system-ui, sans-serif;
  --body: 'Source Sans 3', 'Segoe UI', system-ui, sans-serif;
  --radius: 18px;
  --max: 1080px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--text); font-family: var(--body); font-size: 17px; line-height: 1.6; }
img { max-width: 100%; display: block; }
a { color: var(--indigo); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--display); line-height: 1.2; text-wrap: balance; margin: 0; }
p { margin: 0; }

.wrap { max-width: var(--max); margin: 0 auto; padding-inline: 20px; }

/* ── top bar ── */
.nav { position: sticky; top: 0; z-index: 10; background: rgba(21, 19, 47, 0.92); backdrop-filter: blur(10px); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 62px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-family: var(--display); font-weight: 700; font-size: 19px; }
.brand img { width: 32px; height: 32px; border-radius: 9px; }
.nav-links { display: flex; gap: 22px; }
.nav-links a { color: #c9cbe8; text-decoration: none; font-size: 15px; font-weight: 600; }
.nav-links a:hover { color: #fff; }
@media (max-width: 640px) { .nav-links { gap: 16px; } .nav-links .wide { display: none; } }

/* ── hero ── */
.hero { position: relative; overflow: hidden; background: radial-gradient(120% 90% at 75% 10%, #3b33b8 0%, var(--ink-2) 45%, var(--ink) 100%); color: #fff; padding-block: 72px 88px; }
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center; }
.hero .eyebrow { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--amber); margin-bottom: 18px; }
.hero h1 { font-size: clamp(34px, 5.4vw, 56px); font-weight: 800; letter-spacing: -0.02em; }
.hero h1 em { font-style: normal; color: var(--amber); }
.hero .lede { margin-top: 20px; font-size: 19px; color: #cfd1ee; max-width: 34em; }
.hero-art { justify-self: center; position: relative; }
.hero-art img { width: min(300px, 70vw); height: auto; aspect-ratio: 1; border-radius: 26%; box-shadow: 0 30px 80px rgba(0, 0, 0, .45), 0 0 0 1px rgba(255, 255, 255, .08); }
.trail { position: absolute; inset: auto 0 0 0; height: 160px; opacity: .55; pointer-events: none; }
@media (max-width: 860px) {
  .hero { padding-block: 48px 64px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 36px; }
  .hero-art { order: -1; }
  .hero-art img { width: 132px; }
}

.cta-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: 32px; }
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; border-radius: 14px; font-weight: 700; font-size: 16px; text-decoration: none; border: 0; }
.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:hover { background: #ea6a0c; }
.btn-soon { background: rgba(255, 255, 255, .1); color: #fff; border: 1px solid rgba(255, 255, 255, .22); cursor: default; }
.cta-note { font-size: 14px; color: #a9acd6; }

/* ── sections ── */
section { padding-block: 72px; }
.section-head { max-width: 42em; margin-bottom: 36px; }
.section-head .kicker { font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--orange); }
.section-head h2 { font-size: clamp(26px, 3.6vw, 36px); margin-top: 8px; }
.section-head p { margin-top: 12px; color: var(--muted); font-size: 18px; }

.problem { background: var(--card); border-bottom: 1px solid var(--line); }
.problem-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.problem-list div { padding: 22px; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line); }
.problem-list strong { display: block; font-family: var(--display); font-size: 17px; margin-bottom: 6px; }
.problem-list p { color: var(--muted); font-size: 16px; }
@media (max-width: 860px) { .problem-list { grid-template-columns: 1fr; } }

.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.feature { display: flex; gap: 16px; padding: 24px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.feature .ico { flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--indigo-soft); color: var(--indigo); }
.feature .ico svg { width: 24px; height: 24px; }
.feature h3 { font-size: 18px; }
.feature p { margin-top: 6px; color: var(--muted); font-size: 16px; }
@media (max-width: 760px) { .features { grid-template-columns: 1fr; } }

.loop { background: var(--ink); color: #fff; }
.loop .section-head p { color: #b9bbe0; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: step; }
.step { padding: 22px; border-radius: var(--radius); background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); }
.step::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--orange); color: #fff; font-family: var(--display); font-weight: 700; margin-bottom: 12px; }
.step h3 { font-size: 17px; }
.step p { margin-top: 6px; color: #b9bbe0; font-size: 15px; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

.promises { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.promise { padding: 22px; border-left: 4px solid var(--orange); background: var(--card); border-radius: 0 var(--radius) var(--radius) 0; }
.promise strong { font-family: var(--display); }
.promise p { margin-top: 4px; color: var(--muted); font-size: 16px; }
@media (max-width: 760px) { .promises { grid-template-columns: 1fr; } }

/* ── legal pages ── */
.doc-hero { background: var(--ink); color: #fff; padding-block: 48px 40px; }
.doc-hero h1 { font-size: clamp(28px, 4vw, 40px); }
.doc-hero p { margin-top: 10px; color: #b9bbe0; font-size: 15px; }
.doc { max-width: 760px; margin: 0 auto; padding: 40px 20px 72px; }
.doc h2 { font-size: 21px; margin: 36px 0 10px; }
.doc p, .doc li { color: #2e2d45; }
.doc p + p { margin-top: 12px; }
.doc ul, .doc ol { padding-left: 22px; margin: 10px 0 0; }
.doc li + li { margin-top: 6px; }
.doc .summary { background: var(--indigo-soft); border-radius: var(--radius); padding: 20px 22px; margin-bottom: 8px; }
.doc .summary h2 { margin-top: 0; font-size: 17px; }
.doc table { width: 100%; border-collapse: collapse; margin-top: 12px; font-size: 15px; }
.doc th, .doc td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.doc th { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.table-wrap { overflow-x: auto; }
.steps-list { counter-reset: s; list-style: none; padding: 0 !important; }
.steps-list li { counter-increment: s; position: relative; padding-left: 44px; min-height: 32px; }
.steps-list li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%; background: var(--indigo); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 15px; }
.note { margin-top: 20px; padding: 16px 18px; border-radius: 14px; background: #fff7ed; border: 1px solid #fed7aa; color: #7c2d12; font-size: 16px; }

/* ── footer ── */
footer { background: var(--ink); color: #a9acd6; padding-block: 56px 32px; font-size: 15px; }
footer a { color: #e2e3f7; text-decoration: none; }
.foot-brand p { margin-top: 10px; }
.foot-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 32px; }
.foot-box { padding: 20px; border-radius: var(--radius); background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); }
.foot-head { display: flex; gap: 10px; align-items: center; margin-bottom: 12px; }
.foot-ico { flex: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--orange); color: #fff; }
.foot-ico svg { width: 18px; height: 18px; }
.foot-head h3 { font-size: 16px; color: #fff; }
.foot-box ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.foot-box li a { display: flex; justify-content: space-between; gap: 8px; padding: 9px 12px; border-radius: 10px; background: rgba(255, 255, 255, .04); font-size: 15px; word-break: break-word; transition: background .15s; }
.foot-box li a::after { content: '→'; color: var(--orange); font-weight: 800; }
.foot-box li a:hover { background: rgba(255, 255, 255, .1); }
.foot-note { margin-top: 10px; font-size: 13px; color: #8a8db8; }
footer .fine { margin-top: 32px; font-size: 13px; color: #8a8db8; border-top: 1px solid rgba(255, 255, 255, .08); padding-top: 18px; }
@media (max-width: 960px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .foot-grid { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: no-preference) {
  .hero-art img { animation: lift 1s ease-out both; }
  @keyframes lift { from { transform: translateY(18px) rotate(-3deg); opacity: 0; } to { transform: none; opacity: 1; } }
}

/* ── study pages: PYQs and News (website/pyq.js, news.html) ──
   Built from the home page's own parts: .hero (+ .trail), .section-head,
   .feature cards with .ico tiles, the dark .loop band with .steps. Only what
   those pages need on top of them is defined here. */

/* hero on inner pages: same look as the home hero, a little shorter, with a
   summary panel where the home page has the app icon */
.hero-page { padding-block: 64px 80px; }
.hero-page h1 { font-size: clamp(32px, 4.8vw, 50px); }
.hero-page .crumbs { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 14px; font-weight: 700; margin-bottom: 18px; }
.hero-page .crumbs a { color: var(--amber); text-decoration: none; }
.hero-page .crumbs span { color: #8a8db8; }
.hero-page .eyebrow { margin-bottom: 14px; }
.btn-ghost { background: transparent; color: #fff; border: 1px solid rgba(255, 255, 255, .28); }
.btn-ghost:hover { background: rgba(255, 255, 255, .08); }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.chip-row a { color: #e2e3f7; text-decoration: none; font-weight: 700; font-size: 14px; padding: 7px 14px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .2); background: rgba(255, 255, 255, .04); }
.chip-row a:hover { border-color: rgba(255, 255, 255, .5); }
.chip-row a[aria-current] { background: var(--orange); border-color: var(--orange); color: #fff; }
.hero-panel { justify-self: stretch; padding: 26px; border-radius: 26px; background: linear-gradient(160deg, rgba(79, 70, 229, .55), rgba(30, 27, 75, .7)); border: 1px solid rgba(255, 255, 255, .12); box-shadow: 0 30px 80px rgba(0, 0, 0, .45); }
.hero-panel .panel-title { font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--amber); }
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 16px; }
.stat { padding: 16px; border-radius: 16px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); }
.stat strong { display: block; font-family: var(--display); font-size: 30px; line-height: 1.1; color: #fff; }
.stat span { font-size: 14px; color: #b9bbe0; }
.panel-list { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 10px; }
.panel-list li { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); }
.panel-list .dot { flex: none; width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--orange); color: #fff; }
.panel-list .dot svg { width: 17px; height: 17px; }
.panel-list strong { display: block; color: #fff; font-size: 16px; }
.panel-list span { display: block; color: #b9bbe0; font-size: 14px; line-height: 1.4; margin-top: 2px; }
@media (max-width: 860px) {
  .hero-page { padding-block: 44px 60px; }
  .hero-page .hero-art, .hero-page .hero-panel { order: 0; }
}

/* white band, as on the home page */
.band-white { background: var(--card); border-bottom: 1px solid var(--line); }

/* year papers: feature cards with a big year */
.paper-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.paper-card { display: flex; gap: 16px; align-items: center; padding: 20px 22px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--text); transition: border-color .15s, transform .15s; }
.paper-card:hover { border-color: var(--indigo); transform: translateY(-2px); }
.paper-card .ico { flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--indigo-soft); color: var(--indigo); }
.paper-card .ico svg { width: 24px; height: 24px; }
.paper-card strong { display: block; font-family: var(--display); font-size: 24px; color: var(--text); line-height: 1.1; }
.paper-card span { display: block; font-size: 14px; color: var(--muted); }
.paper-card .free { color: var(--orange); font-weight: 700; }
.paper-card .go { display: inline; margin-left: auto; color: var(--orange); font-weight: 800; font-size: 20px; }

/* subjects: feature cards whose topics are chips */
/* two columns that flow like a newspaper, so each card is only as tall as its topics */
.subject-grid { columns: 2; column-gap: 20px; }
.subject-card { break-inside: avoid; display: flex; gap: 16px; padding: 24px; margin-bottom: 20px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.subject-card .ico { flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--indigo-soft); color: var(--indigo); }
.subject-card .ico svg { width: 24px; height: 24px; }
.subject-card h3 { font-size: 18px; }
.subject-card .count { margin-top: 2px; color: var(--muted); font-size: 15px; }
.topic-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.topic-chips a, .topic-chips span { font-size: 14px; font-weight: 600; padding: 6px 12px; border-radius: 999px; text-decoration: none; }
.topic-chips a { background: var(--indigo-soft); color: var(--indigo); }
.topic-chips a:hover { background: var(--indigo); color: #fff; }
.topic-chips a b { font-weight: 800; margin-left: 4px; opacity: .7; }
.topic-chips span { background: var(--paper); color: #9a9db5; border: 1px dashed var(--line); }
@media (max-width: 860px) { .subject-grid { columns: 1; } }
/* Topic board on /pyq: every subject and topic on about one screen. */
#topics .wrap { max-width: 1320px; }
.topic-board { columns: 4 230px; column-gap: 12px; }
.tb-subject { break-inside: avoid; margin-bottom: 14px; padding: 10px 10px 8px; background: var(--card); border: 1px solid var(--line); border-top: 3px solid var(--c); border-radius: 14px; }
.tb-head { display: flex; align-items: center; gap: 8px; padding: 0 2px 6px; }
.tb-head h3 { flex: 1; font-size: 15px; line-height: 1.25; margin: 0; }
.tb-n { font-size: 12px; font-weight: 800; color: var(--c); background: color-mix(in srgb, var(--c) 12%, transparent); padding: 2px 8px; border-radius: 999px; }
.tb-subject ul { list-style: none; margin: 0; padding: 0; }
.tb-subject li a, .tb-empty { display: flex; align-items: center; gap: 8px; padding: 3px 4px; border-radius: 8px; text-decoration: none; color: var(--text); font-size: 13.5px; line-height: 1.2; }
.tb-subject li a:hover { background: color-mix(in srgb, var(--c) 9%, transparent); }
.tb-thumb { flex: none; width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center; color: var(--c); background: color-mix(in srgb, var(--c) 13%, transparent); }
.tb-thumb svg { width: 15px; height: 15px; }
.tb-thumb.tb-big { width: 28px; height: 28px; border-radius: 8px; color: #fff; background: var(--c); }
.tb-thumb.tb-big svg { width: 17px; height: 17px; }
.tb-label { flex: 1; min-width: 0; }
.tb-subject li b { font-size: 12px; font-weight: 800; color: var(--muted); }
.tb-empty { color: #a3a6bd; }
.tb-empty .tb-thumb { filter: grayscale(1); opacity: .5; }
@media (max-width: 560px) { .topic-board { columns: 2; column-gap: 8px; } .tb-subject { padding: 8px 6px 6px; margin-bottom: 8px; } .tb-subject li a, .tb-empty { font-size: 12.5px; gap: 6px; padding: 3px 2px; } .tb-thumb { width: 20px; height: 20px; border-radius: 6px; } .tb-thumb svg { width: 13px; height: 13px; } .tb-head h3 { font-size: 13.5px; } .tb-n { padding: 1px 6px; } }

/* questions */
.scorebar { position: sticky; top: 70px; z-index: 5; display: flex; flex-wrap: wrap; gap: 6px 22px; align-items: center; padding: 14px 20px; margin-bottom: 22px; border-radius: 16px; background: var(--ink); color: #c9cbe8; box-shadow: 0 14px 40px rgba(21, 19, 47, .25); font-size: 15px; }
.scorebar strong { color: #fff; font-family: var(--display); }
.scorebar .sb-marks-wrap strong { color: var(--amber); font-size: 18px; }
.scorebar small { color: #8a8db8; }
.sb-reset { margin-left: auto; background: transparent; border: 1px solid rgba(255, 255, 255, .25); border-radius: 999px; padding: 6px 14px; font: inherit; font-size: 14px; font-weight: 700; color: #e2e3f7; cursor: pointer; }
.sb-reset:hover { border-color: rgba(255, 255, 255, .6); }
.pq { padding: 24px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 18px; scroll-margin-top: 150px; }
.pq-head { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 12px; }
.pq-num { display: inline-grid; place-items: center; min-width: 40px; height: 32px; padding: 0 10px; border-radius: 10px; background: var(--indigo); color: #fff; font-family: var(--display); font-weight: 700; font-size: 15px; }
.pq-topic { font-size: 13px; font-weight: 700; color: var(--indigo); text-decoration: none; background: var(--indigo-soft); padding: 4px 12px; border-radius: 999px; }
.pq-topic:hover { background: var(--indigo); color: #fff; }
.pq-text { white-space: pre-line; font-size: 17px; color: var(--text); }
.pq-opts { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 10px; }
.pq-opt { width: 100%; display: flex; gap: 14px; align-items: flex-start; text-align: left; padding: 12px 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--paper); font: inherit; font-size: 16px; color: var(--text); cursor: pointer; transition: border-color .15s, background .15s; }
.pq-opt:hover:not(:disabled) { border-color: var(--indigo); background: var(--indigo-soft); }
.pq-opt:disabled { cursor: default; }
.pq-l { flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: var(--card); border: 1px solid var(--line); font-weight: 800; font-size: 14px; color: var(--muted); }
.pq-opt.is-right { border-color: #16a34a; background: #ecfdf3; }
.pq-opt.is-right .pq-l { background: #16a34a; border-color: #16a34a; color: #fff; }
.pq-opt.is-wrong { border-color: #dc2626; background: #fef2f2; }
.pq-opt.is-wrong .pq-l { background: #dc2626; border-color: #dc2626; color: #fff; }
.pq-after { margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--line); }
.pq-verdict { font-family: var(--display); font-weight: 700; }
.pq-verdict.ok { color: #16a34a; }
.pq-verdict.no { color: #dc2626; }
.pq-key { margin-top: 4px; color: var(--muted); }
.pq-key strong { color: var(--text); }
.pq-expl { margin-top: 12px; padding: 16px 18px; border-radius: 14px; background: var(--indigo-soft); font-size: 16px; }
.pq-expl .expl-title { font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--indigo); margin-bottom: 6px; }
.expl-note { background: #fff7ed; border: 1px solid #fed7aa; border-radius: 10px; padding: 8px 12px; margin-bottom: 10px; font-size: 15px; color: #7c2d12; }
.expl-points { margin: 0; padding-left: 20px; }
.expl-points li { margin: 6px 0; }
.expl-verdict { margin-top: 10px; font-weight: 700; }
.pq-locked { display: flex; gap: 12px; align-items: center; margin-top: 12px; padding: 14px 16px; border-radius: 14px; border-left: 4px solid var(--orange); background: #fff7ed; color: #7c2d12; font-size: 15px; }

/* closing call to action: the home hero's colours */
.cta-band { position: relative; overflow: hidden; background: radial-gradient(120% 120% at 80% 0%, #3b33b8 0%, var(--ink-2) 50%, var(--ink) 100%); color: #fff; }
.cta-band .wrap { position: relative; display: grid; grid-template-columns: 1.3fr .7fr; gap: 32px; align-items: center; }
.cta-band h2 { font-size: clamp(26px, 3.6vw, 36px); }
.cta-band h2 em { font-style: normal; color: var(--amber); }
.cta-band p { margin-top: 12px; color: #cfd1ee; font-size: 18px; }
.cta-band .cta-row { margin-top: 0; justify-content: flex-end; }
.cta-band img { width: 120px; height: 120px; border-radius: 26%; justify-self: end; box-shadow: 0 20px 50px rgba(0, 0, 0, .4); }
@media (max-width: 760px) { .cta-band .wrap { grid-template-columns: 1fr; } .cta-band .cta-row { justify-content: flex-start; } }

/* news */
.day-strip { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 28px; }
.day-strip a { flex: 0 0 auto; display: grid; justify-items: center; min-width: 68px; padding: 10px 12px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); color: var(--text); text-decoration: none; }
.day-strip a span { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.day-strip a strong { font-family: var(--display); font-size: 22px; line-height: 1.2; }
.day-strip a[aria-current] { background: var(--indigo); border-color: var(--indigo); color: #fff; }
.day-strip a[aria-current] span { color: #c9cbe8; }
.news-day-head { margin-bottom: 22px; }
.news-day-head h2 { font-size: clamp(24px, 3.2vw, 32px); }
.news-day-head p { margin-top: 6px; color: var(--muted); }
.news-empty { padding: 36px; border-radius: var(--radius); background: var(--card); border: 1px dashed var(--line); color: var(--muted); text-align: center; }
.news-item { padding: 26px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 20px; }
.news-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.news-tags span { font-size: 13px; font-weight: 700; padding: 4px 12px; border-radius: 999px; background: var(--indigo-soft); color: var(--indigo); }
.news-tags .news-paper { color: #fff; background: var(--indigo); }
.news-paper.p-gs1 { background: #d97706 !important; }
.news-paper.p-gs2 { background: #7c3aed !important; }
.news-paper.p-gs3 { background: #059669 !important; }
.news-paper.p-gs4 { background: #db2777 !important; }
.news-tags .news-pick { background: #fff7ed; color: #c2410c; }
.news-item h3.news-title { font-size: 22px; margin-top: 12px; }
.news-why { margin-top: 10px; color: #2e2d45; }
.news-block { margin-top: 18px; }
.news-block-title { display: flex; gap: 8px; align-items: center; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--orange); margin-bottom: 6px; }
.news-facts { margin: 0; padding-left: 20px; }
.news-facts li { margin: 4px 0; }
.news-mains { margin-top: 18px; padding: 16px 18px; border-radius: 14px; border-left: 4px solid var(--indigo); background: var(--indigo-soft); }
.news-pyq { display: flex; gap: 14px; align-items: center; margin-top: 18px; padding: 16px 18px; border-radius: 14px; background: #fff7ed; border: 1px solid #fed7aa; text-decoration: none; color: var(--text); }
.news-pyq .ico { flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--orange); color: #fff; }
.news-pyq .ico svg { width: 22px; height: 22px; }
.news-pyq strong { display: block; font-family: var(--display); }
.news-pyq span { color: #9a3412; font-size: 15px; }
.news-pyq .go { margin-left: auto; color: var(--orange); font-weight: 800; font-size: 20px; }
.news-places { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.news-places span { font-size: 14px; font-weight: 700; padding: 5px 12px; border-radius: 999px; background: #ecfdf3; color: #047857; }
.news-q { margin-top: 18px; border: 1px solid var(--line); border-radius: 14px; padding: 14px 18px; background: var(--paper); }
.news-q summary { cursor: pointer; font-weight: 700; }
.news-q ol { margin: 10px 0 0; }
.news-q li.ok { font-weight: 700; color: #16a34a; }
.news-q p { margin-top: 8px; color: var(--muted); }
.news-source { margin-top: 16px; font-size: 14px; color: var(--muted); }

/* home: the free-on-the-website section uses .feature cards */
.study-links { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.study-links .feature { text-decoration: none; color: var(--text); transition: border-color .15s, transform .15s; }
.study-links .feature:hover { border-color: var(--indigo); transform: translateY(-2px); }
.study-links .feature .more { display: inline-block; margin-top: 10px; color: var(--orange); font-weight: 700; }
@media (max-width: 760px) { .study-links { grid-template-columns: 1fr; } .scorebar { top: 66px; gap: 4px 14px; padding: 12px 14px; font-size: 14px; } .pq, .news-item { padding: 18px; } }

/* Home: "Free on this website" — two dark app-style cards. */
.study-links { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.sl-card { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 14px; padding: 28px; border-radius: 22px; text-decoration: none; color: #fff; background: radial-gradient(120% 100% at 85% 0%, #3b33b8 0%, var(--ink-2) 50%, var(--ink) 100%); box-shadow: 0 18px 40px -22px rgba(30, 27, 75, .7); transition: transform .18s, box-shadow .18s; }
.sl-card:hover { transform: translateY(-3px); box-shadow: 0 24px 48px -22px rgba(30, 27, 75, .85); }
.sl-trail { position: absolute; right: 0; top: 0; width: 70%; height: 90px; opacity: .55; pointer-events: none; }
.sl-top { position: relative; display: flex; align-items: center; justify-content: space-between; }
.sl-ico { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--orange); color: #fff; box-shadow: 0 8px 18px -8px rgba(249, 115, 22, .8); }
.sl-tag { font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--amber); background: rgba(253, 186, 116, .12); border: 1px solid rgba(253, 186, 116, .3); padding: 4px 10px; border-radius: 999px; }
.sl-card h3 { position: relative; font-size: 22px; color: #fff; }
.sl-card p { margin: 0; color: #cfd1ee; font-size: 16px; }
.sl-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.sl-stats div { padding: 10px 8px; border-radius: 12px; text-align: center; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); }
.sl-stats strong { display: block; font-family: var(--display); font-size: 20px; line-height: 1.1; color: #fff; }
.sl-stats span { font-size: 13px; color: #a9acd6; }
.sl-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; flex: 1; }
.sl-points li { display: flex; gap: 8px; align-items: flex-start; font-size: 15px; color: #e2e3f7; }
.sl-points svg { flex: none; margin-top: 4px; color: var(--orange); }
.sl-cta { align-self: flex-start; display: inline-flex; gap: 8px; align-items: center; padding: 11px 18px; border-radius: 999px; background: #fff; color: var(--ink-2); font-family: var(--display); font-weight: 700; font-size: 15px; }
.sl-cta b { color: var(--orange); transition: transform .18s; }
.sl-card:hover .sl-cta b { transform: translateX(4px); }
@media (max-width: 760px) { .study-links { grid-template-columns: 1fr; } .sl-card { padding: 22px; } }

/* ── PYQ test interface (website/src/assets/pyq.js) ──
   Page: .cbt-intro card. Start: .cbt-shell becomes a full-screen test
   (.cbt.is-testing) — header, progress bar, question, palette, footer.
   Without JavaScript only the plain question list shows. */
.cbt-intro, .cbt-top, .cbt-progress, .cbt-swipe, .cbt-side, .cbt-foot, .cbt-modal, .pq-flag, .pq-state:empty { display: none; }
.cbt.is-on .cbt-intro { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; align-items: start; }
.cbt.is-on:not(.is-testing) .cbt-shell { display: none; }
html.cbt-lock, html.cbt-lock body { overflow: hidden; }

/* intro card */
.ci-main { padding: 28px; border-radius: 22px; background: var(--card); border: 1px solid var(--line); border-top: 4px solid var(--orange); box-shadow: 0 18px 40px -30px rgba(30, 27, 75, .5); }
.ci-main h3 { font-size: 24px; margin: 6px 0 14px; }
.ci-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ci-chips span { display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: 999px; background: var(--indigo-soft); color: var(--indigo); font-size: 14px; font-weight: 700; }
.ci-chips svg { width: 16px; height: 16px; }
.ci-rules { counter-reset: r; list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; }
.ci-rules li { counter-increment: r; position: relative; padding-left: 38px; min-height: 26px; font-size: 16px; color: var(--muted); }
.ci-rules li::before { content: counter(r); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--ink-2); color: #fff; font-family: var(--display); font-weight: 700; font-size: 13px; }
.ci-rules strong { color: var(--text); }
.ci-actions { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; margin-top: 24px; }
.ci-main .kicker { display: block; font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--orange); }
.ci-start { font-family: var(--display); font-weight: 700; font-size: 17px; padding: 14px 28px; border: 0; cursor: pointer; }
.ci-resume { font-size: 15px; color: var(--muted); }
.ci-link { border: 0; background: none; padding: 0; color: var(--indigo); font: inherit; font-weight: 700; text-decoration: underline; cursor: pointer; }
.ci-history { padding: 22px; border-radius: 22px; color: #fff; background: radial-gradient(120% 120% at 85% 0%, #3b33b8 0%, var(--ink-2) 50%, var(--ink) 100%); }
.ci-history[hidden] { display: none; }
.ci-best { display: grid; gap: 2px; padding-bottom: 14px; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.ci-best span { font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--amber); }
.ci-best strong { font-family: var(--display); font-size: 40px; line-height: 1.1; }
.ci-best em { font-style: normal; color: #a9acd6; font-size: 14px; }
.ci-past-h { margin: 14px 0 6px; font-size: 13px; color: #a9acd6; }
.ci-row { display: grid; grid-template-columns: 52px 1fr auto auto; gap: 10px; align-items: center; padding: 7px 0; font-size: 14px; color: #cfd1ee; border-bottom: 1px dashed rgba(255, 255, 255, .08); }
.ci-row strong { font-family: var(--display); color: #fff; }
.ci-row small { color: #a9acd6; font-weight: 400; }

/* the full-screen test */
.cbt.is-testing .cbt-shell { position: fixed; inset: 0; z-index: 100; display: grid; grid-template-rows: auto 4px minmax(0, 1fr) auto; background: var(--paper); }
.cbt.is-testing .cbt-top { display: flex; align-items: center; gap: 12px; padding: 10px 16px; padding-top: max(10px, env(safe-area-inset-top)); background: radial-gradient(140% 160% at 90% 0%, #3b33b8 0%, var(--ink-2) 55%, var(--ink) 100%); color: #c9cbe8; }
.cbt-x { flex: none; width: 38px; height: 38px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .18); background: rgba(255, 255, 255, .06); color: #fff; font-size: 24px; line-height: 1; cursor: pointer; }
.cbt-x:hover { background: rgba(255, 255, 255, .14); }
.cbt-ttl { flex: 1; min-width: 0; display: grid; }
.cbt-ttl strong { color: #fff; font-family: var(--display); font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cbt-pos { font-size: 13.5px; color: #a9acd6; }
.cbt-pos b { color: #fff; }
.cbt-timer { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; background: rgba(255, 255, 255, .1); color: #fff; font-family: var(--display); font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.cbt-timer svg { width: 16px; height: 16px; color: var(--amber); }
.cbt-timer.is-warn { background: rgba(253, 186, 116, .22); color: var(--amber); }
.cbt-timer.is-low { background: #dc2626; animation: cbt-pulse 1.4s ease-in-out infinite; }
.cbt-timer.is-low svg { color: #fff; }
@keyframes cbt-pulse { 50% { opacity: .75; } }
.cbt-pal-btn { display: none; place-items: center; width: 38px; height: 38px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .18); background: rgba(255, 255, 255, .06); color: #fff; cursor: pointer; }
.cbt-pal-btn svg { width: 18px; height: 18px; }
.cbt-submit { flex: none; padding: 9px 18px; border-radius: 999px; border: 0; background: var(--orange); color: #fff; font-family: var(--display); font-weight: 700; font-size: 14px; cursor: pointer; }
.cbt-submit:hover { background: #ea580c; }
.cbt.is-testing .cbt-progress { display: block; background: #e4e5f0; }
.cbt-progress i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--orange), var(--amber)); transition: width .25s; }

.cbt.is-testing .cbt-body { display: grid; grid-template-columns: minmax(0, 1fr) 320px; min-height: 0; }
.cbt.is-testing .cbt-main { overflow-y: auto; padding: 24px 24px 32px; overscroll-behavior: contain; }
.cbt.is-testing .cbt-qs, .cbt.is-testing .cbt-result { max-width: 860px; margin: 0 auto; }
.cbt.is-testing .pq { display: none; margin: 0; box-shadow: 0 18px 40px -32px rgba(30, 27, 75, .6); }
.cbt.is-testing .pq.is-cur { display: block; animation: pq-in .18s ease-out; }
@keyframes pq-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.cbt.is-testing .pq-text { font-size: 18px; line-height: 1.65; }
.cbt.is-testing .cbt-swipe { display: none; }
.pq.is-marked .pq-flag { display: inline-flex; align-items: center; gap: 5px; margin-left: auto; padding: 4px 10px; border-radius: 999px; background: #f5f3ff; color: #7c3aed; font-size: 13px; font-weight: 700; }
.pq-flag svg { width: 14px; height: 14px; }
.pq-state { padding: 4px 10px; border-radius: 999px; font-size: 13px; font-weight: 800; }
.pq-state.st-right { display: inline-block; background: #dcfce7; color: #15803d; }
.pq-state.st-wrong { display: inline-block; background: #fee2e2; color: #b91c1c; }
.pq-state.st-skipped { display: inline-block; background: #e5e7eb; color: #4b5563; }
.pq-o { flex: 1; }
.pq-tag { align-self: center; font-size: 12.5px; font-weight: 800; white-space: nowrap; }
.pq-opt.is-right .pq-tag { color: #15803d; }
.pq-opt.is-wrong .pq-tag { color: #b91c1c; }
.pq-opt.is-picked { border-color: var(--indigo); background: var(--indigo-soft); box-shadow: 0 0 0 1px var(--indigo) inset; }
.pq-opt.is-picked .pq-l { background: var(--indigo); border-color: var(--indigo); color: #fff; }
.pq-verdict.skip { color: var(--muted); }

/* palette */
.cbt.is-testing .cbt-side { display: flex; flex-direction: column; min-height: 0; padding: 18px 16px; background: var(--card); border-left: 1px solid var(--line); }
.cbt-side-head { display: flex; justify-content: space-between; align-items: center; font-family: var(--display); margin-bottom: 12px; }
.cbt-side-close { display: none; border: 0; background: none; font-size: 28px; line-height: 1; color: var(--muted); cursor: pointer; }
.cbt-legend { display: grid; grid-template-columns: 1fr 1fr; gap: 7px 10px; font-size: 12.5px; color: var(--muted); padding-bottom: 12px; margin-bottom: 12px; border-bottom: 1px solid var(--line); }
.cbt-legend .lg { display: flex; align-items: center; gap: 7px; }
.cbt-legend .pal { width: 28px; height: 26px; font-size: 11.5px; cursor: default; flex: none; }
.cbt-filter { display: flex; gap: 8px; align-items: center; font-size: 14px; margin-bottom: 10px; }
.cbt-filter[hidden] { display: none; }
.cbt-grid { flex: 1; min-height: 0; overflow-y: auto; display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; align-content: start; padding: 4px; }
.pal { position: relative; display: grid; place-items: center; height: 38px; border-radius: 10px; border: 1px solid var(--line); background: var(--paper); color: var(--muted); font: inherit; font-size: 14px; font-weight: 700; font-style: normal; cursor: pointer; transition: transform .1s; }
.pal:hover { transform: translateY(-1px); }
.pal-skip { background: #fef2f2; border-color: #fca5a5; color: #b91c1c; }
.pal-ans, .pal-right { background: #16a34a; border-color: #16a34a; color: #fff; }
.pal-mark, .pal-ansmark { background: #7c3aed; border-color: #7c3aed; color: #fff; border-radius: 50%; }
.pal-ansmark::after { content: ""; position: absolute; right: -2px; bottom: -2px; width: 11px; height: 11px; border-radius: 50%; background: #16a34a; border: 2px solid #fff; }
.pal-wrong { background: #dc2626; border-color: #dc2626; color: #fff; }
.pal-skipped { background: #e5e7eb; border-color: #d1d5db; color: #4b5563; }
.pal.is-cur { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--orange); }
.cbt-submit-side { width: 100%; margin-top: 12px; padding: 12px; font-size: 15px; }

/* footer */
.cbt.is-testing .cbt-foot { display: flex; gap: 10px; justify-content: center; padding: 12px 16px; padding-bottom: max(12px, env(safe-area-inset-bottom)); background: var(--card); border-top: 1px solid var(--line); box-shadow: 0 -10px 30px -20px rgba(21, 19, 47, .4); }
.cbt-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 11px 18px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); color: var(--text); font: inherit; font-weight: 700; font-size: 15px; cursor: pointer; transition: border-color .15s, background .15s; }
.cbt-btn svg { width: 18px; height: 18px; }
.cbt-btn:hover:not(:disabled) { border-color: var(--indigo); color: var(--indigo); }
.cbt-btn:disabled { opacity: .45; cursor: default; }
.cbt-btn.is-primary { background: var(--indigo); border-color: var(--indigo); color: #fff; min-width: 150px; }
.cbt-btn.is-primary:hover:not(:disabled) { background: #4338ca; color: #fff; }
.cbt-btn.is-primary.is-skip { background: var(--ink-2); border-color: var(--ink-2); }
.cbt-mark { color: #7c3aed; border-color: #ddd6fe; background: #f5f3ff; }
.cbt-mark.is-on { background: #7c3aed; border-color: #7c3aed; color: #fff; }
.cbt-mark.is-on:hover:not(:disabled) { color: #fff; }
.cbt.is-review .cbt-clear, .cbt.is-review .cbt-mark { display: none; }
.cbt.show-result .cbt-foot, .cbt.show-result .cbt-side, .cbt.show-result .cbt-qs, .cbt.show-result .cbt-pal-btn { display: none !important; }
.cbt.show-result .cbt-body { grid-template-columns: 1fr; }

/* modal */
.cbt-modal:not([hidden]) { display: grid; position: fixed; inset: 0; z-index: 120; place-items: center; padding: 16px; background: rgba(21, 19, 47, .6); backdrop-filter: blur(3px); }
.cbt-dialog { width: min(440px, 100%); padding: 24px; border-radius: 20px; background: var(--card); box-shadow: 0 30px 60px rgba(0, 0, 0, .3); }
.cbt-dialog h3 { font-size: 21px; margin-bottom: 14px; }
.cbt-sum { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.cbt-sum div { padding: 12px 6px; border-radius: 12px; background: var(--paper); border: 1px solid var(--line); text-align: center; }
.cbt-sum strong { display: block; font-family: var(--display); font-size: 24px; }
.cbt-sum span { font-size: 12.5px; color: var(--muted); }
.cbt-sum .s-ans strong { color: #16a34a; }
.cbt-sum .s-un strong { color: #b91c1c; }
.cbt-sum .s-mark strong { color: #7c3aed; }
.cbt-note { margin: 12px 0 0; font-size: 15px; color: var(--muted); }
.cbt-dlg-actions { display: flex; gap: 10px; margin-top: 18px; }
.cbt-dlg-actions .cbt-btn { flex: 1; min-width: 0; }

/* result */
.cbt-result { padding: 28px; border-radius: 24px; color: #fff; background: radial-gradient(120% 120% at 85% 0%, #3b33b8 0%, var(--ink-2) 50%, var(--ink) 100%); }
.cbt-result[hidden] { display: none; }
.cbt-timeup, .cbt-retry-note { margin: 0 0 14px; padding: 8px 12px; border-radius: 10px; font-weight: 700; }
.cbt-timeup { background: rgba(220, 38, 38, .25); color: #fecaca; }
.cbt-retry-note { background: rgba(253, 186, 116, .14); color: var(--amber); }
.res-top { display: flex; gap: 24px; align-items: center; }
.res-ring { --p: 0; --c: var(--orange); flex: none; width: 136px; height: 136px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--c) calc(var(--p) * 1%), rgba(255, 255, 255, .12) 0); }
.res-ring.tone-good { --c: #34d399; }
.res-ring.tone-fair { --c: #fbbf24; }
.res-ring.tone-low { --c: #f87171; }
.res-ring > div { width: 110px; height: 110px; border-radius: 50%; display: grid; place-content: center; text-align: center; background: var(--ink-2); }
.res-ring strong { font-family: var(--display); font-size: 30px; line-height: 1; }
.res-ring span { font-size: 13px; color: #a9acd6; }
.res-kick { font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--amber); }
.res-copy h3 { color: #fff; font-size: 26px; margin: 4px 0 6px; }
.res-copy p { margin: 0; color: #cfd1ee; }
.res-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 22px; }
.res-stats div { padding: 12px 6px; border-radius: 14px; text-align: center; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); }
.res-stats strong { display: block; font-family: var(--display); font-size: 22px; }
.res-stats span { font-size: 12.5px; color: #a9acd6; }
.res-stats .ok strong { color: #4ade80; }
.res-stats .no strong { color: #f87171; }
.res-stats .tm strong { color: #93c5fd; }
.res-review { display: block; width: 100%; margin-top: 22px; padding: 14px; border: 0; border-radius: 14px; background: var(--orange); color: #fff; font-family: var(--display); font-weight: 700; font-size: 16px; cursor: pointer; }
.res-review:hover { background: #ea580c; }
.res-hint { margin: 8px 0 0; text-align: center; font-size: 14px; color: #a9acd6; }
.res-retry { display: block; width: 100%; margin-top: 14px; padding: 12px; border-radius: 14px; border: 1px solid rgba(248, 113, 113, .5); background: rgba(248, 113, 113, .12); color: #fecaca; font: inherit; font-weight: 700; cursor: pointer; }
.res-jump-h { margin: 22px 0 10px; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #a9acd6; }
.res-jump { display: grid; grid-template-columns: repeat(auto-fill, minmax(40px, 1fr)); gap: 7px; }
.res-jump .pal { height: 36px; }
.res-jump .pal-skipped { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .14); color: #cfd1ee; }
.res-actions { display: flex; gap: 10px; margin-top: 22px; }
.res-actions .cbt-btn { flex: 1; background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .18); color: #fff; }
.res-actions .cbt-btn:hover { color: #fff; border-color: #fff; }
.res-actions .cbt-btn.is-primary { background: #fff; color: var(--ink-2); border-color: #fff; }

@media (max-width: 980px) {
  .cbt.is-on .cbt-intro { grid-template-columns: 1fr; }
  .cbt.is-testing .cbt-body { grid-template-columns: 1fr; }
  .cbt.is-testing .cbt-pal-btn { display: grid; }
  .cbt.is-testing .cbt-side { display: none; }
  .cbt.is-testing.pal-open .cbt-side { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 110; max-height: 80vh; border-radius: 22px 22px 0 0; border: 0; box-shadow: 0 -20px 50px rgba(21, 19, 47, .4); padding-bottom: max(18px, env(safe-area-inset-bottom)); }
  .cbt.is-testing.pal-open .cbt-shell::after { content: ""; position: fixed; inset: 0; z-index: 105; background: rgba(21, 19, 47, .45); }
  .cbt-side-close { display: block; }
  .cbt-grid { grid-template-columns: repeat(auto-fill, minmax(44px, 1fr)); }
  .cbt.is-testing .cbt-swipe { display: block; text-align: center; font-size: 13px; color: var(--muted); margin: 12px 0 0; }
}
@media (max-width: 600px) {
  .ci-main { padding: 20px; }
  .ci-main h3 { font-size: 20px; }
  .cbt.is-testing .cbt-top { gap: 8px; padding-left: 10px; padding-right: 10px; }
  .cbt-ttl strong { font-size: 14px; }
  .cbt-submit { padding: 9px 14px; }
  .cbt.is-testing .cbt-main { padding: 14px 12px 20px; }
  .cbt.is-testing .pq { padding: 16px; }
  .cbt.is-testing .pq-text { font-size: 16.5px; }
  .cbt.is-testing .cbt-foot { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; padding: 10px; }
  .cbt-foot .cbt-btn { padding: 11px 6px; font-size: 13.5px; }
  .cbt-foot .cbt-next { grid-column: 1 / -1; grid-row: 1; }
  .cbt-btn.is-primary { min-width: 0; }
  .cbt.is-review .cbt-foot { grid-template-columns: 1fr; }
  .cbt.is-review .cbt-foot .cbt-next { grid-row: auto; }
  .cbt-result { padding: 20px; }
  .res-top { flex-direction: column; text-align: center; gap: 14px; }
  .res-stats { grid-template-columns: repeat(2, 1fr); }
  .pq-tag { font-size: 11.5px; white-space: normal; text-align: right; max-width: 80px; }
}

/* ── Editor's News desk (prepwings.in/desk; src/desk.html + assets/desk.js) ── */
.desk-page { background: #f3f4fb; }
.desk { max-width: 1240px; margin: 0 auto; padding: 24px 20px 120px; }
.desk [hidden], .dk-modal[hidden] { display: none !important; }
.desk section { padding-block: 0; }
.dk-loading { text-align: center; color: var(--muted); padding: 60px 0; }
.dk-card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 20px; margin-bottom: 16px; box-shadow: 0 14px 34px -30px rgba(30, 27, 75, .5); }
.dk-card h2 { display: flex; align-items: center; gap: 10px; font-size: 18px; margin: 0 0 6px; }
.dk-n { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--orange); color: #fff; font-size: 13px; }
.dk-hint { margin: 0 0 12px; font-size: 14.5px; color: var(--muted); }
.desk textarea, .desk input[type=text], .desk input[type=url], .desk input[type=email], .desk input[type=password], .desk input[type=date], .desk select,
.dk-dialog textarea, .dk-dialog input[type=text], .dk-dialog input[type=url], .dk-dialog input[type=password], .dk-dialog select {
  width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); font: inherit; font-size: 15px; color: var(--text); }
.desk textarea:focus, .desk input:focus, .desk select:focus, .dk-dialog textarea:focus, .dk-dialog input:focus, .dk-dialog select:focus { outline: 2px solid var(--indigo); outline-offset: 0; border-color: var(--indigo); background: #fff; }
.dk-f { display: grid; gap: 5px; margin-bottom: 12px; font-size: 14px; font-weight: 700; color: var(--text); }
.dk-f small { font-weight: 400; color: var(--muted); }
.dk-row { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; margin-top: 12px; }
.dk-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 10px 16px; border-radius: 11px; border: 1px solid var(--line); background: var(--card); color: var(--text); font: inherit; font-weight: 700; font-size: 15px; cursor: pointer; }
.dk-btn:hover:not(:disabled) { border-color: var(--indigo); color: var(--indigo); }
.dk-btn:disabled { opacity: .5; cursor: default; }
.dk-btn.is-primary { background: var(--indigo); border-color: var(--indigo); color: #fff; }
.dk-btn.is-primary:hover:not(:disabled) { background: #4338ca; color: #fff; }
.dk-btn.is-orange { background: var(--orange); border-color: var(--orange); color: #fff; font-family: var(--display); padding: 12px 22px; }
.dk-btn.is-orange:hover:not(:disabled) { background: #ea580c; color: #fff; }
.dk-small { padding: 6px 12px; font-size: 14px; }
.dk-del { color: #b91c1c; }
.dk-del:hover:not(:disabled) { border-color: #dc2626; color: #dc2626; }
.dk-link { border: 0; background: none; padding: 0; color: var(--indigo); font: inherit; font-weight: 700; cursor: pointer; text-decoration: underline; }
.dk-msg { margin: 10px 0 0; color: #b91c1c; font-size: 14.5px; min-height: 1em; }

/* sign in */
.dk-signin { display: grid; place-items: center; padding: 40px 0; }
.dk-login { width: min(420px, 100%); padding: 28px; border-top: 4px solid var(--orange); }
.dk-login .kicker { font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--orange); }
.dk-login h1 { font-size: 26px; margin: 6px 0 8px; }
.dk-login p { color: var(--muted); margin: 0 0 16px; }
.dk-login label { display: grid; gap: 5px; font-size: 14px; font-weight: 700; margin-bottom: 12px; }
.dk-login .dk-btn.is-primary { width: 100%; padding: 12px; margin-top: 4px; }
.dk-login .dk-link { display: block; margin: 12px auto 0; font-weight: 600; }

/* top bar */
.dk-bar { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; justify-content: space-between; padding: 16px 20px; margin-bottom: 18px; border-radius: 18px; color: #c9cbe8;
  background: radial-gradient(140% 160% at 90% 0%, #3b33b8 0%, var(--ink-2) 55%, var(--ink) 100%); }
.dk-bar h1 { color: #fff; font-size: 22px; margin: 0; }
.dk-bar-l, .dk-bar-r { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; }
.dk-day { display: flex; gap: 8px; align-items: center; font-weight: 700; color: #fff; }
.dk-day input { width: auto; padding: 6px 10px; border-radius: 9px; border: 0; }
.dk-pub { font-size: 14px; display: inline-flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.dk-pub a, .dk-pub .dk-link { color: var(--amber); }
.dk-dot { width: 9px; height: 9px; border-radius: 50%; background: #9a9db5; }
.dk-pub.is-live .dk-dot { background: #4ade80; box-shadow: 0 0 0 3px rgba(74, 222, 128, .25); }
.dk-who { font-size: 14px; }
.dk-bar .dk-link { color: #fff; }
.dk-bar .dk-btn { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .2); color: #fff; }

.dk-cols { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 18px; align-items: start; }
.dk-seg { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 12px; }
.dk-seg label { display: flex; gap: 6px; align-items: center; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line); font-size: 14px; font-weight: 700; cursor: pointer; }
.dk-seg label:has(input:checked) { border-color: var(--indigo); background: var(--indigo-soft); color: var(--indigo); }
.dk-card > .dk-btn.is-primary { margin-top: 10px; }

/* drafting jobs */
.dk-jobs h3 { font-size: 15px; margin: 4px 0 8px; color: var(--muted); }
.dk-job { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; margin-bottom: 8px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); font-size: 14px; }
.dk-job strong { display: block; font-size: 14.5px; }
.dk-job span { color: var(--muted); }
.dk-job-act { display: block; margin-top: 4px; }
.dk-js { flex: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--paper); font-weight: 800; color: var(--muted); }
.dk-job.is-done .dk-js { background: #dcfce7; color: #15803d; }
.dk-job.is-failed { border-color: #fecaca; background: #fff7f7; }
.dk-job.is-failed .dk-js { background: #fee2e2; color: #b91c1c; }
.dk-job.is-failed span:not(.dk-js):not(.dk-job-act) { color: #b91c1c; display: block; }
.dk-spin { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--line); border-top-color: var(--indigo); animation: dk-spin .8s linear infinite; }
@keyframes dk-spin { to { transform: rotate(360deg); } }

/* drafts */
.dk-drafts-h { display: flex; justify-content: space-between; align-items: center; }
.dk-drafts-h span { font-size: 14px; font-weight: 700; color: var(--muted); }
.dk-empty { color: var(--muted); text-align: center; padding: 30px 0; border: 2px dashed var(--line); border-radius: 14px; }
.dk-draft { padding: 16px; margin-bottom: 12px; border-radius: 14px; border: 1px solid var(--line); border-left: 4px solid var(--line); background: var(--paper); opacity: .75; }
.dk-draft.is-on { opacity: 1; background: #fff; border-left-color: #16a34a; }
.dk-draft h3 { font-size: 17px; margin: 8px 0 6px; }
.dk-draft p { margin: 0; font-size: 15px; color: var(--muted); }
.dk-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.dk-tags span { font-size: 12.5px; font-weight: 800; padding: 3px 9px; border-radius: 999px; }
.dk-paper { background: var(--ink-2); color: #fff; }
.dk-topic { background: var(--indigo-soft); color: var(--indigo); }
.dk-pick { background: #fff7ed; color: #c2410c; }
.dk-warn { background: #fef3c7; color: #92400e; }
.dk-warn-t { color: #b45309 !important; font-weight: 700; }
.dk-meta { margin-top: 8px; font-size: 13.5px; color: var(--muted); }
.dk-ctl { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 12px; }
.dk-ctl .dk-switch { margin-right: auto; }
.dk-icon { width: 34px; height: 34px; border-radius: 9px; border: 1px solid var(--line); background: var(--card); font-size: 16px; font-weight: 800; cursor: pointer; }
.dk-icon:disabled { opacity: .35; cursor: default; }
.dk-switch { display: inline-flex; gap: 8px; align-items: center; font-weight: 700; font-size: 14px; cursor: pointer; }
.dk-switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.dk-switch span { position: relative; width: 40px; height: 22px; border-radius: 999px; background: #d1d5db; transition: background .15s; }
.dk-switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .15s; }
.dk-switch input:checked + span { background: #16a34a; }
.dk-switch input:checked + span::after { transform: translateX(18px); }
.dk-switch input:focus-visible + span { outline: 3px solid var(--orange); outline-offset: 2px; }

/* publish bar */
.dk-publish { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: flex; gap: 16px; align-items: center; justify-content: flex-end; padding: 12px max(20px, calc((100vw - 1240px) / 2 + 20px)); background: rgba(255, 255, 255, .94); backdrop-filter: blur(8px); border-top: 1px solid var(--line); }
.dk-publish span { font-size: 14px; color: var(--muted); }

/* dialogs */
.dk-modal { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 16px; background: rgba(21, 19, 47, .55); backdrop-filter: blur(3px); }
.dk-modal[hidden] { display: none; }
.dk-dialog { width: min(460px, 100%); max-height: 92vh; overflow-y: auto; padding: 22px; border-radius: 18px; background: var(--card); box-shadow: 0 30px 60px rgba(0, 0, 0, .3); }
.dk-dialog h3 { font-size: 19px; margin: 0 0 8px; }
.dk-confirm { margin: 0; font-size: 16px; }
.dk-edit { width: min(760px, 100%); padding: 0; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
.dk-edit-h, .dk-edit-f { display: flex; align-items: center; gap: 10px; padding: 14px 20px; border-bottom: 1px solid var(--line); }
.dk-edit-h h2 { flex: 1; font-size: 19px; margin: 0; }
.dk-edit-f { border-bottom: 0; border-top: 1px solid var(--line); justify-content: flex-end; }
.dk-edit-f .dk-msg { margin: 0 auto 0 0; }
.dk-edit-body { overflow-y: auto; padding: 18px 20px 6px; }
.dk-x { border: 0; background: none; font-size: 26px; line-height: 1; color: var(--muted); cursor: pointer; }
.dk-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.dk-places { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 6px; }
.dk-chip { display: inline-flex; gap: 6px; align-items: center; padding: 4px 6px 4px 10px; border-radius: 999px; background: var(--indigo-soft); color: var(--indigo); font-size: 13.5px; font-weight: 700; }
.dk-chip button { border: 0; background: none; font-size: 16px; line-height: 1; color: inherit; cursor: pointer; }
.dk-q { border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px 4px; margin: 0 0 12px; }
.dk-q legend { padding: 0 6px; font-weight: 700; font-size: 14px; }
.dk-q:has(input[name=hasQ]:not(:checked)) > :not(legend) { display: none; }
.dk-opts { display: grid; gap: 8px; margin-bottom: 12px; }
.dk-opts label { display: grid; grid-template-columns: auto auto 1fr; gap: 8px; align-items: center; font-weight: 700; }

@media (max-width: 900px) {
  .dk-cols { grid-template-columns: 1fr; }
  .dk-grid2 { grid-template-columns: 1fr; }
  .dk-publish { justify-content: space-between; }
}

/* desk: photos and daily MCQs */
.dk-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin: 4px 0 8px; }
.dk-photo { display: grid; gap: 6px; padding: 6px; border-radius: 12px; border: 1px solid var(--line); background: var(--paper); }
.dk-photo img, .dk-photo-up { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; background: #e5e7eb; }
.dk-photo-up { display: grid; place-items: center; }
.dk-photo input[type=text] { padding: 6px 8px; font-size: 13px; }
.dk-photo-ctl { display: flex; justify-content: space-between; }
.dk-photo-ctl .dk-icon { width: 30px; height: 30px; font-size: 15px; }
.dk-upload { justify-self: start; width: max-content; cursor: pointer; }
.dk-row-l { justify-content: flex-start; align-items: center; margin-top: 0; }
.dk-inline { display: inline-flex; gap: 8px; align-items: center; font-weight: 700; font-size: 14px; }
.dk-inline select { width: auto; padding: 8px 10px; }
.dk-mcq { padding: 14px; margin-top: 10px; border-radius: 14px; border: 1px solid var(--line); border-left: 4px solid #7c3aed; background: #fff; }
.dk-mcq-q { display: flex; gap: 10px; font-weight: 700; white-space: pre-line; }
.dk-mcq-n { flex: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 7px; background: #7c3aed; color: #fff; font-size: 13px; }
.dk-mcq-o { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 4px; font-size: 14.5px; }
.dk-mcq-o li { padding: 5px 10px; border-radius: 8px; background: var(--paper); }
.dk-mcq-o li.is-ans { background: #dcfce7; color: #15803d; font-weight: 700; }
.dk-mcq-x { margin: 8px 0 0; font-size: 14px; color: var(--muted); }
.dk-mcq-from { margin: 6px 0 0; font-size: 13px; color: var(--indigo); }
.dk-mcq .dk-ctl > span { margin-right: auto; }

/* news: photos, daily quiz, calendar */
.news-photos { margin-top: 16px; display: grid; gap: 10px; }
.news-photos.is-many { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.news-photos figure { margin: 0; }
.news-photo { display: block; width: 100%; padding: 0; border: 0; border-radius: 14px; overflow: hidden; background: #eceef7; cursor: zoom-in; }
.news-photo img { display: block; width: 100%; height: auto; max-height: 460px; object-fit: cover; }
.news-photos.is-many .news-photo img { aspect-ratio: 4 / 3; height: 100%; }
.news-photos figcaption { margin-top: 6px; font-size: 14px; color: var(--muted); }
.news-viewer { position: fixed; inset: 0; z-index: 130; display: grid; place-items: center; padding: 20px; background: rgba(10, 9, 25, .92); }
.news-viewer[hidden] { display: none; }
.news-viewer figure { margin: 0; max-width: min(1200px, 100%); text-align: center; }
.news-viewer img { max-width: 100%; max-height: 82vh; border-radius: 10px; }
.news-viewer figcaption { color: #e2e3f7; margin-top: 10px; }
.nv-x { position: absolute; top: 16px; right: 18px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .15); color: #fff; font-size: 28px; line-height: 1; cursor: pointer; }
.news-day-head a { color: var(--orange); font-weight: 700; text-decoration: none; }
.news-quiz { margin-top: 44px; scroll-margin-top: 80px; }
.news-quiz[hidden] { display: none; }
.day-strip a.is-done::after { content: "✓"; position: absolute; top: 4px; right: 6px; font-size: 11px; font-weight: 800; color: #16a34a; }
.day-strip a { position: relative; }
.day-strip a.day-more { border-style: dashed; border-color: var(--orange); }
.day-strip a.day-more strong { font-size: 18px; }

.news-cal { max-width: 760px; margin: 0 auto; padding: 22px; border-radius: 22px; background: var(--card); border: 1px solid var(--line); box-shadow: 0 18px 40px -30px rgba(30, 27, 75, .5); }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.cal-head strong { font-family: var(--display); font-size: 20px; }
.cal-nav { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--paper); font-size: 24px; line-height: 1; cursor: pointer; color: var(--text); }
.cal-nav:disabled { opacity: .3; cursor: default; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.cal-wait { grid-column: 1 / -1; text-align: center; color: var(--muted); }
.cal-dow { text-align: center; font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; padding-bottom: 4px; }
.cal-dow:last-of-type { color: var(--orange); }
.cal-day { display: grid; place-items: center; align-content: center; gap: 2px; aspect-ratio: 1 / .9; border-radius: 12px; color: #a3a6bd; text-decoration: none; font-size: 15px; }
.cal-day b { font-weight: 700; }
.cal-day i, .cal-day em { font-style: normal; font-size: 11px; font-weight: 800; }
.cal-day.is-pub { background: var(--indigo-soft); color: var(--text); border: 1px solid #d9dcfb; }
.cal-day.is-pub i { color: var(--indigo); }
.cal-day.is-pub:hover { border-color: var(--indigo); }
.cal-day.is-done { background: #dcfce7; border-color: #bbf7d0; }
.cal-day.is-done em { color: #15803d; }
.cal-day.is-today { box-shadow: inset 0 0 0 2px var(--orange); }
.cal-day.is-sel { background: var(--indigo); color: #fff; border-color: var(--indigo); }
.cal-day.is-sel i, .cal-day.is-sel em { color: #fff; }
@media (max-width: 600px) { .news-cal { padding: 14px; } .cal-grid { gap: 4px; } .cal-day { font-size: 14px; border-radius: 9px; } .cal-day i, .cal-day em { font-size: 9.5px; } .cal-dow { font-size: 10.5px; letter-spacing: 0; } }

/* "Coming soon" pages and home cards (website/soon.js; build.js OPEN). */
.soon-points { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 10px; color: #e7e8fb; font-size: 17px; }
.soon-points li { display: flex; gap: 10px; align-items: center; }
.soon-points svg { color: var(--amber); flex: none; }
.sl-card.sl-soon { cursor: default; }
.sl-card.sl-soon:hover { transform: none; box-shadow: 0 18px 40px -22px rgba(30, 27, 75, .7); }
.sl-soon .sl-cta { background: rgba(255, 255, 255, .12); color: #fff; border: 1px solid rgba(255, 255, 255, .25); }

/* ── Question dashboard (prepwings.in/desk-questions; src/desk-questions.html + assets/questions.js) ── */
.qd-total { font-size: 14px; color: #c9cbe8; }
.dk-bar-link, .qd-bar-link { color: var(--amber); }
.qd-filters { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px 14px; align-items: end; }
.qd-filters label { display: grid; gap: 5px; font-size: 14px; font-weight: 700; }
.qd-filters .qd-search { grid-column: span 3; }
.qd-filters .qd-check { display: flex; align-items: center; gap: 8px; padding-bottom: 10px; }
.qd-filters .qd-check input { width: 18px; height: 18px; }
.qd-count { margin: 0 0 10px; font-size: 14.5px; color: var(--muted); min-height: 1.4em; }
.qd-tablecard { padding: 0; overflow: hidden; }
.qd-scroll { overflow-x: auto; }
.qd-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.qd-table th { text-align: left; padding: 10px 12px; background: var(--indigo-soft); color: var(--indigo); font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.qd-table td { padding: 10px 12px; border-top: 1px solid var(--line); vertical-align: top; line-height: 1.4; }
.qd-table tbody tr { cursor: pointer; }
.qd-table tbody tr:hover, .qd-table tbody tr:focus { background: #f5f5ff; outline: none; }
.qd-qtext { min-width: 280px; }
.qd-sub { color: var(--muted); font-size: 12.5px; }
.qd-badge { display: inline-block; padding: 2px 9px; border-radius: 999px; background: #fff1e6; color: #c2410c; font-size: 12px; font-weight: 700; }
.qd-empty { text-align: center; color: var(--muted); padding: 30px 12px !important; }
.qd-pager { display: flex; align-items: center; justify-content: center; gap: 16px; padding: 12px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.qd-note { margin: 14px 2px 0; }
.qd-dialog { width: min(780px, 100%); }
.qd-edit-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.qd-edit-head h2 { font-size: 19px; margin: 0; }
.qd-edit-meta { margin: 4px 0 12px; font-size: 13px; color: var(--muted); word-break: break-all; }
.qd-edit-flag { margin: 0 0 12px; padding: 8px 12px; border-radius: 10px; background: #fff1e6; color: #9a3412; font-size: 14px; }
.qd-opts .qd-opt { display: grid; grid-template-columns: 22px 22px minmax(0, 1fr); gap: 8px; align-items: center; margin-top: 6px; }
.qd-opts .qd-opt input[type=radio] { width: 18px; height: 18px; margin: 0; }
.qd-opts .qd-opt span { font-weight: 700; color: var(--muted); }
.qd-two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.qd-orig { margin: 4px 0 8px; font-size: 14px; }
.qd-orig summary { cursor: pointer; color: var(--indigo); font-weight: 700; }
.qd-orig p { margin: 8px 0; color: var(--text); }
@media (max-width: 820px) {
  .qd-filters { grid-template-columns: 1fr 1fr; }
  .qd-filters .qd-search { grid-column: span 2; }
  .qd-two { grid-template-columns: 1fr; }
}
.qd-dialog textarea, .qd-dialog input[type=text], .qd-dialog select { font-weight: 400; }
