/* components.css - the reusable pieces. Ported from the Carrier Login Manager
   so the two tools feel like one system, extended with the pieces this tool
   needs (dropzone, file table, progress checklist, slide-over, two-line menu).
   Nothing here hard-codes a color: every value is a token. */

/* Every inline icon has a sane default size; specific contexts override it. */
.ic { width: 18px; height: 18px; flex: none; display: inline-block; vertical-align: middle; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  border: 1px solid var(--line-strong); border-radius: var(--r-sm);
  padding: 9px 15px; font-size: 13px; font-weight: 600; font-family: inherit;
  cursor: pointer; background: var(--surface); color: var(--ink);
  line-height: 1.1; text-align: center; white-space: nowrap;
  box-shadow: var(--sh-1);
  transition: background var(--dur-2) var(--ease), border-color var(--dur-2) var(--ease),
    box-shadow var(--dur-2) var(--ease), transform var(--dur-1) var(--ease), color var(--dur-2) var(--ease);
}
.btn:hover { background: var(--surface-2); border-color: var(--faint); }
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .5; cursor: not-allowed; box-shadow: none; transform: none; }
.btn .ic { width: 15px; height: 15px; flex: none; }
.btn-primary { background: var(--coral); color: #fff; border-color: transparent; box-shadow: 0 1px 2px rgba(220,70,48,.35), 0 8px 18px -8px rgba(220,70,48,.55); }
.btn-primary:hover { background: var(--coral-strong); border-color: transparent; }
.btn-navy { background: var(--navy); color: #fff; border-color: transparent; box-shadow: 0 1px 2px rgba(13,59,99,.30), 0 8px 18px -8px rgba(13,59,99,.5); }
.btn-navy:hover { background: var(--navy-deep); }
.btn-secondary { background: var(--surface); color: var(--navy); border-color: var(--line-strong); }
.btn-secondary:hover { background: var(--brand-tint); border-color: var(--navy); }
[data-theme="dark"] .btn-secondary { color: var(--ink); }
.btn-ghost { background: transparent; color: var(--ink-2); border-color: transparent; box-shadow: none; }
.btn-ghost:hover { background: var(--bg-tint); color: var(--ink); }
.btn-ghost-light { background: var(--on-navy-fill); color: #fff; border-color: var(--on-navy-line); box-shadow: none; }
.btn-ghost-light:hover { background: var(--on-navy-fill-2); border-color: rgba(255,255,255,0.5); }
.btn-danger { background: var(--danger); color: #fff; border-color: transparent; }
.btn-danger:hover { filter: brightness(.94); }
.btn-block { width: 100%; padding: 12px; font-size: 14px; }
.btn-sm { padding: 6px 11px; font-size: 12px; border-radius: var(--r-xs); }
.btn-lg { padding: 12px 22px; font-size: 15px; }
a.btn, a.btn:hover { text-decoration: none; }

/* Icon-only round control (topbar: theme, help, bell) */
.iconbtn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: var(--r-sm);
  background: var(--on-navy-fill); color: #fff; border: 1px solid var(--on-navy-line);
  cursor: pointer; box-shadow: none;
  transition: background var(--dur-2) var(--ease), border-color var(--dur-2) var(--ease), transform var(--dur-1) var(--ease);
}
.iconbtn:hover { background: var(--on-navy-fill-2); border-color: rgba(255,255,255,.5); }
.iconbtn:active { transform: scale(.94); }
.iconbtn .ic { width: 17px; height: 17px; }
.iconbtn.on { background: var(--coral); border-color: transparent; }

/* Segmented control */
.segmented { display: inline-flex; align-items: center; gap: 2px; padding: 4px; background: var(--bg-tint); border-radius: var(--r-pill); max-width: 100%; }
.segmented .seg { border: none; border-radius: var(--r-pill); background: transparent; color: var(--ink-2); padding: 7px 14px; font-size: 12.5px; font-weight: 600; font-family: inherit; cursor: pointer; transition: background var(--dur-2) var(--ease), color var(--dur-2) var(--ease); }
.segmented .seg:hover { color: var(--ink); }
.segmented .seg[aria-pressed="true"] { background: var(--surface); color: var(--navy); box-shadow: var(--sh-1); }
[data-theme="dark"] .segmented .seg[aria-pressed="true"] { color: var(--ink); }

/* ---------- Cards ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--sh-1); overflow: hidden; }
.card-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.card-h h2, .card-h h3 { font-size: 15px; letter-spacing: -0.01em; }
.card-h .sub { font-size: 12.5px; color: var(--muted); font-weight: 500; margin-top: 2px; }
.card-b { padding: 20px; }
.card-b.tight { padding: 14px 20px; }

/* ---------- Ledger tiles ---------- */
.ledger { display: grid; gap: 14px; }
.ledger.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ledger.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ledger .cell { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 16px 18px; box-shadow: var(--sh-1); min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.ledger .cell .l { font-size: 12px; color: var(--muted); font-weight: 600; }
.ledger .cell .v { font-size: 24px; font-weight: 700; color: var(--ink); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.ledger .cell .s { font-size: 12px; color: var(--muted); }
.ledger .cell .s.up { color: var(--ok-text); }
.ledger .cell .s.down { color: var(--coral-text); }

/* ---------- Tables ---------- */
.table-wrap { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); overflow: auto; box-shadow: var(--sh-1); }
table { border-collapse: collapse; width: 100%; }
thead th {
  background: var(--surface-2); color: var(--ink-2);
  font-size: 11.5px; font-weight: 700; letter-spacing: .02em;
  text-align: left; padding: 12px 15px; white-space: nowrap;
  border-bottom: 1px solid var(--line);
}
tbody td { padding: 12px 15px; border-bottom: 1px solid var(--line); color: var(--ink-2); vertical-align: middle; }
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background: var(--surface-2); }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
.cell-id { color: var(--ink); font-weight: 600; white-space: nowrap; }

/* ---------- Badges / status pills ---------- */
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; font-size: 11.5px; font-weight: 600; color: var(--ink-2); background: var(--bg-tint); border-radius: var(--r-pill); line-height: 1.4; white-space: nowrap; }
.badge.dot::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .85; }
.badge-navy { color: var(--info-text); background: var(--brand-tint); }
.badge-admin { color: var(--coral-text); background: var(--coral-soft); }

.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 8px; font-size: 12px; font-weight: 600; border-radius: var(--r-pill); line-height: 1.4; white-space: nowrap; background: var(--bg-tint); color: var(--ink-2); }
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pill-starting { color: var(--info-text); background: var(--info-bg); }
.pill-working  { color: var(--info-text); background: var(--info-bg); }
.pill-working::before { animation: pulse-dot 1.4s var(--ease) infinite; }
.pill-needs    { color: var(--warn-text); background: var(--warn-bg); }
.pill-ready    { color: var(--ok-text); background: var(--ok-bg); }
.pill-failed   { color: var(--danger-text); background: var(--danger-bg); }
.pill-stopped  { color: var(--muted); background: var(--bg-tint); }
@keyframes pulse-dot { 0%,100% { opacity: 1; } 50% { opacity: .35; } }

/* ---------- Fields ---------- */
.field { display: block; margin-bottom: 16px; }
.field:last-child { margin-bottom: 0; }
.label { display: block; font-size: 12.5px; font-weight: 600; color: var(--ink-2); margin-bottom: 6px; }
input[type=text], input[type=email], input[type=search], input[type=number], input[type=url], select, textarea {
  width: 100%; font-family: inherit; font-size: 14px; color: var(--ink);
  padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: var(--r-sm);
  background: var(--surface); transition: border-color var(--dur-2) var(--ease), box-shadow var(--dur-2) var(--ease);
}
input::placeholder, textarea::placeholder { color: var(--faint); }
textarea { min-height: 68px; resize: vertical; line-height: 1.5; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--info); box-shadow: var(--ring); }
select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2377839a' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; padding-right: 34px; }
.field-hint { display: block; font-size: 12px; color: var(--muted); margin-top: 6px; line-height: 1.45; }

/* ---------- Switch ---------- */
.switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; }
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch-track { position: relative; width: 38px; height: 22px; background: var(--line-strong); border-radius: var(--r-pill); flex: none; transition: background var(--dur-2) var(--ease); }
.switch-track::after { content: ""; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; background: #fff; border-radius: 50%; box-shadow: var(--sh-1); transition: transform var(--dur-2) var(--ease); }
.switch input:checked + .switch-track { background: var(--coral); }
.switch input:checked + .switch-track::after { transform: translateX(16px); }
.switch input:focus-visible + .switch-track { box-shadow: var(--ring); }
.switch-lbl { font-size: 13.5px; color: var(--ink); font-weight: 600; }

/* ---------- Dropzone ---------- */
.dropzone {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  text-align: center; padding: 40px 24px; min-height: 200px;
  background: var(--surface); border: 2px dashed var(--line-strong); border-radius: var(--r-lg);
  transition: border-color var(--dur-2) var(--ease), background var(--dur-2) var(--ease), box-shadow var(--dur-2) var(--ease);
}
.dropzone .dz-ic { width: 56px; height: 56px; border-radius: var(--r-pill); background: var(--brand-tint); color: var(--navy); display: flex; align-items: center; justify-content: center; }
.dropzone .dz-ic .ic { width: 26px; height: 26px; }
.dropzone .dz-title { font-size: 17px; font-weight: 700; color: var(--ink); }
.dropzone .dz-sub { font-size: 13.5px; color: var(--muted); max-width: 420px; }
.dropzone.dragover { border-color: var(--coral); background: var(--coral-soft); box-shadow: var(--ring-coral); }
.dropzone.dragover .dz-ic { background: var(--coral); color: #fff; }

/* ---------- File table (upload list) ---------- */
.filelist { border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; background: var(--surface); box-shadow: var(--sh-1); }
.filerow { display: grid; grid-template-columns: 1fr 190px 88px 34px; gap: 14px; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.filerow:last-child { border-bottom: none; }
.filerow .fr-name { min-width: 0; display: flex; align-items: center; gap: 10px; }
.filerow .fr-fic { width: 30px; height: 30px; border-radius: var(--r-sm); background: var(--bg-tint); color: var(--ink-2); display: flex; align-items: center; justify-content: center; flex: none; }
.filerow .fr-fic .ic { width: 16px; height: 16px; }
.filerow .fr-main { min-width: 0; display: flex; flex-direction: column; }
.filerow .fr-file { font-weight: 600; color: var(--ink); font-size: 13.5px; font-family: var(--mono); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.filerow .fr-reason { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 1px; }
.filerow .fr-size { font-size: 12.5px; color: var(--muted); text-align: right; font-variant-numeric: tabular-nums; }
.filerow select { padding: 7px 30px 7px 10px; font-size: 12.5px; }
.fr-x { width: 30px; height: 30px; border: none; background: transparent; color: var(--faint); border-radius: var(--r-sm); cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background var(--dur-2) var(--ease), color var(--dur-2) var(--ease); }
.fr-x:hover { background: var(--coral-soft); color: var(--coral); }
.fr-x .ic { width: 16px; height: 16px; }
/* per-file upload progress */
.fr-prog { grid-column: 1 / -1; height: 3px; border-radius: var(--r-pill); background: var(--line); overflow: hidden; margin-top: -2px; }
.fr-prog > i { display: block; width: 100%; height: 100%; background: var(--coral); border-radius: var(--r-pill); transform: scaleX(0); transform-origin: left center; transition: transform var(--dur-3) var(--ease); }

/* ---------- Menu (two-line items with an icon) ---------- */
.menu {
  position: absolute; z-index: 60; min-width: 300px; max-width: 380px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
  box-shadow: var(--sh-3); overflow: hidden; padding: 6px;
  transform-origin: var(--menu-origin, top left);
  animation: menu-in var(--dur-2) var(--ease);
}
@keyframes menu-in { from { opacity: 0; transform: scale(.97) translateY(-4px); } to { opacity: 1; transform: none; } }
.menu-item {
  display: flex; align-items: flex-start; gap: 12px; width: 100%; text-align: left;
  background: none; border: none; border-radius: var(--r-sm); padding: 10px 12px;
  cursor: pointer; font-family: inherit; color: var(--ink);
  transition: background var(--dur-1) var(--ease);
}
.menu-item:hover, .menu-item.active { background: var(--surface-2); }
.menu-item:focus-visible { background: var(--surface-2); }
.menu-item .mi-ic { width: 32px; height: 32px; border-radius: var(--r-sm); background: var(--brand-tint); color: var(--navy); display: flex; align-items: center; justify-content: center; flex: none; }
.menu-item .mi-ic .ic { width: 17px; height: 17px; }
.menu-item .mi-main { min-width: 0; }
.menu-item .mi-title { display: flex; align-items: center; gap: 7px; font-weight: 600; font-size: 13.5px; color: var(--ink); }
.menu-item .mi-desc { font-size: 12px; color: var(--muted); line-height: 1.4; margin-top: 1px; }
.menu-item .mi-check { margin-left: auto; color: var(--ok); flex: none; }
.menu-item .mi-check .ic { width: 16px; height: 16px; }
.menu-sep { height: 1px; background: var(--line); margin: 6px 4px; }
.menu-foot { display: flex; align-items: center; justify-content: space-between; padding: 8px 12px 6px; }
.menu-foot a { font-size: 12.5px; font-weight: 600; }

/* ---------- Popover (Learn more) ---------- */
.popover {
  position: absolute; z-index: 70; max-width: 300px;
  background: var(--surface); color: var(--ink-2); border: 1px solid var(--line);
  border-radius: var(--r-md); box-shadow: var(--sh-2); padding: 12px 14px;
  font-size: 12.5px; line-height: 1.5; transform-origin: var(--pop-origin, top left);
  animation: menu-in var(--dur-2) var(--ease);
}
.popover strong { color: var(--ink); }

/* ---------- Disclosure ---------- */
.disclosure { border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); overflow: hidden; }
.disclosure > summary, .disclosure-h {
  display: flex; align-items: center; gap: 8px; width: 100%;
  padding: 12px 16px; cursor: pointer; font-weight: 600; font-size: 13.5px; color: var(--ink);
  background: none; border: none; font-family: inherit; text-align: left; list-style: none;
}
.disclosure > summary::-webkit-details-marker { display: none; }
.disclosure > summary .ic.chev, .disclosure-h .ic.chev { width: 16px; height: 16px; color: var(--muted); transition: transform var(--dur-2) var(--ease); }
.disclosure[open] > summary .ic.chev, .disclosure.open .disclosure-h .ic.chev { transform: rotate(90deg); }
.disclosure .disclosure-b { padding: 0 16px 16px; }
.disclosure .disclosure-meta { margin-left: auto; font-size: 12.5px; color: var(--muted); font-weight: 500; }

/* ---------- Modal ---------- */
.modal-overlay { position: fixed; inset: 0; background: var(--scrim); backdrop-filter: blur(2px); display: flex; align-items: flex-start; justify-content: center; padding: 48px 16px; overflow-y: auto; z-index: 50; animation: overlay-in var(--dur-2) var(--ease); }
@keyframes overlay-in { from { opacity: 0; } to { opacity: 1; } }
.modal { background: var(--surface); width: 100%; max-width: 560px; border-radius: var(--r-lg); box-shadow: var(--sh-3); overflow: hidden; animation: modal-in var(--dur-3) var(--ease); }
@keyframes modal-in { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
.modal.wide { max-width: 900px; }
.modal-head { padding: 18px 22px 16px; display: flex; justify-content: space-between; align-items: center; gap: 12px; border-bottom: 1px solid var(--line); }
.modal-head h2 { font-size: 17px; }
.modal-x { background: var(--surface-2); border: 1px solid var(--line); color: var(--muted); cursor: pointer; width: 32px; height: 32px; border-radius: var(--r-sm); display: flex; align-items: center; justify-content: center; transition: background var(--dur-2) var(--ease), color var(--dur-2) var(--ease); }
.modal-x:hover { background: var(--coral-soft); color: var(--coral); }
.modal-x .ic { width: 17px; height: 17px; }
.modal-body { padding: 22px; }
.modal-foot { padding: 16px 22px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 10px; background: var(--surface-2); align-items: center; }

/* ---------- Slide-over panel (help) ---------- */
.slideover { position: fixed; inset: 0; z-index: 80; display: flex; justify-content: flex-end; }
.slideover-scrim { position: absolute; inset: 0; background: var(--scrim); backdrop-filter: blur(2px); animation: overlay-in var(--dur-2) var(--ease); }
.slideover-panel {
  position: relative; width: 380px; max-width: 92vw; height: 100%;
  background: var(--surface); border-left: 1px solid var(--line); box-shadow: var(--sh-3);
  display: flex; flex-direction: column; animation: panel-in var(--dur-3) var(--ease);
}
@keyframes panel-in { from { transform: translateX(24px); opacity: .4; } to { transform: none; opacity: 1; } }
.slideover-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.slideover-head h2 { font-size: 15px; }
.slideover-body { flex: 1; overflow: auto; padding: 18px; }
.slideover-foot { border-top: 1px solid var(--line); padding: 14px 18px; }

/* ---------- Toast (one at a time, bottom center, pill, check badge) ---------- */
.toast-host { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 100; display: flex; justify-content: center; pointer-events: none; }
.toast {
  display: inline-flex; align-items: center; gap: 12px; pointer-events: auto;
  background: var(--ink); color: var(--surface); padding: 11px 14px 11px 12px; border-radius: var(--r-pill);
  box-shadow: var(--sh-3); max-width: 90vw; font-size: 13.5px; font-weight: 500;
  animation: toast-in var(--dur-3) var(--pop);
}
[data-theme="dark"] .toast { background: var(--surface-2); color: var(--ink); border: 1px solid var(--line-strong); }
.toast.leaving { animation: toast-out var(--dur-2) var(--ease) forwards; }
.toast .toast-badge { width: 22px; height: 22px; border-radius: 50%; background: var(--ok); color: #fff; display: flex; align-items: center; justify-content: center; flex: none; }
.toast.error .toast-badge { background: var(--coral); }
.toast .toast-badge .ic { width: 14px; height: 14px; }
.toast .toast-action { background: none; border: none; color: var(--coral); font-weight: 700; font-size: 13px; cursor: pointer; font-family: inherit; padding: 2px 4px; }
[data-theme="dark"] .toast .toast-action { color: var(--coral-text); }
@keyframes toast-in { from { opacity: 0; transform: translateY(14px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes toast-out { to { opacity: 0; transform: translateY(8px); } }

/* ---------- Empty state ---------- */
.empty-state { padding: 52px 24px; text-align: center; border: 1px dashed var(--line-strong); border-radius: var(--r-lg); background: var(--surface); }
.empty-state .es-ic { display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: var(--r-pill); background: var(--brand-tint); color: var(--navy); margin-bottom: 14px; }
.empty-state .es-ic .ic { width: 26px; height: 26px; }
.empty-state .es-title { color: var(--ink); font-weight: 700; font-size: 16px; margin-bottom: 5px; }
.empty-state .es-sub { font-size: 13.5px; color: var(--muted); max-width: 440px; margin: 0 auto; line-height: 1.5; }
.empty-state .es-actions { margin-top: 18px; display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* ---------- Skeleton ---------- */
.skel { position: relative; overflow: hidden; background: var(--bg-tint); border-radius: var(--r-sm); }
.skel::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255,255,255,.45), transparent); transform: translateX(-100%); animation: shimmer 1.3s var(--ease) infinite; }
[data-theme="dark"] .skel::after { background: linear-gradient(90deg, transparent, rgba(255,255,255,.06), transparent); }
@keyframes shimmer { to { transform: translateX(100%); } }
.skel-row { height: 54px; margin-bottom: 10px; }

/* ---------- Note / callout ---------- */
.note { display: flex; gap: 11px; padding: 12px 14px; border-radius: var(--r-md); font-size: 13px; line-height: 1.5; }
.note .ic { width: 18px; height: 18px; flex: none; margin-top: 1px; }
.note-warn { background: var(--warn-bg); color: var(--warn-text); }
.note-info { background: var(--info-bg); color: var(--info-text); }
.note-ok { background: var(--ok-bg); color: var(--ok-text); }
.note strong { font-weight: 700; }

/* ---------- Progress checklist ---------- */
.checklist { display: flex; flex-direction: column; }
.check-step { display: flex; align-items: flex-start; gap: 14px; padding: 10px 0; position: relative; }
.check-step .cs-marker { position: relative; width: 26px; flex: none; display: flex; justify-content: center; }
.check-step .cs-dot { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--line-strong); background: var(--surface); display: flex; align-items: center; justify-content: center; color: var(--faint); z-index: 1; transition: border-color var(--dur-2) var(--ease), background var(--dur-2) var(--ease), color var(--dur-2) var(--ease); }
.check-step .cs-dot .ic { width: 15px; height: 15px; }
/* connector line between steps */
.check-step:not(:last-child) .cs-marker::after { content: ""; position: absolute; top: 26px; bottom: -10px; width: 2px; background: var(--line); }
.check-step.done .cs-dot { border-color: var(--ok); background: var(--ok); color: #fff; }
.check-step.done .cs-marker::after { background: var(--ok); }
.check-step.current .cs-dot { border-color: var(--coral); color: var(--coral); }
.check-step.current .cs-dot::before { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 2px solid var(--coral); opacity: 0; animation: ring-pulse 1.6s var(--ease) infinite; }
@keyframes ring-pulse { 0% { opacity: .5; transform: scale(.8); } 100% { opacity: 0; transform: scale(1.25); } }
.check-step .cs-body { padding-top: 2px; min-width: 0; }
.check-step .cs-label { font-weight: 600; font-size: 14px; color: var(--ink-2); }
.check-step.done .cs-label, .check-step.current .cs-label { color: var(--ink); }
.check-step.upcoming .cs-label { color: var(--faint); }
.check-step .cs-detail { font-size: 12.5px; color: var(--muted); margin-top: 2px; line-height: 1.45; }

/* ---------- Raw log ---------- */
.raw-log { font-family: var(--mono); font-size: 12px; line-height: 1.6; color: var(--ink-2); background: var(--bg-tint); border-radius: var(--r-sm); padding: 12px 14px; max-height: 240px; overflow: auto; white-space: pre-wrap; }

/* ---------- Shortcuts sheet ---------- */
.shortcut-list { display: flex; flex-direction: column; gap: 4px; }
.shortcut-row { display: flex; align-items: center; gap: 14px; padding: 8px 2px; border-bottom: 1px solid var(--line); font-size: 13.5px; color: var(--ink-2); }
.shortcut-row:last-child { border-bottom: none; }
kbd { font-family: var(--mono); font-size: 12px; min-width: 30px; text-align: center; background: var(--bg-tint); border: 1px solid var(--line-strong); border-bottom-width: 2px; border-radius: var(--r-xs); padding: 3px 8px; color: var(--ink); flex: none; }

/* ---------- Assorted ---------- */
.muted { color: var(--muted); }
.mono { font-family: var(--mono); }
.stack { display: flex; flex-direction: column; }
.row { display: flex; align-items: center; gap: 10px; }
.wrap { flex-wrap: wrap; }
.spacer { flex: 1; }
