/* Shared styles: foundations and simulator; dedicated sections below own navigation, privacy and floating controls. */

/* Foundations, simulator, report controls and document dialogs */
:root {
  color-scheme: light;
  --bg: #f6f8f7;
  --panel: #fff;
  --ink: #203e3c;
  --muted: #647672;
  --line: #e0e8e4;
  --soft: #edf3f0;
  --a: #087f73;
  --a-soft: #e4f4ef;
  --b: #8461b7;
  --b-soft: #f0eaf8;
  --sleep: #e6eaf2;
  --work: #e4efe7;
  --notice: #f3efe3;
  --shadow: 0 5px 24px #193e3010;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #101e1d;
  --panel: #182a28;
  --ink: #e0efea;
  --muted: #a5bab1;
  --line: #314943;
  --soft: #203833;
  --a: #68d7bb;
  --a-soft: #23493e;
  --b: #c3a0f0;
  --b-soft: #3c3050;
  --sleep: #253143;
  --work: #264238;
  --notice: #383627;
  --shadow: none;
}
* {
  box-sizing: border-box;
}
body {
  background: var(--bg);
  margin: 0px;
  color: var(--ink);
  font: 14px / 1.55 "Segoe UI", system-ui, sans-serif;
}
button, input, select {
  font: inherit;
}
button, a, input, select, summary {
  -webkit-tap-highlight-color: transparent;
}
button {
  background: var(--panel);
  border: 1px solid var(--line);
  cursor: pointer;
  color: var(--ink);
  border-radius: 9px;
  padding: 9px 13px;
  font-weight: 600;
  transition: background 0.15s;
}
button:hover {
  background: var(--soft);
}
button:disabled {
  cursor: default;
  opacity: 0.5;
}
a {
  color: var(--a);
}
:focus-visible {
  outline: 3px solid var(--a);
  outline-offset: 3px;
}
.skip {
  background: var(--panel);
  position: absolute;
  top: -80px;
  padding: 15px;
  z-index: 9;
}
.skip:focus {
  top: 0px;
}
.brand {
  display: flex;
  gap: 10px;
  align-items: center;
  color: var(--ink);
  font-weight: 750;
  font-size: 29px;
  text-decoration: none;
  letter-spacing: -1px;
}
.brand-icon {
  background: var(--a);
  width: 39px;
  height: 39px;
  border-radius: 12px;
  color: var(--panel);
  font-size: 37px;
  line-height: 30px;
  text-align: center;
}
.top-actions {
  display: flex;
  gap: 20px;
  align-items: center;
}
main {
  max-width: 1456px;
  margin: auto;
  padding: 40px 28px 0px;
}
.intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 27px;
}
.eyebrow {
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 1.7px;
  color: var(--muted);
  margin: 0px 0px 9px;
}
h1 {
  font-size: clamp(29px, 3vw, 44px);
  line-height: 1.17;
  font-weight: 650;
  letter-spacing: -1.5px;
  margin: 0px 0px 17px;
}
h1 span {
  color: var(--a);
}
.lead {
  color: var(--muted);
  max-width: 590px;
  margin: 0px;
  font-size: 15px;
}
.intro-note {
  display: flex;
  gap: 15px;
  align-items: center;
  color: var(--muted);
  font-size: 13px;
  margin-right: 36px;
}
.intro-note > span {
  background: var(--a-soft);
  font-size: 36px;
  color: var(--a);
  width: 66px;
  height: 66px;
  border-radius: 50%;
  text-align: center;
}
.intro-note strong {
  font-weight: 500;
  color: var(--ink);
}
.notice {
  background: var(--notice);
  display: flex;
  gap: 12px;
  align-items: center;
  border-radius: 10px;
  padding: 12px 18px;
  margin-bottom: 25px;
  font-size: 12px;
}
.notice p {
  margin: 0px;
}
.notice > span {
  font-size: 18px;
}
.workspace {
  display: grid;
  grid-template-columns: 340px minmax(0px, 1fr);
  gap: 23px;
  align-items: start;
}
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 23px;
  box-shadow: var(--shadow);
  min-width: 0px;
}
.results {
  display: grid;
  gap: 22px;
  min-width: 0px;
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 22px;
}
h2 {
  font-size: 18px;
  line-height: 1.35;
  font-weight: 650;
  letter-spacing: -0.35px;
  margin: 0px;
}
.pill {
  background: var(--soft);
  font-size: 11px;
  padding: 4px 9px;
  border-radius: 20px;
  white-space: nowrap;
  color: var(--muted);
}
.tabs {
  background: var(--soft);
  display: flex;
  padding: 4px;
  border-radius: 10px;
  margin-bottom: 18px;
  gap: 4px;
}
.tabs button {
  flex: 1 1 0%;
  border: 0px;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
}
.tabs button span {
  font-weight: 500;
  margin-left: 7px;
}
.tabs [aria-selected="true"] {
  background: var(--panel);
  color: var(--a);
  box-shadow: rgba(0, 0, 0, 0.05) 0px 1px 5px;
}
.tabs #tab-b[aria-selected="true"] {
  color: var(--b);
}
.empty-editor {
  padding: 25px 12px 28px;
  text-align: center;
  color: var(--muted);
}
.empty-icon {
  border: 1px dashed var(--line);
  margin: 0px auto 13px;
  font-size: 27px;
  width: 55px;
  height: 55px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  color: var(--a);
}
.empty-editor strong {
  display: block;
  color: var(--ink);
  margin-bottom: 5px;
}
.empty-editor p {
  font-size: 12px;
  margin: 0px;
}
.primary {
  background: var(--a);
  border-color: var(--a);
  color: var(--panel);
}
.primary:hover {
  background: var(--a);
  filter: brightness(0.94);
}
.full {
  width: 100%;
}
.small-actions {
  display: flex;
  gap: 8px;
  margin-top: 11px;
  flex-wrap: wrap;
}
.small-actions button {
  font-size: 12px;
  flex: 1 1 0%;
  padding: 8px;
}
.settings, .storage {
  border-top: 1px solid var(--line);
  margin-top: 22px;
  padding-top: 17px;
}
summary {
  cursor: pointer;
  font-weight: 600;
}
summary span {
  font-size: 11px;
  font-weight: 400;
  color: var(--muted);
  margin-left: 5px;
}
.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 14px;
}
label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 11px;
  color: var(--muted);
  font-weight: 600;
}
input, select {
  background: var(--bg);
  border: 1px solid var(--line);
  width: 100%;
  min-width: 0px;
  color: var(--ink);
  padding: 8px 9px;
  border-radius: 7px;
  font-size: 13px;
  min-height: 39px;
}
input[aria-invalid="true"] {
  border-color: rgb(184, 84, 49);
}
.check {
  flex-direction: row;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 400;
}
.check input {
  width: 15px;
  height: 15px;
  min-height: 0px;
  accent-color: var(--a);
}
.hint {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.6;
}
.dose-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 13px;
  margin: 0px 0px 12px;
}
.dose-card legend {
  font-size: 11px;
  font-weight: 700;
  color: var(--a);
  padding: 0px 5px;
}
.dose-card .field-grid {
  margin-top: 10px;
  grid-template-columns: 1fr 1fr;
}
.dose-card > label {
  margin-bottom: 10px;
}
.dose-note {
  font-size: 11px;
  color: var(--muted);
  margin: 10px 0px 0px;
}
.error {
  font-size: 11px;
  color: rgb(170, 58, 39);
  margin-top: 7px;
}
.segments {
  background: var(--soft);
  display: flex;
  border-radius: 9px;
  padding: 3px;
  flex-shrink: 0;
}
.segments button {
  border: 0px;
  font-size: 11px;
  background: transparent;
  padding: 7px 10px;
  color: var(--muted);
}
.segments [aria-pressed="true"] {
  background: var(--panel);
  color: var(--ink);
  box-shadow: rgba(0, 0, 0, 0.05) 0px 1px 3px;
}
.chart-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}
.legend {
  display: flex;
  gap: 20px;
  font-size: 12px;
}
.legend span::before {
  border-top: 3px solid var(--a);
  content: "";
  display: inline-block;
  width: 22px;
  margin: 0px 7px 3px 0px;
}
.legend .legend-b::before {
  border-color: var(--b);
  border-top-style: dashed;
}
.chart-wrap {
  margin-top: 18px;
}
.chart-wrap h3 {
  font-size: 13px;
  font-weight: 600;
  margin: 0px 0px 8px;
}
.chart-wrap svg {
  display: block;
  width: 100%;
  height: auto;
  touch-action: pan-y;
}
.chart-wrap text {
  fill: var(--muted);
  font: 11px "Segoe UI", sans-serif;
}
.grid-line {
  stroke: var(--line);
  stroke-dasharray: 3, 5;
}
.curve {
  fill: none;
  stroke-width: 2.8;
  stroke-linejoin: round;
  stroke-linecap: round;
}
.line-a {
  stroke: var(--a);
}
.line-b {
  stroke: var(--b);
  stroke-dasharray: 8, 6;
}
.individual-curve {
  stroke-width: 1;
  opacity: 0.6;
}
.dose-mark {
  stroke-width: 1;
  opacity: 0.5;
}
.probe-line {
  stroke: var(--muted);
  stroke-dasharray: 3, 4;
}
.probe-controls {
  border-top: 1px solid var(--line);
  display: flex;
  align-items: end;
  gap: 12px;
  padding-top: 17px;
  margin-top: 16px;
}
.probe-controls label {
  width: 112px;
  flex-shrink: 0;
}
.probe-controls .hint {
  margin: 0px 0px 3px;
  max-width: 240px;
}
.chart-foot {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin: 13px 0px 0px;
  font-size: 10px;
  color: var(--muted);
}
.sleep-key::before, .work-key::before {
  background: var(--sleep);
  border: 1px solid var(--line);
  content: "";
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-right: 5px;
}
.work-key::before {
  background: var(--work);
}
.empty-chart {
  background: repeating-linear-gradient(0deg,transparent,transparent 49px,var(--line) 50px);
  position: relative;
  min-height: 250px;
  border-radius: 8px;
  display: grid;
  place-items: center;
}
.empty-chart > div {
  background: var(--panel);
  text-align: center;
  padding: 20px;
  max-width: 350px;
}
.empty-chart strong {
  font-size: 17px;
  font-weight: 600;
}
.empty-chart p {
  font-size: 12px;
  color: var(--muted);
}
.metric-group + .metric-group {
  border-top: 1px solid var(--line);
  padding-top: 20px;
  margin-top: 20px;
}
h3 {
  font-size: 14px;
}
.table-scroll {
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
caption {
  text-align: left;
  font-weight: 600;
  margin-bottom: 12px;
}
th, td {
  border-bottom: 1px solid var(--line);
  text-align: left;
  padding: 11px 12px;
  vertical-align: top;
}
th {
  background: var(--bg);
  font-size: 10px;
  color: var(--muted);
  font-weight: 650;
}
th:first-child, td:first-child {
  padding-left: 8px;
}
td small {
  display: block;
  color: var(--muted);
  font-size: 10px;
}
tbody tr:last-child td {
  border-bottom: 0px;
}
.value-a {
  color: var(--a);
  font-variant-numeric: tabular-nums;
}
.value-b {
  color: var(--b);
  font-variant-numeric: tabular-nums;
}
.metric-table td:not(:first-child) {
  font-weight: 600;
  width: 28%;
}
.metric-table .big td:not(:first-child) {
  font-size: 19px;
}
.metric-table .big small {
  font-weight: 400;
}
.muted {
  color: var(--muted);
}
.demo-label {
  background: var(--notice);
  padding: 9px;
  border-radius: 6px;
  font-size: 11px;
}
.half-row {
  margin: 12px 0px;
}
.half-row .input-unit {
  display: flex;
  align-items: center;
  gap: 8px;
}
.half-row input {
  width: 85px;
}
.half-row .custom {
  color: var(--b);
  font-size: 10px;
}
.method {
  margin-top: 26px;
}
.method > details > summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
}
.method summary .eyebrow {
  display: block;
  margin: 0px 0px 6px;
}
.method summary strong {
  display: block;
  font-size: 18px;
  color: var(--ink);
}
.method-body {
  margin-top: 22px;
  color: var(--muted);
  font-size: 13px;
}
.catalog {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 15px;
  margin-top: 22px;
}
.catalog article {
  background: var(--bg);
  border: 1px solid var(--line);
  padding: 18px;
  border-radius: 10px;
}
.catalog h3 {
  color: var(--ink);
  margin-top: 0px;
}
.catalog p {
  font-size: 12px;
}
.catalog a {
  display: inline-block;
  font-size: 12px;
  margin-right: 12px;
}
.catalog .source-date {
  font-size: 10px;
}
footer {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  align-items: center;
  padding: 28px 0px;
  font-size: 11px;
  color: var(--muted);
}
.brand-mini {
  font-weight: 700;
  font-size: 19px;
  color: var(--ink);
}
#status {
  background: var(--ink);
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  max-width: calc(-30px + 100vw);
  color: var(--panel);
  border-radius: 10px;
  padding: 12px 20px;
  box-shadow: var(--shadow);
  z-index: 20;
  font-size: 13px;
}
#status:empty {
  display: none;
}
dialog {
  background: var(--panel);
  border: 1px solid var(--line);
  color: var(--ink);
  border-radius: 16px;
  max-width: 430px;
  padding: 25px;
}
dialog::backdrop {
  background: rgba(21, 39, 35, 0.4);
}
[hidden] {
  display: none !important;
}
@media (max-width: 1100px) {
  .workspace {
    grid-template-columns: 300px minmax(0px, 1fr);
    gap: 16px;
  }
  .panel {
    padding: 18px;
  }
  .intro-note {
    display: none;
  }
  .chart-panel .section-heading {
    align-items: start;
    flex-direction: column;
  }
}
@media (max-width: 760px) {
  main {
    padding: 25px 16px 0px;
  }
  .workspace {
    grid-template-columns: 1fr;
  }
  .intro {
    margin-bottom: 22px;
  }
  h1 {
    font-size: 34px;
  }
  .lead {
    font-size: 14px;
  }
  .notice {
    align-items: start;
  }
  .panel {
    border-radius: 12px;
  }
  .editor {
    position: static;
  }
  .probe-controls {
    flex-wrap: wrap;
  }
  .probe-controls .hint {
    max-width: none;
    flex-basis: 100%;
  }
  .chart-toolbar {
    flex-wrap: wrap;
    gap: 12px;
  }
  .chart-wrap svg {
    min-height: 180px;
  }
  .section-heading {
    gap: 10px;
  }
  h2 {
    font-size: 17px;
  }
  footer {
    flex-wrap: wrap;
  }
  .method > details > summary {
    align-items: start;
  }
  .method > details > summary > span:last-child {
    max-width: 100px;
    text-align: right;
  }
  .metric-table td:first-child {
    min-width: 120px;
  }
  .metric-table .big td:not(:first-child) {
    font-size: 16px;
  }
}
#schedule table {
  min-width: 580px;
}
#dose-sort-label {
  margin-bottom: 12px;
}
.danger, .dose-card [data-action="remove"] {
  color: rgb(174, 62, 47);
  border-color: rgb(200, 123, 107);
}
.clear-variant {
  margin-top: 12px;
  font-size: 12px;
}
.dose-card .small-actions {
  grid-column: 1 / -1;
  margin-top: 0px;
}
.dose-card [data-action="remove"]::before {
  content: "× ";
  font-size: 16px;
}
.dose-card [data-action="remove"]::after {
  content: " dawkę";
}
:root[data-theme="dark"] .danger, :root[data-theme="dark"] .dose-card [data-action="remove"] {
  color: rgb(255, 177, 162);
}
.preparation-config {
  border: 1px solid var(--line);
  padding: 11px;
  border-radius: 8px;
  margin: 12px 0px;
}
.preparation-config summary {
  font-size: 12px;
}
.param-badge {
  color: var(--b);
}
.effect-timeline {
  border-top: 1px solid var(--line);
  margin-top: 12px;
  padding-top: 12px;
  font-size: 12px;
}
.effect-row p {
  font-size: 11px;
  margin: 9px 0px 2px;
}
.chart-wrap .effect-row svg {
  height: auto;
  min-height: 0px;
  cursor: default;
}
.effect-timeline {
  max-height: 300px;
  overflow: auto;
}
.now-marker {
  pointer-events: none;
}
.now-marker line {
  stroke: rgb(193, 100, 36);
  stroke-width: 1.7;
  stroke-dasharray: 5, 3;
}
.now-marker rect {
  fill: rgb(167, 73, 18);
}
.chart-wrap .now-marker text {
  fill: rgb(255, 255, 255);
  font-size: 11px;
  font-weight: 600;
}
.now-legend > span {
  color: rgb(193, 100, 36);
  font-size: 18px;
  font-weight: 700;
}
.chart-options {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 14px 0px;
}
.chart-options label {
  min-width: 230px;
}
.chart-options p {
  max-width: 450px;
}
.chart-inspector {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px;
  margin-top: 12px;
}
.readout-heading {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 13px;
}
.readout-heading > span {
  color: var(--muted);
  font-size: 12px;
}
.readout-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.readout-columns section {
  min-width: 0px;
}
.readout-columns h4 {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin: 8px 0px;
  font-size: 13px;
}
.readout-columns h4 strong {
  font-size: 19px;
}
.readout-columns p {
  font-size: 11px;
  color: var(--muted);
  margin: 6px 0px;
}
.readout-columns ul {
  padding: 0px;
  margin: 10px 0px;
  list-style: none;
  max-height: 220px;
  overflow: auto;
}
.readout-columns li {
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 11px;
  padding: 9px 0px;
}
.readout-columns li > strong {
  white-space: nowrap;
  text-align: right;
}
.readout-columns small {
  display: block;
  font-size: 10px;
  font-weight: 400;
  color: var(--muted);
}
#chart-tooltip {
  background: var(--panel);
  border: 1px solid var(--line);
  position: fixed;
  z-index: 30;
  pointer-events: none;
  box-shadow: rgba(0, 0, 0, 0.2) 0px 6px 30px;
  border-radius: 10px;
  padding: 13px;
  max-width: min(370px, -16px + 100vw);
  font-size: 12px;
}
#chart-tooltip > strong {
  display: block;
  margin-bottom: 8px;
}
#chart-tooltip small {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 10px;
}
.chart-wrap svg {
  cursor: crosshair;
}
@media (max-width: 760px) {
  .chart-options {
    display: block;
  }
  .readout-columns {
    grid-template-columns: 1fr;
  }
  .readout-heading {
    flex-wrap: wrap;
  }
}
@media print {
  #chart-tooltip, .chart-options {
    display: none !important;
  }
  .readout-columns ul {
    max-height: none;
    overflow: visible;
  }
  :root, :root[data-theme="dark"] {
    color-scheme: light;
    --bg: #fff;
    --panel: #fff;
    --ink: #203e3c;
    --muted: #526761;
    --line: #ccd8d1;
    --a: #087f73;
    --b: #8461b7;
    --sleep: #e6eaf2;
    --work: #e4efe7;
  }
  body {
    background: white;
    color: rgb(34, 34, 34);
    font-size: 10pt;
  }
  .intro-note, .editor, .segments, .chart-toolbar .check, .probe-controls, button, footer, #status, .method {
    display: none !important;
  }
  main {
    padding: 0px;
    max-width: none;
  }
  .intro h1 {
    font-size: 22pt;
  }
  .intro {
    margin-bottom: 10px;
  }
  .notice {
    background: rgb(244, 244, 244);
  }
  .workspace {
    display: block;
  }
  .results {
    gap: 12px;
  }
  .panel {
    box-shadow: none;
    border-radius: 0px;
    break-inside: avoid;
  }
  .curve {
    print-color-adjust: exact;
  }
  .chart-wrap svg {
    max-height: 250px;
  }
  .table-scroll {
    overflow: visible;
  }
  #schedule table {
    min-width: 0px;
  }
  th, td {
    font-size: 9pt;
    padding: 6px;
  }
  .section-heading {
    margin-bottom: 10px;
  }
  .chart-foot {
    color: rgb(68, 68, 68);
  }
}
@media screen {
  :root {
    --wash-mint: #ccece2;
    --wash-sage: #dbead6;
    --glass: rgb(255 255 255 / 72%);
    --glass-edge: rgb(255 255 255 / 88%);
    --glass-sheen: rgb(255 255 255 / 46%);
    --nav-start: rgb(132 193 166 / 46%);
    --nav-end: rgb(178 209 164 / 38%);
  }
  :root[data-theme="dark"] {
    --wash-mint: #194039;
    --wash-sage: #263a2b;
    --glass: rgb(24 42 40 / 77%);
    --glass-edge: rgb(185 224 217 / 16%);
    --glass-sheen: rgb(224 250 244 / 6%);
    --nav-start: rgb(9 30 24 / 48%);
    --nav-end: rgb(12 28 19 / 40%);
  }
  body {
    min-height: 100vh;
    background-color: var(--bg);
    background-image: radial-gradient(ellipse 58rem 36rem at 7% 5rem, var(--wash-mint), transparent 75%),
      radial-gradient(ellipse 48rem 28rem at 96% 17rem, var(--wash-sage), transparent 77%);
    background-size: 100% 42rem;
    background-repeat: no-repeat;
  }
  .panel {
    border-color: var(--glass-edge);
  }
  .brand-lockup {
    display: flex;
    line-height: 1;
  }
  .brand-name {
    display: flex;
    align-items: center;
    gap: 9px;
    letter-spacing: -0.8px;
  }
  .brand-name .brand-icon {
    width: 34px;
    height: 34px;
    font-size: 32px;
    line-height: 26px;
  }
  .brand-credit {
    display: flex;
    align-items: center;
    white-space: nowrap;
  }
  .brand-credit-by {
    color: var(--muted);
    font-size: 9px;
    font-weight: 400;
    letter-spacing: 0.03em;
  }
  .qcodes-signature {
    display: flex;
    align-items: center;
    color: var(--ink);
  }
  .qcodes-signature img {
    flex: 0 0 auto;
    width: 23px;
    height: 23px;
    object-fit: contain;
  }
  .qcodes-signature .qcodes-mark-dark {
    display: none;
  }
  :root[data-theme="dark"] .qcodes-mark-light {
    display: none;
  }
  :root[data-theme="dark"] .qcodes-signature .qcodes-mark-dark {
    display: block;
  }
  .qcodes-wordmark {
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.16em;
  }
  #doses-section, #chart-section, #comparison-section, #schedule-section, #method {
    scroll-margin-top: 16px;
  }
  .panel {
    background: linear-gradient(145deg,var(--glass-sheen),transparent 60%),var(--glass);
    box-shadow: inset 0 1px 0 var(--glass-edge), var(--glass-shadow);
  }
}
@media screen and (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}
@media screen {
  :root {
    --glass-shadow: 0 4px 16px rgb(37 75 70 / 5%);
  }
  :root[data-theme="dark"] {
    --glass-shadow: 0 4px 16px rgb(0 0 0 / 10%);
  }
  main {
    padding-top: 28px;
  }
  .intro {
    margin-bottom: 20px;
    gap: 24px;
  }
  h1 {
    font-size: clamp(27px, 2.8vw, 36px);
    letter-spacing: -1px;
    margin-bottom: 12px;
  }
  .lead {
    font-size: 14px;
    max-width: 760px;
  }
  .intro-note {
    display: none;
  }
  .notice {
    margin-bottom: 24px;
  }
  .brand-lockup {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }
  .workspace {
    gap: 24px;
  }
  .results {
    gap: 24px;
  }
  .panel {
    padding: 24px;
  }
  .section-heading {
    margin-bottom: 20px;
  }
  .eyebrow {
    font-size: 11px;
    letter-spacing: 1.3px;
    margin-bottom: 8px;
  }
  button {
    min-height: 40px;
  }
  input, select {
    font-size: 14px;
    min-height: 42px;
  }
  label, .hint, .dose-note, .error, .demo-label, .chart-foot, .catalog .source-date {
    font-size: 12px;
  }
  .hint {
    line-height: 1.55;
  }
  .field-grid {
    gap: 12px;
    margin-top: 16px;
  }
  .settings, .storage {
    margin-top: 20px;
    padding-top: 16px;
  }
  summary {
    line-height: 1.5;
  }
  summary span {
    font-size: 12px;
  }
  .settings > summary {
    min-height: 32px;
  }
  .small-actions {
    margin-top: 12px;
  }
  .small-actions button {
    font-size: 12px;
    font-weight: 500;
  }
  .clear-variant {
    border-color: transparent;
    background: transparent;
    font-size: 12px;
  }
  .tabs {
    margin-bottom: 16px;
  }
  .tabs button {
    min-height: 36px;
  }
  .segments button {
    font-size: 12px;
    min-height: 34px;
  }
  .chart-toolbar {
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
  }
  .chart-options {
    align-items: start;
    flex-wrap: wrap;
    gap: 12px 20px;
    margin: 16px 0px;
  }
  .chart-options label {
    min-width: 0px;
    width: 240px;
    max-width: 100%;
  }
  .chart-options > div {
    flex: 1 1 0%;
    min-width: 200px;
  }
  .chart-options .hint {
    margin: 0px 0px 6px;
  }
  .chart-options details {
    font-size: 12px;
    color: var(--muted);
    max-width: 480px;
  }
  .chart-options details summary {
    font-weight: 500;
    color: var(--ink);
  }
  .chart-options details p {
    margin-top: 8px;
  }
  .now-legend {
    margin: 12px 0px;
  }
  .chart-wrap {
    margin-top: 20px;
  }
  .chart-wrap h3 {
    font-size: 14px;
  }
  .chart-inspector {
    background: var(--soft);
    padding: 16px;
    border: 0px;
    border-radius: 10px;
  }
  .readout-heading {
    font-size: 14px;
    align-items: baseline;
    flex-wrap: wrap;
  }
  .readout-columns {
    gap: 24px;
  }
  .readout-columns h4 {
    align-items: baseline;
    flex-wrap: wrap;
    margin: 12px 0px 8px;
  }
  .readout-columns h4 strong {
    font-size: 22px;
    font-variant-numeric: tabular-nums;
  }
  .readout-columns p, .readout-columns li, .readout-columns small {
    font-size: 12px;
  }
  .readout-columns li {
    gap: 12px;
    padding: 12px 0px;
  }
  .readout-columns details {
    margin-top: 12px;
    font-size: 12px;
  }
  .readout-columns details summary {
    font-weight: 500;
  }
  .probe-controls {
    padding-top: 16px;
    margin-top: 20px;
    flex-wrap: wrap;
  }
  .probe-controls .hint {
    max-width: 320px;
  }
  table {
    font-size: 13px;
    font-variant-numeric: tabular-nums;
  }
  th, td {
    padding: 12px;
  }
  th, td small {
    font-size: 12px;
  }
  th {
    background: var(--soft);
  }
  .metric-table th:not(:first-child), .metric-table td:not(:first-child), td.numeric, th.numeric {
    text-align: right;
  }
  #schedule td:nth-child(3), #schedule th:nth-child(3), #schedule td:nth-child(4), #schedule th:nth-child(4) {
    text-align: right;
  }
  .metric-table td:not(:first-child) {
    width: 25%;
  }
  .metric-table .big td:not(:first-child) {
    font-size: 21px;
  }
  .method {
    margin-top: 24px;
  }
  .catalog {
    gap: 16px;
    grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  }
  .param-badge, .half-row .custom {
    color: var(--a);
    font-size: 12px;
  }
}
@media screen and (max-width: 1100px) {
  .workspace {
    grid-template-columns: 300px minmax(0px, 1fr);
    gap: 16px;
  }
  .panel {
    padding: 20px;
  }
  .readout-columns {
    gap: 16px;
  }
}
@media screen and (max-width: 800px) {
  .workspace {
    grid-template-columns: minmax(0px, 1fr);
  }
  main {
    padding: 24px 16px 0px;
  }
  .panel {
    padding: 16px;
  }
  .results {
    gap: 16px;
  }
  .chart-panel .section-heading {
    flex-flow: wrap;
  }
  .section-heading {
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
  }
  .readout-columns {
    grid-template-columns: minmax(0px, 1fr);
    gap: 12px;
  }
  .chart-options {
    display: flex;
  }
  .chart-toolbar {
    gap: 12px;
  }
  .probe-controls label {
    flex: 1 1 0%;
    min-width: 100px;
  }
  .probe-controls .hint {
    flex-basis: 100%;
    max-width: none;
  }
}
@media screen and (max-width: 400px) {
  .top-actions #theme span {
    display: none;
  }
  .metric-table th, .metric-table td {
    padding-inline: 6px;
  }
  .metric-table .big td:not(:first-child) {
    font-size: 17px;
  }
}
@media screen {
  .dose-card {
    padding: 0px;
    margin-bottom: 8px;
    background: transparent;
    border-radius: 10px;
  }
  .dose-summary {
    display: grid;
    grid-template-columns: minmax(0px, 1fr) auto;
    gap: 4px 8px;
    width: 100%;
    padding: 12px;
    border: 0px;
    border-radius: 10px;
    background: transparent;
    text-align: left;
  }
  .dose-summary-name {
    color: var(--ink);
    font-size: 13px;
    font-weight: 600;
    overflow-wrap: anywhere;
  }
  .dose-summary-meta {
    grid-column: 1;
    color: var(--muted);
    font-size: 12px;
    font-weight: 400;
    font-variant-numeric: tabular-nums;
  }
  .dose-chevron {
    grid-area: 1 / 2 / 3;
    align-self: center;
    color: var(--muted);
    font-size: 14px;
  }
  .dose-summary[aria-expanded="true"] {
    background: var(--soft);
    border-radius: 10px 10px 0px 0px;
  }
  .dose-fields {
    padding: 16px 12px;
  }
  .dose-fields > label {
    margin-bottom: 12px;
  }
  .dose-card .field-grid {
    gap: 12px;
    margin-top: 12px;
  }
  .dose-note {
    margin: 12px 0px 0px;
  }
  .data-settings > .storage:first-of-type {
    border-top: 0px;
    margin-top: 8px;
  }
  .scale-help {
    flex: 1 1 0%;
    min-width: min(220px, 100%);
  }
  .metric-table .metric-section th {
    text-align: left;
    background: transparent;
    padding-top: 20px;
    padding-bottom: 8px;
    color: var(--ink);
    font-weight: 600;
  }
  .summary-range {
    display: inline-block;
    margin-left: 8px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 400;
  }
  .readout-details {
    border-top: 1px solid var(--line);
    padding-top: 12px;
    margin-top: 12px;
    font-size: 12px;
  }
  .readout-details summary {
    font-weight: 500;
  }
  #theme {
    text-transform: uppercase;
    letter-spacing: 0.045em;
    font-size: 12px;
  }
  .notice {
    padding: 18px 22px;
    font-size: 14px;
    line-height: 1.65;
    border: 1px solid rgba(199, 166, 75, 0.333);
    align-items: flex-start;
  }
  .notice strong {
    display: block;
    font-size: 16px;
    margin-bottom: 3px;
  }
  .notice > span {
    font-size: 24px;
  }
  .market-label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-size: 12px;
    margin: 0px 0px 12px;
  }
  .pl-flag {
    display: inline-block;
    width: 18px;
    height: 12px;
    flex: 0 0 auto;
    border: 1px solid rgba(119, 119, 119, 0.333);
    border-radius: 2px;
    background: linear-gradient(rgb(255, 255, 255) 50%, rgb(220, 51, 72) 50%);
    vertical-align: middle;
  }
  .site-footer {
    border-top: 1px solid var(--line);
    display: grid;
    grid-template-columns: 160px 1fr 1fr;
    align-items: start;
    gap: 24px;
    margin-top: 24px;
    font-size: 12px;
    line-height: 1.7;
  }
  .footer-brand {
    display: grid;
    gap: 8px;
  }
  .footer-brand .brand-credit {
    padding: 0px;
  }
  .site-footer h3 {
    margin: 0px 0px 8px;
    color: var(--ink);
    font-size: 14px;
  }
  .site-footer p {
    margin: 0px 0px 8px;
  }
  .footer-bottom {
    border-top: 1px solid var(--line);
    grid-column: 1 / -1;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding-top: 16px;
  }
  @media (max-width: 760px) {
    .site-footer {
      grid-template-columns: 1fr;
    }
    .footer-bottom {
      flex-direction: column;
    }
    .notice {
      padding: 16px;
    }
  }
  :root {
    --muted: #4c625b;
  }
  :root[data-theme="dark"] {
    --muted: #bdcec7;
  }
  .chart-wrap text {
    font-family: Arial, Helvetica, sans-serif;
  }
  .hint, .dose-note, .dose-summary-meta, .catalog p, .site-footer, .readout-columns p, .readout-columns li, .readout-columns small {
    line-height: 1.6;
  }
  label, #theme, .segments button {
    font-weight: 600;
  }
  h1, h2, h3, .method summary strong {
    font-weight: 700;
  }
  .chart-wrap text {
    font-size: 12px;
  }
}
.footer-legal {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}
.footer-legal button {
  background: transparent;
  border: 0px;
  border-radius: 4px;
  padding: 4px 0px;
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 4px;
  font-size: 13px;
  min-height: 40px;
}
.footer-legal button:hover {
  color: var(--a);
  background: transparent;
}
#legal-dialog {
  width: min(720px, 100% - 32px);
  max-width: 720px;
  max-height: calc(100dvh - 40px);
  padding: 0px;
  overflow: auto;
  overscroll-behavior: contain;
}
.legal-heading {
  background: var(--panel);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  position: sticky;
  top: 0px;
}
.legal-heading h2 {
  font-size: 20px;
}
.legal-heading button {
  flex: 0 0 auto;
  font-size: 12px;
}
.legal-content {
  padding: 8px 24px 24px;
  font-size: 14px;
  line-height: 1.7;
}
.legal-content h3 {
  margin: 20px 0px 6px;
  font-size: 15px;
}
.legal-content p {
  margin: 0px 0px 12px;
}
@media (max-width: 480px) {
  .legal-heading {
    padding: 16px;
    gap: 10px;
  }
  .legal-heading h2 {
    font-size: 18px;
  }
  .legal-content {
    padding: 4px 16px 16px;
  }
}
@media print {
  #legal-dialog {
    display: none !important;
  }
}
@media screen {
  :root {
    --font-ui: Arial, Helvetica, sans-serif;
    --font-brand: "Segoe UI", system-ui, sans-serif;
    --text-body: 14px;
    --text-small: 12px;
    --text-help: 13px;
    --text-heading: 19px;
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-6: 24px;
    --space-8: 32px;
    --radius-control: 8px;
    --radius-panel: 14px;
    --control-edge: #70847b;
    --a: #006f65;
    --b: #7751a6;
    --focus: #00695f;
  }
  :root[data-theme="dark"] {
    --control-edge: #829c90;
    --focus: #83edcd;
    --a: #68d7bb;
    --b: #c3a0f0;
  }
  body {
    font-family: var(--font-ui);
    font-size: var(--text-body);
  }
  .brand, .brand-mini, .qcodes-wordmark {
    font-family: var(--font-brand);
  }
  button, input, select {
    border-radius: var(--radius-control);
  }
  button:not(.dose-summary):not(.clear-variant):not(.privacy-policy-link), input, select {
    border-color: var(--control-edge);
  }
  .primary {
    border-color: var(--a);
  }
  :focus-visible {
    outline: 3px solid var(--focus);
    outline-offset: 3px;
  }
  .hint, .dose-note, .dose-summary-meta, .catalog p, .site-footer, .readout-columns p, .readout-columns li, .readout-columns small {
    font-size: var(--text-help);
  }
  .eyebrow, .pill, .brand-credit-by, .qcodes-wordmark, .effect-row p, #chart-tooltip small, .chart-foot, .catalog .source-date, .half-row .custom, .demo-label, .error, .chart-wrap .now-marker text {
    font-size: var(--text-small);
  }
  h2 {
    font-size: var(--text-heading);
  }
  .panel {
    border-radius: var(--radius-panel);
  }
  .brand-credit {
    padding-left: 6px;
    gap: 4px;
  }
  .qcodes-signature {
    gap: 2px;
  }
  .legal-heading, .section-heading {
    flex-wrap: wrap;
  }
}
@media screen and (max-width: 480px) {
  .legal-heading {
    position: static;
  }
}
@media screen {
  button, a, input, select, summary {
    scroll-margin-block: 16px;
  }
}
@media (prefers-reduced-motion: reduce) {
  button {
    transition: none;
  }
  html {
    scroll-behavior: auto;
  }
}
.site-announcement {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 18px;
  margin-bottom: 12px;
  background: var(--a-soft);
  border: 1px solid var(--line);
  border-left: 3px solid var(--a);
  border-radius: 10px;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.6;
}
.site-announcement > div {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}
.site-announcement strong {
  display: block;
  font-size: 13px;
}
.site-announcement p {
  margin: 2px 0 0;
  white-space: pre-line;
}
.announcement-icon {
  color: var(--a);
  font-size: 19px;
  line-height: 1.4;
}
#dismiss-announcement {
  flex: none;
  display: grid;
  place-items: center;
  width: 32px;
  min-height: 32px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 22px;
  font-weight: 400;
}
#dismiss-announcement:hover {
  background: var(--panel);
}
@media(max-width:480px) {
  .site-announcement {
    padding: 12px;
    gap: 8px;
  }
}
@media print {
  .site-announcement {
    display: none !important;
  }
}

/* Navigation and responsive navbar */
.topbar {
  background: var(--panel);
  border-bottom: 1px solid var(--line);
  height: 85px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0px max(28px, -728px + 50vw);
}
@media (max-width: 760px) {
  .topbar {
    height: 68px;
    padding: 0px 16px;
  }
}
@media print {
  .topbar {
    display: none !important;
  }
}
@media screen {
  .topbar::after {
    background: linear-gradient(90deg,transparent,var(--muted),transparent);
    content: "";
    position: absolute;
    bottom: 0px;
    left: 15%;
    width: 70%;
    height: 1px;
    opacity: 0.18;
    pointer-events: none;
  }
  .topbar .brand {
    justify-self: start;
  }
  .topbar .top-actions {
    justify-self: end;
  }
  .top-nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    column-gap: clamp(16px, 2.5vw, 34px);
  }
  .top-nav a:hover {
    color: var(--a);
  }
  .top-nav a[aria-current] {
    color: var(--a);
    text-decoration: underline 1px;
    text-underline-offset: 7px;
  }
}
@media screen and (max-width: 780px) {
  .topbar {
    grid-template-columns: 1fr 1fr;
    height: auto;
    gap: 6px;
    padding: 12px 16px 8px;
  }
  .top-nav {
    grid-area: 2 / 1 / auto / -1;
    justify-self: center;
    column-gap: clamp(8px, 2.6vw, 20px);
  }
  .top-nav a {
    font-size: clamp(11px, 3.4vw, 13px);
  }
}
@media screen and (max-width: 1000px) {
  .topbar {
    grid-template-columns: 1fr auto;
    height: auto;
    gap: 8px;
    padding: 12px 16px 8px;
  }
  .top-nav {
    grid-area: 2 / 1 / auto / -1;
    justify-self: center;
    column-gap: clamp(8px, 2.6vw, 20px);
  }
  .top-nav a {
    font-size: clamp(11px, 3.4vw, 13px);
  }
}
@media screen {
  @media (max-width: 760px) {
    .top-nav {
      column-gap: 12px;
    }
    .top-nav a {
      font-size: 10px;
    }
  }
  .nav-icon {
    width: 16px;
    height: 16px;
    flex: 0 0 auto;
    fill: none;
    stroke: currentcolor;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    opacity: 0.7;
  }
  .top-nav a:hover .nav-icon {
    opacity: 1;
  }
  .top-nav a[aria-current] .nav-icon {
    opacity: 1;
  }
  @media (max-width: 400px) {
    .top-nav {
      column-gap: 10px;
    }
    .top-nav a {
      gap: 4px;
    }
    .nav-icon {
      width: 14px;
      height: 14px;
    }
  }
}
@media screen and (max-width: 1200px) {
  .top-nav {
    column-gap: 16px;
  }
}
@media screen and (max-width: 680px) {
  .top-nav {
    column-gap: 16px;
  }
}
@media screen {
  .top-nav a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    color: var(--ink);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.045em;
    font-weight: 600;
    gap: 7px;
    font-size: var(--text-small);
    white-space: normal;
    text-align: center;
    line-height: 1.4;
  }
  .topbar {
    border-color: var(--glass-edge);
    display: grid;
    gap: 12px;
    background: transparent;
    position: relative;
    border-bottom-color: transparent;
    grid-template-columns: minmax(0px, 1fr) auto minmax(0px, 1fr);
  }
  .topbar .brand-credit {
    transform: translateX(30%) scale(.75);
    transform-origin: left center;
  }
}
@media screen and (max-width: 1100px) {
  .topbar {
    grid-template-columns: 1fr auto;
    height: auto;
    gap: 8px;
    padding: 12px 16px 8px;
  }
  .top-nav {
    grid-area: 2 / 1 / auto / -1;
    justify-self: center;
    flex-wrap: nowrap;
    gap: 0px 16px;
  }
}
@media screen and (max-width: 760px) {
  .topbar { container-type: inline-size; }
  .top-nav {
    width: 100%;
    justify-content: center;
    column-gap: clamp(12px, 3.5cqw, 24px);
  }
  .top-nav a {
    font-size: clamp(9px, 2.75cqw, 12px);
    white-space: nowrap;
    gap: clamp(3px, 1cqw, 6px);
    letter-spacing: .025em;
  }
  .top-nav .nav-icon {
    width: clamp(12px, 3cqw, 15px);
    height: clamp(12px, 3cqw, 15px);
  }
}
@media screen and (max-width: 400px) {
  .top-nav a {
    gap: 3px;
  }
  .top-nav {
    column-gap: 12px;
  }
}

/* Privacy notice: desktop and mobile */
.privacy-notice {
  background: var(--panel);
  border: 1px solid var(--line);
  position: fixed;
  left: max(16px, env(safe-area-inset-left));
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 21;
  width: min(420px, calc(100% - max(16px, env(safe-area-inset-left)) - 16px));
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 16px;
  border-radius: 12px;
  box-shadow: var(--shadow);
  font-size: 12px;
}
.privacy-notice p {
  margin: 3px 0px 0px;
  color: var(--muted);
}
.privacy-notice button {
  margin-inline-start: auto;
}
@media (max-width: 480px) {
  .privacy-notice {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }
  body:has(#back-to-top:not([hidden])) .privacy-notice {
    width: min(420px, calc(100% - max(16px, env(safe-area-inset-left)) - max(16px, env(safe-area-inset-right)) - 52px));
  }
}
@media print {
  .privacy-notice {
    display: none !important;
  }
}
@media screen {
  .privacy-notice {
    width: min(380px, 100% - 32px);
    gap: 12px;
    padding: 12px;
    box-shadow: rgba(0, 0, 0, 0.07) 0px 4px 18px;
  }
  .privacy-notice button {
    padding: 7px 10px;
    font-size: 12px;
  }
}
@media screen and (max-width: 800px) {
  .privacy-notice {
    flex-direction: row;
    align-items: start;
  }
}
@media screen and (max-width: 400px) {
  .privacy-notice {
    flex-direction: column;
    gap: 8px;
  }
}
.privacy-notice {
  flex-wrap: wrap;
}
.privacy-notice > div {
  flex-basis: 100%;
}
.privacy-policy-link {
  border: 0px;
  background: transparent;
  padding: 4px 0px;
  font-size: 12px;
  color: var(--a);
  text-decoration: underline;
}
.privacy-notice .privacy-policy-link {
  margin-inline-start: 0;
  margin-inline-end: auto;
  padding-inline: 0;
  text-align: left;
  justify-self: start;
}
body .privacy-notice {
  bottom: calc(58px + env(safe-area-inset-bottom));
}
@media screen and (max-width: 760px) {
  .privacy-notice {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 4px 8px;
    padding: 8px;
    border-radius: 9px;
    font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
    font-size: 12px;
    line-height: 1.4;
  }
  .privacy-notice {
    width: min(320px, calc(100% - max(16px, env(safe-area-inset-left)) - max(96px, env(safe-area-inset-right))));
  }
  body:has(#back-to-top:not([hidden])) .privacy-notice {
    width: min(320px, calc(100% - max(16px, env(safe-area-inset-left)) - max(96px, env(safe-area-inset-right))));
  }
  .privacy-notice > div {
    grid-column: 1 / -1;
  }
  .privacy-notice p {
    margin-top: 3px;
    font-size: 12px;
    line-height: 1.4;
    font-weight: 400;
    letter-spacing: normal;
  }
  .privacy-notice button {
    min-height: 30px;
    margin: 0;
    padding: 4px 7px;
    font-family: inherit;
    font-size: 12px;
  }
  .privacy-notice .privacy-policy-link {
    padding-left: 0;
    text-align: left;
    justify-self: start;
  }
  .privacy-notice {
    background: rgb(255 255 255 / 93%);
    color: #203e3c;
    border: 1px solid #78958a;
    border-left: 3px solid #087f73;
    box-shadow: 0 5px 22px #102c352b;
  }
  .privacy-notice p {
    color: #405a51;
  }
  .privacy-notice #dismiss-privacy {
    background: #087f73;
    color: #fff;
    border-color: #087f73;
  }
  :root[data-theme="dark"] .privacy-notice {
    background: rgb(33 60 53 / 93%);
    color: #f0faf5;
    border-color: #70998a;
    border-left-color: #83edcd;
    box-shadow: 0 5px 24px #0008;
  }
  :root[data-theme="dark"] .privacy-notice p {
    color: #d4e6dc;
  }
  :root[data-theme="dark"] .privacy-notice #dismiss-privacy {
    background: #83edcd;
    color: #12382d;
    border-color: #83edcd;
  }
}

/* Floating navigation and parent-brand link */
@media screen {
  .back-to-top {
    background: var(--panel);
    border: 1px solid var(--line);
    position: fixed;
    right: max(16px, env(safe-area-inset-right));
    bottom: max(16px, env(safe-area-inset-bottom));
    z-index: 20;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    color: var(--a);
    box-shadow: var(--glass-shadow);
  }
  .back-to-top:hover {
    background: var(--soft);
  }
  .back-to-top svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentcolor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
  }
}
@media print {
  .back-to-top {
    display: none !important;
  }
}
.brand-return {
  position: fixed;
  bottom: max(14px, env(safe-area-inset-bottom));
  left: max(12px, env(safe-area-inset-left));
  z-index: 22;
  padding: 0;
}
.brand-return a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 30px;
  color: var(--muted);
  font-size: 13px;
  text-decoration: none;
}
.brand-return a:hover {
  color: var(--a);
  text-decoration: underline;
  text-underline-offset: 3px;
}
@media screen and (max-width: 760px) {
  .brand-return {
    left: auto;
    right: max(12px, env(safe-area-inset-right));
    width: 76px;
    text-align: center;
  }
  .brand-return a {
    justify-content: center;
  }
  .back-to-top {
    right: calc(max(12px, env(safe-area-inset-right)) + 16px);
    bottom: calc(62px + env(safe-area-inset-bottom));
  }
  .brand-return .qcodes-signature img {
    width: 18px;
    height: 18px;
  }
  .brand-return .qcodes-wordmark {
    font-size: 10px;
    letter-spacing: .12em;
  }
  .brand-return .qcodes-signature {
    gap: 2px;
  }
}
@media print {
  .brand-return {
    display: none !important;
  }
}
