/* ===========================================
   Punkfish-Rechner (Nitrox: MOD, Best Mix, EAD; Gas: AMV, Mindestgas)
   Farben der Größen wie im Unterricht:
   rot = (Partial-)Druck in bar, blau = Umgebungsdruck/Tiefe, grün = Anteil,
   lila = Gasmenge/Flasche, orange = Zeit, türkis = AMV, pink = Stressfaktor, gold = Helium
   =========================================== */

.nx {
  --ink: #211a46;
  --muted: #5d5878;
  --brand: #3b22a3;
  --brand-soft: #f6f3fb;
  --line: #e4dff0;
  --pg: #c0392b;
  --pg-soft: #fbeceb;
  --p: #2477b8;
  --p-soft: #e8f2fb;
  --fg: #1f8a4c;
  --fg-soft: #e8f6ee;
  --warn: #9a6400;
  --warn-soft: #fff6dd;
  --bad: #c43c3c;
  --bad-soft: #fdeeee;
  --gas: #6a3fb5;
  --gas-soft: #f1ebfb;
  --time: #b8680a;
  --time-soft: #fdf1e2;
  --vol: #0f8580;
  --vol-soft: #e4f5f4;
  --stress: #b5306b;
  --stress-soft: #fbe9f1;
  --he: #9a7400;
  --he-soft: #fbf3dc;

  max-width: 1040px;
  padding: clamp(16px, 3vw, 32px);
  border-radius: 18px;
  color: var(--ink);
  line-height: 1.45;
}
.nx *, .nx *::before, .nx *::after { box-sizing: border-box; }

/* ── Reiter zwischen den drei Rechnern ── */

.nx-tabs {
  display: inline-flex;
  gap: .25rem;
  margin-bottom: 1.25rem;
  padding: .25rem;
  border-radius: 999px;
  background: var(--brand-soft);
}
.nx-tab {
  padding: .4rem 1rem;
  border-radius: 999px;
  color: var(--brand);
  font-weight: 700;
  font-size: .92rem;
  text-decoration: none;
}
.nx-tab:hover { background: #ebe5f7; }
.nx-tab.is-active { background: var(--brand); color: #fff; }

/* ── Kopf ── */

.nx-hero { max-width: 720px; margin-bottom: 1.5rem; }
.nx-eyebrow {
  display: inline-block;
  margin: 0 0 .6rem;
  padding: .2rem .7rem;
  border-radius: 999px;
  background: var(--fg-soft);
  color: var(--fg);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.nx .nx-hero h1 {
  margin: 0 0 .5rem;
  font-size: clamp(1.6rem, 3.2vw, 2.2rem);
  line-height: 1.15;
  color: var(--ink);
}
.nx-intro { margin: 0; color: var(--muted); font-size: 1.02rem; }

/* ── Karten ── */

.nx-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}
.nx-card {
  padding: clamp(16px, 2.4vw, 24px);
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}
.nx-card h2 {
  margin: 0 0 1rem;
  font-size: 1.1rem;
  color: var(--ink);
}

/* ── Eingaben ── */

.nx-field { padding: .9rem 0; border-top: 1px solid var(--line); }
.nx-field:first-of-type { border-top: 0; padding-top: 0; }
.nx-field--pg { --c: var(--pg); --c-soft: var(--pg-soft); }
.nx-field--p  { --c: var(--p);  --c-soft: var(--p-soft); }
.nx-field--fg { --c: var(--fg); --c-soft: var(--fg-soft); }
.nx-field--gas  { --c: var(--gas);  --c-soft: var(--gas-soft); }
.nx-field--time { --c: var(--time); --c-soft: var(--time-soft); }
.nx-field--vol  { --c: var(--vol);  --c-soft: var(--vol-soft); }
.nx-field--stress { --c: var(--stress); --c-soft: var(--stress-soft); }
.nx-field--he { --c: var(--he); --c-soft: var(--he-soft); }

.nx-field__head label {
  display: block;
  margin-bottom: .45rem;
  font-weight: 700;
  font-size: .95rem;
}
.nx-field__head label::before {
  content: "";
  display: inline-block;
  width: .7em;
  height: .7em;
  margin-right: .45em;
  border-radius: 50%;
  background: var(--c);
  vertical-align: .02em;
}
.nx-field__row { display: flex; align-items: center; gap: .9rem; }

.nx input[type="range"] {
  flex: 1 1 auto;
  min-width: 0;
  accent-color: var(--c);
  height: 28px;
  cursor: pointer;
}
.nx-num {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
}
.nx-num:focus-within { border-color: var(--c); box-shadow: 0 0 0 3px var(--c-soft); }
.nx-num input {
  width: 4.6em;
  padding: .45rem .2rem .45rem .6rem;
  border: 0;
  outline: 0;
  font: inherit;
  font-weight: 700;
  font-size: 1.05rem;
  text-align: right;
  color: var(--ink);
  background: transparent;
  -moz-appearance: textfield;
}
.nx-num input::-webkit-outer-spin-button,
.nx-num input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.nx-num input.is-invalid { color: var(--bad); }
.nx-num__unit { padding: 0 .65rem 0 .25rem; color: var(--muted); font-size: .9rem; }

.nx-chips { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .55rem; }
.nx-chip {
  padding: .25rem .75rem;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  font: inherit;
  font-size: .85rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color .15s, background .15s, color .15s;
}
.nx-chip:hover { border-color: var(--c); color: var(--c); }
.nx-chip.is-active { border-color: var(--c); background: var(--c-soft); color: var(--c); }
.nx-chip:focus-visible, .nx-tab:focus-visible {
  outline: 3px solid rgba(59, 34, 163, .35);
  outline-offset: 2px;
}
.nx-field__hint { margin: .5rem 0 0; color: var(--bad); font-size: .88rem; }

/* ── Ergebnis ── */

.nx-result {
  display: flex;
  gap: 1rem;
  align-items: stretch;
  background: linear-gradient(160deg, #fff 0%, var(--brand-soft) 100%);
}
.nx-result__text { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.nx-result__label {
  margin: 0 0 .2rem;
  color: var(--muted);
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
}
.nx-result__value {
  margin: 0;
  font-size: clamp(2.4rem, 6vw, 3.4rem);
  font-weight: 800;
  line-height: 1.05;
  color: var(--brand);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.nx-result__sub { margin: .35rem 0 0; color: var(--muted); }
.nx-result__visual { flex: 0 0 auto; width: 220px; }
.nx-result--sac { flex-direction: column; }
.nx-result--sac .nx-notes { margin-top: 0; }
.nx-result--sac .nx-result__visual { width: 100%; max-width: 360px; }

.nx-notes { margin-top: auto; padding-top: 1rem; display: grid; gap: .5rem; }
.nx-note {
  margin: 0;
  padding: .55rem .8rem;
  border-radius: 10px;
  font-size: .9rem;
  border-left: 4px solid;
}
.nx-note--info { background: var(--p-soft); border-color: var(--p); }
.nx-note--warn { background: var(--warn-soft); border-color: #e5a50a; color: var(--warn); }
.nx-note--bad  { background: var(--bad-soft); border-color: var(--bad); color: var(--bad); }

/* Tiefenskala */
.nx-gauge { display: block; width: 100%; height: auto; overflow: visible; }
.nx-gauge__wave { fill: none; stroke: #fff; stroke-width: 2; opacity: .8; }
.nx-gauge__tick { stroke: var(--muted); stroke-width: 1; }
.nx-gauge__num, .nx-gauge__unit { fill: var(--muted); font-size: 12px; }
.nx-gauge__danger { fill: url(#nx-hatch); }
.nx-gauge__limit { stroke: var(--bad); stroke-width: 2.5; stroke-dasharray: 6 4; }
.nx-gauge__zone { fill: var(--bad); font-size: 12px; font-style: italic; }
.nx-gauge__label { font-size: 13px; font-weight: 700; }
.nx-gauge__label--limit { fill: var(--bad); }
.nx-gauge__label--nitrox { fill: var(--fg); }
.nx-gauge__label--air { fill: var(--muted); }
.nx-gauge__marker { stroke-width: 2.5; }
.nx-gauge__marker--nitrox { stroke: var(--fg); }
.nx-gauge__marker--air { stroke: #6f6a88; stroke-dasharray: 6 4; }
.nx-gauge__dot { stroke: #fff; stroke-width: 2; }
.nx-gauge__dot--nitrox { fill: var(--fg); }
.nx-gauge__dot--air { fill: #6f6a88; }

/* ── Herleitung ── */

.nx-explain__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1.5rem;
  align-items: start;
}
.nx-explain__formula {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
}
.nx-explain__steps h3 {
  margin: 0 0 .6rem;
  font-size: .85rem;
  color: var(--muted);
  letter-spacing: .03em;
  text-transform: uppercase;
}

.nx-diamond { width: 150px; height: 150px; flex: 0 0 auto; }
.nx-diamond__shape { fill: none; stroke: var(--ink); stroke-width: 2; stroke-linejoin: round; }
.nx-diamond__line { fill: none; stroke: var(--ink); stroke-width: 1.5; }
.nx-diamond__hit--pg { fill: var(--pg-soft); }
.nx-diamond__hit--p  { fill: var(--p-soft); }
.nx-diamond__hit--fg { fill: var(--fg-soft); }
.nx-diamond__txt { font-size: 19px; font-weight: 700; font-style: italic; }
.nx-diamond__txt--pg { fill: var(--pg); }
.nx-diamond__txt--p  { fill: var(--p); }
.nx-diamond__txt--fg { fill: var(--fg); }
.nx-diamond__txt.is-unknown { font-size: 24px; }

.nx-formula {
  display: block;
  font-size: 1.15rem;
  line-height: 2.4;
  word-spacing: .1em;
}
.nx-arrow { margin: 0 .5rem; color: var(--muted); }

.nx-v { font-weight: 700; white-space: nowrap; }
.nx-v--pg { color: var(--pg); }
.nx-v--p  { color: var(--p); }
.nx-v--fg { color: var(--fg); }
.nx-v--gas  { color: var(--gas); }
.nx-v--time { color: var(--time); }
.nx-v--vol  { color: var(--vol); }
.nx-v--stress { color: var(--stress); }
.nx-v--he { color: var(--he); }
.nx-v--res {
  padding: .05rem .45rem;
  border-radius: 6px;
  background: var(--brand-soft);
  color: var(--brand);
}

.nx-frac {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  vertical-align: middle;
  margin: 0 .15rem;
}
.nx-frac__top { padding: 0 .3rem .1rem; border-bottom: 1.5px solid currentColor; }
.nx-frac__bottom { padding: .1rem .3rem 0; }

.nx-steps { margin: 0; padding: 0; list-style: none; counter-reset: nx-step; display: grid; gap: .7rem; }
.nx-steps li {
  counter-increment: nx-step;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .3rem;
  padding-left: 2.1rem;
  position: relative;
  font-size: 1.02rem;
}
.nx-steps li::before {
  content: counter(nx-step);
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: .8rem;
  font-weight: 700;
}

.nx-disclaimer { margin: 1rem 0 0; color: var(--muted); font-size: .85rem; }

/* ── Schmal ── */

@media (max-width: 820px) {
  .nx-grid, .nx-explain__grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 460px) {
  .nx-result { flex-direction: column; }
  .nx-result__visual { width: 100%; max-width: 260px; }
  .nx-num input { width: 3.8em; }
}

/* Im WordPress-iframe (?minimal=true) ohne Außenrahmen */
html.pf-embed-minimal .nx { padding: 0 4px; border-radius: 0; box-shadow: none; }

/* ── Ergänzungen Gasplanung ── */

.nx-eyebrow--gas { background: var(--vol-soft); color: var(--vol); }

.nx-next {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  padding: .5rem 1rem;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  font-size: .92rem;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(59, 34, 163, .22);
}
.nx-next:hover { background: #2e1885; }
.nx-next:focus-visible { outline: 3px solid rgba(59, 34, 163, .35); outline-offset: 2px; }

.nx-explain__formula--stack { flex-direction: column; align-items: flex-start; }
.nx-legend { margin: 0; padding: 0; list-style: none; display: grid; gap: .3rem; font-size: .93rem; color: var(--muted); }
.nx-legend .nx-v { margin-right: .3rem; }

.nx-assume {
  width: 100%;
  padding: .8rem 1rem;
  border-radius: 12px;
  background: var(--brand-soft);
}
.nx-assume h3 {
  margin: 0 0 .4rem;
  font-size: .85rem;
  color: var(--muted);
  letter-spacing: .03em;
  text-transform: uppercase;
}
.nx-assume ul { margin: 0; padding-left: 1.1rem; display: grid; gap: .25rem; font-size: .93rem; }

/* Tauchprofil (AMV) */
.nx-prof { display: block; width: 100%; height: auto; }
.nx-prof__grid { stroke: var(--line); stroke-width: 1; }
.nx-prof__area { stroke: var(--p); stroke-width: 2; stroke-linejoin: round; }
.nx-prof__avg { stroke: var(--p); stroke-width: 1.5; stroke-dasharray: 5 4; opacity: .7; }
.nx-prof__label { fill: var(--ink); }

/* Finimeter (Mindestgas) */
.nx-mano { display: block; width: 100%; height: auto; }
.nx-mano__case { fill: #2b2550; }
.nx-mano__face { fill: #fff; }
.nx-mano__track { fill: none; stroke: #e7f4ec; stroke-width: 12; }
.nx-mano__red { fill: none; stroke: var(--bad); stroke-width: 12; }
.nx-mano__tick { stroke: var(--ink); stroke-width: 2; }
.nx-mano__needle { stroke: var(--ink); stroke-width: 3.5; stroke-linecap: round; }
.nx-mano__hub { fill: var(--ink); }
.nx-mano__unit { fill: var(--muted); font-size: 13px; font-weight: 700; }
.nx-mano__caption { fill: var(--bad); font-size: 11px; font-weight: 700; }

/* ── Erweitertes Mindestgas: Abschnitte, Buddy-Schalter, zwei Flaschen ── */

.nx-grid--wide { grid-template-columns: minmax(0, 1fr); }
.nx-inputs--sections {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 1.5rem;
}
.nx-section { min-width: 0; }
.nx-section + .nx-section { border-left: 1px solid var(--line); padding-left: 1.5rem; }
.nx-section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: .3rem .8rem;
  margin-bottom: .6rem;
}
.nx-section__head h2 { margin: 0; }
.nx-toggle {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .2rem .7rem;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: .85rem;
  font-weight: 700;
  cursor: pointer;
}
.nx-toggle input { accent-color: var(--brand); width: 1rem; height: 1rem; margin: 0; }
.nx-section.is-mirrored .nx-field { opacity: .5; }
.nx-section.is-mirrored .nx-field input,
.nx-section.is-mirrored .nx-chip { cursor: not-allowed; }

.nx-result--mingasPro { flex-wrap: wrap; align-items: center; }
.nx-result--mingasPro .nx-result__text { flex: 1 1 260px; }
.nx-result--mingasPro .nx-result__visual { flex: 1 1 420px; width: auto; }
.nx-result--mingasPro .nx-notes { margin-top: 0; }

.nx-bottles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.nx-bottle {
  --s: var(--fg);
  --s-soft: var(--fg-soft);
  padding: .8rem .6rem;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  background: #fff;
  text-align: center;
}
.nx-bottle--moderate { --s: #c27c0e; --s-soft: var(--warn-soft); }
.nx-bottle--critical, .nx-bottle--over { --s: var(--bad); --s-soft: var(--bad-soft); }
.nx-bottle--over { border-color: var(--bad); }
.nx-bottle__who { margin: 0; font-weight: 700; color: var(--muted); font-size: .85rem; text-transform: uppercase; letter-spacing: .03em; }
.nx-bottle__value { margin: .1rem 0 .2rem; font-size: 1.9rem; font-weight: 800; color: var(--brand); line-height: 1.1; }
.nx-bottle svg { display: block; width: 100%; max-width: 170px; height: auto; margin: 0 auto; }
.nx-bottle__valve { fill: #57527a; }
.nx-bottle__empty { fill: #f1f0f6; }
.nx-bottle__free { fill: #8fd3a8; }
.nx-bottle__min { fill: var(--bad); }
.nx-bottle__reserve { fill: #f0b54a; }
.nx-bottle__residual { fill: #8d8aa3; }
.nx-bottle__shell { fill: none; stroke: #2b2550; stroke-width: 3; }
.nx-bottle__mark { stroke: var(--ink); stroke-width: 2; stroke-dasharray: 5 3; }
.nx-bottle__marklabel { fill: var(--ink); }
.nx-bottle__status {
  display: inline-block;
  margin: .4rem 0 .5rem;
  padding: .2rem .8rem;
  border-radius: 999px;
  background: var(--s-soft);
  color: var(--s);
  font-weight: 700;
  font-size: .85rem;
}
.nx-bottle__legend { margin: 0; padding: 0; list-style: none; display: grid; gap: .15rem; font-size: .82rem; color: var(--muted); text-align: left; justify-content: center; }
.nx-dot { display: inline-block; width: .7em; height: .7em; margin-right: .4em; border-radius: 3px; vertical-align: -.03em; }
.nx-dot--free { background: #8fd3a8; }
.nx-dot--min { background: var(--bad); }
.nx-dot--reserve { background: #f0b54a; }
.nx-dot--residual { background: #8d8aa3; }

@media (max-width: 900px) {
  .nx-inputs--sections { grid-template-columns: minmax(0, 1fr); }
  .nx-section + .nx-section { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 1rem; margin-top: .4rem; }
}
@media (max-width: 460px) {
  .nx-bottles { gap: .5rem; }
  .nx-bottle__value { font-size: 1.5rem; }
}

/* ── Einzelne Rechner: Auswahl, Vorlagen, Kacheln, Gasdichte, Flaschen ── */

.nx-result__label:empty, .nx-result__value:empty, .nx-result__sub:empty { display: none; }
.nx-field__label { display: block; margin-bottom: .45rem; font-weight: 700; font-size: .95rem; }
.nx-field__label::before {
  content: "";
  display: inline-block;
  width: .7em;
  height: .7em;
  margin-right: .45em;
  border-radius: 50%;
  background: var(--c);
}
.nx-chips--choice { margin-top: 0; }
.nx-chips--choice .nx-chip { padding: .4rem 1rem; font-size: .92rem; }
.nx-break { display: block; height: .2rem; }

.nx-presets {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin: 0 0 1rem;
  padding: .8rem;
  border-radius: 12px;
  background: var(--brand-soft);
}
.nx-presets__title {
  flex-basis: 100%;
  margin: 0 0 .1rem;
  font-size: .8rem;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: .03em;
  text-transform: uppercase;
}
.nx-preset {
  padding: .35rem .8rem;
  border: 1.5px solid #d6cdee;
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: .85rem;
  cursor: pointer;
}
.nx-preset:hover { border-color: var(--brand); color: var(--brand); }
.nx-preset:focus-visible { outline: 3px solid rgba(59, 34, 163, .35); outline-offset: 2px; }

.nx-tiles { display: grid; gap: .8rem; }
.nx-tiles:empty { display: none; }
.nx-tile {
  padding: .8rem 1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}
.nx-tile__value {
  margin: .1rem 0;
  font-size: clamp(1.8rem, 4.5vw, 2.4rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--brand);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.nx-tile--up .nx-tile__value { color: var(--fg); }
.nx-tile--down .nx-tile__value { color: var(--bad); }
.nx-tile .nx-result__sub { margin: 0; font-size: .9rem; }

/* Gasdichte-Skala */
.nx-dbar { margin-top: .7rem; }
.nx-dbar__track { position: relative; display: flex; height: 10px; border-radius: 999px; overflow: visible; }
.nx-dbar__zone { height: 100%; }
.nx-dbar__zone--ok { background: #9edbb5; border-radius: 999px 0 0 999px; }
.nx-dbar__zone--warn { background: #f3cf7a; }
.nx-dbar__zone--bad { flex: 1; background: #ee9a9a; border-radius: 0 999px 999px 0; }
.nx-dbar__mark {
  position: absolute;
  top: -5px;
  width: 4px;
  height: 20px;
  margin-left: -2px;
  border-radius: 2px;
  background: var(--ink);
}
.nx-dbar__ticks { position: relative; height: 1.1rem; font-size: .72rem; color: var(--muted); }
.nx-dbar__ticks span { position: absolute; top: .15rem; transform: translateX(-50%); }
.nx-dbar__ticks span:first-child { transform: none; }
.nx-dbar__ticks span:last-child { transform: translateX(-100%); }
.nx-dbar__note { margin: .2rem 0 0; font-size: .8rem; color: var(--muted); }

/* Gemisch-Balken */
.nx-mix { margin-top: .4rem; padding-top: .9rem; border-top: 1px solid var(--line); }
.nx-mix__name { margin: 0 0 .4rem; font-weight: 700; font-size: .92rem; }
.nx-mix__bar { display: flex; height: 26px; border-radius: 8px; overflow: hidden; font-size: .75rem; font-weight: 700; color: #fff; }
.nx-mix__part { display: grid; place-items: center; white-space: nowrap; overflow: hidden; }
.nx-mix__part--o2 { background: var(--fg); }
.nx-mix__part--he { background: #c79a10; }
.nx-mix__part--n2 { background: #6f7f99; }

/* Flaschen im Wasser */
.nx-buoy { display: block; width: 100%; height: auto; }
.nx-buoy__cyl { fill: #e9e7f2; stroke: #2b2550; stroke-width: 3; }
.nx-buoy__kg { fill: var(--ink); font-size: 15px; font-weight: 800; }
.nx-buoy__unit { fill: var(--muted); font-size: 11px; }
.nx-buoy__label { fill: var(--ink); font-size: 13px; font-weight: 700; }
.nx-buoy__arrow { fill: none; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.nx-buoy__arrow--up { stroke: var(--fg); }
.nx-buoy__arrow--down { stroke: var(--bad); }
.nx-result--density, .nx-result--cylinders { flex-direction: column; }
.nx-result--density .nx-notes, .nx-result--cylinders .nx-notes { margin-top: 0; }
.nx-result--density .nx-result__visual { width: 100%; max-width: 240px; align-self: center; }
.nx-result--cylinders .nx-result__visual { width: 100%; max-width: 340px; align-self: center; }
@media (min-width: 461px) { .nx-tiles { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); } }
