:root {
  --primary: #0e7490;  /* petrolejová modrá (značka Vitalia) */
  /* Zvolená barva jemně (pastelově) prostupuje celým motivem — pozadí, karty, linky */
  --bg: color-mix(in srgb, var(--primary) 7%, #f4f6f7);
  --card: color-mix(in srgb, var(--primary) 3%, #ffffff);
  --ink: #1f2937;
  --muted: #6b7280;
  --line: color-mix(in srgb, var(--primary) 16%, #e5e7eb);
  --primary-soft: color-mix(in srgb, var(--primary) 15%, var(--card));
  --accent: #2563eb;
  --shadow: 0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --radius: 16px;
}
/* Tmavý motiv (ručně zvolený) */
:root[data-theme="dark"] {
  --bg: color-mix(in srgb, var(--primary) 13%, #0d1322);
  --card: color-mix(in srgb, var(--primary) 10%, #1b2740);
  --ink: #e6edf5;
  --muted: #94a3b8;
  --line: color-mix(in srgb, var(--primary) 20%, #334155);
  --shadow: 0 1px 3px rgba(0,0,0,.45), 0 1px 2px rgba(0,0,0,.35);
}
/* Tmavý motiv podle systému (režim „Automaticky") */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: color-mix(in srgb, var(--primary) 13%, #0d1322);
    --card: color-mix(in srgb, var(--primary) 10%, #1b2740);
    --ink: #e6edf5;
    --muted: #94a3b8;
    --line: color-mix(in srgb, var(--primary) 20%, #334155);
    --shadow: 0 1px 3px rgba(0,0,0,.45), 0 1px 2px rgba(0,0,0,.35);
  }
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}
h1 { font-size: 1.25rem; margin: 0; }
h3 { font-size: .95rem; margin: 0 0 .75rem; color: var(--ink); }
.muted { color: var(--muted); }
.small { font-size: .8rem; }

.topbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap;
  padding: 1rem 1.25rem; background: var(--card);
  border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10;
}
.menu-toggle {
  display: none;  /* jen na mobilu (viz @media) */
  width: 42px; height: 42px; flex-shrink: 0; padding: 0;
  border: 1px solid var(--line); background: var(--card); color: var(--ink);
  border-radius: 10px; cursor: pointer; place-items: center;
}
.menu-toggle:hover { background: var(--bg); }
.menu-toggle .ic { width: 22px; height: 22px; }
.brand { display: flex; align-items: center; gap: .75rem; }
.brand p { margin: .15rem 0 0; font-size: .8rem; }
.logo {
  font-size: 1.5rem; width: 44px; height: 44px; display: grid; place-items: center;
  background: var(--primary-soft); border-radius: 12px; color: var(--primary);
}
.logo .ic { width: 26px; height: 26px; }
.today {
  font-weight: 600; font-size: .92rem; color: var(--primary);
  background: var(--primary-soft); border-radius: 999px; padding: .4rem .9rem;
  white-space: nowrap; cursor: pointer; border: 0; font-family: inherit;
}
.today:hover { filter: brightness(.97); }

/* Navigace v detailu dne */
.day-nav { display: flex; align-items: center; justify-content: center; gap: .6rem; margin-bottom: 1rem; }
.daybar { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; margin-bottom: 1rem; }
.daybar-label { font-size: .85rem; color: var(--muted); }
.daybar-latest { padding: .3rem .75rem; font-size: .82rem; }
.day-arrow {
  border: 1px solid var(--line); background: var(--card); color: var(--ink);
  border-radius: 9px; width: 36px; height: 36px; font-size: 1rem; cursor: pointer;
}
.day-arrow:hover:not(:disabled) { background: var(--bg); }
.day-arrow:disabled { opacity: .4; cursor: default; }
.day-picker {
  border: 1px solid var(--line); border-radius: 9px; padding: .45rem .6rem;
  font-family: inherit; font-size: .92rem; background: var(--card); color: var(--ink);
}
.actions { display: flex; align-items: center; gap: .75rem; }
.btn {
  background: var(--primary); color: #fff; border: 0; border-radius: 10px;
  padding: .55rem 1rem; font-size: .9rem; font-weight: 600; cursor: pointer;
  transition: opacity .15s;
}
.btn:hover { opacity: .9; }
.btn:disabled { opacity: .55; cursor: default; }

main { max-width: 1200px; margin: 0 auto; padding: 1.25rem; }

/* ---- Rozvržení: levé menu + obsah ---- */
.layout { display: flex; gap: 1.25rem; align-items: flex-start; }
.sidebar {
  width: 190px; flex-shrink: 0; position: sticky; top: 76px;
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: .55rem;
}
.content { flex: 1; min-width: 0; }
.side-title { font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); padding: .35rem .5rem .5rem; }
.side-item {
  display: flex; align-items: center; gap: .5rem; width: 100%; text-align: left;
  border: 0; background: transparent; color: var(--ink); padding: .5rem .55rem;
  border-radius: 9px; font-size: .9rem; cursor: pointer; font-family: inherit;
}
.side-item:hover { background: var(--bg); }
.side-item span { width: 20px; text-align: center; }
.stat.clickable { cursor: pointer; transition: transform .1s, box-shadow .1s; }
.stat.clickable:hover { transform: translateY(-1px); box-shadow: 0 3px 10px rgba(0,0,0,.09); }
.stat[draggable="true"] { cursor: grab; }
.stat.dragging { opacity: .45; cursor: grabbing; }
.stat.drop-target { outline: 2px dashed var(--primary); outline-offset: 2px; }
.btn.ghost { background: transparent; color: var(--primary); border: 1px solid var(--line); }
.btn.ghost:hover { background: var(--bg); opacity: 1; }
.metric-table { max-height: 340px; overflow-y: auto; }
.metric-table table { width: 100%; }

/* Dlaždice menstruace */
.stat.cycle {
  background: color-mix(in srgb, #ec4899 9%, var(--card));
  border: 1px solid color-mix(in srgb, #ec4899 30%, var(--card));
}

/* Dlaždice Plán k cíli */
.stat.plan {
  background: color-mix(in srgb, var(--primary) 10%, var(--card));
  border: 1px solid color-mix(in srgb, var(--primary) 30%, var(--card));
}
.stat.plan .value { color: var(--primary); }

/* Kolečka z Kalorických tabulek */
#rings h3 { margin: 0 0 .6rem; font-size: .95rem; }
.rings-sub-title { font-size: .9rem; margin: 1.1rem 0 .3rem; color: var(--ink); }
.rings-row { display: flex; flex-wrap: wrap; gap: .8rem 1.1rem; justify-content: center; padding: .3rem 0 .2rem; }
.ring { text-align: center; width: 92px; }
.ring-click { cursor: pointer; border-radius: 12px; padding: 4px 2px; transition: background .12s; }
.ring-click:hover { background: color-mix(in srgb, var(--primary) 9%, transparent); }
.ring svg { width: 68px; height: 68px; display: block; margin: .15rem auto 0; }
.ring-name { font-weight: 600; font-size: .8rem; line-height: 1.15; min-height: 1.85em; display: flex; align-items: center; justify-content: center; }
.ring-eaten { font-weight: 700; font-size: .88rem; margin-top: .1rem; }
.ring-val { font-size: 14px; font-weight: 700; fill: var(--ink); }
.ring-sub { font-size: .72rem; color: var(--muted); margin-top: .1rem; }
/* Dlaždice energetické bilance (deficit / přebytek) vedle koleček */
.bal-face { height: 68px; margin: .15rem auto 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: .05rem; }
.bal-arrow { font-size: 1.55rem; line-height: 1; }
.bal-num { font-size: 1.05rem; font-weight: 800; }

@media (max-width: 800px) {
  .layout { flex-direction: column; }
  .menu-toggle { display: inline-grid; }
  /* Menu schované za „čárky"; otevře se klepnutím (třída .open) jako panel. */
  .sidebar {
    width: 100%; position: static; display: none;
    flex-direction: column; gap: .15rem; margin-bottom: 1rem;
  }
  .sidebar.open { display: flex; }
  .side-title { width: 100%; padding: .45rem .4rem .2rem; }
  .side-item { width: 100%; background: transparent; }
}

.cards {
  display: grid; gap: 1rem; margin-bottom: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}
.stat {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 1rem 1.1rem;
}
.stat .label { font-size: .8rem; color: var(--muted); }
.stat .value { font-size: 1.6rem; font-weight: 700; margin-top: .2rem; }
.stat .sub { font-size: .8rem; color: var(--muted); margin-top: .1rem; }

.sources { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.25rem; }
.chip {
  display: inline-flex; align-items: center; gap: .4rem;
  background: var(--card); border: 1px solid var(--line); border-radius: 999px;
  padding: .35rem .75rem; font-size: .82rem; box-shadow: var(--shadow);
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.dot.ok { background: #16a34a; }
.dot.err { background: #dc2626; }

/* Logo-odznáček připojené aplikace + stavová tečka v rohu */
.brand-badge {
  position: relative; display: inline-flex; flex-shrink: 0;
  width: 22px; height: 22px; border-radius: 6px;
  background: #fff; border: 1px solid var(--line);
}
.brand-badge img { width: 100%; height: 100%; object-fit: contain; border-radius: 5px; display: block; }
.brand-badge::after {
  content: ""; position: absolute; right: -3px; bottom: -3px;
  width: 8px; height: 8px; border-radius: 50%; background: #9ca3af;
  border: 1.5px solid var(--card);
}
.brand-badge.ok::after { background: #16a34a; }
.brand-badge.err::after { background: #dc2626; }
.chat-logo { width: 22px; height: 22px; object-fit: contain; flex-shrink: 0; vertical-align: middle; }

/* Minimalistické čárkové ikony */
.ic {
  width: 1.15em; height: 1.15em; vertical-align: -0.2em; flex-shrink: 0;
  fill: none; stroke: currentColor; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
}

.grid {
  display: grid; gap: 1rem; margin-bottom: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}
.card {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 1.1rem 1.2rem;
}
.chart-card canvas { width: 100% !important; height: 240px !important; }

table { width: 100%; border-collapse: collapse; font-size: .88rem; }
th, td { text-align: left; padding: .5rem .4rem; border-bottom: 1px solid var(--line); }
th { color: var(--muted); font-weight: 600; }
td.num, th.num { text-align: right; }

footer { text-align: center; padding: 1.5rem; }

/* ---- Chat s Claudem ---- */
.chat { margin-bottom: 1.25rem; }
.chat h3 { display: flex; align-items: center; gap: .5rem; }
.chat-msgs {
  display: flex; flex-direction: column; gap: .6rem;
  max-height: 360px; overflow-y: auto; padding: .25rem; margin: .3rem 0 .8rem;
}
.chat-msgs:empty { display: none; }
.msg { max-width: 85%; padding: .6rem .85rem; border-radius: 14px; font-size: .92rem; line-height: 1.45; }
.msg.user { align-self: flex-end; background: var(--primary); color: #fff; border-bottom-right-radius: 4px; }
.msg.bot { align-self: flex-start; background: var(--bg); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.msg.bot.err { background: #fef2f2; border-color: #fecaca; }
.msg p { margin: 0 0 .5rem; } .msg p:last-child { margin-bottom: 0; }
.msg .msg-head { font-weight: 700; margin: .6rem 0 .25rem; font-size: .95rem; }
.msg .msg-head:first-child { margin-top: 0; }
.msg ul { margin: .3rem 0; padding-left: 1.2rem; } .msg li { margin: .15rem 0; }
.msg.typing { color: var(--muted); font-style: italic; }
.chat-clear {
  display: block; margin: .5rem 0 0 auto; width: fit-content;
  background: transparent; border: 0; color: var(--muted);
  font-size: .78rem; font-family: inherit; cursor: pointer;
}
.chat-clear:hover { color: var(--ink); text-decoration: underline; }
.chat-input { display: flex; gap: .5rem; }
.chat-input input {
  flex: 1; border: 1px solid var(--line); border-radius: 10px; padding: .6rem .8rem;
  font-size: .92rem; font-family: inherit; background: var(--card); color: var(--ink);
}
.chat-input input:focus { outline: 2px solid var(--primary-soft); border-color: var(--primary); }
.chat-chips { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .7rem; }
.chat-chip {
  background: var(--primary-soft); color: var(--primary); border: 0; border-radius: 999px;
  padding: .35rem .75rem; font-size: .8rem; cursor: pointer; font-family: inherit;
}
.chat-chip:hover { filter: brightness(.97); }
.chat-hint { color: var(--muted); font-size: .9rem; line-height: 1.5; }
.chat-hint code { background: var(--bg); padding: .1rem .3rem; border-radius: 5px; }

/* ---- Detail dne (modal) ---- */
.modal-backdrop {
  position: fixed; inset: 0; background: rgba(15,23,42,.5);
  display: grid; place-items: start center; padding: 2rem 1rem; z-index: 50;
  overflow-y: auto; animation: fade .15s ease;
}
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.modal {
  background: var(--bg); border-radius: 18px; width: min(720px, 100%);
  box-shadow: 0 20px 50px rgba(0,0,0,.25); overflow: hidden;
}
.modal-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 1.25rem; background: var(--card); border-bottom: 1px solid var(--line);
  position: sticky; top: 0;
}
.modal-head h3 { margin: 0; font-size: 1.05rem; }
.modal-x { border: 0; background: transparent; font-size: 1.5rem; line-height: 1; cursor: pointer; color: var(--muted); }
.modal-body { padding: 1rem 1.25rem 1.5rem; }

.d-section { background: var(--card); border-radius: 14px; padding: 1rem 1.1rem; margin-bottom: .9rem; box-shadow: var(--shadow); }
.d-section h4 { margin: 0 0 .8rem; font-size: 1rem; }
.d-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: .5rem .9rem; }
.d-stat { display: flex; justify-content: space-between; gap: .5rem; padding: .35rem 0; border-bottom: 1px dashed var(--line); font-size: .9rem; }
.d-stat span { color: var(--muted); }

.hypno { display: flex; height: 30px; border-radius: 7px; overflow: hidden; margin-bottom: .8rem; }
.hypno i { display: block; height: 100%; }

/* Tepové zóny */
.hrzones { display: flex; flex-direction: column; gap: .45rem; }
.hrz { display: grid; grid-template-columns: 135px 1fr auto; align-items: center; gap: .55rem; font-size: .85rem; }
.hrz-name { display: inline-flex; align-items: center; gap: .4rem; white-space: nowrap; }
.hrz-bar { background: var(--line); border-radius: 6px; height: 9px; overflow: hidden; }
.hrz-bar i { display: block; height: 100%; border-radius: 6px; }
.hrz-val { white-space: nowrap; font-size: .8rem; }

.stages { display: flex; flex-direction: column; gap: .45rem; margin-bottom: .8rem; }
.stage { display: grid; grid-template-columns: 14px 70px 1fr auto; align-items: center; gap: .55rem; font-size: .85rem; }
.cdot { width: 12px; height: 12px; border-radius: 3px; }
.stage-bar { background: var(--line); border-radius: 6px; height: 8px; overflow: hidden; }
.stage-bar i { display: block; height: 100%; }
.stage-val { color: var(--muted); font-size: .8rem; white-space: nowrap; }

.spark-block { margin-top: .7rem; }
.spark-title { font-size: .8rem; color: var(--muted); }
.spark { width: 100%; height: 56px; display: block; margin-top: .2rem; }

.dist { display: flex; height: 12px; border-radius: 6px; overflow: hidden; margin-top: .6rem; }
.dist i { display: block; height: 100%; }
.dist-legend { display: flex; flex-wrap: wrap; gap: .4rem .9rem; margin-top: .45rem; font-size: .78rem; color: var(--muted); }
.dist-legend span { display: inline-flex; align-items: center; gap: .3rem; }
.dist-legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }

.foods { margin-top: .9rem; }
.meal { margin-bottom: .7rem; }
.meal-name { font-weight: 600; font-size: .85rem; color: var(--primary); margin-bottom: .25rem; }
.food { display: flex; justify-content: space-between; gap: .8rem; padding: .25rem 0; border-bottom: 1px solid var(--line); font-size: .85rem; }
.food em { color: var(--muted); font-style: normal; font-size: .78rem; }

@media (max-width: 640px) {
  .topbar { padding: .8rem 1rem; }
  main { padding: 1rem; }
  .stat .value { font-size: 1.35rem; }
  .stage { grid-template-columns: 14px 60px 1fr auto; }
}

/* ---- Nastavení ---- */
.pref-hidden { display: none !important; }

.set-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin: .55rem 0; flex-wrap: wrap; }
.seg-group { display: inline-flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.seg { border: 0; background: var(--card); color: var(--ink); padding: .45rem .85rem; font-size: .85rem; cursor: pointer; font-family: inherit; }
.seg + .seg { border-left: 1px solid var(--line); }
.seg.on { background: var(--primary); color: #fff; }
.swatches { display: inline-flex; gap: .55rem; flex-wrap: wrap; }
.swatch { width: 26px; height: 26px; border-radius: 50%; border: 0; cursor: pointer; padding: 0; }
.swatch.on { box-shadow: 0 0 0 2px var(--card), 0 0 0 4px var(--ink); }
.chk-grid { display: grid; grid-template-columns: 1fr; gap: .55rem; }
.tiles-grid { grid-template-columns: 1fr 1fr; }
@media (max-width: 520px) { .tiles-grid { grid-template-columns: 1fr; } }
.chk { display: flex; align-items: center; gap: .55rem; font-size: .92rem; cursor: pointer; }
.chk input { width: 18px; height: 18px; accent-color: var(--primary); cursor: pointer; }

a.btn { text-decoration: none; display: inline-block; }
.set-actions { display: flex; align-items: center; gap: .8rem; margin-top: .85rem; }
/* Nastavení → Připojené služby (Etapa 2.2) */
.conn-item { border: 1px solid var(--line); border-radius: 10px; padding: .7rem .8rem; margin-top: .6rem; display: flex; flex-direction: column; gap: .45rem; }
.conn-item .goal-field { margin-top: .15rem; }
.conn-err { color: #c0392b; margin: 0; }
.rep-row { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; margin-top: .4rem; }
.toast {
  position: fixed; left: 50%; bottom: 1.4rem; transform: translateX(-50%) translateY(8px);
  background: var(--ink); color: var(--bg); padding: .6rem 1rem; border-radius: 10px;
  font-size: .88rem; line-height: 1.3; box-shadow: var(--shadow); z-index: 300;
  max-width: 92%; text-align: center; opacity: 0; pointer-events: none;
  transition: opacity .2s, transform .2s;
}
.toast.show { opacity: .96; transform: translateX(-50%) translateY(0); }

/* Přihlašovací brána (registrace / přihlášení) */
.auth-gate { position: fixed; inset: 0; z-index: 500; background: var(--bg);
  display: grid; place-items: center; padding: 1.25rem; overflow: auto; }
.auth-gate[hidden] { display: none; }  /* .auth-gate display:grid jinak přebije atribut hidden → prázdný přehoz */
.auth-card { width: 100%; max-width: 380px; background: var(--card);
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 1.6rem 1.5rem; }
.auth-brand { display: flex; align-items: center; gap: .7rem; justify-content: center; margin-bottom: 1rem; }
.auth-logo { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px;
  background: var(--primary-soft); color: var(--primary); }
.auth-logo .ic { width: 26px; height: 26px; }
.auth-title { font-size: 1.5rem; font-weight: 750; color: var(--ink); letter-spacing: -.01em; }
.auth-welcome { font-size: .9rem; color: var(--muted); text-align: center; margin: 0 0 1rem; line-height: 1.45; }
.auth-tabs { display: flex; gap: .3rem; background: var(--bg); border-radius: 10px; padding: .25rem; margin-bottom: 1rem; }
.auth-tab { flex: 1; border: 0; background: transparent; padding: .5rem; border-radius: 8px;
  font: inherit; font-size: .9rem; color: var(--muted); cursor: pointer; }
.auth-tab.on { background: var(--card); color: var(--ink); font-weight: 600; box-shadow: var(--shadow); }
.auth-form { display: flex; flex-direction: column; gap: .7rem; }
.auth-form label { display: flex; flex-direction: column; gap: .3rem; font-size: .85rem; color: var(--muted); }
.auth-form input { padding: .6rem .7rem; border: 1px solid var(--line); border-radius: 10px;
  background: var(--card); color: var(--ink); font: inherit; font-size: .95rem; }
.auth-form input:focus { outline: none; border-color: var(--primary); }
.auth-err { color: #dc2626; font-size: .82rem; min-height: 1em; }
.auth-submit { margin-top: .3rem; padding: .65rem; font-size: 1rem; }
.goal-form { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem .8rem; }
.goal-field { display: flex; flex-direction: column; gap: .2rem; font-size: .8rem; }
.goal-field span { color: var(--muted); }
.goal-field input, .note-area {
  border: 1px solid var(--line); border-radius: 8px; padding: .42rem .55rem;
  font-size: .9rem; font-family: inherit; background: var(--card); color: var(--ink);
}
.goal-field input:focus, .note-area:focus { outline: 2px solid var(--primary-soft); border-color: var(--primary); }
.note-area { width: 100%; min-height: 82px; resize: vertical; }
.profile-form { display: flex; flex-direction: column; gap: .6rem; }
.profile-field { display: flex; flex-direction: column; gap: .25rem; font-size: .82rem; }
.profile-field span { color: var(--muted); }
.profile-field .note-area { min-height: 52px; }
.chg-good { color: #16a34a; font-weight: 600; }
.chg-bad { color: #dc2626; font-weight: 600; }
.plan-table { margin-top: .5rem; }
.plan-table th, .plan-table td { padding: .35rem .3rem; }
@media (max-width: 520px) { .goal-form { grid-template-columns: 1fr; } }

/* Cíl na dlaždici */
.stat-goal { font-size: .74rem; font-weight: 600; color: var(--primary); margin-top: .2rem; }

/* ---- Teploměr (zóny) v detailu metriky ---- */
.gauge { position: relative; margin: 1.7rem 0 .2rem; padding-top: 1.5rem; }
.gauge-bar { display: flex; height: 18px; border-radius: 9px; overflow: hidden; }
.gauge-bar i { display: block; height: 100%; }
.gauge-line { position: absolute; top: 1.5rem; height: 18px; width: 3px; background: var(--ink);
  transform: translateX(-50%); border-radius: 2px; box-shadow: 0 0 0 1.5px var(--card); }
.gauge-val { position: absolute; top: 0; transform: translateX(-50%); font-weight: 700; font-size: .78rem;
  background: var(--ink); color: var(--card); padding: .1rem .45rem; border-radius: 6px; white-space: nowrap; }
.gauge-bounds { position: relative; height: .85rem; margin-top: 3px; }
.gauge-bound { position: absolute; top: 0; transform: translateX(-50%); font-size: .62rem; color: var(--muted); white-space: nowrap; }
.gauge-bound::before { content: ""; position: absolute; top: -4px; left: 50%; width: 1px; height: 4px;
  background: var(--muted); transform: translateX(-50%); }
.gauge-zones { display: flex; margin-top: .1rem; }
.gauge-zones span { font-size: .66rem; color: var(--muted); text-align: center; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; padding: 0 2px; }
.gauge-goal { position: absolute; top: 1.5rem; height: 18px; transform: translateX(-50%);
  display: flex; align-items: center; font-size: .72rem; filter: drop-shadow(0 0 1px #fff); }
.gauge-status { font-size: .92rem; margin-top: .55rem; }
.goal-line { font-size: .9rem; margin: .5rem 0 0; }
