/* Cravex — visual dashboards, charts, timetable, settings, circulars, search, bell. Light theme only. */

/* ── Shared bits ───────────────────────────────────────────────────── */
.muted { color: var(--mid); }
.small { font-size: 12px; }
.hint { font-size: 12px; color: var(--mid); margin-top: 4px; }
.bad { color: var(--red); }
.card-sub { font-size: 13px; color: #666; margin: -4px 0 12px; line-height: 1.45; }
.card-actions { display: flex; gap: 8px; justify-content: flex-end; align-items: center; margin-top: 14px; flex-wrap: wrap; }
.tbl-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.tbl-wrap table { min-width: 100%; }
.field-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-start; }
.field-row > .field { flex: 1 1 160px; min-width: 0; }
.field-row > .link-btn { margin-bottom: 14px; }
.chip-good { background: var(--greenl); color: #15803d; }
.chip-warn { background: var(--amberl); color: #b45309; }
.chip-bad { background: var(--redl); color: #b91c1c; }
.chip-muted { background: var(--surface); color: #555; }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-check { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border: 1px solid var(--border); border-radius: 999px; font-size: 13px; cursor: pointer; background: #fff; }
.chip-check input { margin: 0; }
.switch { display: flex; align-items: center; gap: 8px; font-size: 13px; margin: 6px 0 12px; cursor: pointer; }
.clickable { cursor: pointer; }
tr.clickable:hover td { background: #fafafa; }
.skeleton { background: linear-gradient(90deg, #f1f1f1 25%, #e8e8e8 37%, #f1f1f1 63%); background-size: 400% 100%; animation: cvx-shimmer 1.3s ease infinite; min-height: 92px; border: none !important; }
@keyframes cvx-shimmer { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }
@media (prefers-reduced-motion: reduce) { .skeleton { animation: none; } }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

/* ── KPI tiles ─────────────────────────────────────────────────────── */
.cv-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-bottom: 16px; }
.cv-tile { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; min-width: 0; transition: border-color .15s, box-shadow .15s; }
.cv-tile.clickable:hover { border-color: var(--border2); box-shadow: 0 2px 10px rgba(0,0,0,.05); }
.cv-tile-lbl { font-size: 11px; text-transform: uppercase; letter-spacing: .5px; color: #777; }
.cv-tile-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; margin-top: 6px; }
.cv-tile-val { font-family: 'DM Serif Display', Georgia, serif; font-size: 30px; line-height: 1; letter-spacing: -0.5px; color: var(--black); white-space: nowrap; }
.cv-tile-sub { font-size: 12px; color: #777; margin-top: 6px; }
.cv-tile.tone-good { border-left: 3px solid var(--green); }
.cv-tile.tone-warn { border-left: 3px solid var(--amber); }
.cv-tile.tone-bad { border-left: 3px solid var(--red); }
.cv-tile.tone-bad .cv-tile-val { color: var(--red); }
.cv-spark { width: 84px; height: 28px; flex-shrink: 0; }

/* ── Charts ────────────────────────────────────────────────────────── */
.cv-chart { width: 100%; min-width: 0; }
.cv-chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.cv-chart svg text { font-family: 'DM Sans', system-ui, sans-serif; }
.cv-scroll { overflow-x: auto; }
.cv-scroll svg { width: auto; max-width: none; height: auto; }
.cv-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12px; color: #555; margin: 4px 0 8px; }
.cv-legend span { display: inline-flex; align-items: center; gap: 6px; }
.cv-legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.cv-data { margin-top: 8px; font-size: 12px; }
.cv-data summary { color: var(--mid); cursor: pointer; display: inline-block; padding: 2px 0; }
.cv-data summary:hover { color: var(--black); }
.cv-data table { margin-top: 8px; font-size: 12px; width: 100%; }
.cv-data caption { text-align: left; color: var(--mid); padding-bottom: 4px; }
.cv-empty { padding: 28px 16px; text-align: center; color: var(--mid); font-size: 13px; }

.cv-bars { display: flex; flex-direction: column; gap: 9px; }
.cv-bar-row { display: grid; grid-template-columns: minmax(90px, 34%) 1fr 44px; gap: 10px; align-items: center; }
.cv-bar-lbl { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cv-bar-lbl span { display: block; font-size: 11px; color: #888; overflow: hidden; text-overflow: ellipsis; }
.cv-bar-track { position: relative; height: 10px; background: #f1f1f1; border-radius: 6px; }
.cv-bar-fill { height: 100%; border-radius: 6px; min-width: 2px; }
.cv-bar-target { position: absolute; top: -3px; bottom: -3px; width: 2px; background: #555; border-radius: 1px; }
.cv-bar-val { font-size: 12px; font-variant-numeric: tabular-nums; text-align: right; color: #444; }

.cv-ring { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.cv-ring svg { width: 96px; height: 96px; }
.cv-ring-lbl { font-size: 12px; color: #666; text-align: center; }

.cv-funnel { display: flex; flex-direction: column; gap: 4px; }
.cv-funnel-row { display: flex; align-items: center; gap: 10px; }
.cv-funnel-bar { background: var(--blue); color: #fff; border-radius: 6px; height: 30px; display: flex; align-items: center; padding: 0 10px; min-width: 44px; font-weight: 600; font-size: 13px; }
.cv-funnel-lbl { font-size: 13px; color: #444; white-space: nowrap; }
.cv-funnel-conv { font-size: 11px; color: #888; padding-left: 12px; }

/* Scorecard (principal) */
.scorecard td, .scorecard th { white-space: nowrap; }
.sc-cell { text-align: center; font-variant-numeric: tabular-nums; font-weight: 500; }
.sc-cell.good { background: #f0fdf4; color: #15803d; }
.sc-cell.warn { background: #fffbeb; color: #b45309; }
.sc-cell.bad { background: #fef2f2; color: #b91c1c; }
.sc-cell.none { color: #aaa; }
.sc-go { color: var(--mid); font-size: 12px; text-align: right; }
.drill { border-top: 1px solid var(--border); margin-top: 14px; padding-top: 12px; }
.drill-hd { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.drill-hd h4 { font-size: 14px; font-weight: 600; }

/* Today extras */
.slot-time { font-weight: 600; color: var(--black); font-variant-numeric: tabular-nums; }
.today-row-when { font-size: 12px; color: #666; margin-top: 2px; }
.next-topic { font-size: 12px; color: #555; margin-top: 6px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.topic-lbl { color: #888; }
.other-classes { margin-top: 10px; font-size: 13px; }
.other-classes summary { cursor: pointer; color: var(--mid); padding: 6px 0; }
.quiet { color: #777; font-size: 12px; }
.help-row { align-items: center; }
.help-badges { display: flex; align-items: center; gap: 6px; margin-top: 4px; flex-wrap: wrap; }
.mini-lbl { font-size: 10px; text-transform: uppercase; letter-spacing: .4px; color: #999; }
.reg-pick { margin-bottom: 10px; }
.reg-pick select { max-width: 100%; }
.setup-head { display: flex; gap: 20px; align-items: flex-start; flex-wrap: wrap; }
.setup-list { flex: 1; min-width: 220px; }
.meta { font-size: 12px; color: #777; }
.none { color: #aaa; }

/* Generic modal used by Today / Timetable */
.cvx-modal-box { max-width: 560px; width: calc(100% - 32px); max-height: calc(100vh - 48px); overflow-y: auto; }

/* ── Timetable ─────────────────────────────────────────────────────── */
.tt-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.tt-head-btns, .tt-actions, .tt-card-btns { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.tt-head-btns a.btn-sm { text-decoration: none; display: inline-flex; align-items: center; }
.tt-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.tt-card { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; }
.tt-card-title { font-weight: 600; font-size: 15px; }
.tt-card-meta { display: flex; gap: 6px; flex-wrap: wrap; }
.tt-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.tt-title { font-weight: 600; font-size: 16px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.tt-import { cursor: pointer; display: inline-flex; align-items: center; }
.tt-meta-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end; }
.tt-meta-row .field { min-width: 160px; }
.tt-pubnote { flex: 1 1 240px; padding-bottom: 14px; }
.tt-clash { background: var(--redl); color: #991b1b; border: 1px solid #fecaca; border-radius: 10px; padding: 10px 12px; font-size: 13px; margin-bottom: 12px; }
.tt-grid-card { padding: 0 !important; overflow: hidden; }
.tt-grid { border-collapse: collapse; width: 100%; min-width: 760px; font-size: 12px; table-layout: fixed; }
.tt-grid th, .tt-grid td { border: 1px solid #dcdcdc; padding: 6px; text-align: center; vertical-align: middle; }
.tt-grid th { background: #f6f6f6; font-weight: 600; font-size: 11px; letter-spacing: .4px; }
.tt-grid .tt-time { width: 92px; white-space: nowrap; font-weight: 600; background: #fafafa; font-variant-numeric: tabular-nums; }
.tt-grid .tt-break td { background: #f3f3f3; font-weight: 600; letter-spacing: 2px; font-size: 11px; color: #666; padding: 4px; }
.tt-grid .tt-cell { height: 52px; }
.tt-grid .tt-cell.editable { cursor: pointer; }
.tt-grid .tt-cell.editable:hover { background: #f8fbff; outline: 2px solid #bfdbfe; outline-offset: -2px; }
.tt-grid .tt-today { background: #f8fbff; }
.tt-entry { border-radius: 6px; padding: 4px 5px; margin: 2px 0; font-weight: 600; line-height: 1.25; word-break: break-word; }
.tt-room { display: block; font-weight: 400; font-size: 10px; color: #444; }
.tt-plus { color: #bbb; font-size: 18px; }
.tt-side { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 12px; margin-top: 4px; }
.tt-edit { width: 100%; border-collapse: collapse; font-size: 13px; }
.tt-edit th { text-align: left; font-size: 11px; color: #777; font-weight: 600; padding: 6px 4px; }
.tt-edit td { padding: 4px; border-top: 1px solid var(--border); }
.tt-edit input, .tt-edit select { width: 100%; min-width: 60px; padding: 6px 8px; border: 1px solid var(--border); border-radius: 6px; font: inherit; background: #fff; }
.tt-side-row td { vertical-align: middle; }
.tt-periods { margin-top: 12px; }
.tt-periods summary { cursor: pointer; padding: 4px 0 10px; }
.tt-fs { border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px 2px; margin-bottom: 12px; }
.tt-fs legend { font-size: 12px; font-weight: 600; padding: 0 6px; color: #555; }
.legend { display: grid; grid-template-columns: 1fr 2fr; gap: 14px; }
.sig { display: flex; justify-content: space-between; }

/* ── Settings ──────────────────────────────────────────────────────── */
.set-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 16px; overflow-x: auto; }
.set-tab { background: none; border: none; border-bottom: 2px solid transparent; padding: 10px 14px; font: inherit; font-size: 14px; color: #666; cursor: pointer; white-space: nowrap; margin-bottom: -1px; }
.set-tab:hover { color: var(--black); }
.set-tab.active { color: var(--black); border-bottom-color: var(--black); font-weight: 600; }
.set-card { margin-bottom: 14px; }
.set-body textarea, .set-body input, .set-body select { font: inherit; }
.set-body textarea { width: 100%; resize: vertical; }
.dp-sem { border: 1px solid var(--border); border-radius: 10px; padding: 12px 12px 0; margin-bottom: 12px; background: #fcfcfc; }

/* NAAC */
.naac-top { display: grid; grid-template-columns: 140px 1fr; gap: 20px; align-items: center; }
.naac-tbl td { vertical-align: top; }
.naac-tbl input, .naac-tbl select { width: 100%; min-width: 110px; padding: 6px 8px; border: 1px solid var(--border); border-radius: 6px; font: inherit; }

/* Bulk import */
.file-drop { display: flex; align-items: center; justify-content: center; border: 1.5px dashed var(--border2); border-radius: 12px; padding: 22px; cursor: pointer; color: #555; font-size: 14px; text-align: center; background: #fcfcfc; }
.file-drop:hover { border-color: var(--black); }
.file-drop input { display: none; }
.imp-sum { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 14px 0 10px; }
.imp-ok { margin-top: 14px; padding: 12px 14px; border-radius: 10px; background: var(--greenl); color: #15803d; font-size: 14px; }

/* Circulars */
.circ { border-top: 1px solid var(--border); padding: 0 2px; }
.circ:first-child { border-top: none; }
.circ summary { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; cursor: pointer; list-style: none; flex-wrap: wrap; }
.circ summary::-webkit-details-marker { display: none; }
.circ-title { font-weight: 500; display: inline-flex; align-items: center; gap: 8px; }
.circ.unread .circ-title { font-weight: 700; }
.circ-meta { font-size: 12px; color: #888; }
.circ-body { font-size: 14px; line-height: 1.55; padding: 0 0 8px; white-space: normal; }
.circ-aud { font-size: 11px; color: #999; padding-bottom: 12px; text-transform: capitalize; }

/* Marks paste validation */
input.mk-bad { border-color: var(--red) !important; background: var(--redl); }

/* ── Bell + search ─────────────────────────────────────────────────── */
.sb-tools { display: flex; gap: 6px; padding: 0 12px 10px; }
.sb-search { flex: 1; display: flex; align-items: center; gap: 8px; border: 1px solid var(--border); background: #fff; border-radius: 8px; padding: 7px 10px; font: inherit; font-size: 13px; color: #777; cursor: pointer; text-align: left; }
.sb-search:hover { border-color: var(--border2); color: var(--black); }
.sb-search kbd { margin-left: auto; font-family: inherit; font-size: 11px; border: 1px solid var(--border); border-radius: 4px; padding: 0 5px; color: #999; }
.icon-btn { position: relative; width: 36px; height: 36px; border: 1px solid var(--border); background: #fff; border-radius: 8px; cursor: pointer; font-size: 15px; display: inline-flex; align-items: center; justify-content: center; color: #333; flex-shrink: 0; }
.icon-btn:hover { border-color: var(--border2); }
.cvx-bell-count { position: absolute; top: -5px; right: -5px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--red); color: #fff; font-size: 10px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; line-height: 1; }
.cvx-bell-count[hidden] { display: none; }
.topbar-tools { display: flex; gap: 6px; }
.bell-panel { position: fixed; z-index: 1200; width: 320px; max-width: calc(100vw - 16px); background: #fff; border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,.12); padding: 6px; display: none; }
.bell-panel.open { display: block; }
.bell-hd { font-size: 11px; text-transform: uppercase; letter-spacing: .5px; color: #888; padding: 8px 10px 6px; }
.bell-item { display: flex; gap: 10px; align-items: flex-start; width: 100%; border: none; background: none; text-align: left; padding: 10px; border-radius: 8px; font: inherit; font-size: 13px; cursor: pointer; color: var(--black); }
.bell-item:hover { background: var(--surface); }
.bell-empty { padding: 18px 10px; text-align: center; font-size: 13px; color: #888; }
.bell-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--blue); flex-shrink: 0; margin-top: 5px; display: inline-block; }
.circ-title .bell-dot { margin-top: 0; }
.bell-review, .bell-approval { background: var(--amber); }
.bell-timetable { background: #9333ea; }

.search-ov { position: fixed; inset: 0; z-index: 1300; background: rgba(10,10,10,.35); display: none; align-items: flex-start; justify-content: center; padding: 10vh 16px 16px; }
.search-ov.open { display: flex; }
.search-box { width: 100%; max-width: 580px; background: #fff; border-radius: 14px; box-shadow: 0 20px 60px rgba(0,0,0,.2); overflow: hidden; }
.search-box input { width: 100%; border: none; border-bottom: 1px solid var(--border); padding: 16px 18px; font: inherit; font-size: 16px; outline: none; }
.search-res { max-height: 60vh; overflow-y: auto; padding: 6px; }
.search-grp { font-size: 11px; text-transform: uppercase; letter-spacing: .5px; color: #888; padding: 10px 12px 4px; }
.search-item { display: flex; flex-direction: column; gap: 2px; width: 100%; border: none; background: none; text-align: left; padding: 9px 12px; border-radius: 8px; cursor: pointer; font: inherit; }
.search-item:hover, .search-item:focus-visible { background: var(--surface); }
.search-item strong { font-size: 14px; font-weight: 500; }
.search-item span { font-size: 12px; color: #888; }
.search-hint { padding: 18px 12px; color: #888; font-size: 13px; text-align: center; }

/* Chat assistant links */
.dx-msg { white-space: pre-line; }
.dx-links { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; white-space: normal; }
.dx-link { border: 1px solid var(--border2); background: #fff; color: var(--black); border-radius: 999px; padding: 5px 11px; font: inherit; font-size: 12px; cursor: pointer; }
.dx-link:hover { border-color: var(--black); }

/* ── Mobile ────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .cv-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .cv-tile { padding: 12px; }
  .cv-tile-val { font-size: 24px; }
  .cv-spark { width: 56px; }
  .cv-bar-row { grid-template-columns: minmax(80px, 38%) 1fr 40px; }
  .naac-top { grid-template-columns: 1fr; justify-items: center; }
  .naac-top > div:last-child { width: 100%; }
  .tt-side { grid-template-columns: 1fr; }
  .search-ov { padding-top: 12px; }
  .tt-toolbar { flex-direction: column; align-items: flex-start; }
}
@media print {
  .sidebar, .bottom-bar, .mobile-topbar, #dxBotBubble, #dxBotPanel { display: none !important; }
}

/* ── Card inner spacing (cards have no padding of their own) ────────── */
.card > .card-sub { padding: 12px 18px 0; margin: 0; }
.card-hd .card-actions { margin-top: 0; }
.today-body > :is(.cv-chart, .reg-pick, .setup-head, .cv-legend, .cv-empty) { padding: 12px 18px; }
.today-body > .cv-chart + .cv-chart { padding-top: 0; }
.today-body > #reg-grid { padding: 0 18px 14px; }
.today-body > .cv-legend + .cv-chart { padding-top: 0; }
.set-body, .naac-top, #ci-list, .card > .tbl-wrap, .card > .cv-empty { padding: 14px 18px; }
#ci-list { padding-top: 0; padding-bottom: 0; }
.set-card .set-body .tbl-wrap { margin-bottom: 8px; }
.tt-side .card > table, .tt-side .card > .tt-edit { margin: 8px 0; }
.tt-side .card > .tt-edit th, .tt-side .card > .tt-edit td { padding-left: 14px; }
.tt-periods { padding: 12px 18px; }
.tt-card { margin: 0; }
.drill { margin: 0 18px 14px; }
.cv-line svg, .cv-heat svg { max-height: 280px; }

/* ── Academics: courses, allocation, workload, reports ── */
.ac-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.ac-table th { text-align: left; font-weight: 500; font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: var(--mid); padding: 8px 10px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.ac-table td { padding: 8px 10px; border-bottom: 1px solid var(--border); vertical-align: top; }
.ac-table .small, .ac-sem .small { font-size: 11px; }
.ac-table .bad, .ac-table .bad-row td { color: #b91c1c; }
.ac-act { white-space: nowrap; text-align: right; }
.ac-act .link-btn + .link-btn { margin-left: 10px; }
.ac-sem { margin: 14px 0 6px; }
.ac-sem-hd { font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.ac-chip { display: inline-flex; align-items: center; gap: 6px; margin: 2px 4px 2px 0; }
.ac-chip button { border: 0; background: none; cursor: pointer; font-size: 11px; color: inherit; opacity: .6; padding: 0 0 0 2px; }
.ac-chip button:hover { opacity: 1; }
.ac-preview { border: 1px dashed var(--border); border-radius: 10px; padding: 12px; margin: 12px 0; }
.ac-preview .tbl-wrap { max-height: 360px; overflow: auto; }
#ac-modal .modal { max-width: 640px; width: calc(100% - 32px); max-height: 90vh; overflow-y: auto; }
#ac-modal .field-row { display: flex; gap: 10px; flex-wrap: wrap; }
#ac-modal .field-row > .field { flex: 1 1 110px; }
@media (max-width: 640px) { .ac-table { font-size: 12px; } .ac-table th, .ac-table td { padding: 6px; } }
.ac-table .nw { white-space: nowrap; }

/* ── Academic calendar ── */
.cal-row { display: grid; grid-template-columns: 180px 1fr auto; gap: 12px; align-items: start; padding: 10px 0; border-bottom: 1px solid var(--border); }
.cal-row:last-child { border-bottom: 0; }
.cal-row.past { opacity: .55; }
.cal-date { font-size: 13px; font-weight: 500; }
.cal-what .chip { margin-right: 4px; }
@media (max-width: 640px) { .cal-row { grid-template-columns: 1fr auto; } .cal-date { grid-column: 1 / -1; } }

/* ── Notice composer: toggle chips (buttons, not checkboxes) ── */
.pick-row { display: flex; flex-wrap: wrap; gap: 8px; }
.pick-chip { appearance: none; border: 1px solid var(--border); background: var(--white, #fff); color: var(--black, #111); border-radius: 999px; padding: 7px 14px; font: inherit; font-size: 13px; line-height: 1.2; cursor: pointer; transition: background .12s, border-color .12s, color .12s; min-height: 34px; }
.pick-chip:hover { border-color: var(--mid, #888); }
.pick-chip[aria-pressed="true"] { background: var(--black, #111); border-color: var(--black, #111); color: #fff; }
.pick-chip:focus-visible { outline: 2px solid var(--black, #111); outline-offset: 2px; }
.pick-list { max-height: 220px; overflow-y: auto; padding: 8px 2px 2px; }
.nt-card .field-row { display: flex; gap: 12px; flex-wrap: wrap; }
.nt-card .field-row > .field { flex: 1 1 200px; min-width: 0; }
.nt-card select, .nt-card input, .nt-card textarea { width: 100%; box-sizing: border-box; }
.nt-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 6px 0 10px; }
.ann-msg a, .circ-body a { word-break: break-all; }
@media (max-width: 640px) { .nt-foot { flex-direction: column-reverse; align-items: stretch; } .nt-foot .btn-primary { width: 100%; } .pick-chip { padding: 8px 12px; } }

/* ── Marks grid: computed CIE ── */
.mk-calc, .mk-calc-h { text-align: center; background: var(--bg2, #f6f6f4); white-space: nowrap; }
.mk-calc-h { font-size: 11px; }
.mk-cie { font-weight: 600; }
.mk-of { color: var(--muted); font-size: 11px; font-weight: 400; }
.mk-note { font-size: 12px; color: var(--mid); padding: 10px 16px 6px; line-height: 1.5; }
.mk-foot { font-size: 13px; padding: 10px 16px 14px; color: var(--mid); }
.cie-avg td { border-top: 2px solid var(--border); }
.cie-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.cie-col-hd { font-weight: 600; font-size: 13px; margin-bottom: 8px; }
@media (max-width: 760px) { .cie-cols { grid-template-columns: 1fr; } }

.imp-note{padding:12px 14px;border:1px solid var(--border,#e5e5e5);border-radius:10px;background:var(--bg2,#fafafa);font-size:13px;line-height:1.5}
