/* ==========================================================================
   SiteSmith Labs: shared components (website and portals).
   Buttons, tags, chips, cards, forms, switches, avatars, toasts, dialogs,
   skeletons, tooltips, progress and empty states.
   ========================================================================== */

/* ---------- Buttons ---------- */
.btn {
  max-width: 100%;
  --btn-bg: var(--brand);
  --btn-fg: var(--on-brand);
  --btn-bd: transparent;
  --btn-hover-bg: var(--brand-strong);
  --btn-hover-fg: var(--btn-fg);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 12px 22px;
  border: 2px solid var(--btn-bd);
  border-radius: var(--r-sm);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-weight: 700;
  font-size: 16px;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
  transition: background var(--t) ease, color var(--t) ease, border-color var(--t) ease,
    box-shadow var(--t) ease, transform var(--t) var(--ease);
  will-change: transform;
}
.btn:hover { background: var(--btn-hover-bg); color: var(--btn-hover-fg); }
.btn:active { transform: scale(.97); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .55; transform: none; }
.btn svg { width: 18px; height: 18px; transition: transform var(--t) var(--ease); }
.btn:hover .btn__arrow { transform: translateX(3px); }
.btn--dark { --btn-bg: var(--ink); --btn-fg: var(--bg); --btn-hover-bg: var(--brand-strong); --btn-hover-fg: #fff; }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--ink); --btn-bd: var(--ink); --btn-hover-bg: var(--ink); --btn-hover-fg: var(--bg); }
.btn--soft { --btn-bg: var(--surface-4); --btn-fg: var(--ink); --btn-hover-bg: var(--line); }
.btn--white { --btn-bg: #fff; --btn-fg: #06303F; --btn-hover-bg: var(--brand); --btn-hover-fg: #fff; }
.btn--glass { --btn-bg: rgba(255, 255, 255, .14); --btn-fg: #fff; --btn-hover-bg: rgba(255, 255, 255, .26); --btn-hover-fg: #fff; }
.btn--outline { --btn-bg: transparent; --btn-fg: var(--ink); --btn-bd: var(--line); --btn-hover-bg: transparent; }
.btn--outline:hover { border-color: var(--ink); }
.btn--outline-light { --btn-bg: transparent; --btn-fg: #fff; --btn-bd: rgba(255, 255, 255, .45); --btn-hover-bg: rgba(255, 255, 255, .08); }
.btn--outline-light:hover { border-color: #fff; }
.btn--danger { --btn-bg: var(--red); --btn-fg: #fff; --btn-hover-bg: var(--red-ink); }
.btn--danger-soft { --btn-bg: var(--red-soft); --btn-fg: var(--red-ink); --btn-hover-bg: var(--red); --btn-hover-fg: #fff; }
.btn--success { --btn-bg: var(--green); --btn-fg: #fff; --btn-hover-bg: var(--green-ink); }
.btn--link { --btn-bg: transparent; --btn-fg: var(--brand-strong); --btn-hover-bg: transparent; --btn-hover-fg: var(--ink); min-height: 0; padding: 4px 2px; white-space: normal; text-align: left; }
.btn--sm { min-height: 38px; padding: 8px 14px; font-size: 14px; border-radius: var(--r-sm); }
.btn--lg { min-height: 56px; padding: 16px 28px; font-size: 16.5px; }
.btn--block { width: 100%; }
.btn--icon { min-height: 0; width: 44px; height: 44px; padding: 0; border-radius: var(--r); }
.btn--icon.btn--sm { width: 36px; height: 36px; }

/* Colour sweeps up from the bottom on hover */
.btn--fill { --btn-hover-bg: var(--btn-bg); }
.btn--fill::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--fill, var(--ink));
  transform: translateY(101%);
  transition: transform .38s var(--ease);
}
.btn--fill:hover::before, .btn--fill:focus-visible::before { transform: translateY(0); }

/* Loading state: text fades, a spinner shows */
.btn.is-loading { color: transparent !important; pointer-events: none; }
.btn.is-loading::after {
  content: ""; position: absolute; width: 20px; height: 20px; left: 50%; top: 50%; margin: -10px 0 0 -10px;
  border: 2.5px solid var(--btn-fg); border-right-color: transparent; border-radius: 50%;
  animation: spin .7s linear infinite;
}

/* Tap ripple (added by JS on any [data-ripple] or .btn) */
.ripple {
  position: absolute; border-radius: 50%; pointer-events: none; z-index: 0;
  background: currentColor; opacity: .25; transform: scale(0);
  animation: rippleOut .6s ease-out forwards;
}

/* ---------- Tags, badges, chips ---------- */
.tag {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 13px; border-radius: var(--r-full);
  background: var(--brand-soft); color: var(--brand-ink);
  font-size: var(--fs-xs); font-weight: 800; letter-spacing: .09em; text-transform: uppercase;
  white-space: nowrap;
}
.tag--green { background: var(--green-soft); color: var(--green-ink); }
.tag--yellow { background: var(--yellow-soft); color: var(--yellow-ink); }
.tag--orange { background: var(--orange-soft); color: var(--orange-ink); }
.tag--pink { background: var(--pink-soft); color: var(--pink-ink); }
.tag--purple { background: var(--purple-soft); color: var(--purple-ink); }
.tag--white { background: #fff; color: var(--ink); }
.tag--glass { background: rgba(255, 255, 255, .14); color: #fff; }
.tag--dark { background: var(--ink); color: var(--bg); }
.tag__dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.tag__dot--live { background: var(--brand); animation: pulseRing 1.6s ease-out infinite; }

/* Status pill (portal lists) */
.status {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: var(--r-full);
  font-size: 12px; font-weight: 800; white-space: nowrap; line-height: 1.5;
  background: var(--surface-3); color: var(--ink-2);
}
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .8; }
.status--plain::before { display: none; }
.status--blue { background: var(--blue-soft); color: var(--blue-ink); }
.status--green { background: var(--green-soft); color: var(--green-ink); }
.status--yellow { background: var(--yellow-soft); color: var(--yellow-ink); }
.status--orange { background: var(--orange-soft); color: var(--orange-ink); }
.status--pink { background: var(--pink-soft); color: var(--pink-ink); }
.status--purple { background: var(--purple-soft); color: var(--purple-ink); }
.status--red { background: var(--red-soft); color: var(--red-ink); }

.badge {
  display: inline-grid; place-items: center;
  min-width: 20px; height: 20px; padding: 0 6px;
  border-radius: var(--r-full);
  background: var(--pink); color: #fff;
  font-size: 11px; font-weight: 800; line-height: 1;
  font-variant-numeric: tabular-nums;
}
.badge--brand { background: var(--brand); }
.badge--yellow { background: #B07A0E; }
.badge--pop { animation: popIn .4s var(--ease-spring) both; }

/* Selectable chip (single or multi choice) */
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 9px 15px;
  border: 2px solid var(--line); border-radius: var(--r-sm);
  background: var(--surface-2); color: var(--ink-2);
  font-size: 14.5px; font-weight: 700; cursor: pointer; user-select: none;
  transition: border-color var(--t) ease, background var(--t) ease, color var(--t) ease, transform var(--t) var(--ease);
}
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip:active { transform: scale(.97); }
.chip[aria-pressed="true"], .chip[aria-checked="true"], .chip.is-on {
  border-color: var(--brand); background: var(--brand-soft); color: var(--brand-ink);
}

/* Filter pill (rounded, dark when on) */
.pill {
  display: inline-flex; align-items: center; gap: 7px;
  min-height: 40px; padding: 8px 15px; border-radius: var(--r-full);
  background: var(--surface); color: var(--ink-2);
  font-size: 13.5px; font-weight: 800; white-space: nowrap; cursor: pointer;
  border: 0;
  transition: background var(--t) ease, color var(--t) ease, transform var(--t) var(--ease);
}
.pill:hover { color: var(--ink); }
.pill:active { transform: scale(.96); }
.pill[aria-pressed="true"], .pill.is-on { background: var(--ink); color: var(--bg); }
.pill .badge { background: var(--pink); }
.pill-row {
  display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none;
  margin-inline: calc(var(--gutter) * -1); padding: 2px var(--gutter) 6px;
  scroll-snap-type: x proximity; scroll-padding-inline: var(--gutter); /* snap chips to the gutter, not the screen edge */
}
.pill-row::-webkit-scrollbar { display: none; }
.pill-row > * { scroll-snap-align: start; flex: none; }
@media (min-width: 640px) {
  .pill-row { flex-wrap: wrap; overflow: visible; margin-inline: 0; padding-inline: 0; }
}

/* ---------- Cards ---------- */
.card {
  position: relative;
  background: var(--surface);
  border-radius: var(--r-xl);
  padding: 22px;
}
@media (min-width: 640px) { .card { padding: 30px; } }
.card--lift { transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
@media (hover: hover) {
  .card--lift:hover { transform: translateY(-6px); box-shadow: 0 24px 40px -24px rgba(6, 48, 63, .45); }
}

/* Spotlight: a soft glow follows the pointer (JS sets --mx/--my) */
.spotlight { position: relative; overflow: hidden; }
.spotlight::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, -30%), rgba(0, 169, 224, .12), transparent 45%);
  opacity: 0; transition: opacity .35s ease;
}
.spotlight:hover::after { opacity: 1; }

/* Icon disc */
.icon-disc {
  display: grid; place-items: center; flex: none;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--brand-soft); color: var(--brand-ink);
}
.icon-disc svg { width: 22px; height: 22px; }
.icon-disc--sm { width: 36px; height: 36px; }
.icon-disc--sm svg { width: 18px; height: 18px; }
.icon-disc--square { border-radius: var(--r); }
.icon-disc--white { background: #fff; }
.icon-disc--green { background: var(--green-soft); color: var(--green-ink); }
.icon-disc--yellow { background: var(--yellow-soft); color: var(--yellow-ink); }
.icon-disc--orange { background: var(--orange-soft); color: var(--orange-ink); }
.icon-disc--pink { background: var(--pink-soft); color: var(--pink-ink); }
.icon-disc--purple { background: var(--purple-soft); color: var(--purple-ink); }
.icon-disc--dark { background: var(--ink); color: var(--bg); }

/* Tick list */
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; font-size: var(--fs-md); font-weight: 600; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; }
.ticks li::before {
  content: ""; flex: none; width: 18px; height: 18px; margin-top: 2px;
  background: var(--tick, var(--brand));
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* ---------- Forms ---------- */
.field { display: grid; gap: 7px; min-width: 0; }
.field__label { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; font-size: 14px; font-weight: 700; color: var(--ink); }
.field__label small { font-weight: 600; color: var(--muted); font-size: 13px; }
.field__hint { font-size: 13px; color: var(--muted); }

.input, .textarea, .select {
  width: 100%; min-height: 50px;
  padding: 12px 15px;
  border: 2px solid var(--line); border-radius: var(--r);
  background: var(--surface-2); color: var(--ink);
  font-size: 16px; /* 16px stops iOS zooming into fields */
  transition: border-color var(--t) ease, background var(--t) ease, box-shadow var(--t) ease;
  -webkit-appearance: none; appearance: none;
}
.input:hover, .textarea:hover, .select:hover { border-color: #D8D0C0; }
.input:focus, .textarea:focus, .select:focus { outline: none; border-color: var(--brand); background: var(--surface); box-shadow: var(--ring); }
.input[aria-invalid="true"] { border-color: var(--red); animation: shake .4s ease; }
.textarea { min-height: 120px; resize: vertical; line-height: 1.5; }
.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='%236C7C82' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 18px;
}
input[type="date"].input { min-height: 50px; }
.input-group { position: relative; display: flex; align-items: center; }
.input-group .input { padding-right: 76px; }
.input-group__btn {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  min-height: 36px; padding: 6px 12px; border-radius: var(--r-sm);
  font-size: 13.5px; font-weight: 800; color: var(--brand-strong);
  transition: background var(--t-fast) ease;
}
.input-group__btn:hover { background: var(--surface-3); }
.input-icon { position: relative; }
.input-icon > svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--muted); pointer-events: none; }
.input-icon .input { padding-left: 42px; }

/* Custom checkbox */
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 14.5px; line-height: 1.45; color: var(--ink-2); cursor: pointer; }
.check input {
  flex: none; width: 22px; height: 22px; margin: 0; cursor: pointer;
  border: 2px solid var(--line); border-radius: 7px; background: var(--surface);
  -webkit-appearance: none; appearance: none; display: grid; place-items: center;
  transition: background var(--t-fast) ease, border-color var(--t-fast) ease;
}
.check input::after {
  content: ""; width: 12px; height: 12px; transform: scale(0);
  background: #fff; transition: transform .22s var(--ease-spring);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
}
.check input:checked { background: var(--brand); border-color: var(--brand); }
.check input:checked::after { transform: scale(1); }

/* Switch */
.switch {
  position: relative; flex: none; display: inline-flex; align-items: center;
  width: 52px; height: 30px; padding: 4px; border-radius: var(--r-full);
  background: var(--switch-off, #DDE3E5); cursor: pointer; border: 0;
  transition: background .3s ease;
}
.switch::after {
  content: ""; width: 22px; height: 22px; border-radius: 50%; background: #fff;
  box-shadow: 0 2px 6px -2px rgba(6, 48, 63, .4);
  transition: transform .32s var(--ease-spring), width .2s ease;
}
.switch:active::after { width: 26px; }
.switch[aria-checked="true"] { background: var(--brand); }
.switch[aria-checked="true"]::after { transform: translateX(22px); }
.switch[aria-checked="true"]:active::after { transform: translateX(18px); }

/* Segmented control */
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; padding: 4px; border-radius: var(--r); background: var(--surface-4); position: relative; }
.seg__btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  position: relative; z-index: 1; min-height: 42px; padding: 9px 12px; border-radius: 9px;
  font-weight: 800; font-size: 14.5px; color: var(--ink-2); text-align: center;
  transition: color var(--t) ease, background var(--t) ease, box-shadow var(--t) ease;
}
.seg__btn[aria-selected="true"], .seg__btn[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 2px 6px -3px rgba(6, 48, 63, .3); }

/* Password strength meter */
.strength { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; }
.strength span { height: 5px; border-radius: var(--r-full); background: var(--line); transition: background .3s ease, transform .3s var(--ease); transform-origin: left; }
.strength[data-score="1"] span:nth-child(-n+1) { background: var(--red); }
.strength[data-score="2"] span:nth-child(-n+2) { background: var(--yellow); }
.strength[data-score="3"] span:nth-child(-n+3) { background: var(--brand); }
.strength[data-score="4"] span { background: var(--green); }

/* ---------- Avatar ---------- */
.avatar {
  display: grid; place-items: center; flex: none;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--brand-soft); color: var(--brand-ink);
  font-weight: 800; font-size: 14px; letter-spacing: -.01em;
}
.avatar--sm { width: 32px; height: 32px; font-size: 12px; }
.avatar--lg { width: 56px; height: 56px; font-size: 19px; }
.avatar--dark { background: var(--ink); color: var(--bg); }

/* ---------- Progress ---------- */
.bar { height: 8px; border-radius: var(--r-full); background: var(--line-2); overflow: hidden; }
.bar__fill { height: 100%; border-radius: inherit; background: var(--brand); transform-origin: left; transition: width .8s var(--ease); animation: growBar .9s var(--ease) both; }
.bar--sm { height: 5px; }
.ring { --size: 64px; --stroke: 7; width: var(--size); height: var(--size); position: relative; display: grid; place-items: center; }
.ring svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.ring__track { stroke: var(--line-2); }
.ring__fill { stroke: var(--brand); stroke-linecap: round; transition: stroke-dashoffset 1s var(--ease); }
.ring__label { font-weight: 800; font-size: 15px; font-variant-numeric: tabular-nums; }

/* ---------- Skeleton loading ---------- */
.skeleton {
  display: block; border-radius: var(--r-sm);
  background: linear-gradient(90deg, var(--line-2) 25%, var(--surface-3) 45%, var(--line-2) 65%);
  background-size: 200% 100%;
  animation: shimmer 1.4s ease-in-out infinite;
}
.skeleton--text { height: 12px; }
.skeleton--title { height: 26px; width: 60%; }
.skeleton--card { height: 120px; border-radius: var(--r-lg); }
.skeleton--circle { border-radius: 50%; }

/* ---------- Tooltip ([data-tip]) ---------- */
[data-tip] { position: relative; }
[data-tip]::after {
  content: attr(data-tip);
  position: absolute; left: 50%; bottom: calc(100% + 9px); z-index: 30;
  padding: 7px 11px; border-radius: var(--r-sm);
  background: var(--ink); color: #fff; font-size: 12.5px; font-weight: 700; white-space: nowrap;
  pointer-events: none; opacity: 0; transform: translate(-50%, 6px);
  transition: opacity .2s ease, transform .26s var(--ease);
}
[data-tip]:hover::after, [data-tip]:focus-visible::after { opacity: 1; transform: translate(-50%, 0); }
@media (hover: none) { [data-tip]::after { display: none; } }

/* ---------- Toasts ---------- */
.toasts {
  position: fixed; z-index: 400; left: 50%; transform: translateX(-50%);
  bottom: calc(18px + var(--safe-bottom) + var(--toast-offset, 0px));
  width: min(440px, calc(100vw - 24px));
  display: grid; gap: 8px; pointer-events: none;
}
.toast {
  pointer-events: auto;
  display: flex; align-items: center; gap: 12px;
  padding: 13px 14px 13px 16px; border-radius: var(--r-md);
  background: var(--toast-bg, #06303F); color: #fff;
  font-size: 14.5px; font-weight: 700; line-height: 1.4;
  box-shadow: 0 18px 38px -16px rgba(6, 48, 63, .6);
  animation: toastIn .38s var(--ease-spring) both;
}
.toast__icon { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; flex: none; background: rgba(255, 255, 255, .14); }
.toast__icon svg { width: 15px; height: 15px; }
.toast--success .toast__icon { background: var(--green); }
.toast--error .toast__icon { background: var(--red); }
.toast__action { margin-left: auto; font-weight: 800; color: var(--brand-light); padding: 4px 6px; border-radius: 6px; }
.toast__action:hover { color: #fff; }
.toast-leave-active { transition: opacity .25s ease, transform .25s ease; }
.toast-leave-to { opacity: 0; transform: translateY(8px) scale(.97); }
@keyframes toastIn { from { opacity: 0; transform: translateY(16px) scale(.96) } to { opacity: 1; transform: none } }

/* ---------- Dialog: bottom sheet on phones, centred card on larger screens ---------- */
.modal {
  position: fixed; inset: 0; z-index: 300;
  display: flex; align-items: flex-end; justify-content: center;
  background: var(--overlay);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  animation: fadeIn .22s ease both;
  overscroll-behavior: contain;
}
.dialog {
  position: relative;
  width: 100%; max-height: calc(100dvh - 24px - var(--safe-top));
  overflow: auto; overscroll-behavior: contain;
  background: var(--surface); color: var(--ink);
  border-radius: var(--r-xl) var(--r-xl) 0 0;
  padding: 10px 20px calc(22px + var(--safe-bottom));
  box-shadow: var(--sh-4);
  animation: sheetUp .38s var(--ease) both;
}
.dialog::before { content: ""; display: block; width: 44px; height: 5px; border-radius: var(--r-full); background: var(--line); margin: 0 auto 14px; }
.dialog__head { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 16px; }
.dialog__title { font-weight: 800; font-size: 23px; letter-spacing: -.025em; line-height: 1.15; }
.dialog__close { margin-left: auto; }
.dialog__foot { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; margin-top: 22px; }
.dialog__foot > .btn { flex: 1 1 auto; }
@media (min-width: 640px) {
  .modal { align-items: center; padding: 24px; }
  .dialog { max-width: var(--dialog-w, 560px); border-radius: var(--r-xl); padding: 28px; max-height: calc(100dvh - 48px); animation: scaleIn .3s var(--ease) both; }
  .dialog::before { display: none; }
  .dialog__foot > .btn { flex: 0 0 auto; }
}
.dialog--xl { --dialog-w: 980px; }

/* ---------- Empty state ---------- */
.empty { display: grid; justify-items: center; text-align: center; gap: 10px; padding: 38px 20px; }
.empty__art { width: 88px; height: 88px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-3); color: var(--muted); margin-bottom: 6px; animation: bob 5s ease-in-out infinite; }
.empty__art svg { width: 38px; height: 38px; }
.empty__title { font-weight: 800; font-size: 19px; letter-spacing: -.02em; }
.empty p { color: var(--ink-2); font-size: 15px; max-width: 26em; }

/* ---------- Keyboard hint ---------- */
.kbd {
  display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px;
  border-radius: 6px; border: 1px solid var(--line); border-bottom-width: 2px;
  background: var(--surface-2); color: var(--ink-2);
  font: 700 11.5px/1 ui-monospace, Menlo, Consolas, monospace;
}

/* ---------- Accordion (details/summary) ---------- */
.acc { background: var(--surface); border-radius: var(--r-md); overflow: hidden; transition: box-shadow var(--t) ease; }
.acc + .acc { margin-top: 10px; }
.acc[open] { box-shadow: var(--sh-1); }
.acc summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: 14px;
  padding: 18px 20px; font-weight: 800; font-size: 16.5px; letter-spacing: -.015em;
  min-height: 56px;
}
.acc summary::-webkit-details-marker { display: none; }
.acc__icon {
  margin-left: auto; flex: none; display: grid; place-items: center;
  width: 28px; height: 28px; border-radius: 50%; background: var(--brand-soft); color: var(--brand-ink);
  transition: transform .35s var(--ease), background var(--t) ease;
}
.acc__icon svg { width: 14px; height: 14px; }
.acc[open] .acc__icon, .acc.is-expanded .acc__icon { transform: rotate(180deg); background: var(--brand); color: #fff; }
.js .acc[open]:not(.is-expanded) .acc__icon { transform: none; background: var(--brand-soft); color: var(--brand-ink); }
.acc__body { display: grid; grid-template-rows: 1fr; }
.acc__body > div { overflow: hidden; min-height: 0; }
.acc__body p { padding: 0 20px 18px; color: var(--ink-2); font-size: 15.5px; line-height: 1.6; }
.acc__body p + p { margin-top: -6px; }
/* With JavaScript the panel animates its height open and closed (site.js) */
.js .acc__body { grid-template-rows: 0fr; transition: grid-template-rows .4s var(--ease); }
.js .acc.is-expanded .acc__body { grid-template-rows: 1fr; }
.js .acc__body > div { opacity: 0; transform: translateY(-6px); transition: opacity .3s ease, transform .4s var(--ease); }
.js .acc.is-expanded .acc__body > div { opacity: 1; transform: none; transition-delay: .06s; }

/* ---------- Confetti canvas ---------- */
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 500; width: 100vw; height: 100vh; }
