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

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

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

.grid-auto {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.muted {
  color: var(--text-muted);
}

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

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

.strong {
  font-weight: 700;
}

.divider {
  height: 1px;
  border: 0;
  margin: var(--space-5) 0;
  background: var(--border-subtle);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: var(--tap-target);
  padding: 0 var(--space-4);
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  background: transparent;
  color: var(--text-primary);
  font-weight: 600;
  font-size: var(--text-base);
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition:
    background-color var(--duration-fast) var(--ease-standard),
    border-color var(--duration-fast) var(--ease-standard),
    color var(--duration-fast) var(--ease-standard),
    box-shadow var(--duration-fast) var(--ease-standard),
    transform var(--duration-fast) var(--ease-standard);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn:disabled,
.btn[aria-disabled='true'] {
  cursor: not-allowed;
  opacity: 0.55;
  transform: none;
  box-shadow: none;
}

.btn--primary {
  background: var(--gradient-accent);
  color: var(--text-on-accent);
  box-shadow: var(--shadow-1);
}

.btn--primary:hover {
  box-shadow: var(--shadow-2);
  filter: saturate(1.06) brightness(1.02);
}

.btn--secondary {
  background: var(--surface-card);
  border-color: var(--border-strong);
  color: var(--text-primary);
}

.btn--secondary:hover {
  border-color: var(--accent-strong);
  background: var(--surface-muted);
}

.btn--ghost {
  background: transparent;
  color: var(--text-secondary);
}

.btn--ghost:hover {
  background: var(--surface-sunken);
  color: var(--text-primary);
}

.btn--danger {
  background: var(--danger-bg);
  border-color: var(--danger-border);
  color: var(--danger-text);
}

.btn--danger:hover {
  background: var(--danger-text);
  color: var(--surface-card);
  border-color: var(--danger-text);
}

.btn--icon {
  width: var(--tap-target);
  padding: 0;
  border-radius: var(--radius-md);
  background: transparent;
  color: var(--text-secondary);
}

.btn--icon:hover {
  background: var(--surface-sunken);
  color: var(--text-primary);
}

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

.btn--lg {
  min-height: 52px;
  padding: 0 var(--space-5);
  font-size: var(--text-md);
}

.btn[aria-busy='true'] {
  cursor: progress;
  opacity: 0.85;
}

.btn[aria-busy='true'] .btn__label {
  visibility: hidden;
}

.btn[aria-busy='true']::after {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 700ms linear infinite;
  inset: 0;
  margin: auto;
}

.btn {
  position: relative;
}

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

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

.field__label {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-secondary);
}

.field__hint {
  font-size: var(--text-xs);
  color: var(--text-muted);
  line-height: var(--leading);
}

.field__error {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--danger-text);
}

.input,
.select,
.textarea {
  width: 100%;
  min-height: var(--tap-target);
  padding: 10px var(--space-3);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  background: var(--surface-card);
  color: var(--text-primary);
  font-size: var(--text-md);
  transition:
    border-color var(--duration-fast) var(--ease-standard),
    box-shadow var(--duration-fast) var(--ease-standard);
}

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

.textarea {
  min-height: 104px;
  resize: vertical;
  line-height: var(--leading);
}

.select {
  appearance: none;
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235F686B' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}

.input:hover,
.select:hover,
.textarea:hover {
  border-color: var(--text-muted);
}

.input:focus-visible,
.select:focus-visible,
.textarea:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 1px;
  border-color: var(--focus-ring);
}

.input[aria-invalid='true'],
.textarea[aria-invalid='true'],
.select[aria-invalid='true'] {
  border-color: var(--danger-text);
  background: var(--danger-bg);
}

.input:disabled,
.select:disabled,
.textarea:disabled {
  background: var(--surface-sunken);
  color: var(--text-muted);
  cursor: not-allowed;
}

.toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  min-height: var(--tap-target);
  cursor: pointer;
}

.toggle__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.toggle__input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.toggle__track {
  position: relative;
  flex: none;
  width: 48px;
  height: 28px;
  border-radius: var(--radius-pill);
  background: var(--surface-sunken);
  border: 1px solid var(--border-strong);
  transition: background-color var(--duration-fast) var(--ease-standard);
}

.toggle__track::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--surface-card);
  box-shadow: var(--shadow-1);
  transition: transform var(--duration-fast) var(--ease-standard);
}

.toggle__input:checked + .toggle__track {
  background: var(--accent);
  border-color: var(--accent-strong);
}

.toggle__input:checked + .toggle__track::after {
  transform: translateX(20px);
}

.toggle__input:focus-visible + .toggle__track {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}

.dropzone {
  display: grid;
  justify-items: center;
  gap: var(--space-2);
  padding: var(--space-6) var(--space-4);
  border: 2px dashed var(--border-strong);
  border-radius: var(--radius-lg);
  background: var(--surface-muted);
  color: var(--text-secondary);
  text-align: center;
  transition:
    border-color var(--duration-fast) var(--ease-standard),
    background-color var(--duration-fast) var(--ease-standard);
  cursor: pointer;
}

.dropzone:hover,
.dropzone.is-dragging,
.dropzone:focus-within {
  border-color: var(--accent-strong);
  background: var(--accent-soft);
  color: var(--text-primary);
}

.dropzone.is-disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.card {
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-1);
}

.card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-4) 0;
}

.card__title {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-md);
  font-weight: 700;
}

.card__body {
  padding: var(--space-4);
}

.card__footer {
  padding: 0 var(--space-4) var(--space-4);
}

.card--highlight {
  border-color: var(--accent-border);
  background:
    linear-gradient(160deg, var(--accent-soft) 0%, var(--surface-card) 55%);
}

.card--flush {
  padding: 0;
}

.stat-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-4);
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-1);
}

.stat-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  color: var(--text-muted);
  font-size: var(--text-sm);
  font-weight: 600;
}

.stat-card__icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  color: var(--accent-text);
}

.stat-card__value {
  font-size: var(--text-2xl);
  font-weight: 700;
  line-height: 1.15;
}

.stat-card__meta {
  font-size: var(--text-xs);
  color: var(--text-muted);
}

.stat-card--danger {
  border-color: var(--danger-border);
}

.stat-card--danger .stat-card__icon {
  background: var(--danger-bg);
  color: var(--danger-text);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  background: var(--surface-muted);
  color: var(--text-secondary);
  font-size: var(--text-xs);
  font-weight: 600;
  white-space: nowrap;
}

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

.chip--success {
  background: var(--success-bg);
  border-color: var(--success-border);
  color: var(--success-text);
}

.chip--danger {
  background: var(--danger-bg);
  border-color: var(--danger-border);
  color: var(--danger-text);
}

.chip--warning {
  background: var(--warning-bg);
  border-color: var(--warning-border);
  color: var(--warning-text);
}

.chip--info {
  background: var(--info-bg);
  border-color: var(--info-border);
  color: var(--info-text);
}

.chip--gold {
  background: var(--accent-soft);
  border-color: var(--accent-border);
  color: var(--accent-text);
}

.banner {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background: var(--surface-muted);
  color: var(--text-secondary);
  font-size: var(--text-sm);
}

.banner .icon {
  margin-top: 2px;
}

.banner__body {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.banner__title {
  font-weight: 700;
  color: var(--text-primary);
}

.banner--success {
  background: var(--success-bg);
  border-color: var(--success-border);
  color: var(--success-text);
}

.banner--danger {
  background: var(--danger-bg);
  border-color: var(--danger-border);
  color: var(--danger-text);
}

.banner--warning {
  background: var(--warning-bg);
  border-color: var(--warning-border);
  color: var(--warning-text);
}

.banner--info {
  background: var(--info-bg);
  border-color: var(--info-border);
  color: var(--info-text);
}

.banner--gold {
  background: var(--accent-soft);
  border-color: var(--accent-border);
  color: var(--accent-text);
}

.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  background: var(--surface-card);
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
}

.table th,
.table td {
  padding: var(--space-3) var(--space-4);
  text-align: left;
  vertical-align: middle;
}

.table th {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: var(--surface-muted);
  border-bottom: 1px solid var(--border-subtle);
}

.table td {
  border-bottom: 1px solid var(--border-subtle);
}

.table tr:last-child td {
  border-bottom: 0;
}

.table tbody tr:hover {
  background: var(--surface-muted);
}

.table--compact th,
.table--compact td {
  padding: var(--space-2) var(--space-3);
}

.table__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1);
}

@media (max-width: 760px) {
  .table--cards thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  .table--cards,
  .table--cards tbody,
  .table--cards tr,
  .table--cards td {
    display: block;
    width: 100%;
  }

  .table--cards tr {
    padding: var(--space-3);
    border-bottom: 1px solid var(--border-subtle);
  }

  .table--cards tr:last-child {
    border-bottom: 0;
  }

  .table--cards td {
    display: grid;
    grid-template-columns: 42% 1fr;
    gap: var(--space-3);
    padding: var(--space-1) 0;
    border: 0;
    text-align: left;
  }

  .table--cards td::before {
    content: attr(data-label);
    font-size: var(--text-xs);
    font-weight: 600;
    color: var(--text-muted);
  }

  .table--cards td:empty {
    display: none;
  }
}

.tabs {
  display: flex;
  gap: var(--space-1);
  padding: var(--space-1);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background: var(--surface-muted);
  overflow-x: auto;
}

.tabs__tab {
  min-height: var(--tap-target);
  padding: 0 var(--space-3);
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-secondary);
  font-size: var(--text-sm);
  font-weight: 600;
  white-space: nowrap;
}

.tabs__tab[aria-selected='true'] {
  background: var(--surface-card);
  color: var(--text-primary);
  box-shadow: var(--shadow-1);
}

.tabs__tab:hover {
  color: var(--text-primary);
}

.toast-region {
  position: fixed;
  inset-inline: var(--space-4);
  bottom: calc(var(--space-4) + env(safe-area-inset-bottom, 0px));
  z-index: 80;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  pointer-events: none;
}

@media (min-width: 768px) {
  .toast-region {
    inset-inline: auto var(--space-5);
    top: calc(var(--header-height) + var(--space-4));
    bottom: auto;
    width: min(380px, 90vw);
  }
}

.toast {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--border-subtle);
  border-left: 4px solid var(--accent-strong);
  border-radius: var(--radius-md);
  background: var(--surface-card);
  color: var(--text-primary);
  box-shadow: var(--shadow-3);
  font-size: var(--text-sm);
  pointer-events: auto;
  animation: toast-in var(--duration-base) var(--ease-emphasized);
}

.toast--success { border-left-color: var(--success-text); }
.toast--danger { border-left-color: var(--danger-text); }
.toast--warning { border-left-color: var(--warning-text); }

@keyframes toast-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.modal {
  width: min(520px, calc(100vw - 32px));
  padding: 0;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  background: var(--surface-card);
  color: var(--text-primary);
  box-shadow: var(--shadow-3);
}

.modal::backdrop {
  background: rgba(16, 19, 20, 0.55);
}

.modal__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-5) var(--space-5) 0;
}

.modal__body {
  padding: var(--space-4) var(--space-5);
}

.modal__footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: var(--space-2);
  padding: 0 var(--space-5) var(--space-5);
}

.scrim {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: rgba(16, 19, 20, 0.5);
  backdrop-filter: blur(2px);
}

.drawer {
  position: fixed;
  top: 0;
  bottom: 0;
  right: 0;
  z-index: 75;
  width: min(360px, 88vw);
  padding: var(--space-5);
  background: var(--surface-card);
  border-left: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-3);
  transform: translateX(100%);
  transition: transform var(--duration-base) var(--ease-emphasized);
  overflow-y: auto;
}

.drawer.is-open {
  transform: translateX(0);
}

.drawer__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-4);
}

.skeleton {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: var(--surface-sunken);
  min-height: 14px;
}

.skeleton::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, var(--surface-card), transparent);
  opacity: 0.45;
  animation: shimmer 1.4s infinite;
}

.skeleton--title { width: 45%; height: 22px; }
.skeleton--line { width: 100%; height: 12px; }
.skeleton--block { width: 100%; height: 96px; }

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

.empty {
  display: grid;
  justify-items: center;
  gap: var(--space-3);
  padding: var(--space-7) var(--space-4);
  text-align: center;
}

.empty__icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-text);
}

.empty__icon .icon {
  width: 26px;
  height: 26px;
}

.empty__title {
  font-size: var(--text-md);
  font-weight: 700;
}

.empty__text {
  max-width: 44ch;
  color: var(--text-muted);
  font-size: var(--text-sm);
}

.stepper {
  display: flex;
  flex-direction: column;
  gap: 0;
  list-style: none;
}

.stepper__item {
  position: relative;
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: var(--space-3);
  padding-bottom: var(--space-4);
}

.stepper__item:last-child {
  padding-bottom: 0;
}

.stepper__marker {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 2px solid var(--border-strong);
  border-radius: 50%;
  background: var(--surface-card);
  color: var(--text-muted);
  font-size: var(--text-xs);
  font-weight: 700;
  z-index: 1;
}

.stepper__item:not(:last-child)::before {
  content: '';
  position: absolute;
  left: 15px;
  top: 32px;
  bottom: 0;
  width: 2px;
  background: var(--border-subtle);
}

.stepper__item.is-done .stepper__marker {
  background: var(--accent);
  border-color: var(--accent-strong);
  color: var(--text-on-accent);
}

.stepper__item.is-done:not(:last-child)::before {
  background: var(--accent-border);
}

.stepper__item.is-current .stepper__marker {
  border-color: var(--accent-strong);
  color: var(--accent-text);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.stepper__title {
  font-weight: 600;
  font-size: var(--text-sm);
}

.stepper__text {
  color: var(--text-muted);
  font-size: var(--text-xs);
  line-height: var(--leading);
}

.stepper__item.is-done .stepper__title {
  color: var(--text-secondary);
}

.progress {
  --value: 0;
  height: 10px;
  border-radius: var(--radius-pill);
  background: var(--surface-sunken);
  overflow: hidden;
}

.progress__fill {
  width: calc(var(--value) * 1%);
  height: 100%;
  border-radius: inherit;
  background: var(--gradient-accent);
  transition: width var(--duration-slow) var(--ease-emphasized);
}

.progress--danger .progress__fill {
  background: var(--danger-text);
}

.progress--warning .progress__fill {
  background: var(--warning-text);
}

.progress--info .progress__fill {
  background: var(--info-text);
}

.ring {
  --percent: 100;
  position: relative;
  display: grid;
  place-items: center;
  width: 132px;
  height: 132px;
  border-radius: 50%;
  background:
    conic-gradient(var(--accent-strong) calc(var(--percent) * 1%), var(--surface-sunken) 0);
}

.ring::before {
  content: '';
  position: absolute;
  inset: 10px;
  border-radius: 50%;
  background: var(--surface-card);
}

.ring__label {
  position: relative;
  text-align: center;
  font-size: var(--text-sm);
  font-weight: 700;
}

.ring__sub {
  display: block;
  color: var(--text-muted);
  font-size: var(--text-xs);
  font-weight: 500;
}

.calendar {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
  font-size: var(--text-sm);
}

.calendar__head {
  padding: var(--space-1);
  text-align: center;
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--text-muted);
}

.calendar__cell {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 2px;
  min-height: 56px;
  padding: 6px 4px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  background: var(--surface-card);
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}

.calendar__cell--muted {
  background: var(--surface-muted);
  color: var(--text-muted);
}

.calendar__cell--today {
  border-color: var(--accent-strong);
  box-shadow: inset 0 0 0 1px var(--accent-strong);
}

.calendar__cell--event {
  background: var(--accent-soft);
  border-color: var(--accent-border);
}

.calendar__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-strong);
}

.calendar__dot--danger {
  background: var(--danger-text);
}

.timeline {
  display: flex;
  flex-direction: column;
  list-style: none;
}

.timeline__item {
  position: relative;
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: var(--space-3);
  padding-bottom: var(--space-4);
}

.timeline__item:not(:last-child)::before {
  content: '';
  position: absolute;
  left: 9px;
  top: 18px;
  bottom: 0;
  width: 2px;
  background: var(--border-subtle);
}

.timeline__dot {
  width: 20px;
  height: 20px;
  border: 4px solid var(--surface-card);
  border-radius: 50%;
  background: var(--accent-strong);
  box-shadow: 0 0 0 1px var(--border-subtle);
}

.timeline__title {
  font-size: var(--text-sm);
  font-weight: 600;
}

.timeline__meta {
  color: var(--text-muted);
  font-size: var(--text-xs);
}

.chat-preview {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-4);
  border-radius: var(--radius-lg);
  background: var(--surface-muted);
}

.bubble {
  max-width: 78%;
  padding: 10px var(--space-3);
  border-radius: 14px;
  font-size: var(--text-sm);
  line-height: var(--leading);
  box-shadow: var(--shadow-1);
}

.bubble--in {
  align-self: flex-start;
  border-bottom-left-radius: 4px;
  background: var(--surface-card);
  color: var(--text-primary);
}

.bubble--out {
  align-self: flex-end;
  border-bottom-right-radius: 4px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  color: var(--text-primary);
}

.bubble__meta {
  display: block;
  margin-top: 2px;
  color: var(--text-muted);
  font-size: 10px;
  text-align: right;
}

.qr-frame {
  display: grid;
  place-items: center;
  width: min(260px, 100%);
  aspect-ratio: 1;
  padding: var(--space-3);
  border-radius: var(--radius-md);
  background: #FFFFFF;
  box-shadow: var(--shadow-2);
}

.qr-frame canvas,
.qr-frame img {
  width: 100%;
  height: 100%;
  image-rendering: pixelated;
}

.code {
  display: block;
  padding: var(--space-2) var(--space-3);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  background: var(--surface-sunken);
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  overflow-wrap: anywhere;
}

.codes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: var(--space-2);
}

.codes__item {
  padding: var(--space-2) var(--space-3);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--surface-muted);
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  letter-spacing: 0.08em;
  text-align: center;
}

.kv {
  display: grid;
  grid-template-columns: minmax(120px, 200px) 1fr;
  gap: var(--space-2) var(--space-4);
  font-size: var(--text-sm);
}
