.live-pill.off { color: var(--bad); }
.live-pill.off i { background: var(--bad); box-shadow: none; }

.dashboard .glance.maibu-hero {
  grid-template-columns: 1fr;
  align-items: start;
  min-height: 0;
}
.dial-row {
  display: grid;
  grid-template-columns: minmax(220px, 280px) 1fr;
  gap: 28px 32px;
  align-items: center;
  margin-top: 8px;
}
.dial {
  position: relative;
  width: min(280px, 100%);
  margin: 0;
}
.dial svg {
  width: 100%;
  display: block;
  transform: rotate(-90deg);
}
.track {
  fill: none;
  stroke: rgba(232, 236, 245, 0.08);
  stroke-width: 10;
}
.ring {
  fill: none;
  stroke: var(--orange);
  stroke-width: 10;
  stroke-linecap: round;
  stroke-dasharray: 364.4;
  stroke-dashoffset: 280;
  transition: stroke-dashoffset 0.35s ease, stroke 0.3s ease, filter 0.3s ease;
  filter: drop-shadow(0 0 10px rgba(255, 90, 31, 0.35));
}
.dial-core {
  position: absolute;
  inset: 18%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.dial-core #step-display,
.maibu-hero #step-display {
  display: block;
  margin: 0;
  font-size: clamp(28px, 4.2vw, 36px);
  line-height: 0.95;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.05em;
}
.dial-core span {
  color: var(--muted);
  font-size: 13px;
  margin-top: 2px;
}
.dial-core em {
  font-style: normal;
  margin-top: 6px;
  font-size: 12px;
  color: var(--orange);
  font-weight: 650;
}
.maibu-hero.ok .ring {
  stroke: var(--ok);
  filter: drop-shadow(0 0 10px rgba(61, 214, 140, 0.35));
}
.maibu-hero.ok .dial-core em { color: var(--ok); }

.dial-ops { min-width: 0; }
.dial-ops #distance {
  display: block;
  margin: 0 0 4px;
  font-size: 13px;
  line-height: 1.45;
}
.maibu-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}
.maibu-meta strong {
  font-weight: 600;
  color: var(--muted);
}

.glance .chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 0;
}
.glance .chips button {
  min-height: 36px;
  padding: 7px 12px;
  font-size: 12px;
}
.glance .chips button.on {
  border-color: transparent;
  background: var(--orange);
  color: #1a0b06;
  font-weight: 650;
}
#slider {
  display: block;
  width: 100%;
  max-width: none;
  margin: 12px 0 0;
  accent-color: var(--orange);
}

.maibu-form {
  display: grid;
  gap: 10px;
  margin-top: 6px;
}
.maibu-form .field > span { color: var(--label); font-size: 12px; }
.maibu-form .run-button {
  width: 100%;
  min-height: 44px;
  margin-top: 2px;
  padding-inline: 20px;
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(255, 104, 70, 0.18);
}
.maibu-form .run-button span { margin-left: 8px; }
.action-card > .banner { margin: 4px 0 0; }
.banner.wait {
  color: var(--orange);
  border-color: rgba(255, 104, 70, 0.35);
  background: rgba(255, 104, 70, 0.08);
}
.banner strong { display: block; margin-bottom: 4px; }
.banner span { display: block; font-size: 12px; line-height: 1.5; }

.receipt { margin-top: 4px; }
.receipt-step {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 8px 0 14px;
}
.receipt-step strong {
  font-size: clamp(36px, 8vw, 52px);
  line-height: 0.95;
  letter-spacing: -0.05em;
  font-variant-numeric: tabular-nums;
  color: var(--ok);
}
.receipt-step span { color: var(--muted); font-size: 13px; }
.receipt-facts {
  grid-template-columns: 1fr 1fr;
  margin-bottom: 12px;
  border: 0;
  padding: 0;
}
.receipt-facts div { padding: 0 12px 0 0; border: 0; }
.receipt ol {
  margin: 0 0 12px;
  padding-left: 18px;
  font-size: 13px;
  line-height: 1.65;
}
.receipt-note, .receipt-trace { margin: 0 0 10px; font-size: 12px; line-height: 1.5; }
.receipt-trace { font-variant-numeric: tabular-nums; }
#again {
  width: 100%;
  min-height: 44px;
  border-radius: 12px;
}

.guide-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.guide-grid h3 { margin: 0 0 8px; font-size: 13px; }
.guide-grid p, .guide-grid li { color: var(--muted); font-size: 13px; line-height: 1.6; }
.guide-grid ol, .guide-grid ul { margin: 0; padding-left: 18px; }
.disclaimer { margin: 14px 0 0; font-size: 12px; }

@media (max-width: 680px) {
  .dial-row { grid-template-columns: 1fr; gap: 8px 0; }
  .dial { width: min(220px, 68vw); margin: 4px auto 8px; }
  .dial-ops #distance { text-align: center; }
  .maibu-meta { justify-content: center; }
  .guide-grid { grid-template-columns: 1fr; }
  .maibu-form .run-button,
  #again {
    min-height: 44px;
    font-size: 15px;
  }
}

html[data-theme="light"] .track {
  stroke: #8d7460;
  stroke-width: 12;
}
html[data-theme="light"] .ring {
  stroke: #c43200;
  stroke-width: 12;
  filter: none;
}
html[data-theme="light"] .maibu-hero.ok .ring {
  stroke: #0f7a48;
  filter: none;
}

html[data-skin="pikachu"] .maibu-form .run-button,
html[data-skin="pikachu"] .glance .chips button.on {
  background: linear-gradient(135deg, #ffe873, #f2bb16);
  color: #1a1408;
  box-shadow: 0 10px 26px rgba(247, 217, 72, 0.18);
}
html[data-skin="pikachu"] .live-pill.off i { background: #E3350D; }
html[data-skin="pikachu"] .ring {
  stroke: #F7D948;
  filter: drop-shadow(0 0 8px rgba(247, 217, 72, .45));
}
html[data-skin="pikachu"] .track { stroke: #7a6420; }
html[data-skin="pikachu"] .maibu-hero.ok .ring {
  stroke: #F7D948;
  filter: drop-shadow(0 0 10px rgba(247, 217, 72, .45));
}
