/* StudyTokyo — dizayn tizimi v3: brend logotipi asosida (qizil / qora / oq), 2026-10-15. */
:root {
  /* StudyTokyo brand (logo, 2026-10-15): torii red #D10000, ink #161616, paper white */
  --p: #D10000; --p-dark: #A80000; --v: #3D3D3D; --y: #E8A317; --t: #2F8F8A;
  --ink: #161616; --muted: #6E6A66; --line: #ECE9E6; --bg: #F7F5F2; --card: #FFFFFF;
  --up: #1E8E5A; --down: #B3261E; --warn: #A86400; --brand: #D10000; --bad: #B3261E;
  --soft-p: #FCECEC; --soft-ok: #E6F4EC; --soft-warn: #FFF3DC; --soft-bad: #FBE9E7; --soft: #F1EFEC;
  --font: "Nunito Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font: 14px/1.5 var(--font); background: var(--bg); color: var(--ink); }
a { color: var(--p); }
a:hover { color: var(--p-dark); }
:focus-visible { outline: 2px solid var(--p); outline-offset: 2px; }
svg.i { flex: none; }

/* ---------- shell ---------- */
.top { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; min-height: 60px; padding: 0 20px;
       background: #fff; border-bottom: 1px solid var(--line); }
.logo { display: flex; align-items: center; text-decoration: none; }
.logo img { height: 36px; width: auto; display: block; }
.module { display: flex; align-items: center; gap: 8px; margin-left: 48px; font-size: 13px; font-weight: 800;
          letter-spacing: .6px; color: var(--p); text-transform: uppercase; }
.top-right { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.icon-btn { width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center;
            border-radius: 8px; color: #57524D; position: relative; text-decoration: none; }
.icon-btn:hover { background: var(--soft); color: var(--p); }
.icon-btn .count { position: absolute; top: 4px; right: 2px; min-width: 16px; height: 16px; padding: 0 4px;
                   border-radius: 8px; background: var(--p); color: #fff; font-size: 10px; font-weight: 800;
                   display: flex; align-items: center; justify-content: center; }
.me { display: flex; align-items: center; gap: 10px; padding-left: 10px; }
.me .who { text-align: right; line-height: 1.2; }
.me .who b { display: block; font-size: 12px; }
.me .who small { font-size: 10px; color: var(--muted); }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--soft-p); color: var(--p); display: flex;
          align-items: center; justify-content: center; font-size: 12px; font-weight: 800; position: relative; }
.avatar::after { content: ""; position: absolute; right: -1px; bottom: -1px; width: 9px; height: 9px;
                 border-radius: 50%; background: #2EAD6B; border: 2px solid #fff; }
.me form button { border: 0; background: none; color: var(--muted); cursor: pointer; padding: 8px; border-radius: 8px; }
.me form button:hover { background: var(--soft); color: var(--down); }

.body { display: flex; flex-wrap: wrap; min-height: calc(100vh - 61px); }
.side { flex: 1 1 220px; max-width: 100%; background: #fff; border-right: 1px solid var(--line);
        padding: 14px 12px; display: flex; flex-direction: column; gap: 2px; font-size: 13px; }
.side h4 { margin: 16px 10px 6px; font-size: 11px; font-weight: 700; letter-spacing: .6px;
           text-transform: uppercase; color: var(--muted); }
.side a { display: flex; align-items: center; gap: 10px; min-height: 38px; padding: 0 12px; border-radius: 5px;
          text-decoration: none; font-weight: 600; color: var(--ink); }
.side a:hover { background: var(--soft); color: var(--p); }
.side a.on { background: var(--ink); color: #fff; font-weight: 700;
             box-shadow: 0 2px 6px rgba(65, 70, 224, .35); }
.side a .n { margin-left: auto; min-width: 20px; height: 18px; padding: 0 6px; border-radius: 9px;
             background: var(--soft-bad); color: var(--down); font-size: 11px; font-weight: 800;
             display: inline-flex; align-items: center; justify-content: center; }
.side a.on .n { background: #fff; color: var(--p); }
/* 2026-10-29: menu sections fold (rare ones folded by default, the current page's section is always open) */
.side details.sec { display: flex; flex-direction: column; gap: 2px; }
.side details.sec > summary { list-style: none; display: flex; align-items: center; cursor: pointer; border-radius: 5px; }
.side details.sec > summary::-webkit-details-marker { display: none; }
.side details.sec > summary:hover { background: var(--soft); }
.side details.sec > summary h4 { flex: 1; }
.side details.sec > summary h4::after { content: "▸"; float: right; margin-right: 2px; color: var(--muted); }
.side details.sec[open] > summary h4::after { content: "▾"; }
.side details.sec > summary .n { min-width: 20px; height: 18px; padding: 0 6px; margin-right: 8px; border-radius: 9px;
             background: var(--soft-bad); color: var(--down); font-size: 11px; font-weight: 800;
             display: inline-flex; align-items: center; justify-content: center; }
.main { flex: 999 1 560px; min-width: 0; padding: 20px 24px 48px; display: flex; flex-direction: column; gap: 18px; }
.page-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; }
.page-head h1 { margin: 0; font-size: 24px; font-weight: 600; }
.page-head .meta { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

/* ---------- cards ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: 6px;
        box-shadow: 0 1px 3px rgba(30, 35, 90, .06); padding: 16px 18px; display: flex; flex-direction: column;
        gap: 12px; min-width: 0; }
.ch { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.ct { margin: 0; font-size: 13px; font-weight: 700; letter-spacing: .3px; text-transform: uppercase; color: var(--p); }
.det { font-size: 10px; font-weight: 800; letter-spacing: .6px; text-transform: uppercase; color: var(--p); text-decoration: none; }
.big { font-size: 32px; font-weight: 400; line-height: 1.1; font-variant-numeric: tabular-nums; }
.unit { font-size: 18px; font-weight: 600; }
.delta { font-size: 12px; font-weight: 700; color: var(--muted); }
.delta.up { color: var(--up); } .delta.down { color: var(--down); } .delta.wn { color: var(--warn); }
.delta small { font-weight: 400; color: var(--muted); font-size: 12px; }
.foot { display: flex; justify-content: space-between; align-items: center; font-size: 11px; color: var(--muted); }
.foot span { display: inline-flex; align-items: center; gap: 5px; }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.grid.wide { grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); }
.split { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-start; }
.split > .grow { flex: 2 1 560px; min-width: 0; }
.split > .side-col { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.empty { color: var(--muted); padding: 10px 0; }

/* list rows */
.lst { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.lst:last-child { border-bottom: 0; }
.lst .s { font-size: 12px; color: var(--muted); }
.lst .r { text-align: right; }

/* ---------- table ---------- */
.table-wrap { overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.tbl th { text-align: left; font-size: 11px; font-weight: 700; letter-spacing: .3px; text-transform: uppercase;
          color: var(--muted); padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tbody tr:hover td { background: #FBFAF8; }
.tbl .r { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tbl .nowrap { white-space: nowrap; }
.tbl td b a, .tbl td a b { text-decoration: none; }

/* ---------- controls ---------- */
.btn, button { font: 600 13px var(--font); height: 40px; padding: 0 14px; border-radius: 6px; border: 1px solid #DEDAD5;
               background: #fff; color: var(--ink); display: inline-flex; align-items: center; gap: 6px; cursor: pointer;
               text-decoration: none; white-space: nowrap; transition: background .15s, border-color .15s; }
.btn:hover, button:hover { border-color: #C9C3BC; background: #FBFAF8; color: var(--ink); }
.btn.primary, button.primary { background: var(--p); border-color: var(--p); color: #fff; }
.btn.primary:hover, button.primary:hover { background: var(--p-dark); border-color: var(--p-dark); color: #fff; }
button.ok { background: var(--up); border-color: var(--up); color: #fff; }
button.ok:hover { background: #17804F; color: #fff; }
button.danger { color: var(--down); border-color: #F3C2C3; }
button:disabled, button:disabled:hover { opacity: .45; cursor: not-allowed; }
button.sm, .btn.sm { height: 32px; padding: 0 10px; font-size: 12px; }
form.inline { display: inline; }
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.field { display: flex; flex-direction: column; gap: 4px; margin-bottom: 10px; }
.row .field { margin-bottom: 0; }
label { font-size: 12px; font-weight: 700; color: #3A3632; }
input, select, textarea { font: 13px var(--font); height: 40px; padding: 0 10px; border: 1px solid #DEDAD5;
                          border-radius: 6px; background: #fff; color: var(--ink); max-width: 100%; }
input[type=file] { padding: 8px 10px; }
input[type=checkbox] { height: 18px; width: 18px; accent-color: var(--p); }
textarea { height: auto; min-height: 80px; padding: 10px; width: 100%; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--p); box-shadow: 0 0 0 3px var(--soft-p); }

/* ---------- badges, notices ---------- */
.badge { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 11px; font-weight: 700;
         white-space: nowrap; background: var(--soft); color: #4A4540; }
.badge.ok { background: var(--soft-ok); color: #17804F; }
.badge.warn { background: var(--soft-warn); color: var(--warn); }
.badge.bad { background: var(--soft-bad); color: var(--down); }
.badge.in { background: var(--soft-p); color: var(--p); }
.flash { padding: 10px 14px; border-radius: 6px; background: var(--soft-ok); color: #17804F; border: 1px solid #BFE6D0; font-weight: 600; }
.flash.error { background: var(--soft-bad); color: var(--down); border-color: #F3C2C3; }
.secret { background: #FFFAF0; border: 1px solid #F7D9A6; padding: 12px 14px; border-radius: 6px; line-height: 1.8; }
.secret code { background: #fff; padding: 2px 6px; border-radius: 4px; border: 1px solid var(--line); word-break: break-all; }
.note { padding: 10px 12px; border-radius: 6px; background: var(--soft-p); color: var(--p); font-size: 12px; }

/* ---------- charts ---------- */
.bar { height: 8px; background: var(--soft); border-radius: 4px; overflow: hidden; }
.bar > i { display: block; height: 100%; background: var(--p); border-radius: 4px; }
.funnel { display: grid; grid-template-columns: 170px minmax(0, 1fr) 90px; gap: 10px; align-items: center; font-size: 13px; }
.funnel .track { height: 18px; background: var(--soft); border-radius: 3px; overflow: hidden; }
.funnel .track i { display: block; height: 100%; border-radius: 3px; min-width: 2px; }
.donut { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; }
.legend { display: flex; flex-direction: column; gap: 8px; font-size: 13px; }
.legend span::before { content: ""; display: inline-block; width: 9px; height: 9px; border-radius: 50%;
                       background: var(--c); margin-right: 8px; }

dl.kv { display: grid; grid-template-columns: 150px 1fr; gap: 0; margin: 0; font-size: 13px; }
dl.kv dt { color: var(--muted); padding: 7px 0; border-bottom: 1px solid var(--line); }
dl.kv dd { margin: 0; padding: 7px 0; border-bottom: 1px solid var(--line); }
details summary { cursor: pointer; color: var(--muted); }
.timeline { list-style: none; margin: 0; padding: 0; font-size: 13px; }
.timeline li { padding: 7px 0; border-bottom: 1px solid var(--line); }
.timeline li:last-child { border-bottom: 0; }
.timeline code { font-size: 11px; color: var(--muted); word-break: break-word; }

/* ---------- login ---------- */
.login { max-width: 380px; margin: 12vh auto; padding: 0 16px; }
.login .logo { justify-content: center; font-size: 26px; margin-bottom: 18px; }
.login .logo span { font-size: 22px; line-height: 30px; }

/* ---------- hujjat jarayoni (5-modul) ---------- */
.kanban { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px, 1fr); gap: 12px;
          overflow-x: auto; padding-bottom: 8px; align-items: start; }
.kcol { background: var(--soft); border-radius: 8px; padding: 10px; display: flex; flex-direction: column; gap: 8px; min-height: 120px; }
.kcol h3 { margin: 0 0 2px; font-size: 11px; font-weight: 800; letter-spacing: .4px; text-transform: uppercase;
           color: var(--muted); display: flex; justify-content: space-between; }
.kcard { display: block; background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 9px 10px;
         text-decoration: none; color: var(--ink); font-size: 12px; box-shadow: 0 1px 2px rgba(30,35,90,.05); }
.kcard:hover { border-color: #D8D2CB; color: var(--ink); }
.kcard b { display: block; font-size: 13px; }
.kcard .meta { display: flex; flex-wrap: wrap; gap: 4px 8px; color: var(--muted); margin-top: 4px; }
.kcard.stuck { border-left: 3px solid var(--down); }
.kcard.rej { border-left: 3px solid var(--warn); }
.steps { display: flex; flex-wrap: wrap; gap: 6px; }
.steps span { font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: var(--soft); color: var(--muted); }
.steps span.done { background: var(--soft-ok); color: #17804F; }
.steps span.now { background: var(--p); color: #fff; }
.checks { list-style: none; margin: 0; padding: 0; }
.checks li { display: flex; align-items: center; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.checks li:last-child { border-bottom: 0; }
.checks form { margin: 0; }
.checks .tick { width: 22px; height: 22px; padding: 0; border-radius: 6px; display: inline-flex; align-items: center;
                justify-content: center; font-size: 13px; }
.checks .tick.on { background: var(--up); border-color: var(--up); color: #fff; }
.checks .auto { width: 22px; text-align: center; color: var(--muted); }
.checks .lbl { flex: 1; }

@media (max-width: 900px) {
  .top { padding: 8px 14px; }
  .module { margin-left: 0; }
  .side { flex-direction: row; flex-wrap: wrap; border-right: 0; border-bottom: 1px solid var(--line); }
  .side h4 { display: none; }
  .side details.sec { flex: 1 1 100%; flex-direction: row; flex-wrap: wrap; }
  .side details.sec > summary { flex: 1 1 100%; }
  .side details.sec > summary h4 { display: block; margin: 10px 10px 4px; }
  .main { padding: 16px; }
  dl.kv { grid-template-columns: 1fr; }
  .funnel { grid-template-columns: 120px minmax(0, 1fr) 70px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* 2026-10-15 design pass: collapsible cards and in-page navigation */
details.card > summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 8px; color: inherit; }
details.card > summary::-webkit-details-marker { display: none; }
details.card > summary .ct::before { content: "▸ "; color: var(--muted); }
details.card[open] > summary .ct::before { content: "▾ "; }
details.card[open] > summary { margin-bottom: 10px; }
details.card > summary .cnt { font-size: 12px; color: var(--muted); font-weight: 600; }
.jump { display: flex; flex-wrap: wrap; gap: 6px; margin: -6px 0 14px; }
.jump a { font-size: 12px; padding: 4px 10px; border-radius: 999px; background: var(--soft); color: var(--ink); text-decoration: none; border: 1px solid var(--line); }
.jump a:hover { border-color: var(--p); color: var(--p); }
a.card.kpi-link { display: block; color: inherit; text-decoration: none; transition: border-color .15s, box-shadow .15s; }
a.card.kpi-link:hover { border-color: var(--p); box-shadow: 0 2px 10px rgba(0,0,0,.05); }
.old { opacity: .55; }
.grid > details.card { align-self: start; }
a.card.kpi-link .big, a.card.kpi-link .delta { text-decoration: none; }

/* phones: the menu folds behind one button; KPI tiles go two per row */
.navt, .navbtn { display: none; }
select, input { max-width: 100%; }
@media (max-width: 900px) {
  .navbtn { display: flex; align-items: center; gap: 6px; padding: 10px 16px; font-weight: 700; font-size: 14px;
            border-bottom: 1px solid var(--line); background: var(--card); cursor: pointer; }
  .navbtn .n { background: var(--bad); color: #fff; border-radius: 999px; padding: 0 7px; font-size: 11px; }
  .side { display: none; }
  .navt:checked ~ .side { display: flex; }
  .body { display: block; }
  .lst { flex-wrap: wrap; row-gap: 6px; }
  .main { width: auto; min-width: 0; }
}
@media (max-width: 600px) {
  .grid:not(.wide):not(:has(form)) { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .grid:not(.wide):not(:has(form)) .big { font-size: 24px; }
  .grid:not(.wide):not(:has(form)) .card { padding: 12px; }
}

/* brand details */
.top { border-bottom: 3px solid var(--p); }
.ct { color: var(--ink); }
.ct::before { content: ""; display: inline-block; width: 4px; height: 11px; background: var(--p); margin-right: 7px;
              vertical-align: -1px; border-radius: 1px; }
details.card > summary .ct::before { content: "▸"; width: auto; height: auto; background: none; color: var(--p); margin-right: 6px; }
details.card[open] > summary .ct::before { content: "▾"; }
.side a.on .n { color: var(--ink); }
.module { color: var(--ink); }
.module svg { color: var(--p); }

/* ---------- communication (2026-10-17) ---------- */
.msg-forms { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.msg-forms form { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.msg-forms select { width: 100%; }
.threads { display: flex; flex-direction: column; }
.thread { display: block; padding: 10px 4px; border-bottom: 1px solid var(--line); color: inherit; text-decoration: none; }
.thread:last-child { border-bottom: 0; }
.thread:hover { background: var(--soft); }
.thread.unread .snippet { font-weight: 700; }
.thread .snippet { color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat { display: flex; flex-direction: column; gap: 10px; }
.msg { max-width: 78%; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: #fff; }
.msg.out { align-self: flex-end; background: var(--soft-p); border-color: #F5D6D6; }
.msg.in { align-self: flex-start; background: var(--soft); }
.msg .meta { margin-top: 6px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.tg-text { white-space: pre-wrap; overflow-wrap: anywhere; }
details.preview { border-top: 1px solid var(--line); padding: 8px 0; }
details.preview > summary { color: inherit; }
details.preview .tg-text { margin-top: 8px; font-size: 13px; background: var(--soft); border-radius: 8px; padding: 10px; }
.auto-box { display: flex; flex-direction: column; gap: 6px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.auto-box label { display: flex; gap: 8px; align-items: center; }
.auto-box input[type=checkbox] { height: auto; }
.auto-box button { align-self: flex-start; }
@media (max-width: 640px) { .msg { max-width: 92%; } }

/* ---------- vazifalar — Trello uslubidagi doska (2026-10-30) ---------- */
.jump a.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.jump form { display: inline-flex; gap: 6px; align-items: center; margin: 0; }
.jump select { height: 30px; font-size: 12px; border-radius: 999px; }
.kanban.tasks { grid-auto-columns: minmax(240px, 1fr); }
.kcol.can { outline: 2px dashed #D8D2CB; outline-offset: -2px; }
.kcol.over { outline: 2px dashed var(--p); background: var(--soft-p); }
.kcard.task { cursor: grab; }
.kcard.task[draggable=false] { cursor: pointer; }
.kcard.task.dragging { opacity: .45; }
.kcard.pr-muhim { border-left: 3px solid var(--y); }
.kcard.pr-shoshilinch { border-left: 3px solid var(--p); }
.kcard .meta .i { vertical-align: -2px; margin-right: 2px; }
.kcard .meta .ok { color: #17804F; font-weight: 700; }
.kcard .who { display: flex; align-items: center; gap: 6px; margin-top: 7px; color: var(--muted); font-size: 11px; }
.av { width: 20px; height: 20px; border-radius: 50%; background: var(--soft-p); color: var(--p); font-size: 9px;
      font-weight: 800; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.plabel { display: inline-block; font-size: 10px; font-weight: 800; letter-spacing: .4px; text-transform: uppercase;
          padding: 1px 7px; border-radius: 3px; margin-bottom: 4px; }
.plabel.muhim { background: var(--soft-warn); color: var(--warn); }
.plabel.shoshilinch { background: var(--soft-bad); color: var(--down); }
.due { display: inline-flex; align-items: center; gap: 3px; }
.due.late { color: var(--down); font-weight: 700; }
.due.today { color: var(--warn); font-weight: 700; }
.badge.st-yangi { background: var(--soft-p); color: var(--p); }
.badge.st-jarayonda { background: var(--soft-warn); color: var(--warn); }
.badge.st-tekshiruvda { background: #E3F3F2; color: var(--t); }
.badge.st-bajarildi { background: var(--soft-ok); color: #17804F; }
.checks .lbl.done { text-decoration: line-through; color: var(--muted); }
.timeline li.note { background: var(--soft); border-radius: 8px; padding: 8px 10px; border: 0; margin: 6px 0; }
.move-btns { display: flex; flex-direction: column; gap: 8px; }
.move-btns form { margin: 0; }
.move-btns button { width: 100%; justify-content: center; }
.msg-toggles { display: flex; flex-direction: column; gap: 8px; }
.msg-toggles label { display: flex; gap: 8px; align-items: flex-start; }
.msg-toggles input[type=checkbox] { flex: none; margin-top: 2px; }
.msg-toggles label span { font-weight: 400; }

/* question bank, exams, mastery (2026-10-30) */
.jp { font-family: var(--font), "Hiragino Sans", "Noto Sans JP", "Yu Gothic", sans-serif; }
.jump a.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.qcard { border-top: 1px solid var(--line); padding: 14px 0; scroll-margin-top: 70px; }
.qcard:first-of-type { border-top: 0; }
.qcard.st-rad, .qcard.st-arxiv { opacity: .65; }
.qhead { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; align-items: center; }
.qstem { font-size: 17px; margin: 8px 0; line-height: 1.6; white-space: pre-line; }
.qopts { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.qopts li { padding: 6px 10px; border: 1px solid var(--line); border-radius: 8px; }
.qopts li.right { border-color: #BFE6D0; background: var(--soft-ok); }
.qopts li > b { display: inline-block; width: 18px; color: var(--muted); }
details.qedit { flex-basis: 100%; }
details.qedit > summary { list-style: none; display: inline-flex; align-items: center; cursor: pointer; }
details.qedit > summary::-webkit-details-marker { display: none; }
details.qedit[open] > summary { margin-bottom: 8px; }
.mx td.c { text-align: center; font-size: 12px; white-space: nowrap; padding: 6px 4px; }
.mx td.c.mastered { background: #E6F4EC; color: #17804F; }
.mx td.c.review, .mx td.c.retake { background: #FBE9E7; color: var(--down); }
.mx td.c.quiz, .mx td.c.davom { background: #FFF3DC; color: var(--warn); }
.mx td.c.locked { color: #B9B4AE; }
.mx-legend { display: flex; flex-wrap: wrap; gap: 10px; font-size: 12px; color: var(--muted); }
.mx-legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; vertical-align: -1px; margin-right: 4px; }
