/* 0x220E design tokens. Generated from design/tokens.json (2026-10-23); do not edit by hand.
   Each app sets its own accent on <html> (values in design/accents.json):
   style="--app-accent-light:#0e6b70; --app-accent-dark:#5ec4c9; --app-accent-soft-light:…; --app-accent-soft-dark:…; --app-accent-mid-light:…; --app-accent-mid-dark:…" */

@font-face { font-family: "JetBrains Mono"; src: url("fonts/JetBrainsMono-latin-wght.woff2") format("woff2");
  font-weight: 100 800; font-style: normal; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("fonts/JetBrainsMono-latin-wght-italic.woff2") format("woff2");
  font-weight: 100 800; font-style: italic; font-display: swap; }

:root {
  --bg: #f4f6f7;
  --card: #ffffff;
  --fg: #1f1f1f;
  --muted: #666666;
  --line: #d6dde1;
  --line-strong: #859097;
  --ok: #2f6b3a;
  --warn: #9a6400;
  --err: #a32020;
  --on-accent: #ffffff;
  --data-rest: #c9ccd2;
  --accent: var(--app-accent-light);
  --accent-soft: var(--app-accent-soft-light);
  --accent-mid: var(--app-accent-mid-light);
  --space-4: 4px;
  --space-8: 8px;
  --space-12: 12px;
  --space-16: 16px;
  --space-24: 24px;
  --space-48: 48px;
  --radius-sm: 4px;
  --radius: 6px;
  --radius-pill: 10px;
  --wrap: 860px;
  --label-width: 200px;
  --touch: 40px;
  --font-base: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #141719;
    --card: #1c2024;
    --fg: #e6e8e9;
    --muted: #9ba3a8;
    --line: #30373b;
    --line-strong: #6b757b;
    --ok: #7cc48a;
    --warn: #e0b057;
    --err: #f08080;
    --on-accent: #101418;
    --data-rest: #444851;
    --accent: var(--app-accent-dark);
    --accent-soft: var(--app-accent-soft-dark);
    --accent-mid: var(--app-accent-mid-dark);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #141719;
  --card: #1c2024;
  --fg: #e6e8e9;
  --muted: #9ba3a8;
  --line: #30373b;
  --line-strong: #6b757b;
  --ok: #7cc48a;
  --warn: #e0b057;
  --err: #f08080;
  --on-accent: #101418;
  --data-rest: #444851;
  --accent: var(--app-accent-dark);
  --accent-soft: var(--app-accent-soft-dark);
  --accent-mid: var(--app-accent-mid-dark);
  color-scheme: dark;
}
/* 0x220E components. Values from goms-home-alert's base.html unless marked "kit". */

* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--fg);
       font: 15px/1.5 var(--font-base); -webkit-text-size-adjust: 100%; }
a { color: var(--accent); }
h1 { font-size: 24px; line-height: 1.3; font-weight: 800; margin: 0 0 16px; }
h2 { font-size: 17px; line-height: 1.4; font-weight: 700; margin: 28px 0 10px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
code, .mono { font-family: var(--font-base); font-size: 13px; font-weight: 300; }
/* kit: italic for annotations, captions and chart event labels */
.note { font-size: 13px; font-style: italic; color: var(--muted); margin: 0; }

/* kit: one visible focus ring everywhere */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Layout */
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
main { padding: 24px 0 48px; }

/* Header: brand + tabs (goms), sticky and scrollable on phones (bundesrat-price) */
header.qed-header { position: sticky; top: 0; z-index: 10;
  border-bottom: 1px solid var(--line); background: var(--card); }
header.qed-header .wrap { display: flex; gap: 4px 20px; align-items: baseline;
  overflow-x: auto; scrollbar-width: none; }
header.qed-header .wrap::-webkit-scrollbar { display: none; }
.brand { font-weight: 800; color: var(--accent); text-decoration: none; margin-right: 8px;
  white-space: nowrap; display: inline-flex; align-items: center; gap: 8px; align-self: center; }
/* kit: the app logo drawn inline, so it follows accent and theme */
.mark { width: 20px; height: 20px; flex: none; }
.mark-bg { fill: var(--accent); }
.mark-fg { fill: var(--card); }
.mark-line { fill: none; stroke: var(--card); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
nav { display: flex; gap: 0 18px; }
nav a { color: var(--muted); text-decoration: none; padding: 14px 0; display: inline-block;
  white-space: nowrap; }
nav a.active, nav a:hover { color: var(--fg); }
nav a.active { box-shadow: inset 0 -2px 0 var(--accent); font-weight: 600; }
/* kit: theme switch, last item in the header */
.theme-switch { margin-left: auto; display: flex; gap: 2px; align-self: center; white-space: nowrap; }
.theme-switch button { font-weight: 400; font-size: 13px; padding: 3px 9px; border-radius: var(--radius-sm);
  border: 1px solid transparent; background: transparent; color: var(--muted); }
.theme-switch button[aria-pressed="true"] { border-color: var(--line-strong); color: var(--fg); font-weight: 600; }

/* Messages */
.msg { padding: 10px 14px; border-left: 3px solid var(--ok); background: var(--card); margin-bottom: 16px; }
.msg.err { border-color: var(--err); }

/* Cards */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px 16px; margin: 0 0 12px; }
.card.selected { background: var(--accent-soft); }
.title { font-size: 16px; font-weight: 600; margin: 0 0 4px; }
.title a { color: var(--fg); text-decoration: none; }
.title a:hover { text-decoration: underline; }
.meta { font-size: 13px; color: var(--muted); margin: 0; }

/* Tags */
.tag { display: inline-block; font-size: 12px; padding: 1px 8px; border-radius: var(--radius-pill);
  border: 1px solid var(--line); margin: 2px 4px 0 0; color: var(--muted); font-weight: 500; }
.tag.ok { border-color: var(--ok); color: var(--ok); }
.tag.warn { border-color: var(--warn); color: var(--warn); }
.tag.err { border-color: var(--err); color: var(--err); }
.tag.unknown { border-style: dashed; }

/* Tables */
table { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
th, td { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-weight: 600; color: var(--muted); }
td.num, th.num { text-align: right; }
.table-wrap { overflow-x: auto; }
.status-ok { color: var(--ok); }
.status-failed { color: var(--err); }
.status-running, .status-incomplete { color: var(--warn); }

/* Details */
details summary { cursor: pointer; color: var(--muted); }
details pre { white-space: pre-wrap; font-family: var(--font-base); font-size: 13px; font-weight: 300;
  background: var(--bg); padding: 8px; border-radius: var(--radius-sm); }

/* Forms */
form .row { display: grid; grid-template-columns: var(--label-width) 1fr; gap: 8px 16px;
  align-items: start; margin-bottom: 10px; }
form .row > label:first-child, form .row > span:first-child { padding-top: 7px; }
@media (max-width: 600px) {
  form .row { grid-template-columns: 1fr; }
  form .row > label:first-child { padding-top: 0; }
}
input[type=text], input[type=number], input[type=email], input[type=time], input[type=search],
select, textarea {
  width: 100%; padding: 7px 9px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  background: var(--bg); color: var(--fg); font: inherit; }
textarea { min-height: 70px; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.checks { display: flex; flex-wrap: wrap; gap: 4px 18px; padding-top: 7px; }
.hint { font-size: 13px; color: var(--muted); margin: 2px 0 0; }
.field-error { font-size: 13px; color: var(--err); margin: 2px 0 0; }

/* Buttons */
button, .button { font: inherit; padding: 8px 16px; border-radius: var(--radius-sm);
  border: 1px solid var(--accent); background: var(--accent); color: var(--on-accent);
  cursor: pointer; text-decoration: none; display: inline-block; font-weight: 600; }
button.secondary, .button.secondary { background: transparent; color: var(--accent); }
button.danger, .button.danger { background: transparent; border-color: var(--err); color: var(--err); }
button:disabled { opacity: .5; cursor: default; }
@media (max-width: 600px) { button, .button { min-height: var(--touch); } }
.actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

/* Stats */
.stats { display: flex; flex-wrap: wrap; gap: 8px 28px; font-variant-numeric: tabular-nums; }
.stats b { font-size: 28px; line-height: 1.2; font-weight: 300; display: block; }
.stats .up { color: var(--ok); }
.stats .down { color: var(--err); }

/* kit: empty state */
.empty { border: 1px dashed var(--line-strong); border-radius: var(--radius); padding: 24px 16px;
  text-align: center; color: var(--muted); }
.empty .title { color: var(--fg); }

/* kit: charts (inline SVG from qedkit.charts) */
.chart { display: block; width: 100%; height: auto; font: 12px var(--font-base); }
.chart .grid { stroke: var(--line); stroke-width: 1; }
.chart .axis { fill: var(--muted); }
.chart .lead { stroke: var(--accent); stroke-width: 2.5; fill: none; }
.chart .other { stroke: var(--line-strong); stroke-width: 1.5; fill: none; }
.chart .label-lead { fill: var(--accent); font-weight: 700; }
.chart .label-other { fill: var(--muted); }
.chart .marker { stroke: var(--muted); stroke-width: 1; stroke-dasharray: 3 3; }
.chart .marker-label { fill: var(--muted); font-style: italic; }
.spark { stroke: var(--accent); stroke-width: 2; fill: none; }
.bars { display: grid; gap: 6px; font-size: 13px; font-variant-numeric: tabular-nums; }
.bars .bar-row { display: grid; grid-template-columns: 140px 1fr 48px; gap: 8px; align-items: center; }
.bars .bar { display: flex; height: 14px; background: var(--bg); border-radius: 3px; overflow: hidden; }
.bars .part-1 { background: var(--accent); }
.bars .part-2 { background: var(--accent-mid); }
.bars .part-3 { background: var(--data-rest); }
.legend { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 13px; color: var(--muted); margin-top: 8px; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 6px; vertical-align: -1px; }

/* kit: footer and theme-dependent images. Not part of the design export (design/); the
   image switch follows BrandMark's on-light / on-dark, extended to the Auto theme. */
footer.qed-footer { border-top: 1px solid var(--line); }
footer.qed-footer .wrap { display: flex; flex-wrap: wrap; gap: 4px 16px; align-items: center;
  padding-top: 16px; padding-bottom: 24px; font-size: 13px; color: var(--muted); }
footer.qed-footer img { height: 14px; width: auto; vertical-align: middle; }
.on-dark { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .on-light { display: none; }
  :root:not([data-theme="light"]) .on-dark { display: inline; }
}
:root[data-theme="dark"] .on-light { display: none; }
:root[data-theme="dark"] .on-dark { display: inline; }
/* kit: figures and times in a table cell stay on one line (the table scrolls sideways
   on phones instead), e.g. start and duration in the Status section. */
td.num, td.nowrap { white-space: nowrap; }
/* kit: above phone width the header wraps instead of scrolling (the scrollbar is hidden),
   so the theme switch stays visible with many tabs; it moves to a second line. */
@media (min-width: 601px) {
  header.qed-header .wrap { flex-wrap: wrap; overflow-x: visible; }
}
/* kit: the theme switch is one button (Dunkel in the light theme, Hell in the dark one, via
   .on-light / .on-dark above), with a border so it reads as a control rather than a tab. */
.theme-switch button { border-color: var(--line-strong); color: var(--fg); }
/* kit: a card with one picture (ui.card(image=...)): a fixed 4:3 thumbnail on the left,
   cropped to fill its box, the text next to it; smaller on phones. */
.card.with-image { display: flex; gap: var(--space-16); align-items: flex-start; }
.card .thumb { flex: none; width: 96px; height: 72px; object-fit: cover; background: var(--bg);
  border: 1px solid var(--line); border-radius: var(--radius-sm); }
.card .card-body { flex: 1; min-width: 0; }
@media (max-width: 600px) {
  .card.with-image { gap: var(--space-12); }
  .card .thumb { width: 72px; height: 54px; }
}
/* kit: stories (ui.stories / ui.story), a list like a newspaper front page: lines instead
   of boxes, a red line above the title, a 3:2 picture on the right (above on phones). */
.stories { margin: 0 0 var(--space-24); }
.story { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-24);
  padding: var(--space-24) 0; border-bottom: 1px solid var(--line); align-items: start; }
.story:first-child { padding-top: var(--space-8); }
.story:last-child { border-bottom: 0; }
.story.with-image { grid-template-columns: minmax(0, 1fr) minmax(0, 0.72fr); }
.story:not(.with-image) .story-text { max-width: 640px; }
.story-text > p { margin: var(--space-12) 0 0; font-weight: 300; line-height: 1.6; }
.story .kicker { display: flex; flex-wrap: wrap; gap: var(--space-8); align-items: center; margin: 0;
  font-size: 13px; font-weight: 600; color: var(--accent); }
.story .badge { background: var(--accent); color: var(--on-accent); font-size: 11px; font-weight: 700;
  padding: 2px 6px; border-radius: var(--radius-sm); letter-spacing: 0.03em; }
.story-title { font-size: 22px; line-height: 1.3; font-weight: 700; margin: var(--space-8) 0 0;
  text-wrap: pretty; }
.story-title a { color: var(--fg); text-decoration: none; }
.story-title a:hover { text-decoration: underline; }
.story .story-foot { display: flex; flex-wrap: wrap; justify-content: space-between;
  align-items: baseline; gap: var(--space-4) var(--space-12); margin-top: var(--space-16);
  font-size: 13px; font-weight: 400; color: var(--muted); }
.story-image { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover;
  background: var(--bg); }
@media (max-width: 600px) {
  .story.with-image { grid-template-columns: minmax(0, 1fr); gap: var(--space-12); }
  .story-image { order: -1; }
  .story-title { font-size: 19px; }
}
/* kit: line chart since 0.6.0: light grid lines at the round time ticks, and markers as a
   line with a dot on top. "low" markers (routine events) are dotted and lighter. One marker
   is active: the one under the pointer, else the focused (tapped) one. Only it shows its
   label (date, time, title) and is drawn in the accent; the others fade. */
.chart .grid-x { stroke: var(--line); stroke-width: 1; stroke-dasharray: 2 4; }
.chart .mk { outline: none; transition: opacity 0.12s; }
.chart .mk .hit { stroke: transparent; stroke-width: 14; }
.chart .mk .dot { fill: var(--card); stroke: var(--muted); stroke-width: 1.5; }
.chart .mk.low .marker { stroke: var(--line-strong); stroke-dasharray: 1 3; }
.chart .mk.low .dot { r: 2; fill: var(--line-strong); stroke: none; }
.chart .mk .tip { opacity: 0; pointer-events: none; transition: opacity 0.12s; }
.chart .mk .tip rect { fill: var(--card); stroke: var(--accent); stroke-width: 1; }
.chart .mk .tip text { fill: var(--fg); }
.chart .mk:hover .marker, .chart:not(:has(.mk:hover)) .mk:focus .marker
  { stroke: var(--accent); stroke-width: 1.5; stroke-dasharray: none; }
.chart .mk:hover .dot, .chart:not(:has(.mk:hover)) .mk:focus .dot
  { r: 4; fill: var(--accent); stroke: var(--accent); }
.chart .mk:hover .tip, .chart:not(:has(.mk:hover)) .mk:focus .tip { opacity: 1; }
.chart:has(.mk:hover) .mk:not(:hover),
.chart:not(:has(.mk:hover)):has(.mk:focus) .mk:not(:focus) { opacity: 0.35; }
/* kit: line chart series: one series is active, the one whose line or end label is under the
   pointer, else the focused (tapped) one. It is drawn like the lead (accent, bold label); the
   other series fade. The labels are not selectable, so pointing at them selects no text. */
.chart .sr { outline: none; transition: opacity 0.12s; }
.chart .sr .hit { fill: transparent; }
.chart .sr text { -webkit-user-select: none; user-select: none; }
.chart .sr:hover .other, .chart:not(:has(.sr:hover)) .sr:focus .other
  { stroke: var(--accent); stroke-width: 2.5; }
.chart .sr:hover .label-other, .chart:not(:has(.sr:hover)) .sr:focus .label-other
  { fill: var(--accent); font-weight: 700; }
.chart:has(.sr:hover) .sr:not(:hover),
.chart:not(:has(.sr:hover)):has(.sr:focus) .sr:not(:focus) { opacity: 0.35; }
