/* ==========================================================================
   OMK UI kit — reusable components. Compose these in views instead of writing new CSS.
   Buttons .btn · cards .card · chips .chip · forms .field/.input · alerts .alert · toasts · dialog/sheet
   segmented filters .seg · tables .table · avatars .avatar · empty states .empty · progress .progress
   ========================================================================== */

/* ----------------------------------------------------------------- buttons */
.btn {
  --btn-bg: var(--white);
  --btn-fg: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: 0 1.3em;
  font: 800 1rem/1 var(--font-display); letter-spacing: -.01em; text-align: center; text-decoration: none;
  color: var(--btn-fg); background: var(--btn-bg);
  border: var(--bw) solid var(--ink); border-radius: 14px; box-shadow: var(--shadow);
  cursor: pointer; user-select: none; -webkit-tap-highlight-color: transparent; touch-action: manipulation;
  transition: transform .14s var(--ease-pop), box-shadow .14s ease, background-color .15s;
  position: relative;
}
@media (hover: hover) {
  .btn:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--ink); color: var(--btn-fg); }
}
.btn:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--ink); }
.btn--primary { --btn-bg: var(--sun); }
.btn--blue { --btn-bg: var(--blue); }
.btn--lime { --btn-bg: var(--lime); }
.btn--orange { --btn-bg: var(--orange); }
.btn--pink { --btn-bg: var(--pink); }
.btn--ink { --btn-bg: var(--ink); --btn-fg: #fff; }
.btn--danger { --btn-bg: var(--crimson); --btn-fg: #fff; }
.btn--ghost { --btn-bg: transparent; box-shadow: none; border-color: transparent; }
.btn--ghost:hover { box-shadow: none; transform: none; background: rgba(22, 18, 15, .06); }
.btn--ghost:active { transform: scale(.97); box-shadow: none; }
.btn--sm { min-height: 42px; padding: 0 .95em; font-size: .875rem; border-radius: 12px; box-shadow: var(--shadow-sm); border-width: 2.5px; }
.btn--ghost.btn--sm { box-shadow: none; }
.btn--lg { min-height: 56px; padding: 0 1.6em; font-size: 1.1rem; border-radius: 16px; }
.btn--block { display: flex; width: 100%; }
.btn--icon { width: 44px; min-height: 44px; padding: 0; }
.btn--sm.btn--icon { width: 36px; min-height: 36px; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .5; pointer-events: none; box-shadow: none; }
.btn.is-loading { pointer-events: none; color: transparent; }
.btn.is-loading::after {
  content: ""; position: absolute; width: 1.2em; height: 1.2em; border-radius: 50%;
  border: 3px solid var(--ink); border-top-color: transparent; animation: spin .7s linear infinite;
}
.btn--ink.is-loading::after, .btn--danger.is-loading::after { border-color: #fff; border-top-color: transparent; }

.link-btn { background: none; border: 0; padding: 0; color: var(--blue-deep); font-weight: 800; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; cursor: pointer; }

/* ----------------------------------------------------------------- cards */
.card {
  background: var(--white);
  border: var(--bw) solid var(--ink); border-radius: var(--r-lg); box-shadow: var(--shadow);
  padding: 18px;
  position: relative;
}
.card--flat { box-shadow: none; }
.card--tight { padding: 12px; }
.card--blue { background: var(--blue-soft); }
.card--lime { background: var(--lime-soft); }
.card--orange { background: var(--orange-soft); }
.card--sun { background: var(--sun-soft); }
.card--pink { background: var(--plum-soft); }
.card--red { background: var(--red-soft); }
.card--ink { background: var(--ink); color: #fff; }
a.card, .card--press { color: inherit; text-decoration: none; display: block; transition: transform .14s var(--ease-pop), box-shadow .14s; -webkit-tap-highlight-color: transparent; }
@media (hover: hover) { a.card:hover, .card--press:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--ink); color: inherit; } }
a.card:active, .card--press:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--ink); }
.card__title { font: 800 1.1rem/1.15 var(--font-display); letter-spacing: -.01em; }
.card__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }

.panel-title { display: flex; align-items: center; gap: 10px; font: 800 .8rem/1 var(--font-display); text-transform: uppercase; letter-spacing: .1em; color: var(--ink-2); }
.panel-title::after { content: ""; flex: 1; border-top: 2px dashed var(--ink); opacity: .25; }

/* sticker: rotated label, great for dates / "NEW" / counters */
.sticker {
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1;
  min-width: 52px; padding: 8px 10px; background: var(--lime); color: var(--ink);
  border: var(--bw) solid var(--ink); border-radius: 14px; box-shadow: var(--shadow-sm);
  transform: rotate(var(--rot, -4deg)); font-family: var(--font-display); font-weight: 800;
}
.sticker b { font-size: 1.6rem; letter-spacing: -.03em; }
.sticker small { font-size: .65rem; letter-spacing: .12em; text-transform: uppercase; margin-top: 3px; }
.sticker--blue { background: var(--blue); } .sticker--orange { background: var(--orange); }
.sticker--sun { background: var(--sun); } .sticker--pink { background: var(--pink); } .sticker--white { background: #fff; }

/* ----------------------------------------------------------------- chips & badges */
.chip {
  --chip-bg: var(--white);
  display: inline-flex; align-items: center; gap: .35em; white-space: nowrap;
  padding: .28em .7em; font: 800 .72rem/1.2 var(--font-display); letter-spacing: .02em;
  background: var(--chip-bg); color: var(--ink);
  border: 2px solid var(--ink); border-radius: var(--r-pill);
}
.chip .icon { width: 1.1em; height: 1.1em; }
.chip--wrap { white-space: normal; border-radius: var(--r-sm); text-align: left; line-height: 1.25; } /* long, translated sentences wrap instead of being cut off on small phones */
.chip--blue { --chip-bg: var(--blue-soft); } .chip--lime { --chip-bg: var(--lime-soft); } .chip--orange { --chip-bg: var(--orange-soft); }
.chip--sun { --chip-bg: var(--sun); } .chip--pink { --chip-bg: var(--plum-soft); } .chip--red { --chip-bg: var(--red-soft); }
.chip--green { --chip-bg: var(--green-soft); }
.chip--solid-blue { --chip-bg: var(--blue); } .chip--solid-lime { --chip-bg: var(--lime); } .chip--solid-orange { --chip-bg: var(--orange); }
.chip--ink { --chip-bg: var(--ink); color: #fff; }
.chip--lg { font-size: .85rem; padding: .35em .85em; }

.badge {
  display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px;
  font: 800 .72rem/1 var(--font-display); color: #fff; background: var(--crimson);
  border: 2px solid var(--ink); border-radius: var(--r-pill);
}

/* ----------------------------------------------------------------- forms */
.field { display: block; }
.field + .field { margin-top: 16px; }
.field__label { display: block; margin-bottom: 6px; font: 800 .85rem/1.2 var(--font-display); letter-spacing: .01em; }
.field__label .opt { font-weight: 600; color: var(--ink-3); }
.field__hint { margin-top: 6px; font-size: .8rem; color: var(--ink-2); }
.field__hint--icon { display: flex; align-items: flex-start; gap: 6px; }
.field__hint--icon > .icon { margin-top: .2em; }
.field__error { margin-top: 6px; font-size: .82rem; font-weight: 700; color: var(--crimson); display: flex; gap: 6px; align-items: flex-start; animation: slide-down .25s var(--ease-out); }
.field.has-error .input, .field.has-error .select, .field.has-error .textarea { border-color: var(--crimson); box-shadow: 3px 3px 0 var(--crimson); }

.input, .select, .textarea {
  display: block; width: 100%; min-height: 48px; padding: 11px 14px;
  font-size: 1rem; /* 16px+ prevents the iOS zoom */ font-weight: 600; color: var(--ink);
  background: var(--white); border: var(--bw) solid var(--ink); border-radius: 14px; box-shadow: 3px 3px 0 var(--ink);
  transition: box-shadow .15s, transform .15s var(--ease-pop), background-color .15s;
  -webkit-appearance: none; appearance: none;
}
.input::placeholder, .textarea::placeholder { color: var(--ink-3); font-weight: 500; }
.input:focus, .select:focus, .textarea:focus { outline: none; background: #fffdf7; box-shadow: 5px 5px 0 var(--blue); transform: translate(-1px, -1px); }
.input[readonly], .input:disabled, .select:disabled, .textarea:disabled { background: var(--paper-2); color: var(--ink-2); box-shadow: none; cursor: not-allowed; }
.textarea { min-height: 96px; resize: vertical; line-height: 1.45; }
.select {
  padding-right: 42px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2316120f' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 20px;
}
.input--sm, .select--sm { min-height: 40px; padding: 7px 12px; border-radius: 12px; font-size: .9rem; box-shadow: 2px 2px 0 var(--ink); }
.input-group { display: flex; align-items: stretch; }
.input-group__addon {
  display: grid; place-items: center; flex: none; padding: 0 14px; white-space: nowrap; font: 800 .95rem var(--font-display);
  background: var(--sun); border: var(--bw) solid var(--ink); border-right: 0; border-radius: 14px 0 0 14px; box-shadow: 3px 3px 0 var(--ink);
}
.input-group .input { flex: 1 1 auto; min-width: 0; border-radius: 0 14px 14px 0; }

/* checkbox / radio / switch: <label class="check"><input type="checkbox"><span>Text</span></label> */
.check { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; font-weight: 600; line-height: 1.35; }
.check input { position: absolute; opacity: 0; pointer-events: none; }
.check::before {
  content: ""; flex: none; width: 26px; height: 26px; margin-top: -2px; background: #fff;
  border: var(--bw) solid var(--ink); border-radius: 8px; box-shadow: 2px 2px 0 var(--ink);
  transition: background-color .15s, transform .2s var(--ease-pop);
  background-repeat: no-repeat; background-position: center; background-size: 18px;
}
.check:has(input[type="radio"])::before { border-radius: 50%; }
.check:has(input:checked)::before {
  background-color: var(--lime); transform: scale(1.06);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2316120f' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
}
.check:has(input:focus-visible)::before { outline: 3px solid var(--blue); outline-offset: 2px; }
.check:has(input:disabled) { opacity: .55; cursor: not-allowed; }
.switch { display: flex; align-items: center; gap: 12px; cursor: pointer; font-weight: 700; }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch::before {
  content: ""; flex: none; width: 54px; height: 32px; border: var(--bw) solid var(--ink); border-radius: var(--r-pill); background: #e9dfcc;
  box-shadow: 2px 2px 0 var(--ink); transition: background-color .2s;
  background-image: radial-gradient(circle at 14px 50%, var(--ink) 0 9px, transparent 10px); background-repeat: no-repeat; background-position: 0 0;
}
.switch:has(input:checked)::before { background-color: var(--lime); background-image: radial-gradient(circle at 14px 50%, var(--ink) 0 9px, transparent 10px); background-position: 22px 0; }
.switch:has(input:focus-visible)::before { outline: 3px solid var(--blue); outline-offset: 2px; }

/* file input as a big dashed drop zone: <label class="drop"><input type="file" ...><span>…</span></label> */
.drop {
  display: grid; place-items: center; gap: 6px; text-align: center; padding: 22px 16px; cursor: pointer;
  background: #fff; border: var(--bw) dashed var(--ink); border-radius: var(--r-lg); font-weight: 700;
  transition: background-color .15s, transform .15s var(--ease-pop);
}
.drop:hover, .drop:focus-within { background: var(--sun-soft); transform: translateY(-1px); }
.drop input[type="file"] { position: absolute; opacity: 0; width: 1px; height: 1px; }
.drop.has-file { background: var(--lime-soft); border-style: solid; }
.drop img.preview { max-height: 180px; border-radius: 12px; border: 2px solid var(--ink); }

/* PIN: <input class="pin" data-pin ...> -> JS builds 4 boxes (works without JS as a plain input) */
.pin {
  display: block; width: 100%; min-height: 56px; padding: 8px 14px; text-align: center;
  font: 800 1.6rem/1 var(--font-display); letter-spacing: .6em; text-indent: .6em;
  background: #fff; border: var(--bw) solid var(--ink); border-radius: 14px; box-shadow: 3px 3px 0 var(--ink);
}
.pin:focus { outline: none; box-shadow: 5px 5px 0 var(--blue); }
.pin-boxes { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.pin-boxes input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; font-size: 16px; cursor: text; z-index: 2; letter-spacing: 0; text-indent: 0; }
.pin-box {
  display: grid; place-items: center; height: 62px; background: #fff; border: var(--bw) solid var(--ink); border-radius: 14px;
  box-shadow: 3px 3px 0 var(--ink); transition: transform .2s var(--ease-pop), box-shadow .15s, background-color .15s;
}
.pin-box i { width: 14px; height: 14px; border-radius: 50%; background: var(--ink); transform: scale(0); transition: transform .2s var(--ease-pop); }
.pin-box.is-filled { background: var(--sun); }
.pin-box.is-filled i { transform: scale(1); }
.pin-box.is-reveal i { width: auto; height: auto; background: none; border-radius: 0; font: 800 1.5rem/1 var(--font-display); transform: scale(1); }
.pin-boxes:focus-within .pin-box.is-active { box-shadow: 5px 5px 0 var(--blue); transform: translate(-1px, -1px); }
.pin-boxes.has-error .pin-box { border-color: var(--crimson); animation: shake .35s; }
@keyframes shake { 20%, 60% { transform: translateX(-5px); } 40%, 80% { transform: translateX(5px); } }

.form-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 22px; }
.form-section + .form-section { margin-top: 26px; }

/* ----------------------------------------------------------------- alerts, toasts */
.alert {
  display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; font-weight: 600; font-size: .92rem; line-height: 1.4;
  background: var(--blue-soft); border: var(--bw) solid var(--ink); border-radius: var(--r); box-shadow: var(--shadow-sm);
}
.alert .icon { margin-top: 1px; }
.alert--success { background: var(--lime-soft); }
.alert--warning { background: var(--sun-soft); }
.alert--error { background: var(--red-soft); }
.alert--info { background: var(--blue-soft); }

.toasts { position: fixed; z-index: 900; left: 0; right: 0; top: calc(var(--safe-t) + 10px); display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 0 12px; pointer-events: none; }
.toast {
  pointer-events: auto; display: flex; align-items: center; gap: 10px; width: min(100%, 460px); padding: 12px 14px;
  font-weight: 700; font-size: .95rem; background: #fff; border: var(--bw) solid var(--ink); border-radius: var(--r); box-shadow: var(--shadow);
  animation: toast-in .45s var(--ease-pop) both, toast-out .3s ease-in forwards; animation-delay: 0s, var(--life, 4.6s);
}
.toast .icon { flex: none; }
.toast--success { background: var(--lime); }
.toast--error { background: var(--red-soft); --life: 7s; }
.toast--warning { background: var(--sun); }
.toast--info { background: var(--blue-soft); }
.toast__close { margin-left: auto; background: none; border: 0; padding: 4px; line-height: 0; cursor: pointer; }
@media (min-width: 960px) { .toasts { align-items: flex-end; padding: 0 24px; top: calc(var(--safe-t) + 16px); } } /* laptop: top-right, never over the page title */
@keyframes toast-in { from { transform: translateY(-120%) scale(.9); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes toast-out { to { transform: translateY(-30px); opacity: 0; visibility: hidden; } }

/* confetti bits (created by JS) */
.confetti { position: fixed; z-index: 950; left: 0; top: 0; width: 10px; height: 14px; border: 2px solid var(--ink); border-radius: 3px; pointer-events: none; will-change: transform, opacity; }

/* ----------------------------------------------------------------- dialog / bottom sheet (<dialog class="sheet">) */
dialog.sheet {
  width: min(100% - 24px, 460px); max-height: calc(100dvh - 24px); margin: auto; padding: 0; overflow: auto;
  color: var(--ink); background: var(--paper); border: var(--bw) solid var(--ink); border-radius: var(--r-lg); box-shadow: var(--shadow-lg);
}
dialog.sheet[open] { animation: pop .35s var(--ease-pop); }
dialog.sheet::backdrop { background: rgba(22, 18, 15, .55); animation: fade-in .2s; }
.sheet__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px 0; }
.sheet__body { padding: 14px 18px 18px; }
.sheet__foot { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; padding: 0 18px 18px; }
.sheet__title { font: 800 1.25rem/1.15 var(--font-display); }
@media (max-width: 640px) {
  dialog.sheet { width: 100%; max-width: none; margin: auto 0 0; border-radius: var(--r-lg) var(--r-lg) 0 0; border-bottom: 0; max-height: 92dvh; padding-bottom: var(--safe-b); }
  dialog.sheet[open] { animation: sheet-up .4s var(--ease-out); }
}
@keyframes sheet-up { from { transform: translateY(100%); } to { transform: none; } }

/* ----------------------------------------------------------------- segmented filter / tabs */
.seg { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 8px; margin: 0 -2px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.seg::-webkit-scrollbar { display: none; }
.seg__item {
  flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; font: 800 .85rem/1 var(--font-display);
  color: var(--ink); background: #fff; border: 2.5px solid var(--ink); border-radius: var(--r-pill); text-decoration: none; cursor: pointer;
  transition: transform .15s var(--ease-pop), background-color .15s, box-shadow .15s; box-shadow: var(--shadow-sm); white-space: nowrap;
}
.seg__item:hover { color: var(--ink); transform: translateY(-1px); }
.seg__item.is-active, .seg__item[aria-current="page"], .seg__item[aria-pressed="true"] { background: var(--sun); box-shadow: 3px 3px 0 var(--ink); }
.seg__item .badge { height: 18px; min-width: 18px; font-size: .65rem; }

/* ----------------------------------------------------------------- tables (console) */
.table-wrap { overflow-x: auto; background: #fff; border: var(--bw) solid var(--ink); border-radius: var(--r-lg); box-shadow: var(--shadow); -webkit-overflow-scrolling: touch; }
.table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.table th { position: sticky; top: 0; text-align: left; padding: 12px 14px; font: 800 .72rem/1 var(--font-display); text-transform: uppercase; letter-spacing: .1em; color: var(--ink-2); background: var(--paper-2); border-bottom: var(--bw) solid var(--ink); white-space: nowrap; }
.table td { padding: 12px 14px; border-bottom: 2px dashed rgba(22, 18, 15, .15); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr { transition: background-color .12s; }
.table tbody tr:hover { background: var(--sun-soft); }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }
.table .actions { white-space: nowrap; text-align: right; }
.table-empty { padding: 36px 16px; text-align: center; color: var(--ink-2); font-weight: 600; }
/* stacked "card rows" on small screens: <table class="table table--stack"> + data-label on <td> */
@media (max-width: 720px) {
  .table--stack thead { display: none; }
  .table--stack, .table--stack tbody, .table--stack tr, .table--stack td { display: block; width: 100%; }
  .table--stack tr { padding: 12px 14px; border-bottom: var(--bw) solid var(--ink); }
  .table--stack tr:last-child { border-bottom: 0; }
  .table--stack td { padding: 4px 0; border: 0; display: flex; justify-content: space-between; gap: 14px; text-align: right; }
  .table--stack td::before { content: attr(data-label); font: 800 .7rem/1.6 var(--font-display); text-transform: uppercase; letter-spacing: .08em; color: var(--ink-2); text-align: left; flex: none; }
  .table--stack td[data-label=""]::before, .table--stack td:not([data-label])::before { display: none; }
  .table--stack td.actions { justify-content: flex-end; padding-top: 8px; }
}

/* ----------------------------------------------------------------- misc components */
.avatar {
  --size: 40px; display: inline-grid; place-items: center; flex: none; width: var(--size); height: var(--size);
  font: 800 calc(var(--size) * .4)/1 var(--font-display); color: var(--ink); text-transform: uppercase; letter-spacing: -.02em;
  background: var(--avatar-bg, var(--sun)); border: var(--bw) solid var(--ink); border-radius: 50%; box-shadow: var(--shadow-sm); text-decoration: none;
}
a.avatar:hover { color: var(--ink); }
.avatar--lg { --size: 76px; box-shadow: var(--shadow); }
.avatar--xl { --size: 112px; border-width: 4px; box-shadow: var(--shadow-lg); }
.avatar--sm { --size: 32px; border-width: 2.5px; box-shadow: none; }
.avatar--photo { overflow: hidden; background: var(--white); }
.avatar img { display: block; width: 100%; height: 100%; object-fit: cover; }

.empty { display: grid; justify-items: center; gap: 10px; padding: 34px 18px; text-align: center; }
.empty__art { width: 96px; height: 96px; display: grid; place-items: center; font-size: 2.2rem; background: var(--sun); border: var(--bw) solid var(--ink); border-radius: 50%; box-shadow: var(--shadow); animation: bob 3s ease-in-out infinite; }
.empty__art .icon { width: 44px; height: 44px; }
.empty h3 { font-size: 1.25rem; }
.empty p { color: var(--ink-2); max-width: 32ch; }

.progress { height: 16px; background: #fff; border: var(--bw) solid var(--ink); border-radius: var(--r-pill); overflow: hidden; }
.progress > i { display: block; height: 100%; width: var(--p, 0%); background: repeating-linear-gradient(135deg, var(--lime) 0 10px, #bdd84a 10px 20px); border-right: 3px solid var(--ink); transition: width .8s var(--ease-out); }
.progress--orange > i { background: repeating-linear-gradient(135deg, var(--orange) 0 10px, #ffb04d 10px 20px); }
.progress--blue > i { background: repeating-linear-gradient(135deg, var(--blue) 0 10px, #4fb4e6 10px 20px); }
.progress--red > i { background: repeating-linear-gradient(135deg, var(--red) 0 10px, #f0665a 10px 20px); }

.stat { display: grid; gap: 4px; padding: 16px; }
.stat__num { font: 800 2.2rem/1 var(--font-display); letter-spacing: -.03em; }
.stat__label { font: 800 .72rem/1.2 var(--font-display); text-transform: uppercase; letter-spacing: .1em; color: var(--ink-2); }

.kv { display: grid; grid-template-columns: max-content 1fr; gap: 8px 16px; margin: 0; }
.kv dt { font: 800 .75rem/1.6 var(--font-display); text-transform: uppercase; letter-spacing: .08em; color: var(--ink-2); }
.kv dd { margin: 0; font-weight: 600; }

.list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.list-item { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: #fff; border: var(--bw) solid var(--ink); border-radius: var(--r); box-shadow: var(--shadow-sm); color: inherit; text-decoration: none; }
a.list-item { transition: transform .14s var(--ease-pop), box-shadow .14s; }
@media (hover: hover) { a.list-item:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--ink); color: inherit; } }
a.list-item:active { transform: translate(2px, 2px); box-shadow: 0 0 0 var(--ink); }
.list-item__icon { display: grid; place-items: center; flex: none; width: 42px; height: 42px; background: var(--sun); border: 2.5px solid var(--ink); border-radius: 12px; }

.pagination { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: center; margin-top: 18px; }
.pagination .btn { min-width: 40px; }
.pagination .is-current { background: var(--sun); }

.spinner { width: 28px; height: 28px; border: 4px solid var(--ink); border-top-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
.skeleton { background: linear-gradient(100deg, #f0e5cf 30%, #fff8ea 50%, #f0e5cf 70%); background-size: 200% 100%; animation: skel 1.3s linear infinite; border-radius: 12px; }
@keyframes skel { to { background-position: -200% 0; } }

details.accordion { background: #fff; border: var(--bw) solid var(--ink); border-radius: var(--r); box-shadow: var(--shadow-sm); }
details.accordion > summary { list-style: none; cursor: pointer; padding: 14px 16px; font: 800 1rem var(--font-display); display: flex; justify-content: space-between; align-items: center; gap: 12px; }
details.accordion > summary::-webkit-details-marker { display: none; }
details.accordion > summary::after { content: "+"; font-size: 1.4rem; transition: transform .2s var(--ease-pop); }
details.accordion[open] > summary::after { transform: rotate(45deg); }
details.accordion > .accordion__body { padding: 0 16px 16px; }

/* status chips used for registrations / payments / QR codes */
.status { --s-bg: var(--paper-2); display: inline-flex; align-items: center; gap: 6px; padding: .3em .75em; font: 800 .72rem/1.2 var(--font-display); letter-spacing: .03em; background: var(--s-bg); border: 2px solid var(--ink); border-radius: var(--r-pill); white-space: nowrap; }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ink); }
.status--ok { --s-bg: var(--lime); }
.status--wait { --s-bg: var(--sun); }
.status--info { --s-bg: var(--blue-soft); }
.status--bad { --s-bg: var(--red-soft); }
.status--off { --s-bg: #e7e1d6; }
