/* Seedling – Oberfläche. Farben als Tokens, dunkel als Standard, hell nach Systemeinstellung. */
:root {
  --bg: #141A22;
  --panel: #1A222D;
  --raised: #222C39;
  --hover: #26313F;
  --line: #2B3645;
  --line-strong: #3A4758;
  --text: #E3E8EF;
  --muted: #95A1B1;
  --faint: #66727F;
  --mint: #6FC2A0;
  --mint-ink: #0E281E;
  --mint-soft: rgba(111, 194, 160, .14);
  --amber: #E3A64A;
  --amber-soft: rgba(227, 166, 74, .15);
  --red: #E4716A;
  --red-soft: rgba(228, 113, 106, .14);
  --blue: #7FAEE6;
  --select: rgba(127, 174, 230, .14);
  --zone: rgba(228, 113, 106, .10);
  --shadow: 0 12px 40px rgba(0, 0, 0, .45);
  --font: "Segoe UI Variable Text", "Segoe UI", system-ui, sans-serif;
  --font-num: "Bahnschrift", "Segoe UI Variable Display", "DIN Alternate", "Roboto Condensed", system-ui, sans-serif;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root {
    --bg: #EDF0F3;
    --panel: #FFFFFF;
    --raised: #F4F6F8;
    --hover: #EEF2F6;
    --line: #DDE2E8;
    --line-strong: #C6CDD6;
    --text: #1A2330;
    --muted: #5A6675;
    --faint: #8A95A3;
    --mint: #2C8A64;
    --mint-ink: #FFFFFF;
    --mint-soft: rgba(44, 138, 100, .12);
    --amber: #A86C12;
    --amber-soft: rgba(168, 108, 18, .12);
    --red: #BF423A;
    --red-soft: rgba(191, 66, 58, .10);
    --blue: #2F6DB5;
    --select: rgba(47, 109, 181, .10);
    --zone: rgba(191, 66, 58, .08);
    --shadow: 0 12px 40px rgba(20, 30, 45, .18);
    color-scheme: light;
  }
}

* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font: 14px/1.45 var(--font);
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.num, td.num, th.num { font-family: var(--font-num); font-variant-numeric: tabular-nums; }

/* --- Grundgerüst ------------------------------------------------------------------------------ */
.shell { display: grid; grid-template-columns: 208px 1fr; height: 100vh; }
.side {
  background: var(--panel);
  border-right: 1px solid var(--line);
  padding: 18px 10px;
  overflow-y: auto;
}
.brand { display: flex; align-items: center; gap: 10px; padding: 0 10px 18px; font: 600 19px/1 var(--font-num); letter-spacing: .01em; }
.brand-mark { width: 26px; height: 26px; fill: none; stroke: var(--mint); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.nav-group { margin: 14px 10px 4px; font-size: 12px; color: var(--faint); }
.nav-item {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  width: 100%; padding: 7px 10px; border: 0; border-radius: 6px;
  background: transparent; color: var(--muted); text-align: left; cursor: pointer;
}
.nav-item:hover { background: var(--hover); color: var(--text); }
.nav-item[aria-current="page"] { background: var(--mint-soft); color: var(--text); box-shadow: inset 3px 0 0 var(--mint); }
.badge {
  min-width: 22px; padding: 0 7px; border-radius: 10px;
  font: 600 12px/20px var(--font-num); text-align: center;
  background: var(--raised); color: var(--muted);
}
.badge.act { background: var(--amber); color: #1B1306; }

.main { display: grid; grid-template-rows: auto 1fr auto; min-width: 0; height: 100vh; }
#page { overflow: auto; padding: 22px 26px 26px; min-width: 0; outline: none; }
.status {
  display: flex; align-items: center; gap: 22px; padding: 6px 26px;
  border-top: 1px solid var(--line); background: var(--panel);
  font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden;
}
.status .warn { color: var(--amber); }
.st-job { flex: 1; text-align: right; overflow: hidden; text-overflow: ellipsis; color: var(--text); }
.st-version { color: var(--faint); }
.spinner {
  display: inline-block; width: 11px; height: 11px; margin-right: 7px; vertical-align: -1px;
  border: 2px solid var(--line-strong); border-top-color: var(--mint); border-radius: 50%;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Update-Hinweis */
.banner {
  display: flex; align-items: center; gap: 14px; padding: 10px 26px;
  background: var(--mint-soft); border-bottom: 1px solid var(--line);
}
.banner p { margin: 0; flex: 1; }

/* --- Seitenkopf ------------------------------------------------------------------------------- */
.head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.head h1 { margin: 0 8px 0 0; font: 600 24px/1.1 var(--font-num); letter-spacing: .005em; }
.head .spacer { flex: 1; }
.search {
  width: 260px; padding: 7px 10px 7px 32px; border: 1px solid var(--line); border-radius: 6px;
  background: var(--raised) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2395A1B1' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") 9px center / 15px no-repeat;
}
.lede { margin: -6px 0 16px; color: var(--muted); max-width: 78ch; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px;
  border: 1px solid var(--line-strong); border-radius: 6px;
  background: var(--raised); color: var(--text); cursor: pointer; white-space: nowrap;
}
.btn:hover { background: var(--hover); }
.btn.primary { background: var(--mint); border-color: var(--mint); color: var(--mint-ink); font-weight: 600; }
.btn.primary:hover { filter: brightness(1.08); }
.btn.danger { color: var(--red); border-color: color-mix(in srgb, var(--red) 45%, transparent); background: transparent; }
.btn.danger:hover { background: var(--red-soft); }
.btn.ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn.ghost:hover { color: var(--text); background: var(--hover); }
.btn.small { padding: 4px 10px; font-size: 13px; }
.btn:disabled { opacity: .45; cursor: default; filter: none; }
kbd {
  font: 600 11px/1 var(--font-num); padding: 3px 5px; border-radius: 4px;
  background: rgba(0, 0, 0, .18); color: inherit; opacity: .8;
}
.link { background: none; border: 0; padding: 0; color: var(--blue); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

/* Filter */
.filters { display: flex; gap: 6px; margin-bottom: 12px; flex-wrap: wrap; align-items: center; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px;
  border: 1px solid var(--line); border-radius: 999px; background: transparent;
  color: var(--muted); cursor: pointer;
}
.chip:hover { color: var(--text); border-color: var(--line-strong); }
.chip[aria-pressed="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }
.chip .n { font: 600 12px var(--font-num); opacity: .75; }
.check { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); cursor: pointer; user-select: none; }
.check input { accent-color: var(--mint); width: 15px; height: 15px; }

/* --- Tabellen --------------------------------------------------------------------------------- */
.table-wrap { border: 1px solid var(--line); border-radius: 10px; background: var(--panel); overflow: auto; }
table { width: 100%; border-collapse: collapse; }
thead th {
  position: sticky; top: 0; z-index: 1;
  background: var(--raised); border-bottom: 1px solid var(--line);
  padding: 0; text-align: left; font-weight: 600; font-size: 12.5px; color: var(--muted); white-space: nowrap;
}
thead th button {
  display: flex; align-items: center; gap: 5px; width: 100%; padding: 9px 10px;
  background: none; border: 0; color: inherit; font: inherit; cursor: pointer; text-align: inherit;
}
thead th.num button { justify-content: flex-end; }
thead th button:hover { color: var(--text); }
thead th .arrow { font-size: 10px; color: var(--mint); }
th[data-tip] button { text-decoration: underline dotted var(--faint); text-underline-offset: 4px; }
tbody td { padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr { cursor: default; }
tbody tr.clickable { cursor: pointer; }
tbody tr:hover td { background: var(--hover); }
tbody tr.selected td { background: var(--select); }
tbody tr.selected td:first-child { box-shadow: inset 3px 0 0 var(--blue); }
td.num, th.num { text-align: right; }
td.name { max-width: 250px; overflow: hidden; text-overflow: ellipsis; }
td.dim, .dim { color: var(--faint); }
td.bad, .bad { color: var(--red); }
td.good, .good { color: var(--mint); }
td.cb, th.cb { width: 36px; padding-left: 12px; padding-right: 0; }
td.cb input, th.cb input { accent-color: var(--mint); width: 15px; height: 15px; vertical-align: middle; }
.icon-btn { width: 26px; height: 26px; border: 0; border-radius: 6px; background: transparent; color: var(--faint); font-size: 17px; line-height: 1; cursor: pointer; }
.icon-btn:hover { background: var(--red-soft); color: var(--red); }
.empty { padding: 34px 20px; text-align: center; color: var(--muted); }
.empty p { margin: 0 0 12px; }

/* Tooltip für Spaltenköpfe */
.tip {
  position: fixed; z-index: 50; max-width: 300px; padding: 8px 11px; border-radius: 6px;
  background: var(--text); color: var(--bg); font-size: 12.5px; line-height: 1.4; pointer-events: none;
  box-shadow: var(--shadow);
}

/* Markierungen */
.pill {
  display: inline-block; padding: 1px 9px; border-radius: 999px; font-size: 12.5px; font-weight: 600;
  border: 1px solid transparent; white-space: nowrap;
}
.pill.good { background: var(--mint-soft); color: var(--mint); }
.pill.good-soft { border-color: color-mix(in srgb, var(--mint) 40%, transparent); color: var(--mint); }
.pill.act { background: var(--amber); color: #1B1306; }
.pill.warn { background: var(--amber-soft); color: var(--amber); }
.pill.bad { background: var(--red-soft); color: var(--red); }
.pill.muted { border-color: var(--line-strong); color: var(--muted); font-weight: 500; }
.mark-hand { color: var(--amber); font-size: 11px; margin-left: 4px; }

/* --- Analyse mit Detailbereich ---------------------------------------------------------------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 18px; align-items: start; }
.split.no-detail { grid-template-columns: minmax(0, 1fr); }
.split > .table-wrap { max-height: calc(100vh - 220px); }
.detail {
  position: sticky; top: 0;
  background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 18px 18px 16px;
  max-height: calc(100vh - 220px); overflow: auto;
}
.detail h2 { margin: 0 0 8px; font: 600 19px/1.2 var(--font-num); }
.detail .pills { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.detail .action { margin: 2px 0 0; color: var(--muted); }
.price-hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; margin-bottom: 4px; }
.price-hero .label { color: var(--muted); font-size: 13px; }
.price-hero .value { font: 600 30px/1.05 var(--font-num); font-variant-numeric: tabular-nums; letter-spacing: -.005em; }
.price-hero .unit { font-size: 15px; color: var(--muted); margin-left: 4px; }
.detail-empty { color: var(--muted); padding: 26px 4px; text-align: center; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; margin: 14px 0 0; }
.facts div { min-width: 0; }
.facts dt { font-size: 12px; color: var(--muted); }
.facts dd { margin: 1px 0 0; font: 500 15px var(--font-num); font-variant-numeric: tabular-nums; }
.section-title { margin: 16px 0 6px; font-size: 13px; font-weight: 600; color: var(--muted); }

/* Die Preisleiter: wo liegen Break-even, Grenze, Konkurrenz, dein Preis und der empfohlene VK */
.ladder { position: relative; height: 10px; }
.ladder-track { position: absolute; inset: 0; border-radius: 5px; background: var(--raised); overflow: hidden; }
.ladder-zone { position: absolute; top: 0; bottom: 0; left: 0; background: repeating-linear-gradient(-45deg, var(--zone) 0 6px, transparent 6px 11px); border-right: 2px solid var(--amber); }
.ladder-mark { position: absolute; top: 0; height: 10px; width: 0; }
.ladder-mark .dot { position: absolute; left: 50%; top: -3px; width: 2px; height: 16px; transform: translateX(-50%); background: currentColor; }
.ladder-mark .dot.big { width: 14px; height: 14px; top: -2px; border-radius: 50%; border: 3px solid var(--panel); }
.ladder-mark .dot.ring { width: 14px; height: 14px; top: -2px; border-radius: 50%; border: 2px solid currentColor; background: var(--panel); }
.ladder { margin: 22px 4px 12px; }
.ladder-legend { list-style: none; margin: 0; padding: 0; display: grid; gap: 3px; }
.ladder-legend li { display: grid; grid-template-columns: 18px 1fr auto; align-items: center; gap: 8px; font-size: 13px; }
.ladder-legend .l { color: var(--muted); }
.ladder-legend .v { font-weight: 600; }
.sym { justify-self: center; display: inline-block; }
.sym.line { width: 2px; height: 12px; background: currentColor; }
.sym.big { width: 10px; height: 10px; border-radius: 50%; background: currentColor; }
.sym.ring { width: 10px; height: 10px; border-radius: 50%; border: 2px solid currentColor; }
.ladder-note { margin: 10px 0 0; font-size: 12.5px; color: var(--muted); }
.ladder-note.bad { color: var(--red); }

.spark { width: 100%; height: 70px; display: block; }
.spark-legend { display: flex; gap: 14px; font-size: 12px; color: var(--muted); margin-top: 4px; }
.spark-legend i { display: inline-block; width: 10px; height: 2px; margin-right: 5px; vertical-align: middle; }

/* --- Formulare und Bereiche ------------------------------------------------------------------- */
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; }
.panel h2 { margin: 0 0 4px; font: 600 16px var(--font-num); }
.panel .sub { margin: 0 0 12px; color: var(--muted); font-size: 13px; }
.cols-2 { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 18px; align-items: start; }
.stack { display: grid; gap: 14px; }
.field { display: grid; gap: 4px; }
.field label { font-size: 12.5px; color: var(--muted); }
input[type=text], input[type=number], input[type=password], textarea, select {
  padding: 7px 10px; border: 1px solid var(--line); border-radius: 6px; background: var(--raised);
}
input[type=text]:focus, input[type=password]:focus, textarea:focus, select:focus { border-color: var(--blue); outline: none; }
textarea { width: 100%; min-height: 230px; resize: vertical; font-size: 13px; line-height: 1.5; }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.msg { font-size: 13px; color: var(--muted); white-space: pre-line; }
.msg.bad { color: var(--red); }

/* Einstellungen */
.settings { display: grid; gap: 16px; max-width: 1020px; }
.settings .panel h2 { margin-bottom: 10px; }
.set-row { display: grid; grid-template-columns: 270px 190px minmax(0, 1fr); gap: 16px; align-items: center; padding: 7px 0; border-top: 1px solid var(--line); }
.set-row:first-of-type { border-top: 0; }
.set-row label { color: var(--text); }
.set-row .hint { color: var(--muted); font-size: 13px; }
.set-row input { width: 100%; text-align: right; font-family: var(--font-num); }
.set-row input.err { border-color: var(--red); }
.switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; }
.switch input { appearance: none; width: 36px; height: 20px; border-radius: 10px; background: var(--line-strong); position: relative; cursor: pointer; transition: background .15s; }
.switch input::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: var(--panel); transition: transform .15s; }
.switch input:checked { background: var(--mint); }
.switch input:checked::after { transform: translateX(16px); }
.diag { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; }
.diag li { display: grid; grid-template-columns: 18px 1fr; gap: 8px; }
.diag .ok { color: var(--mint); } .diag .no { color: var(--red); }

/* Lieferungen */
.ship-layout { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 18px; align-items: start; margin-bottom: 22px; }
.ship-list { display: grid; gap: 6px; max-height: 520px; overflow: auto; padding-right: 2px; }
.ship-card {
  display: grid; gap: 6px; width: 100%; padding: 11px 13px; text-align: left; cursor: pointer;
  background: var(--panel); border: 1px solid var(--line); border-radius: 10px;
}
.ship-card:hover { border-color: var(--line-strong); }
.ship-card[aria-current="true"] { border-color: var(--blue); box-shadow: inset 3px 0 0 var(--blue); }
.ship-card .top { display: flex; justify-content: space-between; gap: 8px; }
.ship-card .name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ship-card .meta { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--muted); }

/* Rückfluss: wie viel des Einsatzes ist schon zurück */
.payback { position: relative; height: 6px; border-radius: 3px; background: var(--raised); overflow: hidden; }
.payback span { position: absolute; inset: 0 auto 0 0; background: var(--amber); border-radius: 3px; }
.payback.done span { background: var(--mint); }
.payback.big { height: 10px; border-radius: 5px; margin: 8px 0 6px; }
.payback-text { font-size: 13px; color: var(--muted); }
.payback-text strong { color: var(--text); font-weight: 600; }

.kpis { display: flex; gap: 28px; flex-wrap: wrap; margin: 4px 0 12px; }
.kpi .k { font-size: 12px; color: var(--muted); }
.kpi .v { font: 600 18px var(--font-num); font-variant-numeric: tabular-nums; }
.kpi .v.good { color: var(--mint); } .kpi .v.bad { color: var(--red); }

/* Einkaufsliste */
.plan-bar { display: flex; gap: 14px; flex-wrap: wrap; align-items: flex-end; padding: 14px 16px; margin-bottom: 14px; }
.plan-bar .field input { width: 120px; text-align: right; font-family: var(--font-num); }
.plan-bar .field.short input { width: 80px; }
.plan-bar .toggles { display: grid; gap: 6px; margin-left: auto; }
.meters { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; margin: 4px 0 14px; }
.meter .top { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--muted); }
.meter .top b { font: 600 14px var(--font-num); color: var(--text); }
.meter .bar { height: 6px; border-radius: 3px; background: var(--raised); margin-top: 5px; overflow: hidden; }
.meter .bar span { display: block; height: 100%; background: var(--blue); }
td input.qty { width: 74px; padding: 3px 6px; text-align: right; font-family: var(--font-num); }
td input.qty.manual { border-color: var(--amber); }

/* Charaktere */
.char-list { display: grid; gap: 8px; max-width: 900px; }
.char { display: flex; align-items: center; gap: 14px; padding: 12px 16px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; }
.char .who { flex: 1; min-width: 0; }
.char .who b { display: block; }
.char .who span { font-size: 12.5px; color: var(--faint); font-family: var(--font-num); }
details.setup { max-width: 900px; margin-top: 18px; }
details.setup summary { cursor: pointer; color: var(--blue); }
details.setup ol { margin: 10px 0 0; padding-left: 20px; display: grid; gap: 6px; color: var(--muted); }
details.setup code { font-size: 12.5px; color: var(--text); background: var(--raised); padding: 1px 5px; border-radius: 4px; }

/* Dialog und Meldungen */
dialog {
  border: 1px solid var(--line-strong); border-radius: 12px; padding: 20px 22px; width: min(560px, 92vw);
  background: var(--panel); color: var(--text); box-shadow: var(--shadow);
}
dialog::backdrop { background: rgba(5, 9, 14, .55); }
dialog h2 { margin: 0 0 10px; font: 600 18px var(--font-num); }
dialog .body { color: var(--muted); }
dialog .actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; }
.reasons { display: grid; grid-template-columns: auto auto 1fr; gap: 8px 14px; align-items: baseline; }
.reasons .n { font: 600 16px var(--font-num); text-align: right; }
.reasons .r { font-weight: 600; color: var(--text); }
.toasts { position: fixed; right: 22px; bottom: 44px; display: grid; gap: 8px; z-index: 60; }
.toast {
  max-width: 420px; padding: 10px 14px; border-radius: 8px; background: var(--text); color: var(--bg);
  box-shadow: var(--shadow); font-size: 13.5px; white-space: pre-line;
}
.toast.bad { background: var(--red); color: #fff; }

/* Abmelden (nur Server) */
.nav-item.logout { margin-top: 14px; color: var(--faint); }

/* Anmeldeseite (nur Server) */
.login-body { min-height: 100vh; display: grid; place-items: center; padding: 16px; }
.login { width: min(360px, 100%); display: grid; gap: 22px; }
.login .brand { padding: 0; justify-content: center; font-size: 24px; }
.login .brand-mark { width: 32px; height: 32px; }
.login-form {
  display: grid; gap: 10px; padding: 22px; border-radius: 12px;
  background: var(--panel); border: 1px solid var(--line);
}
.login-form label { font-size: 13px; color: var(--muted); }
.login-form input { width: 100%; padding: 10px 12px; font-size: 16px; }
.login-form .btn { justify-content: center; padding: 10px 14px; margin-top: 6px; }
.login-error { margin: 0; color: var(--red); font-size: 13.5px; }

@media (max-width: 1100px) {
  .split, .cols-2, .ship-layout { grid-template-columns: minmax(0, 1fr); }
  .detail { position: static; max-height: none; }
  .set-row { grid-template-columns: 1fr 160px; }
  .set-row .hint { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  /* Handy: Seitenleiste wird zur waagerecht wischbaren Leiste oben */
  .shell { grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr); height: 100dvh; }
  .side {
    display: flex; align-items: center; gap: 6px; padding: 8px 10px;
    border-right: 0; border-bottom: 1px solid var(--line); overflow-x: auto; overflow-y: hidden;
    scrollbar-width: none;
  }
  .side::-webkit-scrollbar { display: none; }
  .brand { padding: 0 6px 0 2px; }
  .brand span { display: none; }
  #nav { display: flex; gap: 4px; }
  .nav-group { display: none; }
  .nav-item { width: auto; white-space: nowrap; padding: 7px 10px; }
  .nav-item[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--mint); }
  .nav-item.logout { margin-top: 0; }
  .hide-phone { display: none; }
  .split > .table-wrap { max-height: none; }
  td.name { max-width: 170px; white-space: normal; }
  .main { height: auto; min-height: 0; }
  #page { padding: 16px 12px; }
  .head h1 { font-size: 21px; }
  .search { width: 100%; }
  .status { padding: 6px 12px; gap: 12px; }
  #st-hub, #st-chars, .st-version { display: none; }
  .banner { padding: 10px 12px; flex-wrap: wrap; }
  .toasts { left: 12px; right: 12px; bottom: 40px; }
  .toast { max-width: none; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
