/* Тэлмэн. Өнгөний загварыг хэрэглэгч сонгоно: <html data-mode="light|dark|auto" data-accent="...">.
   Интернэтгүй ч ажиллахаар системийн фонт ашиглана. */
:root {
  /* Цайвар суурь */
  --bg: #F7F8FA; --surface: #FFFFFF; --sunk: #F0F2F5; --ink: #1A1D21; --muted: #5E6570; --line: #E3E6EA;
  --good: #23784A; --good-soft: #E2F3E9; --warn: #A15F00; --warn-soft: #FCF1DE; --crit: #B3261E; --crit-soft: #FCE8E6;
  /* Өнгө (анхдагч: цэнхэр) — цайвар ба бараан горимын хувилбар */
  --acc-l: #1F6FEB; --acc-d: #6CA7FF;
  --accent: var(--acc-l); --accent-ink: #FFFFFF;
  --f-ui: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --f-num: Consolas, "SFMono-Regular", Menlo, "DejaVu Sans Mono", monospace;
  --r: 8px;
  color-scheme: light;
}
:root[data-accent="teal"]     { --acc-l: #0E7C6B; --acc-d: #4CC4B0; }
:root[data-accent="brown"]    { --acc-l: #8A5A2B; --acc-d: #D9A86C; }
:root[data-accent="wine"]     { --acc-l: #7A2433; --acc-d: #E07A8B; }
:root[data-accent="violet"]   { --acc-l: #6646D6; --acc-d: #A996FF; }
:root[data-accent="graphite"] { --acc-l: #3D4757; --acc-d: #AEB8C6; }
/* Бараан горим: хар биш, зөөлөн саарал-хөх суурь */
:root[data-mode="dark"] {
  --bg: #1B1E23; --surface: #23272E; --sunk: #2C313A; --ink: #E8EAED; --muted: #A4ABB6; --line: #363C46;
  --good: #5DBB86; --good-soft: #1F3A2B; --warn: #E3A44B; --warn-soft: #3D311C; --crit: #F0756B; --crit-soft: #42241F;
  --accent: var(--acc-d); --accent-ink: #12151A;
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root[data-mode="auto"] {
    --bg: #1B1E23; --surface: #23272E; --sunk: #2C313A; --ink: #E8EAED; --muted: #A4ABB6; --line: #363C46;
    --good: #5DBB86; --good-soft: #1F3A2B; --warn: #E3A44B; --warn-soft: #3D311C; --crit: #F0756B; --crit-soft: #42241F;
    --accent: var(--acc-d); --accent-ink: #12151A;
    color-scheme: dark;
  }
}
:root { --accent-soft: color-mix(in srgb, var(--accent) 14%, var(--surface)); }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--ink); font: 14px/1.45 var(--f-ui); }
.boot { padding: 40px; color: var(--muted); }
.wrap { max-width: 1240px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }

header.top { background: var(--surface); border-bottom: 1px solid var(--line); }
header.top .wrap { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding-block: 10px; }
.brand { font-weight: 700; letter-spacing: .14em; color: var(--accent); font-size: 17px; text-decoration: none; }
.lookup { flex: 1 1 220px; max-width: 360px; display: flex; gap: 6px; }
.lookup input { flex: 1; }
.who { margin-left: auto; display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 13px; }
nav.tabs { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
nav.tabs .wrap { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
nav.tabs a { padding: 11px 14px; color: var(--muted); text-decoration: none; white-space: nowrap; border-bottom: 2px solid transparent; font-weight: 500; }
nav.tabs a:hover { color: var(--ink); }
nav.tabs a.on { color: var(--accent); border-bottom-color: var(--accent); }
main.wrap { padding-block: 22px 72px; display: flex; flex-direction: column; gap: 18px; }

h1 { font-size: 22px; margin: 0; font-weight: 600; }
h2 { font-size: 15px; margin: 0; font-weight: 600; }
h3 { font-size: 13px; margin: 0; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.sub { color: var(--muted); margin: 4px 0 0; max-width: 70ch; }
.head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.panel.soft { background: var(--sunk); border-style: dashed; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 18px; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 13px 15px; display: flex; flex-direction: column; gap: 3px; }
.kpi .l { font-size: 11.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.kpi .v { font-family: var(--f-num); font-size: 20px; font-variant-numeric: tabular-nums; }
.kpi .d { font-size: 12.5px; color: var(--muted); }
.up { color: var(--good); } .down { color: var(--crit); }
.num, td.n, th.n { font-family: var(--f-num); font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.tbox { overflow-x: auto; min-width: 0; }
table { border-collapse: collapse; width: 100%; font-size: 13.5px; }
th { font-weight: 500; color: var(--muted); font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
tr.click { cursor: pointer; } tr.click:hover td { background: var(--sunk); }
tr.off td { color: var(--muted); }
tr.hl td { background: var(--accent-soft); }
.code { font-family: var(--f-num); font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.pill { display: inline-block; padding: 2px 8px; border-radius: 99px; font-size: 12px; font-weight: 500; background: var(--sunk); color: var(--muted); white-space: nowrap; }
.pill.good { background: var(--good-soft); color: var(--good); } .pill.warn { background: var(--warn-soft); color: var(--warn); }
.pill.crit { background: var(--crit-soft); color: var(--crit); } .pill.acc { background: var(--accent-soft); color: var(--accent); }
.btn { font: inherit; font-weight: 500; border: 1px solid var(--line); background: var(--surface); color: var(--ink); padding: 7px 14px; border-radius: 6px; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.btn:hover { background: var(--sunk); }
.btn.pri { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.pri:hover { filter: brightness(1.08); }
.btn.danger { color: var(--crit); }
.btn.sm { padding: 3px 10px; font-size: 13px; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
input, select, textarea { max-width: 100%; font: inherit; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 7px 10px; min-width: 0; }
input[type=number] { font-family: var(--f-num); }
textarea { width: 100%; min-height: 70px; resize: vertical; }
label.f { display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; color: var(--muted); }
label.f.wide { grid-column: 1 / -1; }
.form { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { font: inherit; font-size: 13px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); padding: 5px 12px; border-radius: 99px; cursor: pointer; }
.chip.on { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row.end { justify-content: flex-end; }
.row.between { justify-content: space-between; }
.muted { color: var(--muted); }
.note { font-size: 12.5px; color: var(--muted); }
.err { color: var(--crit); font-size: 13px; }
.empty { color: var(--muted); padding: 18px 0; text-align: center; }
.steps { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }

/* Размерын шатлал */
.matrix td, .matrix th { text-align: center; padding: 5px 3px; min-width: 46px; }
.matrix th:first-child, .matrix td:first-child { text-align: left; padding-left: 0; min-width: 84px; }
.cell { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 30px; border-radius: 5px; background: var(--sunk); font-family: var(--f-num); font-variant-numeric: tabular-nums; }
.cell.z { background: var(--crit-soft); color: var(--crit); font-weight: 600; }
.cell.o { background: var(--warn-soft); color: var(--warn); font-weight: 600; }
.cell.neg { background: var(--crit); color: #fff; font-weight: 600; }
.matrix input { width: 50px; text-align: center; padding: 5px 2px; }
.matrix input.diff { border-color: var(--warn); background: var(--warn-soft); }
.matrix input.flash { border-color: var(--good); background: var(--good-soft); }

/* Графикууд */
.bars { display: flex; flex-direction: column; gap: 10px; }
.bar { display: grid; grid-template-columns: 90px 1fr auto; gap: 10px; align-items: center; font-size: 13px; }
.bar .track { height: 10px; background: var(--sunk); border-radius: 99px; overflow: hidden; }
.bar .fill { height: 100%; background: var(--accent); border-radius: 99px; }
.cols { display: flex; align-items: flex-end; gap: 4px; height: 170px; padding-top: 18px; overflow-x: auto; }
.col { flex: 1 0 24px; display: flex; flex-direction: column; align-items: center; gap: 4px; height: 100%; justify-content: flex-end; min-width: 24px; }
.col .c { width: 100%; background: var(--accent); border-radius: 3px 3px 0 0; min-height: 2px; opacity: .85; }
.col .t { font-family: var(--f-num); font-size: 11px; color: var(--muted); white-space: nowrap; }
.col .s { font-family: var(--f-num); font-size: 11.5px; }
.alert { display: flex; gap: 10px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid var(--line); }
.alert:last-child { border-bottom: 0; }
.alert .w { flex: 1; min-width: 0; }

.toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: 22px; background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 8px; font-size: 13.5px; z-index: 50; max-width: calc(100% - 32px); box-shadow: 0 6px 20px rgba(0,0,0,.2); }
.toast.bad { background: var(--crit); color: #fff; }
dialog { border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); max-width: 440px; width: calc(100% - 32px); padding: 20px; }
dialog::backdrop { background: rgba(0,0,0,.35); }
dialog p { margin: 0 0 16px; white-space: pre-line; }

/* Нэвтрэх */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 16px; }
.auth .panel { width: 100%; max-width: 380px; }
.auth .brand { font-size: 22px; }

/* Шошго */
.labels { display: grid; grid-template-columns: repeat(auto-fill, 50mm); gap: 3mm; }
.label { width: 50mm; height: 30mm; border: 1px dashed var(--line); padding: 1.5mm 2mm; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; background: #fff; color: #000; }
.label .ln { font-size: 8.5pt; line-height: 1.15; display: flex; justify-content: space-between; gap: 4px; }
.label .ln b { font-size: 10pt; }
.label .ean { width: 100%; height: 16mm; }
.label .txt { font-family: var(--f-num); font-size: 9pt; text-align: center; }
/* Хөнгөлөлтийн карт */
.big { font-family: var(--f-num); font-size: 44px; line-height: 1; color: var(--accent); font-variant-numeric: tabular-nums; }
.big2 { font-family: var(--f-num); font-size: 26px; color: var(--accent); font-variant-numeric: tabular-nums; }
.calc { display: flex; flex-direction: column; gap: 6px; padding: 10px 0; border-block: 1px solid var(--line); }
.calc:empty { display: none; }
.prog { display: flex; flex-direction: column; gap: 6px; }
.prog .track { height: 10px; background: var(--sunk); border-radius: 99px; overflow: hidden; }
.prog .fill { height: 100%; background: var(--accent); border-radius: 99px; }
.prog p { margin: 0; }
.cardp { width: 85.6mm; height: 54mm; border-radius: 3.2mm; background: var(--acc-l); color: #fff; padding: 4mm 5mm; display: flex; flex-direction: column; justify-content: space-between; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.cardp-top { display: flex; justify-content: space-between; align-items: baseline; font-size: 8pt; }
.cardp-top b { letter-spacing: .18em; font-size: 12pt; }
.cardp-name { font-size: 11pt; font-weight: 600; }
.cardp .ean { background: #fff; border-radius: 1.5mm; padding: 1mm 2mm; width: 48mm; height: 19mm; align-self: flex-start; }
.cardp .txt { background: #fff; color: #000; font-family: var(--f-num); padding: 2mm; border-radius: 1.5mm; }
@media print {
  @page { margin: 6mm; }
  body { background: #fff; }
  .noprint, header.top, nav.tabs { display: none !important; }
  main.wrap { padding: 0; max-width: none; }
  .label { border-color: #ccc; break-inside: avoid; }
}
@media (max-width: 520px) {
  .who span.name { display: none; }
  .kpi .v { font-size: 18px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* Өнгөний загвар сонгогч */
.swatches { display: flex; gap: 10px; flex-wrap: wrap; }
.swatch { font: inherit; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); cursor: pointer; min-width: 86px; }
.swatch i { width: 34px; height: 34px; border-radius: 50%; display: block; }
.swatch.on { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent); }
.modes { display: flex; gap: 10px; flex-wrap: wrap; }
.mode { font: inherit; border: 1px solid var(--line); border-radius: 10px; padding: 8px; background: var(--surface); color: var(--ink); cursor: pointer; display: flex; flex-direction: column; gap: 6px; align-items: center; }
.mode.on { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent); }
.mode .pv { width: 96px; height: 56px; border-radius: 6px; border: 1px solid rgba(0,0,0,.12); display: grid; grid-template-rows: 12px 1fr; overflow: hidden; }
.mode .pv b { display: block; }
/* Ангилал удирдах */
.catbox { display: flex; flex-direction: column; gap: 10px; }
.subrow { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; padding: 6px 0; border-bottom: 1px solid var(--line); }
.subrow:last-child { border-bottom: 0; }
.subrow input[type=text] { flex: 1 1 160px; }
.catpath { color: var(--muted); font-size: 12.5px; }
td .catpath { white-space: nowrap; }
.selbar { position: sticky; bottom: 12px; background: var(--surface); border: 1px solid var(--accent); border-radius: var(--r); padding: 10px 14px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; box-shadow: 0 6px 20px rgba(0,0,0,.12); }

/* Барааны зураг, тайлбар */
.thumb { border-radius: 6px; object-fit: cover; background: #fff; border: 1px solid var(--line); display: inline-block; vertical-align: middle; flex: none; cursor: zoom-in; }
.thumb.ph { background: var(--sunk); border-style: dashed; cursor: default; }
.mhead { display: grid; grid-template-columns: minmax(0, 260px) minmax(0, 1fr); gap: 18px; align-items: start; }
@media (max-width: 680px) { .mhead { grid-template-columns: minmax(0, 1fr); } .mimg { max-width: 320px; } }
.mimg { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.mimg img { width: 100%; max-width: 100%; aspect-ratio: 1; object-fit: contain; background: #fff; border: 1px solid var(--line); border-radius: var(--r); cursor: zoom-in; display: block; }
.mimg .note { margin: 0; }
.ph-big { aspect-ratio: 1; max-width: 100%; border: 1px dashed var(--line); border-radius: var(--r); display: grid; place-items: center; color: var(--muted); background: var(--sunk); text-align: center; padding: 12px; }
.mimg.drag img, .mimg.drag .ph-big { outline: 3px dashed var(--accent); outline-offset: 3px; }
.panel.comment { background: var(--accent-soft); border-color: color-mix(in srgb, var(--accent) 35%, var(--line)); }
.cmt-text { white-space: pre-line; font-size: 15px; margin: 0; overflow-wrap: anywhere; }
.cmt-cell { max-width: 240px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--muted); font-size: 13px; }
.imgdlg { max-width: min(920px, calc(100% - 32px)); }
.imgdlg img { display: block; max-width: 100%; max-height: 78vh; margin: 12px auto 0; background: #fff; border-radius: 6px; }

/* Хайсан размерыг тодруулах */
.matrix th.hlsize { color: var(--accent); }
.matrix td.hlsize, .matrix th.hlsize { background: var(--accent-soft); }
.matrix td.hlsize .cell { box-shadow: 0 0 0 2px var(--accent); }
.mhead.only-cmt { grid-template-columns: minmax(0, 1fr); }
.mhead.only-img { grid-template-columns: minmax(0, 260px); }

/* Тойм: ангилал → дэд ангилал */
.bars.cat { gap: 7px; }
.bars.cat .bar { grid-template-columns: minmax(110px, 150px) 1fr auto; }
.bars.cat .bar.sub { font-size: 12.5px; }
.bars.cat .bar.sub > span:first-child { padding-left: 14px; color: var(--muted); }
.bars.cat .bar.sub .track { height: 7px; }
.bars.cat .bar.sub .fill { opacity: .55; }
.bars.cat .bar:not(.sub):not(:first-child) { margin-top: 6px; }
.bars.brand .bar { grid-template-columns: minmax(120px, 180px) 1fr auto; }

/* ---------- Утас (iPhone, Android) ---------- */
.steps { margin: 8px 0 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.hint { display: flex; gap: 12px; align-items: center; background: var(--accent-soft); border: 1px solid var(--accent); border-radius: var(--r); padding: 12px 14px; }
.hint .w { flex: 1; min-width: 0; }
nav.tabs .ic, .navmore { display: none; }
nav.tabs a { display: inline-flex; }
dialog.sheet .menu-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 16px 0; }
dialog.sheet .menu-list a { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 6px; border: 1px solid var(--line); border-radius: var(--r); color: var(--ink); text-decoration: none; font-size: 13px; text-align: center; }
dialog.sheet .menu-list a.on { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
dialog.sheet .menu-list .ic { width: 24px; height: 24px; }
.mlab { display: none; }
@media (max-width: 700px) {
  body { -webkit-text-size-adjust: 100%; }
  header.top { position: sticky; top: 0; z-index: 6; padding-top: env(safe-area-inset-top, 0px); }
  header.top .wrap { flex-wrap: nowrap; gap: 10px; padding-block: 8px; }
  .brand { font-size: 15px; letter-spacing: .08em; }
  .lookup { max-width: none; flex: 1 1 auto; min-width: 0; }
  .lookup input { width: 100%; min-width: 0; }
  select { width: 100%; }
  .row > select, .selbar select, td select { width: auto; }
  .row > label, label.row { max-width: 100%; min-width: 0; }
  label.row select { flex: 1 1 0; min-width: 0; }
  .who { display: none; }
  nav.tabs { position: fixed; top: auto; bottom: 0; left: 0; right: 0; border-bottom: 0; border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom, 0px); z-index: 8; }
  nav.tabs .wrap { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; padding-inline: max(4px, env(safe-area-inset-left, 0px)) max(4px, env(safe-area-inset-right, 0px)); overflow: visible; }
  nav.tabs a, .navmore { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 7px 2px 6px; font: inherit; font-size: 11px; font-weight: 500; color: var(--muted); background: none; border: 0; border-top: 2px solid transparent; text-decoration: none; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  nav.tabs a span, .navmore span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
  nav.tabs a.on, .navmore.on { color: var(--accent); border-top-color: var(--accent); border-bottom-color: transparent; }
  nav.tabs a.more { display: none; }
  nav.tabs .ic { display: block; width: 23px; height: 23px; }
  main.wrap { padding-block: 16px calc(88px + env(safe-area-inset-bottom, 0px)); gap: 14px; }
  .toast { bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
  .selbar { bottom: calc(70px + env(safe-area-inset-bottom, 0px)); }
  dialog.sheet { margin: auto 0 0; width: 100%; max-width: none; border-radius: 16px 16px 0 0; padding: 18px max(18px, env(safe-area-inset-left, 0px)) calc(18px + env(safe-area-inset-bottom, 0px)); }
  /* iOS оруулах талбарт дарахад томруулахгүй байхын тулд 16px */
  input, select, textarea { font-size: 16px; }
  .btn { min-height: 40px; }
  .btn.sm { min-height: 34px; }
  .panel { padding: 14px; }
  .grid2 { grid-template-columns: minmax(0, 1fr); }
  h1 { font-size: 20px; }
  /* Бараа жагсаалт: карт хэлбэр */
  table.mtbl thead, table.mtbl .c-pick, table.mtbl .c-cost, table.mtbl .c-margin, table.mtbl .c-brand { display: none; }
  table.mtbl, table.mtbl tbody { display: block; }
  table.mtbl tr { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; grid-template-areas: "img name qty" "img code price" "img cat st" "img sz sz" "img cmt cmt"; column-gap: 12px; row-gap: 2px; padding: 10px 0; border-bottom: 1px solid var(--line); align-items: center; }
  table.mtbl td { display: block; padding: 0; border: 0; min-width: 0; }
  table.mtbl td:empty { display: none; }
  table.mtbl .c-img { grid-area: img; align-self: start; padding: 0 !important; }
  table.mtbl .c-name { grid-area: name; font-weight: 600; }
  table.mtbl .c-code { grid-area: code; font-size: 12px; color: var(--muted); }
  table.mtbl .c-cat { grid-area: cat; font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  table.mtbl .c-qty { grid-area: qty; font-weight: 600; }
  table.mtbl .c-price { grid-area: price; font-size: 13px; }
  table.mtbl .c-st { grid-area: st; justify-self: end; }
  table.mtbl .c-sz { grid-area: sz; text-align: left; font-size: 13px; }
  table.mtbl .c-cmt { grid-area: cmt; }
  table.mtbl .c-cmt .cmt-cell { max-width: none; }
  .mlab { display: inline; }
  table.mtbl tr:hover td, table.mtbl tr.hl td { background: none; }
}
