/* ==========================================================================
   Components — the reusable vocabulary every page draws from. Anything that
   appears on more than one page lives here; page-specific one-offs stay in
   their page module's markup using these classes.
   ========================================================================== */

/* ---------- Buttons ------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  border: 1px solid transparent;
  border-radius: var(--r-sm);
  padding: 9px 14px;
  font-family: inherit;
  font-size: var(--fs-base);
  font-weight: 600;
  letter-spacing: var(--tracking-wide);
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease),
              color var(--dur-fast) var(--ease), transform 60ms var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.btn:active:not(:disabled) { transform: scale(0.985); }
.btn:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--accent-ring); }
.btn svg { width: 15px; height: 15px; flex: 0 0 auto; }

.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover:not(:disabled) { background: var(--accent-hover); }
.btn-primary:active:not(:disabled) { background: var(--accent-press); }

.btn-secondary { background: var(--surface-3); color: var(--text); border-color: var(--border); }
.btn-secondary:hover:not(:disabled) { background: var(--surface-4); border-color: var(--border-strong); }

.btn-ghost { background: transparent; color: var(--text-2); border-color: var(--border); }
.btn-ghost:hover:not(:disabled) { background: var(--surface-3); color: var(--text); border-color: var(--border-strong); }

.btn-danger { background: transparent; color: var(--danger); border-color: rgba(242, 65, 93, 0.32); }
.btn-danger:hover:not(:disabled) { background: var(--danger-soft); border-color: var(--danger); }

.btn-sm { padding: 6px 10px; font-size: var(--fs-sm); }
.btn-lg { padding: 13px 20px; font-size: var(--fs-md); }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }

.btn-spinner {
  width: 13px; height: 13px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 620ms linear infinite;
  opacity: 0.85;
}

.icon-btn {
  display: grid;
  place-items: center;
  width: 34px; height: 34px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--r-sm);
  color: var(--text-2);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.icon-btn:hover { background: var(--surface-3); color: var(--text); }
.icon-btn:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--accent-ring); }

/* Mobile: every tap target clears 44px. */
@media (max-width: 860px) {
  .btn { min-height: 42px; padding: 10px 15px; }
  .btn-sm { min-height: 36px; }
  .icon-btn { width: 40px; height: 40px; }
}

/* ---------- Cards --------------------------------------------------------- */
.card {
  background: var(--surface-2);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-md);
  padding: var(--sp-5);
}
.card-tight { padding: var(--sp-4); }
.card-flush { padding: 0; overflow: hidden; }
.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  padding: var(--sp-4) var(--sp-5);
  border-bottom: 1px solid var(--border-subtle);
}
.card-head h2, .card-head h3 { font-size: var(--fs-md); letter-spacing: -0.01em; }
.card-head .eyebrow { letter-spacing: var(--tracking-caps); }
.card-body { padding: var(--sp-5); }
.card-foot {
  padding: var(--sp-3) var(--sp-5);
  border-top: 1px solid var(--border-subtle);
  display: flex;
  gap: var(--sp-2);
  flex-wrap: wrap;
}

/* Interactive card — used for launches and any card that navigates. */
.card-link {
  display: block;
  color: inherit;
  text-decoration: none;
  transition: border-color var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease),
              box-shadow var(--dur-fast) var(--ease);
}
.card-link:hover {
  text-decoration: none;
  border-color: var(--border-strong);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.card-link:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--accent-ring); }

/* ---------- Stat tiles ---------------------------------------------------- */
.stat {
  background: var(--surface-2);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-md);
  padding: var(--sp-4);
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
  min-width: 0;
}
.stat-label {
  font-size: var(--fs-2xs);
  text-transform: uppercase;
  letter-spacing: var(--tracking-caps);
  color: var(--text-4);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}
.stat-value {
  font-size: var(--fs-2xl);
  font-weight: 600;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.stat-value.is-accent { color: var(--accent); }
.stat-value.is-cyan { color: var(--cyan); }
.stat-value.is-success { color: var(--success); }
.stat-sub { font-size: var(--fs-sm); color: var(--text-3); }
@media (max-width: 520px) {
  .stat { padding: var(--sp-3); }
  .stat-value { font-size: var(--fs-xl); }
}

/* ---------- Badges / pills ------------------------------------------------ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: var(--r-pill);
  font-size: var(--fs-2xs);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  border: 1px solid transparent;
}
.badge .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: 0 0 auto; }
.badge-success { background: var(--success-soft); color: var(--success); border-color: rgba(61, 220, 132, 0.24); }
.badge-warn    { background: var(--warn-soft);    color: var(--warn);    border-color: rgba(245, 181, 68, 0.24); }
.badge-danger  { background: var(--danger-soft);  color: var(--danger);  border-color: rgba(242, 65, 93, 0.24); }
.badge-info    { background: var(--cyan-soft);    color: var(--cyan);    border-color: rgba(62, 207, 224, 0.24); }
.badge-accent  { background: var(--accent-soft);  color: var(--accent);  border-color: rgba(255, 90, 31, 0.26); }
.badge-violet  { background: var(--violet-soft);  color: var(--violet);  border-color: rgba(155, 125, 255, 0.26); }
.badge-neutral { background: var(--neutral-soft);  color: var(--text-2);  border-color: var(--border); }

.badge-live .dot { box-shadow: 0 0 8px currentColor; animation: badgepulse 2s ease-in-out infinite; }
@keyframes badgepulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
@media (prefers-reduced-motion: reduce) { .badge-live .dot { animation: none; } }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border-radius: var(--r-sm);
  background: var(--surface-1);
  border: 1px solid var(--border-subtle);
  font-size: var(--fs-xs);
  color: var(--text-2);
  font-family: var(--font-mono);
  white-space: nowrap;
}

/* Network badge on launch cards and rows. */
.badge-chain {
  background: var(--surface-3);
  color: var(--text-2);
  border-color: var(--border-subtle);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  padding: 2px 6px;
}

/* Chain filter chips (launches page). */
.chain-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  flex: 1 1 220px;
  min-width: 0;
}
.chain-filter .chip.chain-chip {
  cursor: pointer;
  transition: background 0.12s, color 0.12s, border-color 0.12s;
  user-select: none;
}
.chain-filter .chip.chain-chip:hover {
  background: var(--surface-3);
  color: var(--text);
}
.chain-filter .chip.chain-chip.is-active {
  background: var(--accent-soft);
  color: var(--accent);
  border-color: rgba(255, 90, 31, 0.26);
}
@media (prefers-reduced-motion: reduce) {
  .chain-filter .chip.chain-chip { transition: none; }
}
@media (max-width: 768px) {
  .chain-filter {
    flex: 1 1 100%;
  }
}

/* ---------- Segmented control / filter bar -------------------------------- */
.toolbar {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  flex-wrap: wrap;
}
.toolbar .search { position: relative; flex: 1 1 220px; min-width: 0; }
.toolbar .search svg {
  position: absolute;
  left: 11px; top: 50%;
  transform: translateY(-50%);
  width: 15px; height: 15px;
  color: var(--text-4);
  pointer-events: none;
}
.toolbar .search input { padding-left: 34px; }
.toolbar select { width: auto; min-width: 128px; flex: 0 0 auto; }
@media (max-width: 640px) {
  .toolbar { gap: var(--sp-2); }
  .toolbar .search { flex: 1 1 100%; }
  .toolbar select { flex: 1 1 calc(50% - var(--sp-1)); min-width: 0; }
}

.segmented {
  display: inline-flex;
  background: var(--surface-1);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-sm);
  padding: 3px;
  gap: 2px;
  overflow-x: auto;
  max-width: 100%;
  scrollbar-width: none;
}
.segmented::-webkit-scrollbar { display: none; }
.segmented button {
  background: transparent;
  border: none;
  color: var(--text-3);
  font-family: inherit;
  font-size: var(--fs-sm);
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.segmented button:hover { color: var(--text); }
.segmented button.is-active { background: var(--surface-4); color: var(--text); }
.segmented button:focus-visible { outline: none; box-shadow: 0 0 0 2px var(--accent-ring); }

/* ---------- Data list / rows --------------------------------------------- */
.list { display: flex; flex-direction: column; }
.list-row {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-5);
  border-bottom: 1px solid var(--border-subtle);
  min-width: 0;
}
.list-row:last-child { border-bottom: none; }
.list-row.is-clickable { cursor: pointer; text-decoration: none; color: inherit; transition: background var(--dur-fast) var(--ease); }
.list-row.is-clickable:hover { background: var(--surface-3); text-decoration: none; }
.list-main { min-width: 0; flex: 1 1 auto; }
.list-title { font-size: var(--fs-base); font-weight: 600; display: flex; align-items: center; gap: var(--sp-2); }
.list-sub { font-size: var(--fs-sm); color: var(--text-3); margin-top: 2px; }
.list-aside { flex: 0 0 auto; display: flex; align-items: center; gap: var(--sp-2); }
.list-actions { flex: 0 0 auto; display: flex; align-items: center; gap: var(--sp-2); flex-wrap: wrap; }

@media (max-width: 640px) {
  .list-row { flex-direction: column; align-items: stretch; padding: var(--sp-4); }
  .list-aside, .list-actions { width: 100%; }
  .list-actions .btn { flex: 1 1 0; }
}

/* ---------- Key/value readouts ------------------------------------------- */
.kv { display: grid; grid-template-columns: minmax(120px, auto) minmax(0, 1fr); gap: var(--sp-2) var(--sp-4); }
.kv dt { font-size: var(--fs-sm); color: var(--text-4); }
.kv dd { margin: 0; font-size: var(--fs-base); color: var(--text); min-width: 0; word-break: break-word; }
.kv dd.mono { font-size: var(--fs-sm); }
@media (max-width: 520px) {
  .kv { grid-template-columns: minmax(0, 1fr); gap: var(--sp-1); }
  .kv dd { margin-bottom: var(--sp-2); }
}

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

/* ---------- Address / hash with copy ------------------------------------- */
.addr {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
  color: var(--text-2);
  min-width: 0;
}
.addr button {
  background: transparent;
  border: none;
  color: var(--text-4);
  cursor: pointer;
  padding: 2px;
  display: grid;
  place-items: center;
  border-radius: 4px;
}
.addr button:hover { color: var(--cyan); background: var(--surface-3); }
.addr button svg { width: 13px; height: 13px; }

/* ---------- State blocks: loading / empty / error ------------------------ */
.skeleton {
  background: linear-gradient(90deg, var(--surface-3) 25%, var(--surface-4) 50%, var(--surface-3) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.3s linear infinite;
  border-radius: var(--r-sm);
}
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .skeleton { animation: none; } }
.skeleton-line { height: 11px; }
.skeleton-title { height: 15px; width: 45%; }
.skeleton-block { height: 78px; }
.skeleton-media { aspect-ratio: 1 / 1; width: 100%; border-radius: 0; }

.state {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--sp-3);
  padding: var(--sp-8) var(--sp-5);
  color: var(--text-3);
}
.state-icon {
  width: 42px; height: 42px;
  display: grid;
  place-items: center;
  border-radius: var(--r-md);
  background: var(--surface-1);
  border: 1px solid var(--border-subtle);
  color: var(--text-4);
}
.state-icon svg { width: 20px; height: 20px; }
.state-title { font-size: var(--fs-md); font-weight: 600; color: var(--text); }
.state-text { font-size: var(--fs-base); color: var(--text-3); max-width: 40ch; line-height: var(--lh-loose); }
.state.is-error .state-icon { background: var(--danger-soft); border-color: rgba(242, 65, 93, 0.28); color: var(--danger); }
.state-compact { padding: var(--sp-6) var(--sp-4); }

/* ---------- Launch media ------------------------------------------------- */
.media {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: var(--surface-1);
  overflow: hidden;
}
.media img {
  /* Lifted above the always-present initials fallback beneath it (positioned
     elements paint above static ones, so the img needs its own stacking). */
  position: relative;
  z-index: 1;
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--dur-slow) var(--ease);
}
.card-link:hover .media img,
.launch-card:hover .media img { transform: scale(1.04); }
.media-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--text-4);
  font-family: var(--font-mono);
  font-size: var(--fs-xl);
  font-weight: 600;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(255, 90, 31, 0.09), transparent 60%),
    var(--surface-1);
}
.media-overlay {
  position: absolute;
  top: var(--sp-3);
  left: var(--sp-3);
  right: var(--sp-3);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--sp-2);
  pointer-events: none;
}

.launch-body { padding: var(--sp-4); display: flex; flex-direction: column; gap: var(--sp-3); }
.launch-card {
  overflow: hidden;
  transition: border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease),
    transform var(--dur-fast) var(--ease);
}
.launch-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.launch-media-link { display: block; color: inherit; text-decoration: none; }
.launch-title-row {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  min-width: 0;
}
.launch-title-row .launch-title { flex: 0 1 auto; }
.launch-title-row .badge { flex: 0 0 auto; }
.launch-title {
  font-size: var(--fs-md);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: inherit;
  text-decoration: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.launch-title:hover { text-decoration: underline; text-underline-offset: 3px; }
/* Actions live OUTSIDE the media/title links, so the Mint button is a real
   interactive element rather than a button nested inside an anchor. */
.launch-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--sp-2);
}
.launch-actions .btn-primary { flex: 1 1 auto; justify-content: center; }
.launch-os-link { margin-left: auto; }
.launch-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sp-2) var(--sp-3);
}
.launch-meta .k {
  font-size: var(--fs-2xs);
  text-transform: uppercase;
  letter-spacing: var(--tracking-caps);
  color: var(--text-4);
  font-weight: 600;
}
.launch-meta .v {
  font-size: var(--fs-base);
  font-family: var(--font-mono);
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ---------- Launch compact rows (dashboard rail) ------------------------- */
/* The row is split into a main <a> (thumb + text) and an aside holding the
   countdown chip and either a Mint button or a chevron — so a button is never
   nested inside an anchor. */
.launch-row { padding: var(--sp-3) var(--sp-4); }
.lr-main {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  min-width: 0;
  flex: 1 1 auto;
  color: inherit;
  text-decoration: none;
}
.lr-main:hover .launch-name-link { text-decoration: underline; text-underline-offset: 3px; }
.launch-thumb {
  position: relative;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  border-radius: var(--r-sm);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  background:
    radial-gradient(ellipse at 30% 20%, rgba(255, 90, 31, 0.09), transparent 60%),
    var(--surface-1);
}
.launch-thumb img {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.launch-thumb-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--text-4);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: 600;
}
@media (max-width: 640px) {
  /* Keep thumb + text on one line even when the row stacks vertically. */
  .launch-row .lr-main { flex: 1 1 auto; }
}

/* ---------- Hero (launch detail) ---------------------------------------- */
.hero { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: var(--sp-6); align-items: start; }
.hero-media { border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--border); }
@media (max-width: 780px) {
  .hero { grid-template-columns: minmax(0, 1fr); gap: var(--sp-4); }
  .hero-media { max-width: 260px; }
}

.countdown { display: flex; gap: var(--sp-2); }
.countdown-cell {
  background: var(--surface-1);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-sm);
  padding: var(--sp-2) var(--sp-3);
  text-align: center;
  min-width: 58px;
}
.countdown-cell .n {
  font-family: var(--font-mono);
  font-size: var(--fs-xl);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
  color: var(--text);
}
.countdown-cell .u {
  font-size: var(--fs-2xs);
  text-transform: uppercase;
  letter-spacing: var(--tracking-caps);
  color: var(--text-4);
  font-weight: 600;
}

/* ---------- Transaction lifecycle steps --------------------------------- */
.steps { display: flex; flex-direction: column; gap: 0; }
.step {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: var(--sp-3);
  padding-bottom: var(--sp-4);
  position: relative;
}
.step:last-child { padding-bottom: 0; }
.step::before {
  content: "";
  position: absolute;
  left: 12px; top: 26px; bottom: 0;
  width: 1px;
  background: var(--border);
}
.step:last-child::before { display: none; }
.step-dot {
  width: 25px; height: 25px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--surface-1);
  border: 1px solid var(--border);
  color: var(--text-4);
  font-size: var(--fs-2xs);
  font-weight: 700;
  font-family: var(--font-mono);
  z-index: 1;
}
.step-dot svg { width: 13px; height: 13px; }
.step-label { font-size: var(--fs-base); font-weight: 600; color: var(--text-3); }
.step-detail { font-size: var(--fs-sm); color: var(--text-4); margin-top: 2px; word-break: break-all; }

.step.is-active .step-dot { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.step.is-active .step-label { color: var(--text); }
.step.is-done .step-dot { border-color: var(--success); color: var(--success); background: var(--success-soft); }
.step.is-done .step-label { color: var(--text-2); }
.step.is-failed .step-dot { border-color: var(--danger); color: var(--danger); background: var(--danger-soft); }
.step.is-failed .step-label { color: var(--danger); }
.step-spin {
  width: 12px; height: 12px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 620ms linear infinite;
}

/* ---------- Review summary (mint) --------------------------------------- */
.review {
  background: var(--surface-1);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-sm);
  padding: var(--sp-4);
}
.review-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--sp-4);
  padding: 6px 0;
  font-size: var(--fs-base);
}
.review-row + .review-row { border-top: 1px dashed var(--border-subtle); }
.review-row .k { color: var(--text-4); font-size: var(--fs-sm); flex: 0 0 auto; }
.review-row .v { font-family: var(--font-mono); text-align: right; min-width: 0; word-break: break-all; }
.review-row.is-total .v { color: var(--accent); font-weight: 600; }

.callout {
  display: flex;
  gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-4);
  border-radius: var(--r-sm);
  border: 1px solid var(--border);
  background: var(--surface-1);
  font-size: var(--fs-base);
  color: var(--text-2);
  line-height: var(--lh-normal);
}
.callout svg { width: 16px; height: 16px; flex: 0 0 auto; margin-top: 1px; }
.callout-warn { background: var(--warn-soft); border-color: rgba(245, 181, 68, 0.26); color: #f6cf8a; }
.callout-danger { background: var(--danger-soft); border-color: rgba(242, 65, 93, 0.26); color: #f79aab; }
.callout-info { background: var(--cyan-soft); border-color: rgba(62, 207, 224, 0.22); color: #9fe3ec; }
.callout-success { background: var(--ok-soft, rgba(76,211,138,0.12)); border-color: rgba(76, 211, 138, 0.26); color: #8ce6b2; }

/* ---------- Toast -------------------------------------------------------- */
.toast-stack {
  position: fixed;
  bottom: var(--sp-5);
  right: var(--sp-5);
  z-index: var(--z-toast);
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  max-width: 380px;
  pointer-events: none;
}
.toast {
  pointer-events: auto;
  background: var(--surface-3);
  border: 1px solid var(--border-strong);
  border-left: 3px solid var(--neutral);
  border-radius: var(--r-sm);
  padding: var(--sp-3) var(--sp-4);
  font-size: var(--fs-base);
  color: var(--text);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  animation: toastin var(--dur) var(--ease);
  word-break: break-word;
}
@keyframes toastin { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.toast.is-success { border-left-color: var(--success); }
.toast.is-error { border-left-color: var(--danger); }
.toast.is-info { border-left-color: var(--cyan); }
.toast-msg { flex: 1 1 auto; min-width: 0; }
.toast-close { background: transparent; border: none; color: var(--text-4); cursor: pointer; font-size: 16px; line-height: 1; padding: 0; }
.toast-close:hover { color: var(--text); }

@media (max-width: 640px) {
  .toast-stack {
    left: var(--sp-3);
    right: var(--sp-3);
    bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom) + var(--sp-3));
    max-width: none;
  }
}

/* ---------- Modal -------------------------------------------------------- */
.modal-root {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  display: grid;
  place-items: center;
  padding: var(--sp-4);
}
.modal-scrim { position: absolute; inset: 0; background: rgba(4, 5, 7, 0.72); backdrop-filter: blur(3px); }
.modal {
  position: relative;
  width: 100%;
  max-width: 460px;
  max-height: min(86vh, 720px);
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: modalin var(--dur) var(--ease);
}
@keyframes modalin { from { opacity: 0; transform: translateY(10px) scale(0.99); } to { opacity: 1; transform: none; } }
.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  padding: var(--sp-4) var(--sp-5);
  border-bottom: 1px solid var(--border-subtle);
  flex: 0 0 auto;
}
.modal-head h2 { font-size: var(--fs-md); }
.modal-body {
  padding: var(--sp-5);
  overflow-y: auto;
  flex: 1 1 auto;
  font-size: var(--fs-base);
  color: var(--text-2);
  line-height: var(--lh-loose);
}
.modal-body .stack { gap: var(--sp-4); }
.modal-foot {
  padding: var(--sp-4) var(--sp-5);
  border-top: 1px solid var(--border-subtle);
  display: flex;
  gap: var(--sp-2);
  flex: 0 0 auto;
}
.modal-foot .btn { flex: 1 1 0; }
@media (max-width: 640px) {
  .modal-root { align-items: flex-end; padding: 0; }
  .modal {
    max-width: none;
    max-height: 92vh;
    border-radius: var(--r-lg) var(--r-lg) 0 0;
    padding-bottom: env(safe-area-inset-bottom);
  }
  @keyframes modalin { from { transform: translateY(100%); } to { transform: none; } }
}

.pick-list { display: flex; flex-direction: column; gap: var(--sp-2); }
.pick-item {
  width: 100%;
  text-align: left;
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: var(--sp-3) var(--sp-4);
  color: var(--text);
  font-family: inherit;
  font-size: var(--fs-base);
  cursor: pointer;
  transition: border-color var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease);
}
.pick-item:hover { border-color: var(--accent); background: var(--surface-3); }
.pick-item .sub { display: block; font-size: var(--fs-sm); color: var(--text-3); font-family: var(--font-mono); margin-top: 2px; }

/* ---------- Preformatted diagnostics ------------------------------------ */
.pre {
  background: var(--surface-1);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-sm);
  padding: var(--sp-3);
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
  color: var(--text-2);
  white-space: pre-wrap;
  word-break: break-word;
  margin: 0;
  max-height: 260px;
  overflow-y: auto;
}

/* ---------- Wallet cards -------------------------------------------------- */
/* Compact by default: the head is one large tap target (chevron + name +
   short address + status badges). Balances live in a collapsible drawer that
   lazy-loads when a single card is expanded. */
.wal-head {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  width: 100%;
  min-height: 56px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: var(--sp-3) var(--sp-4);
  font-family: inherit;
  color: inherit;
  text-align: left;
  transition: background var(--dur-fast) var(--ease);
}
.wal-head:hover { background: var(--surface-3); }
.wal-head:focus-visible { outline: none; box-shadow: inset 0 0 0 2px var(--accent-ring); }

.wal-chevron {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  color: var(--text-4);
  transition: transform var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.wal-chevron svg { width: 15px; height: 15px; }
.wallet-card.is-open .wal-chevron { transform: rotate(90deg); color: var(--accent); }

.wal-id { min-width: 0; flex: 1 1 auto; display: flex; flex-direction: column; gap: 1px; }
.wal-title { font-size: var(--fs-md); font-weight: 600; letter-spacing: -0.01em; }
.wal-sub {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--text-3);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wal-badges {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  flex: 0 0 auto;
  flex-wrap: wrap;
}
/* Very narrow screens: badges drop below the title instead of squeezing it.
   Keep their row clear of the selection control anchored top-right. */
@media (max-width: 480px) {
  .wal-badges { flex-basis: 100%; justify-content: flex-start; padding-left: 30px; padding-right: calc(var(--sp-2) + 44px); }
  .wal-head { flex-wrap: wrap; row-gap: 6px; }
}

/* Collapsible balances drawer — animates open/closed via grid rows so it
   stays smooth on mobile; content is unfocusable/hidden when closed. */
.wal-drawer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--dur) var(--ease);
}
.wal-drawer.is-open { grid-template-rows: 1fr; }
.wal-drawer-inner { overflow: hidden; min-height: 0; }
.wal-drawer:not(.is-open) .wal-drawer-inner { visibility: hidden; }
@media (prefers-reduced-motion: reduce) {
  .wal-drawer { transition: none; }
}

.wal-body {
  padding: var(--sp-4);
  margin: 0 var(--sp-4);
  border-top: 1px dashed var(--border-subtle);
}
.wal-bal-eyebrow {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  margin-top: var(--sp-4);
  margin-bottom: var(--sp-2);
}
.wal-refresh {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  background: transparent;
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-pill);
  color: var(--text-4);
  cursor: pointer;
  transition: color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}
.wal-refresh:hover { color: var(--cyan); border-color: var(--border-strong); }
.wal-refresh svg { width: 13px; height: 13px; }
.wal-refresh:disabled { opacity: 0.5; cursor: wait; }

.wal-bal-list {
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-sm);
  overflow: hidden;
}
.bal-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  padding: 8px 12px;
  border-bottom: 1px solid var(--border-subtle);
  min-width: 0;
  font-size: var(--fs-sm);
}
.bal-row:last-child { border-bottom: none; }
.bal-row .dim { color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bal-row .n {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  color: var(--text);
  white-space: nowrap;
}

/* Search bar chrome for the wallet list */
.wal-count {
  font-size: var(--fs-xs);
  color: var(--text-4);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  align-self: center;
}
@media (max-width: 640px) {
  .wal-count { flex: 1 1 100%; text-align: right; }
}
.wal-search-clear {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  background: transparent;
  border: none;
  border-radius: 50%;
  color: var(--text-4);
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
}
.wal-search-clear:hover { color: var(--text); background: var(--surface-3); }
#wal-search { padding-right: 32px; }

/* ==========================================================================
   Bulk operations — gas sponsor card, wallet selection, bulk flow wizard
   ========================================================================== */

/* ---------- Sponsor card -------------------------------------------------- */
.sponsor-card { display: flex; flex-direction: column; gap: var(--sp-2); }
.sponsor-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  flex-wrap: wrap;
}
.sponsor-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sponsor-body { font-size: var(--fs-sm); font-family: var(--font-mono); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sponsor-body.muted { font-family: inherit; }
.sponsor-actions { display: flex; gap: var(--sp-2); flex-shrink: 0; }

/* ---------- Per-card selection checkbox -----------------------------------
   The control must be unmistakable on the dark card surface: a raised plate
   (different tone than the card) hosting a custom-drawn box. Native
   checkboxes are near-invisible unchecked on mobile dark themes, so the box
   is drawn explicitly — border for unchecked, filled + white check for
   checked. Hit target ≥40px (44px on coarse pointers). */
.wallet-card { position: relative; }
.wal-pick {
  position: absolute;
  top: var(--sp-2);
  right: var(--sp-2);
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--r-md);
  background: var(--surface-3);
  border: 1px solid var(--border);
  cursor: pointer;
}
@media (pointer: coarse) {
  .wal-pick { width: 44px; height: 44px; }
}
.wal-pick:hover { border-color: var(--text-4); }
.wal-pick input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  margin: 0;
  width: 22px;
  height: 22px;
  border: 2px solid var(--text-3);
  border-radius: 6px;
  background: var(--surface-1);
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}
.wal-pick input[type="checkbox"]:hover { border-color: var(--text-2); }
.wal-pick input[type="checkbox"]:checked {
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-7' fill='none' stroke='%23ffffff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 15px no-repeat;
  border-color: var(--accent);
}
.wal-pick input[type="checkbox"]:focus-visible {
  outline: 2px solid var(--accent-ring);
  outline-offset: 2px;
}
/* Card-level selected treatment: strong border + subtle accent tint. Never
   disabled-looking — content stays fully interactive. Falls back to the
   accent border alone where color-mix() is unsupported. */
.wallet-card.is-selected {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 7%, var(--surface-1));
}
/* Reserve room so the control never covers title/address/badges/buttons. */
.wal-head { padding-right: calc(var(--sp-4) + 36px); }
@media (pointer: coarse) {
  .wal-head { padding-right: calc(var(--sp-4) + 40px); }
}
.wallet-card.is-open .wal-pick { display: none; } /* drawer open → header controls move; avoid overlap */

/* ---------- Sticky bulk action bar ---------------------------------------- */
.bulk-bar {
  position: sticky;
  bottom: calc(var(--sp-3) + env(safe-area-inset-bottom));
  z-index: 30;
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-2) var(--sp-3);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.35);
}
.bulk-count { font-size: var(--fs-sm); color: var(--text-2); font-weight: 600; white-space: nowrap; }
@media (max-width: 860px) {
  .bulk-bar .btn span { display: none; } /* icons only on phones */
}

/* ---------- Review / estimate table --------------------------------------- */
.bulk-summary { display: flex; flex-direction: column; gap: var(--sp-2); margin-bottom: var(--sp-4); }
.bulk-kv {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--sp-3);
  font-size: var(--fs-base);
}
.bulk-kv strong { font-family: var(--font-mono); white-space: nowrap; }
.bulk-kv-sub { font-size: var(--fs-xs); margin-top: calc(-1 * var(--sp-2)); }
.bulk-kv-total { border-top: 1px solid var(--border-subtle); padding-top: var(--sp-2); font-weight: 600; }
.bulk-kv-bad strong { color: var(--warn); }
.bulk-note-ok {
  background: var(--success-soft);
  color: var(--success);
  border: 1px solid rgba(61, 220, 132, 0.24);
  border-radius: var(--r-sm);
  padding: var(--sp-3);
  font-size: var(--fs-sm);
}
.bulk-warn {
  background: var(--warn-soft);
  color: var(--warn);
  border: 1px solid rgba(245, 181, 68, 0.24);
  border-radius: var(--r-sm);
  padding: var(--sp-3);
  font-size: var(--fs-sm);
}
.bulk-rejected ul { margin: var(--sp-1) 0 0; padding-left: var(--sp-5); font-size: var(--fs-sm); color: var(--text-3); }
.check-row {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  margin-top: var(--sp-3);
  font-size: var(--fs-base);
  cursor: pointer;
  user-select: none;
}
.check-row input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--accent); cursor: pointer; }

/* ---------- Progress view -------------------------------------------------- */
.bulk-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(84px, 1fr)); gap: var(--sp-2); margin-bottom: var(--sp-3); }
.bulk-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--surface-1);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-sm);
  padding: var(--sp-2);
}
.bulk-stat strong { font-size: var(--fs-lg); font-family: var(--font-mono); }
.bulk-stat span { font-size: var(--fs-xs); color: var(--text-3); }
.progress-track {
  height: 6px;
  border-radius: 999px;
  background: var(--surface-1);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  margin-bottom: var(--sp-3);
}
.progress-fill {
  height: 100%;
  background: var(--accent);
  transition: width var(--dur-slow) var(--ease);
}
.banner {
  border-radius: var(--r-sm);
  padding: var(--sp-3);
  font-size: var(--fs-sm);
  margin-bottom: var(--sp-3);
}
.banner-warn {
  background: var(--warn-soft);
  color: var(--warn);
  border: 1px solid rgba(245, 181, 68, 0.24);
}
.bulk-table-wrap { overflow-x: auto; max-height: 46vh; overflow-y: auto; }
.tx-link { font-size: var(--fs-xs); margin-left: var(--sp-1); white-space: nowrap; }

/* Status chips for job items */
.chip-pending { color: var(--text-3); }
.chip-live { color: var(--cyan); border-color: rgba(62, 207, 224, 0.35); }
.chip-ok { color: var(--success); border-color: rgba(61, 220, 132, 0.3); }
.chip-err { color: var(--danger); border-color: rgba(242, 65, 93, 0.3); }
.chip-muted { opacity: 0.6; }

/* Direction chips for buy/sell alerts */
.chip-dir { font-weight: 600; font-size: 10px; letter-spacing: 0.06em; }
.chip-buy { color: var(--success); border-color: rgba(61, 220, 132, 0.3); }

/* Loading skeleton inside the estimate modal */
.bulk-loading { display: flex; flex-direction: column; gap: var(--sp-2); margin-top: var(--sp-3); }
.skeleton-row { height: 14px; border-radius: var(--r-sm); }

/* Multi-select pick rows (mint page bulk picker) */
.pick-item-check { display: flex; align-items: center; gap: var(--sp-3); cursor: pointer; }
.pick-item-check input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--accent); flex: 0 0 auto; cursor: pointer; }
.pick-item-check:hover { border-color: var(--accent); background: var(--surface-3); }

/* ---------- Gas distribution flow (gasFundFlow.js) ------------------------ */
.fund-wallet {
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-sm);
  background: var(--surface-1);
  padding: var(--sp-3);
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}
.fund-wallet + .fund-wallet { border-top: 1px solid var(--border-subtle); }
.fund-wallet-meta { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.fund-wallet-label { font-weight: 600; font-size: var(--fs-base); }
.fund-wallet-sub { font-family: var(--font-mono); font-size: var(--fs-sm); color: var(--text-3); }
.fund-row { display: flex; gap: var(--sp-2); align-items: stretch; }
.fund-net { flex: 1 1 0; min-width: 0; }
.fund-amt { flex: 1 1 0; min-width: 0; }
.gas-toolbar { display: flex; gap: var(--sp-2); flex-wrap: wrap; margin-top: var(--sp-2); }
.gas-toolbar .btn { white-space: nowrap; }
.review-row.is-failed .v { color: var(--danger); }
.review-row.is-tx { padding-top: 0; }
.review-row.is-tx .v { color: var(--accent); text-decoration: none; }
.review-row.is-tx .v:hover { text-decoration: underline; }
.wallet-row-right { display: inline-flex; align-items: center; gap: var(--sp-2); }
.wallet-row-right .amt { color: var(--text-2); font-size: var(--fs-sm); }
.gas-progress-status { font-size: var(--fs-sm); color: var(--text-3); text-align: center; min-height: 18px; }
@media (max-width: 620px) {
  .fund-row { flex-direction: column; }
  .fund-net select, .fund-amt input { min-height: 44px; }
  .wallet-row-right { flex-direction: row-reverse; }
}

/* ---------- Bulk-mint collection picker (bulkCollectionFlow.js) ----------- */
.bm-search {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--surface-1);
  padding: 0 var(--sp-3);
  color: var(--text-3);
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}
.bm-search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent-ring); }
.bm-search svg { flex: 0 0 auto; width: 18px; height: 18px; color: var(--text-3); }
.bm-search input {
  flex: 1 1 auto;
  min-width: 0;
  background: transparent;
  border: 0;
  outline: none;
  color: var(--text);
  font: inherit;
  padding: var(--sp-3) 0;
  font-size: var(--fs-md);
}
.bm-results { display: flex; flex-direction: column; gap: var(--sp-2); min-height: 0; }

.bm-list { display: flex; flex-direction: column; gap: var(--sp-2); max-height: 46vh; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.bm-result {
  width: 100%;
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  text-align: left;
  background: var(--surface-1);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-sm);
  padding: var(--sp-2) var(--sp-3);
  color: var(--text);
  font-family: inherit;
  cursor: pointer;
  transition: border-color var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease);
}
.bm-result:hover { border-color: var(--accent); background: var(--surface-3); }
.bm-result:active { background: var(--surface-4); }
.bm-result-media { flex: 0 0 auto; width: 46px; height: 46px; border-radius: var(--r-sm); overflow: hidden; background: var(--surface-2); }
.bm-result-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bm-result-fallback { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-weight: 700; color: var(--text-3); font-size: var(--fs-md); }
.bm-result-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.bm-result-name { font-weight: 600; font-size: var(--fs-base); line-height: var(--lh-tight); overflow-wrap: anywhere; }
.bm-result-sub { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2); font-size: var(--fs-sm); color: var(--text-3); }
.bm-result > svg { flex: 0 0 auto; color: var(--text-3); }

.bm-loading { display: flex; flex-direction: column; gap: var(--sp-2); }
.bm-loading-line { height: 46px; border-radius: var(--r-sm); background: linear-gradient(90deg, var(--surface-1) 25%, var(--surface-3) 50%, var(--surface-1) 75%); background-size: 200% 100%; animation: shimmer 1.2s infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .bm-loading-line { animation: none; } }

.bm-error { color: var(--text-2); }

.bm-confirm { display: flex; flex-direction: column; gap: var(--sp-3); }
.bm-confirm-media { width: 100%; aspect-ratio: 1 / 1; max-height: 46vh; border-radius: var(--r-md); overflow: hidden; background: var(--surface-2); display: flex; align-items: center; justify-content: center; }
.bm-confirm-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bm-confirm-fallback { font-size: var(--fs-3xl); font-weight: 700; color: var(--text-3); }
.bm-confirm-main { display: flex; flex-direction: column; gap: var(--sp-2); min-width: 0; }
.bm-confirm-title { font-size: var(--fs-lg); font-weight: 700; line-height: var(--lh-tight); overflow-wrap: anywhere; }
.bm-confirm-row { display: flex; justify-content: space-between; gap: var(--sp-3); align-items: baseline; }
.bm-confirm-row .k { color: var(--text-3); font-size: var(--fs-sm); flex: 0 0 auto; }
.bm-confirm-row .v { text-align: right; overflow-wrap: anywhere; }
.bm-confirm-actions { display: flex; gap: var(--sp-2); margin-top: var(--sp-2); }
.bm-confirm-actions .btn { flex: 1 1 auto; white-space: nowrap; justify-content: center; }

@media (max-width: 520px) {
  .bm-result { padding: var(--sp-2) var(--sp-2); }
  .bm-list { max-height: 52vh; }
  .bm-confirm-actions { flex-direction: column; }
  .bm-confirm-actions .btn { min-height: 44px; }
}
@media (pointer: coarse) {
  .bm-result { padding-top: var(--sp-3); padding-bottom: var(--sp-3); }
  .bm-search input { padding-top: var(--sp-3); padding-bottom: var(--sp-3); }
}

/* ---------- Marketplace (shared service layer) ---------------------------- */
.pick-row {
  width: 100%;
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  text-align: left;
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: var(--sp-3) var(--sp-4);
  color: var(--text);
  font-family: inherit;
  font-size: var(--fs-base);
  cursor: pointer;
  transition: border-color var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease);
}
.pick-row:hover { border-color: var(--accent); background: var(--surface-3); }
.pick-row.is-selected { border-color: var(--accent); background: var(--surface-3); }
.pick-row input[type="checkbox"] { flex: 0 0 auto; }
.pick-row .pick-main { display: flex; flex-direction: column; min-width: 0; flex: 1 1 auto; }
.pick-row .pick-label { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pick-row .pick-sub { font-size: var(--fs-sm); color: var(--text-3); font-family: var(--font-mono); }
.pick-row > svg { flex: 0 0 auto; color: var(--text-4); }

.wal-grid { display: flex; flex-direction: column; gap: var(--sp-2); margin-top: var(--sp-3); }

.op-head { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); }
.op-title { display: flex; align-items: baseline; gap: var(--sp-1); min-width: 0; flex-wrap: wrap; }
.op-kind { font-weight: 600; text-transform: capitalize; }
.op-col { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.op-token { color: var(--accent); font-weight: 600; }
.op-meta { display: flex; gap: var(--sp-3); flex-wrap: wrap; margin-top: var(--sp-2); font-size: var(--fs-sm); }
.op-actions { margin-top: var(--sp-3); display: flex; gap: var(--sp-2); flex-wrap: wrap; }
.review-row.is-title .v { color: var(--accent); font-weight: 600; }
