/* Smart Links admin — integrated app tab (generated from elwolinks/index.html) */
.sl-admin {
  font: 14px/1.5 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: #e2e8f0;
  /* No extra page shell — sit on app black like other tabs */
  background: transparent;
  min-height: 0;
  padding: 0.25rem 0 1.5rem;
}
.sl-admin * { margin: 0; padding: 0; box-sizing: border-box; }
.sl-admin h1 { font-size: 1.3rem; margin-bottom: 1.2rem; display: flex; align-items: center; gap: 0.6rem; }
.sl-admin h1 .dot { width: 10px; height: 10px; border-radius: 50%; background: #38bdf8; box-shadow: 0 0 8px rgba(56,189,248,0.8); }
.sl-admin h2 { font-size: 1rem; margin-bottom: 0.8rem; color: #bae6fd; }
.sl-admin .tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.4rem;
  flex-wrap: wrap;
  align-items: center;
}
.sl-tabs-filter-wrap {
  position: relative;
  margin-left: auto;
  flex-shrink: 0;
}
.sl-tabs-filter-wrap[hidden] {
  display: none !important;
}
.sl-admin .tab-btn {
  padding: 0.5rem 1.1rem; border-radius: 999px; border: 1px solid rgba(148,163,184,0.25);
  background: transparent; color: #94a3b8; font-size: 0.85rem; font-weight: 600; cursor: pointer;
}
.sl-admin .tab-btn.active { background: rgba(56,189,248,0.15); border-color: rgba(56,189,248,0.5); color: #e0f2fe; }
.sl-admin .panel { display: none; }
.sl-admin .panel.active { display: block; }
.sl-admin .card {
  background: linear-gradient(145deg, rgba(11,28,40,0.95), rgba(6,14,22,0.98));
  border: 1px solid rgba(56,189,248,0.12); border-radius: 14px; padding: 1.1rem; margin-bottom: 1rem;
}
.s-tracks-hint {
  margin: -0.25rem 0 0.75rem;
  font-size: 0.8rem;
  line-height: 1.35;
}
#s-tracks-card.hidden { display: none; }
.sl-deep {
  display: inline-block;
  padding: 0.05rem 0.4rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: lowercase;
}
.sl-deep.is-deep {
  color: #fde68a;
  background: rgba(245, 158, 11, 0.14);
  border: 1px solid rgba(245, 158, 11, 0.35);
}
.sl-deep.is-direct {
  color: #a5b4fc;
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(129, 140, 248, 0.3);
}
.sl-admin label { display: block; font-size: 0.75rem; color: #94a3b8; margin: 0.6rem 0 0.25rem; }
.sl-admin input[type=text],
.sl-admin input[type=password],
.sl-admin input[type=date],
.sl-admin input[type=time],
.sl-admin input[type=number],
.sl-admin select,
.sl-admin textarea {
  width: 100%; padding: 0.55rem 0.8rem; border-radius: 10px;
  border: 1px solid rgba(148,163,184,0.25); background: #0b1520; color: #e2e8f0; font: inherit;
}
.sl-admin input:focus, .sl-admin select:focus, .sl-admin textarea:focus { outline: none; border-color: rgba(56,189,248,0.6); }
.sl-admin .sl-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
  margin-top: 0.85rem;
}
.sl-admin .sl-actions .primary,
.sl-admin .sl-actions .ghost { margin-top: 0; margin-left: 0; }
.sl-admin .row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; }
.sl-admin .row3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0.8rem; }
/* Unified action buttons — same height everywhere in Smart Links */
.sl-admin button.primary,
.sl-admin button.ghost {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.2rem;
  height: 2.2rem;
  padding: 0 1.05rem;
  border-radius: 999px;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  margin-top: 0;
  white-space: nowrap;
}
.sl-admin button.primary {
  border: 1px solid transparent;
  background: #38bdf8;
  color: #04131f;
  font-weight: 700;
}
.sl-admin button.primary:disabled { opacity: 0.5; cursor: wait; }
.sl-admin button.ghost {
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: transparent;
  color: #94a3b8;
}
.sl-admin button.ghost:hover { color: #e2e8f0; border-color: rgba(148, 163, 184, 0.65); }
.sl-admin button.danger { border-color: rgba(239, 68, 68, 0.4); color: #fca5a5; }
.sl-admin .status { margin-top: 0.6rem; font-size: 0.8rem; min-height: 1.2em; }
.sl-admin .status.ok { color: #4ade80; }
.sl-admin .status.err { color: #f87171; }
.sl-admin table { width: 100%; border-collapse: collapse; font-size: 0.82rem; }
.sl-admin th, .sl-admin td { text-align: left; padding: 0.5rem 0.6rem; border-bottom: 1px solid rgba(148,163,184,0.1); }
.sl-admin th { color: #64748b; font-weight: 600; font-size: 0.72rem; text-transform: uppercase; }
.sl-admin td.num,
.sl-admin th.num {
  text-align: right !important;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.sl-admin .sl-break-table {
  width: 100%;
  table-layout: fixed;
}
.sl-admin .sl-break-table .sl-break-key {
  text-align: left;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sl-admin .sl-break-table th.num,
.sl-admin .sl-break-table td.num {
  width: 4.6rem;
}
.sl-admin .table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.sl-admin a { color: #7dd3fc; text-decoration: none; }
.sl-admin a:hover { text-decoration: underline; }
.sl-admin .badge { display: inline-block; padding: 0.1rem 0.5rem; border-radius: 999px; font-size: 0.68rem; font-weight: 700; }
.sl-admin .badge.on { background: rgba(74,222,128,0.15); color: #4ade80; }
.sl-admin .badge.off { background: rgba(148,163,184,0.15); color: #94a3b8; }
.sl-admin .kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 0.8rem; margin-bottom: 1rem; }
.sl-admin .kpi { background: rgba(56,189,248,0.06); border: 1px solid rgba(56,189,248,0.12); border-radius: 12px; padding: 0.7rem 0.9rem; }
.sl-admin .kpi b { display: block; font-size: 1.25rem; }
.sl-admin .kpi span { font-size: 0.7rem; color: #94a3b8; text-transform: uppercase; }
.sl-admin .filters { display: flex; gap: 0.6rem; flex-wrap: wrap; margin-bottom: 1rem; align-items: end; }
.sl-admin .filters > div { min-width: 130px; }
.sl-admin .filters.sl-stats-filters {
  width: 100%;
}
.sl-admin .filters.sl-stats-filters .sl-scope-modes {
  margin-left: auto;
}
.sl-admin .sl-filter-link {
  flex: 1 1 100%;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  margin-bottom: 1rem;
}
.sl-admin .sl-filter-link label {
  display: block;
  font-size: 0.72rem;
  color: #94a3b8;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}
.sl-admin .sl-filter-link .app-select-wrap {
  display: block;
  width: 100%;
  max-width: none;
}
.sl-admin .sl-filter-link .app-select-btn {
  width: 100%;
  min-height: 2.7rem;
  border-radius: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sl-admin .sl-filter-link .app-select-panel {
  left: 0;
  right: auto;
  width: max(100%, 36rem);
  min-width: 100%;
  max-width: min(96vw, 42rem);
}
.sl-admin .sl-filter-link .app-select-option {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
@media (max-width: 900px) {
  .sl-admin .filters.sl-stats-filters .sl-scope-modes {
    margin-left: 0;
    width: 100%;
  }
}
.sl-admin .check-line { display: flex; align-items: center; gap: 0.5rem; margin-top: 0.7rem; font-size: 0.85rem; color: #cbd5e1; }
.sl-admin .muted { color: #64748b; font-size: 0.75rem; }
.sl-admin .hidden { display: none !important; }
.sl-admin .range-picker-icon { opacity: 0.85; flex-shrink: 0; }
.sl-admin /* Link type selector — Pre-Release style pills, .sl-admin blocks open progressively */
.type-row { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.sl-admin .type-btn {
  flex: 1 1 160px; padding: 0.7rem 1rem; border-radius: 999px;
  border: 1px solid rgba(148,163,184,0.25); background: rgba(255,255,255,0.03);
  color: #cbd5e1; font-size: 0.88rem; font-weight: 600; cursor: pointer; text-align: center;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}
.sl-admin .type-btn:hover { border-color: rgba(56,189,248,0.45); }
.sl-admin .type-btn.active {
  border: 2px solid rgba(56,189,248,0.7); background: rgba(56,189,248,0.12); color: #e0f2fe;
}
.sl-admin /* Share modal (Feature.fm-style source tiles) */
.share-wrap { position: fixed; inset: 0; z-index: 60; display: flex; align-items: center; justify-content: center; padding: 1rem; }
.sl-admin .share-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.72); }
.sl-admin .share-card {
  position: relative; width: 100%; max-width: 620px; max-height: 90vh; overflow-y: auto;
  background: #0b1c28; border: 1px solid rgba(56,189,248,0.15); border-radius: 18px; padding: 1.2rem 1.3rem;
}
.sl-admin .share-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.9rem; }
.sl-admin .share-head h2 { margin: 0; }
.sl-admin .share-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 0.55rem; margin-bottom: 1rem; }
.sl-admin .share-tile {
  display: flex; align-items: center; gap: 0.5rem; padding: 0.65rem 0.8rem;
  border-radius: 12px; border: 1px solid rgba(148,163,184,0.2); background: rgba(255,255,255,0.03);
  color: #e2e8f0; font-size: 0.8rem; font-weight: 600; cursor: pointer; text-align: left;
  transition: border-color 0.15s, background 0.15s;
}
.sl-admin .share-tile:hover { border-color: rgba(56,189,248,0.55); background: rgba(56,189,248,0.08); }
.sl-admin .share-tile.copied { border-color: #4ade80; background: rgba(74,222,128,0.12); }
.sl-admin .share-tile .suf { margin-left: auto; color: #64748b; font-size: 0.68rem; font-family: ui-monospace, monospace; }
.sl-admin .share-url-row { display: flex; gap: 0.5rem; align-items: center; margin-top: 0.5rem; }
.sl-admin .share-url-row input[readonly] { flex: 1; font-family: ui-monospace, monospace; font-size: 0.75rem; }
.sl-admin /* Stats: full-width block cards + cross-filter */
.s-block { margin-bottom: 1rem; }
.sl-admin .s-block h2 { text-transform: uppercase; font-size: 0.82rem; letter-spacing: 0.06em; }
.sl-admin .s-block tr[data-f] { cursor: pointer; }
.sl-admin .s-block tr[data-f]:hover td { background: rgba(56,189,248,0.05); }
.sl-admin .s-block tr.f-active td { background: rgba(56,189,248,0.14); }
.sl-admin .bar-cell { width: 34%; min-width: 120px; }
.sl-admin .bar-track { position: relative; height: 6px; background: rgba(148,163,184,0.12); border-radius: 3px; overflow: hidden; }
.sl-admin .bar-fill { position: absolute; inset: 0 auto 0 0; border-radius: 3px; background: linear-gradient(90deg, #38bdf8, #4ade80); }
.sl-admin .chips { display: flex; gap: 0.4rem; flex-wrap: wrap; margin: 0.6rem 0 0.2rem; }
.sl-admin .chip {
  display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.25rem 0.7rem;
  border-radius: 999px; background: rgba(56,189,248,0.16); border: 1px solid rgba(56,189,248,0.45);
  color: #e0f2fe; font-size: 0.75rem; cursor: pointer;
}
.sl-admin .chip::after { content: '✕'; font-size: 0.65rem; opacity: 0.7; }
.sl-admin #s-chart-wrap { position: relative; height: 220px; margin-top: 1rem; }
.sl-admin #s-chart { width: 100%; height: 100%; cursor: crosshair; touch-action: pan-y; }
.sl-admin .s-tip {
  position: absolute; z-index: 10; pointer-events: none; background: #0b1c28;
  border: 1px solid rgba(56,189,248,0.35); border-radius: 10px; padding: 0.45rem 0.7rem;
  font-size: 0.75rem; color: #e2e8f0; white-space: nowrap; box-shadow: 0 8px 24px rgba(0,0,0,0.5);
}
.sl-admin .s-legend { display: flex; gap: 1rem; font-size: 0.72rem; color: #94a3b8; margin-top: 0.3rem; }
.sl-admin .s-legend b { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 0.3rem; vertical-align: -1px; }
.sl-admin .s-hint { font-size: 0.68rem; color: #475569; margin-top: 0.2rem; }
/* Donuts — full-width single stack (not side-by-side) */
.sl-admin .donut-flex {
  display: flex;
  gap: 1.2rem;
  align-items: center;
  flex-wrap: wrap;
  width: 100%;
}
.sl-admin .donut-legend {
  flex: 1 1 220px;
  min-width: 0;
  width: 100%;
}
.sl-admin .donut-legend table {
  width: 100%;
  table-layout: fixed;
}
.sl-admin .donut-legend td.num,
.sl-admin .donut-legend th.num {
  width: 4.2rem;
}
.sl-admin .donut-svg { flex: 0 0 auto; }
.sl-admin .donut-svg path { cursor: pointer; transition: opacity 0.15s; }
.sl-admin .donut-svg path:hover { opacity: 0.8; }
.sl-admin .donut-center { font-size: 1.05rem; font-weight: 700; fill: #e2e8f0; }
.sl-admin .donut-center-sub { font-size: 0.6rem; fill: #64748b; text-transform: uppercase; }
.sl-admin .donut-legend table { font-size: 0.78rem; }
.sl-admin .donut-legend .dot { display: inline-block; width: 9px; height: 9px; border-radius: 3px; margin-right: 0.45rem; vertical-align: 0; }
.sl-admin .linkurl { font-family: ui-monospace, monospace; font-size: 0.75rem; color: #7dd3fc; }
.sl-admin /* Period presets — same pattern as the main app filter drawer */
.sl-periods { display: flex; gap: 0; border: 1px solid rgba(148,163,184,0.25); border-radius: 999px; overflow: hidden; }
.sl-admin .sl-periods .p-btn {
  flex: 1 1 0; min-width: 78px; text-align: center; padding: 0.5rem 0.9rem;
  background: transparent; border: none; color: #64748b; font-size: 0.82rem; font-weight: 600; cursor: pointer;
}
.sl-admin .sl-periods .p-btn.active { color: #fff; background: rgba(56,189,248,0.16); }
.sl-admin /* Range picker (two-click range + Clear/Apply), .sl-admin mirrors app range-picker-popover */
.range-wrap { position: relative; }
.sl-admin .range-btn {
  display: inline-flex; align-items: center; gap: 0.45rem; background: transparent;
  border: 2px solid transparent; border-radius: 999px; color: #e2e8f0;
  padding: 0.5rem 1rem; cursor: pointer; font: inherit; font-size: 0.85rem; font-weight: 500; white-space: nowrap;
}
.sl-admin .range-btn.active { border-color: rgba(56,189,248,0.4); }
.sl-admin .range-pop {
  position: absolute; top: calc(100% + 0.5rem); left: 0; z-index: 30; width: 300px;
  background: #0b1c28; border: 1px solid rgba(255,255,255,0.12); border-radius: 16px;
  padding: 0.85rem 0.9rem 0.75rem; box-shadow: 0 16px 40px rgba(0,0,0,0.45);
}
.sl-admin .range-pop.hidden { display: none; }
.sl-admin .rc-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.65rem; font-weight: 600; font-size: 0.92rem; color: #e2e8f0; }
.sl-admin .rc-nav { background: none; border: none; color: #e2e8f0; font-size: 1.35rem; line-height: 1; cursor: pointer; padding: 0.15rem 0.45rem; border-radius: 8px; }
.sl-admin .rc-nav:hover { background: rgba(255,255,255,0.06); }
.sl-admin .rc-weekdays { display: grid; grid-template-columns: repeat(7,1fr); gap: 0.15rem; margin-bottom: 0.35rem; font-size: 0.72rem; color: #64748b; text-align: center; }
.sl-admin .rc-grid { display: grid; grid-template-columns: repeat(7,1fr); gap: 0.15rem; }
.sl-admin .rc-day {
  aspect-ratio: 1; border: none; border-radius: 10px; background: transparent;
  color: #e2e8f0; font: inherit; font-size: 0.82rem; cursor: pointer; padding: 0;
}
.sl-admin .rc-day:hover:not(:disabled) { background: rgba(255,255,255,0.08); }
.sl-admin .rc-day:disabled { color: rgba(255,255,255,0.18); cursor: default; }
.sl-admin .rc-day.outside { visibility: hidden; }
.sl-admin .rc-day.in-range { background: rgba(250,204,21,0.28); border-radius: 0; }
.sl-admin .rc-day.range-start, .sl-admin .rc-day.range-end { background: rgba(250,204,21,0.55); color: #1a1a1a; font-weight: 600; }
.sl-admin .rc-day.range-start { border-radius: 10px 0 0 10px; }
.sl-admin .rc-day.range-end { border-radius: 0 10px 10px 0; }
.sl-admin .rc-day.range-start.range-end { border-radius: 10px; }
.sl-admin .rc-foot { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; margin-top: 0.6rem; }
.sl-admin .rc-hint { font-size: 0.72rem; color: #64748b; flex: 1; }
.sl-admin .rc-apply { padding: 0.4rem 1rem; border-radius: 999px; border: none; background: rgba(56,189,248,0.25); color: #64748b; font-weight: 700; cursor: pointer; }
.sl-admin .rc-apply.ready { background: #38bdf8; color: #04131f; }
.sl-admin .rc-clear { padding: 0.4rem 0.8rem; border-radius: 999px; border: 1px solid rgba(148,163,184,0.3); background: transparent; color: #94a3b8; cursor: pointer; }

/* ---- Designer checkboxes ---- */
.sl-admin .check-line {
  flex-wrap: wrap;
  align-items: flex-start;
}
.sl-admin .check-line input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 15px;
  height: 15px;
  margin: 0.15rem 0 0;
  flex: 0 0 auto;
  border: 1.5px solid #475569;
  border-radius: 4px;
  background: transparent;
  cursor: pointer;
  position: relative;
  transition: background 0.12s, border-color 0.12s;
}
.sl-admin .check-line input[type="checkbox"]:hover { border-color: rgba(56,189,248,0.7); }
.sl-admin .check-line input[type="checkbox"]:checked {
  background: #38bdf8;
  border-color: #38bdf8;
}
.sl-admin .check-line input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  left: 4px;
  top: 1px;
  width: 4px;
  height: 8px;
  border: solid #06202f;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.sl-admin .check-line label { flex: 1 1 200px; line-height: 1.35; }

.sl-ab-block { margin-top: 1rem; }
.sl-ab-lead { margin: 0.15rem 0 0.7rem; line-height: 1.35; }
.sl-ab-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  margin: 0 auto 0.85rem;
  max-width: 300px;
}
.sl-ab-device-label {
  margin: 0;
  font-size: 0.68rem;
  letter-spacing: 0.02em;
  text-align: center;
  color: #64748b;
}
.sl-ab-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
}
.sl-ab-dot {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: #0b1520;
  color: #94a3b8;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, color 0.15s, transform 0.12s;
}
.sl-ab-dot:hover { border-color: rgba(56, 189, 248, 0.55); color: #e2e8f0; }
.sl-ab-dot.is-on {
  background: rgba(56, 189, 248, 0.18);
  border-color: rgba(56, 189, 248, 0.75);
  color: #e0f2fe;
  transform: scale(1.06);
}
.sl-ab-preview-caption {
  margin: 0;
  font-size: 0.75rem;
  text-align: center;
}
.sl-ab-pick {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  justify-content: center;
  margin-bottom: 0.35rem;
}
.sl-ab-chip {
  appearance: none;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.3);
  background: #0b1520;
  color: #94a3b8;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, color 0.15s, opacity 0.15s;
}
.sl-ab-chip:hover { border-color: rgba(56, 189, 248, 0.5); color: #e2e8f0; }
.sl-ab-chip.active {
  border-color: rgba(56, 189, 248, 0.7);
  background: rgba(56, 189, 248, 0.14);
  color: #e0f2fe;
}
.sl-ab-chip.is-off:not(.active) { opacity: 0.45; }

/*
 * iPhone SE (2nd/3rd gen) CSS viewport: 375×667 @2x (750×1334).
 * Admin mock scaled ~0.72 → readable in the editor; layout = live landing.
 */
.sl-ab-phone {
  --se-w: 375;
  --se-h: 667;
  --se-scale: 0.72;
  position: relative;
  display: block;
  width: calc(var(--se-w) * 1px * var(--se-scale));
  height: calc(var(--se-h) * 1px * var(--se-scale));
  max-width: 100%;
  border-radius: 36px;
  border: 2.5px solid #334155;
  background: #020617;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}
/* SE earpiece / sensor bar (no Dynamic Island) */
.sl-ab-phone-notch {
  position: absolute;
  top: 0.55rem;
  left: 50%;
  transform: translateX(-50%);
  width: 22%;
  height: 0.38rem;
  border-radius: 999px;
  background: #0f172a;
  z-index: 3;
  pointer-events: none;
}
/* Classic SE home button */
.sl-ab-phone-home {
  position: absolute;
  bottom: 0.35rem;
  left: 50%;
  transform: translateX(-50%);
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 50%;
  border: 1.5px solid rgba(148, 163, 184, 0.35);
  background: transparent;
  z-index: 3;
  pointer-events: none;
}
.sl-ab-phone-screen {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: inherit;
}
.sl-ab-phone-bg {
  position: absolute;
  inset: -14%;
  background: #0b1520 center/cover no-repeat;
  z-index: 0;
  pointer-events: none;
}
.sl-ab-phone[data-theme="blur"] .sl-ab-phone-bg {
  background-color: #1a100c;
  filter: blur(16px) brightness(0.52);
  transform: scale(1.18);
}
.sl-ab-phone[data-theme="dark"] .sl-ab-phone-bg {
  background-color: #0b1520;
  background-image: none !important;
  filter: none;
}
.sl-ab-phone[data-theme="light"] .sl-ab-phone-bg {
  background-color: #f2f3f5;
  background-image: none !important;
  filter: none;
}
.sl-ab-phone-scroll {
  position: relative;
  z-index: 1;
  height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  scrollbar-width: none;
  touch-action: pan-y;
}
.sl-ab-phone-scroll::-webkit-scrollbar { display: none; }
.sl-ab-phone-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-height: 100%;
  /* SE: room for status bar + home button chrome */
  padding: 11% 9% 12%;
  box-sizing: border-box;
  text-align: center;
}
.sl-ab-phone[data-theme="light"] .sl-ab-phone-body { color: #111827; }
.sl-ab-phone[data-theme="dark"] .sl-ab-phone-body,
.sl-ab-phone[data-theme="blur"] .sl-ab-phone-body { color: #fff; }
.sl-ab-phone-cover {
  width: 58%;
  aspect-ratio: 1;
  border-radius: 8px;
  background: #1e293b center/cover no-repeat;
  box-shadow: 0 7px 18px rgba(0, 0, 0, 0.42);
  flex-shrink: 0;
}
.sl-ab-phone-cover:not(.has-cover) {
  background-image: linear-gradient(145deg, #334155, #0f172a);
}
.sl-ab-phone-title {
  margin-top: 0.85rem; /* ~1.35rem live */
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sl-ab-phone-artist {
  margin-top: 0.22rem;
  margin-bottom: 1.05rem; /* ~1.65rem live — Play sits lower */
  font-size: 0.62rem;
  font-weight: 500;
  opacity: 0.8;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sl-ab-phone[data-theme="blur"] .sl-ab-phone-artist { color: #d3dbe6; opacity: 1; }
.sl-ab-phone[data-theme="dark"] .sl-ab-phone-artist { color: #9fb0c3; opacity: 1; }
.sl-ab-phone[data-theme="light"] .sl-ab-phone-artist { color: #6b7280; opacity: 1; }
.sl-ab-phone-cta {
  margin-top: 0;
  width: 100%;
  min-height: 1.85rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.3rem;
  padding: 0.42rem 0.55rem 0.42rem 0.65rem;
  border-radius: 999px;
  background: #fff;
  color: #000;
  font-size: 0.58rem;
  font-weight: 400;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.28);
  flex-shrink: 0;
  box-sizing: border-box;
}
.sl-ab-phone-cta + .sl-ab-phone-cta { margin-top: 0.4rem; }
.sl-ab-phone-cta-right {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  color: #b8b6b5;
}
.sl-ab-phone-spot,
.sl-ab-phone-apple {
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 50%;
  flex-shrink: 0;
}
.sl-ab-phone-spot { background: #1DB954; }
.sl-ab-phone-apple {
  border-radius: 0.18rem;
  background: #fa243c;
}
/* Live follow-label margin-top: 2.4rem */
.sl-ab-phone-follow {
  margin-top: 1.5rem;
  width: 100%;
  flex-shrink: 0;
}
.sl-ab-phone-follow.hidden {
  display: none;
}
.sl-ab-phone-follow-label {
  display: block;
  font-size: 0.55rem;
  opacity: 0.78;
  margin-bottom: 0.55rem;
}
.sl-ab-phone-follow-icons {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
}
.sl-ab-phone-ic {
  display: inline-flex;
  width: 1rem;
  height: 1rem;
  opacity: 0.88;
}
.sl-ab-phone-ic svg { width: 100%; height: 100%; display: block; }
/* Spacer: with Follow on, Privacy drops to “second screen” */
.sl-ab-phone-fold {
  display: none;
  width: 100%;
  flex: 0 0 auto;
}
.sl-ab-phone-body.has-follow .sl-ab-phone-fold {
  display: block;
  min-height: 28%;
}
.sl-ab-phone-foot {
  display: block;
  margin-top: 1.5rem;
  margin-bottom: 0.2rem;
  width: 100%;
  font-size: 0.4rem;
  line-height: 1.7;
  opacity: 0.65;
  flex-shrink: 0;
}
.sl-ab-phone-body.has-follow .sl-ab-phone-foot {
  margin-top: 0.85rem;
}
.sl-ab-phone[data-theme="light"] .sl-ab-phone-foot { color: #6b7280; opacity: 0.85; }
.sl-ab-phone-foot-link {
  text-decoration: underline;
}
@media (max-width: 700px) {
  .sl-ab-phone { --se-scale: 0.68; }
}
.sl-ab-reset-row {
  justify-content: flex-start;
  margin-top: 0.35rem;
}
/* Desktop: compact Save + Cancel. Mobile: full-width, Cancel left / Save right */
.sl-actions-edit {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.45rem;
  align-items: center;
  justify-content: flex-start;
}
.sl-actions-edit .primary,
.sl-actions-edit .ghost {
  flex: 0 0 auto;
  width: auto;
  min-width: 6.5rem;
}
.sl-ab-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.6rem;
  margin: 0.55rem 0 0.2rem;
  font-size: 0.8rem;
}
.sl-ab-limit {
  width: 72px !important;
  flex: 0 0 72px;
  padding: 0.4rem 0.55rem !important;
}
/* Button reset — Android WebView paints <button> white otherwise */
.sl-metric-ab {
  appearance: none;
  -webkit-appearance: none;
  font: inherit;
  cursor: pointer;
  text-align: center;
  color: inherit;
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  box-shadow: none;
  transition: border-color 0.15s, background 0.15s;
}
.sl-metric-ab:hover {
  border-color: rgba(56, 189, 248, 0.45);
  background: rgba(56, 189, 248, 0.08);
}
.sl-metric-ab:focus-visible {
  outline: 1px solid rgba(56, 189, 248, 0.55);
  outline-offset: 2px;
}
.sl-ab-menu {
  position: absolute;
  z-index: 120;
  width: 200px;
  padding: 0.65rem 0.7rem 0.7rem;
  border-radius: 12px;
  border: 1px solid rgba(56, 189, 248, 0.28);
  background: #0d1824;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.55);
}
.sl-ab-menu-title {
  font-size: 0.72rem;
  color: #94a3b8;
  margin-bottom: 0.45rem;
}
.sl-ab-menu-keys {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.35rem;
}
.sl-ab-menu-key {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.1rem;
  padding: 0.45rem 0.2rem;
  border-radius: 9px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: #0b1520;
  color: #e2e8f0;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
}
.sl-ab-menu-key span {
  font-size: 0.65rem;
  font-weight: 500;
  color: #94a3b8;
  text-transform: lowercase;
}
.sl-ab-menu-key:hover,
.sl-ab-menu-key.is-winner {
  border-color: rgba(56, 189, 248, 0.65);
  background: rgba(56, 189, 248, 0.12);
}
.sl-ab-menu-reset {
  width: 100%;
  margin-top: 0.5rem;
  padding: 0.4rem;
  border-radius: 8px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: transparent;
  color: #94a3b8;
  font-size: 0.72rem;
  cursor: pointer;
}
.sl-ab-menu-reset:hover { color: #e2e8f0; border-color: rgba(148, 163, 184, 0.5); }

/* Artist select in create/settings — full width, not a tiny shrinking pill */
.sl-admin .row3 .app-select-wrap,
.sl-admin #c-artist + .app-select-btn,
.sl-admin .app-select-wrap--block {
  width: 100%;
  max-width: 100%;
}
.sl-admin .row3 .app-select-wrap {
  display: block;
}
.sl-admin .row3 .app-select-btn,
.sl-admin .app-select-wrap--block .app-select-btn {
  width: 100%;
  min-width: 0;
  min-height: 2.55rem;
  padding: 0.55rem 2.1rem 0.55rem 0.95rem;
  border-width: 1px;
  border-color: rgba(148, 163, 184, 0.25);
  border-radius: 10px;
  background: #0b1520;
  font-size: 0.9rem;
}
.sl-admin .row3 .app-select-btn:hover,
.sl-admin .row3 .app-select-wrap.is-open .app-select-btn {
  border-color: rgba(56, 189, 248, 0.6);
}
.sl-admin .table-wrap {
  width: 100%;
  overflow-x: auto;
}

.sl-deeplink-wrap { margin-top: 0.2rem; }
.sl-deeplink-hint { margin-top: 0.35rem; line-height: 1.4; max-width: 42rem; }

/* Cover like Pre-Release */
.sl-cover-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-top: 0.85rem;
}
.sl-cover-box {
  position: relative;
  width: 96px;
  height: 96px;
  flex: 0 0 auto;
  border-radius: 12px;
  border: 1px dashed rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.02);
  cursor: pointer;
  overflow: hidden;
  display: grid;
  place-items: center;
}
.sl-cover-box:hover { border-color: rgba(56, 189, 248, 0.5); }
.sl-cover-box img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.sl-cover-ph { color: #64748b; font-size: 1.6rem; }
.sl-cover-pencil {
  position: absolute; right: 4px; bottom: 4px;
  width: 24px; height: 24px; border-radius: 50%;
  background: rgba(8, 20, 32, 0.85);
  border: 1px solid rgba(56, 189, 248, 0.4);
  color: #bae6fd; display: grid; place-items: center; font-size: 0.75rem;
}
.sl-cover-meta label { margin-top: 0; }

/* Icon row actions */
.sl-row-actions {
  white-space: nowrap;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
  justify-content: flex-end;
}
.sl-ico-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--icon-btn-size, 40px);
  height: var(--icon-btn-size, 40px);
  border-radius: var(--icon-btn-radius, 10px);
  border: none;
  background: var(--icon-btn-bg, rgba(255, 255, 255, 0.06));
  color: var(--icon-btn-fg, #e2e8f0);
  cursor: pointer;
  padding: 0;
  transition: background 0.15s, color 0.15s;
}
.sl-ico-btn:hover {
  color: #fff;
  background: var(--icon-btn-bg-hover, rgba(255, 255, 255, 0.1));
}
.sl-ico-btn.danger {
  color: #fca5a5;
  background: rgba(239, 68, 68, 0.12);
}
.sl-ico-btn.danger:hover {
  color: #fecaca;
  background: rgba(239, 68, 68, 0.2);
}
.sl-ico-btn svg { display: block; width: 18px; height: 18px; }

/* Type picker: mobile collapses to one full-width button (no chip/× tag) */
.sl-admin .type-row.sl-type-picked {
  flex-wrap: nowrap;
}
.sl-admin .type-row.sl-type-picked .type-btn.active {
  flex: 1 1 100%;
  width: 100%;
}

/* Links list — mobile-first stack; desktop row with centered KPIs */
.sl-links-panel {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.sl-links-main { flex: 1; min-width: 0; }
.sl-links {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.sl-links-empty { margin: 0.4rem 0; }

/* .sl-status-filter-btn chrome comes from shared app.css icon tokens */
.sl-status-filter-btn svg {
  transition: transform 0.2s ease;
}
.sl-status-filter-btn.is-open svg {
  transform: rotate(180deg);
}
.sl-status-filter {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.4rem;
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 30;
  min-width: 8.5rem;
  padding: 0.55rem;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(8, 14, 24, 0.96);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
}
.sl-status-filter[hidden] {
  display: none !important;
}
.sl-status-filter-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #64748b;
  margin: 0 0 0.1rem;
}
.sl-status-chip {
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: rgba(15, 23, 42, 0.5);
  color: #94a3b8;
  border-radius: 999px;
  padding: 0.28rem 0.7rem;
  font-size: 0.78rem;
  cursor: pointer;
  text-align: center;
}
.sl-status-chip.active {
  border-color: rgba(56, 189, 248, 0.45);
  background: rgba(56, 189, 248, 0.12);
  color: #e2e8f0;
}

.sl-link-card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.85rem 0.9rem 0.75rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(160deg, rgba(11, 28, 40, 0.92), rgba(4, 10, 18, 0.96));
}
.sl-link-card.is-paused { opacity: 0.68; }
.sl-link-card.is-paused .sl-link-dot {
  background: #64748b;
  box-shadow: none;
}
.sl-link-card.is-archived {
  opacity: 0.78;
  border-style: dashed;
}
.sl-link-card.is-archived .sl-link-dot {
  background: #a78bfa;
  box-shadow: none;
}
.sl-link-archive-note {
  margin: 0.2rem 0 0;
  font-size: 0.72rem;
  color: #a78bfa;
  line-height: 1.35;
}

@media (min-width: 900px) {
  .sl-links-panel {
    flex-direction: column;
    align-items: stretch;
  }
}

.sl-link-identity { min-width: 0; }
.sl-link-head {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  min-width: 0;
}
.sl-link-dot {
  width: 8px;
  height: 8px;
  margin-top: 0.5rem;
  border-radius: 50%;
  flex: 0 0 auto;
  background: #4ade80;
  box-shadow: 0 0 8px rgba(74, 222, 128, 0.6);
}
.sl-link-cover {
  width: 44px;
  height: 44px;
  border-radius: 9px;
  object-fit: cover;
  flex: 0 0 auto;
  background: #0b1520;
}
.sl-link-text {
  min-width: 0;
  flex: 1 1 auto;
}
.sl-link-title-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
}
.sl-link-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 650;
  color: #f8fafc;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
  flex: 1 1 auto;
}
.sl-meta-act-badge {
  flex: 0 0 auto;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #7dd3fc;
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 999px;
  padding: 0.1rem 0.45rem;
  line-height: 1.3;
  white-space: nowrap;
}
.sl-title-ab {
  display: none;
}
.sl-link-path {
  display: block;
  margin-top: 0.12rem;
  font-size: 0.78rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sl-link-meta {
  margin: 0.2rem 0 0;
  font-size: 0.72rem;
  line-height: 1.3;
  color: #64748b;
}
.sl-link-meta-mobile {
  display: none;
}
.sl-metric-ico {
  display: none;
}
.sl-metric-ab-compact {
  display: none;
}
.sl-link-meta .sl-stage.is-now,
.sl-link-meta .sl-via.is-auto {
  color: #4ade80;
  font-weight: 650;
}
.sl-link-meta .sl-stage-arrow {
  color: #64748b;
  font-weight: 500;
}

/* Mobile default: plain inline metrics (same look as before) */
.sl-link-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin: 0;
  padding-left: calc(8px + 0.6rem);
  font-size: 0.74rem;
  color: #94a3b8;
  font-variant-numeric: tabular-nums;
}
.sl-metric {
  display: inline-flex;
  align-items: baseline;
  gap: 0.25rem;
}
.sl-metric b {
  color: #e2e8f0;
  font-weight: 650;
  font-size: inherit;
  line-height: 1.2;
}
.sl-metric span {
  color: #64748b;
  font-size: inherit;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
}

.sl-link-card > .sl-row-actions {
  width: 100%;
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: 0.3rem;
  margin-top: 0.35rem;
  padding-top: 0.55rem;
  border-top: 1px solid rgba(148, 163, 184, 0.1);
}

/* Desktop: identity | centered KPI tiles | actions */
@media (min-width: 701px) {
  .sl-link-card {
    display: grid;
    grid-template-columns: minmax(220px, 1.35fr) minmax(240px, 1fr) auto;
    align-items: center;
    gap: 1.1rem 1.4rem;
    padding: 0.95rem 1.05rem;
    border-radius: 14px;
  }
  .sl-link-head {
    align-items: center;
  }
  .sl-link-dot {
    margin-top: 0;
  }
  .sl-link-cover {
    width: 52px;
    height: 52px;
    border-radius: 11px;
  }
  .sl-link-title {
    font-size: 1.05rem;
  }
  .sl-link-path {
    font-size: 0.8rem;
  }
  .sl-link-meta {
    font-size: 0.72rem;
  }
  .sl-link-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.55rem;
    justify-content: center;
    align-items: stretch;
    padding: 0;
    width: 100%;
    max-width: 360px;
    margin: 0 auto;
  }
  .sl-metric {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.2rem;
    min-height: 58px;
    padding: 0.5rem 0.55rem;
    border-radius: 12px;
    border: 1px solid rgba(56, 189, 248, 0.16);
    background:
      linear-gradient(180deg, rgba(56, 189, 248, 0.1), rgba(255, 255, 255, 0.02));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  }
  button.sl-metric-ab.sl-metric {
    background:
      linear-gradient(180deg, rgba(56, 189, 248, 0.1), rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(56, 189, 248, 0.16);
    color: inherit;
  }
  .sl-metric b {
    display: block;
    font-size: 1.12rem;
    font-weight: 700;
    color: #f8fafc;
    font-variant-numeric: tabular-nums;
    line-height: 1.1;
    text-align: center;
  }
  .sl-metric span {
    display: block;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: #64748b;
    text-align: center;
  }
  .sl-link-card > .sl-row-actions {
    width: auto;
    margin-top: 0;
    padding-top: 0;
    border-top: none;
    justify-content: flex-end;
  }
}

/* Mobile tabs: icons in one row + filter at the end */
@media (max-width: 700px) {
  .sl-admin .sl-tabs {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
    gap: 0.35rem;
    flex-wrap: nowrap;
    align-items: center;
  }
  .sl-admin .sl-tabs .tab-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.2rem;
    padding: 0.55rem 0.25rem;
    border-radius: 12px;
    min-width: 0;
  }
  .sl-admin .sl-tabs .sl-tab-txt { display: none; }
  .sl-admin .sl-tabs .sl-tab-ico {
    display: grid;
    place-items: center;
    font-size: 1.15rem;
    line-height: 1;
  }
  .sl-tabs-filter-wrap {
    margin-left: 0;
    grid-column: 5;
  }
  .sl-admin .sl-ab-row { margin-left: 0; }
}
@media (min-width: 701px) {
  .sl-admin .sl-tabs .sl-tab-ico { display: none; }
  .sl-admin .sl-tabs .tab-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
  }
}

/* Custom selects / dates (kill native look) */
.sl-admin select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M6 9l6 6 6-6' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  padding-right: 2rem;
}
.sl-admin input[type="date"],
.sl-admin input[type="time"] {
  color-scheme: dark;
  appearance: none;
  -webkit-appearance: none;
  min-height: 2.55rem;
  line-height: 1.2;
  padding-right: 2.4rem;
  background-color: #0b1520;
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 16px 16px;
  color: #e2e8f0;
}
.sl-admin input[type="date"] {
  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'%3E%3Crect x='3' y='5' width='18' height='16' rx='3' stroke='%2394a3b8' stroke-width='1.8'/%3E%3Cpath d='M8 3v4M16 3v4M3 10h18' stroke='%2394a3b8' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E");
}
.sl-admin input[type="time"] {
  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'%3E%3Ccircle cx='12' cy='12' r='9' stroke='%2394a3b8' stroke-width='1.8'/%3E%3Cpath d='M12 7v5l3 2' stroke='%2394a3b8' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.sl-admin input[type="date"]::-webkit-calendar-picker-indicator,
.sl-admin input[type="time"]::-webkit-calendar-picker-indicator {
  opacity: 0;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}
.sl-admin input[type="date"],
.sl-admin input[type="time"] {
  position: relative;
}
.sl-admin input[type="date"]::-webkit-datetime-edit,
.sl-admin input[type="time"]::-webkit-datetime-edit {
  color: #e2e8f0;
}
.sl-admin input[type="date"]::-webkit-datetime-edit-fields-wrapper,
.sl-admin input[type="time"]::-webkit-datetime-edit-fields-wrapper {
  padding: 0;
}
.sl-admin input[type="date"]::-webkit-date-and-time-value {
  text-align: left;
}

@media (max-width: 700px) {
  .sl-admin .row, .sl-admin .row3 { grid-template-columns: 1fr; }
  .sl-admin .sl-actions { width: 100%; gap: 0.4rem; }
  /* Alone primary (Создать / Сохранить соцсети) — full width on phone */
  .sl-admin .sl-actions:not(.sl-actions-edit):has(> :only-child) > .primary {
    width: 100%;
  }
  .sl-actions-edit {
    width: 100%;
  }
  .sl-actions-edit .primary,
  .sl-actions-edit .ghost {
    flex: 1 1 0;
    min-width: 0;
    width: auto;
  }
  /* Cancel left, Save right */
  .sl-actions-edit .ghost { order: 1; }
  .sl-actions-edit .primary { order: 2; }
  .sl-links { gap: 0.55rem; }
  .sl-link-card {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    padding: 0.85rem 0.8rem 0.75rem;
    border-radius: 14px;
  }
  .sl-link-cover { display: none; }
  .sl-link-dot {
    margin-top: 0.45rem;
  }
  .sl-link-title {
    font-size: 1.08rem;
    line-height: 1.35;
  }
  /* A/B pill on the title row (right) */
  .sl-title-ab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    min-width: 2.4rem;
    padding: 0.28rem 0.7rem;
    border-radius: 999px;
    border: 1px solid rgba(56, 189, 248, 0.4);
    background: rgba(56, 189, 248, 0.14);
    color: #e0f2fe;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    cursor: pointer;
  }
  .sl-link-path {
    margin-top: 0.28rem;
    font-size: 0.8rem;
    line-height: 1.45;
  }
  .sl-link-meta-desktop {
    display: none;
  }
  .sl-link-meta-mobile {
    display: block;
    margin-top: 0.28rem;
    font-size: 0.78rem;
    line-height: 1.45;
    color: #94a3b8;
  }
  .sl-link-metrics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 0.55rem;
    padding-left: calc(8px + 0.6rem);
    margin-top: 0.15rem;
  }
  .sl-metric {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    min-width: 0;
  }
  .sl-metric-ico {
    display: block;
    flex: 0 0 auto;
    color: #38bdf8;
    opacity: 0.9;
  }
  .sl-metric b {
    font-size: 1.12rem;
    font-weight: 700;
    color: #f8fafc;
  }
  .sl-metric span {
    font-size: 0.7rem;
    color: #64748b;
    text-transform: lowercase;
  }
  /* A/B lives on the title row — hide the metrics duplicate on phone */
  .sl-link-metrics .sl-metric-ab {
    display: none;
  }
  .sl-link-card > .sl-row-actions {
    width: 100%;
    justify-content: space-between;
    margin-top: 0.15rem;
    padding-top: 0.6rem;
    border-top: 1px solid rgba(148, 163, 184, 0.1);
  }
  .sl-link-card > .sl-row-actions .sl-ico-btn {
    width: 40px;
    height: 40px;
  }
  .sl-admin .filters {
    flex-direction: column;
    align-items: stretch;
  }
  .sl-admin .filters > div {
    min-width: 0;
    width: 100%;
  }
  .sl-admin .sl-periods {
    width: 100%;
  }
  .sl-admin .sl-periods .p-btn {
    min-width: 0;
    padding: 0.5rem 0.4rem;
    font-size: 0.72rem;
  }
  .sl-admin .range-btn {
    width: 100%;
    justify-content: center;
    border: 1px solid rgba(148,163,184,0.25);
  }
  .sl-admin .range-pop {
    left: 0;
    right: 0;
    width: auto;
  }
  .sl-admin .table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  /* Bars off on phone — keep names + numbers visible */
  .sl-admin .sl-break-table {
    table-layout: auto;
    width: 100%;
  }
  .sl-admin .bar-cell {
    display: none !important;
    width: 0 !important;
    padding: 0 !important;
    border: none !important;
  }
  .sl-admin .sl-break-table .sl-break-key {
    width: auto;
    min-width: 42%;
    max-width: none;
  }
  .sl-admin .sl-break-table th.num,
  .sl-admin .sl-break-table td.num {
    width: 3.8rem;
  }
  .sl-admin .s-block table {
    font-size: 0.74rem;
  }
  .sl-admin .s-block th,
  .sl-admin .s-block td {
    padding: 0.4rem 0.35rem;
  }
  .sl-admin .donut-flex {
    flex-direction: column;
    align-items: stretch;
  }
  .sl-admin .donut-svg {
    align-self: center;
  }
  .sl-admin .kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .sl-admin .sl-ab-row {
    margin-left: 0;
    align-items: flex-start;
  }
  .sl-admin .sl-ab-row .muted {
    flex: 1 1 auto;
  }
  .sl-admin .check-line label {
    flex: 1 1 0;
    min-width: 0;
  }
  .sl-admin .share-url-row {
    flex-direction: column;
    align-items: stretch;
  }
  .sl-admin .share-url-row .primary {
    width: 100%;
  }
}
