/* ==========================================================================
   inote — base.css
   Reset, base typography, focus, components, layout helpers.
   Requires tokens.css. Light theme only. See DESIGN.md for the HTML of each
   component; class names here are a contract with every page and view.

   Contents
     1 Reset            7 Chips, badges      13 Stat, progress, spinner
     2 Typography       8 Card, list, row    14 Checkbox, segmented, divider
     3 Focus            9 Topbar, bottom bar 15 Key code
     4 Icons           10 Sheet              16 Layout helpers
     5 Buttons         11 Toast, banner      17 Keyframes
     6 Forms           12 Skeleton, empty    18 Reduced motion
   ========================================================================== */

/* 1 ---- Reset ------------------------------------------------------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  scrollbar-color: var(--scrollbar) transparent;
  scrollbar-gutter: stable;
  scroll-padding-top: calc(var(--topbar-h) + var(--safe-top) + var(--space-3));
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  font-family: var(--font-sans);
  font-size: var(--text-md);
  font-weight: var(--weight-regular);
  line-height: var(--leading-normal);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-wrap: break-word;
}

img,
picture,
svg,
video,
canvas {
  display: block;
  max-width: 100%;
}

img,
video {
  height: auto;
}

input,
button,
textarea,
select {
  font: inherit;
  letter-spacing: inherit;
  color: inherit;
}

button {
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  touch-action: manipulation;
}

a {
  color: inherit;
  text-decoration: none;
  touch-action: manipulation;
}

ul[class],
ol[class] {
  padding: 0;
  list-style: none;
}

fieldset {
  min-width: 0;
  padding: 0;
  border: 0;
}

textarea {
  resize: vertical;
}

table {
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}

[hidden] {
  display: none !important;
}

:disabled,
[aria-disabled="true"] {
  cursor: not-allowed;
}

::selection {
  background: var(--accent-soft-2);
  color: var(--ink);
}

input,
textarea {
  caret-color: var(--accent);
}

input[type="number"] {
  appearance: textfield;
  -moz-appearance: textfield;
}

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button,
input[type="search"]::-webkit-search-decoration,
input[type="search"]::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
}

/* 2 ---- Typography -------------------------------------------------------- */

h1,
h2,
h3,
h4,
.h1,
.h2,
.h3,
.display {
  font-weight: var(--weight-bold);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  text-wrap: balance;
  overflow-wrap: anywhere;
}

h1,
.h1 {
  font-size: var(--text-2xl);
}

h2,
.h2 {
  font-size: var(--text-xl);
  line-height: var(--leading-snug);
}

h3,
.h3 {
  font-size: var(--text-lg);
  font-weight: var(--weight-semibold);
  line-height: var(--leading-snug);
  letter-spacing: -0.01em;
}

h4 {
  font-size: var(--text-md);
  font-weight: var(--weight-semibold);
  line-height: var(--leading-snug);
  letter-spacing: 0;
}

.display {
  font-size: var(--text-display);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

p {
  text-wrap: pretty;
}

.lead {
  font-size: var(--text-lg);
  line-height: 1.45;
  color: var(--ink-2);
}

small,
.small {
  font-size: var(--text-sm);
}

.tiny {
  font-size: var(--text-xs);
}

.muted {
  color: var(--ink-2);
}

.faint {
  color: var(--ink-3);
}

.strong {
  font-weight: var(--weight-semibold);
}

.center {
  text-align: center;
}

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

/* Plain links inside copy, and anything marked .link */
a:not([class]),
.link {
  color: var(--accent);
  font-weight: var(--weight-medium);
  text-decoration: underline;
  text-decoration-color: rgb(var(--accent-rgb) / 0.35);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
  transition: color var(--dur-1) var(--ease-soft), text-decoration-color var(--dur-1) var(--ease-soft);
}

a:not([class]):active,
.link:active {
  color: var(--accent-strong);
}

@media (hover: hover) and (pointer: fine) {
  a:not([class]):hover,
  .link:hover {
    color: var(--accent-strong);
    text-decoration-color: currentColor;
  }
}

/* 3 ---- Focus ------------------------------------------------------------- */

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

:focus:not(:focus-visible) {
  outline: none;
}

/* 4 ---- Icons ------------------------------------------------------------- */
/* Inline <svg class="icon" viewBox="0 0 24 24" aria-hidden="true"><path d="…"/></svg> */

.icon {
  flex: none;
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-sm {
  width: 20px;
  height: 20px;
}

.icon-lg {
  width: 32px;
  height: 32px;
}

.icon-fill {
  fill: currentColor;
}

/* 5 ---- Buttons ----------------------------------------------------------- */

.btn {
  --btn-bg: var(--surface);
  --btn-bg-hover: var(--hover-fill);
  --btn-bg-active: var(--surface-2);
  --btn-fg: var(--ink);
  --btn-shadow: inset 0 0 0 1px var(--line), var(--shadow-1);

  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-width: var(--control-h);
  min-height: var(--control-h);
  padding: var(--space-2) var(--space-5);
  border-radius: var(--radius-md);
  background: var(--btn-bg);
  color: var(--btn-fg);
  box-shadow: var(--btn-shadow);
  font-size: var(--text-md);
  font-weight: var(--weight-semibold);
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  text-wrap: balance;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  transition:
    background-color var(--dur-2) var(--ease-soft),
    color var(--dur-2) var(--ease-soft),
    box-shadow var(--dur-2) var(--ease-soft),
    transform var(--dur-2) var(--ease-out);
}

.btn .icon {
  width: 20px;
  height: 20px;
}

@media (hover: hover) and (pointer: fine) {
  .btn:hover {
    background: var(--btn-bg-hover);
  }
}

.btn:active {
  background: var(--btn-bg-active);
  transform: scale(0.97);
}

.btn-primary {
  --btn-bg: var(--accent);
  --btn-bg-hover: var(--accent-hover);
  --btn-bg-active: var(--accent-strong);
  --btn-fg: var(--accent-ink);
  --btn-shadow: var(--shadow-accent);
}

.btn-primary:active {
  box-shadow: 0 1px 2px rgb(var(--accent-rgb) / 0.3);
}

.btn-secondary {
  --btn-bg: var(--accent-soft);
  --btn-bg-hover: var(--accent-soft-2);
  --btn-bg-active: var(--accent-pressed);
  --btn-fg: var(--accent-strong);
  --btn-shadow: none;
}

.btn-ghost {
  --btn-bg: transparent;
  --btn-bg-hover: rgb(var(--ink-rgb) / 0.06);
  --btn-bg-active: rgb(var(--ink-rgb) / 0.1);
  --btn-fg: var(--ink-2);
  --btn-shadow: none;
}

.btn-danger {
  --btn-bg: var(--danger);
  --btn-bg-hover: var(--danger-hover);
  --btn-bg-active: var(--danger-strong);
  --btn-fg: var(--danger-ink);
  --btn-shadow: 0 1px 2px rgb(201 34 52 / 0.28), 0 5px 14px rgb(201 34 52 / 0.2);
}

/* Sun gold: the «Чухал» (mark important) action only. */
.btn-warm {
  --btn-bg: var(--warm);
  --btn-bg-hover: var(--warm-hover);
  --btn-bg-active: #E89500;
  --btn-fg: var(--warm-ink);
  --btn-shadow: 0 1px 2px rgb(var(--warm-rgb) / 0.4), 0 5px 14px rgb(var(--warm-rgb) / 0.3);
}

/* Quiet destructive action: class="btn btn-ghost btn-danger" */
.btn-ghost.btn-danger {
  --btn-bg: transparent;
  --btn-bg-hover: var(--danger-soft);
  --btn-bg-active: var(--danger-pressed);
  --btn-fg: var(--danger);
  --btn-shadow: none;
}

/* Inline text action («Дахин илгээх»). Keeps the 48px target. */
.btn-link {
  --btn-bg: transparent;
  --btn-bg-hover: transparent;
  --btn-bg-active: transparent;
  --btn-fg: var(--accent);
  --btn-shadow: none;
  padding-inline: var(--space-2);
  text-decoration: underline;
  text-decoration-color: transparent;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
  transition:
    color var(--dur-2) var(--ease-soft),
    text-decoration-color var(--dur-2) var(--ease-soft),
    transform var(--dur-2) var(--ease-out);
}

.btn-link:active {
  --btn-fg: var(--accent-strong);
}

@media (hover: hover) and (pointer: fine) {
  .btn-link:hover {
    --btn-fg: var(--accent-strong);
    text-decoration-color: currentColor;
  }
}

.btn-lg {
  min-width: var(--control-h-lg);
  min-height: var(--control-h-lg);
  padding-inline: var(--space-6);
  border-radius: 16px;
  font-size: var(--text-lg);
}

.btn-lg .icon {
  width: 24px;
  height: 24px;
}

/* Compact (40px) for in-row actions; ::before keeps a 48px touch target. */
.btn-sm {
  min-width: 40px;
  min-height: 40px;
  padding: var(--space-1) 14px;
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
}

.btn-sm::before {
  content: "";
  position: absolute;
  inset: -4px 0;
}

.btn-block {
  display: flex;
  width: 100%;
}

.btn-icon {
  flex: none;
  width: var(--control-h);
  padding: 0;
  border-radius: var(--radius-full);
}

.btn-icon .icon {
  width: 24px;
  height: 24px;
}

.btn-icon.btn-lg {
  width: var(--control-h-lg);
}

.btn-icon.btn-sm {
  width: 40px;
}

.btn-icon.btn-sm::before {
  inset: -4px;
}

/* A busy button may also be disabled: it keeps its colour and shows the spinner. */
.btn:disabled:not([aria-busy="true"]),
.btn[aria-disabled="true"]:not([aria-busy="true"]) {
  --btn-bg: var(--surface-2);
  --btn-bg-hover: var(--surface-2);
  --btn-bg-active: var(--surface-2);
  --btn-fg: var(--ink-3);
  --btn-shadow: none;
  transform: none;
  cursor: not-allowed;
}

a.btn[aria-disabled="true"] {
  pointer-events: none;
}

.btn.btn-ghost:disabled,
.btn.btn-ghost[aria-disabled="true"],
.btn.btn-link:disabled,
.btn.btn-link[aria-disabled="true"] {
  --btn-bg: transparent;
  --btn-bg-hover: transparent;
  --btn-bg-active: transparent;
  text-decoration-color: transparent;
}

/* Loading: set aria-busy="true" (and keep the label for screen readers). */
.btn[aria-busy="true"] {
  color: transparent;
  pointer-events: none;
  transform: none;
  cursor: progress;
}

.btn[aria-busy="true"]::after {
  content: "";
  position: absolute;
  inset: 0;
  width: 20px;
  height: 20px;
  margin: auto;
  border: 2.5px solid var(--btn-fg);
  border-color: color-mix(in srgb, var(--btn-fg) 26%, transparent);
  border-top-color: var(--btn-fg);
  border-radius: 50%;
  animation: spin 600ms linear infinite;
}

/* 6 ---- Forms ------------------------------------------------------------- */

.field {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  min-width: 0;
}

.label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-3);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  line-height: var(--leading-snug);
  color: var(--ink);
}

.label-opt {
  font-weight: var(--weight-regular);
  color: var(--ink-3);
}

.input,
.textarea {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: var(--input-h);
  padding: 0 var(--space-4);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  background: var(--surface);
  color: var(--ink);
  font-size: var(--text-md); /* 16px: no zoom on iOS */
  line-height: 1.4;
  appearance: none;
  -webkit-appearance: none;
  transition:
    border-color var(--dur-2) var(--ease-soft),
    box-shadow var(--dur-2) var(--ease-soft),
    background-color var(--dur-2) var(--ease-soft);
}

.textarea {
  min-height: 104px;
  padding-block: 14px;
  line-height: var(--leading-normal);
  field-sizing: content;
  max-height: 40dvh;
}

.input::placeholder,
.textarea::placeholder {
  color: var(--ink-3);
  opacity: 1;
}

@media (hover: hover) and (pointer: fine) {
  .input:hover,
  .textarea:hover {
    border-color: var(--ink-3);
  }
}

.input:focus,
.textarea:focus,
.input:focus-visible,
.textarea:focus-visible {
  border-color: var(--accent);
  outline: none;
  box-shadow: 0 0 0 1px var(--accent), 0 0 0 4px var(--accent-soft-2);
}

.input[aria-invalid="true"],
.textarea[aria-invalid="true"],
.field.is-invalid .input,
.field.is-invalid .textarea {
  border-color: var(--danger);
}

.input[aria-invalid="true"]:focus,
.textarea[aria-invalid="true"]:focus,
.field.is-invalid .input:focus,
.field.is-invalid .textarea:focus {
  box-shadow: 0 0 0 1px var(--danger), 0 0 0 4px var(--danger-soft);
}

.input:disabled,
.textarea:disabled {
  border-color: var(--line);
  background: var(--surface-2);
  color: var(--ink-3);
}

.input[readonly],
.textarea[readonly] {
  border-color: var(--line);
  background: var(--bg);
}

/* Big single-value entry: phone number, amount. */
.input-lg {
  min-height: 60px;
  font-size: var(--text-xl);
  font-weight: var(--weight-semibold);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

/* Prefix / suffix wrapper: the group draws the border, the input is bare. */
.input-group {
  display: flex;
  align-items: center;
  min-height: var(--input-h);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  background: var(--surface);
  transition:
    border-color var(--dur-2) var(--ease-soft),
    box-shadow var(--dur-2) var(--ease-soft);
}

.input-group > .input {
  flex: 1 1 0;
  min-height: calc(var(--input-h) - 2px);
  border: 0;
  background: transparent;
}

.input-group > .input-lg {
  min-height: 58px;
}

.input-group > .input:focus,
.input-group > .input:focus-visible {
  box-shadow: none;
}

@media (hover: hover) and (pointer: fine) {
  .input-group:hover {
    border-color: var(--ink-3);
  }
}

.input-group:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), 0 0 0 4px var(--accent-soft-2);
}

.field.is-invalid .input-group,
.input-group:has(> .input[aria-invalid="true"]) {
  border-color: var(--danger);
}

.field.is-invalid .input-group:focus-within,
.input-group:has(> .input[aria-invalid="true"]):focus-within {
  box-shadow: 0 0 0 1px var(--danger), 0 0 0 4px var(--danger-soft);
}

.input-prefix,
.input-suffix {
  flex: none;
  display: inline-flex;
  align-items: center;
  color: var(--ink-2);
  font-weight: var(--weight-semibold);
  font-variant-numeric: tabular-nums;
  user-select: none;
  -webkit-user-select: none;
}

.input-prefix {
  padding-left: var(--space-4);
}

.input-suffix {
  padding-right: var(--space-4);
}

.input-prefix + .input {
  padding-left: var(--space-3);
}

.input-group > .input:has(+ .input-suffix) {
  padding-right: var(--space-3);
}

.input-group:has(> .input-lg) > .input-prefix,
.input-group:has(> .input-lg) > .input-suffix {
  font-size: var(--text-xl);
}

.hint {
  font-size: var(--text-sm);
  line-height: 1.4;
  color: var(--ink-2);
}

.error {
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  line-height: 1.4;
  color: var(--danger);
}

.error:empty {
  display: none;
}

/* 7 ---- Chips and badges -------------------------------------------------- */

.chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  min-height: 32px;
  padding: 0 var(--space-3);
  border-radius: var(--radius-full);
  background: var(--surface-2);
  color: var(--ink-2);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
  white-space: nowrap;
}

.chip .icon {
  width: 18px;
  height: 18px;
}

.chip-accent {
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.chip-warm {
  background: var(--warm-soft);
  color: var(--warm-strong);
}

/* Interactive chips: toggle (button + aria-pressed) or link (a.chip). */
.chip-select,
a.chip,
button.chip {
  min-height: 40px;
  padding: 0 var(--space-4);
  background: var(--surface);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line), var(--shadow-1);
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  transition:
    background-color var(--dur-2) var(--ease-soft),
    color var(--dur-2) var(--ease-soft),
    box-shadow var(--dur-2) var(--ease-soft),
    transform var(--dur-2) var(--ease-out);
}

/* 48px touch target around the 40px pill */
.chip-select::before,
a.chip::before,
button.chip::before {
  content: "";
  position: absolute;
  inset: -4px 0;
}

@media (hover: hover) and (pointer: fine) {
  .chip-select:hover,
  a.chip:hover,
  button.chip:hover {
    background: var(--hover-fill);
    box-shadow: inset 0 0 0 1px var(--line-strong), var(--shadow-1);
  }
}

.chip-select:active,
a.chip:active,
button.chip:active {
  background: var(--surface-2);
  transform: scale(0.97);
}

.chip-select[aria-pressed="true"],
.chip-select[aria-checked="true"],
.chip-select[aria-current="true"] {
  background: var(--accent-soft);
  color: var(--accent-strong);
  box-shadow: inset 0 0 0 1.5px var(--accent);
}

@media (hover: hover) and (pointer: fine) {
  .chip-select[aria-pressed="true"]:hover,
  .chip-select[aria-checked="true"]:hover,
  .chip-select[aria-current="true"]:hover {
    background: var(--accent-soft-2);
    box-shadow: inset 0 0 0 1.5px var(--accent);
  }
}

a.chip.chip-accent,
button.chip.chip-accent {
  background: var(--accent-soft);
  color: var(--accent-strong);
  box-shadow: none;
}

@media (hover: hover) and (pointer: fine) {
  a.chip.chip-accent:hover,
  button.chip.chip-accent:hover {
    background: var(--accent-soft-2);
    box-shadow: none;
  }
}

.chip-select:disabled,
button.chip:disabled {
  background: var(--surface-2);
  color: var(--ink-3);
  box-shadow: none;
  transform: none;
  cursor: not-allowed;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 24px;
  padding: 0 10px;
  border-radius: var(--radius-full);
  background: var(--surface-2);
  color: var(--ink-2);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  line-height: 1.2;
  white-space: nowrap;
}

.badge-live {
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.badge-paused {
  background: var(--warm-soft);
  color: var(--warm-strong);
}

.badge-ended,
.badge-ready,
.badge-expired {
  background: var(--surface-2);
  color: var(--ink-2);
}

.badge-interrupted,
.badge-failed {
  background: var(--danger-soft);
  color: var(--danger-strong);
}

.badge-paid {
  background: var(--success-soft);
  color: var(--success);
}

.badge-pending {
  background: var(--warning-soft);
  color: var(--warning);
}

/* In-progress states carry a breathing dot. */
.badge-live::before,
.badge-pending::before {
  content: "";
  flex: none;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  animation: dot-pulse 1.6s ease-in-out infinite;
}

/* 8 ---- Card, list, row --------------------------------------------------- */

.card {
  display: block;
  padding: var(--space-5);
  border-radius: var(--radius-lg);
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-1);
}

.card-title {
  font-size: var(--text-lg);
  font-weight: var(--weight-semibold);
  line-height: var(--leading-snug);
  letter-spacing: -0.01em;
}

/* Quiet well: no shadow. Use inside sheets or on a white surface. */
.card-flat {
  background: var(--surface-2);
  box-shadow: none;
}

.card-accent {
  background: var(--accent-soft);
  box-shadow: none;
}

.card-warm {
  background: var(--warm-soft);
  box-shadow: none;
}

a.card,
button.card {
  width: 100%;
  text-align: left;
  cursor: pointer;
  transition: box-shadow var(--dur-2) var(--ease-soft), transform var(--dur-2) var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  a.card:hover,
  button.card:hover {
    box-shadow: var(--shadow-2);
    transform: translateY(-2px);
  }
}

a.card:active,
button.card:active {
  box-shadow: var(--shadow-1);
  transform: scale(0.99);
}

.list {
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-1);
}

/* Inside a card or sheet: rows only, no surface of its own. */
.list-plain {
  overflow: visible;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.list > * + * {
  border-top: 1px solid var(--line);
}

.row {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  width: 100%;
  min-height: 64px;
  padding: var(--space-3) var(--space-4);
  color: var(--ink);
  text-align: left;
}

.list-plain .row {
  padding-inline: 0;
}

.row-lead {
  flex: none;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.row-main {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.row-title {
  overflow: hidden;
  font-weight: var(--weight-semibold);
  line-height: var(--leading-snug);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.row-meta {
  overflow: hidden;
  font-size: var(--text-sm);
  line-height: 1.4;
  color: var(--ink-2);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.row-trailing {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin-left: auto;
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
  text-align: right;
}

a.row,
button.row {
  cursor: pointer;
  transition: background-color var(--dur-2) var(--ease-soft);
}

@media (hover: hover) and (pointer: fine) {
  a.row:hover,
  button.row:hover {
    background: var(--hover-fill);
  }
}

a.row:active,
button.row:active {
  background: var(--surface-2);
}

a.row:focus-visible,
button.row:focus-visible {
  outline-offset: -3px;
  border-radius: var(--radius-md);
}

/* 9 ---- Topbar and bottom bar --------------------------------------------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  padding-top: var(--safe-top);
  background: rgb(var(--bg-rgb) / 0.86);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  backdrop-filter: saturate(1.6) blur(14px);
}

.topbar-inner {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  width: 100%;
  max-width: var(--w-app);
  min-height: var(--topbar-h);
  margin-inline: auto;
  padding-inline: max(var(--gutter), var(--safe-left)) max(var(--gutter), var(--safe-right));
}

/* A leading icon button sits optically on the gutter line */
.topbar-inner > .btn-icon:first-child {
  margin-left: calc(var(--space-3) * -1);
}

.topbar-inner > .btn-icon:last-child,
.topbar-actions > .btn-icon:last-child {
  margin-right: calc(var(--space-3) * -1);
}

.topbar-brand {
  flex: none;
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
}

.topbar-brand img {
  width: auto;
  height: 28px;
}

/* Logo pair: logo.svg has a dark wordmark, logo-dark.svg a light one. Only the one for the theme shows. */
:root:not([data-theme="dark"]) .logo-for-dark,
:root[data-theme="dark"] .logo-for-light {
  display: none !important;
}

.topbar-title {
  flex: 1 1 0;
  min-width: 0;
  overflow: hidden;
  font-size: var(--text-lg);
  font-weight: var(--weight-semibold);
  line-height: var(--leading-snug);
  letter-spacing: -0.01em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.topbar-actions {
  flex: none;
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-left: auto;
}

/* A hairline fades in once the page has scrolled (where supported). */
@supports (animation-timeline: scroll()) {
  .topbar {
    animation: topbar-edge linear both;
    animation-timeline: scroll(root block);
    animation-range: 0 40px;
  }
}

/* Sticky thumb zone. Put it last inside .page so it rests at the bottom. */
.bottom-bar {
  position: sticky;
  bottom: 0;
  z-index: var(--z-sticky);
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-top: auto;
  padding-top: var(--space-5);
  padding-bottom: calc(var(--space-3) + var(--safe-bottom));
  padding-left: max(var(--gutter), var(--safe-left), calc((100% - var(--w-app)) / 2 + var(--gutter)));
  padding-right: max(var(--gutter), var(--safe-right), calc((100% - var(--w-app)) / 2 + var(--gutter)));
  background: linear-gradient(to top, var(--bg) calc(100% - var(--space-5)), rgb(var(--bg-rgb) / 0));
}

.bottom-bar > .btn {
  flex: 1 1 0;
}

.bottom-bar > .btn-icon {
  flex: none;
}

/* On wide screens the actions stay a comfortable size, centred. */
@media (min-width: 640px) {
  .bottom-bar {
    justify-content: center;
  }

  .bottom-bar > .btn:not(.btn-icon) {
    max-width: 320px;
  }
}

/* 10 --- Sheet ------------------------------------------------------------- */
/* Bottom sheet on phones, centred dialog from 640px.
   Enter: automatic on insert (@starting-style); or add .is-entering before
   insert and remove it on the next frame.
   Exit: add .is-closing to .sheet and .sheet-backdrop, remove both on
   transitionend (or after 260ms). */

.sheet-backdrop {
  position: fixed;
  inset: 0;
  z-index: var(--z-backdrop);
  background: var(--backdrop);
  opacity: 1;
  transition: opacity var(--dur-3) var(--ease-soft);
}

.sheet::backdrop {
  background: var(--backdrop);
}

.sheet {
  position: fixed;
  inset: auto 0 0 0;
  z-index: var(--z-sheet);
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: none;
  height: auto;
  max-height: calc(100vh - var(--safe-top) - var(--space-6));
  max-height: calc(100dvh - var(--safe-top) - var(--space-6));
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-up);
  overflow: hidden;
  opacity: 1;
  transform: translateY(0);
  transition:
    transform var(--dur-5) var(--ease-drawer),
    opacity var(--dur-3) var(--ease-soft);
}

dialog.sheet:not([open]),
.sheet[popover]:not(:popover-open) {
  display: none;
}

.sheet.is-entering,
.sheet.is-closing {
  transform: translateY(100%);
}

.sheet.is-closing {
  transition-duration: var(--dur-3);
}

.sheet-backdrop.is-entering,
.sheet-backdrop.is-closing {
  opacity: 0;
}

@starting-style {
  .sheet {
    transform: translateY(100%);
  }

  .sheet-backdrop {
    opacity: 0;
  }
}

.sheet-handle {
  flex: none;
  width: 36px;
  height: 4px;
  margin: var(--space-2) auto 0;
  border-radius: var(--radius-full);
  background: var(--line);
}

.sheet-header {
  flex: none;
  display: flex;
  align-items: center;
  gap: var(--space-3);
  min-height: 56px;
  padding: var(--space-2) var(--space-2) var(--space-1) var(--space-5);
}

.sheet-title {
  flex: 1 1 0;
  min-width: 0;
  font-size: var(--text-xl);
  font-weight: var(--weight-bold);
  line-height: var(--leading-snug);
  letter-spacing: var(--tracking-tight);
}

.sheet-header:not(:has(.sheet-close)) {
  padding-right: var(--space-5);
}

.sheet-body {
  flex: 1 1 auto;
  min-height: 0;
  padding: var(--space-2) var(--space-5) var(--space-5);
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.sheet-body:first-child {
  padding-top: var(--space-6);
}

.sheet-body:last-child {
  padding-bottom: calc(var(--space-6) + var(--safe-bottom));
}

.sheet-actions {
  flex: none;
  display: flex;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-5) calc(var(--space-4) + var(--safe-bottom));
}

.sheet-actions > .btn {
  flex: 1 1 0;
}

/* Lock page scroll while a sheet is open: add to <html>. */
.has-sheet,
.has-sheet body {
  overflow: hidden;
}

@media (min-width: 640px) {
  .sheet {
    inset: 0;
    width: min(var(--w-sheet), calc(100% - var(--space-12)));
    height: fit-content;
    max-height: min(760px, calc(100vh - var(--space-12)));
    max-height: min(760px, calc(100dvh - var(--space-12)));
    margin: auto;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-3);
    transform: none;
    transition:
      transform var(--dur-3) var(--ease-out),
      opacity var(--dur-3) var(--ease-out);
  }

  .sheet.is-entering,
  .sheet.is-closing {
    opacity: 0;
    transform: scale(0.96);
  }

  .sheet.is-closing {
    transition-duration: var(--dur-2);
  }

  @starting-style {
    .sheet {
      opacity: 0;
      transform: scale(0.96);
    }
  }

  .sheet-handle {
    display: none;
  }

  .sheet-header {
    padding: var(--space-4) var(--space-3) var(--space-1) var(--space-6);
  }

  .sheet-header:not(:has(.sheet-close)) {
    padding-right: var(--space-6);
  }

  .sheet-body {
    padding-inline: var(--space-6);
  }

  .sheet-actions {
    padding: var(--space-3) var(--space-6) var(--space-6);
  }
}

/* 11 --- Toast and banner -------------------------------------------------- */

.toast-stack {
  position: fixed;
  top: calc(var(--safe-top) + var(--space-3));
  right: 0;
  left: 0;
  z-index: var(--z-toast);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  padding-inline: var(--gutter);
  pointer-events: none;
}

.toast {
  position: relative;
  max-width: min(420px, 100%);
  min-height: var(--tap);
  padding: var(--space-3) var(--space-5);
  border-radius: 16px;
  background: var(--toast-bg);
  color: var(--toast-ink);
  box-shadow: var(--shadow-3);
  font-size: var(--text-md);
  font-weight: var(--weight-medium);
  line-height: 1.5;
  pointer-events: auto;
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity var(--dur-4) var(--ease-soft),
    transform var(--dur-4) var(--ease-out);
}

@starting-style {
  .toast {
    opacity: 0;
    transform: translateY(-120%);
  }
}

.toast.is-entering,
.toast.is-leaving {
  opacity: 0;
  transform: translateY(-60%);
}

.toast.is-leaving {
  transition-duration: 200ms;
}

.toast-ok,
.toast-err {
  padding-left: 46px;
}

.toast-ok::before,
.toast-err::before {
  content: "";
  position: absolute;
  top: 14px;
  left: 16px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
}

.toast-ok::before {
  background: var(--toast-ok);
}

.toast-err::before {
  background: var(--toast-err);
}

/* check mark */
.toast-ok::after {
  content: "";
  position: absolute;
  top: 18px;
  left: 23px;
  width: 6px;
  height: 10px;
  border: solid var(--toast-bg);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* exclamation mark */
.toast-err::after {
  content: "";
  position: absolute;
  top: 19px;
  left: 25px;
  width: 2px;
  height: 10px;
  background: linear-gradient(var(--toast-bg) 0 6px, transparent 6px 8px, var(--toast-bg) 8px 10px);
}

.banner {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  min-height: 56px;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-lg);
  background: var(--accent-soft);
  color: var(--ink);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  line-height: 1.4;
}

/* Status mark: a filled circle with an "i" drawn as a gradient layer. */
.banner::before {
  content: "";
  flex: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background:
    linear-gradient(var(--accent-ink) 0 2px, transparent 2px 4px, var(--accent-ink) 4px 10px) center / 2px 10px no-repeat,
    var(--accent);
}

.banner-text {
  flex: 1 1 0;
  min-width: 0;
}

.banner > .btn {
  flex: none;
}

.banner-warn {
  background: var(--warning-soft);
}

/* "!" for warn and danger */
.banner-warn::before {
  background:
    linear-gradient(var(--warning-ink) 0 6px, transparent 6px 8px, var(--warning-ink) 8px 10px) center / 2px 10px no-repeat,
    var(--warning);
}

.banner-danger {
  background: var(--danger-soft);
}

.banner-danger::before {
  background:
    linear-gradient(var(--danger-ink) 0 6px, transparent 6px 8px, var(--danger-ink) 8px 10px) center / 2px 10px no-repeat,
    var(--danger);
}

/* 12 --- Skeleton and empty state ----------------------------------------- */

.skeleton {
  position: relative;
  display: block;
  min-height: 1em;
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  color: transparent;
  user-select: none;
  -webkit-user-select: none;
}

.skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgb(var(--shimmer-rgb) / 0), rgb(var(--shimmer-rgb) / var(--shimmer-alpha)), rgb(var(--shimmer-rgb) / 0));
  transform: translateX(-100%);
  animation: shimmer 1.4s var(--ease-in-out) infinite;
}

.skeleton-text {
  height: 0.875em;
  margin-block: 0.3em;
  border-radius: var(--radius-xs);
}

.skeleton-title {
  width: 56%;
  height: 1.25em;
}

.skeleton-row {
  height: 64px;
  border-radius: var(--radius-lg);
}

.skeleton-card {
  height: 128px;
  border-radius: var(--radius-lg);
}

.skeleton-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-12) var(--space-6);
  text-align: center;
}

/* Listening rings drawn in CSS; put an <img>/<svg> inside to replace them. */
.empty-art {
  flex: none;
  width: 96px;
  height: 96px;
  margin-bottom: var(--space-3);
  border-radius: 50%;
}

.empty-art:empty {
  background: radial-gradient(
    circle closest-side,
    var(--accent) 0 17%,
    var(--surface) 18.5% 36%,
    var(--accent-soft-2) 37.5% 66%,
    var(--accent-soft) 67.5% 100%
  );
}

.empty-title {
  font-size: var(--text-lg);
  font-weight: var(--weight-semibold);
  line-height: var(--leading-snug);
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.empty-text {
  max-width: 32ch;
  color: var(--ink-2);
  text-wrap: balance;
}

.empty > .btn {
  margin-top: var(--space-4);
}

/* 13 --- Stat, progress, spinner ------------------------------------------ */

.stat {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  min-width: 0;
}

.stat-value {
  font-size: var(--text-3xl);
  font-weight: var(--weight-bold);
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
  letter-spacing: var(--tracking-tight);
  white-space: nowrap;
}

.stat-unit {
  margin-left: 0.12em;
  font-size: 0.6em;
  font-weight: var(--weight-semibold);
  letter-spacing: 0;
  color: var(--ink-2);
}

.stat-label {
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  line-height: 1.4;
  color: var(--ink-2);
}

.stat-sm .stat-value {
  font-size: var(--text-xl);
}

.stat-lg .stat-value {
  font-size: var(--text-4xl);
}

.stat-xl .stat-value {
  font-size: var(--text-5xl);
  letter-spacing: -0.03em;
}

.stat-center {
  align-items: center;
  text-align: center;
}

.progress {
  position: relative;
  display: block;
  width: 100%;
  height: 6px;
  overflow: hidden;
  border-radius: var(--radius-full);
  background: var(--accent-soft-2);
}

.progress::before {
  content: "";
  position: absolute;
  inset: 0;
  width: 40%;
  border-radius: inherit;
  background: var(--accent);
  animation: progress-slide 1.3s var(--ease-in-out) infinite;
}

/* Determinate: add .is-determinate and set --value (0..1) through CSSOM. */
.progress.is-determinate::before {
  width: 100%;
  border-radius: 0;
  transform: scaleX(var(--value, 0));
  transform-origin: left center;
  transition: transform var(--dur-3) var(--ease-out);
  animation: none;
}

.spinner {
  display: inline-block;
  flex: none;
  width: 24px;
  height: 24px;
  border: 2.5px solid var(--accent-soft-2);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 600ms linear infinite;
}

.spinner-lg {
  width: 40px;
  height: 40px;
  border-width: 3.5px;
}

/* 14 --- Checkbox, segmented, divider ------------------------------------- */

.checkbox {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  min-height: var(--tap);
  padding-block: var(--space-3);
  line-height: 24px;
  cursor: pointer;
}

.checkbox > input {
  flex: none;
  display: grid;
  place-content: center;
  width: 24px;
  height: 24px;
  margin: 0;
  border: 1.5px solid var(--line-strong);
  border-radius: 8px;
  background: var(--surface);
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  transition:
    background-color var(--dur-2) var(--ease-soft),
    border-color var(--dur-2) var(--ease-soft),
    transform var(--dur-2) var(--ease-out);
}

.checkbox > input::before {
  content: "";
  width: 12px;
  height: 7px;
  border: solid var(--accent-ink);
  border-width: 0 0 2.5px 2.5px;
  opacity: 0;
  transform: translateY(-1.5px) rotate(-45deg) scale(0.6);
  transition: opacity var(--dur-1) var(--ease-soft), transform var(--dur-2) var(--ease-out);
}

.checkbox > input:checked {
  border-color: var(--accent);
  background: var(--accent);
}

.checkbox > input:checked::before {
  opacity: 1;
  transform: translateY(-1.5px) rotate(-45deg) scale(1);
}

.checkbox:active > input {
  transform: scale(0.92);
}

@media (hover: hover) and (pointer: fine) {
  .checkbox:hover > input:not(:checked):not(:disabled) {
    border-color: var(--accent);
  }
}

.checkbox > input:disabled {
  border-color: var(--line);
  background: var(--surface-2);
  cursor: not-allowed;
}

.checkbox > input:disabled:checked {
  border-color: var(--line-strong);
  background: var(--line-strong);
}

.checkbox:has(> input:disabled) {
  color: var(--ink-3);
  cursor: not-allowed;
}

/* To-do rows: done items are struck through. */
.checkbox-task > input:checked + * {
  color: var(--ink-3);
  text-decoration: line-through;
  text-decoration-color: var(--line-strong);
}

.segmented {
  display: grid;
  grid-auto-columns: minmax(0, 1fr);
  grid-auto-flow: column;
  gap: 2px;
  padding: var(--space-1);
  border-radius: var(--radius-md);
  background: var(--surface-2);
}

.segmented-item {
  position: relative;
  display: flex;
  min-width: 0;
}

.segmented-item > input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.segmented-item > span,
.segmented > button {
  flex: 1 1 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 40px;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-sm);
  color: var(--ink-2);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  line-height: 1.2;
  text-align: center;
  transition:
    background-color var(--dur-2) var(--ease-soft),
    color var(--dur-2) var(--ease-soft),
    box-shadow var(--dur-2) var(--ease-soft);
}

@media (hover: hover) and (pointer: fine) {
  .segmented-item:hover > span,
  .segmented > button:hover {
    color: var(--ink);
  }
}

.segmented-item > input:checked + span,
.segmented > button[aria-pressed="true"],
.segmented > button[aria-selected="true"] {
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-1);
}

.segmented-item > input:focus-visible + span {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.segmented-item > input:disabled + span,
.segmented > button:disabled {
  color: var(--ink-3);
  opacity: 0.6;
}

.divider {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  width: 100%;
  height: auto;
  border: 0;
  color: var(--ink-3);
  font-size: var(--text-sm);
  line-height: 1.4;
}

hr.divider {
  display: block;
  height: 1px;
  background: var(--line);
}

.divider:not(hr)::before,
.divider:not(hr)::after {
  content: "";
  flex: 1 1 0;
  height: 1px;
  background: var(--line);
}

/* 15 --- Key code (recovery code, «Нууц түлхүүр») ------------------------- */

.keycode {
  display: block;
  padding: var(--space-5) var(--space-4);
  border-radius: var(--radius-lg);
  background: var(--accent-soft);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: var(--text-lg);
  font-weight: var(--weight-semibold);
  line-height: 1.7;
  letter-spacing: 0.06em;
  text-align: center;
  overflow-wrap: normal;
  user-select: all;
  -webkit-user-select: all;
}

/* 16 --- Layout helpers ---------------------------------------------------- */

.visually-hidden:not(:focus):not(:active) {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Full-height page shell: topbar, growing main, bottom-bar last. */
.page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
}

/* The scrolling content column of a .page: container + breathing room. */
.page-main {
  flex: 1 1 auto;
  width: 100%;
  max-width: var(--w-app);
  margin-inline: auto;
  padding: var(--space-4) max(var(--gutter), var(--safe-right)) var(--space-8) max(var(--gutter), var(--safe-left));
}

.container {
  width: 100%;
  max-width: var(--w-app);
  margin-inline: auto;
  padding-inline: max(var(--gutter), var(--safe-left)) max(var(--gutter), var(--safe-right));
}

.container-narrow {
  max-width: calc(var(--w-narrow) + var(--gutter) * 2);
}

.container-wide {
  max-width: var(--w-site);
}

.stack {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  min-width: 0;
}

.stack-xs {
  gap: var(--space-1);
}

.stack-sm {
  gap: var(--space-2);
}

.stack-lg {
  gap: var(--space-6);
}

.stack-xl {
  gap: var(--space-10);
}

.cluster {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
  min-width: 0;
}

.cluster-lg {
  gap: var(--space-4);
}

.cluster-between {
  justify-content: space-between;
}

.cluster-center {
  justify-content: center;
}

.cluster-nowrap {
  flex-wrap: nowrap;
}

.grow {
  flex: 1 1 0;
  min-width: 0;
}

/* 17 --- Keyframes --------------------------------------------------------- */

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes shimmer {
  to {
    transform: translateX(100%);
  }
}

@keyframes progress-slide {
  from {
    transform: translateX(-100%);
  }

  to {
    transform: translateX(250%);
  }
}

@keyframes dot-pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.35;
    transform: scale(0.8);
  }
}

@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }

  20% {
    transform: translateX(-6px);
  }

  40% {
    transform: translateX(5px);
  }

  60% {
    transform: translateX(-3px);
  }

  80% {
    transform: translateX(2px);
  }
}

@keyframes fade-pulse {
  from {
    opacity: 1;
  }

  to {
    opacity: 0.4;
  }
}

@keyframes topbar-edge {
  from {
    box-shadow: 0 1px 0 rgb(217 226 238 / 0);
  }

  to {
    box-shadow: 0 1px 0 var(--line);
  }
}

/* 18 --- Reduced motion ---------------------------------------------------- */
/* Fewer and gentler, not zero: movement goes, opacity and colour stay. */

@media (prefers-reduced-motion: reduce) {
  .btn:active,
  .chip-select:active,
  a.chip:active,
  button.chip:active,
  a.card:hover,
  button.card:hover,
  a.card:active,
  button.card:active,
  .checkbox:active > input {
    transform: none;
  }

  .sheet {
    transition: opacity var(--dur-2) linear;
  }

  .sheet.is-entering,
  .sheet.is-closing {
    opacity: 0;
    transform: none;
  }

  .toast {
    transition: opacity var(--dur-2) linear;
  }

  .toast.is-entering,
  .toast.is-leaving {
    opacity: 0;
    transform: none;
  }

  @starting-style {
    .sheet {
      opacity: 0;
      transform: none;
    }

    .toast {
      opacity: 0;
      transform: none;
    }
  }

  .btn[aria-busy="true"]::after,
  .spinner {
    animation: fade-pulse 800ms ease-in-out infinite alternate;
  }

  .skeleton::after {
    display: none;
  }

  .skeleton {
    animation: fade-pulse 1s ease-in-out infinite alternate;
  }

  .progress:not(.is-determinate)::before {
    width: 100%;
    animation: fade-pulse 1s ease-in-out infinite alternate;
  }

  .progress.is-determinate::before {
    transition: none;
  }

  .badge-live::before,
  .badge-pending::before {
    animation: none;
  }
}
