/* Brand C2: plum leads, orchid supports, lilac for tracks, family red only for stops & trouble.
   Layout: four tabs, one screen each, nothing scrolls. Phone first (393x852), 92px side rail from 700px. */
:root {
  color-scheme: light dark;
  --bg: #FBF9FC;
  --soft: #F4EFF6;
  --card: #FFFFFF;
  --ink: #0E1A24;
  --muted: #6B6474;
  --line: #EEE6F1;
  --plum: #5E2A6E;
  --plumbg: #5E2A6E;
  --onplum: #FFFFFF;
  --orchid: #B072C2;
  --lilac: #D9C3E1;
  --dusk: #8E6A9C;
  --red: #C0392B;
  --redbg: #FBEDEB;
  --ok: #2F7D5B;
  --amber: #B7791F;
  --shade: rgba(94, 42, 110, 0.07);
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0F1C26;
  --soft: #16252F;
  --card: #132230;
  --ink: #E4EEF4;
  --muted: #A9B6C2;
  --line: #22323F;
  --plum: #E2C4EA;
  --plumbg: #C88FD8;
  --onplum: #0F1C26;
  --orchid: #C88FD8;
  --lilac: #6E4F7A;
  --dusk: #9C84A8;
  --red: #F07A62;
  --redbg: #2A1B1E;
  --ok: #8FD1AE;
  --amber: #E9B562;
  --shade: rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
  min-width: 0;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.4 Manrope, system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
  -webkit-text-size-adjust: 100%;
}

button,
input,
select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  background: none;
  border: 0;
  padding: 0;
}

button:focus-visible,
input:focus-visible,
[tabindex="0"]:focus-visible {
  outline: 2px solid var(--orchid);
  outline-offset: 3px;
  border-radius: 12px;
}

[hidden] {
  display: none !important;
}

h1,
h2,
h3,
p {
  margin: 0;
}

.num {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

svg text {
  font-family: Manrope, system-ui, -apple-system, sans-serif;
}

/* Auth gate */
.auth-gate {
  height: 100dvh;
  display: grid;
  place-items: center;
  padding: 20px;
  background: var(--bg);
}

.auth-card {
  width: min(100%, 400px);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 12px 32px var(--shade);
}

.auth-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.auth-brand h1 {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.logo-mark svg {
  width: 34px;
  height: 34px;
  color: var(--plum);
  fill: currentColor;
}

.logo-mark path {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.3;
  stroke-linecap: round;
}

.auth-note {
  font-size: 14px;
  color: var(--muted);
}

.field-lbl {
  font-size: 14px;
  font-weight: 600;
  color: var(--plum);
}

.field-in {
  min-height: 46px;
  border-radius: 14px;
  border: 1px solid var(--lilac);
  background: var(--soft);
  padding: 0 14px;
  font-size: 16px;
}

.auth-btn {
  margin-top: 4px;
}

.err-box {
  background: var(--redbg);
  color: var(--red);
  border: 1px solid color-mix(in srgb, var(--red) 35%, transparent);
  border-radius: 14px;
  padding: 10px 12px;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.inline-err-btn {
  border-radius: 10px;
  padding: 6px 10px;
  background: var(--red);
  color: #FFFFFF;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

/* App shell */
.app {
  height: 100dvh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  overflow: hidden;
  padding: env(safe-area-inset-top) env(safe-area-inset-right) 0 env(safe-area-inset-left);
}

.top {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 52px;
  padding: 0 16px;
}

.top .logo {
  display: inline-flex;
  align-items: center;
  color: var(--plum);
}

.top .logo svg {
  height: 28px;
  width: auto;
  display: block;
}

.top .sp {
  flex: 1;
}

.pill {
  font-size: 13px;
  font-weight: 600;
  color: var(--dusk);
  white-space: nowrap;
}

.err-pill {
  background: var(--redbg);
  color: var(--red);
  border: 1px solid color-mix(in srgb, var(--red) 40%, transparent);
  border-radius: 99px;
  min-height: 32px;
  padding: 0 12px;
  font-size: 13px;
  font-weight: 700;
}

.brief {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--lilac);
  border-radius: 99px;
  min-height: 36px;
  padding: 0 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--plum);
  white-space: nowrap;
}

.brief.ghost {
  border-color: var(--line);
  color: var(--muted);
}

main {
  position: relative;
  overflow: hidden;
  grid-row: 2;
}

.tabs {
  grid-row: 3;
  display: flex;
  justify-content: space-around;
  padding: 2px 8px env(safe-area-inset-bottom);
  background: var(--bg);
  border-top: 1px solid var(--line);
}

.tabs button {
  flex: 1;
  min-height: 54px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}

.tabs svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tabs button[aria-selected="true"] {
  color: var(--plum);
}

.tabs .ic {
  position: relative;
}

.tabs .ic b {
  position: absolute;
  top: -1px;
  right: -5px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red);
}

.view {
  position: absolute;
  inset: 0;
  padding: 8px 18px 12px;
  display: none;
  flex-direction: column;
  gap: 14px;
  overflow: hidden;
}

.view.on {
  display: flex;
  animation: viewIn 0.25s ease both;
}

@keyframes viewIn {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
}

.hd {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.hd.row-hd {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.hd h1 {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.1;
}

.hd h1 .thin {
  font-weight: 300;
  color: var(--orchid);
}

.k {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}

.warn-bar {
  font-size: 13px;
  font-weight: 600;
  color: var(--amber);
}

/* Today */
.hero {
  display: flex;
  align-items: center;
  gap: 18px;
}

.rings {
  position: relative;
  width: min(44vw, 190px);
  aspect-ratio: 1;
  flex: none;
}

.rings svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.rings circle {
  fill: none;
  stroke-width: 13;
  stroke-linecap: round;
}

.rings .tk {
  stroke: var(--soft);
}

.rings .a1 {
  stroke: var(--plumbg);
}

.rings .a2 {
  stroke: var(--orchid);
}

.rings .a3 {
  stroke: var(--lilac);
}

.rings .arc {
  transition: stroke-dashoffset 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.rings .c {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.rings .c b {
  font-size: clamp(22px, 6vw, 30px);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.rings .c span {
  font-size: 13px;
  color: var(--muted);
}

.leg {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.leg div {
  display: grid;
  grid-template-columns: 10px 1fr auto;
  align-items: center;
  gap: 10px;
}

.leg i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dot-plum {
  background: var(--plumbg);
}

.dot-orchid {
  background: var(--orchid);
}

.dot-lilac {
  background: var(--lilac);
}

.leg span {
  font-size: 15px;
  color: var(--muted);
}

.leg b {
  font-size: 16px;
  font-weight: 700;
}

.needs {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.need {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--card);
  border-radius: 18px;
  padding: 10px 12px 10px 14px;
  box-shadow: 0 1px 2px var(--shade), 0 8px 20px var(--shade);
}

.need .tx {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.need h3 {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.25;
}

.need p {
  font-size: 13px;
  color: var(--muted);
}

.ib {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex: none;
  border: 1px solid var(--lilac);
  color: var(--plum);
}

.ib svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ib.p {
  background: var(--plumbg);
  border-color: var(--plumbg);
  color: var(--onplum);
}

.ib.r {
  color: var(--red);
  border-color: color-mix(in srgb, var(--red) 35%, transparent);
}

.need.done {
  justify-content: center;
  color: var(--ok);
  font-weight: 600;
  min-height: 58px;
  box-shadow: none;
  background: transparent;
  border: 1px dashed var(--line);
}

.sw {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.sw button {
  min-height: 68px;
  border-radius: 18px;
  background: var(--soft);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-size: 14px;
  font-weight: 600;
  color: var(--plum);
}

.sw svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sw .stop {
  color: var(--red);
}

.sw .stop.on {
  background: var(--red);
  color: #FFFFFF;
}

.col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.halt-b {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 8px 10px 8px 14px;
  border-radius: 14px;
  background: var(--redbg);
  color: var(--red);
  font-weight: 600;
  font-size: 14px;
}

.halt-b button {
  margin-left: auto;
  min-height: 36px;
  border-radius: 10px;
  background: var(--red);
  color: #FFFFFF;
  font-weight: 700;
  padding: 0 12px;
}

body.halt .halt-b {
  display: flex;
}

/* Routes SVG */
.fig {
  position: relative;
  flex: 1;
  min-height: 220px;
}

.fig > svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.ln {
  fill: none;
  stroke-width: 4;
  stroke-linecap: round;
}

.ln.base {
  stroke: var(--lilac);
  opacity: 0.55;
}

.ln.done {
  stroke: var(--orchid);
}

.lt {
  font-size: 15px;
  font-weight: 700;
  fill: var(--ink);
}

.ls {
  font-size: 13px;
  fill: var(--muted);
}

.stopd {
  fill: var(--card);
  stroke: var(--lilac);
  stroke-width: 2.5;
}

.stopd.f {
  fill: var(--orchid);
  stroke: var(--orchid);
}

.flow {
  fill: var(--plumbg);
}

.term {
  fill: var(--plumbg);
}

.termr {
  fill: none;
  stroke: var(--plumbg);
  stroke-width: 2;
  opacity: 0.25;
}

.tl {
  font-size: 15px;
  font-weight: 700;
  fill: var(--plum);
}

.hit {
  fill: transparent;
  cursor: pointer;
}

.hit:focus-visible {
  stroke: var(--orchid);
  stroke-width: 2;
}

/* Models */
.save {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}

.save b {
  display: block;
  font-size: clamp(32px, 8vw, 44px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1;
}

.save .k {
  display: block;
  margin-top: 4px;
}

.save svg {
  width: 40%;
  max-width: 200px;
  height: 58px;
  overflow: visible;
}

.sp-a {
  fill: color-mix(in srgb, var(--orchid) 18%, transparent);
}

.sp-l {
  fill: none;
  stroke: var(--orchid);
  stroke-width: 2.5;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  text-align: left;
}

.bar {
  display: flex;
  height: 14px;
  border-radius: 99px;
  overflow: hidden;
  gap: 3px;
}

.bar i {
  display: block;
  height: 100%;
  border-radius: 99px;
}

.r1 {
  background: var(--lilac);
}

.r2 {
  background: var(--orchid);
}

.r3 {
  background: var(--dusk);
}

.r4 {
  background: var(--plumbg);
}

.bl {
  display: grid;
  grid-template-columns: repeat(2, auto);
  justify-content: space-between;
  gap: 4px 16px;
}

.bl span {
  font-size: 13px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.bl span i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.bl b {
  color: var(--ink);
  font-weight: 700;
}

.sub-acts {
  display: flex;
  gap: 8px;
}

.bub {
  fill-opacity: 0.9;
  cursor: pointer;
}

.bub.g {
  fill: var(--orchid);
}

.bub.o {
  fill: var(--lilac);
}

.bub.a {
  fill: var(--plumbg);
}

.bl2 {
  font-size: 13px;
  font-weight: 600;
  fill: var(--ink);
}

.ax {
  font-size: 12px;
  fill: var(--muted);
}

.gl {
  stroke: var(--line);
  stroke-width: 1;
}

/* Health */
.tiles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  flex: 1;
  min-height: 0;
}

.tile {
  background: var(--card);
  border-radius: 18px;
  padding: 12px 14px 8px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  text-align: left;
  box-shadow: 0 1px 2px var(--shade), 0 8px 20px var(--shade);
  position: relative;
}

.tile .k {
  display: flex;
  align-items: center;
  gap: 6px;
}

.tile .k i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex: none;
}

.tile b {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.tile b small {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  margin-left: 3px;
}

.tile svg {
  width: 100%;
  height: 28px;
  margin-top: auto;
  overflow: visible;
}

.v-ok {
  background: var(--ok);
}

.v-near {
  background: var(--amber);
}

.v-over {
  background: var(--red);
}

/* Sheet + Toast */
.scrim {
  position: fixed;
  inset: 0;
  background: rgba(14, 26, 36, 0.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
  z-index: 20;
}

.sheet {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  margin: 0 auto;
  max-width: 620px;
  background: var(--card);
  border-radius: 26px 26px 0 0;
  padding: 10px 20px calc(20px + env(safe-area-inset-bottom));
  transform: translateY(105%);
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
  z-index: 21;
  max-height: 92dvh;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sheet .grab {
  width: 40px;
  height: 5px;
  border-radius: 9px;
  background: var(--line);
  margin: 0 auto;
}

.sheet h2 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.sheet p {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.45;
}

.open .scrim {
  opacity: 1;
  pointer-events: auto;
}

.open .sheet {
  transform: none;
}

.cr {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 10px;
}

.cr div {
  background: var(--soft);
  border-radius: 14px;
  padding: 10px 12px;
  font-size: 14px;
  line-height: 1.35;
}

.cr div b {
  display: block;
  font-size: 13px;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 2px;
}

.acts {
  display: flex;
  gap: 10px;
}

.b {
  flex: 1;
  min-height: 46px;
  border-radius: 14px;
  border: 1px solid var(--lilac);
  font-size: 15px;
  font-weight: 600;
  color: var(--plum);
  padding: 0 12px;
}

.b.p {
  background: var(--plumbg);
  border-color: var(--plumbg);
  color: var(--onplum);
}

.b.r {
  color: var(--red);
  border-color: color-mix(in srgb, var(--red) 35%, transparent);
}

.b.rr {
  background: var(--red);
  border-color: var(--red);
  color: #FFFFFF;
}

.seg {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 4px;
  background: var(--soft);
  border-radius: 14px;
  padding: 4px;
}

.seg button {
  min-height: 40px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
}

.seg button[aria-pressed="true"] {
  background: var(--card);
  color: var(--plum);
  box-shadow: 0 1px 3px var(--shade);
}

.ml {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ml button {
  display: flex;
  align-items: center;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0 14px;
  font-size: 15px;
  font-weight: 600;
  text-align: left;
}

.ml button small {
  font-weight: 500;
  color: var(--muted);
  font-size: 13px;
  margin-left: auto;
}

.ml button[aria-pressed="true"] {
  border-color: var(--plum);
  background: var(--soft);
}

.ladder-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.ladder-row.err-row {
  background: var(--redbg);
  border-color: var(--red);
}

.ladder-head {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-weight: 700;
}

.ladder-reason {
  font-size: 13px;
  color: var(--muted);
}

.ladder-row.err-row .ladder-reason {
  color: var(--red);
  font-weight: 700;
}

.rungs-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.rung-chip {
  font-size: 12px;
  border-radius: 8px;
  padding: 4px 8px;
  background: var(--soft);
  color: var(--muted);
}

.rung-chip.passed {
  background: var(--plumbg);
  color: var(--onplum);
  font-weight: 700;
}

.rung-chip.failed {
  text-decoration: line-through;
  text-decoration-color: var(--red);
}

.rung-chip.missing {
  background: var(--red);
  color: #FFFFFF;
  font-weight: 700;
}

.tbl-wrap {
  overflow-x: auto;
}

.perf-tbl {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.perf-tbl th,
.perf-tbl td {
  padding: 6px 8px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.steps {
  display: flex;
  flex-direction: column;
  border-left: 2px solid var(--lilac);
  margin-left: 6px;
  padding-left: 16px;
}

.steps div {
  position: relative;
  padding: 5px 0;
  font-size: 15px;
  line-height: 1.3;
}

.steps div::before {
  content: "";
  position: absolute;
  left: -22px;
  top: 10px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--lilac);
}

.steps div.ok::before {
  background: var(--orchid);
}

.steps div.now::before {
  background: var(--red);
}

.steps b {
  font-weight: 700;
}

.steps small {
  color: var(--muted);
  font-size: 13px;
  display: block;
}

.big {
  height: 108px;
  width: 100%;
  overflow: visible;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(74px + env(safe-area-inset-bottom));
  transform: translate(-50%, 20px);
  opacity: 0;
  background: var(--ink);
  color: var(--bg);
  border-radius: 14px;
  padding: 8px 10px 8px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  transition: 0.25s;
  z-index: 30;
  pointer-events: none;
  white-space: nowrap;
}

.toast.on {
  opacity: 1;
  transform: translate(-50%, 0);
  pointer-events: auto;
}

.toast button {
  color: var(--lilac);
  font-weight: 700;
  min-height: 32px;
  padding: 0 8px;
}

/* Compact phone header for 393px */
@media (max-width: 520px) {
  .top {
    padding: 0 12px;
    gap: 6px;
  }
  .top .logo svg {
    height: 24px;
  }
  .pill {
    display: none;
  }
  .brief {
    min-height: 32px;
    padding: 0 10px;
    font-size: 12px;
  }
  .err-pill {
    min-height: 30px;
    padding: 0 9px;
    font-size: 12px;
  }
}

/* Short phones */
@media (max-height: 740px) and (max-width: 699px) {
  .view {
    gap: 10px;
  }
  .hd h1 {
    font-size: 22px;
  }
  .rings {
    width: min(38vw, 150px);
  }
  .sw button {
    min-height: 56px;
  }
  .tile b {
    font-size: 20px;
  }
}

/* Side rail from 700px (tablet, desktop 1024x768) */
@media (min-width: 700px) {
  .app {
    grid-template-columns: 92px 1fr;
    grid-template-rows: 56px 1fr;
  }
  .top {
    grid-column: 1 / 3;
    padding: 0 24px;
    height: 56px;
  }
  .tabs {
    grid-column: 1;
    grid-row: 2;
    flex-direction: column;
    justify-content: flex-start;
    gap: 8px;
    padding: 12px 0 env(safe-area-inset-bottom);
    border-top: 0;
    border-right: 1px solid var(--line);
  }
  .tabs button {
    flex: none;
    min-height: 64px;
  }
  main {
    grid-column: 2;
    grid-row: 2;
  }
  .view {
    padding: 12px 32px 24px;
  }
  #v-today.on,
  #v-models.on {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-rows: auto 1fr;
    gap: 16px 36px;
    align-content: start;
  }
  #v-today .hd,
  #v-models .hd,
  #v-today .halt-b {
    grid-column: 1 / 3;
  }
  #v-today .hero {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    align-self: center;
  }
  #v-today .col {
    align-self: center;
  }
  .bl {
    grid-template-columns: repeat(4, auto);
    justify-content: space-between;
  }
  .tiles {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .toast {
    bottom: 24px;
  }
}

@media (min-width: 1000px) and (min-height: 640px) {
  .view {
    padding: 16px 40px 28px;
    gap: 20px;
  }
  .hd h1 {
    font-size: 34px;
  }
  .rings {
    width: 220px;
  }
  .rings .c b {
    font-size: 36px;
  }
  #v-today .hero {
    flex-direction: row;
    align-items: center;
    gap: 28px;
  }
  .tile b {
    font-size: 28px;
  }
  .tile svg {
    height: 36px;
  }
  main {
    max-width: 1280px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}
