/* CIIC TCON Job Board – shared styles (candidate site + consultant portal).
   Colours follow the approved mock-up. */
:root {
  --brand: #0A6B66; --brand-dark: #074E4A; --brand-tint: #E3F1F0; --brand-bright: #5FC4BC;
  --ink: #12263A; --ink-2: #33414F; --muted: #4A5868;
  --line: #D9DEE4; --line-2: #B9C2CC; --bg: #F4F6F8; --panel: #FFFFFF; --soft: #EEF1F4;
  --warn: #8A2C0D; --warn-tint: #FDEDE3; --note-tint: #FFF1C7;
  --radius: 8px;
  --font: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, Consolas, monospace;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.5 var(--font); }
a { color: var(--brand); } a:hover { color: var(--brand-dark); }
h1, h2, h3 { line-height: 1.25; margin: 0 0 .5em; }
h1 { font-size: 26px; } h2 { font-size: 19px; } h3 { font-size: 16px; }
p { margin: 0 0 .8em; }
.mono { font-family: var(--mono); }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.nowrap { white-space: nowrap; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- header / footer */
.topbar { background: var(--panel); border-bottom: 1px solid var(--line); }
.topbar .inner { max-width: 1200px; margin: 0 auto; padding: 10px 20px; display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand .logo { background: var(--brand); color: #fff; font-weight: 700; border-radius: 6px; padding: 4px 8px; letter-spacing: .5px; }
.brand .name { font-weight: 600; } .brand .tag { font-size: 12px; color: var(--muted); display: block; }
.nav { display: flex; gap: 18px; flex: 1; } .nav a { text-decoration: none; color: var(--ink-2); font-weight: 500; }
.nav a.active, .nav a:hover { color: var(--brand); }
.user { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--brand-tint); color: var(--brand-dark); display: grid; place-items: center; font-weight: 600; font-size: 12px; }
.footer { max-width: 1200px; margin: 40px auto 0; padding: 20px; color: var(--muted); font-size: 13px; display: flex; gap: 18px; flex-wrap: wrap; border-top: 1px solid var(--line); }
.footer .version { margin-left: auto; font-family: ui-monospace, Consolas, monospace; font-size: 12px; }
.consultant .topbar { background: var(--ink); border: 0; } .consultant .topbar a, .consultant .brand { color: #fff; }
.consultant .brand .tag { color: var(--line-2); } .consultant .user { color: #fff; } .consultant .nav a { color: #C9D1D9; } .consultant .nav a.active { color: var(--brand-bright); }

main { max-width: 1200px; margin: 0 auto; padding: 24px 20px; }
.hero { background: var(--brand); color: #fff; }
.hero .inner { max-width: 1200px; margin: 0 auto; padding: 28px 20px; }
.hero p { color: #DCEFED; }
.search { display: flex; gap: 8px; max-width: 640px; }
.search input { flex: 1; }

/* ---------- layout */
.layout { display: grid; grid-template-columns: 280px 1fr; gap: 24px; align-items: start; }
.layout-wide { display: grid; grid-template-columns: 1fr 320px; gap: 24px; align-items: start; }
.layout > *, .layout-wide > * { min-width: 0; }
@media (max-width: 900px) {
  .layout, .layout-wide { grid-template-columns: 1fr; }
  .topbar .inner { flex-wrap: wrap; gap: 6px 14px; padding: 10px 14px; }
  .brand .tag, .user .email { display: none; }
  .user { margin-left: auto; }
  .nav { order: 3; flex: 1 1 100%; overflow-x: auto; gap: 16px; font-size: 14px; padding-bottom: 2px; }
  main { padding: 16px 14px; }
  h1 { font-size: 22px; }
  .steps { display: flex; overflow-x: auto; gap: 2px; }
  .steps li:not(.current) .lbl { display: none; }
  .steps .lbl { white-space: nowrap; }
  .wizard-actions .btn { flex: 1 1 auto; justify-content: center; }
}
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.panel + .panel { margin-top: 16px; }
.panel h2:first-child { margin-top: 0; }
.stack > * + * { margin-top: 12px; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.spread { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; }
.grid2.aligned { row-gap: 0; }
.grid2.aligned > div { display: grid; grid-row: span 3; grid-template-rows: subgrid; align-content: start; }
.grid2.aligned > div > label { align-self: end; }
@media (max-width: 700px) { .grid2.aligned { row-gap: 14px; } .grid2.aligned > div { display: block; grid-row: auto; } }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px 18px; }
@media (max-width: 700px) { .grid2, .grid3 { grid-template-columns: 1fr; } }
.span2 { grid-column: 1 / -1; }

/* ---------- forms */
label, .label { display: block; font-weight: 500; font-size: 14px; margin-bottom: 4px; color: var(--ink-2); }
.req { color: var(--warn); }
input[type=text], input[type=email], input[type=tel], input[type=date], input[type=month], input[type=number], input[type=search], select, textarea {
  width: 100%; font: inherit; color: var(--ink); background: #fff; border: 1px solid var(--line-2); border-radius: 6px; padding: 8px 10px; }
textarea { min-height: 90px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--brand-bright); outline-offset: 0; border-color: var(--brand); }
.check { display: flex; gap: 8px; align-items: flex-start; font-weight: 400; }
.check input { margin-top: 4px; }
.radios { display: flex; gap: 16px; flex-wrap: wrap; } .radios label { font-weight: 400; display: flex; gap: 6px; align-items: center; }
.hint { font-size: 13px; color: var(--muted); margin-top: 4px; }
.field-error { font-size: 13px; color: var(--warn); margin-top: 4px; }
.hkid { display: flex; align-items: center; gap: 6px; } .hkid input:first-child { flex: 1; } .hkid input:last-child { width: 48px; text-align: center; }
fieldset { border: 0; padding: 0; margin: 0; }

.btn { display: inline-flex; align-items: center; gap: 6px; font: inherit; font-weight: 600; border-radius: 6px; padding: 8px 16px; border: 1px solid var(--brand);
  background: var(--brand); color: #fff; cursor: pointer; text-decoration: none; line-height: 1.3; }
.btn:hover { background: var(--brand-dark); color: #fff; }
.btn.secondary { background: #fff; color: var(--brand); } .btn.secondary:hover { background: var(--brand-tint); }
.btn.ghost { background: transparent; border-color: transparent; color: var(--brand); padding-left: 4px; padding-right: 4px; }
.btn.danger { background: #fff; color: var(--warn); border-color: var(--warn); }
.btn.small { padding: 4px 10px; font-size: 13px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.linkbtn { background: none; border: 0; color: var(--brand); cursor: pointer; font: inherit; padding: 0; text-decoration: underline; }

/* ---------- chips, badges, alerts */
.chip { display: inline-block; font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: var(--brand-tint); color: var(--brand-dark); }
.chip.grey { background: var(--soft); color: var(--ink-2); } .chip.warn { background: var(--warn-tint); color: var(--warn); }
.chip.note { background: var(--note-tint); color: #6B4E00; } .chip.dark { background: var(--ink); color: #fff; }
.alert { border-radius: var(--radius); padding: 12px 14px; margin-bottom: 16px; border: 1px solid; }
.alert.info { background: var(--brand-tint); border-color: #C6E2DF; } .alert.warn { background: var(--warn-tint); border-color: #F2C9B4; color: var(--warn); }
.alert.note { background: var(--note-tint); border-color: #EDD98A; }
.alert ul { margin: 6px 0 0; padding-left: 20px; }

/* ---------- filters + job cards */
.filters h3 { font-size: 14px; text-transform: uppercase; letter-spacing: .4px; color: var(--muted); margin: 16px 0 8px; }
.filters h3:first-child { margin-top: 0; }
.filters .opts { max-height: 220px; overflow: auto; border: 1px solid var(--line); border-radius: 6px; padding: 6px 8px; }
.filters .opts label { font-weight: 400; display: flex; gap: 8px; align-items: center; font-size: 14px; margin: 2px 0; }
.filters .opts .count { margin-left: auto; color: var(--muted); font-size: 12px; }
.filters .opts label.role-opt { align-items: flex-start; margin: 4px 0; }
.filters .opts label.role-opt input { margin-top: 3px; }
.filters .opts .role-long { display: block; font-size: 12px; color: var(--muted); line-height: 1.3; }
[data-swap].loading > section { opacity: .55; transition: opacity .15s; }
.job { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.job + .job { margin-top: 12px; }
.job h3 { margin: 6px 0 10px; font-size: 17px; } .job h3 a { color: var(--ink); text-decoration: none; } .job h3 a:hover { color: var(--brand); }
.job-summary { margin: -4px 0 12px; color: var(--muted); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px 16px; font-size: 14px; }
.facts dt { color: var(--muted); font-size: 12px; } .facts dd { margin: 0; font-weight: 500; }
@media (max-width: 700px) { .facts { grid-template-columns: 1fr 1fr; } }
.skills-line { margin-top: 10px; font-size: 13px; color: var(--ink-2); }
.closing { color: var(--warn); font-weight: 600; font-size: 13px; }
.pager { display: flex; gap: 6px; margin-top: 16px; }

/* ---------- tables */
table.data { width: 100%; border-collapse: collapse; background: #fff; font-size: 14px; }
table.data th, table.data td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.data th { font-size: 12px; text-transform: uppercase; letter-spacing: .3px; color: var(--muted); background: var(--soft); }
table.data tr:hover td { background: #FAFBFC; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
dl.kv { display: grid; grid-template-columns: 220px 1fr; gap: 6px 16px; margin: 0; font-size: 14px; }
dl.kv dt { color: var(--muted); } dl.kv dd { margin: 0; white-space: pre-wrap; }

/* ---------- application wizard */
.steps { list-style: none; margin: 0; padding: 0; }
.steps li a, .steps li span { display: flex; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 6px; text-decoration: none; color: var(--ink-2); }
.steps li .num { width: 24px; height: 24px; line-height: 1; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; font-size: 12px; font-weight: 600; flex: none; }
.steps li.current a { background: var(--brand-tint); color: var(--brand-dark); font-weight: 600; }
.steps li.current .num { background: var(--brand); color: #fff; border-color: var(--brand); }
.steps li.issue .num { border-color: var(--warn); color: var(--warn); }
.steps li.done .num { background: var(--brand-tint); border-color: var(--brand); color: var(--brand); }
.entry { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; margin-bottom: 14px; background: #FCFDFD; }
.entry .entry-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; font-weight: 600; }
.proof { border: 1px dashed var(--line-2); border-radius: 6px; padding: 10px 12px; background: #fff; }
.proof .file { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; font-size: 14px; }
.wizard-actions { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }
.idbox { font-family: var(--mono); font-size: 26px; font-weight: 600; letter-spacing: 1px; background: var(--brand-tint); color: var(--brand-dark); padding: 12px 18px; border-radius: var(--radius); display: inline-block; }
.status-meets { color: var(--brand); font-weight: 600; } .status-below { color: var(--warn); font-weight: 600; }

/* ---------- consultant review */
.section-review { border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 14px; background: #fff; }
.section-review > header { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 14px; background: var(--soft); border-bottom: 1px solid var(--line); border-radius: var(--radius) var(--radius) 0 0; }
.section-review > .body { padding: 12px 14px; }
.section-review.ok > header { background: var(--brand-tint); } .section-review.issue > header { background: var(--warn-tint); }
.timeline { list-style: none; padding: 0; margin: 0; font-size: 13px; } .timeline li { padding: 6px 0; border-bottom: 1px solid var(--soft); }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 16px; }
.stat .n { font-size: 24px; font-weight: 700; } .stat .l { font-size: 13px; color: var(--muted); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 18px; }

/* ---------- WhatsApp "chat with our consultant" */
:root { --wa: #25D366; --wa-dark: #128C4B; }
.wa-icon { flex: none; }
.wa-fab { position: fixed; right: 20px; bottom: 20px; z-index: 50; display: inline-flex; align-items: center; gap: 8px;
  background: var(--wa); color: #fff; text-decoration: none; font-weight: 600; border-radius: 999px; padding: 14px;
  box-shadow: 0 6px 18px rgba(18, 38, 58, .25); transition: transform .15s ease, background .15s ease; }
.wa-fab:hover, .wa-fab:focus-visible { background: var(--wa-dark); color: #fff; transform: translateY(-2px); }
.wa-fab .wa-icon { width: 28px; height: 28px; }
.wa-fab .wa-fab-label { max-width: 0; overflow: hidden; white-space: nowrap; transition: max-width .2s ease, margin .2s ease; }
.wa-fab:hover .wa-fab-label, .wa-fab:focus-visible .wa-fab-label { max-width: 260px; margin-right: 4px; }
.btn.wa { background: var(--wa); border-color: var(--wa); color: #fff; width: 100%; justify-content: center; }
.btn.wa:hover { background: var(--wa-dark); border-color: var(--wa-dark); color: #fff; }
.btn.wa-outline { background: #fff; border-color: var(--wa); color: var(--wa-dark); }
.btn.wa-outline:hover { background: #E8F8EE; color: var(--wa-dark); }
.btn .wa-icon { width: 16px; height: 16px; }
@media (max-width: 900px) {
  .wa-fab { right: 14px; bottom: 14px; padding: 12px; }
  body { padding-bottom: 72px; } /* keep page buttons clear of the floating button */
}
@media print { .wa-fab { display: none; } }
.wa-preview { background: #E8F8EE; border: 1px solid #BFE9CF; border-radius: 10px 10px 10px 2px; padding: 10px 12px; font-size: 14px; white-space: pre-wrap; word-break: break-word; }
/* Official WhatsApp logo: the green glyph on its own (unmodified, no background), large enough to catch the eye.
   The label appears beside it on hover / keyboard focus. */
.wa-fab.official { background: transparent; border: 0; padding: 0; box-shadow: none; gap: 10px; }
.wa-fab.official:hover, .wa-fab.official:focus-visible { background: transparent; transform: translateY(-3px); }
.wa-fab.official .wa-icon { width: 68px; height: 68px;
  /* white behind the see-through middle of the glyph only, so page text doesn't show through it; no box around the logo */
  background: radial-gradient(circle closest-side, #fff 88%, transparent 89%); }
.wa-fab.official .wa-fab-label { order: -1; background: #fff; color: var(--ink); border-radius: 999px; padding: 0; }
.wa-fab.official:hover .wa-fab-label, .wa-fab.official:focus-visible .wa-fab-label { padding: 8px 14px; margin-right: 0;
  border: 1px solid var(--line); box-shadow: 0 4px 14px rgba(18, 38, 58, .18); }
@media (max-width: 900px) { .wa-fab.official { padding: 0; } .wa-fab.official .wa-icon { width: 58px; height: 58px; } }
.btn.wa.official { background: #fff; border-color: var(--wa); color: var(--ink); }
.btn.wa.official:hover { background: #E8F8EE; color: var(--ink); }
img.wa-icon { object-fit: contain; }
.btn img.wa-icon { width: 18px; height: 18px; }

/* Money input with currency prefix, and a follow-up question indented under its checkbox */
.money { display: flex; align-items: center; gap: 8px; } .money span { color: var(--muted); font-weight: 500; }
.subq { border-left: 3px solid var(--brand-tint); padding-left: 14px; margin-top: -6px; }

/* Gap periods in the work history */
.entry.gap-entry { background: var(--soft); border-style: dashed; }
/* Anything marked hidden stays hidden, even if a layout class (grid, flex) sets display */
[hidden] { display: none !important; }
.entry.exam .entry-head .check { white-space: nowrap; }
/* 1.1: fixed academic sections, cross-checks, validate, consultant changes */
.alert.ok { background: #E7F4EC; border-color: #B9DEC6; color: #1C6B3A; }
.entry.fixed-entry { border-left: 4px solid var(--brand); }
.entry.fixed-entry .entry-head .check { white-space: nowrap; }
input.prefilled { background: var(--soft); color: var(--muted); }
.dim { opacity: .5; }
.dim input { background: var(--soft); cursor: not-allowed; }
.crosscheck { margin: -4px 0 10px; color: var(--muted); }
.crosscheck.bad { color: var(--warn); font-weight: 600; }
.validate-bar { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-top: 18px; padding: 12px 14px; border: 1px dashed var(--line); border-radius: var(--radius); background: var(--soft); }
.validate-bar .hint { margin: 0; }
.changed { background: #FFF6D6; box-shadow: inset 3px 0 0 #E0B400; }
.readonly-form h2 { margin-top: 26px; }
.readonly-form dl.kv { margin: 0; }
.readonly-form .group { margin: 12px 0 4px; font-weight: 600; }
.change-old { text-decoration: line-through; color: var(--muted); }
@media print {
  .topbar, .footer, .no-print, .wa-fab { display: none !important; }
  body { background: #fff; }
  .readonly-form h2 { break-after: avoid; }
}
.change-list { list-style: none; margin: 0; padding: 0; }
.change-list li { padding: 8px 0; border-top: 1px solid var(--line); overflow-wrap: anywhere; }
.readonly-form dd { overflow-wrap: anywhere; }
@media (max-width: 640px) {
  .readonly-form dl.kv { grid-template-columns: 1fr; }
  .readonly-form dl.kv dt { margin-top: 8px; font-size: 13px; }
  .readonly-form dl.kv dd { margin: 0; }
}
.validate-bar.needed { border: 2px solid var(--warn); background: var(--warn-tint); }
/* Logo image (when wwwroot/img/ciic-logo.* exists) */
.brand .logo-img { height: 32px; width: auto; display: block; }
.brand .logo-img + span { border-left: 1px solid var(--line); padding-left: 12px; }
.consultant .brand .logo-img { background: #fff; padding: 5px 8px; border-radius: 6px; height: 34px; box-sizing: border-box; }
.consultant .brand .logo-img + span { border-left: 0; padding-left: 0; }
@media (max-width: 640px) { .brand .logo-img { height: 26px; } .brand .logo-img + span .tag { display: none; } }
/* Pop-up banner */
.promo-backdrop { position: fixed; inset: 0; z-index: 1000; background: rgba(10, 22, 34, .62); display: flex; align-items: center; justify-content: center; padding: 16px; animation: promo-fade .2s ease-out; }
.promo-backdrop[hidden] { display: none !important; }
.promo { position: relative; width: min(460px, 100%); max-height: calc(100vh - 32px); overflow: auto; background: var(--panel); border-radius: 14px; box-shadow: 0 20px 60px rgba(0,0,0,.35); }
.promo img { display: block; width: 100%; height: auto; }
.promo-text { padding: 16px 20px 0; }
.promo-text h2 { margin: 0 0 6px; font-size: 20px; }
.promo-text p { margin: 0; white-space: pre-line; }
.promo-actions { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px 16px; }
.promo-actions .btn { width: 100%; justify-content: center; }
.promo-close { position: absolute; top: 8px; right: 8px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); color: var(--ink); font-size: 24px; line-height: 1; cursor: pointer; box-shadow: 0 1px 4px rgba(0,0,0,.25); }
.promo-close:focus-visible { outline: 3px solid var(--brand-bright); }
body.promo-open { overflow: hidden; }
@keyframes promo-fade { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .promo-backdrop { animation: none; } }
body.promo-open .wa-fab { display: none; }
/* Share a job */
.share { position: relative; display: inline-block; }
.share > summary { list-style: none; cursor: pointer; }
.share > summary::-webkit-details-marker { display: none; }
.share-menu { position: absolute; right: 0; bottom: calc(100% + 6px); z-index: 20; min-width: 180px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 8px 24px rgba(18,38,58,.16); padding: 6px; display: flex; flex-direction: column; }
.share-menu a, .share-menu button { display: flex; align-items: center; gap: 8px; padding: 9px 10px; border-radius: 6px; text-decoration: none; color: var(--ink); background: none; border: 0; font: inherit; font-size: 14px; text-align: left; cursor: pointer; }
.share-menu a:hover, .share-menu button:hover { background: var(--soft); }
.share-menu svg, .share-inline svg { width: 18px; height: 18px; }
.share-inline { display: flex; flex-wrap: wrap; gap: 8px; }
.share-inline .btn { display: inline-flex; align-items: center; gap: 6px; }
.inline-form { display: inline; margin: 0; }
.btn.danger-text { color: var(--warn); }
td.nowrap .btn, td.nowrap .inline-form { margin: 2px 0; }
/* Consultant nav: Settings menu */
.nav-more { position: relative; }
.nav-more > summary { list-style: none; cursor: pointer; color: var(--ink-2); font-weight: 500; }
.nav-more > summary::-webkit-details-marker { display: none; }
.nav-more > summary::after { content: " ▾"; font-size: 11px; }
.consultant .nav-more > summary { color: #fff; }
.nav-more > summary.active { color: var(--brand-bright); }
.nav-menu { position: absolute; top: calc(100% + 10px); left: 0; z-index: 30; min-width: 190px; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 8px 24px rgba(0,0,0,.18); padding: 6px; display: flex; flex-direction: column; }
.consultant .nav-menu a { color: var(--ink) !important; padding: 8px 10px; border-radius: 6px; text-decoration: none; }
.nav-menu a:hover { background: var(--soft); }
/* Candidate database */
.grid-filters { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px 14px; }
.grid-filters .span2 { grid-column: span 2; }
.grid-filters label { margin-bottom: 4px; font-size: 13px; }
@media (max-width: 900px) { .grid-filters { grid-template-columns: 1fr 1fr; } }
.share-menu img, .share-inline img { width: 18px; height: 18px; }
/* Tables that become cards on phones (My applications) */
@media (max-width: 700px) {
  table.stack-mobile thead { display: none; }
  table.stack-mobile, table.stack-mobile tbody, table.stack-mobile tr, table.stack-mobile td { display: block; width: 100%; }
  table.stack-mobile tr { border-bottom: 1px solid var(--line); padding: 10px 0; }
  table.stack-mobile td { border: 0 !important; padding: 4px 12px !important; }
  table.stack-mobile td.nowrap { white-space: normal; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
}
