/*
 * Iris Hub styles.
 * Brand tokens are approximations of MetCon's charcoal/bronze palette.
 * Replace the hex values below with the official brand values.
 */
:root {
  --charcoal: #2F3133;
  --graphite: #4A4D50;
  --bronze: #A5774B;
  --bronze-deep: #85592F;   /* text-safe bronze on light backgrounds */
  --bronze-soft: #E9DCCB;
  --paper: #F3F4F4;
  --white: #FFFFFF;
  --ink: #1E2022;
  --muted: #5E6266;
  --line: #D8DADB;
  --amber: #D29A2E;
  --green: #4E8A5C;
  --red: #B24A3C;

  --font: "Archivo", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --wrap: 72rem;
  --r-s: 4px;
  --r-m: 10px;

  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
html { scroll-padding-top: calc(env(safe-area-inset-top, 0px) + 4.5rem); }
*, *::before, *::after { box-sizing: inherit; }
[hidden] { display: none !important; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-stretch: 112%; line-height: 1.15; margin: 0; }
p { margin: 0; }
a { color: var(--bronze-deep); }
button, input, select, textarea { font: inherit; color: inherit; }
img, svg { max-width: 100%; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 1.25rem; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip { position: absolute; left: -999px; top: 0; background: var(--white); padding: .5rem 1rem; z-index: 50; }
.skip:focus { left: 1rem; }

:focus-visible { outline: 3px solid var(--bronze); outline-offset: 2px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  min-height: 2.75rem; padding: .5rem 1.1rem;
  border: 1.5px solid var(--charcoal); border-radius: var(--r-s);
  background: var(--white); color: var(--charcoal);
  font-weight: 600; cursor: pointer; text-decoration: none;
}
.btn:hover { background: var(--paper); }
.btn.primary { background: var(--bronze); border-color: var(--bronze); color: var(--white); }
.btn.primary:hover { background: var(--bronze-deep); border-color: var(--bronze-deep); }
.btn.ghost { border-color: transparent; background: transparent; text-decoration: underline; text-underline-offset: 3px; }
.btn.ghost:hover { background: rgba(0,0,0,.04); }
.btn.danger { color: var(--red); }
.linkish { background: none; border: 0; padding: 0; color: var(--bronze-deep); text-decoration: underline; cursor: pointer; font-weight: 600; }

/* ---------- hero ---------- */
.hero { background: var(--charcoal); color: var(--white); }
.hero-inner {
  display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 2.5rem; align-items: center; padding-top: 3rem; padding-bottom: 3rem;
}
.brand { display: flex; align-items: center; gap: .6rem; font-weight: 600; color: var(--bronze-soft); margin-bottom: 1.5rem; }
.brand-mark { width: 1.1rem; height: 1.1rem; border-radius: 50%; border: 4px solid var(--bronze); }
.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 700; font-stretch: 118%;
  letter-spacing: -0.02em; max-width: 16ch;
}
.lede { margin-top: 1rem; font-size: 1.15rem; color: #D6D8D9; max-width: 38rem; }

.role { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.75rem; }
.role button {
  min-height: 2.5rem; padding: .4rem .95rem; border-radius: 999px; cursor: pointer;
  border: 1.5px solid #6A6E72; background: transparent; color: var(--white); font-weight: 500;
}
.role button:hover { border-color: var(--bronze-soft); }
.role button[aria-pressed="true"] { background: var(--white); border-color: var(--white); color: var(--charcoal); font-weight: 600; }

.search { position: relative; display: block; margin-top: 1rem; max-width: 34rem; }
.search svg {
  position: absolute; left: .95rem; top: 50%; width: 1.15rem; height: 1.15rem; transform: translateY(-50%);
  fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round;
}
.search input {
  width: 100%; min-height: 3.1rem; padding: .6rem 1rem .6rem 2.8rem;
  border-radius: var(--r-s); border: 0; background: var(--white); color: var(--ink);
}

.hero-ring { display: flex; flex-direction: column; align-items: center; text-align: center; }
.ring { width: min(100%, 300px); height: auto; overflow: visible; }
.ring-inner { fill: #383B3D; }
.tick { stroke: #585C60; stroke-width: 3; stroke-linecap: round; }
.tick.ms { stroke: #8A8E92; }
.tick.on { stroke: var(--bronze); animation: tick-in .5s both; animation-delay: calc(var(--i) * 18ms); }
.tick.on.ms { stroke: var(--bronze-soft); }
@keyframes tick-in { from { stroke: #585C60; } }
.ring-num { fill: var(--white); font-family: var(--font); font-size: 64px; font-weight: 700; font-stretch: 118%; letter-spacing: -1px; }
.ring-label { fill: var(--bronze-soft); font-family: var(--font); font-size: 14px; font-weight: 500; }
.ring-sub { margin-top: .5rem; font-weight: 600; }
.status { display: flex; align-items: center; gap: .5rem; margin-top: .4rem; color: #C9CCCE; font-size: .95rem; }
.status .dot { width: .7rem; height: .7rem; border-radius: 50%; flex: none; }
.status-amber .dot { background: var(--amber); }
.status-green .dot { background: var(--green); }
.status-red .dot { background: var(--red); }

/* ---------- tabs ---------- */
.tabs {
  position: sticky; top: 0; z-index: 20;
  padding-top: env(safe-area-inset-top, 0px);
  background: var(--white); border-bottom: 1px solid var(--line);
}
.tabs-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 3.75rem; }
.tabs-links { display: flex; gap: .25rem; overflow-x: auto; scrollbar-width: none; }
.tabs-links a {
  padding: 1.1rem .8rem 1rem; white-space: nowrap; color: var(--muted);
  text-decoration: none; font-weight: 600; border-bottom: 3px solid transparent;
}
.tabs-links a:hover { color: var(--ink); }
.tabs-links a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--bronze); }

.ask-fab { display: none; }

main { padding-top: 2.5rem; padding-bottom: 4rem; }
main:focus { outline: none; }
.view-title { font-size: clamp(1.7rem, 3.5vw, 2.3rem); font-weight: 700; }
.view-lede { margin-top: .5rem; color: var(--muted); max-width: 42rem; }

/* ---------- questions layout ---------- */
.q-layout { display: grid; grid-template-columns: 15rem minmax(0, 1fr); gap: 2.5rem; align-items: start; }
.q-cats { position: sticky; top: 5rem; }
.cat-list { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.cat-list button {
  display: flex; justify-content: space-between; gap: .75rem; width: 100%;
  padding: .6rem .9rem; margin-left: -2px; border: 0; border-left: 2px solid transparent;
  background: none; text-align: left; cursor: pointer; color: var(--muted); font-weight: 500;
}
.cat-list button:hover { color: var(--ink); }
.cat-list button[aria-pressed="true"] { color: var(--ink); font-weight: 700; border-left-color: var(--bronze); }
.count { color: var(--muted); font-weight: 500; font-variant-numeric: tabular-nums; }

.q-list { max-width: 48rem; }
.q-list h2 { font-size: 1.35rem; font-weight: 700; margin-bottom: .9rem; }
.section-note { color: var(--muted); margin: -.4rem 0 1rem; max-width: 40rem; }

/* open questions */
.open-block { margin-bottom: 2.75rem; padding: 1.5rem; background: var(--bronze-soft); border-radius: var(--r-m); }
.open-grid { display: grid; gap: .75rem; }
.open-q {
  display: grid; grid-template-columns: 1fr auto; gap: .25rem 1rem; align-items: center;
  padding: 1rem 1.1rem; background: var(--white); border-radius: var(--r-s);
}
.open-text { font-weight: 600; }
.open-q .meta { grid-column: 1; }
.metoo {
  grid-column: 2; grid-row: 1 / span 2;
  display: inline-flex; align-items: center; gap: .6rem; min-height: 2.75rem;
  padding: .35rem .5rem .35rem .9rem; border-radius: 999px; cursor: pointer;
  border: 1.5px solid var(--charcoal); background: var(--white); font-weight: 600; font-size: .92rem;
}
.metoo-count {
  min-width: 2rem; padding: .15rem .5rem; border-radius: 999px; text-align: center;
  background: var(--paper); font-variant-numeric: tabular-nums;
}
.metoo[aria-pressed="true"] { background: var(--charcoal); color: var(--white); }
.metoo[aria-pressed="true"] .metoo-count { background: var(--bronze); color: var(--white); }

/* answered accordion */
.cat-block { margin-bottom: 2.5rem; }
.qa { border-top: 1px solid var(--line); }
.cat-block .qa:last-child { border-bottom: 1px solid var(--line); }
.qa-q { font-size: 1.1rem; font-weight: 600; font-stretch: 100%; }
.qa-toggle {
  display: flex; align-items: center; gap: .75rem; width: 100%;
  padding: 1.05rem .25rem; border: 0; background: none; cursor: pointer; text-align: left; font-weight: 600;
}
.qa-text { flex: 1; }
.qa-badges { display: flex; gap: .35rem; flex-wrap: wrap; justify-content: flex-end; }
.qa-icon { position: relative; width: 1.1rem; height: 1.1rem; flex: none; }
.qa-icon::before, .qa-icon::after {
  content: ""; position: absolute; left: 0; top: 50%; width: 100%; height: 2px;
  background: var(--bronze-deep); transition: transform .2s;
}
.qa-icon::after { transform: rotate(90deg); }
.qa.is-open .qa-icon::after { transform: rotate(0); }
.qa-a { padding: 0 .25rem 1.4rem; }
.badge {
  display: inline-block; padding: .1rem .5rem; border-radius: var(--r-s);
  background: var(--paper); border: 1px solid var(--line); color: var(--muted);
  font-size: .8rem; font-weight: 600; white-space: nowrap;
}
.badge.new { background: var(--bronze); border-color: var(--bronze); color: var(--white); }

.prose { max-width: 40rem; }
.prose p + p, .prose p + ul, .prose ul + p { margin-top: .8rem; }
.prose ul { margin: .25rem 0 0; padding-left: 1.2rem; }
.prose li + li { margin-top: .45rem; }
.prose li::marker { color: var(--bronze); }
.table-wrap { overflow-x: auto; margin-top: .25rem; }
table { border-collapse: collapse; width: 100%; min-width: 30rem; font-size: .97rem; }
th, td { text-align: left; vertical-align: top; padding: .7rem .8rem; border-bottom: 1px solid var(--line); }
th { font-weight: 700; background: var(--paper); }
td:first-child { color: var(--muted); }

.meta { margin-top: .9rem; color: var(--muted); font-size: .9rem; }
.open-q .meta { margin-top: 0; }
.qa-foot { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-top: 1.1rem; font-size: .95rem; color: var(--muted); }
.chip {
  min-height: 2.25rem; padding: .25rem .9rem; border-radius: 999px; cursor: pointer;
  border: 1.5px solid var(--line); background: var(--white); font-weight: 600; color: var(--ink);
}
.chip:hover { border-color: var(--charcoal); }
.thanks { color: var(--ink); }

.term {
  padding: 0; border: 0; background: none; cursor: help; font-weight: inherit; color: inherit;
  text-decoration: underline dotted var(--bronze); text-decoration-thickness: 2px; text-underline-offset: 4px;
}
.term-pop {
  position: absolute; z-index: 40; display: grid; gap: .25rem; padding: .85rem 1rem;
  background: var(--charcoal); color: var(--white); border-radius: var(--r-s); font-size: .93rem;
  box-shadow: 0 10px 30px rgba(30, 32, 34, .25);
}
.term-pop strong { color: var(--bronze-soft); }
.term-pop[hidden] { display: none; }

.empty { padding: 2.5rem; background: var(--white); border-radius: var(--r-m); border: 1px dashed var(--line); }
.empty p { margin: .5rem 0 1.25rem; color: var(--muted); }

/* ---------- roadmap ---------- */
.stages { list-style: none; margin: 2.25rem 0 0; padding: 0; max-width: 46rem; }
.stage { position: relative; display: grid; grid-template-columns: 2rem 1fr; gap: 1rem; padding-bottom: 2.25rem; }
.stage::before {
  content: ""; position: absolute; left: calc(1rem - 1px); top: 1.6rem; bottom: 0; width: 2px; background: var(--line);
}
.stage:last-child::before { display: none; }
.stage.is-done::before { background: var(--bronze); }
.stage-marker {
  width: 2rem; height: 2rem; border-radius: 50%; border: 3px solid var(--line); background: var(--paper);
  position: relative; z-index: 1;
}
.stage.is-done .stage-marker { background: var(--bronze); border-color: var(--bronze); }
.stage.is-current .stage-marker { border-color: var(--bronze); background: var(--white); box-shadow: 0 0 0 6px var(--bronze-soft); }
.stage.is-current .stage-marker::after {
  content: ""; position: absolute; inset: 5px; border-radius: 50%; background: var(--bronze);
}
.stage.is-next .stage-marker { border-color: var(--charcoal); }
.stage-when { color: var(--bronze-deep); font-weight: 600; font-size: .95rem; }
.stage h3 { font-size: 1.35rem; font-weight: 700; margin: .15rem 0 .5rem; display: flex; align-items: center; flex-wrap: wrap; gap: .6rem; }
.stage.is-upcoming h3, .stage.is-upcoming .prose { color: var(--muted); }
.here {
  font-size: .78rem; font-stretch: 100%; font-weight: 700; padding: .2rem .6rem; border-radius: 999px;
  background: var(--bronze); color: var(--white);
}
.here.next { background: var(--charcoal); }
.stage-progress { margin-top: 1rem; height: .5rem; border-radius: 999px; background: var(--line); overflow: hidden; max-width: 28rem; }
.stage-progress span { display: block; height: 100%; background: var(--bronze); }
.cells { display: grid; grid-template-columns: repeat(20, 1fr); gap: 4px; margin-top: 1.25rem; max-width: 28rem; }
.cell { aspect-ratio: 1; border-radius: 2px; }
.cell.uat { background: var(--charcoal); }
.cell.train { background: var(--bronze); }
.cells-key { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .5rem; margin-top: .75rem; font-size: .9rem; color: var(--muted); }
.key { width: .8rem; height: .8rem; border-radius: 2px; display: inline-block; }
.key.uat { background: var(--charcoal); }
.key.train { background: var(--bronze); margin-left: .75rem; }

/* ---------- glossary ---------- */
.glossary { margin: 2rem 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr)); gap: 0 2.5rem; }
.glossary div { padding: 1.1rem 0; border-top: 1px solid var(--line); }
.glossary dt { font-weight: 700; font-stretch: 112%; font-size: 1.1rem; }
.glossary dd { margin: .3rem 0 0; color: var(--muted); }

/* ---------- help ---------- */
.layers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-top: 2rem; }
.layer { padding: 1.4rem; background: var(--white); border-radius: var(--r-m); border-top: 4px solid var(--charcoal); }
.layer-champions { border-top-color: var(--bronze); }
.layer-bomb { border-top-color: var(--graphite); }
.layer-for { color: var(--muted); font-size: .92rem; font-weight: 600; }
.layer h3 { font-size: 1.3rem; margin: .2rem 0 .5rem; }
.sub-h { font-size: 1.2rem; margin: 2.5rem 0 .9rem; }
.placeholder { color: var(--muted); padding: 1rem 1.2rem; border: 1px dashed var(--line); border-radius: var(--r-s); background: var(--white); }
.leaders { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); gap: .75rem; }
.leaders li { display: grid; padding: .9rem 1rem; background: var(--white); border-radius: var(--r-s); }
.leaders span { color: var(--muted); font-size: .93rem; }
.cta-band {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap;
  margin-top: 3rem; padding: 1.75rem; border-radius: var(--r-m); background: var(--charcoal); color: var(--white);
}
.cta-band h3 { font-size: 1.35rem; }
.cta-band p { color: #D6D8D9; margin-top: .25rem; }

/* ---------- admin ---------- */
.notice { margin-top: 1rem; padding: .8rem 1rem; border-left: 4px solid var(--amber); background: var(--white); max-width: 46rem; }
.admin-tabs { display: flex; gap: .25rem; margin-top: 1.75rem; border-bottom: 1px solid var(--line); overflow-x: auto; }
.admin-tabs button {
  padding: .8rem 1rem; border: 0; border-bottom: 3px solid transparent; background: none;
  cursor: pointer; font-weight: 600; color: var(--muted); white-space: nowrap;
}
.admin-tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--bronze); }
.admin-body { padding-top: 1.5rem; display: grid; gap: 1rem; max-width: 50rem; }
.admin-card { padding: 1.3rem; background: var(--white); border-radius: var(--r-m); border: 1px solid var(--line); }
.admin-head { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; margin-bottom: .75rem; }
.admin-head .meta { margin: 0; }
.metoo-static { font-size: .9rem; font-weight: 700; color: var(--bronze-deep); }
.field { display: grid; gap: .3rem; margin-top: .85rem; }
.field > span { font-weight: 600; font-size: .93rem; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 2.75rem; padding: .55rem .75rem;
  border: 1.5px solid #B9BCBE; border-radius: var(--r-s); background: var(--white);
}
.field textarea { resize: vertical; line-height: 1.5; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
.hint { margin-top: .35rem; color: var(--muted); font-size: .85rem; }
.field-error { margin-top: .35rem; color: var(--red); font-weight: 600; font-size: .9rem; }
.admin-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.1rem; }
.data-tools p { color: var(--muted); }
.admin-bar { display: flex; align-items: baseline; justify-content: space-between; gap: .5rem 1rem; flex-wrap: wrap; }
.admin-who { display: flex; align-items: center; gap: .25rem; color: var(--muted); font-weight: 600; }
.signin-form { max-width: 26rem; margin-top: 1rem; }
.signin-form .sub-h { margin-top: .5rem; }
.btn:disabled { opacity: .6; cursor: progress; }
body[data-view="admin"] .ask-fab { display: none; }
.team-list { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: .75rem; }
.team-member { padding: 1rem 1.2rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-m); }
.team-who { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem .6rem; }
.team-who .meta { flex-basis: 100%; margin: 0; }
.team-member .admin-actions { margin-top: .75rem; }
.team-reset { margin-top: .5rem; }
.warn { margin-top: 1rem; color: var(--red) !important; font-weight: 600; }

.insights { display: grid; gap: 1.5rem; }
.kpis { margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .75rem; }
.kpis div { padding: 1rem; background: var(--white); border-radius: var(--r-m); }
.kpis dt { color: var(--muted); font-size: .88rem; font-weight: 600; }
.kpis dd { margin: .2rem 0 0; font-size: 2rem; font-weight: 700; font-stretch: 112%; font-variant-numeric: tabular-nums; }
.insight-grid { display: grid; gap: 1rem; }
.insight-grid section { padding: 1.25rem; background: var(--white); border-radius: var(--r-m); }
.insight-grid h3 { font-size: 1.05rem; margin-bottom: .9rem; }
.bars { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.bars li { display: grid; grid-template-columns: 11rem 1fr 2rem; align-items: center; gap: .75rem; font-size: .93rem; }
.bar { height: .6rem; background: var(--paper); border-radius: 999px; overflow: hidden; }
.bar span { display: block; height: 100%; background: var(--bronze); }
.bar-n { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
.rank { margin: 0; padding-left: 1.25rem; display: grid; gap: .5rem; }
.rank li { font-size: .95rem; }
.rank li span { margin-right: .5rem; }
.rank strong { color: var(--bronze-deep); }

/* ---------- dialog ---------- */
dialog {
  width: min(36rem, calc(100vw - 2rem)); max-height: calc(100% - 2rem); padding: 1.75rem;
  border: 0; border-radius: var(--r-m); color: var(--ink); background: var(--white);
  box-shadow: 0 20px 60px rgba(30, 32, 34, .35);
}
dialog::backdrop { background: rgba(47, 49, 51, .6); }
dialog h2 { font-size: 1.6rem; }
.dialog-lede { color: var(--muted); margin-top: .4rem; }
.check { display: flex; align-items: center; gap: .6rem; margin-top: 1.1rem; font-weight: 600; cursor: pointer; }
.check input { width: 1.2rem; height: 1.2rem; accent-color: var(--bronze); }
.dialog-actions { display: flex; justify-content: flex-end; gap: .5rem; margin-top: 1.5rem; }

/* ---------- toast + footer ---------- */
.toast {
  position: fixed; left: 50%; bottom: calc(1.5rem + env(safe-area-inset-bottom, 0px)); z-index: 60;
  transform: translate(-50%, 1rem); opacity: 0; pointer-events: none;
  max-width: calc(100vw - 2rem); padding: .8rem 1.2rem; border-radius: var(--r-s);
  background: var(--charcoal); color: var(--white); font-weight: 600; transition: opacity .2s, transform .2s;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.is-error { background: var(--red); }

.foot { border-top: 1px solid var(--line); background: var(--white); }
.foot-inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; padding-top: 1.5rem; padding-bottom: 1.5rem; color: var(--muted); font-size: .92rem; }
.foot-inner p { max-width: 42rem; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 2rem; padding-top: 2rem; }
  .hero-ring { flex-direction: row; flex-wrap: wrap; justify-content: flex-start; text-align: left; gap: .25rem 1.25rem; }
  .ring { width: 150px; }
  .ring-sub, .status { flex-basis: 100%; }
  .q-layout { grid-template-columns: minmax(0, 1fr); gap: 1.25rem; }
  .q-cats { position: static; }
  .cat-list { display: flex; gap: .4rem; overflow-x: auto; border: 0; padding-bottom: .25rem; }
  .cat-list button { margin: 0; border: 1.5px solid var(--line); border-radius: 999px; white-space: nowrap; background: var(--white); padding: .45rem .9rem; }
  .cat-list button[aria-pressed="true"] { border-color: var(--charcoal); background: var(--charcoal); color: var(--white); }
  .cat-list button[aria-pressed="true"] .count { color: var(--bronze-soft); }
  .layers { grid-template-columns: 1fr; }
  .kpis { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 1rem; }
  .tabs-ask { display: none; }
  .ask-fab {
    display: inline-flex; position: fixed; z-index: 30; right: 1rem;
    bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
    box-shadow: 0 8px 24px rgba(30, 32, 34, .3); border-radius: 999px; padding: .6rem 1.3rem;
  }
  main { padding-bottom: 6rem; }
  .open-block { padding: 1rem; margin-left: -.25rem; margin-right: -.25rem; }
  .open-q { grid-template-columns: 1fr; }
  .metoo { grid-column: 1; grid-row: auto; justify-self: start; margin-top: .5rem; }
  .qa-toggle { flex-wrap: wrap; }
  .qa-badges { order: 3; width: 100%; justify-content: flex-start; }
  .field-row { grid-template-columns: 1fr; }
  .bars li { grid-template-columns: 7.5rem 1fr 1.5rem; }
  .cells { grid-template-columns: repeat(10, 1fr); }
  dialog { padding: 1.25rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
