/* Redact. One stylesheet for index, offline (cached by the service worker) and privacy-lab.
   No external assets: CSP is style-src 'self' and font/img sources are 'none'.

   Colour carries location. Ink is the document and everything that stays on this device.
   Cloud blue appears only on things that leave it: the send buttons, the Gemini step and
   the request Gemini received. Amber holds, red blocks. Redacted values are drawn as ink bars. */

:root {
  color-scheme: light dark;
  --ui: Seravek, "Gill Sans Nova", "Segoe UI Variable Text", "Segoe UI", "Noto Sans", system-ui, sans-serif;
  --mono: "SF Mono", ui-monospace, "Cascadia Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  --gutter: clamp(16px, 4vw, 32px);

  --paper: #eef1f4;
  --sheet: #ffffff;
  --ink: #18202e;
  --muted: #586273;
  --rule: #d6dce3;
  --rule-strong: #a9b3bf;

  --cloud: #2457c5;
  --cloud-ink: #ffffff;
  --cloud-tint: #e5ecfa;
  --hold: #8a5300;
  --hold-tint: #fbf0dc;
  --block: #a3261a;
  --block-tint: #fbe6e2;

  --bar: #18202e;
  --bar-text: #c9d1dc;
  --code: #1d2534;
  --code-text: #dce3ec;
  --focus: #18202e;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #161b22;
    --sheet: #1e242d;
    --ink: #e7ebf0;
    --muted: #9ba5b2;
    --rule: #2f3742;
    --rule-strong: #4c5765;
    --cloud: #84a9f6;
    --cloud-ink: #0d1730;
    --cloud-tint: #1b2640;
    --hold: #e3a94f;
    --hold-tint: #2c2313;
    --block: #f2907f;
    --block-tint: #341a1a;
    --bar: #000000;
    --bar-text: #a9b3c1;
    --code: #10141a;
    --code-text: #d6dde6;
    --bar-edge: #3a4452;
    --focus: #e7ebf0;
  }
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: var(--paper); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1rem/1.5 var(--ui);
  -webkit-font-smoothing: antialiased;
  font-variant-numeric: tabular-nums;
}
a { color: inherit; text-underline-offset: .2em; text-decoration-thickness: 1px; }
p { margin: 0; }
code { font-family: var(--mono); font-size: .9em; }
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
textarea:focus-visible { outline-offset: 1px; }

/* Frame */
.topbar, main { width: min(1240px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 3.5rem;
  border-bottom: 1px solid var(--rule);
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  color: var(--ink);
  font-size: 1.1875rem;
  font-weight: 700;
  letter-spacing: -.01em;
  text-decoration: none;
}
.wordmark .bar { width: 1.05em; height: .62em; background: var(--bar); box-shadow: inset 0 0 0 1px var(--bar-edge, transparent); border-radius: 1px; transform: translateY(.06em); }
.topbar nav { display: flex; align-items: center; gap: .25rem 1.25rem; flex-wrap: wrap; justify-content: flex-end; }
.topbar nav a, .link-button {
  color: var(--muted);
  font-size: .9375rem;
  text-decoration: none;
}
.topbar nav a:hover, .link-button:hover:not(:disabled) { color: var(--ink); text-decoration: underline; }
body:has(#history-panel[hidden]) .history-link { display: none; }
.mode { color: var(--muted); font-size: .9375rem; }
main { padding-bottom: 3rem; }
.notice { margin-top: 1rem; color: var(--hold); font-size: .9375rem; font-weight: 500; }
.notice:empty { display: none; }

/* Location markers: square = this device, ring = cloud */
.place, .key {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  white-space: nowrap;
}
.place::before, .key::before {
  content: "";
  flex: none;
  width: .5rem; height: .5rem;
  background: currentColor;
}
.place-cloud, .key-cloud { color: var(--cloud); }
:is(.place-cloud, .key-cloud)::before { background: transparent; border: 1.5px solid currentColor; border-radius: 50%; width: .6rem; height: .6rem; }

/* Route: a segmented progress line. Segment colour follows data-state. */
.map {
  display: flex;
  align-items: flex-end;
  gap: 2rem;
  padding: 1rem 0 .9rem;
  border-bottom: 1px solid var(--rule);
}
.route {
  flex: 1;
  min-width: 0;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  column-gap: .375rem;
}
.route-local { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.route li {
  --seg: var(--rule-strong);
  --tone: var(--muted);
  --fill: transparent;
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  column-gap: .5rem;
  padding-top: .6rem;
  border-top: 3px solid var(--seg);
}
.route li[data-where="cloud"] { --seg: color-mix(in srgb, var(--cloud) 35%, var(--rule)); }
.dot {
  width: .5625rem; height: .5625rem;
  background: var(--fill);
  border: 1.5px solid var(--tone);
}
.route li[data-where="cloud"] .dot { border-radius: 50%; width: .625rem; height: .625rem; }
.step-name { color: var(--muted); font-size: .9375rem; font-weight: 600; overflow-wrap: anywhere; }
.step-state {
  grid-column: 2;
  min-height: 1.25rem;
  color: var(--tone);
  font-size: .8125rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.step-state:empty::before { content: var(--word, ""); }

.route li[data-state="active"] { --seg: var(--ink); --tone: var(--ink); --word: "Running"; }
.route li[data-state="done"] { --seg: var(--ink); --tone: var(--ink); --fill: var(--ink); --word: "Done"; }
.route li[data-where="cloud"]:is([data-state="active"], [data-state="done"]) { --seg: var(--cloud); --tone: var(--cloud); }
.route li[data-where="cloud"][data-state="done"] { --fill: var(--cloud); }
.route li[data-state="held"] { --seg: var(--hold); --tone: var(--hold); --fill: var(--hold-tint); --word: "Held for you"; }
.route li[data-state="blocked"] { --seg: var(--block); --tone: var(--block); --fill: var(--block); --word: "Blocked"; }
.route li[data-state="failed"] { --seg: var(--block); --tone: var(--block); --word: "Did not finish"; }
.route li[data-state="skipped"] { --seg: var(--rule-strong); --word: "Not used"; border-top-style: dashed; }
.route li:is([data-state="active"], [data-state="done"], [data-state="held"], [data-state="blocked"], [data-state="failed"]) .step-name { color: var(--ink); }
.route li[data-state="active"] .dot { animation: blink 1.2s ease-in-out infinite; }

.route-key { display: flex; gap: 1rem; padding-bottom: 1.35rem; color: var(--muted); font-size: .8125rem; }
.key-device { color: var(--ink); }
.key::before { background: transparent; border: 1.5px solid currentColor; }
.key-cloud { color: var(--cloud); }

/* Workspace: the document and its redacted copy share one baseline grid */
.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  column-gap: 2rem;
  row-gap: 1.25rem;
  padding-top: 1.25rem;
}
.pane { min-width: 0; }
.pane-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem 1rem;
  flex-wrap: wrap;
  min-height: 2.5rem;
  margin-bottom: .5rem;
}
h2 { margin: 0; font-size: 1.0625rem; font-weight: 650; line-height: 1.3; }
h3 { margin: 0; font-size: .9375rem; font-weight: 650; line-height: 1.35; }
label { cursor: inherit; }
.pane-tools { display: inline-flex; gap: .5rem; flex-wrap: wrap; }
#counts { color: var(--muted); font-size: .875rem; }
#counts:empty { display: none; }
.pane-foot {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: .5rem 1rem;
  flex-wrap: wrap;
  margin-top: .625rem;
}
#input-help, #offline-input-help { color: var(--muted); font-size: .875rem; padding-top: .4rem; }
.selection-tools { display: inline-flex; gap: .5rem; flex-wrap: wrap; }

.sheet {
  display: block;
  margin: 0;
  width: 100%;
  height: clamp(15rem, 100svh - 25rem, 38rem);
  padding: 1rem 1.125rem;
  background: var(--sheet);
  color: var(--ink);
  border: 1px solid var(--rule);
  border-radius: 4px;
  font: .875rem/1.6 var(--mono);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  overflow: auto;
  tab-size: 4;
}
textarea.sheet { resize: vertical; }
textarea::placeholder { color: var(--muted); opacity: 1; }
body:has(#entities:not([hidden])) .workspace .sheet { height: clamp(12rem, 100svh - 33rem, 34rem); }
body:has(#route-review[data-state="pending"]) #payload { color: var(--muted); }

/* The redaction bar */
mark {
  background: var(--bar);
  box-shadow: inset 0 0 0 1px var(--bar-edge, transparent);
  color: var(--bar-text);
  border-radius: 2px;
  padding: .05em .3em;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

/* Private details list */
.entities { display: block; }
.entities p { margin: .25rem 0 .625rem; color: var(--muted); font-size: .875rem; max-width: 34rem; }
#entity-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: .375rem;
  max-height: 7.5rem;
  overflow: auto;
}
#entity-list li { min-width: 0; max-width: 100%; }
#entity-list button {
  min-height: 2.125rem;
  max-width: 100%;
  padding: .3rem .7rem;
  text-align: left;
  overflow-wrap: anywhere;
  font-size: .875rem;
  font-weight: 500;
}
#entity-list button::before { content: ""; flex: none; width: .5rem; height: .5rem; }
#entity-list button[aria-pressed="true"] { background: var(--sheet); border-color: var(--rule-strong); color: var(--ink); }
#entity-list button[aria-pressed="true"]::before { width: .9rem; height: .55rem; background: var(--bar); box-shadow: inset 0 0 0 1px var(--bar-edge, transparent); border-radius: 1px; }
#entity-list button[aria-pressed="false"] { background: var(--sheet); border: 1.5px solid var(--hold); color: var(--ink); }
#entity-list button[aria-pressed="false"]::before { border: 1.5px solid var(--hold); }
.entity-state { color: var(--muted); font-size: .8rem; }

/* Buttons */
button, .button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-height: 2.75rem;
  padding: 0 1.125rem;
  border: 1px solid var(--ink);
  border-radius: 6px;
  background: var(--ink);
  color: var(--sheet);
  font: 600 .9375rem/1.2 var(--ui);
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}
button:hover:not(:disabled) { background: color-mix(in srgb, var(--ink) 88%, var(--paper)); }
button.secondary, .button-link { background: transparent; color: var(--ink); border-color: var(--rule-strong); }
button.secondary:hover:not(:disabled), .button-link:hover { background: var(--sheet); border-color: var(--ink); }
button.small { min-height: 2.125rem; padding: 0 .75rem; font-size: .875rem; font-weight: 550; }
button:disabled { opacity: .45; cursor: default; }
.link-button {
  min-height: 2.75rem;
  padding: 0;
  border: 0;
  background: none;
  font-weight: 400;
}
.link-button:hover:not(:disabled) { background: none; }
.device-action::before { content: ""; flex: none; width: .5rem; height: .5rem; background: currentColor; }
.cloud-action { background: var(--cloud); border-color: var(--cloud); color: var(--cloud-ink); }
.cloud-action:hover:not(:disabled) { background: color-mix(in srgb, var(--cloud) 86%, var(--ink)); }
.cloud-action::before { content: ""; flex: none; width: .625rem; height: .625rem; border: 1.5px solid currentColor; border-radius: 50%; }

/* Dock: status on the left, this stage's action on the right */
.dock {
  grid-column: 1 / -1;
  position: sticky;
  bottom: 0;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "status actions" "note actions";
  align-items: center;
  column-gap: 2rem;
  row-gap: .35rem;
  padding: .875rem 0 1rem;
  background: var(--paper);
  border-top: 1px solid var(--rule);
}
.dock-status { grid-area: status; min-width: 0; }
.dock-actions { grid-area: actions; display: flex; gap: .625rem; flex-wrap: wrap; justify-content: flex-end; }
.dock-note { grid-area: note; color: var(--muted); font-size: .875rem; max-width: 44rem; }
.dock-note p + p { margin-top: .15rem; }
.dock-note code { color: var(--cloud); font-size: .8125rem; }
#firebase-status:empty { display: none; }

#status, #offline-status {
  display: flex;
  align-items: baseline;
  gap: .625rem;
  font-size: 1rem;
  font-weight: 550;
}
:is(#status, #offline-status)::before {
  content: "";
  flex: none;
  width: .5rem; height: .5rem;
  background: var(--muted);
  transform: translateY(-.1em);
}
:is(#status, #offline-status):empty { display: none; }
:is(#status, #offline-status):is([data-flow-stage="detecting"], [data-flow-stage="checking"])::before { background: var(--ink); animation: blink 1.2s ease-in-out infinite; }
:is(#status, #offline-status):is([data-flow-stage="preview"], [data-flow-stage="complete"], [data-flow-stage="local"])::before { background: var(--ink); }
#status:is([data-flow-stage="preparing"], [data-flow-stage="sending"])::before { background: transparent; border: 1.5px solid var(--cloud); border-radius: 50%; animation: blink 1.2s ease-in-out infinite; }
#status:is([data-flow-stage="held"], [data-flow-stage="cloud-unavailable"], [data-flow-stage="save-failed"])::before { background: var(--hold); }
:is(#status, #offline-status):is([data-flow-stage="check-failed"], [data-flow-stage="cloud-failed"], [data-flow-stage="response-held"])::before { background: var(--block); }
#offline-status[data-flow-stage="preview"]::before { background: var(--hold); }
body:has(#leak-reasons:not(:empty)) #status[data-flow-stage="held"]::before { background: var(--block); }
#sample-metrics { color: var(--muted); font-size: .8125rem; }
#sample-metrics summary { width: fit-content; cursor: pointer; }
#evaluation { margin-top: .25rem; }

.attachment-actions { margin-top: .75rem; }
.attachment { margin-top: .875rem; padding-top: .875rem; border-top: 1px solid var(--rule); }
.attachment .sheet { min-height: 11rem; }
.proof-panel {
  grid-column: 1 / -1;
  border: 1px solid var(--rule);
  border-left: 2px solid var(--ink);
  padding: .875rem 1rem;
}
.proof-verdict { font-weight: 600; font-size: .875rem; }
.proof-request { max-height: 17rem; margin-top: .75rem; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; }
.comparison { margin-block: .875rem; }
.comparison-rows {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
  gap: .5rem;
  margin: .5rem 0 0;
}
.comparison-rows > div { border: 1px solid var(--rule); padding: .625rem .75rem; }
.comparison-rows > div[data-result="different"] { border-left: 2px solid var(--hold); }
.comparison-rows dt { font-weight: 600; }
.comparison-rows dd { margin: .25rem 0 0; font-size: .875rem; }

/* One action per stage. Before detection: Find. After: Check and send. */
#check, #offline-draft, .note-review { display: none; }
body:has(#route-review:not([data-state="pending"])) :is(#check, #offline-draft) { display: inline-flex; }
body:has(#route-review:not([data-state="pending"])) .note-review { display: block; }
body:has(#route-review:not([data-state="pending"])) :is(#detect, .note-draft) { display: none; }
body:has(#request-panel:not([hidden])) #check,
body:has(#approve:not([hidden])) #check,
body:has(#retry-save:not([hidden])) #check,
body:has(#request-panel:not([hidden])) .note-review,
body:has(#answer-panel:not([hidden])) #check:disabled,
body:has(#answer-panel:not([hidden])):has(#check:disabled) .note-review { display: none; }
#retry-save { background: var(--ink); color: var(--sheet); border-color: var(--ink); }
#network-panel { margin-top: .25rem; }
#network-log { margin: .35rem 0; padding-left: 1.1rem; max-height: 8rem; overflow: auto; }
#split-control { display: block; }
.local-notes { margin-top: .65rem; }
.local-notes button, #explanation:not(:empty) { margin-top: .4rem; }

/* Held request: a small, plain caution right above the send */
.caution {
  grid-column: 1 / -1;
  padding: 1rem 1.25rem 1.125rem;
  background: var(--hold-tint);
  border: 1px solid color-mix(in srgb, var(--hold) 35%, transparent);
  border-left: 3px solid var(--hold);
  border-radius: 4px;
}
.caution h3 { display: flex; align-items: center; gap: .5rem; font-size: 1rem; }
.caution h3::before {
  content: "!" / "";
  display: grid;
  place-items: center;
  flex: none;
  width: 1.125rem; height: 1.125rem;
  border-radius: 50%;
  background: var(--hold);
  color: var(--sheet);
  font-size: .75rem;
  font-weight: 700;
}
.caution p { margin-top: .4rem; max-width: 46rem; font-size: .9375rem; }
#request-title:focus { outline: none; }
#request-title:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
#leak-reasons { color: var(--block); font-weight: 600; }
#leak-reasons:empty { display: none; }
.caution:has(#leak-reasons:not(:empty)) { background: var(--block-tint); border-color: color-mix(in srgb, var(--block) 35%, transparent); border-left-color: var(--block); }
.caution:has(#leak-reasons:not(:empty)) h3::before { background: var(--block); }
.caution:has(#leak-reasons:not(:empty)) :is(.review-guidance, .caution-actions) { display: none; }
.caution-actions { display: flex; justify-content: flex-end; margin-top: .875rem; }

pre:not(.sheet):not(.ledger) {
  margin: .75rem 0 0;
  max-height: 16rem;
  padding: .875rem 1rem;
  overflow: auto;
  background: var(--code);
  color: var(--code-text);
  border-radius: 4px;
  font: .8125rem/1.55 var(--mono);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

/* Answer, receipt, history */
.result, .history { margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid var(--rule); }
.result-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: .5rem 1rem;
  flex-wrap: wrap;
  margin-bottom: .875rem;
}
#answer-title { font-size: 1.25rem; }
#answer-title:focus { outline: none; }
#answer-title:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
#answer-status { color: var(--muted); font-size: .9375rem; }
#answer-status:empty { display: none; }
.split { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 2rem; }
.side { min-width: 0; }
.side h3 { margin-bottom: .5rem; }
.side .sheet { height: auto; max-height: 28rem; }
.side-device .sheet { border-top: 2px solid var(--ink); }
.side-cloud .sheet { border-top: 2px solid var(--cloud); }
#answer { font: 1rem/1.6 var(--ui); max-width: none; }
.disclosure { margin-top: .75rem; }
.disclosure summary, .receipt summary { cursor: pointer; font-size: .9375rem; font-weight: 600; }

.receipt {
  margin-top: 1.5rem;
  padding: .875rem 1.125rem;
  background: var(--sheet);
  border: 1px dashed var(--rule-strong);
  border-radius: 4px;
}
.receipt > summary span { margin-left: .5rem; color: var(--muted); font-weight: 400; }
.receipt > p { margin-top: .625rem; max-width: 46rem; color: var(--muted); font-size: .875rem; }
.receipt-hashes {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: .35rem 1rem;
  margin: .75rem 0;
  font-size: .875rem;
}
.receipt-hashes dt { font-weight: 600; }
.receipt-hashes dd { margin: 0; overflow-wrap: anywhere; }
.receipt-hashes code { font-size: .8125rem; }
.button-link { min-height: 2.5rem; }

#history-status { color: var(--muted); font-size: .9375rem; }
#history-status:empty { display: none; }
#history { list-style: none; margin: 0; padding: 0; max-width: 40rem; }
#history li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .5rem 0;
  border-bottom: 1px solid var(--rule);
}
#history li:first-child { border-top: 1px solid var(--rule); }
#history time { font-size: .9375rem; }
#history button { min-height: 2.125rem; padding: 0 .75rem; font-size: .875rem; }

/* Offline page */
.empty-note { color: var(--muted); font-size: .9375rem; padding-top: .5rem; }
.pane-result:has(pre:not([hidden])) .empty-note { display: none; }
.ledger {
  margin: 0 0 1rem;
  padding: .875rem 1.125rem;
  background: var(--sheet);
  border: 1px solid var(--rule);
  border-top: 2px solid var(--ink);
  border-radius: 4px;
  font: 500 1.125rem/1.75 var(--ui);
  white-space: pre-wrap;
}
#offline-redacted { height: auto; max-height: clamp(12rem, 100svh - 30rem, 30rem); }

/* Privacy tests page */
.lab { max-width: 44rem; padding-top: 2.5rem; }
.lab h1 { margin: 0; font-size: 1.75rem; font-weight: 650; letter-spacing: -.01em; }
.lab-intro { margin-top: .5rem; color: var(--muted); }
#lab-summary { margin-top: 1.5rem; font-size: 1.0625rem; font-weight: 600; }
#lab-results { margin: .75rem 0 1.5rem; padding-left: 1.75rem; line-height: 1.9; }
#lab-results li::marker { color: var(--muted); }

@keyframes blink { 50% { opacity: .3; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

@media (max-width: 900px) {
  .map { flex-direction: column; align-items: stretch; gap: .5rem; }
  .route-key { padding-bottom: 0; }
  .split { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
}
@media (max-width: 720px) {
  .route { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: .5rem; }
  .route li { padding-top: .4rem; }
  .step-name { font-size: .875rem; }
  .step-state { min-height: 0; font-size: .75rem; }
  .route-key { font-size: .75rem; }
  .route-local { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .workspace { grid-template-columns: minmax(0, 1fr); }
  .sheet, body:has(#entities:not([hidden])) .workspace .sheet { height: 13rem; font-size: .8125rem; padding: .75rem .875rem; }
  body:has(#route-review[data-state="pending"]) #payload { height: auto; }
  #offline-redacted { max-height: 18rem; }
  .dock {
    position: static;
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "status" "actions" "note";
    row-gap: .75rem;
  }
  .dock-actions { flex-direction: column-reverse; align-items: stretch; }
  .topbar nav { gap: .25rem .875rem; }
  .topbar nav a, .link-button { font-size: .875rem; }
}
@media (max-width: 420px) {
  .pane-tools, .selection-tools { width: 100%; }
  .pane-tools button, .selection-tools button { flex: 1 1 auto; }
}
