/* Halcent Edu. Halcent brand: navy #1C2B3A, amber #F2B33D, canvas #F3F2F0, slate #5F6B78, Montserrat. */
@font-face { font-family: Montserrat; font-weight: 400; font-display: swap; src: url(/static/fonts/montserrat-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: Montserrat; font-weight: 500; font-display: swap; src: url(/static/fonts/montserrat-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: Montserrat; font-weight: 600; font-display: swap; src: url(/static/fonts/montserrat-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: Montserrat; font-weight: 700; font-display: swap; src: url(/static/fonts/montserrat-latin-700-normal.woff2) format("woff2"); }
:root {
  --navy: #1C2B3A;
  --navy-2: #25364B;
  --deep: #16222F;
  --amber: #F2B33D;
  --amber-ink: #8A5D06;
  --canvas: #F3F2F0;
  --slate: #5F6B78;
  --green: #1FBF5B;
  --green-ink: #137A3B;
  --rose: #C2412D;
  --line: #E4E5E8;
  --line-2: #EEEFF1;
  --surface: #FFFFFF;
  --side: #FBFBFA;
  --head: #F7F7F6;
  --tint-navy: #E9EDF2;
  --tint-amber: #FDF1D6;
  --tint-green: #E2F5E9;
  --tint-rose: #FBE7E3;
  --brand: #1C2B3A;          /* the lecturer's colour, set per brand */
  --r: 12px;
  --font: "Montserrat", "Noto Sans Sinhala", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 500 14px/1.55 var(--font); color: var(--navy); background: var(--canvas); }
a { color: var(--navy); }
h1, h2, h3 { margin: 0; line-height: 1.25; }
h1 { font-size: 22px; font-weight: 700; }
h2 { font-size: 17px; font-weight: 700; }
h3 { font-size: 15px; font-weight: 700; }
p { margin: 0 0 12px; }
code { font: 600 13px/1.4 var(--font); background: var(--tint-navy); padding: 2px 6px; border-radius: 6px; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--slate); }
.small { font-size: 13px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
svg.i { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--amber) 70%, transparent); outline-offset: 2px; }

/* ── app shell ─────────────────────────────────────────── */
.shell { display: grid; grid-template-columns: 252px 1fr; min-height: 100vh; background: linear-gradient(to right, var(--side) 251px, var(--line) 251px 252px, transparent 252px); }
.side { background: var(--side); border-right: 1px solid var(--line); display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; }
.side .brand { display: flex; align-items: center; gap: 10px; padding: 22px 20px 18px; text-decoration: none; }
.mark-tile { width: 36px; height: 36px; border-radius: 10px; background: var(--brand); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 13px; letter-spacing: .02em; flex: none; }
.side .brand .bt b { display: block; font-size: 15px; font-weight: 700; line-height: 1.25; color: var(--navy); }
.side .brand .bt span { display: block; font-size: 12px; color: var(--slate); font-weight: 500; }
.side nav { padding: 8px 12px; display: flex; flex-direction: column; gap: 2px; }
.side nav a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; text-decoration: none; color: var(--navy); font-weight: 500; }
.side nav a:hover { background: var(--line-2); }
.side nav a.on { background: var(--tint-navy); font-weight: 700; }
.side nav a .badge { margin-left: auto; }
.side .sep { height: 1px; background: var(--line); margin: 14px 20px; }
.side .group { padding: 0 24px 6px; font-size: 12px; color: var(--slate); font-weight: 600; }
.side .foot { margin-top: auto; padding: 16px 20px 20px; border-top: 1px solid var(--line); display: flex; align-items: center; gap: 10px; color: var(--slate); font-size: 12px; }
.side .foot svg { width: 22px; height: 22px; }
.badge { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; background: var(--amber); color: var(--navy); font-size: 11px; font-weight: 700; display: inline-grid; place-items: center; }

.main { min-width: 0; display: flex; flex-direction: column; }
.top { height: 68px; background: var(--surface); border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 16px; padding: 0 28px; position: sticky; top: 0; z-index: 5; }
.top h1 { font-size: 20px; }
.top .crumb { display: flex; align-items: center; gap: 6px; color: var(--slate); text-decoration: none; font-weight: 600; font-size: 13px; }
.top .right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.top .who { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.content { padding: 24px 28px 48px; max-width: 1240px; width: 100%; }
.content.narrow { max-width: 760px; }
.hello { font-size: 24px; font-weight: 600; margin: 0 0 18px; }

/* mobile: top brand bar + bottom tabs */
.mtop, .mnav { display: none; }
@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; background: none; }
  .side { display: none; }
  .mtop { display: flex; align-items: center; gap: 10px; padding: 14px 16px; background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 6; }
  .mtop .bt b { font-size: 15px; display: block; } .mtop .bt span { font-size: 12px; color: var(--slate); display: block; }
  .top { height: auto; padding: 14px 16px; position: static; flex-wrap: wrap; }
  .content { padding: 16px 16px 96px; }
  .mnav { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; background: var(--surface); border-top: 1px solid var(--line); padding: 6px 8px calc(6px + env(safe-area-inset-bottom)); }
  .mnav a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 0; text-decoration: none; color: var(--slate); font-size: 11px; font-weight: 600; position: relative; }
  .mnav a.on { color: var(--navy); }
  .mnav a.on svg { stroke-width: 2.3; }
  .mnav .badge { position: absolute; top: 0; left: calc(50% + 6px); }
  .hello { font-size: 20px; }
}

/* ── cards and stats ───────────────────────────────────── */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); margin-bottom: 18px; }
.card > .hd { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line-2); flex-wrap: wrap; }
.card > .hd .right { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.card > .bd { padding: 18px 20px; }
.card > .bd.flush { padding: 0; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; margin-bottom: 18px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; display: flex; align-items: center; gap: 14px; }
.stat .ic { width: 46px; height: 46px; border-radius: 11px; display: grid; place-items: center; flex: none; }
.stat .ic svg { width: 22px; height: 22px; }
.stat .k { color: var(--slate); font-size: 13px; font-weight: 600; }
.stat .v { font-size: 22px; font-weight: 700; line-height: 1.2; }
.stat .v small { font-size: 14px; color: var(--slate); font-weight: 600; }
.t-navy { background: var(--tint-navy); color: var(--navy); }
.t-amber { background: var(--tint-amber); color: var(--amber-ink); }
.t-green { background: var(--tint-green); color: var(--green-ink); }
.t-rose { background: var(--tint-rose); color: var(--rose); }
.cols { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 18px; align-items: start; }
@media (max-width: 1100px) { .cols { grid-template-columns: 1fr; } }

/* ── bar chart ─────────────────────────────────────────── */
.chart { display: grid; grid-template-columns: 34px 1fr; gap: 8px; height: 250px; }
.chart .y { display: flex; flex-direction: column-reverse; justify-content: space-between; font-size: 11px; color: var(--slate); padding-bottom: 26px; text-align: right; }
.chart .plot { position: relative; display: flex; align-items: flex-end; justify-content: space-around; gap: 14px; padding-bottom: 26px;
  background: repeating-linear-gradient(to top, var(--line-2) 0 1px, transparent 1px 25%) 0 0 / 100% calc(100% - 26px) no-repeat; }
.chart .col { flex: 0 1 84px; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; position: relative; min-width: 0; }
.chart .bar { background: var(--tint-navy); border-radius: 8px 8px 4px 4px; min-height: 4px; }
.chart .col.hi .bar { background: linear-gradient(180deg, var(--amber), #F8D88F); }
.chart .lab { position: absolute; bottom: -24px; left: -20px; right: -20px; text-align: center; font-size: 11px; color: var(--slate); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chart .tip { position: absolute; left: 50%; transform: translate(-50%, -100%); margin-top: -8px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 6px 18px rgba(28,43,58,.10); border-radius: 10px; padding: 8px 10px; font-size: 12px; white-space: nowrap; z-index: 2; }
.chart .tip b { display: block; color: var(--navy); font-size: 13px; }
.chart .col:not(.hi) .tip { display: none; }
.chart .col:hover .tip { display: block; }
.chart.empty { display: flex; align-items: center; justify-content: center; text-align: center; color: var(--slate); height: 180px; border: 1.5px dashed var(--line); border-radius: 10px; padding: 0 20px; }
.box-soft.link { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.kpi b { font-size: 26px; font-weight: 700; }
.up { color: var(--green-ink); font-weight: 700; font-size: 13px; display: inline-flex; gap: 4px; align-items: center; }

/* ── tables ───────────────────────────────────────────── */
.scroll { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; }
.tbl th { background: var(--head); text-align: left; font-size: 12px; font-weight: 700; color: var(--slate); padding: 12px 20px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { padding: 14px 20px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl .r { text-align: right; }
.tbl a { text-decoration: none; font-weight: 600; }
.tbl a:hover { text-decoration: underline; }
.who-cell { display: flex; align-items: center; gap: 10px; }

/* ── avatars, chips, progress ──────────────────────────── */
.av { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; flex: none; background: var(--tint-navy); color: var(--navy); }
.av.sm { width: 30px; height: 30px; font-size: 11px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 99px; font-size: 12px; font-weight: 600; background: var(--line-2); color: var(--slate); white-space: nowrap; }
.chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.chip.green { background: var(--tint-green); color: var(--green-ink); }
.chip.amber { background: var(--tint-amber); color: var(--amber-ink); }
.chip.navy { background: var(--tint-navy); color: var(--navy); }
.chip.rose { background: var(--tint-rose); color: var(--rose); }
.prog { height: 8px; background: var(--line-2); border-radius: 99px; overflow: hidden; }
.prog i { display: block; height: 100%; border-radius: 99px; background: var(--green); }
.prog.navy i { background: var(--navy); }
.prog.amber i { background: var(--amber); }

/* ── tabs ─────────────────────────────────────────────── */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); overflow-x: auto; padding: 0 12px; }
.tabs a, .tabs button { display: inline-flex; align-items: center; gap: 8px; padding: 13px 10px; margin: 0 4px; text-decoration: none; color: var(--slate); font: 600 13px var(--font); border: 0; background: none; border-bottom: 2px solid transparent; cursor: pointer; white-space: nowrap; }
.tabs a.on, .tabs button.on { color: var(--navy); border-bottom-color: var(--navy); }
.tabs .badge { margin-left: 2px; }

/* ── activity feed ────────────────────────────────────── */
.feed { list-style: none; margin: 0; padding: 0; }
.feed li { display: flex; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line-2); }
.feed li:last-child { border-bottom: 0; }
.feed .what { font-weight: 700; }
.feed .line { font-size: 13px; color: var(--slate); }
.feed .line a { color: var(--green-ink); text-decoration: none; font-weight: 600; }
.feed .meta { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--slate); margin-top: 6px; }
.feed .meta svg { width: 14px; height: 14px; }
.feed .score { margin-left: auto; text-align: right; font-weight: 700; white-space: nowrap; }
.summary { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--slate); }
.summary b { color: var(--navy); }

/* ── forms and buttons ────────────────────────────────── */
label { display: block; font-weight: 600; font-size: 13px; margin: 14px 0 6px; }
input[type=text], input[type=tel], input[type=password], input[type=number], input[type=email], input[type=file], textarea, select {
  width: 100%; font: 500 14px var(--font); color: var(--navy); background: var(--surface); border: 1px solid var(--line);
  border-radius: 10px; padding: 10px 12px; }
input:focus, textarea:focus, select:focus { border-color: var(--navy); outline: none; box-shadow: 0 0 0 3px var(--tint-navy); }
textarea { min-height: 84px; resize: vertical; line-height: 1.5; }
.hint { font-size: 12px; color: var(--slate); margin-top: 5px; }
.check { display: flex; gap: 10px; align-items: center; font-weight: 600; font-size: 13px; }
.check input { width: 18px; height: 18px; accent-color: var(--navy); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 700 13px var(--font); border: 1px solid var(--navy);
  background: var(--navy); color: #fff; padding: 0 16px; height: 40px; border-radius: 10px; cursor: pointer; text-decoration: none; white-space: nowrap; }
.btn:hover { background: var(--deep); }
.btn.line { background: var(--surface); color: var(--navy); border-color: var(--line); }
.btn.line:hover { border-color: var(--navy); }
.btn.amber { background: var(--amber); border-color: var(--amber); color: var(--navy); }
.btn.sm { height: 34px; padding: 0 12px; font-size: 12px; }
.btn.block { width: 100%; height: 46px; font-size: 14px; }
.btn[disabled] { opacity: .5; cursor: default; }
.alert { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 10px; margin: 0 0 16px; font-size: 13px; font-weight: 500; }
.alert svg { margin-top: 1px; }
.alert.err { background: var(--tint-rose); color: #7A2414; }
.alert.info { background: var(--tint-navy); }
.alert.warn { background: var(--tint-amber); color: #5C3E04; }
.alert.ok { background: var(--tint-green); color: #0E5A2B; }
.grid2 { display: grid; gap: 0 16px; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }

/* ── login ────────────────────────────────────────────── */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; background: var(--canvas); }
.auth .box { width: 100%; max-width: 420px; }
.auth .brandrow { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.auth .brandrow b { font-size: 18px; display: block; }
.auth .brandrow span { color: var(--slate); font-size: 13px; }
.auth .card .bd { padding: 22px; }
.auth .powered { display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--slate); font-size: 12px; margin-top: 18px; }
.auth .powered svg { width: 18px; height: 18px; }

/* ── result ───────────────────────────────────────────── */
.ring { --p: 0; width: 132px; height: 132px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: conic-gradient(var(--navy) calc(var(--p) * 1%), var(--line-2) 0); }
.ring > div { width: 104px; height: 104px; border-radius: 50%; background: var(--surface); display: grid; place-items: center; text-align: center; }
.ring b { font-size: 26px; line-height: 1; display: block; }
.ring span { font-size: 12px; color: var(--slate); font-weight: 600; }
.score-hd { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }
.score-hd .facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 14px 24px; flex: 1; min-width: 220px; }
.score-hd .facts .k { color: var(--slate); font-size: 12px; font-weight: 600; }
.score-hd .facts .v { font-size: 20px; font-weight: 700; }
.qrow { padding: 16px 20px; border-bottom: 1px solid var(--line-2); }
.qrow:last-child { border-bottom: 0; }
.qrow .top-line { display: grid; grid-template-columns: 1fr 140px 64px; gap: 16px; align-items: center; }
.qrow .qt b { display: block; }
.qrow .qt span { font-size: 13px; color: var(--slate); }
.qrow .m { text-align: right; font-weight: 700; font-size: 15px; }
.qrow details { margin-top: 10px; }
.qrow summary { cursor: pointer; font-size: 13px; font-weight: 600; color: var(--slate); list-style: none; display: inline-flex; align-items: center; gap: 6px; }
.qrow summary::-webkit-details-marker { display: none; }
.pts { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; }
.pts li { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; }
.pts li svg { width: 16px; height: 16px; margin-top: 1px; }
.pts li.got svg { color: var(--green-ink); }
.pts li.miss { color: var(--slate); }
.box-soft { background: var(--head); border: 1px solid var(--line-2); border-radius: 10px; padding: 10px 12px; font-size: 13px; margin-top: 10px; white-space: pre-wrap; }
.tipline { margin-top: 10px; font-size: 13px; display: flex; gap: 8px; }
.tipline svg { color: var(--amber-ink); width: 16px; height: 16px; margin-top: 2px; }
@media (max-width: 640px) {
  .qrow .top-line { grid-template-columns: 1fr 64px; }
  .qrow .top-line .prog { grid-column: 1 / -1; order: 3; }
  .ring { width: 112px; height: 112px; } .ring > div { width: 88px; height: 88px; } .ring b { font-size: 22px; }
}

/* ── upload ───────────────────────────────────────────── */
.drop { border: 1.5px dashed #CBD2DA; border-radius: var(--r); padding: 26px 16px; text-align: center; background: var(--head); }
.drop .ic { width: 52px; height: 52px; border-radius: 14px; margin: 0 auto 12px; display: grid; place-items: center; }
.drop .row { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 14px; }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 10px; margin: 14px 0 0; }
.thumbs:empty { display: none; }
.thumbs figure { margin: 0; position: relative; }
.thumbs img, .thumbs .pdf { width: 100%; aspect-ratio: 3/4; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); background: var(--head); display: grid; place-items: center; font-weight: 700; color: var(--slate); }
.thumbs button { position: absolute; top: 5px; right: 5px; width: 24px; height: 24px; border-radius: 50%; border: 0; background: rgba(22,34,47,.75); color: #fff; cursor: pointer; font-size: 14px; line-height: 1; }
.thumbs figcaption { font-size: 11px; text-align: center; color: var(--slate); margin-top: 4px; font-weight: 600; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.steps li { display: flex; gap: 12px; align-items: flex-start; font-size: 13px; }
.steps li .n { width: 26px; height: 26px; border-radius: 50%; background: var(--tint-navy); display: grid; place-items: center; font-weight: 700; font-size: 12px; flex: none; }

/* waiting */
.wait { text-align: center; padding: 40px 20px; }
.spin { width: 44px; height: 44px; border-radius: 50%; border: 4px solid var(--tint-navy); border-top-color: var(--amber); margin: 0 auto 16px; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spin { animation: none; } }

/* ── review ───────────────────────────────────────────── */
.qpick { display: flex; gap: 8px; flex-wrap: wrap; padding: 14px 20px; border-bottom: 1px solid var(--line-2); }
.qpick a { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; padding: 7px 12px; border: 1px solid var(--line); border-radius: 10px; font-weight: 600; font-size: 13px; background: var(--surface); }
.qpick a.on { background: var(--navy); color: #fff; border-color: var(--navy); }
.grp { border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); margin-bottom: 16px; overflow: hidden; }
.grp > header { background: var(--head); padding: 12px 18px; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; border-bottom: 1px solid var(--line); }
.grp > header .right { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; padding: 16px 18px; border-bottom: 1px solid var(--line-2); }
.item:last-child { border-bottom: 0; }
.item.done { background: #FCFCFB; }
.item.done .ans { opacity: .7; }
.item .ctl { display: flex; gap: 8px; align-items: center; }
.item .ctl input[type=number] { width: 78px; }
.item .ctl input[type=text] { width: 200px; }
.item .state { font-size: 12px; font-weight: 700; color: var(--green-ink); min-width: 64px; }
.pages { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.pages img { width: 100%; border: 1px solid var(--line); border-radius: 8px; display: block; }
fieldset.part { border: 1px solid var(--line); border-radius: var(--r); margin: 0 0 14px; padding: 6px 16px 16px; }
fieldset.part legend { font-weight: 700; font-size: 13px; padding: 0 6px; }
@media (max-width: 760px) {
  .item { grid-template-columns: 1fr; }
  .item .ctl { flex-wrap: wrap; }
  .item .ctl input[type=text] { width: 100%; }
}

/* printed / saved-as-PDF result report */
@media print {
  .side, .mtop, .mnav, .top .right, .no-print, form, .alert.info { display: none !important; }
  .shell { display: block; background: none; }
  body { background: #fff; font-size: 12px; }
  .top { position: static; border: 0; padding: 0 0 8px; height: auto; }
  .content { padding: 0; max-width: none; }
  .card { border-color: #ccc; }
  .top .crumb { display: none; }
  .score-hd .ring { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .qrow .top-line { break-inside: avoid; break-after: avoid; }
  .qrow .box-soft { display: none; }
  .pts li { break-inside: avoid; }
  .pages { display: none; }
  details > summary, .qrow summary { display: none !important; }
  .print-only { display: block !important; }
}
.print-only { display: none; }

/* ── phones and small tablets ─────────────────────────── */
.cols > *, .stats > *, .grid2 > * { min-width: 0; }
@media (max-width: 900px) {
  .top { gap: 10px 12px; }
  .top h1 { font-size: 18px; width: 100%; order: 2; }
  .top .crumb { order: 1; }
  .top > .chip { order: 3; }
  .top .right { order: 4; margin-left: 0; width: 100%; flex-wrap: wrap; }
  .top .right:empty { display: none; }
  .top .who { display: none; }
  .top .right .btn, .top .right form { flex: 1 1 auto; }
  .top .right form .btn { width: 100%; }
}
@media (max-width: 640px) {
  body { font-size: 14px; }
  .content { padding: 14px 12px 96px; }
  .hello { font-size: 18px; margin-bottom: 12px; }
  .stats { grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
  .stat { padding: 12px; gap: 10px; align-items: flex-start; flex-direction: column; }
  .stat .ic { width: 34px; height: 34px; border-radius: 9px; }
  .stat .ic svg { width: 18px; height: 18px; }
  .stat .k { font-size: 12px; }
  .stat .v { font-size: 18px; }
  .stat .v small { display: block; font-size: 12px; }
  .card { margin-bottom: 14px; }
  .card > .hd { padding: 14px 16px; }
  .card > .bd { padding: 14px 16px; }
  .tbl th { padding: 10px 12px; }
  .tbl td { padding: 12px; font-size: 13px; }
  .tabs { padding: 0 4px; }
  .tabs a, .tabs button { padding: 12px 6px; margin: 0 2px; font-size: 12px; }
  .qpick { flex-wrap: nowrap; overflow-x: auto; padding: 12px 16px; -webkit-overflow-scrolling: touch; }
  .qpick a { flex: none; }
  .chart { height: 200px; grid-template-columns: 28px 1fr; }
  .chart .plot { gap: 8px; }
  .feed li { padding: 14px 16px; }
  .grp > header, .item { padding: 12px 14px; }
  .score-hd { gap: 16px; }
  .score-hd .facts { grid-template-columns: 1fr 1fr; gap: 12px; }
  .alert { font-size: 12px; }
}
.auth .brandrow .mark-tile { color: #fff; }
