/* ==========================================================================
   solo.link — Premium SaaS Component Library (Light & Dark Mode)
   Strict Vanilla CSS + Logical Properties · 8px Grid · Layered Depth
   ========================================================================== */

/* Cards */
.card {
  background: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  min-width: 0;
  box-shadow: var(--shadow-xs);
  transition: transform var(--duration-base) var(--ease-out),
              box-shadow var(--duration-base) var(--ease-out),
              border-color var(--duration-base) var(--ease-out);
}

.card-compact {
  padding: var(--space-4) var(--space-5);
  gap: var(--space-3);
}

.card-lift:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
}

.card.sel {
  border: 2px solid var(--color-primary);
  background: var(--bg-surface);
  box-shadow: var(--shadow-glow);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding-block-end: var(--space-3);
  border-bottom: 1px solid var(--border-hairline);
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding-block-start: var(--space-3);
  border-top: 1px solid var(--border-hairline);
  margin-block-start: auto;
}

/* Buttons (Full-Round Pills) */
.btn {
  font: 600 var(--text-sm) var(--font);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 10px 20px;
  border-radius: var(--radius-full);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  background: var(--bg-muted);
  color: var(--text-primary);
  white-space: nowrap;
  transition: background var(--duration-fast) var(--ease-out),
              border-color var(--duration-fast) var(--ease-out),
              color var(--duration-fast) var(--ease-out),
              box-shadow var(--duration-fast) var(--ease-out),
              transform var(--duration-fast) var(--ease-out);
}

.btn:hover {
  border-color: var(--border-strong);
}

.btn:active {
  transform: scale(0.98);
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
  box-shadow: none;
}

.btn.p {
  background: var(--color-primary);
  color: var(--color-primary-ink);
  box-shadow: var(--shadow-xs);
}

.btn.p:hover {
  background: var(--color-primary-hover);
  color: var(--neutral-0);
  border-color: transparent;
  box-shadow: var(--shadow-sm);
}

.btn.d {
  background: var(--color-black);
  color: var(--text-inverse);
}

.btn.d:hover {
  opacity: 0.9;
}

.btn.o {
  background: var(--bg-surface);
  border-color: var(--border-hairline);
  color: var(--text-primary);
  box-shadow: var(--shadow-xs);
}

.btn.o:hover {
  border-color: var(--border-strong);
  background: var(--bg-muted);
}

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

.btn.g:hover {
  background: var(--bg-muted);
  color: var(--text-primary);
  border-color: transparent;
}

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

.btn.x:hover {
  background: var(--color-danger);
  color: var(--neutral-0);
  border-color: var(--color-danger);
}

.btn.sm {
  padding: 7px 14px;
  font-size: 13px;
}

.btn.lg {
  padding: 13px 26px;
  font-size: 15px;
}

.btn.i {
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 50%;
}

.btn.i.sm {
  width: 34px;
  height: 34px;
}

.btn.blk {
  width: 100%;
}

.bg {
  display: inline-flex;
}

.bg .btn {
  border-radius: 0;
  border-color: var(--border-hairline);
  margin-inline-start: -1px;
}

.bg .btn:first-child {
  border-start-start-radius: var(--radius-full);
  border-end-start-radius: var(--radius-full);
  margin-inline-start: 0;
  padding-inline-start: 20px;
}

.bg .btn:last-child {
  border-start-end-radius: var(--radius-full);
  border-end-end-radius: var(--radius-full);
  padding-inline-end: 20px;
}

.bg .btn.on {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-primary-ink);
}

.spin {
  width: 18px;
  height: 18px;
  border: 2px solid var(--border-hairline);
  border-top-color: var(--color-primary);
  border-radius: 50%;
  animation: slSpin 0.7s linear infinite;
  display: inline-block;
}

/* Inputs, Selects & Forms */
.in,
select.in,
textarea.in {
  font: 400 var(--text-body) var(--font);
  padding: 12px 16px;
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  color: var(--text-primary);
  width: 100%;
  transition: border-color var(--duration-fast), box-shadow var(--duration-fast), background var(--duration-fast);
}

.in::placeholder {
  color: var(--text-tertiary);
  opacity: 1;
}

.in:hover {
  border-color: var(--border-strong);
}

.in:focus {
  outline: none;
  border-color: var(--color-primary);
  background: var(--bg-surface);
  box-shadow: 0 0 0 3px var(--color-primary-tint);
}

textarea.in {
  min-height: 96px;
  resize: vertical;
}

label.f {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 11px 16px 10px;
  background: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-md);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-secondary);
  position: relative;
  cursor: text;
  width: 100%;
  transition: border-color var(--duration-fast), box-shadow var(--duration-fast);
}

label.f:hover {
  border-color: var(--border-strong);
}

label.f:focus-within {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-primary-tint);
}

label.f .in {
  border: 0;
  background: transparent;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
  font-size: var(--text-body);
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: var(--text-primary);
}

label.f textarea.in {
  min-height: 76px;
}

label.f small,
label.f .mut {
  text-transform: none;
  letter-spacing: 0;
  font-weight: 500;
}

.err label.f,
label.f.err {
  border-color: var(--status-danger-text);
  background: var(--status-danger-bg);
}

.err small {
  color: var(--status-danger-text);
  font-size: var(--text-caption);
}

.ok label.f,
label.f.ok {
  border-color: var(--color-primary);
}

.pwf .in {
  padding-inline-end: 36px;
}

.eye {
  position: absolute;
  inset-inline-end: 14px;
  inset-block-end: 12px;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-size: 15px;
  color: var(--text-secondary);
  padding: 4px;
}

.ig {
  display: flex;
  width: 100%;
}

.ig > span {
  display: flex;
  align-items: center;
  padding-inline: 14px;
  background: var(--bg-muted);
  border: 1px solid var(--border-hairline);
  border-inline-end: 0;
  border-start-start-radius: var(--radius-md);
  border-end-start-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
}

.ig .in {
  border-start-start-radius: 0;
  border-end-start-radius: 0;
}

.ico {
  position: relative;
  width: 100%;
}

.ico > i {
  position: absolute;
  inset-inline-start: 14px;
  inset-block-start: 50%;
  transform: translateY(-50%);
  color: var(--text-secondary);
  font-size: 14px;
  pointer-events: none;
}

.ico .in {
  padding-inline-start: 40px;
}

.ck {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: var(--text-sm);
  cursor: pointer;
}

.ck input {
  accent-color: var(--color-primary);
  width: 18px;
  height: 18px;
  margin: 0;
}

/* Toggle Switch */
.sw {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.sw input {
  display: none;
}

.sw span {
  width: 44px;
  height: 24px;
  background: var(--border-strong);
  border-radius: var(--radius-full);
  position: relative;
  display: inline-block;
  flex: none;
  transition: background var(--duration-fast);
}

.sw span::after {
  content: "";
  position: absolute;
  inset-block-start: 2px;
  inset-inline-start: 2px;
  width: 20px;
  height: 20px;
  background: var(--neutral-0);
  border-radius: 50%;
  transition: inset-inline-start var(--duration-fast) var(--ease-out);
  box-shadow: var(--shadow-xs);
}

.sw input:checked + span {
  background: var(--color-primary);
}

.sw input:checked + span::after {
  inset-inline-start: 22px;
}

input[type="range"] {
  accent-color: var(--color-primary);
  width: 100%;
}

.drop {
  width: 100%;
  border: 1.5px dashed var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 28px 20px;
  text-align: center;
  color: var(--text-secondary);
  background: var(--bg-subtle);
  cursor: pointer;
  transition: border-color var(--duration-fast), background var(--duration-fast);
}

.drop:hover,
.drop.is-dragover {
  border-color: var(--color-primary);
  background: var(--color-primary-subtle);
  color: var(--status-success-text);
}

.drop i {
  font-size: 26px;
  display: block;
  margin-block-end: 8px;
  color: var(--color-primary);
}

.seg {
  display: inline-flex;
  background: var(--bg-muted);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-full);
  padding: 4px;
  gap: 4px;
}

.seg button,
.seg b {
  border: 1px solid transparent;
  background: transparent;
  padding: 7px 16px;
  font: 600 13px var(--font);
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  cursor: pointer;
  transition: background var(--duration-fast), color var(--duration-fast), box-shadow var(--duration-fast);
}

.seg .on {
  background: var(--bg-surface);
  color: var(--text-primary);
  border-color: var(--border-hairline);
  box-shadow: var(--shadow-xs);
}

/* Custom Dropdown (.ds) & Alpine Dropdown (.ui-dropdown) */
.ds,
.ui-dropdown {
  position: relative;
  width: 100%;
}

.ui-dropdown {
  width: auto;
  display: inline-block;
}

.ds > button {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  font: 500 var(--text-sm) var(--font);
  background: var(--bg-surface);
  color: var(--text-primary);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-md);
  cursor: pointer;
  text-align: start;
}

.ds > button:hover {
  border-color: var(--border-strong);
}

.ds.open > button {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-primary-tint);
}

.ds .lb {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.ds .cv {
  margin-inline-start: auto;
  color: var(--text-secondary);
  font-size: 12px;
  transition: transform var(--duration-fast);
}

.ds.open .cv {
  transform: rotate(180deg);
}

.ds .pl,
.ui-dropdown-menu {
  position: absolute;
  z-index: 50;
  inset-block-start: calc(100% + 8px);
  inset-inline-end: 0;
  min-width: 210px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-lg);
  padding: 6px;
  box-shadow: var(--shadow-lg);
}

.ds .pl {
  display: none;
  inset-inline: 0;
  max-height: 300px;
  overflow: auto;
}

.ds.open .pl {
  display: block;
}

.ui-dropdown-menu a,
.ui-dropdown-menu button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 12px;
  border: 0;
  background: transparent;
  color: var(--text-primary);
  font: 500 var(--text-sm) var(--font);
  border-radius: var(--radius-sm);
  text-decoration: none;
  cursor: pointer;
  text-align: start;
}

.ui-dropdown-menu a:hover,
.ui-dropdown-menu button:hover {
  background: var(--bg-muted);
}

.op {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: var(--text-sm);
}

.op:hover {
  background: var(--bg-muted);
}

.op[aria-selected="true"] {
  background: var(--color-primary-subtle);
  color: var(--status-success-text);
  font-weight: 600;
}

.t2 {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.t2 small {
  color: var(--text-secondary);
  font-size: var(--text-caption);
  font-weight: 400;
}

/* Badges & Chips */
.bd {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 11px;
  border-radius: var(--radius-full);
  font-size: var(--text-caption);
  font-weight: 700;
  border: 1px solid transparent;
  white-space: nowrap;
}

.bd.s { background: var(--status-success-bg); color: var(--status-success-text); border-color: var(--status-success-border); }
.bd.e { background: var(--status-danger-bg); color: var(--status-danger-text); border-color: var(--status-danger-border); }
.bd.n { background: var(--status-info-bg); color: var(--status-info-text); border-color: var(--status-info-border); }
.bd.a { background: var(--status-warning-bg); color: var(--status-warning-text); border-color: var(--status-warning-border); }
.bd.l { background: var(--accent-lavender-bg); color: var(--accent-lavender-text); }
.bd.k { background: var(--accent-sky-bg); color: var(--accent-sky-text); }
.bd.r { background: var(--accent-rose-bg); color: var(--accent-rose-text); }
.bd.pro { background: var(--color-primary-tint); color: var(--status-success-text); border-color: var(--color-brand-border); }
.bd.neutral { background: var(--bg-muted); color: var(--text-secondary); border-color: var(--border-hairline); }

.vf {
  color: var(--color-primary);
  font-size: 16px;
}

/* Alerts */
.al {
  display: flex;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid;
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  width: 100%;
  align-items: center;
}

.al.s { background: var(--status-success-bg); border-color: var(--status-success-border); color: var(--status-success-text); }
.al.e { background: var(--status-danger-bg); border-color: var(--status-danger-border); color: var(--status-danger-text); }
.al.n { background: var(--status-info-bg); border-color: var(--status-info-border); color: var(--status-info-text); }
.al.a { background: var(--status-warning-bg); border-color: var(--status-warning-border); color: var(--status-warning-text); }

/* Tabs & Pills (Zero vertical scrollbars or clipping) */
.tabs {
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--border-hairline);
  width: 100%;
  gap: 6px;
  overflow-x: auto;
  overflow-y: clip;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.tabs::-webkit-scrollbar {
  display: none;
}

.tabs a,
.tabs button {
  border: 0;
  background: transparent;
  font: 600 var(--text-sm)/1.4 var(--font);
  padding: 12px 16px;
  color: var(--text-secondary);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  transition: color var(--duration-fast), border-color var(--duration-fast);
}

.tabs a:hover,
.tabs button:hover {
  color: var(--text-primary);
}

.tabs .on {
  color: var(--text-primary);
  border-bottom-color: var(--color-primary);
}

/* Progress / Usage Meters & Skeletons */
.pr {
  width: 100%;
  height: 8px;
  background: var(--bg-muted);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.pr i {
  display: block;
  height: 100%;
  background: var(--color-primary);
  border-radius: var(--radius-full);
  transition: width var(--duration-slow) var(--ease-out);
}

.sk {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sk i {
  display: block;
  height: 12px;
  border-radius: 6px;
  background: linear-gradient(90deg, var(--bg-muted), var(--border-hairline), var(--bg-muted));
  background-size: 200% 100%;
  animation: slShimmer 1.4s infinite;
}

/* Toasts */
.toast {
  display: flex;
  gap: 12px;
  align-items: center;
  background: var(--bg-elevated);
  color: var(--text-primary);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-lg);
  padding: 14px 16px;
  font-size: var(--text-sm);
  width: 100%;
  box-shadow: var(--shadow-lg);
}

/* Avatars */
.av {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent-lavender-bg);
  color: var(--accent-lavender-text);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 14px;
  border: 2px solid var(--bg-surface);
  flex: none;
  overflow: hidden;
}

.av img { width: 100%; height: 100%; object-fit: cover; }
.av.g { background: var(--color-primary-tint); color: var(--status-success-text); }
.av.k { background: var(--accent-sky-bg); color: var(--accent-sky-text); }
.av.a { background: var(--accent-amber-bg); color: var(--accent-amber-text); }
.av.sm { width: 34px; height: 34px; font-size: 12px; }
.av.lg { width: 68px; height: 68px; font-size: 22px; }

.avatar-stack {
  display: flex;
  align-items: center;
}

.avatar-stack .av + .av {
  margin-inline-start: -12px;
}

/* Tooltips */
[data-tip] {
  position: relative;
}

[data-tip]:hover::after,
[data-tip]:focus-visible::after {
  content: attr(data-tip);
  position: absolute;
  inset-block-end: calc(100% + 8px);
  inset-inline-start: 50%;
  transform: translateX(-50%);
  background: var(--neutral-900);
  color: var(--neutral-0);
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  font-size: var(--text-caption);
  font-weight: 600;
  white-space: nowrap;
  z-index: 70;
  box-shadow: var(--shadow-sm);
}

/* Divider */
.dvt {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  color: var(--text-secondary);
  font-size: var(--text-caption);
}

.dvt::before,
.dvt::after {
  content: "";
  flex: 1;
  border-top: 1px solid var(--border-hairline);
}

/* Tables with Sticky Headers */
.table-wrap {
  width: 100%;
  overflow-x: auto;
  max-height: 520px;
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-lg);
  background: var(--bg-surface);
}

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

.t thead th {
  position: sticky;
  inset-block-start: 0;
  z-index: 2;
  text-align: start;
  color: var(--text-secondary);
  font-weight: 600;
  font-size: var(--text-caption);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-hairline);
  background: var(--bg-subtle);
}

.t td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--border-hairline);
  vertical-align: middle;
}

.t tr:last-child td { border-bottom: 0; }
.t tbody tr:hover td { background: var(--bg-subtle); }

/* Settings List & Empty States */
.sl {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 13px 0;
  border-bottom: 1px solid var(--border-hairline);
  font-size: var(--text-sm);
}

.sl:last-child { border-bottom: 0; }

.empty {
  width: 100%;
  text-align: center;
  padding: 36px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.empty > i { font-size: 32px; color: var(--text-tertiary); }
.empty p { margin: 0; color: var(--text-secondary); font-size: var(--text-sm); max-width: 38ch; }

/* KPI & Pricing Helpers */
.kpi {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-4);
  width: 100%;
}

.kpi-card {
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: var(--bg-surface);
  box-shadow: var(--shadow-xs);
}

.kpi-card b {
  font-size: 28px;
  line-height: 1.1;
  letter-spacing: var(--tracking-heading);
}

.big { font-size: 36px; font-weight: 800; letter-spacing: var(--tracking-tight); line-height: 1; }
.up { color: var(--status-success-text); font-size: 13px; font-weight: 700; }

.plan { width: 100%; display: flex; flex-direction: column; gap: 14px; font-size: var(--text-sm); height: 100%; }
.plan ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.plan li i { color: var(--color-primary); margin-inline-end: 8px; }

.code-box {
  display: flex;
  width: 100%;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-md);
  align-items: center;
  padding: 6px 6px 6px 14px;
  font: 700 13px var(--font-mono);
  justify-content: space-between;
  gap: 8px;
  background: var(--bg-subtle);
}

.pw-meter { display: flex; gap: 6px; width: 100%; }
.pw-meter i { flex: 1; height: 6px; border-radius: var(--radius-full); background: var(--border-hairline); transition: background var(--duration-fast); }
.pw-meter i.on { background: var(--color-primary); }

.pay-badges { display: flex; gap: 8px; flex-wrap: wrap; }
.pay-badges span { display: inline-flex; gap: 6px; align-items: center; border: 1px solid var(--border-hairline); border-radius: var(--radius-md); padding: 8px 14px; font-size: 13px; font-weight: 600; background: var(--bg-surface); }
.pay-badges i { font-size: 20px; }

.ref { width: 100%; display: flex; flex-direction: column; gap: 12px; font-size: var(--text-sm); }
.ref-row { display: grid; grid-template-columns: 110px 1fr 48px; align-items: center; gap: 12px; }

.tl { display: flex; flex-direction: column; gap: 16px; border-inline-start: 1px solid var(--border-hairline); padding-inline-start: 18px; margin-inline-start: 6px; font-size: var(--text-sm); }
.tl-item { position: relative; }
.tl-item::before { content: ""; position: absolute; inset-inline-start: -24px; inset-block-start: 5px; width: 11px; height: 11px; border-radius: 50%; background: var(--color-primary); border: 2px solid var(--bg-surface); }

/* Smooth Accordion */
details.acc {
  width: 100%;
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-lg);
  padding: 0;
  font-size: var(--text-body);
  background: var(--bg-surface);
  overflow: hidden;
  transition: border-color var(--duration-fast), box-shadow var(--duration-fast);
}

details.acc[open] {
  border-color: var(--color-brand-border);
  box-shadow: var(--shadow-sm);
}

details.acc summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  font-weight: 700;
  cursor: pointer;
}

details.acc summary::-webkit-details-marker { display: none; }

details.acc summary::after {
  content: "\f078";
  font-family: "Font Awesome 7 Pro";
  font-weight: 400;
  font-size: 12px;
  color: var(--text-secondary);
  transition: transform var(--duration-base) var(--ease-out);
}

details.acc[open] summary::after {
  transform: rotate(180deg);
  color: var(--color-primary);
}

details.acc .acc-body {
  padding: 0 20px 18px;
  color: var(--text-secondary);
  font-size: var(--text-sm);
  animation: slFadeSlideUp var(--duration-base) var(--ease-out);
}

/* Stepper */
.stp { display: flex; width: 100%; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; }
.stp-node { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; color: var(--text-secondary); }
.stp-node i { font-style: normal; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--border-hairline); background: var(--bg-surface); }
.stp-node.dn, .stp-node.cur { color: var(--text-primary); }
.stp-node.dn i { background: var(--color-primary); color: var(--color-primary-ink); border-color: var(--color-primary); }
.stp-node.cur i { border-color: var(--color-primary); background: var(--color-primary-subtle); color: var(--status-success-text); }
.stp hr { flex: 1; border: 0; border-top: 1px solid var(--border-hairline); margin: 0; }

/* Theme Toggle Pill */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-hairline);
  background: var(--bg-surface);
  color: var(--text-secondary);
  font: 600 13px var(--font);
  cursor: pointer;
  transition: background var(--duration-fast), color var(--duration-fast), border-color var(--duration-fast);
}

.theme-toggle:hover {
  background: var(--bg-muted);
  color: var(--text-primary);
  border-color: var(--border-strong);
}

@media (max-width: 900px) {
  .kpi { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
