/* redflag-app-shell.css — shared app chrome (dashboard parity) + marketing landing (rf-landing-body) canvas */

html:has(body.rf-dash-body),
html:has(body.rf-landing-body) {
  background-color: #ececee;
}
body.rf-dash-body,
body.rf-landing-body {
  min-height: 100vh;
  background: transparent;
  background-color: transparent;
}
body.rf-dash-body .rf-app,
body.rf-admin-body .rf-app {
  position: relative;
  z-index: 0;
  background: transparent;
}
/* Landing uses .rf-app only as a gradient host — DS .rf-app is display:flex for sidebar+main, which breaks marketing layout */
body.rf-landing-body .rf-app {
  display: block;
  width: 100%;
  min-height: 100vh;
  position: relative;
  z-index: 0;
  background: transparent;
}
body.rf-dash-body .rf-app::before,
body.rf-landing-body .rf-app::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, #fafaf7 0%, #ececee 100%);
  background-color: #ececee;
  background-attachment: fixed;
  pointer-events: none;
}
.rf-dash-layout {
  background: transparent;
}
.rf-dash-shell {
  max-width: 1700px;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
  padding: 40px 48px;
  box-sizing: border-box;
  background: transparent;
}
.rf-content.rf-dash-page {
  padding: 0;
  max-width: none;
  background: transparent;
}
.rf-dash-layout .rf-page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}
.rf-dash-layout .rf-page-header--with-cta {
  align-items: center;
  padding-top: 40px;
  padding-bottom: 40px;
  margin-bottom: 0;
}
.rf-dash-layout .rf-page-header--with-cta .rf-extension-notice {
  flex-shrink: 0;
}
.rf-dash-layout .rf-page-title {
  font-size: 22px;
  font-weight: 600;
  color: #1e293b;
  letter-spacing: -0.02em;
}
.rf-dash-layout .rf-page-sub {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--rf-gray-600);
  margin-top: 4px;
}

/* KPI stat text lock: keep "Needs Attention" + "No change" aligned */
body.rf-dash-body .rf-kpi-insight-stats {
  gap: 2px !important;
}
body.rf-dash-body .rf-kpi-insight-stats .rf-kpi-insight-stat-line {
  display: flex !important;
  align-items: center !important;
  margin: 0 !important;
  min-height: 16px !important;
  line-height: 1.25 !important;
}
body.rf-dash-body .rf-kpi-insight-stats .rf-kpi-insight-stat-line > span {
  display: block !important;
}
body.rf-dash-body .rf-kpi-insight-stats .rf-kpi-stat-severity-critical,
body.rf-dash-body .rf-kpi-insight-stats .rf-kpi-stat-trend--flat {
  font-size: 13px !important;
  font-weight: 600 !important;
  line-height: 1.25 !important;
}
body.rf-dash-body .rf-kpi-insight-stats .rf-kpi-stat-severity-critical {
  color: #b91c1c !important;
}
body.rf-dash-body .rf-kpi-insight-stats .rf-kpi-stat-trend--flat {
  color: #64748b !important;
}

/* Domain row typography & compliance (matches dashboard Recent Domains) */
.rf-dash-domain-title {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #1e293b;
}
.rf-dash-domain-meta {
  font-size: 0.75rem;
  font-weight: 400;
  color: #64748b;
}
.rf-dash-compliance-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 3px;
  gap: 8px;
  flex-wrap: wrap;
}
.rf-dash-compliance-labels {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
}
.rf-dash-compliance-sep {
  color: #cbd5e1;
  font-size: 0.75rem;
  font-weight: 400;
  user-select: none;
  line-height: 1;
}
.rf-dash-domain-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
  min-height: 28px;
}
.rf-dash-domain-footer .rf-dash-sev-line {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  column-gap: 14px;
  row-gap: 6px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.45;
  flex: 1 1 auto;
  min-width: 0;
}
.rf-dash-domain-footer .rf-dash-sev {
  white-space: nowrap;
}
.rf-dash-domain-footer .rf-dash-sev-sep {
  color: #0f172a;
  font-weight: 400;
  user-select: none;
}
.rf-dash-domain-footer .rf-dash-sev--critical { color: #b91c1c; }
.rf-dash-domain-footer .rf-dash-sev--serious { color: #9a3412; }
.rf-dash-domain-footer .rf-dash-sev--moderate { color: #92400e; }
.rf-dash-domain-footer .rf-dash-sev--minor { color: #1d4ed8; }
.rf-dash-domain-footer .rf-dash-sev--resolved { color: #166534; }
.rf-dash-domain-footer .rf-dash-domain-total {
  font-size: 12px;
  font-weight: 500;
  color: #64748b;
  line-height: 1.2;
  white-space: nowrap;
}
/* Direct child in footer row (pushes right); matches dashboard */
.rf-dash-domain-footer > .rf-dash-domain-status {
  margin-left: auto;
  font-size: 0.75rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}
/* Compliance row — same as dashboard inline (.rf-dash-compliance-labels .rf-dash-domain-status) */
.rf-dash-compliance-labels .rf-dash-domain-status {
  margin-left: 0;
  font-size: 0.75rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}
.rf-dash-domain-footer > .rf-dash-domain-issues-link {
  margin-left: auto;
  flex-shrink: 0;
  align-self: center;
  white-space: nowrap;
}
/* Primary CTA variant — text + arrow stay white (avoids link-color overrides) */
.rf-dash-domain-footer > .rf-dash-domain-issues-link.rf-btn-primary,
.rf-dash-domain-footer > .rf-dash-domain-issues-link.rf-btn-primary .rf-dash-domain-issues-arr,
a.rf-btn-primary.rf-dash-domain-issues-link,
a.rf-btn-primary.rf-dash-domain-issues-link .rf-dash-domain-issues-arr {
  color: #fff;
}
.rf-dash-domain-footer > .rf-dash-domain-issues-link.rf-btn-primary:hover,
.rf-dash-domain-footer > .rf-dash-domain-issues-link.rf-btn-primary:focus-visible,
.rf-dash-domain-footer > .rf-dash-domain-issues-link.rf-btn-primary:hover .rf-dash-domain-issues-arr,
.rf-dash-domain-footer > .rf-dash-domain-issues-link.rf-btn-primary:focus-visible .rf-dash-domain-issues-arr,
a.rf-btn-primary.rf-dash-domain-issues-link:hover,
a.rf-btn-primary.rf-dash-domain-issues-link:focus-visible,
a.rf-btn-primary.rf-dash-domain-issues-link:hover .rf-dash-domain-issues-arr,
a.rf-btn-primary.rf-dash-domain-issues-link:focus-visible .rf-dash-domain-issues-arr {
  color: #fff;
}
.rf-dash-domain-footer > .rf-dash-domain-issues-link .rf-dash-domain-issues-arr {
  display: inline-block;
  transition: transform 0.22s ease;
}
.rf-dash-domain-footer > .rf-dash-domain-issues-link:hover .rf-dash-domain-issues-arr {
  transform: translateX(5px);
}

.rf-domains-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
/* Intrinsic-width search; equal L/R padding inside pill (icon + gap only on the left) */
.rf-domains-toolbar > .rf-search-wrap {
  width: auto;
  max-width: 100%;
  flex: 0 1 auto;
  min-width: 0;
  box-sizing: border-box;
  padding-inline: 12px;
}
.rf-domains-toolbar > .rf-search-wrap input {
  flex: 0 1 auto;
  min-width: 12rem;
  max-width: min(22rem, calc(100vw - 120px));
}
.rf-domains-sort-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.rf-domains-sort-label {
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 700;
  color: var(--rf-gray-500);
  white-space: nowrap;
}
.rf-domains-sort-select {
  width: auto;
  min-width: 0;
  max-width: 100%;
  font-size: 13px;
  padding: 8px 30px 8px 12px;
}
/* Domains list card: frosted shell + toolbar in header (variant rf-list-card--domains) */
.rf-domains-list-host > .rf-list-card {
  position: relative;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  min-height: 0;
  overflow: hidden;
  border: 0;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: none;
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}
.rf-domains-list-host .rf-list-card--domains .rf-list-card-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
  padding: 24px 20px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}
.rf-domains-list-host .rf-list-card--domains .rf-list-card-header .rf-domains-toolbar {
  flex: 1;
  min-width: 0;
  margin: 0;
}
.rf-domains-list-host .rf-list-card--domains .rf-list-card-header .rf-domains-card-add {
  flex-shrink: 0;
  align-self: center;
}
.rf-domains-list-host .rf-list-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 10px;
  padding: 8px 20px 20px;
}
.rf-domains-list-host .rf-list-card-body .rf-domain-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.rf-domains-list-host .rf-domain-list .domain-card {
  padding: 16px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.62);
  box-shadow: none;
  border: 0;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-sizing: border-box;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.2s;
}
.rf-domains-list-host .rf-domain-list .domain-card:not(:last-child) {
  position: relative;
}
.rf-domains-list-host .rf-domain-list .domain-card:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 70%;
  height: 1px;
  background: rgba(148, 163, 184, 0.18);
  pointer-events: none;
}
.rf-domains-list-host .rf-domain-list .domain-card:hover {
  border-color: #cbd5e1;
  background: #fafafa;
  box-shadow: none;
  transform: none;
}
.rf-domains-list-host .rf-domain-list .domain-card--pending-scan .rf-dash-domain-footer--empty {
  display: none;
}

.domain-card {
  border: 0;
  border-radius: 12px;
  box-shadow: none;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.2s, transform 0.18s;
}

/* Surfaces + tables under dash layout */
.rf-dash-layout .rf-card.rf-dash-surface {
  border-radius: 12px;
  box-shadow: none;
  border: 0;
  background: #ffffff;
}
.rf-dash-shell .domain-card.rf-card {
  box-shadow: none;
  border-color: transparent;
}
.rf-dash-layout .rf-card,
.rf-dash-layout .domain-card.rf-card {
  box-shadow: none;
}
.rf-dash-layout .rf-card-header {
  padding: 14px 20px;
  border-bottom: 1px solid #e2e8f0;
}
.rf-dash-layout .rf-card-title {
  font-size: 14px;
  font-weight: 600;
  color: #1e293b;
}
.rf-dash-layout .rf-card-sub {
  font-size: 0.75rem;
  font-weight: 400;
  color: #64748b;
  margin-top: 2px;
}
.rf-dash-layout .rf-table thead tr {
  border-bottom: 1px solid #e2e8f0;
}
.rf-dash-layout .rf-table th {
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0.02em;
  color: #64748b;
  padding: 10px 16px;
  background: #ffffff;
}
.rf-dash-layout .rf-table td {
  padding: 9px 16px;
  font-size: 0.8125rem;
  font-weight: 400;
  color: #64748b;
  border-bottom: 1px solid #f1f5f9;
}
.rf-dash-layout .rf-table .issue-name {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #1e293b;
}
.rf-dash-layout .rf-table .issue-rule {
  font-size: 0.75rem;
  font-weight: 400;
  color: #64748b;
}
.rf-dash-layout .rf-input {
  border-radius: 12px;
  border-color: rgba(226, 232, 240, 0.95);
  box-shadow: none;
}
.rf-dash-layout .rf-input:focus {
  box-shadow: none;
  border-color: #94a3b8;
}
.rf-dash-layout select.rf-input:focus,
.rf-dash-layout select.rf-input.rf-select:focus {
  border-color: var(--rf-resolved);
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.12);
}
.rf-dash-layout select.rf-input,
.rf-dash-layout select.rf-input.rf-select {
  accent-color: var(--rf-resolved);
}
.rf-dash-layout .rf-btn {
  /* Geometry from redflag-ds.css (--rf-btn-radius); keep dashboard tweaks only */
  box-shadow: none;
}
.rf-dash-layout .rf-btn-primary {
  box-shadow: 0 1px 2px rgba(26, 109, 56, 0.12);
}
.rf-dash-layout .rf-pill {
  font-weight: 500;
}

/* Issues — summary stat strip */
.rf-issues-stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}
@media (min-width: 900px) {
  .rf-issues-stat-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 18px;
  }
}
.rf-issues-stat-card {
  border-radius: 18px;
  padding: 18px 14px;
  text-align: center;
  background: rgba(255, 255, 255, 0.88);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  border: 0;
  box-shadow: none;
  box-sizing: border-box;
}
.rf-issues-stat-card--accent {
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.25);
}
.rf-issues-stat-card--critical {
  box-shadow: inset 0 0 0 1px rgba(220, 38, 38, 0.22);
}
.rf-issues-stat-card--serious {
  box-shadow: inset 0 0 0 1px rgba(154, 52, 18, 0.2);
}
.rf-issues-stat-card--compliance {
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.28);
}
.rf-issues-stat-val {
  font-size: 1.375rem;
  font-weight: 700;
  line-height: 1.15;
  color: #1e293b;
}
.rf-issues-stat-card--critical .rf-issues-stat-val {
  color: #b91c1c;
}
.rf-issues-stat-card--serious .rf-issues-stat-val {
  color: #9a3412;
}
.rf-issues-stat-card--compliance .rf-issues-stat-val {
  color: #b91c1c;
}
.rf-issues-stat-label {
  font-size: 11px;
  font-weight: 600;
  color: #64748b;
  margin-top: 4px;
}

/* Issues — tabs */
.rf-tab-row {
  display: flex;
  align-items: center;
  gap: 8px 20px;
  flex-wrap: wrap;
  border-bottom: 1px solid #e2e8f0;
  margin-bottom: 20px;
}
.rf-tab-item {
  padding: 10px 2px 12px;
  font-size: 13px;
  font-weight: 600;
  color: #64748b;
  border: none;
  background: none;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color 0.15s ease, border-color 0.15s ease;
  font-family: var(--rf-font-sans);
}
.rf-tab-item:hover {
  color: #334155;
}
.rf-tab-item.active {
  color: #0f172a;
  border-bottom-color: #0f172a;
  font-weight: 600;
}

/* Settings layout (single content column; add a second grid child + two columns here if snav returns) */
.rf-settings-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  align-items: start;
  justify-items: start;
}
@media (min-width: 768px) {
  .rf-settings-layout {
    gap: 28px;
  }
}

/* Settings: main column exactly 750px on desktop (overrides legacy inline width on #main-content) */
.rf-dash-layout .rf-settings-layout > #main-content.rf-settings-stack {
  width: 100%;
  max-width: 750px;
  min-width: 0;
  box-sizing: border-box;
  justify-self: start;
}
@media (min-width: 768px) {
  .rf-dash-layout .rf-settings-layout > #main-content.rf-settings-stack {
    width: 750px !important;
    min-width: min(750px, 100%) !important;
    max-width: 100% !important;
  }
}

.rf-settings-snav {
  position: sticky;
  top: 72px;
  border-radius: 18px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.88);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  border: 0;
  box-shadow: none;
  max-width: 255px;
  width: 100%;
  box-sizing: border-box;
}
.rf-dash-layout .snav-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 12px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  color: #64748b;
  cursor: pointer;
  border: 1px solid transparent;
  background: transparent;
  width: 100%;
  text-align: left;
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
  font-family: var(--rf-font-sans);
  margin: 0 0 4px;
  box-sizing: border-box;
}
.rf-dash-layout .snav-item:hover:not(.active) {
  background: rgba(148, 163, 184, 0.14);
  color: #0f172a;
}
.rf-dash-layout .snav-item.active {
  background: rgba(255, 255, 255, 0.94);
  color: #0f172a;
  border-color: transparent;
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.05),
    0 6px 16px rgba(15, 23, 42, 0.08);
  font-weight: 600;
}
.rf-dash-layout .snav-item.danger {
  color: #b91c1c;
}
.rf-dash-layout .snav-item.danger:hover {
  background: #fef2f2;
  color: #991b1b;
}
.rf-settings-section-title {
  font-size: 15px;
  font-weight: 600;
  color: #0f172a;
  letter-spacing: -0.01em;
  margin-bottom: 20px;
}
.rf-dash-layout .rf-settings-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.rf-dash-layout #section-account,
.rf-dash-layout #section-billing,
.rf-dash-layout #section-security,
.rf-dash-layout #section-danger {
  width: 100%;
  min-width: min(100%, 750px);
  box-sizing: border-box;
}
.rf-dash-layout .rf-card.rf-card-p {
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 0;
  box-shadow: none;
}

/* Settings — dashboard-aligned panels & type */
.rf-settings-snav-divider {
  height: 1px;
  background: rgba(148, 163, 184, 0.2);
  margin: 6px 0;
  border: 0;
}
.rf-dash-layout .snav-item .material-symbols-outlined {
  font-size: 18px;
  opacity: 0.85;
}
.rf-dash-layout .snav-item.active .material-symbols-outlined {
  opacity: 1;
}
.rf-settings-profile-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(226, 232, 240, 0.95);
  margin-bottom: 20px;
}
.rf-settings-profile-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: #1e293b;
}
.rf-settings-profile-email {
  font-size: 0.8125rem;
  font-weight: 400;
  color: #64748b;
  margin-top: 2px;
}
.rf-settings-plan-callout {
  padding: 16px;
  border-radius: 16px;
  margin-bottom: 20px;
  border: 1px solid rgba(26, 109, 56, 0.28);
  background: rgba(255, 255, 255, 0.72);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6) inset;
}
.rf-settings-plan-callout-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}
.rf-settings-plan-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--rf-primary-cta);
}
.rf-settings-plan-callout .rf-pill-pro {
  background: var(--rf-primary-cta);
  color: var(--rf-white);
  border-color: transparent;
}
.rf-settings-plan-meta {
  font-size: 0.8125rem;
  font-weight: 400;
  color: #64748b;
}
.rf-settings-plan-sub {
  font-size: 11px;
  font-weight: 400;
  color: #64748b;
  margin-top: 2px;
  line-height: 1.45;
}
.rf-settings-subheading {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #475569;
  margin-bottom: 10px;
}
.rf-settings-invoice-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #f1f5f9;
  gap: 12px;
}
.rf-settings-invoice-row:last-child {
  border-bottom: none;
}
.rf-settings-invoice-date {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #1e293b;
}
.rf-settings-invoice-desc {
  font-size: 11px;
  font-weight: 400;
  color: #64748b;
  margin-top: 2px;
}
.rf-settings-invoice-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.rf-settings-invoice-amt {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #1e293b;
}
.rf-settings-danger-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px;
  background: #fef2f2;
  border-radius: 12px;
  border: 1px solid rgba(220, 38, 38, 0.22);
  flex-wrap: wrap;
}
.rf-settings-danger-title {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #1e293b;
}
.rf-settings-danger-sub {
  font-size: 12px;
  font-weight: 400;
  color: #64748b;
  margin-top: 2px;
  line-height: 1.45;
}
.rf-dash-layout .rf-breadcrumb-item {
  color: #64748b;
  font-size: 13px;
  font-weight: 500;
}
.rf-dash-layout .rf-breadcrumb-item.active {
  color: #0f172a;
  font-weight: 600;
}

/* ── Mobile-only top bar + drawer backdrop (hidden ≥768px) ── */
.rf-mobile-bar {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--rf-mobile-bar-h, 52px);
  z-index: 70;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  box-sizing: border-box;
  background: var(--rf-glass-frost-a), var(--rf-glass-frost-b);
  -webkit-backdrop-filter: var(--rf-glass-backdrop);
  backdrop-filter: var(--rf-glass-backdrop);
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 1px 0 rgba(148, 163, 184, 0.12);
}
.rf-mobile-bar-menu {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 12px;
  background: transparent;
  color: #0f172a;
  cursor: pointer;
  flex-shrink: 0;
  transition: color 0.15s ease, opacity 0.15s ease;
}
.rf-mobile-bar-menu:hover {
  background: transparent;
  color: #0f172a;
  opacity: 0.72;
}
.rf-mobile-bar-menu:focus-visible {
  outline: 2px solid rgba(19, 187, 175, 0.55);
  outline-offset: 2px;
}
.rf-mobile-bar-menu .material-symbols-outlined {
  font-size: 22px;
}
.rf-mobile-bar-title {
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
  flex: 1;
}
.rf-mobile-bar-spacer {
  width: 42px;
  flex-shrink: 0;
}
body.rf-admin-body .rf-mobile-bar {
  background: #0f1623;
  border-bottom-color: rgba(255, 255, 255, 0.08);
  box-shadow: none;
}
body.rf-admin-body .rf-mobile-bar-title {
  color: #f8fafc;
}
body.rf-admin-body .rf-mobile-bar-menu {
  background: transparent;
  color: #f1f5f9;
}
body.rf-admin-body .rf-mobile-bar-menu:hover {
  background: transparent;
  color: #fff;
  opacity: 0.85;
}
.rf-nav-drawer-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  /* Default when outside .rf-app (legacy); in-app backdrops override below */
  z-index: 60;
  margin: 0;
  padding: 0;
  border: none;
  background: rgba(15, 23, 42, 0.42);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
/* Backdrop as first child of .rf-app: dim layer under sidebar so nav stays clickable */
body .rf-app > .rf-nav-drawer-backdrop {
  flex: none;
  z-index: 45;
}
body.rf-dash-body .rf-app > .rf-main,
body.rf-admin-body .rf-app > .rf-main {
  position: relative;
  z-index: 10;
}

/* Pinned app footer: viewport bottom, glass samples scrolling page behind; offset for sidebar */
:root {
  --rf-app-footer-safe: 76px;
}
body.rf-dash-body .rf-app > .rf-main > .rf-footer,
body.rf-admin-body .rf-app > .rf-main > .rf-footer {
  position: fixed;
  bottom: 0;
  left: 220px;
  right: 0;
  z-index: 25;
  margin: 0;
  padding: 16px 28px calc(16px + env(safe-area-inset-bottom, 0px));
  box-sizing: border-box;
}
@media (max-width: 767px) {
  body.rf-dash-body .rf-app > .rf-main > .rf-footer,
  body.rf-admin-body .rf-app > .rf-main > .rf-footer {
    left: 0;
  }
}
body.rf-dash-body .rf-app > .rf-main > .rf-content,
body.rf-admin-body .rf-app > .rf-main > .rf-content {
  padding-bottom: calc(var(--rf-app-footer-safe) + env(safe-area-inset-bottom, 0px));
  box-sizing: border-box;
}
body.rf-nav-drawer-open .rf-nav-drawer-backdrop {
  display: block;
}
.rf-nav-drawer-backdrop[hidden] {
  display: none !important;
}

@media (max-width: 767px) {
  /* Dim layer sits under open drawer (z 220) but above main; above demo .rf-state-bar (200) */
  body.rf-nav-drawer-open .rf-app > .rf-nav-drawer-backdrop {
    z-index: 210;
  }
  .rf-nav-drawer-backdrop {
    top: var(--rf-mobile-bar-h, 52px);
    left: 0;
    right: 0;
    bottom: 0;
  }
  /* Title spans full bar width; same inset left/right as hamburger gutter (12px bar + 42px tap) */
  .rf-mobile-bar {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 0;
    padding-inline: 12px;
  }
  .rf-mobile-bar-title {
    grid-column: 1 / -1;
    grid-row: 1;
    justify-self: stretch;
    text-align: center;
    padding-inline: 42px;
    box-sizing: border-box;
    flex: unset;
  }
  .rf-mobile-bar-menu {
    grid-column: 2;
    grid-row: 1;
    z-index: 1;
    justify-self: end;
  }
  .rf-dash-shell {
    padding: 20px 16px 32px !important;
  }
  .rf-content.rf-dash-page > .rf-issues-toolbar-strip {
    padding: 24px 16px 12px;
  }
  .rf-content.rf-dash-page:has(> .rf-issues-toolbar-strip) > .rf-dash-shell {
    padding-top: 16px !important;
  }
  .rf-dash-layout .rf-page-header {
    margin-bottom: 22px;
  }
  .rf-dash-layout .rf-page-header--with-cta {
    margin-bottom: 0;
  }
  .rf-dash-layout .rf-extension-notice {
    display: none !important;
  }
  .rf-settings-snav {
    position: static;
    max-width: none;
  }
  .rf-dash-layout #section-account,
  .rf-dash-layout #section-billing,
  .rf-dash-layout #section-security,
  .rf-dash-layout #section-danger {
    min-width: 0;
  }
  .rf-settings-field-grid {
    grid-template-columns: 1fr !important;
  }
  .rf-domains-list-host .rf-list-card--domains .rf-list-card-header {
    flex-direction: column;
    align-items: stretch;
  }
  .rf-domains-list-host .rf-list-card--domains .rf-list-card-header .rf-domains-card-add {
    display: none !important;
  }
  .rf-domains-toolbar > .rf-search-wrap {
    width: 100%;
    max-width: none;
  }
  .rf-domains-toolbar > .rf-search-wrap input {
    flex: 1 1 auto;
    max-width: none;
    min-width: 0;
  }
  .rf-main > .rf-topbar {
    flex-wrap: wrap;
    height: auto;
    min-height: 52px;
    padding: 10px 14px;
    row-gap: 10px;
  }
  .rf-main > .rf-topbar .rf-topbar-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
    width: 100%;
  }
}

@media (min-width: 768px) {
  .rf-mobile-bar {
    display: none !important;
  }
  .rf-nav-drawer-backdrop {
    display: none !important;
  }
}

/* Issues: toolbar spans full main column width (not inset / not a frosted card) */
.rf-content.rf-dash-page > .rf-issues-toolbar-strip {
  width: 100%;
  max-width: none;
  box-sizing: border-box;
  margin: 0;
  padding: 32px 48px 14px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(255, 255, 255, 0.72);
}
.rf-content.rf-dash-page:has(> .rf-issues-toolbar-strip) > .rf-dash-shell {
  padding-top: 20px;
}
.rf-issues-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px 16px;
  margin: 0;
  padding: 0;
  border-radius: 0;
  background: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  border: 0;
  box-shadow: none;
}
.rf-issues-toolbar-left {
  min-width: 0;
  flex: 1 1 220px;
}
.rf-issues-toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  justify-content: flex-end;
  flex: 1 1 200px;
  min-width: 0;
}
@media (max-width: 767px) {
  .rf-issues-toolbar-actions {
    justify-content: flex-end;
    width: 100%;
  }
}

/* Admin: stack common metric / chart grids on small screens */
@media (max-width: 767px) {
  .rf-admin-page .rf-admin-grid-4 {
    grid-template-columns: 1fr !important;
  }
  .rf-admin-page .rf-admin-grid-2-300 {
    grid-template-columns: 1fr !important;
  }
  .rf-admin-page .rf-admin-grid-300-1 {
    grid-template-columns: 1fr !important;
  }
  .rf-admin-page .rf-admin-header-row {
    flex-direction: column !important;
    align-items: flex-start !important;
  }
  .rf-admin-page .rf-admin-date-pills {
    flex-wrap: wrap !important;
    width: 100%;
  }
}
