/* ============================================================
   DeployInstant.com design system — light, airy, app-store feel
   ============================================================ */
:root {
  --bg: #f6f7fb;
  --surface: #ffffff;
  --surface-2: #f1f3f9;
  --ink: #171a2b;
  --ink-2: #3d4258;
  --muted: #6b7188;
  --faint: #9aa0b4;
  --line: #e6e8f0;
  --line-2: #d7dae6;

  --primary: #4f46e5;
  --primary-600: #4338ca;
  --primary-soft: #eef0ff;
  --violet: #7c3aed;
  --sky: #0ea5e9;
  --cyan: #06b6d4;
  --teal: #14b8a6;
  --green: #16a34a;
  --emerald: #059669;
  --amber: #d97706;
  --orange: #ea580c;
  --red: #dc2626;
  --rose: #e11d48;
  --blue: #2563eb;
  --purple: #9333ea;
  --indigo: #4f46e5;

  --r-sm: 10px;
  --r: 14px;
  --r-lg: 20px;
  --r-xl: 28px;

  --sh-sm: 0 1px 2px rgba(23, 26, 43, .05);
  --sh: 0 4px 18px rgba(23, 26, 43, .07);
  --sh-lg: 0 18px 50px rgba(23, 26, 43, .12);
  --ring: 0 0 0 4px rgba(79, 70, 229, .18);

  --font: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: ui-monospace, 'SF Mono', 'Cascadia Code', Menlo, Consolas, monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--primary-soft); }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: 880px; margin: 0 auto; padding: 0 24px; }

/* ---------- typography ---------- */
h1, h2, h3, h4 { line-height: 1.18; letter-spacing: -.02em; font-weight: 700; }
h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
h3 { font-size: 1.22rem; }
h4 { font-size: 1.02rem; }
.lead { font-size: 1.16rem; color: var(--muted); line-height: 1.7; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .78rem; font-weight: 700; letter-spacing: .10em;
  text-transform: uppercase; color: var(--primary);
}
.eyebrow::before { content: ''; width: 18px; height: 2px; border-radius: 2px; background: var(--primary); }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.tiny { font-size: .76rem; }
.mono { font-family: var(--mono); }
.grad-text {
  background: linear-gradient(100deg, var(--primary) 0%, var(--violet) 45%, var(--sky) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; border-radius: 999px; font-weight: 600; font-size: .93rem;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s;
  white-space: nowrap;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 6px 18px rgba(79, 70, 229, .32); }
.btn-primary:hover { background: var(--primary-600); box-shadow: 0 10px 26px rgba(79, 70, 229, .4); transform: translateY(-1px); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #262b45; transform: translateY(-1px); }
.btn-ghost { background: var(--surface); color: var(--ink); border: 1px solid var(--line-2); }
.btn-ghost:hover { border-color: var(--ink-2); transform: translateY(-1px); }
.btn-soft { background: var(--primary-soft); color: var(--primary-600); }
.btn-soft:hover { background: #e2e5ff; }
.btn-danger-soft { background: #fdecec; color: var(--red); }
.btn-danger-soft:hover { background: #fbdcdc; }
.btn-sm { padding: 7px 14px; font-size: .83rem; }
.btn-lg { padding: 14px 28px; font-size: 1.02rem; }
.btn-block { width: 100%; }
.btn-icon {
  width: 38px; height: 38px; padding: 0; border-radius: 12px;
  background: var(--surface); border: 1px solid var(--line);
  display: inline-flex; align-items: center; justify-content: center;
}
.btn-icon:hover { border-color: var(--line-2); background: var(--surface-2); }
.btn svg, .btn-icon svg { width: 17px; height: 17px; }
/* round pause/resume dot toggle (PAYG rows on /my-apps) */
.btn-dot { border-radius: 999px; padding: 7px; display: inline-flex; align-items: center; justify-content: center; }
.btn-dot svg { width: 15px; height: 15px; }

/* ---------- badges / pills ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 10px; border-radius: 999px; font-size: .74rem; font-weight: 600;
  background: var(--surface-2); color: var(--ink-2);
}
.badge-ok { background: #e7f7ee; color: var(--green); }
.badge-warn { background: #fdf1e0; color: var(--amber); }
.badge-danger { background: #fdecec; color: var(--red); }
.badge-primary { background: var(--primary-soft); color: var(--primary-600); }
.badge-info { background: #e5f4fd; color: var(--blue); }
@keyframes badgeWait { 0%, 100% { opacity: 1; } 50% { opacity: .4; } }
.badge-wait { animation: badgeWait 1.15s ease-in-out infinite; }
@keyframes badgePop { 0% { transform: scale(.86); opacity: 0; } 60% { transform: scale(1.06); } 100% { transform: scale(1); opacity: 1; } }
.badge-recorded { animation: badgePop .32s cubic-bezier(.2, 1.4, .4, 1); }
@media (prefers-reduced-motion: reduce) { .badge-wait, .badge-recorded { animation: none; } }
.badge-dot::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge-verified { background: var(--primary-soft); color: var(--primary-600); }

.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 15px; border-radius: 999px; font-size: .84rem; font-weight: 500;
  background: var(--surface); border: 1px solid var(--line-2); color: var(--ink-2);
  cursor: pointer; transition: all .15s;
}
.chip:hover { border-color: var(--primary); color: var(--primary-600); }
.chip.on { background: var(--ink); border-color: var(--ink); color: #fff; }

/* ---------- cards ---------- */
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r); box-shadow: var(--sh-sm);
}
.card-pad { padding: 24px; }
.card-hover { transition: transform .18s ease, box-shadow .18s ease, border-color .18s; }
.card-hover:hover { transform: translateY(-3px); box-shadow: var(--sh); border-color: var(--line-2); }

/* app tiles (letter logos) */
.tile {
  width: 52px; height: 52px; border-radius: 15px; flex: 0 0 auto;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.35rem; color: #fff; letter-spacing: -.02em;
  box-shadow: inset 0 -8px 16px rgba(0, 0, 0, .12), 0 4px 10px rgba(23, 26, 43, .14);
}
.tile-sm { width: 38px; height: 38px; border-radius: 11px; font-size: 1rem; }
.region-tile { font-size: .82rem; font-weight: 800; letter-spacing: .04em; }
.tile-lg { width: 72px; height: 72px; border-radius: 20px; font-size: 1.9rem; }
.t-violet { background: linear-gradient(135deg, #8b5cf6, #6d28d9); }
.t-indigo { background: linear-gradient(135deg, #6366f1, #4338ca); }
.t-blue { background: linear-gradient(135deg, #3b82f6, #1d4ed8); }
.t-cyan { background: linear-gradient(135deg, #22d3ee, #0891b2); }
.t-teal { background: linear-gradient(135deg, #2dd4bf, #0d9488); }
.t-green { background: linear-gradient(135deg, #4ade80, #16a34a); }
.t-emerald { background: linear-gradient(135deg, #34d399, #047857); }
.t-amber { background: linear-gradient(135deg, #fbbf24, #d97706); }
.t-orange { background: linear-gradient(135deg, #fb923c, #ea580c); }
.t-red { background: linear-gradient(135deg, #f87171, #dc2626); }
.t-rose { background: linear-gradient(135deg, #fb7185, #e11d48); }
.t-purple { background: linear-gradient(135deg, #a855f7, #7e22ce); }
.t-ink { background: linear-gradient(135deg, #4b5169, #171a2b); }
.t-lime { background: linear-gradient(135deg, #a3e635, #65a30d); }

/* cards whose logo comes from CN.coverTile: the image is the whole tile */
.cover-tile { padding: 0; overflow: hidden; }
.cover-tile img { width: 100%; height: 100%; object-fit: cover; }

/* app card (store) */
.app-card {
  display: flex; flex-direction: column; gap: 14px;
  padding: 22px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r-lg);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s;
}
.app-card:hover { transform: translateY(-4px); box-shadow: var(--sh-lg); border-color: transparent; }
.app-card .spec {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: .73rem; font-weight: 600; color: var(--muted);
  background: var(--surface-2); border-radius: 999px; padding: 3px 9px;
}
.app-card .install { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; }

/* ---------- forms ---------- */
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 18px; }
.field label { font-size: .84rem; font-weight: 600; color: var(--ink-2); }
.input, .select, .textarea {
  width: 100%; padding: 11px 15px; border-radius: var(--r-sm);
  border: 1px solid var(--line-2); background: var(--surface);
  transition: border-color .15s, box-shadow .15s; outline: none; font-size: .93rem;
}
.input:focus, .select:focus, .textarea:focus { border-color: var(--primary); box-shadow: var(--ring); }
.textarea { resize: vertical; min-height: 110px; }
.input-group { display: flex; }
.input-group .input { border-radius: var(--r-sm) 0 0 var(--r-sm); border-right: 0; }
.input-group .btn { border-radius: 0 var(--r-sm) var(--r-sm) 0; }
.checkbox { display: flex; align-items: center; gap: 9px; font-size: .88rem; color: var(--ink-2); cursor: pointer; }
.checkbox input { width: 17px; height: 17px; accent-color: var(--primary); }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
table { width: 100%; border-collapse: collapse; font-size: .89rem; }
thead th {
  text-align: left; padding: 12px 18px; font-size: .72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .07em; color: var(--faint);
  border-bottom: 1px solid var(--line); background: var(--surface);
  white-space: nowrap;
}
tbody td { padding: 14px 18px; border-bottom: 1px solid var(--line); color: var(--ink-2); vertical-align: middle; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: #fafbff; }
td .row-title { color: var(--ink); font-weight: 600; }

/* ---------- stat cards ---------- */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); gap: 16px; }
.stat {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  padding: 20px 22px; display: flex; flex-direction: column; gap: 4px;
}
.stat .label { font-size: .79rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.stat .value { font-size: 1.85rem; font-weight: 800; letter-spacing: -.02em; }
.stat .delta { font-size: .8rem; font-weight: 600; }
.delta.up { color: var(--green); }
.delta.down { color: var(--red); }
.delta.flat { color: var(--muted); }

/* progress & meters */
.meter { height: 7px; background: var(--surface-2); border-radius: 999px; overflow: hidden; }
.meter > span { display: block; height: 100%; border-radius: 999px; background: var(--primary); }
.meter.ok > span { background: var(--green); }
.meter.warn > span { background: var(--amber); }
.meter.hot > span { background: var(--red); }

.progress-steps { display: flex; align-items: center; gap: 0; }
.progress-steps .pstep { display: flex; align-items: center; gap: 10px; flex: 1; }
.progress-steps .pdot {
  width: 32px; height: 32px; border-radius: 50%; flex: 0 0 auto;
  display: flex; align-items: center; justify-content: center;
  font-size: .8rem; font-weight: 700;
  background: var(--surface-2); color: var(--faint); border: 2px solid var(--line-2);
}
.progress-steps .pstep.done .pdot { background: var(--primary); border-color: var(--primary); color: #fff; }
.progress-steps .pstep.now .pdot { background: var(--surface); border-color: var(--primary); color: var(--primary); box-shadow: var(--ring); }
.progress-steps .pline { flex: 1; height: 2px; background: var(--line-2); margin: 0 10px; }
.progress-steps .pline.done { background: var(--primary); }

/* bar chart */
.chart-bars { display: flex; align-items: flex-end; gap: 8px; height: 180px; padding-top: 10px; }
.chart-bars .bar {
  flex: 1; border-radius: 6px 6px 3px 3px; background: var(--primary-soft);
  position: relative; min-width: 8px; transition: background .15s;
}
.chart-bars .bar:hover { background: var(--primary); }
.chart-bars .bar.hl { background: var(--primary); }
.chart-labels { display: flex; gap: 8px; margin-top: 8px; }
.chart-labels span { flex: 1; text-align: center; font-size: .68rem; color: var(--faint); }

/* ---------- header / nav (public) ---------- */
.nav {
  position: sticky; top: 0; z-index: 60;
  background: rgba(246, 247, 251, .82); backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(230, 232, 240, .8);
}
/* pin the header itself (the nav's sticky is capped by its short #x-header parent);
   initShell toggles .sticky-top on every public page, off for /install + dashboards */
#x-header.sticky-top { position: sticky; top: 0; z-index: 70; }
.nav-inner { display: flex; align-items: center; gap: 34px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.18rem; letter-spacing: -.02em; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 11px; flex: 0 0 auto;
  background: linear-gradient(135deg, var(--primary), var(--violet));
  display: flex; align-items: center; justify-content: center;
}
.brand-mark svg { width: 19px; height: 19px; color: #fff; }
.nav-links { display: flex; align-items: center; gap: 26px; margin-left: 6px; }
.nav-links a { font-size: .92rem; font-weight: 500; color: var(--ink-2); position: relative; }
.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.nav-links a.active::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -23px; height: 2.5px;
  background: var(--primary); border-radius: 3px;
}
.nav-actions { margin-left: auto; display: flex; align-items: center; gap: 12px; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding: 84px 0 64px; }
.hero-bg {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(750px 380px at 12% -10%, rgba(124, 58, 237, .13), transparent 65%),
    radial-gradient(680px 360px at 88% 0%, rgba(14, 165, 233, .12), transparent 62%),
    radial-gradient(520px 300px at 55% 115%, rgba(79, 70, 229, .10), transparent 65%);
}
.hero-inner { position: relative; text-align: center; max-width: 820px; margin: 0 auto; }
.hero h1 { margin: 18px 0 18px; }
.hero-search {
  display: flex; align-items: center; gap: 10px; margin: 34px auto 0; max-width: 640px;
  background: var(--surface); border: 1px solid var(--line-2); border-radius: 999px;
  padding: 8px 8px 8px 22px; box-shadow: var(--sh-lg);
}
.hero-search input { flex: 1; border: 0; outline: 0; background: none; font-size: 1.02rem; }
.hero-search svg { width: 20px; height: 20px; color: var(--faint); flex: 0 0 auto; }
.popular { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 9px; margin-top: 18px; }
.trust-row {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 26px; margin-top: 44px; color: var(--muted); font-size: .87rem; font-weight: 500;
}
.trust-row .t-item { display: flex; align-items: center; gap: 8px; }
.trust-row svg { width: 17px; height: 17px; color: var(--primary); }

/* ---------- global app-search modal (docs-search clone) ---------- */
.gsearch-back { position: fixed; inset: 0; background: rgba(16,24,40,.44); backdrop-filter: blur(4px); z-index: 130; display: flex; align-items: flex-start; justify-content: center; padding: 9vh 18px 30px; }
.gsearch-back:not(.on) { display: none; }
.gsearch { width: 100%; max-width: 660px; background: #fff; border-radius: 20px; box-shadow: 0 30px 90px rgba(16,24,40,.3); overflow: hidden; animation: gsearchIn .18s ease both; }
@keyframes gsearchIn { from { opacity: 0; transform: translateY(10px) scale(.985); } to { opacity: 1; transform: none; } }
.gsearch-in { display: flex; align-items: center; gap: 12px; padding: 17px 20px; border-bottom: 1px solid var(--line); }
.gsearch-in svg { width: 18px; height: 18px; color: #818cf8; flex: 0 0 auto; }
.gsearch-in input { flex: 1; min-width: 0; border: 0; outline: none; font: inherit; font-size: 1rem; background: transparent; }
.gsearch-keys { flex: 0 0 auto; font-size: .7rem; color: var(--faint); white-space: nowrap; }
.gsearch-keys b { font-family: var(--mono, monospace); font-size: .68rem; background: #f1f3fb; border: 1px solid #dfe4f2; border-bottom-width: 2px; border-radius: 6px; padding: 1px 6px; color: #475069; }
.gsearch-body { max-height: 56vh; overflow-y: auto; padding: 4px 0; }
/* results cascade into every search modal — shared by app, domain, admin search */
.gsearch-body .sr-head, .gsearch-body .sr-item { animation: srIn .18s ease both; }
.gsearch-body .sr-item:nth-child(2) { animation-delay: .03s; }
.gsearch-body .sr-item:nth-child(3) { animation-delay: .06s; }
.gsearch-body .sr-item:nth-child(4) { animation-delay: .09s; }
.gsearch-body .sr-item:nth-child(5) { animation-delay: .12s; }
.gsearch-body .sr-item:nth-child(6) { animation-delay: .15s; }
.gsearch-body .sr-item:nth-child(7) { animation-delay: .18s; }
.gsearch-body .sr-item:nth-child(8) { animation-delay: .21s; }
@keyframes srIn { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: none; } }
.gsearch-body .sr-item .btn { transition: transform .12s ease, box-shadow .12s ease; }
.gsearch-body .sr-item .btn:active { transform: scale(.95); }
.sug-badge { transition: background-color .2s ease, color .2s ease; }
@media (prefers-reduced-motion: reduce) {
  .gsearch-body .sr-head, .gsearch-body .sr-item { animation: none; }
}
/* selected-domain chip under the wizard search field */
.install-dom-sel { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 8px; padding: 8px 12px; border-radius: 12px; border: 1px solid #cdeedd; background: #f4fcf8; animation: srIn .18s ease both; max-width: 100%; }
.install-dom-sel[hidden] { display: none; }
#install-com-12-99-yr[hidden] { display: none; } /* .flex beats the UA [hidden] rule */
.install-dom-sel #install-dom-sel-name { color: var(--ink); word-break: break-all; }
.install-dom-sel-clear { border: 0; background: none; font: inherit; font-size: .72rem; color: var(--muted); cursor: pointer; text-decoration: underline; padding: 0; margin-left: auto; }
.install-dom-sel-clear:hover { color: var(--danger, #e5484d); }
/* sr-head spec (global: modal + any search results list) */
.sr-head {
  font-size: 10px;
  padding-left: 20px;
}

/* search results dropdown */
.search-results {
  max-width: 640px; margin: 12px auto 0; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--sh-lg);
  text-align: left; overflow: hidden;
}
.search-results .sr-head {
  padding: 11px 20px; font-size: 10px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .08em; color: var(--faint); border-bottom: 1px solid var(--line);
}
.sr-item { display: flex; align-items: center; gap: 13px; padding: 12px 18px; border-bottom: 1px solid var(--line); }
.sr-item:last-child { border-bottom: 0; }
.sr-item:hover { background: #fafbff; }
.sr-item .sr-main { flex: 1; min-width: 0; }
.sr-item .sr-name { font-weight: 600; font-size: .92rem; }
.sr-item .sr-desc { font-size: .8rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sr-item.sr-foot { justify-content: center; font-size: .85rem; font-weight: 600; color: var(--muted); background: #fafbff; }

/* ---------- sections ---------- */
.section { padding: 76px 0; }
.section-alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 660px; margin: 0 auto 46px; text-align: center; }
.section-head h2 { margin: 14px 0 14px; }

.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-auto { grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); }

/* step cards (how it works) */
.step-card { position: relative; padding: 30px 26px; }
.step-num {
  width: 44px; height: 44px; border-radius: 14px; display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.05rem; margin-bottom: 18px;
  background: var(--primary-soft); color: var(--primary-600);
}
.step-card:nth-child(2) .step-num { background: #e5f4fd; color: var(--blue); }
.step-card:nth-child(3) .step-num { background: #e7f7ee; color: var(--green); }

/* feature rows */
.feature-row { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.feature-list { display: flex; flex-direction: column; gap: 16px; margin-top: 24px; }
.feature-item { display: flex; gap: 13px; align-items: flex-start; }
.feature-item .tick {
  width: 24px; height: 24px; border-radius: 8px; flex: 0 0 auto; margin-top: 2px;
  background: var(--primary-soft); color: var(--primary-600);
  display: flex; align-items: center; justify-content: center;
}
.feature-item .tick svg { width: 13px; height: 13px; }

/* visual mock panel */
.mock-panel {
  border-radius: var(--r-lg); border: 1px solid var(--line);
  background: var(--surface); box-shadow: var(--sh-lg); overflow: hidden;
}
.mock-bar {
  display: flex; align-items: center; gap: 7px; padding: 13px 16px;
  border-bottom: 1px solid var(--line); background: var(--surface-2);
}
.mock-bar i { width: 11px; height: 11px; border-radius: 50%; background: var(--line-2); }
.mock-bar i:first-child { background: #f87171; } .mock-bar i:nth-child(2) { background: #fbbf24; } .mock-bar i:nth-child(3) { background: #4ade80; }

/* pricing */
.plan-card {
  position: relative; display: flex; flex-direction: column; gap: 18px;
  padding: 28px 26px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r-lg); transition: all .18s;
}
.plan-card:hover { transform: translateY(-4px); box-shadow: var(--sh-lg); }
.plan-card.popular { border-color: var(--primary); box-shadow: 0 18px 50px rgba(79, 70, 229, .16); }
.plan-card.popular::before {
  content: 'Most popular'; position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--primary); color: #fff; font-size: .72rem; font-weight: 700;
  padding: 4px 14px; border-radius: 999px; letter-spacing: .03em; white-space: nowrap;
}
.plan-price { font-size: 2.5rem; font-weight: 800; letter-spacing: -.03em; }
.plan-price span { font-size: .95rem; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.plan-feats { display: flex; flex-direction: column; gap: 11px; }
.plan-feats li { display: flex; align-items: center; gap: 10px; font-size: .9rem; color: var(--ink-2); list-style: none; }
.plan-feats svg { width: 16px; height: 16px; color: var(--green); flex: 0 0 auto; }
.plan-specs {
  display: flex; justify-content: space-between; padding: 13px 15px;
  background: var(--surface-2); border-radius: var(--r-sm); font-size: .82rem; font-weight: 600;
}
.plan-specs div { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.plan-specs b { font-size: .98rem; }
.plan-specs .tiny { font-weight: 500; color: var(--faint); text-transform: uppercase; letter-spacing: .05em; }

/* testimonials */
.quote-card { padding: 28px; display: flex; flex-direction: column; gap: 18px; }
.quote-card p { color: var(--ink-2); font-size: .96rem; line-height: 1.7; }
.quote-who { display: flex; align-items: center; gap: 12px; }
.avatar {
  width: 40px; height: 40px; border-radius: 50%; flex: 0 0 auto;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: .86rem; color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--violet));
}

/* CTA band */
.cta-band {
  position: relative; overflow: hidden; border-radius: var(--r-xl);
  background: linear-gradient(115deg, #2a2377 0%, var(--primary) 55%, #6d5df0 100%);
  color: #fff; text-align: center; padding: 66px 32px;
}
.cta-band::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(500px 260px at 85% 120%, rgba(255, 255, 255, .18), transparent 60%);
}
.cta-band h2 { color: #fff; }
.cta-band .lead { color: rgba(255, 255, 255, .82); }

/* footer */
.footer { background: var(--ink); color: #b7bdcf; padding: 62px 0 30px; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; }
.footer h4 { color: #fff; font-size: .84rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 16px; }
.footer a { display: block; padding: 5px 0; font-size: .89rem; color: #b7bdcf; }
.footer a:hover { color: #fff; }
.footer-bottom {
  margin-top: 46px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .1);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px;
  font-size: .82rem;
}
.footer .brand { color: #fff; }
.footer .brand-desc { margin: 16px 0; font-size: .9rem; max-width: 270px; line-height: 1.7; }
/* caret chip only exists on mobile — full toggle mechanics live in the
   card-style accordion block at the end of this file (≤640) */
.footer .f-caret { display: none; }
.status-pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(22, 163, 74, .16); color: #6ee7a8;
  padding: 5px 13px; border-radius: 999px; font-size: .78rem; font-weight: 600;
}
.status-pill i { width: 7px; height: 7px; border-radius: 50%; background: #34d399; }

/* ============================================================
   App shell (customer / admin dashboards)
   ============================================================ */
.shell { display: flex; min-height: 100vh; }
.sidebar {
  width: 325px; flex: 0 0 auto; background: var(--surface);
  border-right: 1px solid var(--line); padding: 20px 16px;
  display: flex; flex-direction: column; gap: 4px;
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.sidebar .brand { padding: 6px 10px 22px; }
.side-label {
  font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em;
  color: var(--faint); padding: 16px 12px 7px;
}
.side-link {
  display: flex; align-items: center; gap: 12px; padding: 9px 12px;
  border-radius: var(--r-sm); font-size: .91rem; font-weight: 500;
  color: var(--ink-2); transition: all .13s;
}
.side-link svg { width: 18px; height: 18px; color: var(--faint); flex: 0 0 auto; }
.side-link:hover { background: var(--surface-2); color: var(--ink); }
.side-link.active { background: var(--primary-soft); color: var(--primary-600); font-weight: 600; }
.side-link.active svg { color: var(--primary); }
.side-link .side-count {
  margin-left: auto; font-size: .71rem; font-weight: 700;
  background: var(--primary); color: #fff; border-radius: 999px; padding: 1px 7px;
}
.side-foot { margin-top: auto; padding: 14px 10px 4px; }
div#side-foot {
  display: flex;
  flex-direction: column;
  gap: 25px;
}
/* .side-links wraps the nav so locked-state pointer-events can be scoped to it. It must
   reproduce the 4px gap the links got when they were direct flex children of .sidebar. */
.side-links { display: flex; flex-direction: column; gap: 4px; flex: 0 0 auto; }
/* The author display:flex above out-specifies the UA's [hidden] rule, so .hidden on
   .side-links (guest lock) must be re-asserted here or the menu stays visible. */
.side-links[hidden] { display: none; }
.side-label[hidden] { display: none; }
.side-unlock { background: var(--primary-soft); border: 1px solid var(--line); margin-top: 20px; }
.side-unlock .flex.gap-8.mt-14 { justify-content: space-between; }

/* Locked sidebar (no session): full menu listing stays VISIBLE but faded (transparent-ish
   colour) and inert. pointer-events is scoped to the links/CTA only so the sign-in
   controls inside the sidebar stay clickable — otherwise the menu could never unlock. */
.sidebar-locked .side-links,
.sidebar-locked [data-side-cta] { pointer-events: none; }
.sidebar-locked .side-link {
  color: rgba(61, 66, 88, .38); background: transparent; cursor: not-allowed;
}
.sidebar-locked .side-link svg { color: rgba(154, 160, 180, .5); }
.sidebar-locked .side-link:hover { background: transparent; color: rgba(61, 66, 88, .38); }
.sidebar-locked .side-link.active {
  background: rgba(79, 70, 229, .07); color: rgba(67, 56, 202, .42); font-weight: 600;
}
.sidebar-locked .side-link.active svg { color: rgba(79, 70, 229, .35); }
.sidebar-locked .side-link .side-count { background: rgba(79, 70, 229, .14); color: rgba(67, 56, 202, .42); }
.sidebar-locked [data-side-cta] .btn { opacity: .35; }
.sidebar-locked .side-label { opacity: .55; }

.shell-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar {
  height: 64px; display: flex; align-items: center; gap: 14px;
  padding: 0 28px; background: rgba(255, 255, 255, .85); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 40;
}
.topbar-title { font-size: 1.12rem; font-weight: 700; letter-spacing: -.01em; }
.topbar-search {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border: 1.5px solid #dfe4f2;
  border-radius: 21px;
  padding: 8px 11px;
  box-shadow: 0 14px 40px rgba(16, 24, 40, .07);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.topbar-search:hover, .topbar-search:focus-within { border-color: #c7d2fe; box-shadow: 0 14px 40px rgba(99, 102, 241, .16); }
.topbar-search input { border: 0; background: none; outline: 0; width: 100%; font-size: .87rem; }
.topbar-search svg { width: 16px; height: 16px; color: var(--faint); flex: 0 0 auto; }
/* /app/{slug} top header: long/wide search field between the nav links and actions */
.nav .topbar-search { flex: 1 1 auto; max-width: 560px; min-width: 260px; }
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.content { padding: 30px 28px 60px; max-width: 1240px; width: 100%; }
.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 26px; flex-wrap: wrap; }
.page-head h1 { font-size: 1.55rem; }

/* page tabs */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 26px; overflow-x: auto; }
.tab {
  padding: 11px 18px; font-size: .9rem; font-weight: 600; color: var(--muted);
  border-bottom: 2.5px solid transparent; margin-bottom: -1px; white-space: nowrap; cursor: pointer;
}
.tab:hover { color: var(--ink); }
.tab.on { color: var(--primary-600); border-color: var(--primary); }
.tab-panel { display: none; }
.tab-panel.on { display: block; }

/* segmented pill variant — ops console tab strip (matches rounded/primary card language) */
.tabs-seg {
  gap: 3px; padding: 4px; background: var(--surface-2, #f4f5fb);
  border: 1px solid var(--line); border-radius: 12px; margin-bottom: 18px;
  scrollbar-width: thin; scrollbar-color: #c7d2fe transparent;
}
.tabs-seg::-webkit-scrollbar { height: 6px; }
.tabs-seg::-webkit-scrollbar-thumb { background: #c7d2fe; border-radius: 99px; }
.tabs-seg::-webkit-scrollbar-track { background: transparent; }
.tabs-seg .tab {
  border: 0; border-radius: 9px; margin: 0; padding: 7px 13px;
  font-size: .84rem; font-weight: 600; color: var(--muted);
  display: inline-flex; align-items: center; gap: 7px; white-space: nowrap;
  transition: background .15s ease, color .15s ease, box-shadow .15s ease;
}
.tabs-seg .tab svg { width: 15px; height: 15px; flex: none; }
.tabs-seg .tab:hover { color: var(--ink); background: rgba(255, 255, 255, .75); }
.tabs-seg .tab.on {
  background: #fff; color: var(--primary-600); font-weight: 700;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .10), 0 0 0 1px rgba(15, 23, 42, .05);
}

/* empty state */
.empty {
  text-align: center; padding: 60px 20px; border: 1.5px dashed var(--line-2);
  border-radius: var(--r-lg); color: var(--muted);
}

/* wizard */
.wizard-steps { display: flex; gap: 0; margin-bottom: 34px; }
.wizard-steps { overflow-x: auto; overscroll-behavior-x: contain; }
.wizard-steps .wstep { display: flex; align-items: center; gap: 11px; flex: 1; min-width: 0; }
.wizard-steps .wdot {
  width: 34px; height: 34px; border-radius: 50%; flex: 0 0 auto;
  display: flex; align-items: center; justify-content: center;
  font-size: .84rem; font-weight: 700;
  background: var(--surface-2); color: var(--faint); border: 2px solid var(--line-2);
}
.wizard-steps .wstep.done .wdot { background: var(--primary); border-color: var(--primary); color: #fff; }
.wizard-steps .wstep.now .wdot { background: var(--surface); border-color: var(--primary); color: var(--primary); box-shadow: var(--ring); }
.wizard-steps .wtext { display: flex; flex-direction: column; min-width: 0; flex: 0 0 auto; }
.wizard-steps .wtext b { font-size: .88rem; white-space: nowrap; }
.wizard-steps .wtext span { font-size: .75rem; color: var(--faint); white-space: nowrap; }
.wizard-steps .wline { flex: .6; height: 2px; background: var(--line-2); margin: 0 14px; min-width: 18px; }
.wizard-steps .wline.done { background: var(--primary); }
.wizard-pane { display: none; }
.wizard-pane.on { display: block; }

/* selectable cards (wizard choices) */
.choice {
  display: flex; align-items: center; gap: 15px; padding: 17px 19px;
  border: 1.5px solid var(--line-2); border-radius: var(--r); background: var(--surface);
  cursor: pointer; transition: all .14s;
}
.choice:hover { border-color: var(--primary); }
.choice.on { border-color: var(--primary); background: var(--primary-soft); box-shadow: var(--ring); }
.choice .c-main { flex: 1; min-width: 0; }
.choice .radio {
  width: 21px; height: 21px; border-radius: 50%; border: 2px solid var(--line-2); flex: 0 0 auto;
  display: flex; align-items: center; justify-content: center;
}
.choice.on .radio { border-color: var(--primary); }
.choice.on .radio::after { content: ''; width: 11px; height: 11px; border-radius: 50%; background: var(--primary); }
.choice .check {
  width: 21px; height: 21px; border-radius: 7px; border: 2px solid var(--line-2); flex: 0 0 auto;
  display: flex; align-items: center; justify-content: center;
}
.choice.on .check { border-color: var(--primary); background: var(--primary); }
.choice.on .check::after { content: ''; width: 5px; height: 10px; border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg) translate(-1px, -1px); }

/* deploy log */
.log-box {
  background: #14162a; border-radius: var(--r); padding: 18px 20px;
  font-family: var(--mono); font-size: .8rem; color: #9fe8b8;
  height: 230px; overflow-y: auto; line-height: 1.9;
}
.log-box .t { color: #5b6486; margin-right: 10px; }
.log-box .warn { color: #fbbf24; }
.log-box .dim { color: #7d87ac; }

/* misc utility */
.flex { display: flex; }
.between { justify-content: space-between; }
.center { align-items: center; }
.wrapflex { flex-wrap: wrap; }
.gap-6 { gap: 6px; } .gap-10 { gap: 10px; } .gap-14 { gap: 14px; } .gap-20 { gap: 20px; }
.mt-4 { margin-top: 4px; }
.mt-8 { margin-top: 8px; } .mt-14 { margin-top: 14px; } .mt-20 { margin-top: 20px; } .mt-30 { margin-top: 30px; } .mt-46 { margin-top: 46px; }
.mb-8 { margin-bottom: 8px; } .mb-14 { margin-bottom: 14px; } .mb-20 { margin-bottom: 20px; } .mb-30 { margin-bottom: 30px; }
.text-right { text-align: right; }
.divider { height: 1px; background: var(--line); margin: 22px 0; }
.nowrap { white-space: nowrap; }

/* toast */
.toast {
  position: fixed; right: 22px; bottom: 22px; z-index: 100;
  display: flex; align-items: center; gap: 12px;
  background: var(--ink); color: #fff; padding: 14px 20px;
  border-radius: var(--r); box-shadow: var(--sh-lg); font-size: .9rem;
  opacity: 0; transform: translateY(12px); transition: all .25s; pointer-events: none;
}
.toast.show { opacity: 1; transform: translateY(0); }
.toast svg { width: 18px; height: 18px; color: #6ee7a8; }

/* modal */
.modal-back {
  position: fixed; inset: 0; z-index: 90; background: rgba(23, 26, 43, .5);
  display: none; align-items: center; justify-content: center; padding: 20px;
  backdrop-filter: blur(3px);
}
.modal-back.on { display: flex; }
.modal {
  background: var(--surface); border-radius: var(--r-lg); width: 100%; max-width: 520px;
  padding: 28px; box-shadow: var(--sh-lg); max-height: 88vh; overflow-y: auto;
}

/* auth pages */
.auth-wrap { display: grid; grid-template-columns: 1fr 1fr; min-height: 100vh; }
.auth-side {
  background: linear-gradient(150deg, #241d66 0%, var(--primary) 60%, #7c5cf5 100%);
  color: #fff; padding: 56px; display: flex; flex-direction: column; position: relative; overflow: hidden;
}
.auth-side::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(420px 300px at 90% 110%, rgba(255, 255, 255, .14), transparent 60%);
}
.auth-form-wrap { display: flex; align-items: center; justify-content: center; padding: 40px 24px; }
.auth-form { width: 100%; max-width: 380px; }
.auth-quote {
  margin-top: auto; position: relative; z-index: 1;
  background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .18);
  border-radius: var(--r-lg); padding: 24px;
}

/* responsive */
@media (max-width: 1080px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .nav-links { display: none; }
  .feature-row { grid-template-columns: 1fr; gap: 34px; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-side { display: none; }
  .sidebar { position: fixed; z-index: 80; left: -340px; transition: left .22s ease; box-shadow: var(--sh-lg); }
  .sidebar.open { left: 0; }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .hero { padding: 56px 0 44px; }
  .section { padding: 52px 0; }
  .content { padding: 22px 16px 50px; }
  .topbar { padding: 0 16px; }
  .topbar-search { display: none; }
  /* wizard's search lives in .topbar-search styling but must stay visible at every width */
  #install-topbar-search, #install-domain-search { display: flex; flex: 1 1 auto; width: 100%; max-width: 100%; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .wizard-steps { display: none; }
  .plan-price { font-size: 2.1rem; }
  .hero-search { padding-left: 16px; }
}


/* ============ v2: type pills, mascot, interactivity, responsive ============ */
.badge-type { padding: 3px 9px; border-radius: 999px; font-size: .68rem; font-weight: 700; letter-spacing: .02em; }
.badge-type-app { background: #eef2ff; color: #4f46e5; }
.badge-type-addon { background: #fae8ff; color: #a21caf; }
.badge-type-gh { background: #eef2f7; color: #334155; }

.mascot-wrap { position: absolute; right: 7%; top: 13%; width: 172px; z-index: 3; cursor: pointer; animation: mcbob 3.8s ease-in-out infinite; }
.mascot-wrap svg { width: 100%; height: auto; display: block; }
@keyframes mcbob { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-13px) rotate(2.5deg); } }
.mascot-wrap.wave .mc-wing { transform-origin: 122px 76px; animation: mcwave .8s ease; }
@keyframes mcwave { 0%, 100% { transform: rotate(0); } 30% { transform: rotate(-28deg); } 60% { transform: rotate(12deg); } }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .55s ease, transform .55s ease; }
.reveal.in { opacity: 1; transform: none; }

.nav-toggle { display: none; width: 40px; height: 40px; align-items: center; justify-content: center; border: 1px solid var(--line, #e2e8f0); border-radius: 10px; background: #fff; color: var(--ink, #0f172a); cursor: pointer; }
.nav-toggle svg { width: 20px; height: 20px; }

button, .chip, .btn { transition: transform .12s ease, background .15s ease, border-color .15s ease; }
button:active, .chip:active, .btn:active { transform: scale(.96); }

@media (prefers-reduced-motion: reduce) {
  .mascot-wrap { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

@media (max-width: 1180px) { .mascot-wrap { width: 132px; right: 2%; top: 8%; } }
@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .nav-inner { position: relative; }
  .nav-links { display: none; position: absolute; top: calc(100% + 10px); left: 0; right: 0; flex-direction: column; gap: 2px; background: #fff; border: 1px solid var(--line, #e2e8f0); border-radius: 14px; padding: 10px; box-shadow: var(--sh-lg); z-index: 90; }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 11px 12px; border-radius: 10px; }
  .mascot-wrap { width: 98px; right: 3%; top: 5%; }
  .app-card { padding: 18px; }
  .app-card .tile { width: 42px; height: 42px; font-size: 1.05rem; }
  .app-card .spec svg { width: 13px; height: 13px; }
}
@media (max-width: 640px) {
  .wrap, .wrap-narrow { padding: 0 16px; }
  .hero h1 { font-size: 1.95rem; }
  .lead { font-size: 1.02rem; }
  .grid-auto { grid-template-columns: 1fr; gap: 14px; }
  .app-card .install { flex-wrap: wrap; gap: 8px; }
  .chip { white-space: nowrap; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .stat-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stat .value { font-size: 1.45rem; }
  .stat .label { font-size: .72rem; }
  .card table { display: block; overflow-x: auto; white-space: nowrap; }
  .hero-search { flex-wrap: wrap; padding: 10px 12px; gap: 8px; }
  .hero-search input { min-width: 0; width: 100%; }
  .badge-type { font-size: .62rem; padding: 2px 7px; }
}
@media (max-width: 420px) {
  .hero h1 { font-size: 1.62rem; }
  .mascot-wrap { width: 66px; top: 1%; right: 2%; }
  .hero { padding: 46px 0 38px; }
}

/* ============ v3: stepper, mascot poses, mobile buttons ============ */
.mascot-peek svg { transform: rotate(-6deg); }
.mascot-point svg { transform: rotate(4deg); }
.mascot-fly svg { transform: rotate(8deg); }
.mascot-sit { top: 18% !important; }
.mascot-auth { position: static !important; width: 150px; margin: 0 auto 18px; animation: none; }
.stepper { max-width: 980px; margin: 0 auto; }
.step-tabs { position: relative; display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.step-tab { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border: 1px solid var(--line, #e2e8f0); border-radius: 14px; background: #fff; cursor: pointer; font-weight: 600; color: var(--muted); flex: 1 1 180px; text-align: left; }
.step-tab .step-n { width: 30px; height: 30px; border-radius: 10px; display: flex; align-items: center; justify-content: center; background: #eef2ff; color: #4f46e5; font-weight: 800; flex: 0 0 auto; }
.step-tab.on { border-color: #4f46e5; color: var(--ink, #0f172a); box-shadow: 0 10px 26px rgba(79, 70, 229, .12); }
.step-tab.on .step-n { background: #4f46e5; color: #fff; }
.step-progress { position: absolute; left: 0; right: 0; bottom: -8px; height: 3px; background: #e2e8f0; border-radius: 3px; overflow: hidden; }
.step-progress-bar { height: 100%; width: 0; background: #4f46e5; border-radius: 3px; }
.step-panel { display: grid; grid-template-columns: 1.1fr 1fr; gap: 26px; align-items: center; }
.step-panel.step-anim .step-copy, .step-panel.step-anim .step-mock { animation: stepIn .45s ease; }
@keyframes stepIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.step-mock { background: #f8fafc; border: 1px solid var(--line, #e2e8f0); border-radius: 16px; padding: 18px; display: grid; gap: 12px; }
.mock-row { display: flex; align-items: center; gap: 10px; }
.mock-tile { width: 38px; height: 38px; border-radius: 11px; background: linear-gradient(135deg, #c7d2fe, #a5b4fc); flex: 0 0 auto; }
.mock-line { height: 12px; border-radius: 8px; background: #e2e8f0; flex: 1; }
.w30 { max-width: 30%; } .w40 { max-width: 40%; } .w50 { max-width: 50%; } .w60 { max-width: 60%; } .w70 { max-width: 70%; } .w80 { max-width: 80%; }
.mock-pill { padding: 6px 12px; border-radius: 999px; background: #eef2ff; color: #4f46e5; font-size: .78rem; font-weight: 700; white-space: nowrap; }
.mock-pill.ok { background: #dcfce7; color: #15803d; }
@media (max-width: 880px) {
  .step-panel { grid-template-columns: 1fr; }
  .step-tab { flex: 1 1 140px; }
}
@media (max-width: 640px) {
  .btn { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
  .btn-sm { min-height: 38px; }
  .app-card .install { flex-direction: column; align-items: stretch; }
  .app-card .install .btn { width: 100%; min-height: 44px; }
  .hero-search .btn { width: 100%; }
  .step-tab { flex: 1 1 100%; padding: 11px 14px; }
  .step-tab .step-t { font-size: .92rem; }
}
@media (max-width: 420px) {
  .nav-actions .btn-ghost { display: none; }
}

/* ============ v4: logo tiles ============ */
.logo-tile { display: flex; align-items: center; justify-content: center; padding: 7px; }
.logo-tile img { width: 100%; height: 100%; object-fit: contain; }

/* ============ v4: card badge & chip refinements ============ */
button.chip svg {
    width: 16px;
}

.badge-verified {
    background: var(--primary-soft);
    color: var(--primary-600);
    width: 25px;
    height: 25px;
    padding: 4px;
    display: none;
}


span.badge.badge-verified svg {
    width: 16px;
}

.badge-type-app {
    background: #eef2ff;
    color: #4f46e5;
    display: none;
}

/* ============ v4: GitHub repo card layout fix ============ */
[id$="-gh-list"] .card > .flex.between { flex-wrap: wrap; row-gap: 12px; }
[id$="-gh-list"] .card .text-right { flex: 0 0 auto; margin-left: auto; }
[id$="-gh-list"] .card .flex.wrapflex { max-width: 100%; }
@media (max-width: 640px) {
  [id$="-gh-list"] .card > .flex.between { flex-direction: column; align-items: stretch; }
  [id$="-gh-list"] .card .text-right { display: flex; align-items: center; justify-content: space-between; text-align: left; margin-left: 0; }
  [id$="-gh-list"] .card .text-right .btn { margin-top: 0; min-height: 44px; }
}

/* ============ v6: hide trust row & footer vendor line ============ */
.trust-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 26px;
    margin-top: 44px;
    color: var(--muted);
    font-size: .87rem;
    font-weight: 500;
    display: none;
}

div#footer-bottom .muted {
    display: none;
}

.badge-type-addon {
    display: none;
}

.badge-sprout {
    display: none;
}

.brand-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1.05;
}
.brand-name {
  font-weight: 800;
  letter-spacing: -.02em;
}
.brand-tld {
  font-size: .5em;
  font-weight: 800;
  opacity: .6;
  position: relative;
  top: -.62em;
  margin-left: 0;
  letter-spacing: .02em;
}
.brand-say {
  font-size: .58rem;
  font-weight: 500;
  letter-spacing: .04em;
  opacity: .55;
  margin-top: 2px;
  text-transform: lowercase;
}

/* app-card title links to the dynamic /app/<slug> page */
.app-card h4 a{color:inherit;text-decoration:none}
.app-card h4 a:hover{color:var(--primary)}

/* password show/hide toggle inside auth forms */
.pw-toggle{position:absolute;right:8px;top:50%;transform:translateY(-50%);background:none;border:0;padding:5px;cursor:pointer;color:var(--muted);line-height:0;border-radius:6px}
.pw-toggle:hover{color:var(--primary)}
.pw-toggle svg{width:17px;height:17px}

/* ---------------- install cart ---------------- */
#cart-btn { position: relative; line-height: 0; }
.cart-dot {
  position: absolute; top: 1px; right: 1px;
  min-width: 15px; height: 15px; padding: 0 3px; box-sizing: border-box;
  border-radius: 99px; background: var(--primary-600); color: #fff;
  font-size: 9.5px; font-weight: 700; line-height: 15px; text-align: center;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, .9);
}
.cart-dot[hidden] { display: none; }
.cart-list { max-height: 54vh; overflow-y: auto; }
.cart-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line-2); }
.cart-row:last-child { border-bottom: 0; }
.cart-remove { margin-left: auto; flex: none; color: var(--muted); }
.cart-remove:hover { color: #dc2626; }
.cart-total {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 14px;
  padding-top: 14px; border-top: 1px solid var(--line-2);
}
/* cart popup refinements (scoped: .btn-ghost is used sitewide — 57 HTML + 44 JS refs) */
#cart-modal .btn-ghost {
    display: block;
}

#nav-actions a.btn.btn-ghost.btn-sm {
    display: none;
}

/* disabled wizard card with corner badge (domain registration on hold) */
.choice-disabled {
    position: relative;
    pointer-events: none;
    opacity: .5;
}
.choice-disabled .soon-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--primary-soft);
    color: var(--primary-600);
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .05em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 999px;
}
/* standalone "Coming soon" pill (instance Domain tab, modals) */
.soon-badge {
    display: inline-block;
    background: var(--primary-soft);
    color: var(--primary-600);
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .05em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 999px;
    white-space: nowrap;
}

#cart-modal .modal .flex.gap-10.mt-16 {
    margin-top: 25px;
    justify-content: space-between;
}


button#cart-close {
    display: none;
}


#cart-modal .modal .flex.between.center {
    margin-bottom: 20px;
}

p#cart-added-note {
    display: none;
}

/* app-detail hero: constrain the title column on desktop */
div#app-detail-x-5 { max-width: 545px; }
/* verified badge sits ABOVE the app title at every screen size */
#app-detail-n8n { flex-direction: column; align-items: flex-start; }
#app-detail-badge { order: -1; }
/* Screenshot tab retired on every breakpoint: hide the button and lock its
   panel shut (the admin content field keeps working, it just has no surface) */
#app-detail-tab-5, [data-tab="screens"] { display: none !important; }
#screens { display: none !important; }

/* admin/provisioning — capacity box card header layout */
#provisioning-x-12 button.btn.btn-ghost.btn-sm {
    padding: 5px 10px;
    height: fit-content;
    margin-top: 20px;
}

#provisioning-x-12 .flex.gap-10 { display: block; }

#provisioning-x-12 .flex.between.center.wrapflex.gap-12 { align-items: end; }

/* mascot sitting in the capacity box card, pondering the balance */
.mascot-card { width: 104px; margin: 0 0 4px auto; }

.mascot-card svg { width: 100%; height: auto; display: block; }

/* /my-apps: instances list spans the full content width */
main#instances-x-4 { max-width: 100%; }

/* config-change modal footer spacing */
#config-modal .flex.gap-10.mt-16 { margin-top: 20px; }

/* FAQ toggle blocks (app detail + generated content pages) */
.faq-item { border: 1px solid var(--line-2, #e5e7eb); border-radius: 10px; margin-bottom: 10px; background: var(--surface-2, #fafafa); overflow: hidden; }
.faq-item summary { cursor: pointer; padding: 12px 16px; font-weight: 600; font-size: .92rem; list-style: none; display: flex; align-items: center; gap: 8px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::before { content: '+'; font-weight: 800; color: #4f46e5; flex: 0 0 auto; transition: transform .15s ease; }
.faq-item[open] summary::before { transform: rotate(45deg); }
.faq-item[open] summary { border-bottom: 1px solid var(--line-2, #e5e7eb); }
.faq-body { padding: 12px 16px; font-size: .9rem; line-height: 1.55; color: var(--text-2, #4b5563); }
.content-page table { width: 100%; border-collapse: collapse; font-size: .9rem; margin: 14px 0 22px; }
.content-page th { text-align: left; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: #6b7280; padding: 8px 10px; border-bottom: 2px solid #e5e7eb; }
.content-page td { padding: 10px; border-bottom: 1px solid #f0f0f2; vertical-align: top; }
.content-page h2 { margin: 30px 0 10px; font-size: 1.35rem; }
.content-page h3 { margin: 18px 0 6px; font-size: 1.05rem; }

/* ---- /c/ guides: editorial layout (hero, quick answer, tool cards, FAQ, CTA) ---- */
.guide { max-width: 920px; }
.guide-crumb { font-size: .78rem; color: var(--muted, #6b7280); margin-bottom: 14px; }
.guide-crumb a { color: inherit; text-decoration: none; }
.guide-crumb a:hover { color: var(--primary, #4f46e5); }
.guide-hero h1 { font-size: clamp(1.55rem, 3.6vw, 2.25rem); line-height: 1.12; letter-spacing: -.02em; margin: 12px 0 8px; }
.guide-dek { font-size: 1.03rem; color: var(--muted, #6b7280); line-height: 1.55; margin: 0 0 14px; }
.guide-meta { display: flex; gap: 14px; flex-wrap: wrap; font-size: .78rem; color: var(--muted, #6b7280); border-bottom: 1px solid var(--line-2, #e5e7eb); padding-bottom: 18px; margin-bottom: 8px; }
.guide-answer { background: var(--primary-soft, #eef2ff); border: 1px solid var(--primary-200, #c7d2fe); border-radius: 14px; padding: 16px 18px; font-size: .95rem; line-height: 1.55; margin: 20px 0; }
.guide-tool { background: var(--surface, #fff); border: 1px solid var(--line-2, #e5e7eb); border-radius: 16px; padding: 20px 22px; margin: 16px 0; }
.guide-tool h3 { margin: 0; font-size: 1.12rem; }
.guide-list { margin: 10px 0 14px; padding-left: 18px; }
.guide-list li { margin: 6px 0; font-size: .92rem; line-height: 1.5; }
.guide img { max-width: 100%; border-radius: 12px; border: 1px solid var(--line); margin: 16px 0; display: block; }
.guide figure { margin: 18px 0; }
.guide figure.app-shot { margin: 18px 0; }
.guide h3 { margin-top: 28px; }
.guide blockquote {
  border-left: 3px solid var(--primary, #6366f1); margin: 18px 0; padding: 8px 16px;
  color: var(--muted); background: var(--surface); border-radius: 0 10px 10px 0;
}
.guide .callout {
  background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--primary, #6366f1);
  border-radius: 0 10px 10px 0; padding: 12px 16px; margin: 18px 0; font-size: .93rem; line-height: 1.6;
}
.guide-faq { margin-top: 4px; }
.guide-faq .faq-item { border: 1px solid var(--line-2, #e5e7eb); border-radius: 12px; background: var(--surface, #fff); margin-top: 10px; overflow: hidden; }
.guide-faq .faq-item p { margin: 0; padding: 0 16px 14px; }
.guide-cta { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; background: linear-gradient(120deg, #4f46e5, #6d28d9); color: #fff; border-radius: 18px; padding: 22px 24px; margin: 32px 0 8px; }
.guide-cta h3 { margin: 0 0 4px; color: #fff; font-size: 1.1rem; }
.guide-cta p { margin: 0; font-size: .88rem; opacity: .92; }
.guide-cta .btn { background: #fff; color: #4f46e5; border: 0; font-weight: 700; white-space: nowrap; }
.guide .table { width: 100%; }
@media (max-width: 700px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .guide-cta { flex-direction: column; align-items: flex-start; }
}

/* ---- app detail: Screenshot tab ---- */
.app-shot-grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.app-shot {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  overflow: hidden; margin: 0; padding: 0;
}
.app-shot img { width: 100%; aspect-ratio: 8 / 5; object-fit: cover; display: block; }
.app-shot a { display: block; }
.app-shot a:hover img { opacity: .92; }
.app-shot figcaption {
  font-size: .78rem; color: var(--muted); padding: 10px 14px;
  border-top: 1px solid var(--line);
}

/* ---- /c guide index: hero chips, grouped card grid ---- */
.guide-grid { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.guide-group + .guide-group { margin-top: 46px; }
.guide-group-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; margin-bottom: 18px;
}
.guide-group-head h2 { margin: 8px 0 6px; font-size: 1.4rem; letter-spacing: -.02em; }
.guide-group-head p { margin: 0; max-width: 560px; }
.guide-card { display: flex; flex-direction: column; gap: 8px; }
.guide-card:hover { border-color: var(--primary); }
.guide-card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.guide-card h3 { margin: 2px 0 0; font-size: 1.06rem; line-height: 1.32; letter-spacing: -.01em; }
.guide-card p { margin: 0; flex: 1; }
.guide-card-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  border-top: 1px solid var(--line); padding-top: 12px; margin-top: 4px;
}
.guide-card-cta { font-size: .83rem; font-weight: 600; color: var(--primary-600); }
.guide-card:hover .guide-card-cta { text-decoration: underline; }
@media (max-width: 640px) {
  .guide-grid { grid-template-columns: 1fr; }
  .guide-group-head { align-items: flex-start; }
}

/* ---- wizard account panels: white copy on the dark step-5 surface ---- */
#pay-register label.small.muted, #pay-login label.small.muted {
  color: #fff;
}

#pay-register label.checkbox.mt-10, #login-remember {
  margin: 20px 0px;
}


#register-form p.tiny.muted.text-center.mt-14 {
  display: none;
}


div#app-detail-automate-everything-self p {
  margin-bottom: 15px;
}

.wizard-pane #pay-signedout #pay-oauth-row { margin: 25px 0px; }
p#pay-signin-copy { display: none; }
div#pay-account-card { padding: 40px; }
div#pay-method-card { padding: 40px; }
/* Domain tab: "Buy a new domain" is a placeholder — transparent surface, inert */
#dom-buy-card { background: transparent; pointer-events: none; }
#pay-auth-tabs { margin-bottom: 14px; }
#pay-auth-tabs .tab { flex: 1; text-align: center; }
#pay-signedout .tab-panel.on { animation: pay-tab-in .26s ease both; }
@keyframes pay-tab-in {
  from { opacity: 0; transform: translateY(9px); }
  to { opacity: 1; transform: translateY(0); }
}
.pay-box {
  background: var(--surface-2); border: 1px solid var(--line);
  border-radius: var(--r-sm); padding: 16px;
}
.pay-box + .pay-box { margin-top: 14px; }
.pay-box-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; transition: margin-bottom .3s ease; }
.pay-box-head h4 { font-size: 1rem; }

/* ---------- kebab (⋮) action dropdown ---------- */
.kebab { position: relative; display: inline-block; vertical-align: top; }
.kebab-btn {
  width: 30px; height: 30px; display: inline-flex; align-items: center; justify-content: center;
  padding: 0; border: 1px solid var(--line); border-radius: var(--r-sm, 8px);
  background: var(--surface); color: var(--ink-500, #64748b); cursor: pointer;
}
.kebab-btn svg { width: 17px; height: 17px; }
.kebab-btn:hover { color: var(--ink-700, #334155); border-color: var(--ink-300, #cbd5e1); }
.kebab-menu {
  display: none; position: absolute; right: 0; top: calc(100% + 6px); z-index: 80;
  min-width: 190px; padding: 6px; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r, 14px); box-shadow: 0 14px 34px rgba(15, 23, 42, .16);
}
.kebab.open > .kebab-menu { display: block; }
.kebab-menu .btn {
  display: flex; align-items: center; gap: 8px; width: 100%; justify-content: flex-start;
  margin: 0 0 4px; border: 0; box-shadow: none; background: none; text-align: left; color: inherit;
}
.kebab-menu .btn:last-child { margin-bottom: 0; }
.kebab-menu .btn:hover { background: var(--ink-50, #f1f5f9); }
.kebab-menu .btn svg { width: 15px; height: 15px; flex: 0 0 auto; }
.kebab-menu .btn-danger-soft { color: var(--danger, #dc2626); }
.kebab-menu .btn-danger-soft:hover { background: #fef2f2; color: var(--danger, #dc2626); }
/* pay card: accordion sections — one .pay-box open at a time, animated height */
#pay-method-card .pay-box-head { cursor: pointer; user-select: none; }
#pay-method-card .pay-box-head:hover .pay-caret { color: var(--primary-600, #4f46e5); }
.pay-box:not(.open) > .pay-box-head { margin-bottom: 0; }
.pay-head-right { display: inline-flex; align-items: center; gap: 8px; }
.pay-caret { width: 16px; height: 16px; flex: 0 0 auto; color: var(--ink-500, #64748b); transition: transform .3s ease, color .2s ease; }
.pay-box.open > .pay-box-head .pay-caret { transform: rotate(180deg); }
.pay-box-body { display: grid; grid-template-rows: 1fr; opacity: 1; transition: grid-template-rows .32s ease, opacity .26s ease; }
.pay-box:not(.open) > .pay-box-body { grid-template-rows: 0fr; opacity: 0; }
.pay-box-inner { overflow: hidden; min-height: 0; }

/* ============================================================
   Site pages (admin-editable): /privacy /terms /legal /security
   /contact /help-center /report-abuse /status /categories
   ============================================================ */
.sp-hero { --sp-accent: var(--primary); --sp-accent-soft: var(--primary-soft); }
.sp-hero .hero-bg {
  background: radial-gradient(900px 380px at 50% -40px, var(--sp-accent-soft), transparent 70%);
}
.sp-eyebrow::before { background: var(--sp-accent); }
.sp-eyebrow { color: var(--sp-accent); }
.sp-h1 {
  font-size: clamp(2.15rem, 5vw, 3.1rem);
  letter-spacing: -.028em;
  line-height: 1.06;
  background: linear-gradient(115deg, var(--ink) 55%, var(--sp-accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--ink);
}
.sp-dek { max-width: 640px; margin: 14px auto 0; color: var(--muted); }
.sp-hero-meta { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 18px; }
.sp-meta-chip {
  font-size: .74rem; font-weight: 600; letter-spacing: .03em;
  padding: 5px 12px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line);
  color: var(--muted); box-shadow: var(--sh-sm);
}
.sp-live-wrap { display: flex; justify-content: center; margin-top: 16px; }
.sp-live-pill {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .82rem; font-weight: 700; padding: 8px 16px; border-radius: 999px;
  background: var(--surface-2); border: 1px solid var(--line); color: var(--muted);
  transition: background .3s ease, color .3s ease, border-color .3s ease;
}
.sp-live-pill::before {
  content: ''; width: 8px; height: 8px; border-radius: 50%;
  background: currentColor; animation: spPulse 2s ease-in-out infinite;
}
@keyframes spPulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .45; transform: scale(.82); } }

/* layout: optional sticky TOC rail */
.sp-main {
  max-width: 780px; margin: 0 auto; padding: 34px 20px 30px;
  display: grid; gap: 34px;
}
.sp-main-toc {
  max-width: 1080px;
  grid-template-columns: 218px minmax(0, 1fr);
  align-items: start;
}
.sp-toc { position: sticky; top: 86px; }
.sp-toc-inner {
  border-left: 2px solid var(--line);
  padding: 4px 0 4px 16px;
  display: flex; flex-direction: column; gap: 2px;
}
.sp-toc-title {
  font-size: .68rem; font-weight: 800; text-transform: uppercase; letter-spacing: .12em;
  color: var(--faint); margin-bottom: 8px;
}
.sp-toc a {
  font-size: .82rem; line-height: 1.35; color: var(--muted); text-decoration: none;
  padding: 6px 0; border-left: 2px solid transparent; margin-left: -18px; padding-left: 16px;
  transition: color .18s ease, border-color .18s ease, font-weight .18s ease;
}
.sp-toc a:hover { color: var(--ink); }
.sp-toc a.on { color: var(--sp-accent, var(--primary)); border-left-color: var(--sp-accent, var(--primary)); font-weight: 600; }

/* sticky side rail: TOC + related-app card travel together while the article scrolls */
.sp-main-toc .sp-article { grid-column: 2; grid-row: 1; }
.sp-main-toc .sp-side {
  position: sticky; top: 86px;
  display: flex; flex-direction: column; gap: 18px;
  max-height: calc(100vh - 104px); overflow-y: auto; scrollbar-width: thin;
}
.sp-side .sp-toc { position: static; }
.sp-related { display: flex; flex-direction: column; gap: 8px; }
.sp-related-title {
  font-size: .68rem; font-weight: 800; text-transform: uppercase; letter-spacing: .12em;
  color: var(--faint);
}
.sp-related-card {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px;
  border: 1px solid var(--line); border-radius: 12px; background: var(--card, #fff);
  text-decoration: none;
  transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.sp-related-card:hover {
  border-color: var(--sp-accent, var(--primary)); transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(79, 70, 229, .14);
}
.sp-related-logo {
  width: 38px; height: 38px; border-radius: 10px; flex: none;
  background: var(--sp-accent, #4f46e5); color: #fff; font-weight: 800; font-size: 1rem;
  display: grid; place-items: center;
}
.sp-related-body { display: flex; flex-direction: column; min-width: 0; }
.sp-related-name { font-weight: 700; font-size: .88rem; color: var(--ink); }
.sp-related-tag {
  font-size: .74rem; color: var(--muted);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 150px;
}
.sp-related-go { margin-left: auto; color: var(--muted); font-weight: 700; transition: transform .18s ease, color .18s ease; }
.sp-related-card:hover .sp-related-go { transform: translateX(3px); color: var(--sp-accent, var(--primary)); }
.sp-related-cta { margin-top: 2px; width: 100%; justify-content: center; }

/* article typography */
.sp-article { min-width: 0; }
.sp-sec { margin: 0 0 8px; }
.sp-sec + .sp-sec { margin-top: 38px; }
.sp-sec-head { display: flex; align-items: baseline; gap: 14px; margin: 0 0 14px; }
.sp-num {
  font-size: clamp(2rem, 4vw, 2.6rem); font-weight: 800; line-height: 1;
  letter-spacing: -.04em; color: var(--sp-accent, var(--primary));
  opacity: .22; flex: 0 0 auto; user-select: none;
  transition: opacity .25s ease, transform .25s ease;
}
.sp-sec-head:hover .sp-num { opacity: .55; transform: translateY(-2px); }
.sp-sec-head h2 {
  margin: 0; font-size: clamp(1.28rem, 2.6vw, 1.55rem);
  letter-spacing: -.02em; line-height: 1.2; color: var(--ink);
}
.sp-p { font-size: .96rem; line-height: 1.72; color: var(--ink-2); margin: 0 0 14px; }
.sp-p-lead { font-size: 1.1rem; line-height: 1.65; color: var(--ink); font-weight: 500; }
.sp-p a, .sp-list a, .sp-note a, .sp-faq-item a { color: var(--sp-accent, var(--primary)); font-weight: 600; text-decoration: none; border-bottom: 1px solid transparent; transition: border-color .15s ease; }
.sp-p a:hover, .sp-list a:hover, .sp-note a:hover, .sp-faq-item a:hover { border-bottom-color: currentColor; }
.sp-list { margin: 0 0 16px; padding-left: 0; list-style: none; }
.sp-list li {
  position: relative; padding-left: 26px; margin: 10px 0;
  font-size: .95rem; line-height: 1.65; color: var(--ink-2);
}
.sp-list li::before {
  content: ''; position: absolute; left: 4px; top: .55em;
  width: 8px; height: 8px; border-radius: 3px;
  background: var(--sp-accent, var(--primary)); opacity: .7;
  transform: rotate(45deg);
}
.sp-emph li { font-size: 1.02rem; font-weight: 600; color: var(--ink); }
.sp-steps { counter-reset: spstep; }
.sp-steps li { counter-increment: spstep; }
.sp-steps li::before {
  content: counter(spstep); width: 20px; height: 20px; border-radius: 50%;
  font-size: .68rem; font-weight: 800; display: flex; align-items: center; justify-content: center;
  background: var(--sp-accent-soft, var(--primary-soft)); color: var(--sp-accent, var(--primary));
  transform: none; opacity: 1; top: .3em;
}
.sp-note {
  background: var(--sp-accent-soft, var(--primary-soft));
  border: 1px solid var(--line); border-radius: 14px;
  padding: 14px 18px; font-size: .9rem; line-height: 1.6; color: var(--ink-2);
  margin: 18px 0;
}
.sp-quote {
  margin: 24px 0; padding: 18px 22px;
  border-left: 3px solid var(--sp-accent, var(--primary));
  background: var(--surface-2); border-radius: 0 14px 14px 0;
  font-size: 1.05rem; font-weight: 500; font-style: italic; color: var(--ink);
  line-height: 1.55;
}

/* cards grids */
.sp-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; margin: 6px 0 8px; }
.sp-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 18px;
  padding: 22px 20px; box-shadow: var(--sh-sm);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.sp-card h3 { margin: 12px 0 6px; font-size: 1.02rem; letter-spacing: -.01em; }
.sp-card p { margin: 0; font-size: .86rem; line-height: 1.55; color: var(--muted); }
.sp-card-ico {
  width: 38px; height: 38px; border-radius: 12px; flex: 0 0 auto;
  background: var(--sp-accent-soft, var(--primary-soft)); color: var(--sp-accent, var(--primary));
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: .95rem;
}
.sp-card-link { text-decoration: none; color: inherit; display: block; }
.sp-card-link:hover { transform: translateY(-3px); box-shadow: var(--sh); border-color: var(--sp-accent, var(--primary)); }

/* forms */
.sp-form { margin-top: 8px; }
.sp-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.sp-field { display: block; margin: 0 0 14px; }
.sp-field > span {
  display: block; font-size: .78rem; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 6px;
}
.sp-field > span b { color: var(--red); }
.sp-field input, .sp-field select, .sp-field textarea {
  width: 100%; font: inherit; font-size: .92rem; color: var(--ink);
  background: var(--surface); border: 1.5px solid var(--line);
  border-radius: 12px; padding: 11px 14px; outline: none;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.sp-field input:focus, .sp-field select:focus, .sp-field textarea:focus {
  border-color: var(--sp-accent, var(--primary)); box-shadow: var(--ring);
}
.sp-field textarea { resize: vertical; line-height: 1.55; }
.sp-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.sp-form-foot { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin-top: 6px; }
.sp-form-note { margin: 0; font-size: .8rem; color: var(--muted); max-width: 380px; line-height: 1.5; }
.sp-form-status { margin: 16px 0 0; padding: 13px 16px; border-radius: 12px; font-size: .9rem; font-weight: 500; }
.sp-form-status.ok { background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; }
.sp-form-status.err { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }

/* FAQ details */
.sp-faq { display: flex; flex-direction: column; gap: 10px; margin: 4px 0 8px; }
.sp-faq-item {
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  padding: 0; overflow: hidden; transition: border-color .2s ease;
}
.sp-faq-item[open] { border-color: var(--sp-accent, var(--primary)); }
.sp-faq-item summary {
  cursor: pointer; list-style: none; padding: 15px 44px 15px 18px;
  font-weight: 650; font-size: .95rem; color: var(--ink); position: relative;
  transition: background .15s ease;
}
.sp-faq-item summary::-webkit-details-marker { display: none; }
.sp-faq-item summary::after {
  content: ''; position: absolute; right: 18px; top: 50%;
  width: 8px; height: 8px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
  transform: translateY(-70%) rotate(45deg); transition: transform .25s ease;
}
.sp-faq-item[open] summary::after { transform: translateY(-30%) rotate(225deg); }
.sp-faq-item summary:hover { background: var(--surface-2); }
.sp-faq-item p { margin: 0; padding: 0 18px 16px; font-size: .9rem; line-height: 1.65; color: var(--muted); }

/* categories grid */
.sp-cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(235px, 1fr)); gap: 14px; margin-top: 6px; }
.sp-cat-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px;
  padding: 18px 18px 14px; display: flex; flex-direction: column; gap: 8px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.sp-cat-card:hover { transform: translateY(-3px); box-shadow: var(--sh); border-color: var(--sp-accent, var(--primary)); }
.sp-cat-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.sp-cat-top h3 { margin: 0; font-size: .98rem; letter-spacing: -.01em; }
.sp-cat-count {
  font-size: .72rem; font-weight: 800; padding: 3px 9px; border-radius: 999px;
  background: var(--sp-accent-soft, var(--primary-soft)); color: var(--sp-accent, var(--primary));
  white-space: nowrap;
}
.sp-cat-apps { list-style: none; margin: 0; padding: 0; flex: 1; }
.sp-cat-apps li { margin: 4px 0; }
.sp-cat-apps a {
  font-size: .82rem; color: var(--muted); text-decoration: none;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block;
  transition: color .15s ease, padding-left .15s ease;
}
.sp-cat-apps a:hover { color: var(--sp-accent, var(--primary)); padding-left: 3px; }
.sp-cat-empty { margin: 0; font-size: .8rem; color: var(--faint); flex: 1; }
.sp-cat-browse {
  font-size: .8rem; font-weight: 700; color: var(--sp-accent, var(--primary));
  text-decoration: none; padding-top: 8px; border-top: 1px dashed var(--line);
  transition: letter-spacing .18s ease;
}
.sp-cat-card:hover .sp-cat-browse { letter-spacing: .02em; }

/* status board */
.sp-status-board { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; margin-top: 6px; }
.sp-status-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px;
  padding: 18px 20px; box-shadow: var(--sh-sm);
}
.sp-status-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.sp-status-head h3 { margin: 0; font-size: .98rem; }
.sp-status-desc { margin: 0 0 8px; font-size: .84rem; line-height: 1.55; color: var(--muted); }
.sp-status-desc a, .sp-status-meta a { color: var(--sp-accent, var(--primary)); font-weight: 600; text-decoration: none; }
.sp-status-meta { margin: 0; font-size: .76rem; color: var(--faint); }
.sp-status-pill {
  font-size: .72rem; font-weight: 700; padding: 4px 11px; border-radius: 999px;
  white-space: nowrap; transition: background .3s ease, color .3s ease;
}
.sp-pill-ok   { background: #ecfdf5; color: #047857; }
.sp-pill-down { background: #fef2f2; color: #b91c1c; }
.sp-pill-info { background: var(--surface-2); color: var(--muted); }

/* reveal targets already use .reveal from the base system */
.reveal-sp.reveal { opacity: 0; transform: translateY(18px); transition: opacity .55s ease, transform .55s ease; }
.reveal-sp.reveal.in { opacity: 1; transform: none; }

@media (max-width: 1080px) {
  /* minmax(0,1fr): a plain 1fr auto-min equals the rail min-content (nowrap TOC chips
     sum to ~1.5-2.5k px) which explodes the single-column track on mobile */
  .sp-main-toc { grid-template-columns: minmax(0, 1fr); }
  .sp-main-toc .sp-article, .sp-main-toc .sp-related { grid-column: auto; grid-row: auto; }
  .sp-related { max-width: 440px; }
  .sp-main-toc .sp-toc { position: static; margin: 0 0 6px; }
  .sp-main-toc .sp-side { position: static; max-height: none; overflow: visible; }
  .sp-toc-inner {
    border-left: 0; border-bottom: 1px solid var(--line);
    padding: 0 0 10px; flex-direction: row; gap: 4px;
    overflow-x: auto; -webkit-overflow-scrolling: touch;
  }
  .sp-toc-title { display: none; }
  .sp-toc a {
    margin-left: 0; padding: 6px 12px; border-left: 0; border-bottom: 2px solid transparent;
    border-radius: 8px 8px 0 0; white-space: nowrap; font-size: .78rem;
  }
  .sp-toc a.on { border-left-color: transparent; border-bottom-color: var(--sp-accent, var(--primary)); background: var(--sp-accent-soft, var(--primary-soft)); }
}
@media (max-width: 640px) {
  .sp-main { padding: 24px 16px 24px; }
  .sp-form-row { grid-template-columns: 1fr; }
  .sp-form-foot { flex-direction: column; align-items: stretch; }
  .sp-form-foot .btn { width: 100%; }
  .sp-cat-grid, .sp-status-board { grid-template-columns: 1fr; }
  .sp-sec-head { gap: 10px; }
  .sp-num { font-size: 1.7rem; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal-sp.reveal { opacity: 1; transform: none; transition: none; }
  .sp-live-pill::before { animation: none; }
  .sp-card-link, .sp-cat-card { transition: none; }
}

/* ---------- install wizard: payment boxes (kv tables + spec summary) ---------- */
.pay-kv {
  width: 100%; border-collapse: collapse; font-size: .86rem; margin: 0 0 4px;
}
.pay-kv th {
  text-align: left; padding: 9px 0; font-size: .72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .07em; color: var(--faint);
  border-bottom: 1px solid var(--line); white-space: nowrap; width: 42%; vertical-align: top;
  padding-top: 11px;
}
.pay-kv td {
  padding: 9px 0 9px 16px; color: var(--ink); font-weight: 600; font-size: .88rem;
  border-bottom: 1px solid var(--line); vertical-align: top; line-height: 1.4;
}
.pay-kv tr:last-child th, .pay-kv tr:last-child td { border-bottom: 0; }
.pay-kv td .spec-sub {
  display: block; font-weight: 400; font-size: .72rem; color: var(--muted);
  margin-top: 3px; letter-spacing: 0; text-transform: none;
}

/* spec summary (pay-spec-box) — typography-led */
.spec-head { margin-bottom: 12px; }
.spec-apps {
  font-size: .95rem; font-weight: 700; letter-spacing: -.01em; color: var(--ink);
  line-height: 1.35; word-break: break-word;
}
.spec-apps-sub {
  font-size: .7rem; font-weight: 700; color: var(--faint);
  text-transform: uppercase; letter-spacing: .1em; margin-top: 3px;
}
.spec-hero {
  font-family: var(--mono, ui-monospace, SFMono-Regular, Menlo, monospace);
  font-size: 1.22rem; font-weight: 700; letter-spacing: -.02em; color: var(--ink);
  background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px;
  padding: 13px 16px; margin-bottom: 14px; text-align: center; line-height: 1.25;
}
.spec-hero em {
  display: block; font-style: normal; font-family: Inter, system-ui, sans-serif;
  font-size: .68rem; font-weight: 700; color: var(--faint);
  text-transform: uppercase; letter-spacing: .12em; margin-bottom: 5px;
}
.spec-hero i { font-style: normal; color: var(--faint); font-weight: 400; padding: 0 2px; }
.spec-total {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  margin-top: 12px; padding-top: 12px; border-top: 2px solid var(--ink);
}
.spec-total span {
  font-size: .72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .08em; color: var(--muted);
}
.spec-total b {
  font-size: 1.18rem; font-weight: 800; letter-spacing: -.02em; color: var(--ink);
  font-family: var(--mono, ui-monospace, SFMono-Regular, Menlo, monospace);
}
@media (max-width: 640px) {
  .spec-hero { font-size: 1rem; padding: 11px 12px; }
  .pay-kv th { width: 38%; }
}

/* ---------- admin catalog: calmer stat cards + compact table ---------- */
#catalog-stat-grid .stat { padding: 13px 16px; }
#catalog-stat-grid .stat .label { font-size: .72rem; letter-spacing: .07em; }
#catalog-stat-grid .stat .value {
  font-size: 1.38rem;
  font-weight: 700;
  letter-spacing: -.015em;
  font-variant-numeric: tabular-nums;
  line-height: 1.25;
}
#catalog-stat-grid .stat .delta { font-weight: 500; color: var(--muted); font-size: .76rem; }
#catalog-app td { padding: .5rem .6rem; vertical-align: middle; }
#catalog-app td.num-cell { text-align: right; font-variant-numeric: tabular-nums; }
#catalog-app th:nth-child(3) { text-align: right; }
#catalog-app .ellipsis-row { max-width: 340px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#catalog-toolbar .input { border-radius: 10px; }
#pg-tbody .kebab-menu, #cat-tbody .kebab-menu { min-width: 158px; }

/* ---------- install wizard: template wireframe placeholder cards ---------- */
.wf-art {
  background: var(--surface-2, #f6f8fc);
  border: 1px solid var(--line-2, #e4e9f2);
  border-radius: 12px;
  padding: 14px;
}
.wf-top { height: 36px; border-radius: 8px; background: linear-gradient(135deg, #e8edf7, #f3f6fc); margin-bottom: 12px; }
.wf-line { height: 9px; border-radius: 5px; background: #e6ebf4; margin-bottom: 8px; }
.wf-line.w70 { width: 70%; } .wf-line.w45 { width: 45%; } .wf-line.w90 { width: 90%; }
.wf-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.wf-cols.wf-hero { grid-template-columns: 2fr 1fr; margin-top: 0; margin-bottom: 12px; }
.wf-cols span { display: block; height: 46px; border-radius: 8px; background: #eef2f9; border: 1px dashed #d5dcea; }

/* ---------- /apps search-result summary strip ---------- */

/* ============================================================
   v7 — responsive redesign batch A
   1) .grid-main: the dashboards' 2fr/1fr split was inline styles,
      which media queries can never override; now it collapses 1col ≤900.
   2) .side-scrim: backdrop for the off-canvas mobile sidebar (JS toggles .on).
   3) .chip-rail: category chips become a swipeable snap rail ≤900 instead
      of a 6-row wrapping block that pushed the catalog grid off-screen.
   ============================================================ */
.grid-main { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); align-items: start; }
.grid-split { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); align-items: start; }
.side-scrim { position: fixed; inset: 0; z-index: 79; background: rgba(23, 26, 43, .45); opacity: 0; pointer-events: none; transition: opacity .22s ease; }
.side-scrim.on { opacity: 1; pointer-events: auto; }
@media (max-width: 900px) {
  .grid-main, .grid-split { grid-template-columns: minmax(0, 1fr); }
  .chip-rail {
    flex-wrap: nowrap; overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x proximity; padding-bottom: 4px;
    -webkit-overflow-scrolling: touch; scrollbar-width: thin;
  }
  .chip-rail .chip { flex: 0 0 auto; scroll-snap-align: start; }
}

/* ============================================================
   v7 — responsive redesign batch B (interaction & motion polish)
   1) wizard panes fade/slide in on every step change
   2) .wstep-caption: "Step N of 6 · Label" pill on mobile, where the
      whole .wizard-steps rail is hidden by the 640px rule
   3) touch targets ≥40-44px on small screens (tabs, kebab, chips, icon btns)
   4) visible keyboard focus ring site-wide
   5) toast docks bottom-center + safe-area on mobile
   6) app-detail "Verified template" pill unhidden (v4 rule keeps the
      25px check-icon variant hidden on catalog cards — cards unaffected)
   ============================================================ */
.wizard-pane.on { animation: paneIn .25s ease both; }
@keyframes paneIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.wstep-caption { display: none; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
#app-detail-badge.badge-verified { display: inline-flex; width: auto; height: auto; padding: 3px 10px; }
@media (max-width: 640px) {
  .wstep-caption {
    display: flex; align-items: center; justify-content: center;
    margin: 0 0 24px; font-size: .85rem; font-weight: 700;
    color: var(--primary-600); background: var(--primary-soft);
    border-radius: 999px; padding: 9px 16px; text-align: center;
  }
  .tab { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; }
  .kebab-btn { width: 40px; height: 40px; }
  .chip { min-height: 40px; }
  .btn-icon { width: 42px; height: 42px; }
  .toast { left: 16px; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); justify-content: center; }
}

/* ============================================================
   v7 — responsive redesign batch C (tables → cards ≤640)
   Scoped via :has(td[data-label]) so only the three redesigned
   renderers (instances / provisioning orders / admin queue) transform;
   every other legacy table keeps its horizontal-scroll behaviour.
   Browsers without :has() simply keep the scroll fallback.
   ============================================================ */
@media (max-width: 640px) {
  .table-wrap:has(td[data-label]) { overflow-x: visible; background: none; border: 0; border-radius: 0; }
  .table-wrap:has(td[data-label]) table,
  .table-wrap:has(td[data-label]) tbody,
  .table-wrap:has(td[data-label]) tr,
  .table-wrap:has(td[data-label]) td { display: block; width: auto; }
  .table-wrap:has(td[data-label]) thead { display: none; }
  .table-wrap:has(td[data-label]) tbody tr {
    background: var(--surface); border: 1px solid var(--line);
    border-radius: var(--r); padding: 12px 14px; margin-bottom: 12px;
    box-shadow: var(--sh-sm);
  }
  .table-wrap:has(td[data-label]) tbody td { padding: 4px 0; border: 0; overflow-wrap: anywhere; }
  .table-wrap:has(td[data-label]) tbody tr:hover td { background: transparent; }
  .table-wrap:has(td[data-label]) td[data-label]::before {
    content: attr(data-label); display: inline-block; min-width: 84px;
    font-size: .68rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: .06em; color: var(--faint); margin-right: 8px;
    vertical-align: middle;
  }
  .table-wrap:has(td[data-label]) td:last-child .flex { justify-content: flex-start !important; margin-top: 8px; }
}

/* ============================================================
   requested tweaks
   1) hero search: hide the redundant "Search" link-button (focusing the
      input opens the search modal; #index-btn has no JS handlers)
   2) hamburger hidden on every public page's mobile topbar — home,
      catalog (/apps) and app detail (/app/{slug}). #nav-toggle is
      injected by cn.js on all public pages, so scope via body[data-page];
      the shell attribute keeps customer pages (same page value) out.
   3) mobile app-cards: Install button = 44px tap target, hug its content
   ============================================================ */
.hero-search a { display: none; }
body[data-page="home"] button#nav-toggle,
body[data-shell="public"][data-page="apps"] button#nav-toggle { display: none; }
body[data-shell="public"][data-page="pricing"] button#nav-toggle { display: none; }
@media (max-width: 640px) {
  .app-card .install .btn {
    width: fit-content;
    min-height: 44px;
    border-radius: 12px;
  }
}

/* ============================================================
   catalog responsive (≤640)
   1) the search field stays visible, field chrome cloned from .hero-search
      (same pill radius/padding/gap/shadow/icon size/input type scale;
      focus feedback suppressed to match the homepage field exactly)
   2) live in-place filtering with sticky field + inline clear
   3) filter UI (button + popup) hidden on mobile per request — chips are
      reparented into the never-displayed .filter-pop, so nothing shows;
      641px–1440px keep the inline chips exactly as before
   ============================================================ */
.cat-filters { display: none; position: relative; }
.q-clear { display: none; }
.filter-pop {
  position: absolute; top: calc(100% + 8px); right: 0; z-index: 75;
  width: min(330px, calc(100vw - 44px)); max-height: min(60vh, 460px); overflow-y: auto;
  background: var(--surface); border: 1px solid var(--line-2); border-radius: 16px;
  box-shadow: var(--sh-lg); padding: 14px;
}
.fp-label {
  font-size: .68rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .07em; color: var(--faint); margin: 12px 0 7px;
}
.fp-label:first-child { margin-top: 0; }
.filter-badge {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 17px; height: 17px; padding: 0 5px; margin-left: 3px;
  border-radius: 999px; background: var(--primary); color: #fff;
  font-size: .64rem; font-weight: 700; line-height: 1;
}
.filter-badge[hidden] { display: none; }
@media (max-width: 640px) {
  #catalog .topbar-search {
    display: flex; align-items: center; gap: 8px;
    background: var(--surface); border: 1px solid var(--line-2);
    border-radius: 999px; padding: 10px 12px; box-shadow: var(--sh-lg);
  }
  #catalog .topbar-search:hover, #catalog .topbar-search:focus-within {
    border-color: var(--line-2); box-shadow: var(--sh-lg);
  }
  #catalog .topbar-search input { min-width: 0; width: auto; flex: 1 1 0; font-size: 1.02rem; }
  #catalog .topbar-search svg { width: 20px; height: 20px; color: var(--faint); }
  /* live in-place filtering: field stays pinned under the sticky
     header (68px nav) while scrolling the filtered listing */
  #catalog-toolbar { position: sticky; top: 68px; z-index: 65; background: var(--bg); }
  .q-clear {
    display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto;
    width: 30px; height: 30px; border: 0; border-radius: 999px;
    background: var(--surface-2); color: var(--muted);
    font-size: 1.1rem; line-height: 1; cursor: pointer;
  }
  .q-clear:active { background: #e2e7f4; }
  .q-clear[hidden] { display: none; }
  /* app-detail hero card: the nowrap logo/title groups (min-width:auto) spill
     past the card edge once name+badge exceed the 273px content width —
     let them wrap so the box always contains its content */
  #app-detail-div { flex-wrap: wrap; }
  #app-detail-n8n { flex-wrap: wrap; }
  /* whole hero card centers on mobile: logo group, name+badge, lead, stats */
  #app-detail-div { justify-content: center; }
  #app-detail-x-5 { text-align: center; }
  #app-detail-n8n { justify-content: center; align-items: center; }
  #app-detail-div-2 { justify-content: center; }
  /* price + Install CTA (mobile): centered stack — From/price/sub, divider,
     full-width 54px button, deploy caption; desktop keeps .text-right layout */
  #app-detail-card .text-right {
    width: 100%; text-align: center;
    padding-top: 18px; border-top: 1px solid var(--line);
  }
  #app-detail-btn {
    width: 100%; min-height: 54px; margin-top: 4px;
    font-size: 1.06rem; font-weight: 700;
  }
  /* filter UI hidden on mobile (requested) — restore with
     .cat-filters { display: block; } + .filter-btn / .filter-pop rules */
}

/* ============ mobile footer link menu — card-style accordion (≤640) ============
   Each link group becomes a rounded panel: 52px header row with a circular
   chevron chip, links at 44px+ touch targets, grid 0fr→1fr height animation.
   Appended at EOF so these rules win every equal-specificity ≤640 footer rule
   (grid gap, h4 margins) regardless of where those were declared. */
@media (max-width: 640px) {
  /* single-column footer: brand + all 3 link groups stack full width */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 14px;
    align-items: start;
  }
  .footer-grid > div:first-child { grid-column: 1; grid-row: auto; margin-bottom: 0; }
  .footer-col { grid-column: 1; }
  .footer-col:nth-child(2) { grid-row: auto; }
  .footer-col:nth-child(3) { grid-row: auto; }
  .footer-col:nth-child(4) { grid-row: auto; }
  .footer .brand-desc { max-width: 100%; font-size: .84rem; line-height: 1.6; }
  .footer .brand img, .footer .brand svg { max-width: 100%; height: auto; }
  .footer .status-pill { max-width: 100%; flex-wrap: wrap; font-size: .72rem; }
  .footer-col {
    background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(255, 255, 255, .09);
    border-radius: 12px;
    padding: 0 13px;
  }
  .footer .footer-toggle {
    display: flex; align-items: center; justify-content: space-between;
    min-height: 52px; cursor: pointer; user-select: none;
    margin-bottom: 0; font-size: .9rem;
    transition: opacity .2s ease, margin-bottom .25s ease;
  }
  .footer .footer-toggle:active { opacity: .7; }
  .footer .footer-col.open .footer-toggle { margin-bottom: 4px; }
  .footer .footer-toggle:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
  .footer .f-caret {
    display: inline-block; flex: none; position: relative; margin-top: 0;
    width: 28px; height: 28px; border-radius: 50%;
    background: rgba(255, 255, 255, .08); border: none; transform: none;
    transition: background .25s ease;
  }
  .footer .f-caret::before {
    content: ""; position: absolute; left: 10px; top: 9px; width: 7px; height: 7px;
    border-right: 2px solid #cfd5e6; border-bottom: 2px solid #cfd5e6;
    transform: rotate(45deg); transition: transform .3s ease, top .3s ease;
  }
  .footer .footer-col.open .f-caret::before { transform: rotate(-135deg); top: 12px; }
  .footer .footer-links {
    display: grid; grid-template-rows: 0fr; opacity: 0;
    transition: grid-template-rows .32s ease, opacity .2s ease;
  }
  .footer .footer-links > div { overflow: hidden; min-height: 0; }
  .footer .footer-col.open .footer-links { grid-template-rows: 1fr; opacity: 1; }
  .footer .footer-links a { padding: 12px 0; font-size: .93rem; }
}

/* ---------------- instance ops modal (health · backups · updates · activity) ---------------- */
@keyframes opsIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@keyframes opsPulse { 0%, 100% { opacity: .35; transform: scale(.8); } 50% { opacity: 1; transform: scale(1.15); } }
.ops-modal { max-width: min(680px, calc(100vw - 24px)) !important; max-height: calc(100dvh - 32px); overflow: auto; }
.ops-modal .tabs { flex-wrap: wrap; gap: 6px; }
.ops-modal .tab { display: inline-flex; align-items: center; gap: 6px; }
.ops-modal .tab svg { width: 15px; height: 15px; }
.ops-srow { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid rgba(148, 163, 184, .28); border-radius: 12px; background: rgba(148, 163, 184, .07); }
.ops-switch { display: inline-flex; align-items: center; cursor: pointer; user-select: none; flex: 0 0 auto; position: relative; }
.ops-switch input { position: absolute; opacity: 0; width: 40px; height: 22px; margin: 0; cursor: pointer; }
.ops-slider { width: 40px; height: 22px; border-radius: 11px; background: #cbd5e1; position: relative; transition: background .2s ease; flex: 0 0 auto; display: inline-block; }
.ops-slider::after { content: ''; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .28); transition: transform .2s cubic-bezier(.4, 0, .2, 1); }
.ops-switch input:checked + .ops-slider { background: var(--primary, #4f46e5); }
.ops-switch input:checked + .ops-slider::after { transform: translateX(18px); }
.ops-switch input:focus-visible + .ops-slider { outline: 2px solid var(--primary, #4f46e5); outline-offset: 2px; }
.ops-event { padding: 9px 0; border-bottom: 1px solid rgba(148, 163, 184, .18); animation: opsIn .28s ease-out; }
.ops-event:last-child { border-bottom: 0; }
.ops-ev-ico { width: 30px; height: 30px; border-radius: 9px; background: rgba(148, 163, 184, .16); display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.ops-ev-ico svg { width: 15px; height: 15px; }
.ops-pulse { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #16a34a; animation: opsPulse 1.5s ease-in-out infinite; vertical-align: middle; margin-right: 4px; }
.ops-jobrow { padding: 6px 0; border-bottom: 1px dashed rgba(148, 163, 184, .22); }
.ops-jobrow:last-child { border-bottom: 0; }
@media (max-width: 560px) {
  .ops-modal .tab { flex: 1 1 40%; justify-content: center; font-size: 12.5px; padding: 7px 8px; }
  .ops-srow { flex-wrap: wrap; }
}
/* -- ops console: icon sizing for modal + instance-page embed (bare svgs stretch in flex rows) -- */
.ops-modal svg, .ops-embed svg { width: 16px; height: 16px; }
.ops-modal .tab svg, .ops-embed .tab svg { width: 15px; height: 15px; }
/* -- topbar quick-actions kebab: View site · Notifications · Help -- */
.topbar-kebab { vertical-align: middle; }
.topbar-kebab .kebab-menu { min-width: 200px; padding: 8px; gap: 4px; }
/* flex only while open — a bare display:flex here would out-specify .kebab-menu{display:none} and show it by default */
.kebab.open > .topbar-kebab .kebab-menu { display: flex; flex-direction: column; }
.topbar-kebab .kebab-menu > * { width: 100%; margin: 0; display: flex; align-items: center; gap: 8px; justify-content: flex-start; }
.kebab-dot { position: absolute; top: -3px; right: -3px; width: 10px; height: 10px; border-radius: 50%; background: #ef4444; border: 2px solid var(--surface, #fff); z-index: 1; }

/* power-schedule modal — body is a form, NOT the .gsearch-in search row (that one is a nowrap flex strip) */
.sched-body { display: block; width: 100%; max-width: 430px; padding: 20px 22px 22px; }
.sched-body .flex.gap-10 { flex-wrap: wrap; }
.sched-body .flex.between.center { gap: 10px; }
/* weekly rows: label · day select · time select — keep the card width stable */
.sched-row { display: flex; align-items: center; gap: 8px; }
.sched-row-label { flex: 0 0 auto; min-width: 132px; }
.sched-row-label svg { width: 17px; height: 17px; color: var(--primary); flex: 0 0 auto; }
.sched-row select.input { flex: 0 0 auto; min-width: 92px; }
.sched-row input[type="time"].input { flex: 1 1 auto; min-width: 96px; }
.sched-mode { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 2px; border-bottom: 1px dashed var(--line); cursor: pointer; }
.sched-mode:last-of-type { border-bottom: 0; }
.sched-mode input[type="radio"] { flex: 0 0 auto; width: 16px; height: 16px; accent-color: var(--primary); }
#sched-times { flex-wrap: wrap; }
/* topbar quick-actions kebab: anchored by CSS, never wider than the viewport */
/* PAYG Cloudflare attention strip — deliberate "stop and look" treatment:
   amber→orange gradient, slow pulse on the icon, sticky-feel border. */
.cf-attention { margin: 0 0 22px; }
.cf-attention[hidden] { display: none; }
.cf-attn-card {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  padding: 16px 18px; border-radius: 14px;
  background: linear-gradient(120deg, #fff7ed 0%, #ffedd5 55%, #fef3c7 100%);
  border: 1.5px solid #f59e0b;
  box-shadow: 0 6px 22px -10px rgba(245, 158, 11, .55);
  animation: cf-attn-in .45s cubic-bezier(.22, 1, .36, 1);
}
.cf-attn-icon {
  flex: 0 0 auto; display: grid; place-items: center; width: 44px; height: 44px;
  border-radius: 12px; color: #b45309; background: #fff;
  box-shadow: 0 2px 8px -3px rgba(180, 83, 9, .5);
  animation: cf-attn-pulse 2.2s ease-in-out infinite;
}
.cf-attn-body { flex: 1 1 300px; display: flex; flex-direction: column; gap: 4px; min-width: 240px; }
.cf-attn-body b { color: #92400e; font-size: .95rem; }
.cf-attn-body .small { color: #a16207; line-height: 1.45; }
.cf-attn-actions { display: flex; gap: 8px; flex: 0 0 auto; flex-wrap: wrap; }
@keyframes cf-attn-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
@keyframes cf-attn-pulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(245, 158, 11, .45); }
  50% { transform: scale(1.07); box-shadow: 0 0 0 9px rgba(245, 158, 11, 0); }
}
@media (max-width: 640px) {
  .cf-attn-card { align-items: flex-start; padding: 14px; }
  .cf-attn-actions { width: 100%; }
  .cf-attn-actions .btn { flex: 1 1 auto; }
}

.topbar-kebab .kebab-menu { right: 0; left: auto; max-width: calc(100vw - 24px); }
.kebab-menu .btn { justify-content: flex-start; }
@media (max-width: 480px) {
  .gsearch-back { padding: max(12px, 4vh) 12px 16px; }
  .gsearch { border-radius: 16px; }
  .sched-body { max-width: none; padding: 16px 16px 18px; }
  #sched-times input[type="time"] { flex: 1 1 100%; }
  #sched-times .small { width: 100%; text-align: center; }
}

/* ---- requested layout rules ---- */
.kebab-menu {
    width: 200px;
}

.sched-body {
    max-width: 100% !important;
}

.sched-body svg {
    width: 20px;
}

div#dashboard-our-cloud, #dashboard-div, #dashboard-github {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

/* notification dropdown (#notif-dd): anchored under the topbar kebab, animated exit */
.notif-dd {
    position: fixed;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: 0 16px 48px rgba(16, 24, 40, .18);
    z-index: 95;
    width: 360px;
    max-width: calc(100vw - 24px);
    max-height: min(460px, calc(100vh - 96px));
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: notif-in .18s cubic-bezier(.22, 1, .36, 1);
}

.notif-dd.notif-out {
    animation: notif-out .16s ease forwards;
}

@keyframes notif-in {
    from { opacity: 0; transform: translateY(-8px) scale(.98); }
    to { opacity: 1; transform: none; }
}

@keyframes notif-out {
    to { opacity: 0; transform: translateY(-6px) scale(.98); }
}

.kebab-menu {
    max-width: fit-content;
}

/* ============ sched modal redesign (typography / layout / animation) ============ */
.gsearch .sched-body { animation: sched-in .3s cubic-bezier(.22, 1, .36, 1) both; }
@keyframes sched-in {
  from { opacity: 0; transform: translateY(16px) scale(.97); }
  to { opacity: 1; transform: none; }
}
.sched-head { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 14px; }
.sched-head-ico {
  width: 38px; height: 38px; flex: 0 0 auto; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--primary, #6366f1), #8b5cf6); color: #fff;
  box-shadow: 0 8px 20px rgba(99, 102, 241, .35);
  animation: sched-ico-in .4s cubic-bezier(.22, 1, .36, 1) both;
}
@keyframes sched-ico-in { from { opacity: 0; transform: rotate(-12deg) scale(.6); } to { opacity: 1; transform: none; } }
.sched-head-ico svg { width: 20px; height: 20px; }
.sched-head-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.sched-head-txt b { font-size: 1.02rem; letter-spacing: -.01em; }
.sched-head-txt .tiny { line-height: 1.45; }
.sched-body .sched-row {
  display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  background: #f8fafc; border: 1px solid var(--line, #e5e7eb); border-radius: 14px; padding: 13px 14px;
  transition: border-color .18s, box-shadow .18s, transform .18s;
  animation: sched-row-in .35s cubic-bezier(.22, 1, .36, 1) both;
}
.sched-body .sched-row-1 { animation-delay: .05s; }
.sched-body .sched-row-2 { animation-delay: .12s; }
@keyframes sched-row-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.sched-body .sched-row:hover { border-color: #c7d2fe; box-shadow: 0 8px 22px rgba(99, 102, 241, .1); transform: translateY(-1px); }
.sched-body .sched-row-label { display: flex; align-items: center; gap: 10px; min-width: 150px; flex: 0 0 auto; }
.sched-ico {
  width: 34px; height: 34px; border-radius: 10px; flex: 0 0 auto;
  display: flex; align-items: center; justify-content: center;
}
.sched-ico.pause { background: #fef3c7; color: #b45309; }
.sched-ico.play { background: #dcfce7; color: #15803d; }
.sched-body .sched-ico svg { width: 20px; height: 20px; }
.sched-row-txt { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.sched-row-txt b { font-size: .86rem; letter-spacing: -.005em; }
.sched-row-txt i { font-style: normal; font-size: .7rem; color: var(--faint, #94a3b8); letter-spacing: .02em; }
.sched-ctl { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.sched-ctl .input { width: auto; min-width: 96px; }
.sched-ctl select.input { min-width: 104px; }
.sched-ctl input[type="time"].input {
  min-width: 112px; font-variant-numeric: tabular-nums; font-weight: 600; font-size: .95rem;
}
.sched-preview {
  margin: 12px 0 0; font-size: .78rem; line-height: 1.5; color: var(--faint, #64748b);
  background: var(--primary-soft, #eef2ff); border: 1px solid transparent; border-radius: 10px; padding: 8px 12px;
  animation: sched-prev-in .3s .2s both;
}
.sched-preview:empty { display: none; }
@keyframes sched-prev-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.sched-foot { display: flex; align-items: center; gap: 10px; margin-top: 14px; }
.sched-foot #sched-save { margin-left: auto; padding-left: 22px; padding-right: 22px; font-weight: 700; }
@media (max-width: 560px) {
  .sched-body .sched-row { flex-direction: column; align-items: stretch; }
  .sched-body .sched-row-label { min-width: 0; }
  .sched-ctl .input { flex: 1 1 auto; }
}
@media (prefers-reduced-motion: reduce) {
  .gsearch .sched-body, .sched-body .sched-row, .sched-head-ico, .sched-preview { animation: none; }
}

/* ============ admin-on-customer sidebar notice ============ */
.admin-notice {
  margin: 10px 12px 4px; display: flex; gap: 10px; align-items: flex-start;
  padding: 12px; border-radius: 14px; position: relative; overflow: hidden;
  background: linear-gradient(135deg, #fff7ed 0%, #fdf4ff 55%, #eef2ff 100%);
  border: 1px solid #fdba74;
  box-shadow: 0 8px 24px rgba(249, 115, 22, .14);
  animation: admin-notice-in .5s cubic-bezier(.22, 1, .36, 1) both;
}
.admin-notice::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .8) 45%, transparent 62%);
  transform: translateX(-130%);
  animation: admin-notice-shine 3.4s ease-in-out 1s infinite;
}
@keyframes admin-notice-in { from { opacity: 0; transform: translateY(-14px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes admin-notice-shine { 0%, 55% { transform: translateX(-130%); } 85%, 100% { transform: translateX(130%); } }
.admin-notice-ico {
  width: 30px; height: 30px; flex: 0 0 auto; border-radius: 9px; position: relative; z-index: 1;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #f97316, #a855f7); color: #fff;
  animation: admin-notice-pulse 2.6s ease-in-out infinite;
}
.admin-notice-ico svg { width: 17px; height: 17px; }
@keyframes admin-notice-pulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(249, 115, 22, .4); }
  50% { transform: scale(1.06); box-shadow: 0 0 0 7px rgba(249, 115, 22, 0); }
}
.admin-notice-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; position: relative; z-index: 1; }
.admin-notice-txt b { font-size: .8rem; color: #9a3412; letter-spacing: -.01em; line-height: 1.3; }
.admin-notice-txt .tiny { color: #b45309; opacity: .9; line-height: 1.35; }
@media (prefers-reduced-motion: reduce) {
  .admin-notice, .admin-notice::after, .admin-notice-ico { animation: none; }
}

/* ============ Email business (instance tab + admin card) ============ */
.email-ico-mini {
  width: 34px; height: 34px; border-radius: 10px; flex: 0 0 auto;
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #6366f1, #22d3ee); color: #fff;
  box-shadow: 0 6px 16px rgba(99, 102, 241, .3);
  animation: email-ico-pop .45s cubic-bezier(.34, 1.56, .64, 1) both;
}
@keyframes email-ico-pop { from { opacity: 0; transform: scale(.5) rotate(-14deg); } to { opacity: 1; transform: none; } }
#em .card { animation: email-card-in .38s cubic-bezier(.22, 1, .36, 1) both; }
#em .grid-2 > .card:nth-child(2) { animation-delay: .07s; }
#em #email-dom-card { animation-delay: .14s; }
@keyframes email-card-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.email-status-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.email-plans { display: flex; flex-direction: column; gap: 8px; }
.email-plan {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  border: 1.5px solid var(--line, #e5e7eb); border-radius: 13px; padding: 11px 13px;
  cursor: pointer; background: #fff; transition: border-color .16s, box-shadow .16s, transform .16s;
  animation: email-plan-in .3s cubic-bezier(.22, 1, .36, 1) both;
}
.email-plan:nth-child(2) { animation-delay: .05s; }
.email-plan:nth-child(3) { animation-delay: .1s; }
@keyframes email-plan-in { from { opacity: 0; transform: translateX(-8px); } to { opacity: 1; transform: none; } }
.email-plan:hover { border-color: #a5b4fc; transform: translateY(-1px); }
.email-plan.on {
  border-color: var(--primary, #6366f1); background: var(--primary-soft, #eef2ff);
  box-shadow: 0 6px 18px rgba(99, 102, 241, .16);
}
.email-plan.on::after { content: "✓"; color: var(--primary, #6366f1); font-weight: 800; }
.email-plan b { font-size: .87rem; letter-spacing: -.005em; }
#dashboard-card-email .badge { text-transform: uppercase; letter-spacing: .06em; font-size: .64rem; }
#email-config-modal .grid { margin-top: 4px; }
@media (max-width: 700px) { #em #email-grid { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) {
  .email-ico-mini, #em .card, .email-plan { animation: none; }
}

/* email: one-time password callout + mailbox input */
.email-pw-box {
  background: linear-gradient(135deg, #ecfdf5, #eff6ff); border: 1.5px solid #a7f3d0;
  border-radius: 13px; padding: 10px 12px; margin-bottom: 12px;
  animation: email-card-in .35s cubic-bezier(.22, 1, .36, 1) both;
}
.email-pw-box input { font-family: var(--mono, monospace); letter-spacing: .04em; }
.email-mbox-row .input { font-family: var(--mono, monospace); }
#email-adm-provision { text-align: right; }

/* ---- Provider credit menu (admin sidebar + Provisioning page) ---- */
.credit-dot{display:inline-block;width:8px;height:8px;border-radius:50%;background:#16a34a;box-shadow:0 0 0 0 rgba(22,163,74,.45);animation:creditPulse 2.4s ease-out infinite;flex:none}
.credit-dot.err{background:#ef4444;animation:none;box-shadow:none}
@keyframes creditPulse{0%{box-shadow:0 0 0 0 rgba(22,163,74,.45)}70%{box-shadow:0 0 0 7px rgba(22,163,74,0)}100%{box-shadow:0 0 0 0 rgba(22,163,74,0)}}
/* ---- PAYG "Coming soon" state (install wizard) ---- */
.choice.soon{opacity:.55;position:relative;cursor:not-allowed}
.choice.soon .radio{display:none}
.badge-soon{position:absolute;top:10px;right:14px;background:#fef3c7;color:#92400e;border:1px solid #fcd34d}
.nowrap{white-space:nowrap}

/* ---- install wizard pricing cards: spec grid + motion (v145 redesign) ---- */
.choice[data-group=plan]{position:relative;transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease}
.choice[data-group=plan]:hover{transform:translateY(-3px);box-shadow:0 14px 26px -18px rgba(23,26,43,.55)}
.choice[data-group=plan].on{animation:planPop .34s cubic-bezier(.22,.9,.3,1.25)}
@keyframes planPop{0%{transform:scale(.985)}55%{transform:scale(1.014)}100%{transform:scale(1)}}
@keyframes planIn{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:none}}
.anim-in .choice[data-group=plan]{animation:planIn .34s ease both;animation-delay:calc(var(--i,0)*55ms)}
.spec-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;margin-top:9px}
.spec-cell{background:var(--surface-2);border:1px solid var(--line);border-radius:9px;padding:7px 4px 6px;text-align:center;transition:border-color .18s ease, background .18s ease}
.choice.on .spec-cell{border-color:var(--primary);background:#fff}
.spec-val{display:block;font-weight:800;font-size:.86rem;letter-spacing:.01em;font-variant-numeric:tabular-nums;color:var(--ink);line-height:1.15}
.spec-lbl{display:block;font-size:.58rem;text-transform:uppercase;letter-spacing:.09em;color:var(--muted);margin-top:3px}
.c-price{display:flex;flex-direction:column;align-items:flex-end;justify-content:center;margin-right:12px;white-space:nowrap}
.c-price>b{font-size:1.18rem;font-weight:800;font-variant-numeric:tabular-nums;color:var(--ink);line-height:1.1}
.badge-fit{background:linear-gradient(100deg,var(--primary) 0%,#7c3aed 50%,var(--primary) 100%);background-size:220% 100%;color:#fff;border:0;animation:fitShimmer 3.2s linear infinite}
@keyframes fitShimmer{from{background-position:180% 0}to{background-position:-40% 0}}
@media (prefers-reduced-motion: reduce){
  .choice[data-group=plan],.choice[data-group=plan].on,.anim-in .choice[data-group=plan],.badge-fit{animation:none!important;transition:none!important}
  .choice[data-group=plan]:hover{transform:none}
}

/* ---- step-2 "Total specification" card: hierarchy + motion ---- */
.tspec{display:flex;gap:26px;align-items:stretch;justify-content:space-between;flex-wrap:wrap}
.tspec-side{min-width:0;animation:tsIn .38s ease both}
.tspec-side+.tspec-side{border-left:1px solid var(--line);padding-left:26px}
.tspec .tspec-side:nth-child(2){animation-delay:.09s}
@keyframes tsIn{from{opacity:0;transform:translateY(9px)}to{opacity:1;transform:none}}
.tspec-eyebrow{display:flex;align-items:center;gap:7px;font-size:.6rem;font-weight:800;text-transform:uppercase;letter-spacing:.14em;color:var(--muted)}
.tspec-pip{width:7px;height:7px;border-radius:50%;background:var(--primary);flex:none;animation:tsPip 2.4s ease-out infinite}
.tspec-pip.ok{background:#16a34a;animation-name:tsPipOk}
@keyframes tsPip{0%{box-shadow:0 0 0 0 rgba(79,70,229,.45)}70%{box-shadow:0 0 0 7px rgba(79,70,229,0)}100%{box-shadow:0 0 0 0 rgba(79,70,229,0)}}
@keyframes tsPipOk{0%{box-shadow:0 0 0 0 rgba(22,163,74,.45)}70%{box-shadow:0 0 0 7px rgba(22,163,74,0)}100%{box-shadow:0 0 0 0 rgba(22,163,74,0)}}
.tspec-nums{display:flex;gap:22px;margin-top:10px;align-items:flex-end}
.tspec-num b{display:block;font-size:1.7rem;font-weight:800;line-height:1;letter-spacing:-.01em;font-variant-numeric:tabular-nums;color:var(--ink);animation:tsNum .45s cubic-bezier(.2,.9,.3,1.25) both;animation-delay:calc(var(--i,0)*70ms)}
.tspec-num span{display:block;margin-top:5px;font-size:.58rem;font-weight:700;text-transform:uppercase;letter-spacing:.1em;color:var(--muted)}
@keyframes tsNum{0%{opacity:0;transform:translateY(8px) scale(.9)}60%{opacity:1;transform:translateY(0) scale(1.06)}100%{opacity:1;transform:scale(1)}}
.tspec-sub{margin-top:9px;font-size:.74rem;color:var(--muted);overflow:hidden;text-overflow:ellipsis}
.tspec-plan{display:flex;align-items:baseline;gap:10px;flex-wrap:wrap;margin-top:9px}
.tspec-plan>b{font-size:1.08rem;font-weight:800;color:var(--ink);animation:tsNum .45s .12s cubic-bezier(.2,.9,.3,1.25) both}
.tspec-price{font-size:1.5rem;font-weight:800;color:var(--primary);font-variant-numeric:tabular-nums;animation:tsNum .45s .18s cubic-bezier(.2,.9,.3,1.25) both}
.tspec-price i{font-style:normal;font-size:.72rem;font-weight:600;color:var(--muted);margin-left:2px}

/* ---- responsive: spec card + flat monthly plan cards (mobile) ---- */
@media (max-width: 640px){
  .tspec{flex-direction:column;gap:16px}
  .tspec-side+.tspec-side{border-left:0;border-top:1px solid var(--line);padding-left:0;padding-top:15px}
  .tspec-nums{gap:16px}
  .tspec-num b{font-size:1.5rem}
  .choice[data-group=plan]{flex-wrap:wrap;gap:10px;padding:15px}
  .choice[data-group=plan] .c-main{flex:1 1 100%}
  .choice[data-group=plan] .c-price{margin-right:0;order:2;flex:1;flex-direction:row;align-items:baseline;justify-content:flex-start;gap:5px}
  .choice[data-group=plan] .c-price>b{font-size:1.3rem}
  .choice[data-group=plan] .radio{order:3;margin-left:auto}
  .spec-grid{gap:5px;margin-top:8px}
  .spec-cell{padding:6px 3px 5px}
  .spec-val{font-size:.79rem}
  .spec-lbl{font-size:.53rem;letter-spacing:.06em}
  .badge-soon{top:9px;right:11px}
}
@media (max-width: 420px){
  .spec-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .tspec-nums{justify-content:space-between;gap:10px}
  .tspec-plan{gap:8px}
  .tspec-price{font-size:1.35rem}
}
@media (prefers-reduced-motion: reduce){
  .tspec-side,.tspec-num b,.tspec-plan>b,.tspec-price,.tspec-pip{animation:none!important}
}

/* ---- Transfer In tab (one-click migration) ---- */
.ti-srcwrap{display:flex;flex-wrap:wrap;gap:8px}
.ti-srcwrap .chip{cursor:pointer}
.ti-bar{height:9px;background:var(--line-2);border-radius:99px;overflow:hidden}
.ti-bar span{display:block;height:100%;width:0;background:linear-gradient(90deg,var(--primary),#7c3aed);border-radius:99px;transition:width .6s ease}
.ti-log{max-height:230px;overflow:auto;white-space:pre-wrap;word-break:break-word}
@media (max-width:640px){
  #ti .grid.grid-2{grid-template-columns:1fr}
  #ti-steps .tiny{display:none}
  .ti-srcwrap .chip{flex:1 1 auto;justify-content:center}
}
.side-credit b,#pc-rc,#prv-rc,#pp-bal{font-variant-numeric:tabular-nums}
.side-credit{background:var(--surface-2);border:0}
.side-credit b{font-weight:700}
.side-credit .small,#pc-rc{letter-spacing:.01em}

/* ============ Provisioning hero — Cloud capacity (prov-*) ============ */
.prov-hero{position:relative;overflow:hidden;background:
  radial-gradient(900px 320px at 88% -40%, rgba(79,70,229,.10), transparent 62%),
  var(--surface);
  animation:provIn .5s cubic-bezier(.22,1,.36,1) both}
.prov-hero-grid{display:flex;gap:26px;align-items:flex-start;justify-content:space-between;flex-wrap:wrap}
.prov-copy{flex:1 1 330px;min-width:min(100%,300px);position:relative;z-index:1}
.prov-eyebrow{display:inline-flex;align-items:center;gap:7px;font-size:.66rem;font-weight:800;letter-spacing:.16em;text-transform:uppercase;color:var(--primary);user-select:none}
.prov-eyebrow-pip{width:7px;height:7px;border-radius:50%;background:var(--primary);animation:pipPulse 2.4s ease-out infinite;flex:none}
.prov-title{margin:9px 0 0;font-size:1.38rem;font-weight:800;letter-spacing:-.02em;line-height:1.18}
.prov-title-tail{color:var(--muted);font-weight:600;font-size:.94em;letter-spacing:-.01em}
.prov-title-sm{font-size:1.06rem;margin:4px 0 0}
.prov-sub{margin:7px 0 0;color:var(--muted);font-size:.86rem;line-height:1.55;max-width:52ch}
.prov-meta{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin-top:15px}
.prov-chip{display:inline-flex;align-items:center;gap:8px;padding:6px 13px;border-radius:999px;
  background:var(--primary-soft);border:1px solid rgba(79,70,229,.16);color:var(--primary-600);
  font-size:.75rem;font-weight:700;letter-spacing:.02em;transition:transform .2s ease,box-shadow .2s ease}
.prov-chip b{font-family:var(--mono);font-size:.78rem;font-weight:700}
.prov-chip:hover{transform:translateY(-1px);box-shadow:var(--sh-sm)}
.prov-sync{transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease,opacity .18s ease}
.prov-sync:hover{transform:translateY(-1px);box-shadow:var(--sh-sm)}
.prov-sync:active{transform:scale(.97)}
.prov-sync:disabled{opacity:.6;cursor:progress;transform:none;box-shadow:none}
.prov-visual{display:flex;gap:16px;align-items:center;flex-wrap:wrap;position:relative;z-index:1}
.prov-mascot{margin:0;width:100px;flex:none;animation:mcbob 4.4s ease-in-out infinite}
.credit-cluster{display:flex;align-items:stretch;background:var(--surface);border:1px solid var(--line);
  border-radius:var(--r);box-shadow:var(--sh-sm);overflow:hidden;
  transition:box-shadow .28s ease,transform .28s ease,border-color .28s ease;
  animation:provIn .55s .12s cubic-bezier(.22,1,.36,1) both}
.credit-cluster:hover{box-shadow:var(--sh);transform:translateY(-2px);border-color:rgba(79,70,229,.35)}
.credit-divider{width:1px;background:linear-gradient(180deg,transparent,var(--line-2) 20%,var(--line-2) 80%,transparent);margin:12px 0;flex:none}
.credit-tile{position:relative;padding:13px 20px 15px;min-width:158px}
.credit-tile .label{display:flex;align-items:center;gap:7px}
.credit-tile .value{margin-top:5px;font-size:1.48rem;font-weight:800;letter-spacing:-.02em;
  font-variant-numeric:tabular-nums;color:var(--ink);transition:color .2s ease}
.credit-tile::after{content:"";position:absolute;left:16px;right:16px;bottom:9px;height:2px;border-radius:2px;
  background:linear-gradient(90deg,var(--primary),var(--violet));transform:scaleX(0);transform-origin:left;
  transition:transform .4s cubic-bezier(.22,1,.36,1)}
.credit-cluster:hover .credit-tile::after{transform:scaleX(1)}
.credit-cluster:hover .credit-tile .value{color:var(--primary-600)}
.prov-sheen{position:absolute;top:0;bottom:0;left:-45%;width:38%;pointer-events:none;
  background:linear-gradient(105deg,transparent,rgba(255,255,255,.6),transparent);transform:skewX(-18deg);
  animation:sheen 1.5s .4s cubic-bezier(.4,0,.2,1) both}
.prov-section{display:flex;align-items:center;gap:16px;margin:26px 0 14px}
.prov-rule{flex:1;position:relative;height:1px;background:var(--line);overflow:hidden;border-radius:1px}
.prov-rule::after{content:"";position:absolute;top:0;bottom:0;left:0;width:34%;
  background:linear-gradient(90deg,transparent,rgba(79,70,229,.6),transparent);
  animation:ruleSweep 3.2s ease-in-out infinite}
#prov-table thead th{font-size:.68rem;font-weight:800;text-transform:uppercase;letter-spacing:.09em;
  color:var(--muted);background:var(--surface-2);border-bottom:1px solid var(--line)}
#prov-table tbody tr{animation:provRowIn .4s cubic-bezier(.22,1,.36,1) backwards;transition:background .16s ease,box-shadow .16s ease}
#prov-table tbody tr:nth-child(1){animation-delay:.05s}
#prov-table tbody tr:nth-child(2){animation-delay:.1s}
#prov-table tbody tr:nth-child(3){animation-delay:.15s}
#prov-table tbody tr:nth-child(4){animation-delay:.2s}
#prov-table tbody tr:nth-child(5){animation-delay:.25s}
#prov-table tbody tr:nth-child(6){animation-delay:.3s}
#prov-table tbody tr:nth-child(7){animation-delay:.35s}
#prov-table tbody tr:nth-child(n+8){animation-delay:.4s}
#prov-table tbody tr:hover{background:rgba(79,70,229,.045);box-shadow:inset 3px 0 0 var(--primary)}
#prov-table tbody tr:hover .row-title{color:var(--primary-600)}
#prov-table .row-title{transition:color .16s ease}
#prov-table .badge-ok{animation:badgeBreath 3.4s ease-in-out infinite}
@keyframes provIn{from{opacity:0;transform:translateY(16px)}to{opacity:1;transform:none}}
@keyframes provRowIn{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}
@keyframes pipPulse{0%{box-shadow:0 0 0 0 rgba(79,70,229,.45)}70%{box-shadow:0 0 0 7px rgba(79,70,229,0)}100%{box-shadow:0 0 0 0 rgba(79,70,229,0)}}
@keyframes sheen{from{left:-45%}to{left:130%}}
@keyframes ruleSweep{0%{transform:translateX(-110%)}55%,100%{transform:translateX(330%)}}
@keyframes badgeBreath{0%,100%{box-shadow:0 0 0 0 rgba(22,163,74,0)}45%{box-shadow:0 0 0 5px rgba(22,163,74,.14)}}
@media (max-width: 640px){
  .prov-title{font-size:1.16rem}
  .prov-visual{width:100%}
  .prov-mascot{width:76px}
  .credit-cluster{flex:1 1 auto}
  .credit-tile{min-width:0;flex:1;padding:11px 14px 13px}
  .credit-tile .value{font-size:1.22rem}
}
@media (prefers-reduced-motion: reduce){
  .prov-hero,.credit-cluster,#prov-table tbody tr,.prov-mascot,.prov-sheen,.prov-eyebrow-pip,
  .prov-rule::after,#prov-table .badge-ok{animation:none!important}
  .prov-sheen{display:none}
  .credit-tile::after,.credit-cluster,.prov-chip,.prov-sync{transition:none!important}
}

/* ============ Contents admin page (cnt-*) ============ */
.cnt-head-copy{flex:1 1 420px;min-width:min(100%,320px)}
.cnt-title{margin:9px 0 0;font-size:1.72rem;font-weight:800;letter-spacing:-.02em}
.cnt-sub{margin:8px 0 0;max-width:70ch;font-size:.9rem;line-height:1.6;color:var(--muted)}
.cnt-sub .mono{font-size:.85em;background:var(--surface-2);border-radius:6px;padding:1px 7px;color:var(--ink-2)}
.cnt-head #contents-div{align-self:center}
.cnt-stats .stat{animation:provIn .5s cubic-bezier(.22,1,.36,1) both;transition:transform .25s ease,box-shadow .25s ease,border-color .25s ease}
.cnt-stats .stat:nth-child(2){animation-delay:.07s}
.cnt-stats .stat:nth-child(3){animation-delay:.14s}
.cnt-stats .stat:hover{transform:translateY(-3px);box-shadow:var(--sh);border-color:rgba(79,70,229,.35)}
.cnt-stats .value{font-variant-numeric:tabular-nums}
#contents-table thead th{font-size:.68rem;font-weight:800;text-transform:uppercase;letter-spacing:.09em;color:var(--muted);background:var(--surface-2);border-bottom:1px solid var(--line)}
#contents-table tbody tr{animation:provRowIn .4s cubic-bezier(.22,1,.36,1) backwards;transition:background .16s ease,box-shadow .16s ease}
#contents-table tbody tr:nth-child(1){animation-delay:.04s}
#contents-table tbody tr:nth-child(2){animation-delay:.08s}
#contents-table tbody tr:nth-child(3){animation-delay:.12s}
#contents-table tbody tr:nth-child(4){animation-delay:.16s}
#contents-table tbody tr:nth-child(5){animation-delay:.2s}
#contents-table tbody tr:nth-child(6){animation-delay:.24s}
#contents-table tbody tr:nth-child(7){animation-delay:.28s}
#contents-table tbody tr:nth-child(8){animation-delay:.32s}
#contents-table tbody tr:nth-child(n+9){animation-delay:.36s}
#contents-table tbody tr:hover{background:rgba(79,70,229,.045);box-shadow:inset 3px 0 0 var(--primary)}
#contents-table tbody tr:hover > td:first-child b{color:var(--primary-600)}
#contents-table td b{transition:color .16s ease}
#contents-table .cnt-group td{background:linear-gradient(90deg,rgba(79,70,229,.07),rgba(79,70,229,0) 55%);color:var(--primary-600);font-weight:700;letter-spacing:.01em}
#contents-table .cnt-group td .mono{font-size:.9em}
#contents-table td:last-child{width:64px}
@media (prefers-reduced-motion: reduce){
  .cnt-stats .stat,#contents-table tbody tr{animation:none!important}
  .cnt-stats .stat{transition:none!important}
}

/* ============ Contents page responsive (any screen) ============ */
#contents-table{min-width:660px}
@media (max-width: 640px){
  .cnt-title{font-size:1.4rem}
  .cnt-head-copy{flex-basis:100%}
  .cnt-section{margin:20px 0 12px}
  #contents-table td,#contents-table th{padding:10px 12px}
  #contents-table .kebab-menu{min-width:170px}
}
@media (max-width: 480px){
  .cnt-head #contents-div{width:100%}
  .cnt-head #contents-div .btn{flex:1;justify-content:center}
  .cnt-sub{font-size:.86rem}
  .cnt-stats .stat{padding:16px 18px}
}

/* ============================================================
   Responsive sweep round 2 (2026-10-30): the audit's last
   offenders — grid-item min-content forcing tracks past the
   viewport, unbroken mono strings, and nowrap button labels.
   ============================================================ */
#tickets-table { min-width: 0; overflow-x: auto; }
.mono { overflow-wrap: anywhere; word-break: break-word; max-width: 100%; }
.btn { white-space: normal; }


/* ---------- step-5 checkout: billing + payment cards adapt to any screen ---------- */
#pay-nav { flex-wrap: wrap; gap: 10px; }
#pay-account-head, #pay-order-head { flex-wrap: wrap; gap: 8px; }
#pay-account-card .input, #pay-method-card .input { max-width: 100%; }
@media (max-width: 1100px) {
  /* stack the two cards on tablets/small laptops — 2-up only fits wide desktops */
  #pay-grid.grid-2 { grid-template-columns: 1fr; }
}
/* the items table must never set a min-width wider than its card */
#pay-items-table { table-layout: fixed; width: 100%; }
#pay-items-table th, #pay-items-table td { white-space: normal; overflow-wrap: anywhere; word-break: break-word; }
/* the wizard progress rail overflows narrow headers */
@media (max-width: 1080px) { .wizard-steps { display: none; } }
@media (max-width: 640px) {
  div#pay-account-card, div#pay-method-card { padding: 24px 18px; }
  #pay-account-card input.input, #pay-account-card select.input { font-size: 16px; min-height: 44px; }
  #pay-totals .flex { gap: 6px; }
  #pay-subtotal, #pay-vat, #pay-total { font-size: 1rem; }
  #pay-gate-msg { text-align: left; }
  .spec-hero { word-break: break-word; }
}
@media (max-width: 420px) {
  #pay-nav .btn { flex: 1 1 100%; text-align: center; }
  #pay-subscribe-btn { width: 100%; }
}


/* multi-app instance chip: "+3" next to the primary app's name */
.inst-more {
  display: inline-block; margin-left: 7px; padding: 1px 7px 2px;
  border-radius: 999px; background: var(--primary-soft, #eef2ff);
  color: var(--primary-600, #4f46e5); font-size: .68rem; font-weight: 700;
  letter-spacing: .02em; vertical-align: middle;
}


/* ---------- multi-app stack section (instance detail) ---------- */
#instance-apps-section { overflow: hidden; }
.app-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.app-card {
  border: 1px solid rgba(20, 24, 40, .09); border-radius: var(--r-lg, 16px);
  padding: 14px 16px; background: linear-gradient(180deg, rgba(255, 255, 255, .92), rgba(255, 255, 255, .62));
  animation: appFadeUp .45s cubic-bezier(.22, .8, .3, 1) both;
  transition: transform .18s ease, box-shadow .18s ease;
}
.app-card:hover { transform: translateY(-3px); box-shadow: 0 12px 28px -20px rgba(20, 24, 40, .45); }
.app-url { display: block; margin-top: 10px; color: var(--primary-600, #4f46e5); text-decoration: none; }
.app-url:hover { text-decoration: underline; }
.app-x { border: 0; background: transparent; color: #9aa1b5; font-size: 1.05rem; cursor: pointer; margin-left: 6px; line-height: 1; }
.app-x:hover { color: #dc2626; }
@keyframes appFadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.badge.badge-dot.badge-ok::before {
  content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  background: #16a34a; margin-right: 6px; vertical-align: middle;
  animation: dotPulse 1.8s ease-in-out infinite;
}
@keyframes dotPulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .5; transform: scale(.75); } }
#app-add-panel { margin-top: 14px; animation: appFadeUp .35s ease both; }
.app-picker { border-style: dashed; }
.app-pick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; }
.app-pick { display: flex; align-items: center; gap: 8px; padding: 7px 9px; border: 1px solid rgba(20, 24, 40, .1);
  border-radius: 12px; cursor: pointer; transition: border-color .15s ease, background .15s ease; }
.app-pick:hover { border-color: var(--primary-600, #4f46e5); background: rgba(79, 70, 229, .05); }
.app-pick input { accent-color: var(--primary-600, #4f46e5); }
@media (max-width: 640px) { .app-grid, .app-pick-grid { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) {
  .app-card, #app-add-panel { animation: none !important; }
  .app-card:hover { transform: none; }
  .badge.badge-dot.badge-ok::before { animation: none; }
}


/* ---------- standalone-app notice: warm, playful, never alarming ---------- */
.mood-overlay {
  position: fixed; inset: 0; z-index: 400; display: flex; align-items: center; justify-content: center;
  background: rgba(18, 22, 38, .45); backdrop-filter: blur(6px);
  opacity: 0; pointer-events: none; transition: opacity .28s ease; padding: 20px;
}
.mood-overlay.open { opacity: 1; pointer-events: auto; }
.mood-card {
  width: min(430px, 100%); text-align: center; padding: 34px 30px 28px; border-radius: 26px;
  background: linear-gradient(165deg, #ffffff 0%, #f7f7ff 55%, #fff7ed 100%);
  box-shadow: 0 30px 70px -30px rgba(20, 24, 60, .55);
  transform: translateY(18px) scale(.96); transition: transform .32s cubic-bezier(.2, .9, .3, 1.2);
}
.mood-overlay.open .mood-card { transform: none; }
.mood-art {
  width: 88px; height: 88px; margin: 0 auto 16px; border-radius: 30px;
  display: flex; align-items: center; justify-content: center; font-size: 40px;
  background: radial-gradient(circle at 30% 25%, #e0e7ff, #c7d2fe 55%, #fde68a 140%);
  animation: moodFloat 3.2s ease-in-out infinite;
}
@keyframes moodFloat { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-7px) rotate(2deg); } }
.mood-title { font-size: 1.18rem; font-weight: 800; letter-spacing: -.015em; margin-bottom: 8px; }
.mood-sub { color: #6b7280; font-size: .92rem; line-height: 1.55; margin-bottom: 22px; }
.mood-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
@media (prefers-reduced-motion: reduce) {
  .mood-overlay, .mood-card { transition: none; }
  .mood-art { animation: none; }
}


/* ---------- order rail: sibling servers of one order (swipe + tap to drill) ---------- */
.order-rail { margin: 0 0 18px; }
.rail-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.rail-track {
  display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 4px 2px 10px; -webkit-overflow-scrolling: touch; scrollbar-width: thin;
}
.rail-card {
  scroll-snap-align: start; flex: 0 0 auto; min-width: 218px; max-width: 260px;
  display: flex; flex-direction: column; gap: 7px; align-items: flex-start; text-align: left;
  padding: 13px 15px; border: 1px solid rgba(20, 24, 40, .1); border-radius: 16px; cursor: pointer;
  background: linear-gradient(180deg, rgba(255, 255, 255, .95), rgba(248, 248, 255, .75));
  animation: appFadeUp .45s cubic-bezier(.22, .8, .3, 1) both;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.rail-card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px -20px rgba(20, 24, 60, .5); }
.rail-card.active {
  border-color: rgba(79, 70, 229, .65);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, .14), 0 14px 30px -20px rgba(79, 70, 229, .55);
}
.rail-app { font-size: .96rem; letter-spacing: -.01em; }
.rail-url { word-break: break-all; }
.rail-card.active::after { content: "\2198"; position: absolute; }
.rail-card { position: relative; }
@media (max-width: 640px) { .rail-card { min-width: 78vw; } }
@media (prefers-reduced-motion: reduce) { .rail-card { animation: none; } }


/* ---------- admin fleet: order group headers ---------- */
.order-grp { cursor: pointer; }
.order-grp > td {
  background: linear-gradient(90deg, rgba(79, 70, 229, .10), rgba(79, 70, 229, .03) 60%, transparent);
  border-top: 1px solid rgba(79, 70, 229, .25);
  padding: 9px 12px;
}
.order-grp:hover > td { background: linear-gradient(90deg, rgba(79, 70, 229, .16), rgba(79, 70, 229, .05) 60%, transparent); }
.grp-chev { display: inline-block; margin-right: 8px; color: #4f46e5; font-weight: 700; transition: transform .22s ease; }
.order-grp.closed .grp-chev { transform: rotate(-90deg); }
.grp-title { letter-spacing: -.01em; }
.order-grp .badge { margin-left: 10px; vertical-align: middle; }
tr.grp-off { display: none; }
tr[data-grp]:not(.grp-off) > td { animation: appFadeUp .3s ease both; }
@media (prefers-reduced-motion: reduce) { tr[data-grp]:not(.grp-off) > td { animation: none; } }


/* ---------- install review: fleet address list (one free URL per server) ---------- */
.review-urls { display: inline-flex; flex-direction: column; gap: 5px; align-items: flex-end; text-align: right; }
.ru-row {
  display: flex; gap: 8px; align-items: baseline; justify-content: flex-end;
  animation: appFadeUp .32s cubic-bezier(.22, .8, .3, 1) both;
}
.ru-app {
  font-size: .64rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  color: #4f46e5; background: rgba(79, 70, 229, .1); border: 1px solid rgba(79, 70, 229, .18);
  padding: 1px 7px; border-radius: 999px; white-space: nowrap;
}
.ru-url {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .78rem; color: #1a1f36; cursor: copy; font-weight: 500; word-break: break-all;
  transition: color .15s ease;
}
.ru-url:hover { color: #4f46e5; text-decoration: underline dotted; }
@media (max-width: 640px) {
  .review-urls { align-items: flex-start; text-align: left; }
  .ru-row { justify-content: flex-start; flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) { .ru-row { animation: none; } }


/* ---------- per-app pricing: card trigger + pricing modal (was wizard step 2) ---------- */
.price-hourly {
  font-size: 1.14rem; font-weight: 800; letter-spacing: -.025em; line-height: 1.12;
  color: #1a1f36; font-variant-numeric: tabular-nums;
}
.ph-unit { font-size: .58em; font-weight: 650; letter-spacing: 0; opacity: .48; margin-left: 1.5px; }
.price-flat {
  margin-top: 2px; font-size: .7rem; font-weight: 600; line-height: 1.35;
  color: rgba(26, 31, 54, .5); letter-spacing: .045em; font-variant-numeric: tabular-nums;
}
.price-flat b { color: rgba(26, 31, 54, .84); font-weight: 700; letter-spacing: .01em; }
.pf-unit { opacity: .85; margin-left: 1px; }
.pf-tag {
  margin-left: 6px; padding: 0 5px; border-radius: 999px; font-size: .58rem; font-weight: 800;
  letter-spacing: .06em; text-transform: uppercase; color: #4f46e5;
  background: rgba(79, 70, 229, .12); border: 1px solid rgba(79, 70, 229, .2);
}
.price-trigger {
  display: inline-flex; align-items: center; gap: 9px; padding: 5px 12px 6px;
  border-radius: 12px; border: 1px dashed rgba(79, 70, 229, .38);
  background: rgba(79, 70, 229, .05); color: inherit; cursor: pointer; font: inherit; text-align: left;
  transition: background .16s ease, border-color .16s ease, transform .16s ease, box-shadow .16s ease;
}
.pt-copy { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pt-sub {
  font-size: .6rem; line-height: 1; font-weight: 650; letter-spacing: .01em;
  color: rgba(26, 31, 54, .52); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  font-variant-numeric: tabular-nums; transition: color .18s ease;
}
.price-trigger:hover .pt-sub, .price-trigger:focus-visible .pt-sub, .price-trigger.pt-on .pt-sub { color: rgba(26, 31, 54, .82); }
.price-trigger:hover { background: rgba(79, 70, 229, .11); border-style: solid; transform: translateY(-1px); }
.price-trigger:focus-visible { outline: 2px solid rgba(79, 70, 229, .55); outline-offset: 2px; }
.price-trigger.pt-on { border-style: solid; background: rgba(79, 70, 229, .13); box-shadow: 0 0 0 3px rgba(79, 70, 229, .1); }
.pt-sel {
  font-size: .92rem; font-weight: 800; letter-spacing: -.015em; line-height: 1.15;
  color: #1a1f36; font-variant-numeric: tabular-nums;
}
.pt-sel i { font-style: normal; font-size: .6em; font-weight: 650; letter-spacing: 0; opacity: .5; margin-left: 1px; }
.pt-chev { font-size: .68rem; opacity: .55; font-weight: 700; }
.pricing-modal-box { max-width: 640px; width: calc(100vw - 28px); max-height: calc(100vh - 44px); overflow-y: auto; }
.pricing-modal-box .choice { cursor: pointer; }
@media (max-width: 640px) {
  .pricing-modal-box .c-price { min-width: 64px; }
  .price-trigger { padding: 4px 9px 4px 10px; }
  .pt-label { font-size: .58rem; }
}


/* ---------- homepage: price comparison ("The same server, for less") ---------- */
.cmp-table { display: flex; flex-direction: column; gap: 10px; max-width: 820px; margin: 0 auto; }
p#compare-fine { text-align: center; margin-top: 15px; }
.cmp-row { position: relative; display: grid; grid-template-columns: 132px 1fr; align-items: center; gap: 14px;
  padding: 10px 14px 10px 12px; border: 1px solid var(--line); border-radius: var(--r);
  background: var(--surface); transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease; }
.cmp-row:hover { border-color: rgba(79, 70, 229, .35); transform: translateY(-1px); box-shadow: 0 6px 18px -8px rgba(26, 31, 54, .18); }
.cmp-name { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: .92rem; color: var(--ink); }
.cmp-name .badge { flex: 0 0 auto; }
.cmp-track { position: relative; height: 30px; border-radius: 8px; background: var(--surface-2); overflow: hidden; }
.cmp-bar { position: absolute; inset: 0 auto 0 0; width: 0; border-radius: 8px;
  background: linear-gradient(90deg, #c7d2fe, #a5b4fc);
  transition: width 1.1s cubic-bezier(.22, .61, .36, 1); }
/* our row — hero treatment: taller than the rest, deep indigo gradient, a breathing
   outer glow, a slow sheen sweep and a tilted gold ribbon so the eye lands here first */
.cmp-row.ours { border-color: #2a2377; background: linear-gradient(115deg, #2a2377 0%, var(--primary) 55%, #6d5df0 100%);
  padding-top: 17px; padding-bottom: 17px; z-index: 2;
  box-shadow: 0 10px 26px -12px rgba(42, 35, 119, .55);
  animation: oursGlow 2.8s ease-in-out infinite; }
.cmp-row.ours:hover { transform: translateY(-2px); }
.cmp-row.ours::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(105deg, transparent 32%, rgba(255, 255, 255, .16) 46%, rgba(255, 255, 255, .34) 50%, rgba(255, 255, 255, .16) 54%, transparent 68%);
  background-size: 260% 100%; background-position: 130% 0;
  animation: oursSheen 3.6s ease-in-out .6s infinite; }
.cmp-ribbon { position: absolute; top: -11px; right: 16px; z-index: 3;
  display: inline-flex; align-items: center; gap: 4px;
  font-size: .62rem; font-weight: 900; letter-spacing: .07em; text-transform: uppercase;
  padding: 4px 11px; border-radius: 999px; color: #453203; white-space: nowrap;
  background: linear-gradient(135deg, #fde68a, #f59e0b);
  border: 1px solid rgba(146, 104, 9, .45);
  box-shadow: 0 4px 12px -4px rgba(245, 158, 11, .7);
  transform: rotate(-2deg); }
.cmp-row.ours .cmp-name, .cmp-row.ours .cmp-price { color: #fff; }
.cmp-row.ours .cmp-name { font-size: 1rem; }
.cmp-row.ours .cmp-price { font-size: 1.16rem; font-weight: 900; text-shadow: 0 1px 2px rgba(0, 0, 0, .3); }
.cmp-row.ours .cmp-spec { color: rgba(255, 255, 255, .92); }
.cmp-row.ours .cmp-track { background: rgba(255, 255, 255, .16); }
.cmp-row.ours .cmp-bar { background: linear-gradient(90deg, #fde68a, #fbbf24); }
.cmp-row.ours .badge-ok { background: var(--green); color: #fff; }
.cmp-row.ours .cmp-save { background: #fff; color: var(--primary-600); box-shadow: 0 2px 8px rgba(26, 31, 54, .28); }
.cmp-table.in .cmp-row.ours .cmp-save { animation: oursPop .55s cubic-bezier(.34, 1.56, .64, 1) 1.25s both; }
@keyframes oursGlow {
  0%, 100% { box-shadow: 0 10px 26px -12px rgba(42, 35, 119, .55), 0 0 0 0 rgba(129, 114, 249, .35); }
  50% { box-shadow: 0 16px 34px -12px rgba(42, 35, 119, .75), 0 0 24px 3px rgba(129, 114, 249, .55); }
}
@keyframes oursSheen { 0% { background-position: 130% 0; } 60%, 100% { background-position: -70% 0; } }
@keyframes oursPop { 0% { transform: scale(.4); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
.cmp-fill { position: absolute; inset: 0; display: flex; align-items: center; padding: 0 10px; gap: 8px;
  font-size: .8rem; color: var(--ink-2); white-space: nowrap; }
.cmp-price { font-weight: 800; font-size: .92rem; color: var(--ink); font-variant-numeric: tabular-nums; }
.cmp-fill .cmp-spec { opacity: .75; }


.cmp-save { font-size: .62rem; font-weight: 800; letter-spacing: .04em; padding: 2px 7px; border-radius: 999px;
  background: #e7f7ee; color: var(--green); white-space: nowrap; opacity: 0; transform: translateX(-4px);
  transition: opacity .4s ease .9s, transform .4s ease .9s; }
.cmp-table.in .cmp-save { opacity: 1; transform: none; }
@media (max-width: 640px) {
  .cmp-row { grid-template-columns: 1fr; gap: 8px; padding: 10px 12px; }
  .cmp-name { justify-content: space-between; }
  .cmp-track { height: 34px; }
  .cmp-fill { font-size: .74rem; }
  .cmp-fill .cmp-spec { display: none; }
  .cmp-m-price { display: inline; }
  .cmp-ribbon { position: static; justify-self: end; transform: none; margin-top: 4px; }
}
@media (prefers-reduced-motion: reduce) {
  .cmp-bar { transition: none; }
  .cmp-save { transition: none; opacity: 1; transform: none; }
  .cmp-row.ours { animation: none; }
  .cmp-row.ours::after { animation: none; background: none; }
  .cmp-table.in .cmp-row.ours .cmp-save { animation: none; }
}

/* ---------- /install: hide the placeholder template section on phones ---------- */
@media (max-width: 640px) {
  #wiz-templates-title, #wiz-templates { display: none !important; }
}

/* ---------- app-card redesign (every page EXCEPT /install) ---------- */
.app-card {
  display: flex; flex-direction: column; gap: 12px; position: relative; overflow: hidden;
  animation: appFadeUp .5s cubic-bezier(.22, .8, .3, 1) both;
}
.grid > .app-card:nth-child(6n + 1) { animation-delay: .02s; }
.grid > .app-card:nth-child(6n + 2) { animation-delay: .07s; }
.grid > .app-card:nth-child(6n + 3) { animation-delay: .12s; }
.grid > .app-card:nth-child(6n + 4) { animation-delay: .17s; }
.grid > .app-card:nth-child(6n + 5) { animation-delay: .22s; }
.grid > .app-card:nth-child(6n + 6) { animation-delay: .27s; }
.app-card::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(460px circle at var(--mx, 32%) var(--my, 0%), rgba(79, 70, 229, .08), transparent 48%);
  opacity: 0; transition: opacity .35s ease;
}
.app-card:hover::after { opacity: 1; }
.app-card .ac-top { align-items: center; }
.app-card .ac-id { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.app-card h4 { margin: 0; font-size: .98rem; letter-spacing: -.012em; }
.app-card .ac-eyebrow {
  font-size: .63rem; font-weight: 700; letter-spacing: .095em; text-transform: uppercase;
  color: rgba(79, 70, 229, .78); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.app-card .ac-tag {
  margin: 0; font-size: .78rem; line-height: 1.55; color: #5b6178;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  min-height: 2.4em;
}
.app-card .tile { transition: transform .3s cubic-bezier(.22, .8, .3, 1); }
.app-card:hover .tile { transform: translateY(-2px) scale(1.06) rotate(-2.5deg); }
.app-card:hover { border-color: rgba(79, 70, 229, .35); }
.app-card .ac-price { display: flex; flex-direction: column; }
.app-card .ac-go .ac-arr {
  display: inline-block; transform: translateX(-4px); opacity: 0; margin-left: 0;
  transition: transform .25s ease, opacity .25s ease;
}
.app-card:hover .ac-go .ac-arr { transform: translateX(2px); opacity: 1; margin-left: 4px; }
@media (prefers-reduced-motion: reduce) {
  .app-card { animation: none; }
  .app-card .tile, .app-card .ac-go .ac-arr { transition: none; }
}


/* ---------- /install selected card: hint under the check ---------- */
.choice-side { display: flex; flex-direction: column; align-items: center; gap: 7px; flex: 0 0 auto; }
.rm-hint {
  font-size: .64rem; letter-spacing: .02em; text-align: center; max-width: 78px;
  line-height: 1.3; opacity: .75;
}
@media (max-width: 520px) { .rm-hint { max-width: 62px; font-size: .6rem; } }


/* 0. Order-detail spec box hidden on the payment step (per design decision) */
div#pay-spec-box { display: none; }

/* 2. Pricing modal — mobile-first redesign (≤640px) */
@media (max-width: 640px) {
  .pricing-modal-box {
    width: calc(100vw - 14px); max-height: 88vh; border-radius: 16px;
    padding: 14px 13px 12px;
  }
  .pricing-modal-box > .flex.between.center {
    position: sticky; top: -14px; z-index: 3;
    background: var(--surface, #fff); margin: -4px -4px 0; padding: 8px 4px 10px;
  }
  .pricing-modal-box > .flex.between.center h3 { font-size: .98rem; }
  .pricing-modal-box #pricing-plans { gap: 11px; margin-top: 12px; }
  .pricing-modal-box .choice {
    position: relative; flex-wrap: wrap; align-items: flex-start;
    padding: 14px 15px 13px; row-gap: 0;
  }
  .pricing-modal-box .c-main { flex: 1 1 100%; min-width: 0; }
  .pricing-modal-box .c-main > .flex:first-child { padding-right: 120px; min-height: 24px; }
  .pricing-modal-box .c-price {
    position: absolute; top: 13px; right: 44px; min-width: 0; text-align: right;
  }
  .pricing-modal-box .radio { position: absolute; top: 15px; right: 14px; }
  .pricing-modal-box .spec-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 12px; margin-top: 11px;
  }
  .pricing-modal-box .badge { white-space: normal; text-align: left; }
  .pricing-modal-box > .flex.between.mt-20 {
    position: sticky; bottom: -12px; z-index: 3;
    background: var(--surface, #fff); margin: 14px -4px -2px; padding: 10px 4px 4px;
    border-top: 1px solid var(--line, #e5e7eb);
  }
}


/* Pay-and-Deploy flow: the Subscribe row is folded into the single action button */
div#pay-sub-row { display: none !important; }

/* /instance Payments tab — motion */
@keyframes tabIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.tab-panel.on { animation: tabIn .26s cubic-bezier(.2,.7,.3,1); }
@keyframes indPulse { 0% { box-shadow: 0 0 0 0 rgba(59,130,246,.5); } 100% { box-shadow: 0 0 0 16px rgba(59,130,246,0); } }
.ind-pulse { animation: indPulse .75s ease-out 2; border-color: #3b82f6; }
@keyframes chipPop { 0% { transform: scale(1); } 40% { transform: scale(1.08); } 100% { transform: scale(1); } }
.ind-chip { animation: chipPop .4s ease; }
.ind-pay-row { transition: transform .28s ease, opacity .28s ease, background .2s ease; border-radius: var(--r-sm, 10px); padding: 4px 6px; }
.ind-pay-row:hover { transform: translateX(4px); background: var(--surface-2, rgba(255,255,255,.04)); }
.ind-out { opacity: 0; transform: translateX(28px); }
@media (max-width: 640px) {
  .tab-panel.on .grid-2 { grid-template-columns: 1fr !important; }
  .ind-pay-row { flex-wrap: wrap; gap: 6px; }
}

.btn-secondary { background: var(--surface-2, rgba(255,255,255,.06)); color: var(--ink, inherit);
  border: 1px solid var(--line, rgba(148,163,184,.28)); border-radius: var(--r-sm, 10px);
  padding: .5em 1em; font-weight: 600; cursor: pointer; transition: all .18s ease; }
.btn-secondary:hover { border-color: #6366f1; color: #6366f1; transform: translateY(-1px); }

/* Billing redesign (point 6) — hierarchy, motion, responsive */
#billing-stat-grid .stat { transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease; }
#billing-stat-grid .stat:hover { transform: translateY(-3px); border-color: rgba(99,102,241,.5); }
#billing-stat-grid .stat .value { font-variant-numeric: tabular-nums; }
#billing-stat-4 { border-top: 3px solid #22d3ee; }
@keyframes billRise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
#billing-grid-2 > .card, #billing-grid-3 > .card, #billing-usage-card {
  animation: billRise .42s cubic-bezier(.2,.7,.3,1) backwards; }
#billing-grid-2 > #billing-card-2 { animation-delay: .07s; }
#billing-grid-3 > #billing-payments-card { animation-delay: .14s; }
#billing-grid-3 > #billing-invoices-card { animation-delay: .21s; }
#billing-usage-card { animation-delay: .26s; }
#billing-sec-pay h2, #billing-sec-money h2, #billing-invoices h3, #billing-usage-head h2 {
  position: relative; padding-left: 15px; }
#billing-sec-pay h2::before, #billing-sec-money h2::before, #billing-invoices h3::before,
#billing-usage-head h2::before {
  content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 5px; height: 1.05em; border-radius: 3px;
  background: linear-gradient(160deg, #6366f1, #22d3ee);
}
#cards-list label { transition: background .18s ease, transform .18s ease; border-radius: 10px; padding: 6px 8px; }
#cards-list label:hover { background: var(--surface-2, rgba(255,255,255,.05)); transform: translateX(3px); }
#card-form .input:focus { border-color: #6366f1; box-shadow: 0 0 0 3px rgba(99,102,241,.18); outline: none; }
#billing-method-sub { line-height: 1.45; }
@media (max-width: 640px) {
  #billing-grid-2, #billing-grid-3 { grid-template-columns: 1fr !important; }
  #billing-stat-grid { grid-template-columns: 1fr 1fr; }
  #billing-sec-pay, #billing-sec-money, #billing-invoices, #billing-usage-head { flex-wrap: wrap; gap: 6px; }
  #billing-grid-2 > .card, #billing-grid-3 > .card { animation-delay: 0s !important; }
}
@media (max-width: 420px) {
  #billing-stat-grid { grid-template-columns: 1fr; }
}


/* admin contents: search/sort toolbar + bulk action bar */
.cnt-tools { align-items: center; }
.cnt-check { width: 34px; }
#contents-table .cnt-check input, #cnt-tbody .cnt-check input {
  width: 15px; height: 15px; accent-color: var(--primary, #4f46e5); cursor: pointer;
}
.cnt-bulk {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  padding: 10px 12px; margin-bottom: 12px;
  border: 1px solid var(--primary, #4f46e5); border-radius: 12px;
  background: var(--bg-soft, #f8faff);
}
@media (max-width: 640px) {
  .cnt-tools .input { max-width: 100% !important; flex: 1 1 100%; }
  .cnt-bulk { gap: 6px; }
}

/* ---------- instance detail: SSE Security tab (default feature) ---------- */
#sse h4 { font-size: 1rem; }
.sse-live { display: inline-flex; align-items: center; gap: 7px; font-size: .78rem; font-weight: 700; color: var(--ink); }
.sse-live i { width: 9px; height: 9px; border-radius: 50%; background: #94a3b8; }
.sse-live.on i { background: #22c55e; animation: ssePulse 2s infinite; }
.sse-live.busy i { background: #f59e0b; animation: ssePulse 1.2s infinite; }
@keyframes ssePulse {
  0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, .5); }
  70% { box-shadow: 0 0 0 7px rgba(34, 197, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}
.sse-check-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(255px, 1fr)); gap: 10px; }
.sse-check { display: flex; gap: 10px; align-items: flex-start; background: var(--surface-2);
  border: 1px solid var(--line); border-radius: var(--r-sm, 10px); padding: 11px 12px; }
.sse-check .tick { flex: 0 0 auto; width: 20px; height: 20px; border-radius: 50%;
  background: rgba(34, 197, 94, .15); color: #16a34a; font-weight: 900; font-size: .72rem;
  display: flex; align-items: center; justify-content: center; }
.sse-check b { font-size: .84rem; display: block; margin-bottom: 2px; }
.sse-check p { margin: 0; font-size: .74rem; color: var(--ink-2); line-height: 1.45; }
.sse-state-note { border-left: 3px solid var(--primary); background: var(--primary-soft, #eef2ff);
  padding: 9px 12px; border-radius: 0 var(--r-sm, 10px) var(--r-sm, 10px) 0; font-size: .8rem; }
#sse-channel-pick .choice { flex: 1 1 240px; max-width: 340px; cursor: pointer; }
#sse .field label { font-weight: 600; }
@media (prefers-reduced-motion: reduce) { .sse-live i { animation: none !important; } }

/* -- Shield tab: per-protection rows (reuses .ops-switch) -- */
.sh-row { display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px; border: 1px solid rgba(148, 163, 184, .28); border-radius: 12px; background: rgba(148, 163, 184, .07); margin-bottom: 10px; transition: border-color .2s ease, background .2s ease, opacity .2s ease; }
.sh-row:hover { border-color: rgba(79, 70, 229, .38); }
.sh-row:last-child { margin-bottom: 0; }
.sh-row.is-off { opacity: .78; background: transparent; }
.sh-row.is-off .sh-ico { background: rgba(148, 163, 184, .18); color: #64748b; }
.sh-ico { width: 34px; height: 34px; border-radius: 10px; background: rgba(79, 70, 229, .12); color: var(--primary); display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; margin-top: 2px; }
.sh-ico svg { width: 17px; height: 17px; }
.sh-body { flex: 1 1 auto; min-width: 0; }
.sh-body b { display: block; }
.sh-body p { margin: 2px 0 4px; }
.sh-on { color: var(--green); }
.sh-off { color: var(--amber); }
.sh-row > .ops-switch { margin-top: 6px; }
@media (max-width: 560px) {
  .sh-row { flex-wrap: wrap; gap: 10px; padding: 11px 12px; }
  .sh-row > .ops-switch { margin-top: 0; margin-left: 46px; }
  .sh-body { flex: 1 1 calc(100% - 46px); }
}
@media (prefers-reduced-motion: reduce) { .sh-row, .sh-row .ops-slider { transition: none !important; } }

/* ============================================================
   Smart search: match highlighting, keyboard selection row,
   "Alternative to X" hint — shared .sr-item rows in every field
   ============================================================ */
.sr-name mark, .sr-desc mark {
  background: rgba(79, 70, 229, .16); color: inherit;
  padding: 0 1px; border-radius: 3px;
}
.sr-item { transition: background .12s ease; }
.sr-item.sel { background: rgba(79, 70, 229, .08); box-shadow: inset 2px 0 0 var(--primary, #4f46e5); }
.sr-alt {
  margin-top: 3px; font-size: .68rem; font-weight: 800;
  letter-spacing: .05em; text-transform: uppercase;
  color: var(--primary, #4f46e5);
}
.sr-alt::before { content: '\21BB  '; }
@media (prefers-reduced-motion: reduce) { .sr-item { transition: none; } }

/* App detail: screenshots harvested from the upstream README (screens_backfill ->
   /media/...), inserted between description paragraphs by the content fetch. */
/* icon-only source/sort buttons on /apps (unique semantic icon per action) */
.chip-ico { justify-content: center; padding: 7px 12px; }
button.chip-ico svg { width: 17px; height: 17px; flex: 0 0 auto; }
/* Transfer In deploy modal: the cloned wizard needs the room */
.modal-back .modal-wide { width: min(920px, calc(100vw - 28px)); max-width: none; max-height: 88vh; overflow-y: auto; }
/* step subtitles collide at modal width — titles carry the meaning here */
.modal-wide .wtext span { display: none; }
/* compact rail so all five steps fit without horizontal scroll */
.modal-wide .wizard-steps .wstep { gap: 6px; }
.modal-wide .wizard-steps .wdot { width: 26px; height: 26px; font-size: .75rem; }
.modal-wide .wizard-steps .wtext b { font-size: .78rem; }
.modal-wide .wizard-steps .wline { margin: 0 8px; min-width: 10px; }
.modal-wide .wizard-steps .wline { flex: .25; }
/* [hidden] must beat .field's display:flex (SSH password field showed while hidden) */
.field[hidden] { display: none; }
/* description-tab preview screenshots: browser-framed; <=3 in one row, more = carousel.
   Figure#desc-shots = inline-size CONTAINER; layout (grid columns + per-view) follows the
   FIGURE's own width, so a ~533px figure on a wide window gets 1 COLUMN, never 3 squeezed
   ~170px cells. Grid lives on child .ds-grid (a container cannot query itself). */
figure#desc-shots { max-width: 533px; width: 100%; background: transparent !important; }
/* panel removed: overview feature-row spans full width when nothing holds the right column */
.feature-row:not(:has(> :nth-child(2))) { grid-template-columns: minmax(0, 1fr); }
.desc-shots { margin: 20px 0; container-type: inline-size; }
.ds-grid { display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); }
@container (min-width: 640px) {
  .desc-shots.ds-n2 > .ds-grid, .desc-shots.ds-n3 > .ds-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@container (min-width: 780px) {
  .desc-shots.ds-n3 > .ds-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.ds-frame {
  border: 1px solid var(--line); border-radius: var(--r-lg);
  background: var(--surface); overflow: hidden;
  box-shadow: var(--sh-md, var(--sh-lg));
}
.ds-frame .mock-bar { padding: 10px 14px; }
.ds-img {
  background-color: #4F46E5;
  background-image: -webkit-linear-gradient(328deg, rgba(79, 70, 229, 1) 0%, rgba(238, 240, 255, 1) 100%);
  background-image: -moz-linear-gradient(328deg, rgba(79, 70, 229, 1) 0%, rgba(238, 240, 255, 1) 100%);
  background-image: linear-gradient(328deg, rgba(79, 70, 229, 1) 0%, rgba(238, 240, 255, 1) 100%);
  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#4F46E5", endColorstr="#EEF0FF", GradientType=0);
}
.ds-img img {
  display: block;
  height: 400px;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  object-fit: contain;
  object-position: center;
  padding: 5%;
}
.ds-car { position: relative; }
.ds-view {
  display: flex; gap: 12px; overflow-x: auto;
  scroll-snap-type: x mandatory; scroll-behavior: smooth;
  overscroll-behavior-x: contain;
  scrollbar-width: none; -ms-overflow-style: none;
  border-radius: 20px;
  box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
}
.ds-view::-webkit-scrollbar { display: none; }
.ds-view .ds-frame { flex: 0 0 calc((100% - 12px) / 2); scroll-snap-align: start; min-width: 0; }
@container (min-width: 780px) {
  .ds-view .ds-frame { flex: 0 0 calc((100% - 24px) / 3); }
}
@container (max-width: 639px) {
  .ds-view .ds-frame { flex-basis: 100%; }
}
/* carousel controls: frosted chevron buttons (hover-reveal) + morphing pill dots */
.ds-nav {
  position: absolute; top: 45%; z-index: 2;
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--surface);
  background: color-mix(in srgb, var(--surface) 78%, transparent);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  color: var(--ink, inherit);
  display: grid; place-items: center; cursor: pointer; padding: 0;
  box-shadow: var(--sh-md, var(--sh-lg));
  opacity: 0;
  transform: translateY(-50%) translateX(var(--nx, 0px)) scale(var(--ns, 1));
  transition: opacity .28s ease, background-color .22s ease, border-color .22s ease,
              color .22s ease, transform .3s cubic-bezier(.34, 1.56, .64, 1);
}
.ds-nav svg { width: 17px; height: 17px; display: block; }
.ds-prev { left: -10px; --nx: -6px; }
.ds-next { right: -10px; --nx: 6px; }
.ds-car:hover .ds-nav, .ds-nav:focus-visible { opacity: 1; --nx: 0px; }
.ds-car .ds-nav:hover {
  --ns: 1.08;
  background: var(--brand, #4f46e5); border-color: var(--brand, #4f46e5); color: #fff;
}
.ds-car .ds-nav:active { --ns: .92; transition-duration: .09s; }
@media (hover: none) {
  .ds-nav { opacity: 1; --nx: 0px; }
}
.ds-dots { display: flex; gap: 7px; justify-content: center; align-items: center; margin-top: 12px; }
.ds-dots i {
  width: 7px; height: 7px; border-radius: 99px;
  background: var(--line-2, var(--line));
  opacity: .5; cursor: pointer;
  transition: width .38s cubic-bezier(.4, 0, .2, 1), background-color .3s ease,
              opacity .3s ease, transform .3s ease;
}
.ds-dots i:hover { opacity: .95; transform: translateY(-1px); }
.ds-dots i.on {
  width: 24px; opacity: 1; transform: none;
  background: var(--brand, #4f46e5);
}
/* phone cosmetics (layout itself is container-driven above) */
@media (max-width: 640px) {
  .desc-shots { margin: 16px 0; }
  .ds-grid { gap: 8px; }
  .ds-view { gap: 8px; }
  .ds-nav { width: 40px; height: 40px; font-size: 21px; }
  .ds-prev { left: -4px; }
  .ds-next { right: -4px; }
  .ds-dots { margin-top: 9px; }
  .aec-shot { flex-wrap: wrap; }
  .aec-shot-thumb { width: 64px; height: 40px; }
  .aec-shot-alt { flex: 1 1 140px; }
}
/* very narrow phones: compact chrome */
@media (max-width: 380px) {
  .ds-frame .mock-bar { padding: 8px 11px; }
  .ds-frame .mock-bar i { width: 9px; height: 9px; }
  .ds-nav { width: 36px; height: 36px; font-size: 19px; }
}
@media (prefers-reduced-motion: reduce) {
  .ds-view { scroll-behavior: auto; }
  .ds-nav, .ds-dots i, .lb, .lb-img, .lb-nav, .lb-close { transition: none; }
  .lb-img.lb-in { animation: none; }
}
/* lightbox: click-to-zoom with spring pop; >1 image = carousel (arrows + counter + keys) */
.ds-img { cursor: zoom-in; }
.lb {
  position: fixed; inset: 0; z-index: 999;
  display: grid; place-items: center;
  background: rgba(10, 12, 18, .87);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  opacity: 0; transition: opacity .3s ease;
}
.lb.on { opacity: 1; }
.lb[hidden] { display: none; }   /* author display:grid would otherwise defeat [hidden] */
.lb-stage { margin: 0; display: grid; justify-items: center; gap: 12px; }
.lb-img {
  max-width: 92vw; max-height: 82vh; width: auto; height: auto;
  border-radius: 14px; box-shadow: 0 24px 80px rgba(0, 0, 0, .5);
  transform: scale(.9);
  transition: transform .32s cubic-bezier(.34, 1.56, .64, 1);
}
.lb.on .lb-img { transform: scale(1); }
.lb-img.lb-in { animation: lbSwap .3s cubic-bezier(.4, 0, .2, 1); }
@keyframes lbSwap {
  from { opacity: .25; transform: translateX(var(--sx, 0)) scale(.985); }
  to   { opacity: 1; transform: none; }
}
.lb-cap { color: rgba(255, 255, 255, .85); font-size: 13px; max-width: 80vw; text-align: center; }
.lb-cap:empty { display: none; }
.lb-count {
  position: fixed; top: 22px; left: 24px;
  color: rgba(255, 255, 255, .8); font-size: 13px; font-weight: 600;
  font-variant-numeric: tabular-nums; letter-spacing: .04em;
}
.lb-close { position: fixed; top: 16px; right: 16px; }
.lb-nav, .lb-close {
  width: 44px; height: 44px; border-radius: 50%; padding: 0;
  border: 1px solid rgba(255, 255, 255, .18);
  background: rgba(255, 255, 255, .12);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  color: #fff; display: grid; place-items: center; cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease,
              transform .25s cubic-bezier(.34, 1.56, .64, 1);
}
.lb-nav { position: fixed; top: 50%; transform: translateY(-50%); }
.lb-nav svg, .lb-close svg { width: 20px; height: 20px; display: block; }
.lb-prev { left: 18px; }
.lb-next { right: 18px; }
.lb-nav:hover, .lb-close:hover { background: var(--brand, #4f46e5); border-color: var(--brand, #4f46e5); }
.lb-nav:hover { transform: translateY(-50%) scale(1.07); }
.lb-close:hover { transform: scale(1.07); }
.lb-nav:active { transform: translateY(-50%) scale(.93); transition-duration: .09s; }
.lb-close:active { transform: scale(.93); transition-duration: .09s; }
@media (max-width: 640px) {
  .lb-prev { left: 8px; }
  .lb-next { right: 8px; }
  .lb-img { max-width: 96vw; max-height: 74vh; }
}
/* admin modal: screenshot rows */
.aec-shot {
  display: flex; align-items: center; gap: 9px;
  padding: 7px 0; border-bottom: 1px solid var(--line);
}
.aec-shot:last-child { border-bottom: 0; }
.aec-shot-thumb {
  width: 74px; height: 46px; object-fit: cover; border-radius: 7px;
  border: 1px solid var(--line); background: #10131c; flex: 0 0 auto;
}
.aec-shot-alt { flex: 1 1 auto; min-width: 0; }
.aec-shot-acts { display: flex; gap: 5px; flex: 0 0 auto; }
.aec-shots-list { max-height: 260px; overflow-y: auto; }

/* mobile top headers: short brand — no mark, no .com (spec2026-11-28) */
.topbar-brand { display: none; }
@media (max-width: 640px) {
  .topbar-brand { display: flex; align-items: center; }
  .topbar-brand .brand { font-size: .95rem; }
  #x-header .brand-mark, .topbar .brand-mark, .auth-wrap .brand-mark, .admin-card .brand-mark { display: none; }
  #x-header .brand-tld, .topbar .brand-tld, .auth-wrap .brand-tld, .admin-card .brand-tld, .brand-tld-alt { display: none; }
}

/* nimbus logo mark — warna adaptif (default utk tile gelap/berwarna; override --nb-* di surface terang) */
.nb .nb-body { fill: var(--nb-body, #fff); stroke: var(--nb-line, #818cf8); }
.nb .nb-eye { fill: var(--nb-eye, #fff); stroke: var(--nb-line, #818cf8); }
.nb .nb-pupil { fill: var(--nb-pupil, #312e81); }
.nb .nb-wing { fill: var(--nb-wing, #eef2ff); stroke: var(--nb-wing-line, #a5b4fc); }
.brand-mark svg { width: 22px; height: auto; }
/* /install: topbar tanpa title & tombol auth (nav tetap di sidebar/drawer) */
body[data-topbar="compact"] .topbar-brand { display: flex; align-items: center; }
body[data-topbar="compact"] .topbar-title,
body[data-topbar="compact"] .topbar-right .btn { display: none; }
