/* school.css -- the student side. Phone first: most students will open this
   on a phone, so everything is one column with large tap targets, and the
   desktop layout is the same thing with a width cap. Deliberately separate
   from webui/static/style.css, which dresses the workshop. */

:root {
  --bg: #f6f7f9;
  --card: #ffffff;
  --ink: #14202b;
  --muted: #5b6672;
  --line: #dfe3e8;
  --accent: #15607a;
  --accent-ink: #ffffff;
  --accent-soft: #e3f0f5;
  --chip: #eef1f4;
  --chip-ink: #3c4752;
  --warn: #8a5300;
  --warn-bg: #fdf3e2;
  --ok: #1d6b3f;
  --ok-bg: #e6f4ec;
  --bad: #b3261e;
  --bad-bg: #fbe9e7;
  --radius: 16px;
  --font: Figtree, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Dark is defined twice on purpose, and the guard matters.
   - the media query is what the viewer's own system setting gets, but it
     must NOT win when they have explicitly chosen light here;
   - the [data-theme="dark"] block is the explicit choice, and comes last
     so it beats the media query in both directions.
   The choice is remembered in localStorage and applied in <head> before
   the first paint, so a dark-mode viewer never sees a white flash. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f1418;
    --card: #182027;
    --ink: #e8edf1;
    --muted: #9aa6b1;
    --line: #2a343d;
    --accent: #5fb3d0;
    --accent-ink: #0b2129;
    --accent-soft: #16313c;
    --chip: #222c34;
    --chip-ink: #c3ccd4;
    --warn: #e6b566;
    --warn-bg: #2e2619;
    --ok: #7fd19c;
    --ok-bg: #15291e;
    --bad: #f29b93;
    --bad-bg: #3a1c1a;
  }
}

:root[data-theme="dark"] {
    --bg: #0f1418;
    --card: #182027;
    --ink: #e8edf1;
    --muted: #9aa6b1;
    --line: #2a343d;
    --accent: #5fb3d0;
    --accent-ink: #0b2129;
    --accent-soft: #16313c;
    --chip: #222c34;
    --chip-ink: #c3ccd4;
    --warn: #e6b566;
    --warn-bg: #2e2619;
    --ok: #7fd19c;
    --ok-bg: #15291e;
    --bad: #f29b93;
    --bad-bg: #3a1c1a;
}

* { box-sizing: border-box; }

/* `hidden` must win. Every rule that sets display -- button, .btn, .chapitem
   -- otherwise overrides the attribute, so el.hidden = true left the element
   on screen and still in innerText. */
[hidden] { display: none !important; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.55 var(--font);
}

/* --- chrome ------------------------------------------------------- */

.bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap;
  padding: 12px 18px;
  background: var(--card);
  border-bottom: 1px solid var(--line);
}
.brand { font-weight: 650; color: var(--ink); text-decoration: none; letter-spacing: -0.01em; }
.who { font-size: 14px; color: var(--muted); }
.out { margin-left: 10px; color: var(--accent); text-decoration: none; }
.out:hover { text-decoration: underline; }

main { max-width: 760px; margin: 0 auto; padding: 24px 18px 56px; }
.wide { max-width: 1040px; }

.foot { max-width: 760px; margin: 0 auto; padding: 0 18px 40px;
        font-size: 13px; color: var(--muted); }

/* --- type --------------------------------------------------------- */

h1 { font-size: 24px; margin: 0 0 6px; letter-spacing: -0.015em; }
h2 { font-size: 17px; margin: 32px 0 10px; letter-spacing: -0.01em; }
p.lede { color: var(--muted); margin: 0 0 24px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }

/* --- cards -------------------------------------------------------- */

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 18px;
  margin-bottom: 14px;
}
a.card { display: block; color: inherit; text-decoration: none; }
a.card:hover { border-color: var(--accent); }

.card h3 { margin: 0 0 4px; font-size: 17px; }
.meta { font-size: 13px; color: var(--muted); }
.meta span + span::before { content: "·"; margin: 0 7px; }

/* --- pills -------------------------------------------------------- */

.pill {
  display: inline-block; font-size: 12px; font-weight: 600;
  padding: 2px 9px; border-radius: 20px; margin-left: 6px;
  vertical-align: 1px;
}
.pill.ok   { background: var(--ok-bg);   color: var(--ok); }
.pill.warn { background: var(--warn-bg); color: var(--warn); }

/* --- forms and buttons -------------------------------------------- */

label { display: block; font-size: 13px; font-weight: 600; margin: 14px 0 5px; }
input[type=text], input[type=date], input[type=number], select {
  width: 100%; padding: 11px 12px; font-size: 16px;
  color: var(--ink); background: var(--bg);
  border: 1px solid var(--line); border-radius: 8px;
}
input:focus, select:focus { outline: 2px solid var(--accent); outline-offset: 1px; }

button, .btn {
  display: inline-block; margin-top: 16px;
  padding: 11px 18px; font-size: 15px; font-weight: 600;
  color: var(--accent-ink); background: var(--accent);
  border: 1px solid transparent; border-radius: 8px;
  text-decoration: none; cursor: pointer;
}
button:hover, .btn:hover { filter: brightness(1.08); }
/* Both spellings: the teacher page uses <button class="quiet">, the student
   pages use <a class="btn quiet">. A rule written only for .btn.quiet left
   every teacher button looking like the primary action. */
button.quiet, .btn.quiet {
  color: var(--accent); background: transparent; border-color: var(--line);
}
button.tiny, .btn.tiny { margin: 0; padding: 5px 11px; font-size: 13px; }

.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end; }
.row > * { flex: 1 1 160px; }
.row > button { flex: 0 0 auto; }

.err {
  background: var(--warn-bg); color: var(--warn);
  border: 1px solid currentColor; border-radius: 8px;
  padding: 11px 13px; font-size: 14px; margin-bottom: 18px;
}

/* --- tables (teacher only) ---------------------------------------- */

.scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); }
th { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
td.code { font-variant-numeric: tabular-nums; font-weight: 650; letter-spacing: .06em; }
tr.off td { opacity: .45; }

.empty { color: var(--muted); font-size: 14px; padding: 10px 0; }

/* ===================================================================
   The attempt and result screens (Phase 2)
   =================================================================== */

.notice {
  background: var(--card); border: 1px solid var(--accent);
  border-left-width: 4px; border-radius: 8px;
  padding: 14px 16px; margin-bottom: 26px; font-size: 14.5px;
}

.choice { display: grid; gap: 18px; margin-top: 8px; }
.choice form { margin: 0; }
.choice .small { margin-top: 6px; }
@media (min-width: 620px) { .choice { grid-template-columns: 1fr 1fr; } }

/* --- a question --------------------------------------------------- */

.qcard { padding: 18px 18px 16px; }
.qhead {
  display: flex; align-items: baseline; gap: 12px;
  margin-bottom: 10px; padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}
.qnum { font-weight: 700; letter-spacing: -.01em; }
.qmarks { margin-left: auto; font-size: 12px; color: var(--muted); }

.qtext { line-height: 1.6; }
.context {
  font-size: 14.5px; color: var(--muted);
  border-left: 3px solid var(--line); padding-left: 12px; margin-bottom: 10px;
}
/* Capped in height too: a tall crop (the plumb line, 330 x 560 px) filled
   a phone screen and pushed the options out of sight. Shiwam flagged it
   twice, 15 Oct: "picture too big". */
img.figure {
  display: block; max-width: 100%; max-height: min(300px, 40vh);
  width: auto; height: auto; object-fit: contain; margin: 14px 0;
  border: 1px solid var(--line); border-radius: 6px; background: #fff;
  cursor: zoom-in;
}
/* Shiwam, 20 Oct, on a JEE mock: the cropped pictures are "very small on
   the screen". The cap above stays (on a phone a tall crop pushed the
   options away, 15 Oct), but a book crop is often only 200-300 px wide, so
   it is drawn at least 1.5x on a wide screen; the mouse over it enlarges it
   in place, and a click or tap opens it full screen (school.js). */
@media (min-width: 860px) {
  img.figure { min-width: min(100%, 420px); max-height: min(420px, 55vh); }
}
@media (hover: hover) and (min-width: 860px) {
  img.figure { transition: transform .15s ease; transform-origin: left top;
               position: relative; z-index: 1; }
  img.figure.hovering { z-index: 30; box-shadow: 0 8px 30px rgba(0,0,0,.25); }
}
.figzoom { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center;
           justify-content: center; background: rgba(0,0,0,.82); cursor: zoom-out;
           padding: 16px; box-sizing: border-box; }
.figzoom img { background: #fff; border-radius: 6px; max-width: 100%; max-height: 100%;
               width: auto; height: auto; min-width: min(100%, 900px); object-fit: contain; }
.figzoom.pan { overflow: auto; align-items: flex-start; justify-content: flex-start; }
.figzoom.pan img { max-width: none; max-height: none; min-width: 0; margin: auto 0; flex-shrink: 0; }
.figzoom .close { position: fixed; top: 10px; right: 14px; color: #fff; font-size: 28px;
                  background: none; border: none; cursor: pointer; }
.fighint { display: none; font-size: 12.5px; color: var(--muted); margin: -8px 0 10px; }
@media (hover: none) { .fighint { display: block; } }
.parts { margin: 12px 0 0; padding-left: 0; list-style: none; }
.parts > li { display: flex; gap: 9px; margin-bottom: 9px; }
.plabel { font-weight: 650; min-width: 1.6em; }
.oralt { margin: 10px 0 0 1.6em; color: var(--muted); }

table.match { width: auto; margin: 12px 0; }
.matchlists { display: flex; flex-wrap: wrap; gap: 8px 32px; align-items: flex-start; }
table.match th { text-align: left; font-weight: 650; padding: 0 14px 4px 0; border: none; }
table.qtable { width: auto; margin: 10px 0; border-collapse: collapse; font-size: 14.5px; }
table.qtable th, table.qtable td { border: 1px solid var(--line); padding: 4px 9px; text-align: center; }
table.qtable th { background: var(--line); font-weight: 600; }
table.match td { padding: 5px 14px 5px 0; border: none; }
table.match td.lbl { font-weight: 650; }

ol.opts { margin: 12px 0 0; padding-left: 1.5em; }
ol.opts li { margin-bottom: 5px; }

/* --- answering ---------------------------------------------------- */

.answer { margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--line); }
.answer label { margin-top: 0; }
fieldset.answer { border: none; padding: 14px 0 0; margin: 16px 0 0; }
fieldset.answer legend {
  font-size: 13px; font-weight: 600; padding: 0; color: var(--muted);
}
label.opt {
  display: flex; align-items: flex-start; gap: 10px;
  margin: 0 0 8px; padding: 10px 12px; font-weight: 400;
  border: 1px solid var(--line); border-radius: 8px; cursor: pointer;
}
label.opt:hover { border-color: var(--accent); }
label.opt:has(input:checked) { border-color: var(--accent); background: var(--ok-bg); }
.optlabel { font-weight: 700; min-width: 1.2em; }
.hint { margin-top: 6px; }
.onpaper { font-style: italic; }
.paperq { border-left: 3px solid var(--line); }

.finishbar {
  position: sticky; bottom: 0; z-index: 5;
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; flex-wrap: wrap;
  margin-top: 28px; padding: 14px 16px;
  background: var(--card); border: 1px solid var(--line); border-radius: 10px;
}
.finishbar button { margin: 0; }
.badstate { color: var(--warn); font-weight: 600; }

/* --- result ------------------------------------------------------- */

.score { text-align: center; padding: 24px 18px; }
.bigscore { font-size: 44px; font-weight: 700; letter-spacing: -.03em; line-height: 1; }
.bigscore .of { font-size: 22px; font-weight: 500; color: var(--muted); }
.score .meta { margin-top: 10px; }
.pending {
  margin: 16px 0 0; padding: 11px 13px; font-size: 14px;
  background: var(--warn-bg); color: var(--warn); border-radius: 8px;
}

.answered { margin-top: 14px; font-size: 15px; }
.answered > div { margin-bottom: 5px; }
.tag {
  display: inline-block; min-width: 86px;
  font-size: 12px; text-transform: uppercase; letter-spacing: .04em;
  color: var(--muted);
}
.vline { margin-top: 9px; }
.verdict-correct { border-left: 3px solid var(--ok); }
.verdict-wrong   { border-left: 3px solid var(--warn); }

details { margin-top: 14px; }
summary { cursor: pointer; font-size: 14px; font-weight: 600; color: var(--accent); }
.solution {
  margin-top: 10px; padding: 12px 14px; font-size: 14.5px; line-height: 1.6;
  background: var(--bg); border: 1px solid var(--line); border-radius: 8px;
  white-space: pre-wrap;
}
.solbox[open] summary { margin-bottom: 4px; }

/* What was right and how it is done, after a quiz (21 Oct): room between
   the parts, labels in ink, the solution at reading size in its own panel. */
.qcard .answer { margin-top: 20px; padding-top: 18px; }
.qcard .answer[class*=verdict-] { padding-left: 16px; }
.qcard .answer .opts li { margin: 4px 0; }
.verdictrow .pill { margin-left: 0; font-size: 13px; padding: 3px 11px; }
.ansrows { margin-top: 12px; display: grid; gap: 8px; font-size: 16px; }
.ansrow { display: grid; grid-template-columns: 9.5em minmax(0, 1fr); gap: 2px 12px; align-items: baseline; }
.anslabel { font-size: 14px; font-weight: 600; color: var(--ink); }
.solpanel { margin-top: 16px; padding: 14px 16px; background: var(--bg); border: 1px solid var(--line);
            border-radius: 8px; font-size: 16px; line-height: 1.7; }
.solhead { font-size: 15px; font-weight: 700; color: var(--ink); margin-bottom: 6px; }
@media (max-width: 520px) { .ansrow { grid-template-columns: 1fr; } }
/* The test result page: the same, for its labels and "How it is done". */
.answered { font-size: 16px; }
.answered > div { margin-bottom: 8px; }
.answered .tag { color: var(--ink); font-weight: 600; }
.solution { font-size: 16px; line-height: 1.7; }
summary { font-size: 15px; }

.selfmark {
  display: flex; align-items: center; gap: 7px; flex-wrap: wrap;
  margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--line);
}
.selfmark .tag { min-width: 0; margin-right: 4px; }
.markbtn { min-width: 2.4em; }
.outof { margin-left: 2px; }
.savednote { color: var(--ok); }

/* --- the paper builder -------------------------------------------- */

/* One card per row (22 Oct, redone as one design with the chapter grid):
   the numbers on one line, the question types as chips with their counts,
   the row's own chapters folded away until asked for. */
.qrows { display: grid; gap: 12px; margin-bottom: 12px; }
.qrow {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 18px; display: grid; gap: 14px;
  box-shadow: 0 1px 2px rgba(20, 32, 43, .04);
}
.qrow-head { display: flex; flex-wrap: wrap; gap: 12px 14px; align-items: flex-end; }
.qrow .fld { display: grid; gap: 6px; min-width: 0; }
.qrow .flabel {
  font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  color: var(--muted);
}
.qrow .fld-sec { flex: 1 1 140px; max-width: 220px; }
.qrow .fld-num { flex: 0 0 90px; }
.qrow .fld input { min-height: 44px; padding: 9px 12px; font-size: 16px; border-radius: 10px; }
.qrow .fld-num input { text-align: center; font-variant-numeric: tabular-nums; }
.seg {
  display: inline-flex; border: 1.5px solid var(--line); border-radius: 10px;
  overflow: hidden; background: var(--card);
}
.seg button {
  margin: 0; min-height: 41px; padding: 0 12px; border: 0; border-radius: 0;
  font-size: 14px; font-weight: 600; color: var(--muted); background: transparent;
}
.seg button + button { border-left: 1px solid var(--line); }
.seg button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }
.qrow-end { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.qrow .avail { text-align: right; line-height: 1.2; font-variant-numeric: tabular-nums; }
.qrow .avail b { display: block; font-size: 20px; }
.qrow .avail span { font-size: 12px; color: var(--muted); }
.qrow .avail.short b, .qrow .avail.short span { color: var(--warn); }
.qrow-del {
  margin: 0; min-height: 0; width: 36px; height: 36px; padding: 0;
  font-size: 22px; line-height: 1; border-radius: 50%;
  color: var(--muted); background: transparent; border: 1.5px solid var(--line);
}
.qrow-del:hover { color: var(--bad); border-color: var(--bad); filter: none; }
.qrow-part { display: grid; gap: 8px; padding-top: 12px; border-top: 1px solid var(--line); }
.qrow-part .untyped { margin: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  margin: 0; min-height: 36px; padding: 6px 13px; display: inline-flex; align-items: center; gap: 7px;
  font-size: 14px; font-weight: 600; color: var(--chip-ink); background: var(--chip);
  border: 1.5px solid transparent; border-radius: 999px;
}
.chip:hover { border-color: var(--accent); filter: none; }
.chip[aria-pressed="true"] { background: var(--accent-soft); color: var(--accent); border-color: var(--accent); }
.chip .kn {
  font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums;
  padding: 1px 7px; border-radius: 999px; background: var(--card); color: var(--muted);
}
.chip .kn:empty { display: none; }
.chip.none:not([aria-pressed="true"]) { opacity: .55; }
.chtoggle::after { content: "\25BE"; font-size: 12px; }
.chtoggle[aria-expanded="true"]::after { content: "\25B4"; }
.rowgrid { padding: 6px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); }
@media (max-width: 600px) {
  .qrow { padding: 14px; }
  .qrow .fld-sec { flex-basis: 100%; max-width: none; }
  .qrow-end { margin-left: 0; width: 100%; justify-content: space-between; }
  .qrow .avail { text-align: left; }
  .seg button { padding: 0 11px; }
}
#addrow { margin: 0; }

#summary .bigscore { font-size: 30px; }
#summary .bigscore .of { font-size: 13px; display: block; font-weight: 500; }
#summary button { margin: 0; }
.okmsg { color: var(--ok); font-weight: 600; }
ul.problems { margin: 14px 0 0; padding-left: 20px; font-size: 14px; color: var(--warn); }
ul.problems li { margin-bottom: 4px; }

/* --- teacher's paper preview -------------------------------------- */

.markedit { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; }
.markedit input { width: 62px; padding: 6px 8px; font-size: 14px; text-align: right; }
.markedit input:disabled { opacity: .55; }
#rows a, table a { color: var(--accent); text-decoration: none; }
#rows a:hover, table a:hover { text-decoration: underline; }


/* --- the light/dark switch ---------------------------------------- */

.themebtn {
  margin: 0; padding: 5px 10px; font-size: 15px; line-height: 1;
  background: transparent; border: 1px solid var(--line); color: var(--ink);
  border-radius: 8px; cursor: pointer;
}
.themebtn:hover { border-color: var(--accent); filter: none; }
.barright { display: flex; align-items: center; gap: 12px; }

/* --- flag and replace --------------------------------------------- */

.qactions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
            margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--line); }
.qstate { margin-left: 4px; }
.flagbox { margin-top: 12px; padding: 14px; border: 1px solid var(--line);
           border-radius: 8px; background: var(--bg); }
.flagbox label { margin-top: 0; }
.flagbox label + * { margin-bottom: 10px; }
.flagbox > div { display: flex; gap: 8px; }
.stalebar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
            border-color: var(--warn); }
.stalebar button { margin: 0; }

/* --- destructive actions ------------------------------------------ */

.card.danger { border-color: var(--warn); }
.danger-btn {
  margin-top: 12px; color: var(--warn); background: transparent;
  border: 1px solid var(--warn);
}
.danger-btn:hover { background: var(--warn-bg); filter: none; }
.danger-btn:disabled { opacity: .5; cursor: default; }

/* --- chapters: one grid for the whole paper ----------------------- */

.chapbar { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.chapfind {
  flex: 1 1 200px; max-width: 280px; margin-left: auto;
  padding: 7px 10px; font-size: 14px;
}
.chapgrid {
  display: grid; gap: 2px;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}
.chapitem {
  display: flex; align-items: center; gap: 9px;
  margin: 0; padding: 7px 9px; font-size: 14px; font-weight: 400;
  border-radius: 6px; cursor: pointer;
}
.chapitem:hover { background: var(--bg); }
.chapitem:has(input:checked) { background: var(--ok-bg); }
.chapitem input[type=checkbox] { width: auto; margin: 0; flex: 0 0 auto; }
.chapname { flex: 1 1 auto; }
.chapcount {
  flex: 0 0 auto; font-size: 12px; color: var(--muted);
  font-variant-numeric: tabular-nums;
}
#chaphint { margin: 14px 0 0; }

/* --- destructive actions ------------------------------------------ */

.card.danger { border-color: var(--warn); }
.danger-btn {
  margin-top: 12px; color: var(--warn); background: transparent;
  border: 1px solid var(--warn);
}
.danger-btn:hover { background: var(--warn-bg); filter: none; }
.danger-btn:disabled { opacity: .5; cursor: default; }

/* --- long jobs: a clock, and a verdict ---------------------------- */

.working::after {
  content: ""; display: inline-block; width: 7px; height: 7px;
  margin-left: 7px; border-radius: 50%; background: var(--accent);
  animation: pulse 1s ease-in-out infinite; vertical-align: 1px;
}
@keyframes pulse { 0%,100% { opacity: .25; } 50% { opacity: 1; } }

.flash {
  margin: 0 0 20px; padding: 12px 14px; font-size: 14.5px;
  background: var(--ok-bg); color: var(--ok);
  border: 1px solid currentColor; border-radius: 8px;
}

/* --- correcting a question in place -------------------------------- */

.correctbox {
  margin-top: 12px; padding: 14px 16px;
  background: var(--bg); border: 1px solid var(--line); border-radius: 8px;
}
.correctbox > p { margin: 0 0 6px; }
.correctbox .row > div { flex: 1 1 130px; }
.correctbox select, .correctbox input { padding: 8px 9px; font-size: 14px; }
.cstate { display: inline-block; margin-top: 10px; }

/* --- the menu on the left (_menu.html) ------------------------------
   A computer: always open, a column beside the page. A phone, or a test
   screen (body.folded): behind the Menu button, sliding in over the page. */

.bar { justify-content: flex-start; flex-wrap: nowrap; }
.bar .brand { white-space: nowrap; }
.barright { margin-left: auto; min-width: 0; }
.barright .who { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.menubtn {
  font: inherit; font-size: 14px; padding: 6px 12px; white-space: nowrap;
  background: transparent; color: var(--ink);
  border: 1px solid var(--line); border-radius: 8px; cursor: pointer;
}
.shell { display: grid; grid-template-columns: 228px minmax(0, 1fr); align-items: start; }
.page { min-width: 0; }
.side {
  position: sticky; top: 0; max-height: 100vh; overflow-y: auto;
  display: flex; flex-direction: column; gap: 2px;
  padding: 14px 10px 24px; background: var(--card);
  border-right: 1px solid var(--line); min-height: calc(100vh - 56px);
}
.side .grp { font-size: 11px; letter-spacing: .07em; text-transform: uppercase;
             color: var(--muted); padding: 14px 10px 4px; }
.side a { display: block; padding: 8px 10px; border-radius: 6px; color: var(--ink);
          text-decoration: none; font-size: 15px; }
.side a:hover { background: var(--bg); }
.side a.sub { padding-left: 22px; font-size: 14px; color: var(--muted); }
.side a.on { background: var(--bg); color: var(--accent); font-weight: 600;
             box-shadow: inset 3px 0 0 var(--accent); }
.side a.back { background: var(--warn-bg); color: var(--warn); font-weight: 600; margin-bottom: 6px; }
.side .end { margin-top: 16px; border-top: 1px solid var(--line); padding-top: 6px; }
.side a.site { margin-top: 16px; border-top: 1px solid var(--line); border-radius: 0; padding-top: 12px; font-size: 14px; color: var(--muted); }
/* The way back to the website: a button in the bar, never hidden (Shiwam,
   21 Oct: the menu line alone was too small to find). */
.mainsite { font-size: 14px; font-weight: 600; color: var(--ink); text-decoration: none; white-space: nowrap;
            border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; }
.mainsite:hover { border-color: var(--accent); color: var(--accent); }
.mainsite .short { display: none; }
@media (max-width: 720px) { .mainsite .long { display: none; } .mainsite .short { display: inline; } }
.side a:focus-visible, .menubtn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.navshade { position: fixed; inset: 0; z-index: 29; background: rgba(0, 0, 0, .3); }

@media (min-width: 900px) { body:not(.folded) .menubtn { display: none; } }
@media (max-width: 899px) { .shell { grid-template-columns: minmax(0, 1fr); } .side { display: none; } }
body.folded .shell { grid-template-columns: minmax(0, 1fr); }
body.folded .side { display: none; }
body.navopen .side {
  display: flex; position: fixed; top: 0; left: 0; bottom: 0; z-index: 30;
  width: min(300px, 82vw); max-height: none; min-height: 0;
  padding-top: max(14px, env(safe-area-inset-top, 0px));
  box-shadow: 4px 0 20px rgba(0, 0, 0, .2);
}
@media (prefers-reduced-motion: no-preference) {
  body.navopen .side { animation: navin .15s ease-out; }
  @keyframes navin { from { transform: translateX(-100%); } to { transform: none; } }
}
@media print { .side, .menubtn, .navshade { display: none !important; }
               .shell { display: block; } }

/* class view overview: one tile per page */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; margin: 18px 0 22px; }
.tile { display: block; padding: 14px 16px; background: var(--card); border: 1px solid var(--line);
        border-radius: 10px; color: var(--muted); text-decoration: none; font-size: 14px; }
.tile b { display: block; font-size: 26px; color: var(--ink); font-variant-numeric: tabular-nums; }
.tile:hover { border-color: var(--accent); }
.picklist { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 6px 14px; margin: 6px 0 14px; }
.pick { display: flex; gap: 8px; align-items: baseline; font-weight: 400; }

/* Assign a paper: filter bar and the paper list */
.filters { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.paperlist { padding: 4px 8px; max-height: 60vh; overflow-y: auto; }
.prow { display: flex; gap: 10px; align-items: flex-start; padding: 10px 6px; border-top: 1px solid var(--line);
        font-weight: 400; cursor: pointer; margin: 0; }
.prow:first-child { border-top: 0; }
.prow:has(input:checked) { background: var(--bg); border-radius: 6px; }
.prow input { margin-top: 4px; }
.pmain { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pmain .meta { font-size: 13px; color: var(--muted); }
.who { display: flex; gap: 18px; flex-wrap: wrap; margin-bottom: 10px; }
.who label { display: flex; gap: 6px; align-items: center; font-weight: 400; margin: 0; }

/* Rank lines (20 Oct): a batch rank carries a small batch icon; a public
   quiz's rank says "still building" until enough first tries exist. */
.rk svg { width: 1.05em; height: 1.05em; vertical-align: -3px; margin-right: 5px; color: var(--muted); }
.kindhead { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-top: 26px; }
.kindhead h2 { margin: 0; }
.qcardrow { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.qcardrow .btn { padding: 6px 12px; font-size: 14px; }

/* --- free quizzes: class, subject and chapter cards (openquiz.py) --------
   Maths wears the accent, Science the green, the same on every page. */
.crumb { font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.crumb a { color: var(--accent); text-decoration: none; }
.crumb a:hover { text-decoration: underline; }
.facts { display: flex; flex-wrap: wrap; gap: 8px; margin: -8px 0 20px; }
.fact { font-size: 13px; color: var(--muted); background: var(--card); border: 1px solid var(--line);
        border-radius: 20px; padding: 3px 12px; }
.fact b { color: var(--ink); }
.eyebrow { display: block; font-size: 12px; font-weight: 650; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.clsgrid, .subjgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; margin-bottom: 18px; }
.clscard { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 16px;
           display: flex; flex-direction: column; gap: 14px; }
.clscard.yours { border-color: var(--accent); }
.clstop { display: flex; gap: 14px; align-items: center; color: inherit; text-decoration: none; }
.clstop h2 { margin: 0; font-size: 19px; }
.clstop:hover h2 { color: var(--accent); }
.clsbadge { flex: none; width: 54px; height: 54px; border-radius: 12px; display: grid; place-items: center;
            background: var(--accent); color: var(--accent-ink); font-size: 23px; font-weight: 700; }
.clsbadge .two { display: grid; line-height: 1; text-align: center; }
.clsbadge .two small { font-size: 12px; font-weight: 650; margin-top: 2px; }
.yourclass { margin-left: 8px; font-size: 12px; font-weight: 650; color: var(--accent); }
.subjchips { display: flex; gap: 10px; flex-wrap: wrap; }
.subjchip { flex: 1; min-width: 120px; display: flex; justify-content: space-between; align-items: baseline;
            padding: 11px 14px; border-radius: 10px; font-weight: 650; text-decoration: none; }
.subjchip small { font-weight: 400; font-size: 13px; }
.subjchip.m, .subjcard.m .go, .chcard.m .chno { color: var(--accent); }
.subjchip.s, .subjcard.s .go, .chcard.s .chno { color: var(--ok); }
.subjchip.m { background: color-mix(in srgb, var(--accent) 12%, var(--card)); }
.subjchip.s { background: var(--ok-bg); }
.subjchip:hover { filter: brightness(0.97); }
.today { display: flex; gap: 14px; align-items: center; justify-content: space-between; flex-wrap: wrap;
         background: var(--card); border: 1px dashed var(--accent); border-radius: 12px; padding: 14px 16px; margin-bottom: 18px; }
.today > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.today b { font-size: 17px; }
.levelchip { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 20px; font-size: 12px;
             letter-spacing: 0; text-transform: none; font-weight: 650;
             background: color-mix(in srgb, var(--accent) 14%, var(--card)); color: var(--accent); }
.levelchip.jee { background: var(--warn-bg); color: var(--warn); }
.howto { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 8px 18px;
         padding-left: 20px; margin: 0; color: var(--muted); font-size: 14px; }
.howto li::marker { color: var(--accent); font-weight: 700; }
.subjcard { display: flex; flex-direction: column; gap: 8px; padding: 18px; background: var(--card);
            border: 1px solid var(--line); border-radius: 12px; color: inherit; text-decoration: none; }
.subjcard.m { border-top: 5px solid var(--accent); }
.subjcard.s { border-top: 5px solid var(--ok); }
.subjcard:hover { border-color: var(--accent); }
.subjcard.s:hover { border-color: var(--ok); }
.subjhead { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.subjhead h2 { margin: 0; font-size: 19px; }
.subjcard ul { margin: 0; padding-left: 18px; color: var(--muted); font-size: 14px; }
.subjcard .go { font-weight: 650; font-size: 14px; }
.progress { display: flex; align-items: center; gap: 12px; font-size: 14px; font-weight: 600; color: var(--accent);
            background: color-mix(in srgb, var(--accent) 10%, var(--card)); border-radius: 10px; padding: 10px 14px; margin-bottom: 16px; }
.progress .pbar { flex: 1; height: 7px; border-radius: 7px; background: var(--card); overflow: hidden; }
.progress .pbar i { display: block; height: 100%; width: 0; background: var(--accent); }
.chgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; margin-bottom: 18px; }
/* A chapter holding several quizzes: what kinds, as chips; its page has a card each. */
.chkinds { display: flex; flex-wrap: wrap; gap: 6px; }
.chkinds .kind { font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 999px;
                 background: color-mix(in srgb, var(--accent) 10%, var(--card)); color: var(--accent); }
.chkinds .kind.ex { background: color-mix(in srgb, var(--ok) 12%, var(--card)); color: var(--ok); }
.chkinds .kind.xm { background: color-mix(in srgb, var(--warn) 14%, var(--card)); color: var(--warn); }
.chcard .go { font-weight: 650; color: var(--ink); }
.chsec { font-size: 18px; margin: 22px 0 6px; }
.chsec + .small { margin: 0 0 10px; }
.chno.m { color: var(--accent); } .chno.s { color: var(--ok); }
.chnav { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 22px 0 8px; font-weight: 600; }
.chcard { display: flex; flex-direction: column; gap: 6px; padding: 14px 15px; background: var(--card);
          border: 1px solid var(--line); border-radius: 11px; color: inherit; text-decoration: none; min-width: 0; }
.chcard:hover { border-color: var(--accent); }
.chcard h3 { margin: 0; font-size: 16px; line-height: 1.3; }
.chno { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.chfoot { margin-top: auto; padding-top: 4px; display: flex; flex-wrap: wrap; justify-content: space-between;
          align-items: center; gap: 4px 10px; font-size: 13px; color: var(--muted); }
.chfoot .first { font-style: italic; }
.lvl { display: inline-flex; gap: 4px; align-items: center; }
.lvl i { width: 8px; height: 8px; border-radius: 2px; background: var(--line); display: inline-block; }
.lvl i.f { background: var(--warn); }
.mybest { color: var(--ok); font-weight: 700; }
.chcard.isdone { border-color: color-mix(in srgb, var(--ok) 45%, var(--line)); }
.afterquiz { display: flex; flex-direction: column; align-items: center; gap: 10px; margin: 14px 0; }
/* WhatsApp's own green, so it reads as WhatsApp at a glance; full width on a phone. */
.wabtn { display: inline-flex; align-items: center; gap: 10px; padding: 12px 20px; border-radius: 999px;
         background: #25d366; color: #0b3d1f; font-weight: 700; font-size: 16px; text-decoration: none; }
.wabtn:hover { filter: brightness(1.05); }
@media (max-width: 600px) { .afterquiz .wabtn, .afterquiz .btn { width: 100%; justify-content: center; text-align: center; } }
.afterquiz .nextch { display: flex; flex-direction: column; align-items: center; }
/* Today and the shared filter bar (20 Oct) */
.card.todo h3 { margin: 0 0 6px; display: flex; gap: 8px; align-items: center; }
.todorow { margin: 6px 0; }
.filterbar .filters input[type=text], .filterbar .filters input[type=date] { width: 100%; }
/* On a phone: two filters a row, and a list keeps readable columns,
   scrolling sideways inside its card rather than crushing the titles. */
@media (max-width: 640px) {
  .filterbar .filters { grid-template-columns: 1fr 1fr; gap: 8px; }
  .filterbar label { font-size: 12px; }
}
.filterbar ~ .card.scroll table { min-width: 620px; }
.filterbar .filters > div { min-width: 0; }
.filterbar .filters select, .filterbar .filters input { width: 100%; min-width: 0; box-sizing: border-box; }

/* A public page's menu while the reader's own is fetched (base.html). */
.side.loading > * { visibility: hidden; }
.backlink { display: inline-block; margin-bottom: 10px; font-weight: 600; color: var(--accent); text-decoration: none; }
.backlink:hover { text-decoration: underline; }

/* ===================================================================
   The design pass (Shiwam, 20 Oct): "the space is not utilized well. It
   is very small text. It is a radio button." One shared look for every
   screen, from the mockups he approved: Figtree, larger type, softer
   cards, and options as whole cards you tap anywhere on -- no visible
   radio dot. The inputs stay in the page (hidden from sight, not from
   the keyboard or a screen reader), so every script that reads
   input:checked keeps working.
   =================================================================== */

main { max-width: 880px; padding: 28px 18px 64px; }
.wide { max-width: 1200px; }
.foot { max-width: 880px; }

h1 { font-size: 28px; font-weight: 800; letter-spacing: -.02em; line-height: 1.2; }
h2 { font-size: 19px; font-weight: 750; }
p.lede { font-size: 17px; }
.small { font-size: 14px; }
.meta { font-size: 14px; }

.bar { padding: 12px 20px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 17px; }
.brand .logo { display: block; height: 32px; width: auto; }
/* The logo is blue and orange on white; on the dark theme it turns white. */
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .brand .logo { filter: brightness(0) invert(1); } }
:root[data-theme="dark"] .brand .logo { filter: brightness(0) invert(1); }
/* A phone: the menu button keeps its icon, the logo shrinks, so the way back fits. */
@media (max-width: 480px) {
  .bar { padding: 10px 12px; gap: 8px; }
  .menubtn .mlabel { display: none; }
  .brand .logo { height: 24px; }
  .mainsite { padding: 5px 10px; font-size: 13px; }
}
/* The drawn "S" square retired: the logo carries the S (21 Oct). */

.card { border-radius: var(--radius); padding: 20px; box-shadow: 0 1px 2px rgba(20, 32, 43, .04); }
.card h3 { font-size: 18px; }
.pill { font-size: 13px; padding: 3px 10px; }

button, .btn {
  min-height: 48px; padding: 12px 20px; font-size: 16px; font-weight: 700;
  border-radius: 12px; font-family: inherit;
}
button.quiet, .btn.quiet { border-width: 1.5px; }
button.tiny, .btn.tiny { min-height: 0; padding: 6px 12px; font-size: 14px; border-radius: 9px; }
.menubtn, .themebtn { min-height: 0; }

label { font-size: 15px; font-weight: 700; }
input[type=text], input[type=email], input[type=date], input[type=number], input[type=password], select, textarea {
  min-height: 52px; padding: 12px 14px; font-size: 17px; font-family: inherit;
  background: var(--card); color: var(--ink);
  border: 1.5px solid var(--line); border-radius: 12px;
}
textarea { width: 100%; line-height: 1.5; }

/* --- a question, at reading size --------------------------------------- */
.qnum {
  font-size: 14px; font-weight: 800; color: var(--accent);
  background: var(--accent-soft); padding: 4px 11px; border-radius: 99px;
}
.qmarks { font-size: 14px; font-weight: 600; }
.qhead { align-items: center; border-bottom: none; padding-bottom: 0; margin-bottom: 14px; }
.qtext { font-size: 20px; line-height: 1.5; font-weight: 550; }
@media (min-width: 900px) { .qtext { font-size: 21px; } }
.parts > li { font-size: 18px; }
.context { font-size: 16px; }

/* --- options: the whole card is the button ------------------------------ */
fieldset.answer { display: grid; gap: 12px; }
fieldset.answer legend { font-size: 14px; margin-bottom: 10px; }
fieldset.answer > :not(label.opt) { grid-column: 1 / -1; }
label.opt {
  position: relative; align-items: center; gap: 14px; margin: 0;
  min-height: 64px; padding: 12px 48px 12px 14px;
  font-size: 19px; font-weight: 500; line-height: 1.4;
  background: var(--card); border: 1.5px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 1px 2px rgba(20, 32, 43, .05);
  transition: border-color .12s, background-color .12s, box-shadow .12s;
  -webkit-tap-highlight-color: transparent;
}
label.opt > input[type=radio], label.opt > input[type=checkbox] {
  position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none;
}
.optlabel {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; flex: 0 0 36px; min-width: 0;
  border-radius: 10px; background: var(--chip); color: var(--chip-ink);
  font-size: 16px; font-weight: 800;
}
/* A tick-several option shows a square tick box in its badge's place. */
label.opt:has(input[type=checkbox]) .optlabel { border-radius: 8px; }
.opttext { flex: 1; min-width: 0; overflow-wrap: anywhere; }
label.opt:hover { border-color: var(--accent); }
label.opt:has(input:focus-visible) { outline: 3px solid var(--accent); outline-offset: 2px; }
label.opt:has(input:checked) {
  border-color: var(--accent); background: var(--accent-soft);
  box-shadow: 0 0 0 1px var(--accent), 0 0 0 5px color-mix(in srgb, var(--accent) 14%, transparent);
}
label.opt:has(input:checked) .optlabel { background: var(--accent); color: var(--accent-ink); }
label.opt:has(input:disabled) { cursor: default; }
label.opt:has(input:disabled):hover { border-color: var(--line); }
@media (min-width: 900px) {
  fieldset.answer.short { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* After Check: the verdict colours the cards. The right option turns green
   with a tick, a wrong pick red with a cross, the rest step back. */
label.opt::after {
  position: absolute; right: 16px; top: 50%; transform: translateY(-50%);
  font-size: 22px; font-weight: 800; line-height: 1;
}
.unit.v-correct label.opt:has(input:checked), label.opt.right {
  border-color: var(--ok); background: var(--ok-bg);
  box-shadow: 0 0 0 1px var(--ok);
}
.unit.v-correct label.opt:has(input:checked) .optlabel, label.opt.right .optlabel { background: var(--ok); color: var(--card); }
.unit.v-correct label.opt:has(input:checked)::after, label.opt.right::after { content: "\2713"; color: var(--ok); }
.unit.v-wrong label.opt:has(input:checked) {
  border-color: var(--bad); background: var(--bad-bg); box-shadow: 0 0 0 1px var(--bad);
}
.unit.v-wrong label.opt:has(input:checked) .optlabel { background: var(--bad); color: var(--card); }
.unit.v-wrong label.opt:has(input:checked)::after { content: "\2715"; color: var(--bad); }
.unit.v-partial label.opt:has(input:checked) .optlabel,
.unit.v-unsure label.opt:has(input:checked) .optlabel { background: var(--warn); color: var(--card); }
.unit[class*="v-"] label.opt:not(:has(input:checked)):not(.right) { opacity: .62; }

/* The check and action buttons: big enough for a thumb. */
.checkbtn { min-height: 56px; padding: 0 28px; font-size: 18px; border-radius: 14px; }
.finishbar { border-radius: var(--radius); padding: 14px 18px; }
.finishbar button { min-height: 56px; font-size: 18px; border-radius: 14px; }

/* --- result -------------------------------------------------------------- */
.bigscore { font-size: 56px; font-weight: 800; }
.score { border-radius: 20px; }
ol.opts li { font-size: 17px; }
.answered { font-size: 16px; }

/* --- quiz cards and the class view ------------------------------------- */
.chcard { border-radius: var(--radius); padding: 16px; min-height: 128px; }
.chcard h3 { font-size: 17px; }
.side a { font-size: 16px; padding: 10px 12px; border-radius: 10px; }
.side a.sub { font-size: 15px; }
.tile { border-radius: var(--radius); }
table { font-size: 15px; }
th { font-size: 12.5px; }
/* Matching lists keep their letters as plain bold text, not badges. */
.match .optlabel { display: inline; width: auto; height: auto; flex: none;
                   background: none; color: inherit; font-size: inherit; border-radius: 0; }
/* Read-only options (result and teacher pages): the badge, no card. */
ul.opts { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; }
ul.opts li { display: flex; align-items: center; gap: 12px; font-size: 17px; margin: 0; }
ul.opts .optlabel { width: 30px; height: 30px; flex-basis: 30px; font-size: 14px; border-radius: 8px; }
.qcard .answer ul.opts li { margin: 0; }
/* Only the question itself reads large; answers and solutions stay at body size. */
.answered .qtext, .solpanel .qtext, .ansrows .qtext, .solution .qtext { font-size: 17px; font-weight: 400; }
.answered strong.qtext { font-weight: 700; }

/* Options after marking (21 Oct): the right one green, a wrong pick red. */
ul.opts.marked li { padding: 6px 10px; border-radius: 10px; border: 1px solid transparent; flex-wrap: wrap; }
ul.opts.marked li.isright { background: var(--ok-bg); border-color: color-mix(in srgb, var(--ok) 45%, transparent); }
ul.opts.marked li.iswrong { background: var(--warn-bg); border-color: color-mix(in srgb, var(--warn) 45%, transparent); }
.opttag { margin-left: auto; font-size: 13px; font-weight: 650; white-space: nowrap; }
.opttag.ok { color: var(--ok); }
.opttag.bad { color: var(--warn); }
.pickface { display: inline-flex; align-items: center; gap: 10px; margin-right: 14px; }
.pickface .optlabel { width: 26px; height: 26px; font-size: 13px; border-radius: 7px; }
/* The subject filter (_subjectbar.html): the same chips on every list page
   that holds more than one subject. Sticks under the top bar while the
   reader scrolls a long list. */
.subjbar { position: sticky; top: 0; z-index: 5; padding: 10px 0; margin: 4px 0 8px; background: var(--bg); }
.subjbar a.chip { text-decoration: none; }
section[data-subj] > h2 { scroll-margin-top: 64px; }
@media (max-width: 600px) {
  .subjbar { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: -16px; padding-inline: 16px; }
  .subjbar .chip { flex: none; }
}

/* --- the front page for a signed-out visitor (home.html, 26 Oct) ------- */
.homegrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin-bottom: 18px; }
.homecard { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 18px;
            display: flex; flex-direction: column; gap: 6px; color: inherit; text-decoration: none; }
.homecard:hover { border-color: var(--accent); }
.homecard .big { font-size: 32px; line-height: 1.1; color: var(--accent); }
.homecard .meta { font-size: 13px; color: var(--muted); }
.homecard .go { margin-top: auto; padding-top: 8px; font-weight: 650; color: var(--accent); }
.homesign { display: flex; gap: 14px; align-items: center; justify-content: space-between; flex-wrap: wrap;
            background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; margin-bottom: 18px; }
.homesign > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.homesign .meta { font-size: 13px; color: var(--muted); }
