/* Brand Diagram - the app's own chrome.
 *
 * Deliberately NOT the diagram skin. The figure is drawn in the user's brand and
 * has to be judged against their palette, so the page around it stays a neutral
 * dark or light shell - a page painted in the same colours would make it
 * impossible to tell whether the accent is doing its job. */

:root {
  --page: #101215;
  --panel: #171a1f;
  --panel-2: #1d2127;
  --edge: #262b33;
  --text: #e7eaee;
  --dim: #a3abb8;
  --faint: #6d7683;
  --accent: #79c0ff;
  --ok: #56d364;
  --warn: #e3b341;
  --bad: #f85149;
  --radius: 10px;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

:root[data-theme="light"] {
  --page: #f6f7f9;
  --panel: #ffffff;
  --panel-2: #f0f2f5;
  --edge: #dfe3e9;
  --text: #14171c;
  --dim: #4d5560;
  --faint: #7b848f;
  --accent: #0b5fbe;
  --ok: #1a7f37;
  --warn: #9a6700;
  --bad: #cf222e;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--page);
  color: var(--text);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); }
code, .mono, pre { font-family: var(--mono); }
.small { font-size: 12.5px; }
.muted { color: var(--dim); }
.faint { color: var(--faint); }
.hidden { display: none !important; }
.ok { color: var(--ok); }
.warn { color: var(--warn); }
.bad { color: var(--bad); }

h1 { font-size: 1.75rem; line-height: 1.2; margin: 0 0 12px; font-weight: 650; letter-spacing: -0.01em; }
h2 { font-size: 1.1rem; margin: 0 0 8px; font-weight: 650; }
h3 { font-size: 1rem; margin: 0 0 8px; font-weight: 650; }
h4 { font-size: 0.85rem; margin: 16px 0 6px; font-weight: 650; text-transform: uppercase;
     letter-spacing: 0.06em; color: var(--dim); }
p { margin: 0 0 10px; }

/* --- header ------------------------------------------------------------------ */

.topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 20px; border-bottom: 1px solid var(--edge);
  background: var(--panel); position: sticky; top: 0; z-index: 20;
}
.brand { display: flex; align-items: center; gap: 8px; min-width: 0; }
.brand strong { white-space: nowrap; }
.backlink { text-decoration: none; color: var(--dim); font-size: 13px; }
.backlink:hover { color: var(--text); }
.sep { color: var(--faint); }
.topactions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.credits { font-family: var(--mono); font-size: 12px; color: var(--dim); }
.topup { font-size: 12px; text-decoration: none; border: 1px solid var(--edge);
         padding: 4px 8px; border-radius: 6px; }
.ghost {
  background: transparent; color: var(--text); border: 1px solid var(--edge);
  border-radius: 6px; padding: 4px 10px; font: inherit; font-size: 12.5px; cursor: pointer;
}
.ghost:hover { border-color: var(--accent); }

/* --- lane switcher ----------------------------------------------------------- */

.lanes {
  display: flex; gap: 8px; flex-wrap: wrap; align-items: stretch;
  padding: 12px 20px; border-bottom: 1px solid var(--edge); background: var(--panel-2);
}
.lanegroup { display: flex; flex-direction: column; gap: 4px; }
.stagename {
  font-family: var(--mono); font-size: 9px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--faint);
}
.lanetab {
  background: var(--panel); color: var(--dim); border: 1px solid var(--edge);
  border-radius: 8px; padding: 7px 14px; font: inherit; font-size: 13.5px; cursor: pointer;
  white-space: nowrap;
}
.lanetab:hover { color: var(--text); }
.lanetab[aria-pressed="true"] {
  color: var(--text); border-color: var(--accent); box-shadow: inset 0 -2px 0 var(--accent);
}

main { max-width: 1080px; margin: 0 auto; padding: 24px 20px 64px; }

.hero { margin-bottom: 24px; }
.lede { color: var(--dim); max-width: 68ch; }
.herobtns { display: flex; gap: 10px; flex-wrap: wrap; margin: 16px 0 8px; }
.big {
  background: var(--panel); color: var(--text); border: 1px solid var(--edge);
  border-radius: 8px; padding: 10px 16px; font: inherit; cursor: pointer;
}
.big:hover { border-color: var(--accent); }

.card {
  background: var(--panel); border: 1px solid var(--edge); border-radius: var(--radius);
  padding: 18px; margin: 0 0 16px;
}
.explain p { color: var(--dim); max-width: 78ch; }

/* --- the skin strip ---------------------------------------------------------- */

.striphead { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.stripactions { display: flex; gap: 8px; flex-wrap: wrap; }
.swatches { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.swatch {
  display: flex; align-items: center; gap: 6px; border: 1px solid var(--edge);
  border-radius: 8px; padding: 5px 9px 5px 6px; background: var(--panel-2); font-size: 11.5px;
}
.swatch b { font-family: var(--mono); font-weight: 500; font-size: 10.5px; }
.chip {
  width: 16px; height: 16px; border-radius: 4px; display: inline-block;
  border: 1px solid var(--edge); flex: 0 0 auto;
}
.chip.inline { width: 11px; height: 11px; border-radius: 3px; margin-right: 6px;
               vertical-align: baseline; }
.delta { color: var(--warn); font-size: 13px; margin: 6px 0 0; }

/* --- forms ------------------------------------------------------------------- */

.field { margin: 0 0 14px; }
.labelrow { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
label { display: block; font-size: 13px; margin-bottom: 5px; color: var(--text); }
.checkrow { display: flex; align-items: center; gap: 8px; font-size: 13px;
            color: var(--dim); margin: 0 0 14px; }
.checkrow input { margin: 0; }
.row { display: flex; gap: 12px; flex-wrap: wrap; }
.row .field { flex: 1 1 200px; }

textarea, input[type="search"], select {
  width: 100%; background: var(--panel-2); color: var(--text);
  border: 1px solid var(--edge); border-radius: 8px; padding: 9px 11px;
  font-family: var(--sans); font-size: 13.5px; line-height: 1.5;
}
textarea { font-family: var(--mono); font-size: 12.5px; resize: vertical; }
textarea:focus, input:focus, select:focus { outline: 2px solid var(--accent); outline-offset: -1px; }
select { font-family: var(--sans); }

.dropzone { border: 1px dashed var(--edge); border-radius: 8px; padding: 8px; }
.dropzone.dragging { border-color: var(--accent); background: var(--panel-2); }
.droprow { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.droprow input[type="file"] { font-size: 11.5px; color: var(--dim); max-width: 100%; }

.runrow { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 4px; }
.primary {
  background: var(--accent); color: var(--page); border: 1px solid var(--accent);
  border-radius: 8px; padding: 9px 18px; font: inherit; font-weight: 600; cursor: pointer;
}
.primary.small { padding: 6px 13px; font-size: 13px; }
.primary:disabled { opacity: 0.45; cursor: not-allowed; }
.mini {
  background: var(--panel-2); color: var(--text); border: 1px solid var(--edge);
  border-radius: 6px; padding: 5px 10px; font: inherit; font-size: 12px; cursor: pointer;
}
.mini:hover { border-color: var(--accent); }
.mini:disabled { opacity: 0.4; cursor: not-allowed; }
.linkish {
  background: none; border: none; padding: 0; color: var(--accent);
  font: inherit; cursor: pointer; text-align: left; text-decoration: underline;
}
.exportrow { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 12px; }

.warnline { color: var(--warn); font-size: 13px; }
.rungate { font-size: 13px; color: var(--dim); margin-top: 8px; }
.gateaction { margin-left: 4px; }
.gateaction[data-act] { cursor: pointer; text-decoration: underline; }
.verdict { color: var(--text); font-size: 13.5px; }

.prescan { border-top: 1px solid var(--edge); margin: 16px 0; padding-top: 14px; }

/* --- progress ---------------------------------------------------------------- */

.progresshead { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.steps { list-style: none; margin: 12px 0 0; padding: 0; }
.step { display: flex; align-items: center; gap: 10px; font-size: 13px; padding: 3px 0;
        color: var(--faint); }
.step .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--edge); flex: 0 0 auto; }
.step.live { color: var(--text); }
.step.live .dot { background: var(--accent); animation: pulse 1.1s ease-in-out infinite; }
.step.done { color: var(--dim); }
.step.done .dot { background: var(--ok); }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

/* --- the figure -------------------------------------------------------------- */

.figurehead { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
              flex-wrap: wrap; }
.figactions { display: flex; gap: 6px; flex-wrap: wrap; }
.figactions .mini[aria-pressed="true"] { border-color: var(--accent); color: var(--accent); }
.canvas {
  border: 1px solid var(--edge); border-radius: 8px; margin: 12px 0;
  overflow-x: auto; padding: 0;
}
.figsvg { width: 100%; height: auto; display: block; min-width: 520px; }
.caption { color: var(--dim); font-style: italic; font-size: 13.5px; }

.factstrip { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.sdkbox {
  display: flex; flex-direction: column; gap: 2px; border: 1px solid var(--edge);
  border-radius: 8px; padding: 7px 11px; background: var(--panel-2); min-width: 92px;
}
.sdkbox strong { font-size: 13px; font-weight: 600; }
.count { font-family: var(--mono); font-size: 12px; color: var(--dim); font-weight: 400; }

/* --- findings ---------------------------------------------------------------- */

.findings { list-style: none; margin: 10px 0 0; padding: 0; }
.finding {
  display: flex; gap: 10px; padding: 9px 0; border-top: 1px solid var(--edge);
}
.finding:first-child { border-top: none; }
.finding > div { min-width: 0; }
.finding p { margin: 3px 0 0; }
.finding strong { font-weight: 600; font-size: 13.5px; }
.sev {
  flex: 0 0 auto; font-size: 9.5px; letter-spacing: 0.1em; text-transform: uppercase;
  border: 1px solid var(--edge); border-radius: 4px; padding: 2px 6px; height: 18px;
  line-height: 14px; color: var(--dim); background: var(--panel-2);
}
.finding.fail .sev { color: var(--bad); border-color: var(--bad); }
.finding.warn .sev { color: var(--warn); border-color: var(--warn); }
.finding.ok .sev, .finding.pass .sev { color: var(--ok); border-color: var(--ok); }
.finding.note .sev { color: var(--dim); }

.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0; padding: 0; }
.chiptag {
  font-family: var(--mono); font-size: 11px; border: 1px solid var(--edge);
  border-radius: 5px; padding: 3px 7px; background: var(--panel-2); color: var(--dim);
}

/* --- tables ------------------------------------------------------------------ */

.tablewrap { overflow-x: auto; margin: 10px 0; }
table.inv { border-collapse: collapse; width: 100%; font-size: 12.5px; min-width: 480px; }
table.inv th, table.inv td {
  text-align: left; padding: 6px 10px; border-bottom: 1px solid var(--edge); vertical-align: top;
}
table.inv th {
  font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint);
  font-weight: 500; white-space: nowrap;
}

.receipt { margin: 8px 0; }
.receipt dt {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--faint); margin-top: 10px;
}
.receipt dd { margin: 3px 0 0; font-size: 13px; }
.receipt ul { margin: 3px 0 0; padding-left: 18px; }

.callouts { margin: 8px 0; padding-left: 18px; }
.callouts em { font-size: 14px; }

.bigpre {
  background: var(--panel-2); border: 1px solid var(--edge); border-radius: 8px;
  padding: 12px; overflow-x: auto; font-size: 12px; white-space: pre-wrap; word-break: break-word;
}

/* --- history ----------------------------------------------------------------- */

.history { list-style: none; margin: 10px 0; padding: 0; }
.history > li { border-top: 1px solid var(--edge); padding: 11px 0; }
.history > li:first-child { border-top: none; }
.histhead { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.history p { margin: 3px 0 0; }

/* --- footer and toasts ------------------------------------------------------- */

.foot {
  border-top: 1px solid var(--edge); padding: 20px; margin-top: 24px;
  color: var(--dim); font-size: 13px;
}
.foot p { max-width: 90ch; margin: 0 auto 8px; }
.foot a { color: var(--dim); }

.toasts { position: fixed; right: 16px; bottom: 16px; display: flex; flex-direction: column;
          gap: 8px; z-index: 50; max-width: min(420px, calc(100vw - 32px)); }
.toast {
  background: var(--panel); border: 1px solid var(--edge); border-left-width: 3px;
  border-radius: 8px; padding: 10px 13px; font-size: 13px; box-shadow: 0 6px 20px rgba(0,0,0,0.25);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.toast.ok { border-left-color: var(--ok); }
.toast.err { border-left-color: var(--bad); }
.toast.gone { opacity: 0; transform: translateY(6px); }
.toast a { margin-left: 6px; }

@media (max-width: 560px) {
  /* A label and its live stats side by side squeeze the label into three lines on a
   * phone. Below this width they stack, which costs one line and reads properly. */
  .labelrow { flex-direction: column; align-items: flex-start; gap: 2px; }
  .striphead { flex-direction: column; }
  .figurehead { flex-direction: column; }
}

@media (max-width: 640px) {
  main { padding: 16px 12px 48px; }
  .card { padding: 14px; }
  .topbar { padding: 10px 12px; }
  .lanes { padding: 10px 12px; }
  .figsvg { min-width: 420px; }
}

@media print {
  .topbar, .lanes, .hero, .foot, .toasts, .exportrow, .figactions,
  #formSkin, #formDesign, #formAnnotate, #specCard, #historyZone, #progressPanel { display: none !important; }
  body { background: #fff; color: #000; }
  .card { border: none; padding: 0; }
  .canvas { border: none; }
}

/* --- docs pages (api.html, tokens.html) -------------------------------------- */

.doc { max-width: 920px; margin: 0 auto; padding: 24px 20px 64px; }
.doc h1 { font-size: 1.7rem; }
.doc h2 { font-size: 1.2rem; margin-top: 32px; }
.doc h3 { font-size: 1rem; margin-top: 22px; }
.doc p, .doc li { max-width: 82ch; }
.doc ul, .doc ol { padding-left: 20px; }
.doc table { width: 100%; border-collapse: collapse; font-size: 0.9em; margin: 12px 0; }
.doc th, .doc td {
  text-align: left; padding: 7px 9px; border-bottom: 1px solid var(--edge); vertical-align: top;
}
.doc th { color: var(--dim); font-weight: 600; }
.doc code {
  background: var(--panel-2); border: 1px solid var(--edge); border-radius: 4px;
  padding: 1px 5px; font-size: 0.88em;
}
.doc pre {
  background: var(--panel); border: 1px solid var(--edge); border-radius: 8px;
  padding: 12px 14px; overflow-x: auto; font-size: 12px; line-height: 1.55; margin: 12px 0;
}
.doc pre code { background: none; border: none; padding: 0; font-size: inherit; }

.tabs { display: flex; gap: 4px; flex-wrap: wrap; margin: 14px 0 0; }
.tab {
  background: var(--panel-2); color: var(--dim); border: 1px solid var(--edge);
  border-bottom: none; border-radius: 8px 8px 0 0; padding: 5px 11px;
  font: inherit; font-size: 12px; cursor: pointer;
}
.tab:hover { color: var(--text); }
.tab.active { background: var(--panel); color: var(--text); font-weight: 600; }
.codegroup pre { border-radius: 0 8px 8px 8px; margin-top: 0; }
.codegroup pre[hidden] { display: none; }

.tokenrow { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 12px 0; }
.tokenbox {
  font-family: var(--mono); font-size: 12px; background: var(--panel-2);
  border: 1px solid var(--edge); border-radius: 6px; padding: 8px 10px;
  overflow-x: auto; white-space: nowrap; flex: 1 1 260px; min-width: 0;
}
.statebox {
  border: 1px solid var(--edge); border-radius: var(--radius); background: var(--panel);
  padding: 14px 16px; margin: 16px 0;
}
.statebox p { margin: 4px 0 0; }

/* A label that is present for a screen reader and absent for the eye. Used where a
 * card heading already names the control visually. */
.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---- Rules Desk ------------------------------------------------------------
   Everything below is specific to this app's three-stage shell, the coverage
   and findings tables, and the diff pairs in the harden panel. */

.lanebar {
  display: flex; gap: 0.75rem; flex-wrap: wrap; align-items: flex-end;
  padding: 0.75rem clamp(1rem, 4vw, 2.5rem) 0;
  max-width: 62rem; margin: 0 auto;
}
.lanegroup { display: flex; flex-direction: column; gap: 0.25rem; }
.lanestage {
  font-size: 0.72rem; letter-spacing: 0.09em; text-transform: uppercase;
  color: var(--muted, #8d867a); padding-left: 0.15rem;
}
.lanetab {
  border: 1px solid var(--line, #33302b); background: transparent;
  color: inherit; border-radius: 0.5rem; padding: 0.45rem 0.9rem;
  font: inherit; font-size: 0.95rem; cursor: pointer;
}
.lanetab[aria-pressed="true"] {
  background: var(--accentbg, rgba(87, 160, 90, 0.16));
  border-color: var(--accent, #57a05a); font-weight: 600;
}
.lanepanel { border-top: 1px solid var(--line, #33302b); margin-top: 1.5rem; padding-top: 1.25rem; }
.lanebody { margin-top: 1.5rem; }
.subhead { font-size: 1rem; margin: 1.4rem 0 0.5rem; }

.runrow { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; margin-top: 1rem; }
.meter { flex: 1 1 18rem; min-width: 12rem; }
.gate { margin: 0.5rem 0 0; font-size: 0.9rem; }
.gateact { margin-left: 0.35rem; cursor: pointer; text-decoration: underline; }

.verdictrow { display: flex; gap: 0.75rem; align-items: baseline; flex-wrap: wrap; margin: 0.75rem 0; }
.chip.good { background: rgba(87, 160, 90, 0.18); border-color: #57a05a; }
.chip.warn { background: rgba(201, 152, 44, 0.18); border-color: #c9982c; }
.chip.bad  { background: rgba(199, 58, 43, 0.18); border-color: #c73a2b; }
.chip.big  { font-size: 1.05rem; padding: 0.3rem 0.75rem; }

table.grid { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
table.grid th, table.grid td {
  text-align: left; vertical-align: top; padding: 0.45rem 0.6rem;
  border-bottom: 1px solid var(--line, #33302b);
}
table.grid tr.head th { font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; }
table.grid td.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.82rem; word-break: break-all; }

.sev { display: inline-block; border-radius: 0.35rem; padding: 0.05rem 0.4rem; font-size: 0.75rem;
       text-transform: uppercase; letter-spacing: 0.05em; border: 1px solid currentColor; }
.sev-critical { color: #e2503f; }
.sev-high     { color: #d97a2b; }
.sev-medium   { color: #c9982c; }
.sev-low      { color: #7f9ac1; }
.sev-info, .sev-none { color: var(--muted, #8d867a); }

.gate-public { color: #e2503f; font-weight: 600; }
.gate-anyone { color: #e2503f; font-weight: 600; }
.gate-signed-in, .gate-any-signed-in { color: #c9982c; }
.gate-claim, .gate-claim-holder { color: #7f9ac1; }
.gate-owner, .gate-member { color: #57a05a; }
.gate-nobody, .gate-unknown, .gate-conditional { color: var(--muted, #8d867a); }
.status-pass, .status-confirmed, .expect-allow { color: #57a05a; }
.status-fail, .status-unanswered { color: #e2503f; }
.status-unknown, .status-set-aside, .expect-deny { color: var(--muted, #8d867a); }

/* `display: block` is load-bearing, not decoration. The base stylesheet this app
 * inherited declares `.finding { display: flex }` for a one-line finding row; a
 * Rules Desk finding is a CARD with a head, a path, prose and a fix stacked
 * vertically. Without this reset the four children lay out in a row and push the
 * page 240px wider than a phone viewport - invisible to an offline harness and
 * obvious in a browser at 390px. */
.finding, .gap, .change, .histrow {
  display: block;
  border: 1px solid var(--line, #33302b); border-radius: 0.6rem;
  padding: 0.85rem 1rem; margin: 0.75rem 0;
  min-width: 0; max-width: 100%; overflow-wrap: anywhere;
}
.finding p, .gap p, .change p { max-width: 100%; overflow-wrap: anywhere; }
.findinghead { display: flex; gap: 0.6rem; align-items: baseline; flex-wrap: wrap; margin-bottom: 0.4rem; }
.pathline { word-break: break-all; margin: 0.2rem 0 0.5rem; }
.attack, .fix { margin: 0.5rem 0; }
.ref { display: inline-block; margin-top: 0.4rem; opacity: 0.7; }
.claimname { font-size: 0.9rem; }
.kept { margin: 0.4rem 0; }
.steplist { padding-left: 1.2rem; }
.steplist li { margin-bottom: 1rem; }

pre.code {
  background: var(--codebg, rgba(0, 0, 0, 0.25)); border: 1px solid var(--line, #33302b);
  border-radius: 0.5rem; padding: 0.8rem 1rem; overflow-x: auto;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.85rem;
  line-height: 1.5; white-space: pre; max-width: 100%;
}
pre.code.small { font-size: 0.78rem; padding: 0.6rem 0.8rem; }

/* Full-file diff of the rewrite against the pasted file. Colour is a second
   signal only: every line still carries its own +/-/space prefix in the text,
   so the diff reads correctly when copied and when colour is unavailable. */
#hardenDiff .diffadd { color: var(--ok); background: rgba(87, 160, 90, 0.12); display: block; }
#hardenDiff .diffdel { color: var(--bad); background: rgba(199, 58, 43, 0.12); display: block; }
#hardenDiff .diffsame { opacity: 0.72; display: block; }

.diff { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; margin: 0.5rem 0; }
.diff .difflabel { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.07em; color: var(--muted, #8d867a); }
.diff .was pre.code { border-left: 3px solid #c73a2b; }
.diff .now pre.code { border-left: 3px solid #57a05a; }
@media (max-width: 46rem) { .diff { grid-template-columns: 1fr; } }

.progress .steps { list-style: none; padding: 0; margin: 0.5rem 0 0; }
.toastact { margin-left: 0.5rem; text-decoration: underline; }
.toastx { background: none; border: 0; color: inherit; cursor: pointer; font-size: 1.1rem; line-height: 1; margin-left: 0.5rem; }
.tablewrap { overflow-x: auto; max-width: 100%; }
