/* Dashboard-specific styles */

.dash-body {
  min-height: 100vh;
  background: var(--bg);
}

/* ── Shared "tpl-*" form/step primitives ─────────────────────────────────
   Used by the Create Site modal and the auth gate below. This is a
   duplicate of the same class set in cubewp-sites-gallery/assets/inline.css
   (that copy serves the separate cubewp.com/sites embed) — keep both in
   sync by hand if either changes. */

.tpl-back-btn {
  background: none;
  border: none;
  color: #717182;
  padding: 0;
  margin-bottom: 24px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  font-size: 13px;
  text-align: center;
}

.tpl-back-btn:hover {
  color: var(--text);
}

.tpl-form-group {
  margin-bottom: 16px;
}

.tpl-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.tpl-input-icon {
  position: absolute;
  left: 16px;
  color: var(--muted-2);
  pointer-events: none;
}

.tpl-input {
  width: 100%;
  padding: 14px 16px 14px 44px;
  border: 1px solid var(--border-2);
  border-radius: 30px;
  font-size: 15px;
  color: var(--text);
  outline: none;
  box-sizing: border-box;
  transition: border-color .18s;
  font-family: inherit;
  background: var(--surface);
}

.tpl-input::placeholder {
  color: var(--muted-2);
  font-weight: 400;
}

.tpl-input:focus {
  border-color: var(--accent);
}

.tpl-primary-btn {
  background: var(--accent);
  color: #ffffff;
  padding: 14px;
  border-radius: 30px;
  text-align: center;
  font-weight: 600;
  font-size: 15px;
  font-family: inherit;
  border: none;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity .2s;
  width: 100%;
  cursor: pointer;
  text-decoration: none;
}

.tpl-primary-btn:hover {
  opacity: .9;
}

.tpl-primary-btn:disabled {
  opacity: .55;
  cursor: not-allowed;
}

.tpl-error {
  color: var(--danger);
  font-size: 13px;
  padding: 9px 12px;
  background: color-mix(in srgb, var(--danger) 8%, transparent);
  border: 1px solid color-mix(in srgb, var(--danger) 25%, transparent);
  border-radius: 8px;
  margin-bottom: 10px;
}

.tpl-subdomain-preview {
  display: flex;
  align-items: center;
  background: var(--bg);
  border: 1.5px solid var(--border-2);
  border-radius: 10px;
  padding: 10px 14px;
  margin-top: 8px;
  font-size: 13.5px;
  gap: 2px;
}

.tpl-sdpre-host {
  font-weight: 700;
  color: var(--accent);
}

.tpl-sdpre-suffix {
  color: var(--muted-2);
}

.tpl-subdomain-status {
  margin-left: auto;
  font-size: 12px;
  min-height: 16px;
  transition: color .2s;
}

.tpl-subdomain-status.checking {
  color: var(--muted);
}

.tpl-subdomain-status.available {
  color: var(--success);
  font-weight: 500;
}

.tpl-subdomain-status.taken {
  color: var(--danger);
  font-weight: 500;
}

.tpl-otp-row {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
  justify-content: center;
}

.tpl-otp-box {
  width: 47px;
  height: 54px;
  border: 1.5px solid var(--border-2);
  border-radius: 9px;
  text-align: center;
  font-size: 20px;
  font-weight: 700;
  color: var(--accent);
  outline: none;
  transition: border-color .18s;
  font-family: inherit;
  box-sizing: border-box;
}

.tpl-otp-box:focus {
  border-color: var(--accent);
}

.tpl-otp-box.tpl-otp-error {
  border-color: var(--danger) !important;
  color: var(--danger);
}

.tpl-otp-box.tpl-otp-success {
  border-color: var(--success) !important;
  color: var(--success);
}

.tpl-prog-wrap {
  margin: 18px 0 20px;
}

.tpl-prog-bar {
  width: 100%;
  height: 10px;
  background: var(--border-2);
  border-radius: 100px;
  overflow: hidden;
  margin-bottom: 8px;
}

.tpl-prog-fill {
  height: 100%;
  /* Brand spec: flat colour blocking, no gradients, one accent. Was a
     hardcoded #9810FA→#155DFC gradient using two off-palette colours. */
  background: var(--accent);
  border-radius: 100px;
  transition: width .45s ease;
  width: 0%;
}

.tpl-prog-meta {
  display: flex;
  justify-content: space-between;
  font-size: 12.5px;
  color: var(--accent);
  font-weight: 500;
}

.tpl-done-site-link {
  display: block;
  width: 100%;
  padding: 11px 14px;
  margin-bottom: 10px;
  background: color-mix(in srgb, var(--accent) 8%, transparent);
  color: var(--accent);
  border: 1.5px solid color-mix(in srgb, var(--accent) 25%, transparent);
  border-radius: 10px;
  text-align: center;
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 600;
  box-sizing: border-box;
  word-break: break-all;
  transition: opacity .18s;
}

.tpl-done-site-link:hover {
  opacity: .82;
}

.tpl-done-admin-btn {
  display: block;
  width: 100%;
  padding: 11px 14px;
  margin-bottom: 10px;
  background: var(--surface);
  color: var(--text);
  border: 1.5px solid var(--border-2);
  border-radius: 10px;
  text-align: center;
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 600;
  box-sizing: border-box;
  transition: border-color .18s, color .18s;
}

.tpl-done-admin-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ── Sidebar shell ────────────────────────────────────────── */

.dash-shell {
  display: flex;
  min-height: 100vh;
}

.dash-sidebar {
  width: 240px;
  flex-shrink: 0;
  background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  padding: 24px 16px;
  position: sticky;
  top: 0;
  height: 100vh;
}

.dash-sidebar .logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  font-size: 17px;
  padding: 0 8px;
  margin-bottom: 28px;
}

.dash-sidenav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

.dash-sidenav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  background: none;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-align: left;
  transition: background .15s, color .15s;
}

.dash-sidenav-item:hover {
  background: var(--bg);
  color: var(--text);
}

.dash-sidenav-item.active {
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  color: var(--accent);
}

.dash-sidenav-item svg {
  flex-shrink: 0;
}

.dash-sidebar-footer {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px 8px 0;
  border-top: 1px solid var(--border);
}

.dash-sidebar-footer .nav-email {
  font-size: 12px;
  color: var(--muted);
  word-break: break-all;
}

.dash-main-area {
  flex: 1;
  min-width: 0;
}

/* ── Nav (legacy top bar — kept for any narrow-viewport fallback) ───────── */

.dash-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  height: 60px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 10;
}

.dash-nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-email {
  font-size: 13px;
  color: var(--muted);
}

.btn-sm {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 6px;
  border: 1px solid var(--border-2);
  background: none;
  cursor: pointer;
  transition: color .15s, border-color .15s;
  font-family: inherit;
}

.btn-sm:hover {
  color: var(--text);
  border-color: var(--muted);
}

.btn-sm-primary {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  padding: 7px 14px;
  border-radius: 6px;
  background: var(--accent);
  border: none;
  cursor: pointer;
  transition: background .15s;
  font-family: inherit;
  display: inline-block;
}

.btn-sm-primary:hover {
  background: var(--accent-h);
}

.btn-sm-danger {
  font-size: 12px;
  font-weight: 500;
  color: var(--danger);
  border: 1px solid color-mix(in srgb, var(--danger) 30%, transparent);
  background: none;
  border-radius: 6px;
  padding: 5px 10px;
  cursor: pointer;
  font-family: inherit;
}

/* ── Content ─────────────────────────────────────────────── */

.dash-content {
  padding: 40px 32px 80px;
}

/* Each tab keeps a comfortable 960px reading column — EXCEPT the Sites tab,
   whose template library spans the full width of the content area. */
.dash-tab-panel {
  max-width: 960px;
  margin: 0 auto;
}

#tab-dashboard {
  max-width: none;
}

/* the template library spans the full width */

.dash-loading {
  text-align: center;
  padding: 80px 0;
  color: var(--muted);
}

.dash-notice {
  text-align: center;
  padding: 80px 0;
}

.dash-notice h2 {
  margin-bottom: 12px;
}

.dash-notice p {
  color: var(--muted);
  margin-bottom: 24px;
}

/* ── Auth gate: Log in / Sign up (injected by dashboard.js) ──────────────── */

.auth-card {
  max-width: 400px;
  margin: 70px auto;
  padding: 36px 32px;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.auth-card #auth-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
}

.auth-sub {
  color: var(--muted);
  font-size: 13.5px;
  margin-bottom: 22px;
  line-height: 1.6;
}

/* Google Sign-In — rendered above the email options (priority). */
.auth-google {
  display: flex;
  justify-content: center;
  min-height: 0;
}

.auth-google:empty {
  display: none;
}

.auth-or {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.auth-or::before,
.auth-or::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.auth-or.hidden {
  display: none;
}

.auth-tabs {
  display: flex;
  background: var(--bg);
  border-radius: 100px;
  padding: 3px;
  margin-bottom: 22px;
}

.auth-tab {
  flex: 1;
  padding: 9px;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--muted);
  background: none;
  border: none;
  border-radius: 100px;
  cursor: pointer;
  transition: background .15s, color .15s;
}

.auth-tab.active {
  background: var(--surface);
  color: var(--accent);
  box-shadow: 0 1px 3px rgba(0, 0, 0, .06);
}

.auth-form.hidden {
  display: none;
}

.auth-form .tpl-otp-row {
  justify-content: center;
}

.auth-msg {
  font-size: 13px;
  color: var(--muted);
  min-height: 18px;
  margin-top: 14px;
  line-height: 1.6;
}

.auth-msg a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

.auth-msg a:hover {
  text-decoration: underline;
}

/* ── Sites tab: panel head + toolbar ─────────────────────── */

.sites-panel-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 18px;
}

.sites-count {
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
}

.sites-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.filter-pills {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.fpill {
  font-size: 12.5px;
  font-weight: 600;
  padding: 7px 13px;
  border-radius: 100px;
  border: 1px solid var(--border-2);
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background .15s, color .15s, border-color .15s;
}

.fpill:hover {
  color: var(--text);
  border-color: var(--muted-2);
}

.fpill.active {
  background: var(--text);
  color: var(--surface);
  border-color: var(--text);
}

.fdot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.fdot.warn {
  background: var(--warn);
}

.fdot.neutral {
  background: var(--muted-2);
}

.fpill-count {
  font-weight: 700;
}

.toolbar-spacer {
  flex: 1;
}

/* ── Sites list: one compact row per site, not a card grid ── */

/* Fixed-width columns (name / plan / status / actions) so nothing shifts
   between rows regardless of domain length — reads like a data table
   instead of a loose flex row. Same card treatment as the Billing tab's
   .billing-sub-row (bordered, rounded, surface background, own margin) so
   the two read as the same design language rather than two different
   list styles. */
.site-row {
  display: grid;
  /* tile · name+domain · plan · status · actions */
  grid-template-columns: 44px minmax(0, 1fr) 92px 160px auto;
  align-items: center;
  column-gap: 16px;
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: var(--r-sm, var(--radius));
  background: var(--surface);
  margin-bottom: 12px;
  position: relative;
  transition: border-color .12s, box-shadow .12s;
}

.site-row:last-child {
  margin-bottom: 0;
}

.site-row:hover {
  border-color: var(--border-2);
  box-shadow: var(--shadow-sm);
}

/* Letter tile — a visual anchor per site (marketing-radius, accent-tinted).
   Removed sites get a muted tile so the dead row reads as dead at a glance. */
.site-tile {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  user-select: none;
}

.site-tile.expired {
  background: var(--bg);
  color: var(--muted-2);
}

/* Per-row domain affordance — "Connect domain" (accent) when none is attached,
   "Domain connected" (success) when one is. Sits in the meta line under the name. */
.site-domain-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: none;
  background: none;
  padding: 0;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  cursor: pointer;
}

.site-domain-btn:hover { text-decoration: underline; }

.site-domain-btn.linked {
  color: var(--success);
  margin-left: 10px;
}

.site-row[data-state="warn"]::before,
.site-row[data-state="danger"]::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
}

.site-row[data-state="warn"]::before {
  background: var(--warn);
}

.site-row[data-state="danger"]::before {
  background: var(--danger);
}

.site-id {
  min-width: 0;
}

.site-name {
  display: block;
  font-family: var(--font-display);
  font-size: 15.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
  text-decoration: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.site-name:hover {
  color: var(--accent);
}

.site-plan-col {
  flex-shrink: 0;
}

.plan-chip {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  padding: 2px 7px;
  border-radius: 5px;
  display: inline-block;
  background: color-mix(in srgb, var(--accent) 15%, transparent);
  color: var(--accent);
}

.plan-chip.free {
  background: var(--border);
  color: var(--muted);
}

.site-meta {
  font-size: 12px;
  color: var(--muted-2);
  margin-top: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.status-cluster {
  min-width: 0;
}

.status-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: var(--muted);
  white-space: nowrap;
}

.status-item strong {
  color: var(--text);
  font-weight: 600;
}

.status-item.attention {
  color: var(--warn);
}

.status-item.attention strong {
  color: var(--warn);
}

.status-item.critical {
  color: var(--danger);
}

.status-item.critical strong {
  color: var(--danger);
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.status-dot.warn {
  background: var(--warn);
}

.status-dot.danger {
  background: var(--danger);
}

.status-dot.neutral {
  background: var(--muted-2);
}

.row-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  flex-shrink: 0;
}

/* "Admin" — the explicit, labeled primary action (not a bare icon). */
.row-btn-admin {
  font-size: 12.5px;
  font-weight: 700;
  color: #fff;
  background: var(--accent);
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  white-space: nowrap;
  transition: background .15s;
}

.row-btn-admin:hover {
  background: var(--accent-h);
}

.icon-btn {
  width: 30px;
  height: 30px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  background: none;
  color: var(--muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .12s, color .12s, border-color .12s;
}

.icon-btn:hover {
  background: var(--surface);
  border-color: var(--border-2);
  color: var(--text);
}

.row-cta {
  font-size: 12px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  font-family: inherit;
}

.row-cta.warn {
  background: color-mix(in srgb, var(--warn) 15%, transparent);
  color: var(--warn);
}

.row-cta.danger {
  background: var(--danger);
  color: #fff;
}

.kebab-wrap {
  position: relative;
}

.kebab-menu {
  position: absolute;
  top: 36px;
  right: 0;
  z-index: 5;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 12px 32px rgba(20, 20, 43, .14), 0 2px 8px rgba(20, 20, 43, .08);
  padding: 6px;
  width: 200px;
}

.kebab-menu button {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  font: inherit;
  font-size: 13px;
  color: var(--text);
  padding: 8px 10px;
  border-radius: 7px;
  cursor: pointer;
}

.kebab-menu button:hover {
  background: var(--bg);
}

.kebab-menu button svg {
  color: var(--muted);
  flex-shrink: 0;
}

/* ── Subscription status badge (Billing tab) ─────────────── */

.sub-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
  padding: 3px 10px;
  border-radius: 100px;
}

.sub-badge.sub-ok {
  background: color-mix(in srgb, #16a34a 18%, transparent);
  color: #16a34a;
  border: 1px solid color-mix(in srgb, #16a34a 35%, transparent);
}

.sub-badge.sub-warn {
  background: color-mix(in srgb, #d97706 18%, transparent);
  color: #d97706;
  border: 1px solid color-mix(in srgb, #d97706 35%, transparent);
}

.sub-badge.sub-bad {
  background: color-mix(in srgb, #dc2626 18%, transparent);
  color: #dc2626;
  border: 1px solid color-mix(in srgb, #dc2626 35%, transparent);
}

/* ── Sites tab: "no sites yet" empty message ─────────────── */

.sites-none {
  max-width: 460px;
  margin: 60px auto;
  padding: 40px 32px;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--muted);
}

.sites-none svg {
  color: var(--muted-2);
  margin-bottom: 14px;
}

.sites-none h2 {
  font-size: 18px;
  color: var(--text);
  margin-bottom: 8px;
}

.sites-none p {
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 20px;
}

/* ── Billing tab ─────────────────────────────────────────── */

.billing-section {
  margin-bottom: 32px;
}

.billing-section-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
}

.billing-loading,
.billing-empty {
  color: var(--muted);
  font-size: 13.5px;
  padding: 16px 0;
}

.billing-sub-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  margin-bottom: 10px;
}

.billing-sub-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.billing-sub-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
  flex-wrap: wrap;
}

.billing-sub-next {
  font-size: 12.5px;
  color: var(--muted);
}

.billing-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.billing-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}

.billing-table th {
  text-align: left;
  font-weight: 600;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .04em;
  padding: 12px 16px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.billing-table td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  vertical-align: middle;
}

.billing-table tbody tr:last-child td {
  border-bottom: none;
}

.billing-table .billing-desc {
  color: var(--muted);
}

.billing-status {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 600;
  padding: 2px 9px;
  border-radius: 100px;
  background: color-mix(in srgb, var(--muted) 15%, transparent);
  color: var(--muted);
}

.billing-status-paid {
  background: color-mix(in srgb, #16a34a 16%, transparent);
  color: #16a34a;
}

.billing-status-open,
.billing-status-draft {
  background: color-mix(in srgb, #d97706 16%, transparent);
  color: #d97706;
}

.billing-status-uncollectible,
.billing-status-void {
  background: color-mix(in srgb, #dc2626 16%, transparent);
  color: #dc2626;
}

.billing-invoice-link {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.billing-invoice-link:hover {
  text-decoration: underline;
}

.billing-manage-row {
  margin-top: 8px;
}


/* ── Sections ────────────────────────────────────────────── */

.section-desc {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 20px;
  line-height: 1.6;
}

/* Custom domain form */

.inline-form {
  display: flex;
  gap: 10px;
}

.field-input {
  flex: 1;
  background: var(--surface);
  border: 1.5px solid var(--border-2);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  padding: 10px 14px;
  outline: none;
}

.field-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent);
}

.field-inline {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.domain-pill {
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: 100px;
  padding: 6px 14px;
  font-size: 14px;
  color: var(--text);
}

.domain-status {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
}

.domain-status.ok {
  color: var(--success);
}

.domain-status.pending {
  color: var(--warn);
}

.domain-status.error {
  color: var(--danger);
}

.domain-locked {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  background: color-mix(in srgb, var(--accent) 8%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent);
  border-radius: var(--radius);
  padding: 16px 20px;
}

.domain-locked p {
  font-size: 14px;
  color: var(--muted);
}

.domain-locked strong {
  color: var(--text);
}

.nameserver-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-top: 16px;
}

.ns-label {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 12px;
}

.ns-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.ns-entry {
  font-family: 'Courier New', monospace;
  font-size: 13px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 8px 12px;
  color: var(--accent);
}

.ns-note {
  font-size: 12px;
  color: var(--muted-2);
  line-height: 1.6;
}

/* Small plan grid */

.plan-grid-small {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 16px;
}

.plan-card-sm {
  background: var(--surface);
  border: 1.5px solid var(--border-2);
  border-radius: var(--radius);
  padding: 20px;
  transition: border-color .15s;
}

.plan-card-sm:hover {
  border-color: var(--muted);
}

.plan-price-sm {
  font-size: 26px;
  font-weight: 700;
  margin: 6px 0;
}

.plan-price-sm span {
  font-size: 14px;
  font-weight: 400;
  color: var(--muted);
}

.plan-features-sm {
  list-style: none;
  font-size: 13px;
  color: var(--muted);
  margin: 12px 0 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.plan-features-sm li {
  padding-left: 16px;
  position: relative;
}

.plan-features-sm li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--success);
}

.btn-plan-sm {
  width: 100%;
  padding: 9px;
  background: var(--border-2);
  color: var(--text);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background .15s;
}

.btn-plan-sm:hover {
  background: var(--border);
}

.btn-plan-active {
  background: var(--accent);
  color: #fff;
}

.btn-plan-active:hover {
  background: var(--accent-h);
}

.upgrade-note {
  font-size: 12px;
  color: var(--muted-2);
  line-height: 1.6;
}

/* ── Upgrade modal ───────────────────────────────────────── */

.pay-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(3, 3, 8, .7);
  backdrop-filter: blur(3px);
}

.pay-modal-card {
  position: relative;
  width: 100%;
  max-width: 380px;
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  padding: 28px;
  animation: popIn .25s cubic-bezier(.175, .885, .32, 1.275) both;
}

.pay-modal-card h3 {
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 6px;
}

.pay-modal-amount {
  font-size: 24px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 12px;
}

.pay-modal-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 20px;
}

.pay-modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: none;
  border: none;
  color: var(--muted);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 6px;
  transition: color .15s;
}

.pay-modal-close:hover {
  color: var(--text);
}

/* ── Tab panels ──────────────────────────────────────────── */

.dash-tab-panel.hidden {
  display: none;
}

/* ── Sites tab: empty state (spacious starting-point cards) ──────────────── */

.sites-empty-head {
  text-align: center;
  max-width: 520px;
  margin: 40px auto 36px;
}

.sites-empty-head h1 {
  font-size: 24px;
  margin-bottom: 8px;
}

.sites-empty-head p {
  color: var(--muted);
  font-size: 14.5px;
}

.sites-empty-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  max-width: 860px;
  margin: 0 auto;
}

.sites-empty-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  gap: 10px;
  background: var(--surface);
  border: 1.5px solid var(--border-2);
  border-radius: var(--radius);
  padding: 24px;
  cursor: pointer;
  font-family: inherit;
  transition: border-color .15s, transform .15s, box-shadow .15s;
}

.sites-empty-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -12px color-mix(in srgb, var(--accent) 30%, transparent);
}

.sites-empty-card-icon {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  color: var(--accent);
  border-radius: 10px;
}

.sites-empty-card-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}

.sites-empty-card-desc {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.5;
}

.sites-empty-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 860px;
  margin: 36px auto;
  color: var(--muted-2);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .05em;
}

.sites-empty-divider::before,
.sites-empty-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.sites-empty-divider span {
  padding: 0 14px;
}

.sites-templates-showcase {
  max-width: none;
  /* full width — spans the whole dashboard content area */
  margin: 0;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}

.sites-templates-showcase h2 {
  font-size: 19px;
  margin-bottom: 6px;
}

.sites-templates-showcase>p {
  font-size: 13.5px;
  color: var(--muted);
  margin-bottom: 20px;
}

.sites-templates-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

@media (min-width: 640px) {
  .sites-templates-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1100px) {
  .sites-templates-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1600px) {
  .sites-templates-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* Inline library card — preview image + name + Preview / Use-this-template. */
.tpl-lib-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1.5px solid var(--border-2);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: border-color .15s, transform .15s, box-shadow .15s;
}

.tpl-lib-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -14px color-mix(in srgb, var(--accent) 30%, transparent);
}

.tpl-lib-thumb-wrap {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: var(--border);
  overflow: hidden;
}

.tpl-lib-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.tpl-lib-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 12px 14px 14px;
  flex: 1;
}

.tpl-lib-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.35;
}

.tpl-lib-actions {
  display: flex;
  gap: 8px;
  margin-top: auto;
}

.tpl-lib-btn {
  flex: 1;
  padding: 8px 6px;
  border-radius: 8px;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s, border-color .15s, color .15s, filter .15s;
}

.tpl-lib-btn-preview {
  flex: 0 0 auto;
  padding: 8px 14px;
  background: var(--surface);
  border: 1.5px solid var(--border-2);
  color: var(--text);
}

.tpl-lib-btn-preview:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.tpl-lib-btn-use {
  background: var(--accent);
  border: 1.5px solid var(--accent);
  color: #fff;
}

.tpl-lib-btn-use:hover {
  filter: brightness(.94);
}

/* Browse Templates modal — full library + category filter */

.browse-tpl-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
  flex-shrink: 0;
}

.browse-tpl-cat {
  padding: 7px 16px;
  background: var(--bg);
  border: 1px solid var(--border-2);
  border-radius: 100px;
  color: var(--muted);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}

.browse-tpl-cat:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.browse-tpl-cat.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* Domain/Plan tab site picker — same pill look as .browse-tpl-cat, shown
   only for multi-site accounts so they can pick which site the tab applies to. */
.site-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

/* ── Buttons shared with tpl-* (gallery) styles ──────────── */

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--accent);
  color: #fff;
  font-family: inherit;
  font-weight: 600;
  font-size: 15px;
  padding: 12px 24px;
  border: none;
  border-radius: 100px;
  cursor: pointer;
  text-decoration: none;
  transition: opacity .15s;
}

.btn-primary:hover {
  opacity: .92;
}

.btn-primary:disabled {
  opacity: .55;
  cursor: not-allowed;
}

/* ── Create Site modal ───────────────────────────────────── */

.cs-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(26, 26, 46, .45);
  backdrop-filter: blur(3px);
}

.cs-modal.hidden {
  display: none;
}

.cs-modal-card {
  position: relative;
  width: 100%;
  max-width: 560px;
  max-height: 85vh;
  overflow-y: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  animation: popIn .25s cubic-bezier(.175, .885, .32, 1.275) both;
}

@keyframes popIn {
  from {
    opacity: 0;
    transform: scale(.96);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

.cs-modal-card h3 {
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 18px;
}

.cs-modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: none;
  border: none;
  color: var(--muted);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  padding: 2px 8px;
  border-radius: 6px;
}

.cs-modal-close:hover {
  color: var(--text);
  background: var(--bg);
}

.cs-modal-card .hidden {
  display: none;
}

.cs-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cs-mode-option {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  text-align: left;
  padding: 16px 18px;
  background: var(--bg);
  border: 1.5px solid var(--border-2);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color .15s, background .15s;
  font-family: inherit;
}

.cs-mode-option:hover {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 6%, var(--bg));
}

.cs-mode-option-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  color: var(--accent);
  border-radius: 10px;
}

.cs-mode-option-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cs-mode-option-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}

.cs-mode-option-desc {
  font-size: 13px;
  color: var(--muted);
}

.cs-plan-sub {
  font-size: 13.5px;
  color: var(--muted);
  margin-bottom: 18px;
  line-height: 1.5;
}

.cs-plan-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 18px;
}

.cs-plan-row {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  align-items: center;
  width: 100%;
  text-align: left;
  padding: 14px 18px;
  background: var(--bg);
  border: 1.5px solid var(--border-2);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color .15s, background .15s;
  font-family: inherit;
}

.cs-plan-row:hover {
  border-color: var(--accent);
}

.cs-plan-row.selected {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 6%, var(--bg));
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 20%, transparent);
}

.cs-plan-row.cs-plan-row-disabled,
.cs-plan-row:disabled {
  opacity: .5;
  cursor: not-allowed;
  background: var(--bg);
}

.cs-plan-row.cs-plan-row-disabled:hover,
.cs-plan-row:disabled:hover {
  border-color: var(--border-2);
}

.cs-plan-row-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  grid-column: 1;
  grid-row: 1;
}

.cs-plan-row-price {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  grid-column: 2;
  grid-row: 1;
}

.cs-plan-row-price span {
  font-size: 12px;
  font-weight: 400;
  color: var(--muted);
}

.cs-plan-row-note {
  font-size: 12.5px;
  color: var(--muted);
  grid-column: 1 / -1;
  grid-row: 2;
  margin-top: 2px;
}

.cs-pay-methods {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 6px;
}

/* Demo grid (inside modal) */

.cs-demo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
  max-height: 420px;
  overflow-y: auto;
}

.cs-demo-card {
  border: 1.5px solid var(--border-2);
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  background: var(--bg);
  transition: border-color .15s;
  text-align: left;
  font-family: inherit;
  padding: 0;
  height: 200px;
}

.cs-demo-card:hover {
  border-color: var(--accent);
}

.cs-demo-card.selected {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 25%, transparent);
}

.cs-demo-thumb {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--border);
  display: block;
  object-fit: cover;
  object-position: top center;
}

.cs-demo-name {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text);
  padding: 8px 10px;
}

.cs-demo-loading,
.cs-demo-empty {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  padding: 24px 0;
}

/* Template preview modal — reuses .cs-modal-card, adds the image + text layout */

.tpl-preview-card {
  max-width: 480px;
  padding: 0 0 28px;
  overflow: hidden;
}

.tpl-preview-img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  background: var(--bg);
  display: block;
  object-position: top center;
}

.tpl-preview-card #tpl-preview-title {
  font-size: 18px;
  margin: 20px 28px 6px;
}

.tpl-preview-desc {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.6;
  margin: 0 28px 20px;
}

.tpl-preview-card .btn-primary {
  width: calc(100% - 56px);
  margin: 0 28px;
}

.cs-import-note {
  background: color-mix(in srgb, var(--accent) 8%, var(--bg));
  border: 1px solid color-mix(in srgb, var(--accent) 20%, transparent);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 18px;
}

.cs-import-note strong {
  color: var(--text);
}

@media (max-width: 780px) {
  .dash-shell {
    flex-direction: column;
  }

  .dash-sidebar {
    width: 100%;
    height: auto;
    position: static;
    flex-direction: row;
    align-items: center;
    padding: 12px 16px;
  }

  .dash-sidebar .logo {
    margin-bottom: 0;
  }

  .dash-sidenav {
    flex-direction: row;
  }

  .dash-sidebar-footer {
    flex-direction: row;
    border-top: none;
    padding: 0;
    margin-left: auto;
  }
}

@media (max-width: 600px) {
  .dash-content {
    padding: 24px 16px 60px;
  }

  .dash-nav {
    padding: 0 16px;
  }

  .inline-form {
    flex-direction: column;
  }

  .plan-grid-small {
    grid-template-columns: 1fr;
  }

  /* Sites tab: status column folds away, row goes two-line (tile + name on
     the first line, plan chip + actions sharing the second) */
  .site-row {
    grid-template-columns: 44px minmax(0, 1fr) auto;
    grid-template-areas: "tile name name""plan plan actions";
    row-gap: 8px;
  }

  .site-tile {
    grid-area: tile;
  }

  .site-id {
    grid-area: name;
  }

  .site-plan-col {
    grid-area: plan;
    align-self: center;
  }

  .status-cluster {
    display: none;
  }

  .row-actions {
    grid-area: actions;
  }
}

.tpl-input-wrapper input#cs-site-name {
  padding-left: 40px;
}
/* ═══════════════════════════════════════════════════════════════════════════
   Support tab — contact form + custom accessible radio group
   ═══════════════════════════════════════════════════════════════════════════ */
.support-form { max-width: 640px; }

.support-field { margin-bottom: 18px; }

.support-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}

.support-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

/* Custom radio group — selectable pills */
.support-radiogroup {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.support-radio {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  background: var(--surface, #fff);
  border: 1.5px solid var(--border-2);
  border-radius: 999px;
  color: var(--text);
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  transition: border-color .15s, background .15s, color .15s;
}
.support-radio:hover { border-color: var(--muted); }
.support-radio:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 30%, transparent);
  border-color: var(--accent);
}
.support-radio.is-checked {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 8%, transparent);
  color: var(--accent);
}
.support-radio-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid var(--border-2);
  flex: 0 0 auto;
  transition: border-color .15s, box-shadow .15s;
}
.support-radio.is-checked .support-radio-dot {
  border-color: var(--accent);
  box-shadow: inset 0 0 0 3px var(--accent);
}

/* Fields */
.support-textarea {
  width: 100%;
  min-height: 130px;
  resize: vertical;
  line-height: 1.5;
}
.support-field .field-input { width: 100%; }
.support-field .field-input.is-invalid {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--danger) 15%, transparent);
}
.support-error {
  display: block;
  min-height: 16px;
  margin-top: 5px;
  font-size: 12px;
  color: var(--danger);
}

.support-actions { margin-top: 4px; }

.support-result {
  margin-top: 14px;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  line-height: 1.45;
}
.support-result-ok {
  background: color-mix(in srgb, #16a34a 10%, transparent);
  color: #15803d;
  border: 1px solid color-mix(in srgb, #16a34a 30%, transparent);
}
.support-result-err {
  background: color-mix(in srgb, var(--danger) 8%, transparent);
  color: var(--danger);
  border: 1px solid color-mix(in srgb, var(--danger) 28%, transparent);
}

/* Honeypot — present in the DOM for bots, invisible + off the tab order for humans */
.support-hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px;
  overflow: hidden;
  opacity: 0;
}

@media (max-width: 560px) {
  .support-grid-2 { grid-template-columns: 1fr; }
}

/* ═══ Brand mark — matches sites.cubewp.com exactly ═════════════════════════
   Same /assets/images/logo.png the landing page uses (170×32, rendered at 32px
   height, identical to the marketing .brand .logo rule) so the dashboard and the
   marketing site can never drift apart. Replaces a hand-inlined base64 SVG copy.
   ═══════════════════════════════════════════════════════════════════════════ */
.logo-img {
  height: 32px;
  width: auto;
  display: block;
}

/* Login screen brand — the client's first screen after the marketing site. */
.auth-brand {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}
.auth-brand-logo {
  height: 32px;
  width: auto;
  display: block;
}

/* Retry affordance inside an error/empty block — an error the client can act on
   beats a dead end. */
.billing-empty .btn-sm-primary { margin-left: 8px; }

/* ═══ Accessibility — visible keyboard focus ════════════════════════════════
   PROBLEM THIS FIXES: five rules across these stylesheets set `outline: none`
   on inputs/controls with no replacement, so tabbing through the dashboard gave
   NO visible focus indicator — unusable without a mouse (WCAG 2.4.7 failure).

   :focus-visible only matches keyboard/AT focus, so mouse users never see a ring
   on click — which is why those outlines were removed in the first place. We get
   the accessibility back without the thing people disliked.

   Inputs use a box-shadow ring rather than `outline`, because the existing
   `outline: none` rules would otherwise win on specificity and hide it.
   ═══════════════════════════════════════════════════════════════════════════ */
:where(a, button, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

input:focus-visible,
textarea:focus-visible,
select:focus-visible,
.tpl-input:focus-visible,
.field-input:focus-visible,
.tpl-otp-box:focus-visible {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent);
}

/* Controls that are visually custom still need an unmistakable ring. */
.dash-sidenav-item:focus-visible,
.auth-tab:focus-visible,
.support-radio:focus-visible,
.sites-empty-card:focus-visible,
.row-cta:focus-visible,
.tpl-primary-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ═══ Motion budget ═════════════════════════════════════════════════════════
   This is a tool people sit in for long sessions: motion is a cost, not a
   feature. Interactions settle fast (≤150ms) on the marketing site's easing
   curve, and anyone who has asked their OS for less motion gets none.
   ═══════════════════════════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}


/* Site-picker: mark a removed site so identical subdomains are distinguishable. */
.site-picker-pill.is-removed { opacity: .62; }
.site-picker-removed {
  font-size: 0.82em;
  font-weight: 600;
  color: var(--danger);
}
.site-picker-pill.active .site-picker-removed { color: inherit; }

/* Create-success "revenue-ready" nudge (demo clones only) */
.cs-earn {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid color-mix(in srgb, var(--success) 30%, transparent);
  background: color-mix(in srgb, var(--success) 7%, transparent);
  border-radius: var(--radius);
  text-align: left;
}
.cs-earn-head { font-size: 13.5px; font-weight: 600; color: var(--text); line-height: 1.4; }
.cs-earn-badge {
  display: inline-block;
  margin-right: 6px;
  font-size: 11px;
  font-weight: 700;
  color: var(--success);
  text-transform: uppercase;
  letter-spacing: .04em;
}
.cs-earn-sub { margin: 5px 0 10px; font-size: 12.5px; color: var(--muted); }

/* Demo-picker subhead — carries the "revenue-ready" positioning */
.cs-demo-sub {
  margin: -4px 0 14px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
}
