:root {
  /* Farben aus dem Knerler-Sales-Logo: Petrol/Türkis + Champagner/Creme */
  --bg: #f5f1eb;
  --surface: #ffffff;
  --surface-2: #f9f6f1;
  --ink: #10262d;
  --muted: #5b6b70;
  --line: #e5ddd1;
  --brand: #00789a;          /* Buttons, Balken, aktive Auswahl */
  --brand-ink: #ffffff;
  --brand-bright: #00a3c4;   /* Türkis aus dem Logo */
  --topbar: #0b2b35;         /* dunkles Petrol */
  --topbar-ink: #efe3d3;     /* Creme aus dem Logo */
  --accent: #c49a52;         /* Champagner/Gold für Hervorhebungen */
  --accent-soft: #efe3d3;
  --accent-ink: #2b2113;
  --good: #16865a;
  --bad: #c43d3d;
  --track: #e8e1d6;
  --gold: #d4aa4f;
  --silver: #8d99a8;
  --bronze: #b0703c;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(16, 38, 45, .06), 0 4px 14px rgba(16, 38, 45, .06);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #061a20;
    --surface: #0c252d;
    --surface-2: #11303a;
    --ink: #efe9e0;
    --muted: #9fb3b8;
    --line: #1c3d47;
    --brand: #1fb5d1;
    --brand-ink: #03161b;
    --brand-bright: #2cc3de;
    --topbar: #04141a;
    --topbar-ink: #efe3d3;
    --accent: #d8b673;
    --accent-soft: #3a3226;
    --accent-ink: #1f1709;
    --good: #3cc48a;
    --bad: #f07272;
    --track: #1b3a44;
    --shadow: none;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  min-height: 100dvh;
}
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
.hidden { display: none !important; }

/* Layout ----------------------------------------------------------------- */
.topbar {
  position: sticky; top: 0; z-index: 5;
  background: var(--topbar); color: var(--topbar-ink);
  padding: calc(env(safe-area-inset-top) + 10px) 16px 10px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: .2px; }
.brand img { width: 34px; height: 34px; }
.brand { color: var(--topbar-ink); }
.brand small { display: block; font-weight: 500; opacity: .75; font-size: 12px; letter-spacing: 0; }
.icon-btn {
  background: rgba(239,227,211,.14); border: 0; color: inherit; border-radius: 10px;
  padding: 8px 12px; font-size: 14px;
}
main {
  max-width: 640px; margin: 0 auto;
  padding: 16px 16px calc(96px + env(safe-area-inset-bottom));
}
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 5;
  display: flex; justify-content: center;
  background: var(--surface); border-top: 1px solid var(--line);
  padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
}
.tabbar button {
  flex: 1; max-width: 200px; border: 0; background: none; color: var(--muted);
  padding: 8px 4px; border-radius: 12px; font-size: 13px; font-weight: 600;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
}
.tabbar button svg { width: 24px; height: 24px; }
.tabbar button[aria-current="page"] { color: var(--brand); background: var(--surface-2); }


/* Karten ----------------------------------------------------------------- */
.card {
  background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow);
  border: 1px solid var(--line); padding: 16px; margin-bottom: 14px;
}
.card h2 { font-size: 15px; margin: 0 0 12px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .5px; }
.card h3 { font-size: 17px; margin: 0 0 8px; }
.row { display: flex; align-items: center; gap: 10px; }
.between { justify-content: space-between; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.big-number { font-size: 56px; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
.num { font-variant-numeric: tabular-nums; }
.good { color: var(--good); }
.bad { color: var(--bad); }

/* Buttons & Formulare ------------------------------------------------------ */
.btn {
  border: 0; border-radius: 12px; padding: 12px 16px; font-weight: 700;
  background: var(--brand); color: var(--brand-ink); min-height: 48px;
}
.btn.accent { background: linear-gradient(135deg, var(--brand-bright), var(--brand)); color: #fff; box-shadow: 0 2px 8px color-mix(in srgb, var(--brand) 30%, transparent); }
@media (prefers-color-scheme: dark) { .btn.accent { color: var(--brand-ink); } }
.btn.ghost { background: var(--surface-2); color: var(--ink); border: 1px solid var(--line); }
.btn.danger { background: transparent; color: var(--bad); border: 1px solid var(--line); }
.btn.block { width: 100%; }
.btn:disabled { opacity: .5; cursor: default; }
.btn.small { min-height: 36px; padding: 6px 12px; font-size: 14px; border-radius: 10px; }

label { display: block; font-size: 14px; font-weight: 600; margin: 12px 0 6px; }
input[type=text], input[type=password], input[type=number], input[type=search], select {
  width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--surface-2); min-height: 48px; font-size: 17px;
}
input:focus, select:focus, button:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand-bright) 70%, transparent); outline-offset: 1px; }
.error { color: var(--bad); font-size: 14px; margin-top: 10px; min-height: 1em; }
.hint { font-size: 13px; color: var(--muted); margin-top: 8px; }

/* Segment-Umschalter ------------------------------------------------------- */
.segment { display: flex; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 4px; margin-bottom: 14px; }
.segment button { flex: 1; border: 0; background: none; padding: 9px 6px; border-radius: 9px; font-weight: 600; color: var(--muted); }
.segment button[aria-pressed="true"] { background: var(--brand); color: var(--brand-ink); }

/* Heute-Eingabe ------------------------------------------------------------ */
.today-card { text-align: center; }
.stepper-big { display: flex; align-items: center; justify-content: center; gap: 18px; margin: 10px 0 14px; }
.round {
  width: 56px; height: 56px; border-radius: 50%; border: 1px solid var(--line);
  background: var(--surface-2); font-size: 28px; font-weight: 700; line-height: 1;
}
.plus-one { font-size: 22px; min-height: 64px; border-radius: 16px; }
.save-state { font-size: 13px; color: var(--muted); height: 18px; margin-top: 8px; }

/* Fortschritt -------------------------------------------------------------- */
.progress { position: relative; height: 12px; background: var(--track); border-radius: 99px; overflow: visible; margin: 10px 0 6px; }
.progress .fill { height: 100%; background: var(--brand); border-radius: 99px; max-width: 100%; }

.progress .fill.over { background: var(--good); }
.progress .soll { position: absolute; top: -4px; bottom: -4px; width: 3px; background: var(--accent); border-radius: 2px; transform: translateX(-1px); }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.stat { background: var(--surface-2); border-radius: 12px; padding: 10px; text-align: center; }
.stat b { display: block; font-size: 22px; font-variant-numeric: tabular-nums; }
.stat span { font-size: 12px; color: var(--muted); }

/* Tagesliste --------------------------------------------------------------- */
.days { list-style: none; margin: 0; padding: 0; }
.days li { display: flex; align-items: center; justify-content: space-between; padding: 8px 0; border-top: 1px solid var(--line); }
.days li:first-child { border-top: 0; }
.days li.weekend .day-label { color: var(--muted); }
.days li.is-today .day-label { font-weight: 700; }
.stepper { display: flex; align-items: center; gap: 6px; }
.stepper button { width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface-2); font-size: 20px; font-weight: 700; }
.stepper output { min-width: 34px; text-align: center; font-weight: 700; font-size: 18px; font-variant-numeric: tabular-nums; }

/* Rangliste ---------------------------------------------------------------- */
.team-sum { display: flex; justify-content: space-between; align-items: baseline; }
.rank-list { list-style: none; margin: 0; padding: 0; }
.rank-item { padding: 12px 0; border-top: 1px solid var(--line); }
.rank-item:first-child { border-top: 0; }
.rank-item.me { background: color-mix(in srgb, var(--accent-soft) 60%, transparent); margin: 0 -16px; padding: 12px 16px; }
.rank-head { display: flex; align-items: center; gap: 12px; }
.badge-rank {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: var(--surface-2); border: 1px solid var(--line); font-weight: 800; font-variant-numeric: tabular-nums;
}
.badge-rank.r1 { background: var(--gold); color: #1f1500; border-color: transparent; }
.badge-rank.r2 { background: var(--silver); color: #fff; border-color: transparent; }
.badge-rank.r3 { background: var(--bronze); color: #fff; border-color: transparent; }
.rank-name { flex: 1; min-width: 0; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank-pct { font-weight: 800; font-size: 20px; font-variant-numeric: tabular-nums; }
.rank-sub { font-size: 13px; color: var(--muted); margin-left: 46px; }
.rank-item .progress { margin-left: 46px; height: 8px; }

.winner {
  background: linear-gradient(135deg, var(--topbar), color-mix(in srgb, var(--brand) 55%, var(--topbar)));
  color: var(--topbar-ink); border: 0;
}
.winner h2 { color: color-mix(in srgb, var(--topbar-ink) 75%, transparent); }
.winner .name { font-size: 24px; font-weight: 800; }
.winner .trophy { width: 40px; height: 40px; color: var(--accent); flex: none; }

/* Admin -------------------------------------------------------------------- */
.user-row { padding: 12px 0; border-top: 1px solid var(--line); }
.user-row:first-child { border-top: 0; }
.tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
.tag { font-size: 12px; padding: 2px 8px; border-radius: 99px; background: var(--surface-2); border: 1px solid var(--line); color: var(--muted); font-weight: 600; }
.tag.admin { background: var(--topbar); color: var(--topbar-ink); border-color: transparent; }
.tag.warn { background: color-mix(in srgb, var(--accent) 25%, transparent); color: var(--ink); border-color: transparent; }
.tag.off { background: color-mix(in srgb, var(--bad) 15%, transparent); color: var(--bad); border-color: transparent; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.audit { list-style: none; margin: 0; padding: 0; font-size: 14px; }
.audit li { padding: 10px 0; border-top: 1px solid var(--line); }
.audit li:first-child { border-top: 0; }

/* Dialog ------------------------------------------------------------------- */
.overlay { position: fixed; inset: 0; background: rgba(5, 12, 22, .55); display: grid; place-items: end center; z-index: 20; padding: 16px; }
.sheet { background: var(--surface); border-radius: 20px; width: 100%; max-width: 480px; padding: 20px; max-height: 90dvh; overflow: auto; }
@media (min-width: 600px) { .overlay { place-items: center; } }
.credential { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 20px; background: var(--surface-2); padding: 10px 12px; border-radius: 10px; border: 1px dashed var(--line); word-break: break-all; }

/* Login -------------------------------------------------------------------- */
.login-wrap { min-height: 100dvh; display: grid; place-items: center; padding: 24px 16px; }
.login-box { width: 100%; max-width: 380px; }
.login-logo { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-bottom: 20px; text-align: center; }
.login-logo img { width: 72px; height: 72px; border-radius: 18px; }
.login-logo h1 { margin: 0; font-size: 24px; }

.toast {
  position: fixed; left: 50%; top: calc(12px + env(safe-area-inset-top)); transform: translateX(-50%);
  background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 12px; font-size: 14px; z-index: 30;
  max-width: calc(100% - 32px); box-shadow: var(--shadow);
}
.confetti { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 40; }
.empty { text-align: center; color: var(--muted); padding: 12px 0; }

/* Anzahl Verträge statt Prozent ------------------------------------------- */
.rank-total { text-align: right; white-space: nowrap; }
.rank-total b { font-size: 22px; font-weight: 800; font-variant-numeric: tabular-nums; }
.rank-total span { font-size: 13px; color: var(--muted); }
.rank-sub { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.place { font-size: 22px; font-weight: 800; }
.stats.two { grid-template-columns: repeat(2, 1fr); }
.tag.done { background: color-mix(in srgb, var(--good) 16%, transparent); color: var(--good); border-color: transparent; }

/* Menü-Badge ------------------------------------------------------------- */
.menu-btn { position: relative; display: inline-flex; align-items: center; gap: 6px; }
.badge { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; background: var(--accent); color: var(--accent-ink); font-size: 12px; font-weight: 800; }
.badge.inline { margin-left: 8px; }
.page-title { margin: 0; font-size: 20px; }
.section-title { font-size: 14px; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); margin: 18px 4px 8px; }
textarea { width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface-2); font: inherit; font-size: 16px; resize: vertical; }
input[type=date] { width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface-2); min-height: 48px; font-size: 16px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* Kalender --------------------------------------------------------------- */
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-head { text-align: center; font-size: 12px; font-weight: 700; color: var(--muted); padding-bottom: 4px; }
.cal-cell { aspect-ratio: 1; display: grid; place-items: center; border-radius: 10px; font-weight: 600; font-variant-numeric: tabular-nums; background: var(--surface-2); font-size: 15px; }
.cal-cell.empty { background: transparent; }
.cal-cell.we { color: var(--muted); }
.cal-cell.past { opacity: .55; }
.cal-cell.today { outline: 2px solid var(--brand); outline-offset: -2px; }

.vac-approved { background: color-mix(in srgb, var(--good) 30%, var(--surface)); color: var(--ink); }
.vac-pending { background: repeating-linear-gradient(45deg, color-mix(in srgb, var(--accent) 35%, var(--surface)) 0 6px, color-mix(in srgb, var(--accent) 15%, var(--surface)) 6px 12px); color: var(--ink); }
.cal-legend { display: flex; gap: 16px; margin-top: 10px; font-size: 13px; color: var(--muted); }
.cal-legend span { display: inline-flex; align-items: center; gap: 6px; }
.dot { display: inline-block; width: 14px; height: 14px; border-radius: 4px; }
.vac-list { list-style: none; margin: 0; padding: 0; }
.vac-list li { padding: 12px 0; border-top: 1px solid var(--line); display: grid; gap: 2px; }
.vac-list li:first-child { border-top: 0; }
.tag.vac { margin-left: 8px; background: color-mix(in srgb, var(--good) 16%, transparent); color: var(--good); border-color: transparent; }

/* Aktionen --------------------------------------------------------------- */
.card.highlight { border-color: color-mix(in srgb, var(--accent) 60%, var(--line)); border-width: 2px; }
.desc { margin: 0 0 10px; white-space: pre-wrap; }
.prizes { display: grid; gap: 6px; margin: 4px 0 12px; }
.prize { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.prize .badge-rank { width: 26px; height: 26px; font-size: 13px; }
.winner-line { display: flex; align-items: center; gap: 8px; font-weight: 700; margin: 6px 0 10px; }
.trophy-sm { width: 22px; height: 22px; color: var(--gold); flex: none; }
.rank-list.compact .rank-item { padding: 8px 0; }
.rank-list.compact .rank-item.me { padding: 8px 16px; }
.challenge.is-done { border-color: color-mix(in srgb, var(--good) 50%, var(--line)); }
.achieved { font-weight: 700; color: var(--good); margin-top: 4px; }
.done-btn { background: var(--good); color: #fff; }
.summary { display: block; }
.summary b { font-size: 20px; }
.two-col > * { min-width: 0; }
input[type=date] { min-width: 0; max-width: 100%; -webkit-appearance: none; appearance: none; }

/* Login mit Logo ------------------------------------------------------------ */
body.login-mode { background: radial-gradient(120% 80% at 50% 0%, #114452 0%, var(--topbar) 60%, #061a20 100%); }
.login-logo img.full { width: min(280px, 80%); height: auto; border-radius: 0; }
.login-mode .login-logo .muted { color: var(--topbar-ink); opacity: .8; }
.login-mode .hint { color: var(--topbar-ink); opacity: .75; }
.login-mode .login-logo h1 { color: var(--topbar-ink); }

/* Slack ------------------------------------------------------------------ */
.tag.slack { background: color-mix(in srgb, var(--brand) 14%, transparent); color: var(--brand); border-color: transparent; }
.steps { padding-left: 20px; margin: 8px 0 12px; display: grid; gap: 6px; font-size: 14px; }
.manifest { background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: 10px; font-size: 11px; max-height: 140px; overflow: auto; white-space: pre; margin: 8px 0 4px; }
.map-row { padding: 8px 0; border-top: 1px solid var(--line); }
.map-row:first-of-type { border-top: 0; }

/* Pokale ------------------------------------------------------------------ */
.rank-trophy { width: 34px; height: 34px; display: grid; place-items: center; flex: none; }
.rank-trophy svg { width: 38px; height: 38px; filter: drop-shadow(0 1px 1.5px rgba(0,0,0,.18)); }
.prize-trophy { display: inline-grid; place-items: center; width: 28px; }
.prize-trophy svg { filter: drop-shadow(0 1px 1px rgba(0,0,0,.15)); }
.place { white-space: nowrap; }
.record .record-icon { flex: none; width: 44px; display: grid; place-items: center; }
.record-num { font-size: 26px; font-weight: 800; font-variant-numeric: tabular-nums; }
.record { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }

/* Datenschutz-Seite und Links */
.legal-footer { text-align: center; font-size: 13px; margin: 14px 0 0; }
.legal-footer a { color: inherit; opacity: .75; }
.login-mode .legal-footer a { color: var(--topbar-ink); }
body.legal { background: var(--bg); }
.legal-page { max-width: 720px; margin: 0 auto; padding: 24px 16px 48px; line-height: 1.55; }
.legal-page h1 { font-size: 24px; line-height: 1.25; margin: 8px 0 4px; }
.legal-page h2 { font-size: 17px; margin: 28px 0 8px; }
.legal-page ul { padding-left: 20px; }
.legal-page li { margin-bottom: 8px; }
.legal-page a { color: var(--brand); }
.legal-page mark { background: color-mix(in srgb, var(--accent) 35%, transparent); color: inherit; padding: 0 3px; border-radius: 4px; }

/* Feiertage ---------------------------------------------------------------- */
.cal-cell.hol { color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, var(--surface-2)); }
.dot.hol { background: color-mix(in srgb, var(--accent) 45%, var(--surface)); }
.cal-legend { flex-wrap: wrap; }
.hol-list { list-style: none; margin: 10px 0 0; padding: 10px 0 0; border-top: 1px solid var(--line); font-size: 14px; display: grid; gap: 4px; }
.tag.holiday { margin-left: 8px; background: color-mix(in srgb, var(--accent) 22%, transparent); color: var(--ink); border-color: transparent; }
.vac-info { margin-top: 8px; font-weight: 600; color: var(--good); min-height: 1.2em; }
.vac-info.bad { color: var(--bad); }

/* Gebiet ------------------------------------------------------------------- */
.terr-tools { display: grid; gap: 10px; margin-bottom: 14px; }
.terr-tools .segment { margin-bottom: 0; }
.terr-list { list-style: none; margin: 8px 0 0; padding: 0; }
.terr-list > li + li { border-top: 1px solid var(--line); }
.terr-row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 2px; background: none; border: 0; text-align: left; color: inherit; font: inherit; cursor: pointer; }
.terr-main { flex: 1; min-width: 0; }
.terr-main b { display: block; overflow-wrap: anywhere; }
.terr-age { flex: none; font-size: 13px; font-weight: 700; padding: 4px 9px; border-radius: 999px; white-space: nowrap; }
.terr-age.age-new { background: color-mix(in srgb, var(--good) 16%, transparent); color: var(--good); }
.terr-age.age-mid { background: var(--surface-2); color: var(--muted); }
.terr-age.age-old { background: color-mix(in srgb, var(--accent) 28%, transparent); color: var(--ink); }
.terr-visit { padding: 12px 0; }
.terr-visit .actions { margin-top: 8px; }
.terr-visit b { overflow-wrap: anywhere; }

/* Begrüßung ---------------------------------------------------------------- */
.greeting { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 24px;
  background: var(--topbar); animation: greet-in .35s ease-out; cursor: pointer; }
.greeting.out { opacity: 0; transition: opacity .4s ease; }
.greeting-card { text-align: center; color: var(--topbar-ink); animation: greet-pop .45s cubic-bezier(.2,.9,.3,1.2); }
.greeting-logo { display: inline-block; margin-bottom: 14px; }
.greeting-hello { font-size: 20px; opacity: .85; }
.greeting-name { font-size: 34px; font-weight: 800; color: var(--accent); margin-top: 2px; overflow-wrap: anywhere; }
@keyframes greet-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes greet-pop { from { transform: scale(.85); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .greeting, .greeting-card { animation: none; } }
.hello-line { text-align: center; font-size: 18px; margin: 2px 0 12px; color: var(--ink); }
.hello-line b { color: var(--brand); }

/* Krankmeldungen ----------------------------------------------------------- */
.vac-sick { background: color-mix(in srgb, var(--bad) 22%, var(--surface)); color: var(--ink); }
.tag.sick { margin-left: 8px; background: color-mix(in srgb, var(--bad) 14%, transparent); color: var(--bad); border-color: transparent; }
.vac-list .tag.sick { margin-left: 0; }
.sick-note { color: var(--bad); margin-top: 2px; }

/* Verdienst & Tarife -------------------------------------------------------- */
.rank-item.clickable { cursor: pointer; }
.rank-item.clickable:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand-bright) 70%, transparent); outline-offset: -3px; border-radius: 10px; }
.rank-earn { font-size: 13px; font-weight: 700; color: var(--good); }
.earn-box { margin-top: 12px; padding: 12px 14px; border-radius: 12px; background: color-mix(in srgb, var(--good) 10%, var(--surface-2)); }
.earn-num { font-size: 26px; color: var(--good); font-variant-numeric: tabular-nums; }
.earn-split { list-style: none; margin: 8px 0 6px; padding: 0; display: grid; gap: 4px; font-size: 14px; }
.earn-split li { display: flex; justify-content: space-between; }
.days li { flex-wrap: wrap; }
.tariff-chips { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.tchip { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 4px 10px 4px 4px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.tchip:disabled { cursor: default; opacity: .7; }
.tchip .tchip-n { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--surface-2); font-size: 12px; }
.tchip.missing { border-style: dashed; color: var(--muted); }
.tariff-pick { display: grid; gap: 8px; }
.tariff-pick .btn { display: flex; justify-content: space-between; }
.tp-price { font-variant-numeric: tabular-nums; opacity: .85; }
.prov-grid { display: grid; gap: 8px; }
.prov-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0; font-weight: 600; }
.prov-input { display: inline-flex; align-items: center; gap: 6px; }
.prov-input input { width: 110px; text-align: right; }
