/* ...


 */

@import url('https://cdn.jsdelivr.net/npm/vanilla-cookieconsent@3.1.0/dist/cookieconsent.css');

:root {
  /* Brand: near-black ink for buttons, links and headings; orange stays reserved for the logo and rare accents */
  --ink:        #1c2b27;
  --ink-hover:  #2c3f39;

  /* Alert colors*/
  --green:      #22c55e;
  --yellow:     #eab308; /* slightly richer than pure F5C400 for legibility on white */
  --red:        #e83b3b;

  /* Bar colors */
  --bar-fast:   #22c55e;
  --bar-medium: #eab308;
  --bar-slow:   #e83b3b;
  --bar-down:   #fecaca;
}

.btn-add {
  background-color: var(--ink);
}

.btn-add:hover {
  background-color: var(--ink-hover);
}

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

/* =============================================
   INCIDENT BANNER
   ============================================= */
/*.incident-dot {*/
/*  width:         7px;*/
/*  height:        7px;*/
/*  border-radius: 50%;*/
/*  background:    var(--red);*/
/*  flex-shrink:   0;*/
/*  animation:     pulse-red 1.8s infinite;*/
/*}*/

.impersonation-dot {
  width:         7px;
  height:        7px;
  border-radius: 50%;
  background:    #D97706;
  flex-shrink:   0;
  animation:     pulse-yellow 1.8s infinite;
}
.alert-card {
  box-shadow: 0 1px 3px rgba(16, 24, 40, 0.06), 0 1px 2px rgba(16, 24, 40, 0.04);
  transition: box-shadow 220ms;
}

.alert-card:hover {
  box-shadow: 0 4px 16px rgba(16, 24, 40, 0.09), 0 2px 4px rgba(16, 24, 40, 0.04);
}

/* Card tints by service status */
.alert-card[data-service-status="slow"]     { background: #FFFBEB; }
.alert-card[data-service-status="degraded"] { background: #FFF7ED; }
.alert-card[data-service-status="down"]     { background: #FFFAFA; }
@tailwind base;
@tailwind components;
@tailwind utilities;

@layer base {
  /* Overlay scrollbars - don't take up content space */
  html {
    scrollbar-width:  thin;
    scrollbar-color:  rgba(156, 163, 175, 0.5) transparent;
  }

  /* For Webkit browsers (Chrome, Safari, Edge) */
  html::-webkit-scrollbar {
    width: 8px;
    /* Position scrollbar as overlay */
  }

  html::-webkit-scrollbar-track {
    background: transparent;
  }

  html::-webkit-scrollbar-thumb {
    background-color: rgba(156, 163, 175, 0.3);
    border-radius:    4px;
    border:           2px solid transparent;
    background-clip:  content-box;
    transition:       background-color 0.2s ease;
  }

  html::-webkit-scrollbar-thumb:hover {
    background-color: rgba(156, 163, 175, 0.6);
  }

  /* Modern overlay scrollbars (supported in newer browsers) */
  @supports (scrollbar-gutter: stable) {
    html {
      scrollbar-gutter: auto;
    }
  }

  /* Alternative: Use CSS to force overlay positioning */
  body {
    position: relative;
  }

  /* Custom overlay scrollbar for specific containers if needed */
  .overlay-scroll {
    scrollbar-width: thin;
    scrollbar-color: rgba(156, 163, 175, 0.3) transparent;
  }

  .overlay-scroll::-webkit-scrollbar {
    width:    6px;
    position: absolute;
    right:    0;
  }

  .overlay-scroll::-webkit-scrollbar-thumb {
    background-color: rgba(156, 163, 175, 0.3);
    border-radius:    3px;
  }
}

@layer components {
  /* Custom font classes for page titles */
  .page-title-inter {
    font-family:    'Inter', sans-serif;
    font-weight:    600;
    letter-spacing: -0.025em;
  }

  .page-title-space-mono {
    font-family:    'Space Mono', monospace;
    font-weight:    700;
    letter-spacing: -0.05em;
  }
}
/* =============================================
   APPLICATION LAYOUT
   ============================================= */
.app-footer {
  border-top: 1px solid #e4e7ec;
  background: white;
}

.app-footer-inner {
  max-width:       1280px;
  margin:          0 auto;
  padding:         0 24px;
  height:          44px;
  display:         flex;
  align-items:     center;
  justify-content: space-between;
  gap:             16px;
}

/* Status cluster */
.footer-status {
  display:     flex;
  align-items: center;
  gap:         12px;
  flex-shrink: 0;
}

.footer-status-dot {
  width:         6px;
  height:        6px;
  border-radius: 50%;
  background:    var(--green);
  flex-shrink:   0;
  animation:     pulse-green 2.4s infinite;
}

@keyframes pulse-yellow {
  0% {
    box-shadow: 0 0 0 0 rgba(234, 179, 8, 0.5);
  }
  60% {
    box-shadow: 0 0 0 5px rgba(234, 179, 8, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(234, 179, 8, 0);
  }
}

@keyframes pulse-green {
  0% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5);
  }
  60% {
    box-shadow: 0 0 0 5px rgba(34, 197, 94, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
  }
}

.footer-status-text {
  font-size:   12px;
  font-weight: 500;
  color:       #16a34a;
}

.footer-status-sep {
  width:       1px;
  height:      12px;
  background:  #e4e7ec;
  flex-shrink: 0;
}

.footer-status-link {
  font-size:       12px;
  color:           #667085;
  text-decoration: none;
  transition:      color 150ms;
}

.footer-status-link:hover {
  color: #101828;
}

/* Right links */
.footer-links {
  display:     flex;
  align-items: center;
  gap:         16px;
}

.footer-link {
  font-size:       12px;
  color:           #98a2b3;
  text-decoration: none;
  transition:      color 150ms;
  white-space:     nowrap;
}

.footer-link:hover {
  color: #667085;
}

.footer-copy {
  font-size:   12px;
  color:       #d0d5dd;
  white-space: nowrap;
}

/* =============================================
   FULLSCREEN LAYOUT
   ============================================= */

/* 5-column footer grid: fixed 240px brand column + 4 equal link columns.
   Too complex for a Tailwind arbitrary-value class. */
.fullscreen-footer-grid {
  grid-template-columns: 240px repeat(4, 1fr);
}

/* Status dot — references the pulse-green keyframe from application.css */
.fullscreen-footer-status-dot {
  animation: pulse-green 2.4s infinite;
}
/* =============================================
   NAV LINKS (header)
   ============================================= */
.nav-link {
  position:        relative;
  display:         flex;
  align-items:     center;
  gap:             6px;
  padding:         6px 12px;
  font-size:       13.5px;
  font-weight:     500;
  color:           #667085;
  border-radius:   4px;
  text-decoration: none;
  white-space:     nowrap;
  transition:      color 150ms, background 150ms;
}

.nav-link:hover {
  color:      #101828;
  background: #f2f4f7;
}

.nav-link.active {
  color: var(--ink);
}

/* Blue underline indicator aligned to the header border-b.
   The header uses py-4 (16px) below the h-14 flex container,
   so -20px clears both the padding and sits at the border. */
.nav-link.active::after {
  content:       '';
  position:      absolute;
  bottom:        -20px;
  left:          12px;
  right:         12px;
  height:        2px;
  background:    var(--ink);
  border-radius: 2px 2px 0 0;
}

.nav-badge {
  display:         inline-flex;
  align-items:     center;
  justify-content: center;
  min-width:       17px;
  height:          17px;
  padding:         0 5px;
  background:      var(--red);
  color:           #fff;
  font-size:       10px;
  font-weight:     600;
  border-radius:   100px;
}

.nav-divider {
  width:       1px;
  height:      20px;
  background:  #e4e7ec;
  margin:      0 6px;
  flex-shrink: 0;
}

.nav-icon-btn {
  width:           32px;
  height:          32px;
  display:         flex;
  align-items:     center;
  justify-content: center;
  border-radius:   4px;
  border:          none;
  background:      none;
  color:           #667085;
  cursor:          pointer;
  transition:      color 150ms, background 150ms;
}

.nav-icon-btn:hover {
  color:      #101828;
  background: #f2f4f7;
}

/* =============================================
   USER MENU
   ============================================= */
.avatar-btn {
  display:       flex;
  align-items:   center;
  gap:           7px;
  padding:       4px 8px 4px 4px;
  border:        1px solid #e4e7ec;
  border-radius: 100px;
  background:    none;
  cursor:        pointer;
  transition:    border-color 150ms, background 150ms;
}

.avatar-btn:hover {
  border-color: #d0d5dd;
  background:   #f9fafb;
}

.avatar-circle {
  width:           26px;
  height:          26px;
  border-radius:   50%;
  background:      linear-gradient(135deg, #6b7280, var(--ink));
  display:         flex;
  align-items:     center;
  justify-content: center;
  font-size:       10px;
  font-weight:     600;
  color:           #fff;
  flex-shrink:     0;
}

.avatar-name {
  font-size:   13px;
  font-weight: 500;
  color:       #101828;
}

.avatar-chevron {
  color:      #98a2b3;
  transition: transform 200ms;
}

.user-dropdown {
  position:      absolute;
  top:           calc(100% + 8px);
  right:         0;
  width:         215px;
  background:    white;
  border:        1px solid #e4e7ec;
  border-radius: 12px;
  box-shadow:    0 8px 28px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.06);
  overflow:      hidden;
  z-index:       50;
}

.dropdown-header-section {
  padding:       12px 14px;
  border-bottom: 1px solid #e4e7ec;
}

.dropdown-user-name {
  font-size:     13px;
  font-weight:   600;
  color:         #101828;
  margin-bottom: 2px;
}

.dropdown-user-email {
  font-size:   11.5px;
  font-family: 'IBM Plex Mono', monospace;
  color:       #667085;
}

.dropdown-plan-badge {
  display:       inline-flex;
  align-items:   center;
  margin-top:    7px;
  padding:       2px 8px;
  background:    rgba(28, 43, 39, 0.08);
  border:        1px solid rgba(28, 43, 39, 0.08);
  border-radius: 100px;
  font-size:     10.5px;
  font-weight:   500;
  color:         var(--ink);
}

.dropdown-items {
  padding: 4px;
}

.dropdown-sep {
  height:     1px;
  background: #e4e7ec;
  margin:     4px 0;
}

.dropdown-item-link {
  display:         flex;
  align-items:     center;
  gap:             9px;
  width:           100%;
  padding:         7px 10px;
  border-radius:   4px;
  border:          none;
  background:      none;
  color:           #667085;
  font-size:       13px;
  font-family:     inherit;
  cursor:          pointer;
  transition:      color 150ms, background 150ms;
  text-align:      left;
  text-decoration: none;
}

.dropdown-item-link:hover {
  color:      #101828;
  background: #f9fafb;
}

.dropdown-item-link.danger {
  color: var(--red);
}

.dropdown-item-link.danger:hover {
  background: rgba(232, 59, 59, 0.06);
  color:      var(--red);
}
/*
 * Landing pages: the full app's home page (pages/home) and the ping.new
 * microsite (instant_ping/index). Tokens, type scale and components follow
 * docs/mockups/styles.css (landing-page-app-v2.html, landing-page-microsite.html),
 * except that --ink is neutral black instead of the mockup's navy, and text
 * on orange buttons is ink (white on #ff6b1c is only 2.8:1).
 *
 * Scoped under .landing (set on <body> via content_for :body_class in the
 * fullscreen layout) so the dashboard and app screens are untouched.
 * Microsite-only classes use the instant-ping- prefix.
 */
.landing {
  --ink:           #111;
  --navy:          #0d1b5e;
  --text-soft:     #4a5a68;
  --text-mute:     #8a96a3;
  --paper:         #fff;
  --paper-soft:    #f5f7fa;
  --paper-soft-2:  #eef2f6;
  --border:        #e5e9ee;
  --border-strong: #cdd4dc;
  --orange:        #ff6b1c;
  --orange-hover:  #e75c10;
  --orange-soft:   #ffe8d9;
  --orange-ink:    #b34614;
  --orange-display: #f05a00; /* large orange text: 3.5:1 on white */
  --on-orange:     #111;
  --green:         #22c55e;
  --green-bar:     #4ade80;
  --green-soft:    #dcfce7;
  --green-ink:     #15803d;
  --amber:         #f59e0b;
  --amber-soft:    #fef3c7;
  --red:           #ef4444;
  --red-soft:      #fee2e2;
  --red-ink:       #b91c1c;
  --shadow-sm:     0 1px 2px rgba(17,17,17,.04);
  --shadow:        0 4px 14px rgba(17,17,17,.06), 0 1px 2px rgba(17,17,17,.04);
  --shadow-lg:     0 18px 48px rgba(17,17,17,.10), 0 4px 12px rgba(17,17,17,.05);
  --sans:          "IBM Plex Sans", -apple-system, system-ui, sans-serif;
  --mono:          "IBM Plex Mono", ui-monospace, monospace;
  --nav-height:    64px;

  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
.landing, .landing *, .landing *::before, .landing *::after { box-sizing: border-box; }
html:has(.landing) { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html:has(.landing) { scroll-behavior: auto; }
  .landing *, .landing *::before, .landing *::after { animation: none !important; transition: none !important; }
}
.landing a { color: inherit; text-decoration: none; }
.landing img { max-width: 100%; }
.landing h1, .landing h2, .landing h3, .landing p, .landing ul, .landing ol { margin: 0; }
.landing ul, .landing ol { list-style: none; padding: 0; }
.landing button { font-family: inherit; cursor: pointer; }
.landing :focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; border-radius: 6px; }
.landing .wrap { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
@media (min-width: 768px) { .landing .wrap { padding: 0 40px; } }
@media (min-width: 1100px) { .landing .wrap { padding: 0 64px; } }
.landing .skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.landing .skip:focus { left: 8px; }
.landing .sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* === Typography === */
.landing .display { font-size: clamp(38px, 7.4vw, 64px); font-weight: 600; letter-spacing: -.035em; line-height: 1.04; }
.landing .h1 { font-size: clamp(30px, 5vw, 44px); font-weight: 600; letter-spacing: -.025em; line-height: 1.08; }
.landing .h2 { font-size: 30px; font-weight: 600; letter-spacing: -.02em; line-height: 1.15; }
.landing .h3, .landing h3 { font-size: 20px; font-weight: 600; letter-spacing: -.012em; line-height: 1.3; }
.landing .lead { font-size: 18px; color: var(--text-soft); line-height: 1.55; }
.landing .small { font-size: 13px; color: var(--text-soft); }
.landing .tiny { font: 400 12px/1.5 var(--mono); letter-spacing: .01em; color: var(--text-mute); }
.landing .mono { font-family: var(--mono); }
.landing .section-eyebrow { font: 500 12px/1.4 var(--mono); text-transform: uppercase; letter-spacing: .12em; color: var(--orange-ink); }
.landing .section-title { font-size: clamp(28px, 4.4vw, 38px); font-weight: 600; letter-spacing: -.02em; line-height: 1.1; margin-top: 8px; }
.landing .section-sub { font-size: 17px; color: var(--text-soft); line-height: 1.55; margin-top: 12px; }
.landing .center { text-align: center; }
.landing .center .lead, .landing .center .section-sub { margin-left: auto; margin-right: auto; }
.landing h1, .landing h2, .landing .lead, .landing .section-sub, .landing .tiny { text-wrap: balance; }

/* === Wordmark === */
.landing .wordmark { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 18px; letter-spacing: -.015em; }
.landing .wordmark img { width: auto; height: 26px; object-fit: contain; }
.landing .wordmark .io { font-family: var(--mono); font-weight: 500; color: var(--text-mute); }

/* === Navbar === */
/* No border while the page is at rest, so the hero glow runs behind the header
   without a seam; a hairline appears once the page scrolls (landing controller). */
.landing .nav { position: sticky; top: 0; z-index: 50; height: var(--nav-height); background: rgba(255,255,255,.6); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); transition: background .2s, box-shadow .2s; }
.landing .nav[data-scrolled="true"] { background: rgba(255,255,255,.88); box-shadow: 0 1px 0 var(--border); }
.landing .nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 100%; }
.landing .nav-links { display: none; gap: 4px; }
.landing .nav-links a { padding: 8px 12px; font-size: 14px; color: var(--text-soft); border-radius: 6px; transition: color .12s, background .12s; }
.landing .nav-links a:hover { color: var(--ink); background: var(--paper-soft); }
.landing .nav-actions { display: flex; gap: 8px; align-items: center; }
@media (min-width: 900px) { .landing .nav-links { display: flex; } }
@media (max-width: 479px) { .landing .nav-actions .btn-ghost { display: none; } }

/* === Buttons === */
.landing .btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 16px; min-height: 40px; font: 500 14px/1 var(--sans); letter-spacing: -.005em; border-radius: 10px; border: 1.5px solid transparent; cursor: pointer; white-space: nowrap; transition: background .15s, color .15s, transform .08s; }
.landing .btn:active { transform: scale(.985); }
.landing .btn-primary { background: var(--ink); color: #fff; border-color: var(--ink); }
.landing .btn-primary:hover { background: #000; }
.landing .btn-orange { background: var(--orange); color: var(--on-orange); border-color: var(--orange); }
.landing .btn-orange:hover { background: var(--orange-hover); border-color: var(--orange-hover); }
.landing .btn-outline { background: #fff; color: var(--ink); border-color: var(--border-strong); }
.landing .btn-outline:hover { border-color: var(--ink); }
.landing .btn-ghost { background: transparent; color: var(--text-soft); }
.landing .btn-ghost:hover { color: var(--ink); background: var(--paper-soft); }
.landing .btn-lg { padding: 13px 22px; min-height: 48px; font-size: 15px; border-radius: 12px; }
.landing .btn .arrow { font-family: var(--mono); font-weight: 500; }
@media (max-width: 639px) { .landing .btn-block-mobile { width: 100%; } }

/* === Pills, cards === */
.landing .pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 999px; font: 500 12px/1.4 var(--sans); white-space: nowrap; }
.landing .pill .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex-shrink: 0; }
.landing .pill.healthy { background: var(--green-soft); color: var(--green-ink); }
.landing .pill.healthy .dot { background: var(--green); animation: landing-pulse 2.4s ease-out infinite; }
.landing .pill.down { background: var(--red-soft); color: var(--red-ink); }
.landing .pill.down .dot { background: var(--red); }
.landing .pill.degraded { background: var(--amber-soft); color: #92400e; }
.landing .pill.brand { background: var(--orange-soft); color: var(--orange-ink); font-family: var(--mono); letter-spacing: .02em; }
@keyframes landing-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(34,197,94,.45); }
  70%  { box-shadow: 0 0 0 7px rgba(34,197,94,0); }
  100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); }
}
.landing .card { background: var(--paper); border: 1px solid var(--border); border-radius: 16px; }
.landing .status-led { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; display: inline-block; }
.landing .status-led.up { background: var(--green); box-shadow: 0 0 0 4px rgba(34,197,94,.18); }
.landing .status-led.down { background: var(--red); box-shadow: 0 0 0 4px rgba(239,68,68,.18); }

/* === Bar chart (left-to-right reveal) === */
.landing .barchart { display: flex; align-items: flex-end; gap: 3px; padding: 0 6px; overflow: hidden; height: var(--chart-height, 54px); animation: landing-reveal .9s cubic-bezier(.2,.7,.2,1) both; }
.landing .barchart i { flex: 1; min-width: 2px; background: var(--green-bar); border-radius: 3px 3px 0 0; display: block; }
.landing .barchart i.slow { background: var(--amber); }
.landing .barchart i.miss { background: var(--red-soft); height: 8% !important; }
@keyframes landing-reveal { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }

/* === Browser frame, toggle group === */
.landing .browser { background: #fff; border-radius: 14px; box-shadow: var(--shadow-lg); overflow: hidden; border: 1px solid var(--border); text-align: left; }
.landing .browser-chrome { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: #f3f5f8; border-bottom: 1px solid var(--border); }
.landing .browser-chrome .dots { display: flex; gap: 6px; }
.landing .browser-chrome .dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--border-strong); display: block; }
.landing .browser-chrome .url-bar { flex: 1; max-width: 380px; margin: 0 auto; padding: 5px 12px; text-align: center; font: 12px/1.4 var(--mono); color: var(--text-mute); background: #fff; border: 1px solid var(--border); border-radius: 6px; }
.landing .browser-chrome .spacer { width: 48px; }
.landing .toggle-group { display: inline-flex; padding: 3px; background: var(--paper-soft); border: 1px solid var(--border); border-radius: 10px; }
.landing .toggle-group span { padding: 5px 12px; font: 500 12px/1.4 var(--mono); color: var(--text-soft); border-radius: 7px; }
.landing .toggle-group span.active { background: var(--ink); color: #fff; }

/* === Hero === */
.landing .hero { position: relative; overflow: hidden; margin-top: calc(var(--nav-height) * -1); padding: calc(var(--nav-height) + 56px) 0 48px; text-align: center; }
.landing .hero-glow { position: absolute; top: -120px; right: -8%; width: min(880px, 110%); height: 640px; background: radial-gradient(closest-side, rgba(255,107,28,.16), rgba(255,107,28,.05) 55%, transparent); pointer-events: none; }
.landing .hero-inner { position: relative; }
.landing .hero .display { margin: 0 auto; max-width: 920px; }
.landing .hero .display .accent { display: block; color: var(--orange-display); }
.landing .hero .lead { max-width: 600px; margin: 20px auto 0; }
.landing .hero-cta { margin-top: 32px; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.landing .product-mock { max-width: 1080px; margin: 56px auto 0; }
@media (min-width: 768px) { .landing .hero { padding-bottom: 64px; } }

/* Product mock (dashboard) */
.landing .dash { background: var(--paper-soft); padding: 18px 16px 22px; }
.landing .dash-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.landing .dash-header .wordmark { font-size: 16px; }
.landing .dash-header .wordmark img { height: 22px; }
.landing .dash-nav { display: flex; align-items: center; gap: 22px; }
.landing .dash-tab { font-size: 14px; color: var(--text-soft); padding-bottom: 4px; }
.landing .dash-tab.active { color: var(--ink); font-weight: 500; border-bottom: 2px solid var(--orange); }
.landing .dash-user { display: none; align-items: center; gap: 8px; padding: 4px 12px 4px 4px; border: 1px solid var(--border); border-radius: 999px; background: #fff; font-size: 13px; }
.landing .dash-user i { width: 24px; height: 24px; border-radius: 50%; background: var(--paper-soft-2); display: block; }
.landing .alert-badge { background: var(--red); color: #fff; font-size: 11px; font-weight: 600; padding: 1px 6px; border-radius: 999px; margin-left: 4px; }
.landing .dash-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.landing .dash-title .left, .landing .dash-title .right { display: flex; align-items: center; gap: 12px; }
.landing .dash-title h3 { font-size: 24px; letter-spacing: -.02em; }
.landing .dash-title .right .toggle-group, .landing .dash-title .right .btn-outline { display: none; }
.landing .svc-card { padding: 18px 16px; }
.landing .svc-card-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 14px; }
.landing .svc-id { display: flex; gap: 14px; align-items: flex-start; min-width: 0; }
.landing .svc-id .status-led { margin-top: 6px; }
.landing .svc-name { font-size: 17px; font-weight: 600; line-height: 1.3; }
.landing .svc-url { font: 12px/1.4 var(--mono); color: var(--text-mute); margin-top: 2px; overflow-wrap: anywhere; }
.landing .metrics { display: none; gap: 32px; text-align: right; }
.landing .metric-v { font-size: 22px; font-weight: 600; font-feature-settings: 'tnum'; line-height: 1.1; }
.landing .metric-v small { font: 400 11px var(--mono); color: var(--text-mute); margin-left: 3px; }
.landing .metric-v.ok { color: var(--green-ink); }
.landing .metric-l { font: 11px var(--mono); color: var(--text-mute); margin-top: 3px; }
.landing .chart-axis { display: flex; justify-content: space-between; margin-bottom: 8px; font: 11px var(--mono); color: var(--text-mute); }
.landing .legend { margin-top: 16px; display: none; flex-wrap: wrap; gap: 16px; align-items: center; font-size: 12px; color: var(--text-soft); }
.landing .legend span { display: inline-flex; align-items: center; gap: 6px; }
.landing .legend i { width: 10px; height: 10px; border-radius: 2px; display: inline-block; }
@media (min-width: 768px) {
  .landing .dash { padding: 28px 32px; }
  .landing .dash-user, .landing .metrics, .landing .legend { display: flex; }
  .landing .dash-user { display: inline-flex; }
  .landing .svc-card { padding: 22px 24px; }
  .landing .dash-title .right .toggle-group { display: inline-flex; }
}

/* === Sections === */
.landing .section { padding: 72px 0; }
.landing .section.soft { background: var(--paper-soft); }
@media (min-width: 768px) { .landing .section { padding: 104px 0; } }

/* === Try it now === */
.landing .url-input { display: flex; align-items: center; gap: 10px; padding: 0 6px 0 16px; background: #fff; border: 1.5px solid var(--border-strong); border-radius: 14px; transition: border-color .15s, box-shadow .15s; }
.landing .url-input:focus-within { border-color: var(--ink); box-shadow: 0 0 0 4px rgba(17,17,17,.08); }
.landing .url-input .prefix { font: 15px var(--mono); color: var(--text-mute); flex-shrink: 0; }
.landing .url-input input { flex: 1; min-width: 0; border: 0; outline: 0; box-shadow: none; padding: 14px 0; font: 15px var(--mono); color: var(--ink); background: transparent; }
.landing .url-input input:focus { box-shadow: none; }
.landing .url-input input::placeholder { color: var(--text-mute); }
.landing .url-input .btn { margin: 5px 0; flex-shrink: 0; }
.landing .try-form { max-width: 760px; margin: 40px auto 0; text-align: left; }
.landing .try-regions { margin-top: 10px; }
.landing .try-regions .ok { color: var(--green-ink); }
.landing .results { max-width: 980px; margin: 32px auto 0; text-align: left; }
.landing .results-list { overflow: hidden; }
.landing .ping-result { display: grid; grid-template-columns: minmax(0, 1fr) 60px 68px auto; gap: 8px 12px; align-items: center; padding: 14px 4px 14px 18px; }
.landing .ping-result + .ping-result { border-top: 1px solid var(--border); }
.landing .result-meta { min-width: 0; }
.landing .result-name { font-weight: 600; font-size: 15px; line-height: 1.3; overflow-wrap: anywhere; }
.landing .ping-result .pill { justify-self: start; }
.landing .result-url { display: inline-flex; align-items: center; gap: 4px; max-width: 100%; margin-top: 2px; font: 12px/1.4 var(--mono); color: var(--text-mute); }
.landing .result-url > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.landing .result-url-icon { width: 12px; height: 12px; flex-shrink: 0; }
.landing .result-url:hover { color: var(--ink); }
.landing .result-time { font: 500 15px/1.2 var(--sans); font-feature-settings: 'tnum'; text-align: right; white-space: nowrap; }
.landing .result-time small { margin-left: 3px; font: 400 12px var(--mono); color: var(--text-mute); }
.landing .result-time.down { color: var(--text-mute); }
.landing .result-actions { display: flex; align-items: center; }
.landing .result-action { width: 40px; height: 40px; display: grid; place-items: center; border: 0; border-radius: 10px; background: none; color: var(--text-soft); font-size: 18px; }
.landing .result-action:hover { background: var(--paper-soft); color: var(--ink); }
.landing .ping-result form { display: contents; }
@media (min-width: 640px) { .landing .ping-result { grid-template-columns: minmax(0, 1fr) 72px 68px auto; gap: 8px 24px; padding: 16px 8px 16px 24px; } }
.landing .save-cta { margin-top: 28px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
@media (min-width: 640px) { .landing .save-cta { flex-direction: row; justify-content: center; gap: 14px; } }

/* === Who it's for === */
.landing .who { display: grid; gap: 24px; align-items: start; }
.landing .who p { font-size: 18px; color: var(--text-soft); max-width: 620px; }
@media (min-width: 900px) { .landing .who { grid-template-columns: 5fr 7fr; gap: 64px; } }

/* === Features spotlight === */
.landing .spotlight { display: grid; gap: 20px; margin-top: 48px; }
.landing .spotlight-tabs { display: flex; flex-direction: column; gap: 8px; }
.landing .spotlight-tab { position: relative; width: 100%; text-align: left; border: 0; background: transparent; padding: 16px 18px 22px; border-radius: 14px; color: inherit; transition: background .2s, box-shadow .2s; }
.landing .spotlight-tab[aria-selected="true"] { background: #fff; box-shadow: var(--shadow); }
.landing .spotlight-tag { display: inline-flex; align-items: center; gap: 6px; padding: 2px 8px; margin-bottom: 6px; border-radius: 999px; border: 1px solid transparent; font-size: 10.5px; font-weight: 500; color: var(--text-soft); }
.landing .spotlight-tab[aria-selected="true"] .spotlight-tag { background: var(--paper-soft); border-color: var(--border); }
.landing .spotlight-tab-title { display: block; font-size: 17px; font-weight: 600; letter-spacing: -.012em; line-height: 1.3; }
.landing .spotlight-tab-body { display: none; margin-top: 6px; font-size: 13.5px; line-height: 1.5; color: var(--text-soft); }
.landing .spotlight-tab[aria-selected="true"] .spotlight-tab-body { display: block; }
.landing .spotlight-progress { position: absolute; left: 18px; right: 18px; bottom: 10px; height: 2px; background: var(--paper-soft-2); border-radius: 2px; overflow: hidden; display: none; }
.landing .spotlight-tab[aria-selected="true"] .spotlight-progress { display: block; }
.landing .spotlight-progress i { display: block; height: 100%; width: 0; background: var(--orange); animation: landing-progress var(--spotlight-duration, 8s) linear forwards; }
.landing .spotlight:hover .spotlight-progress i, .landing .spotlight:focus-within .spotlight-progress i { animation-play-state: paused; }
@keyframes landing-progress { to { width: 100%; } }
.landing .spotlight-browser { display: flex; flex-direction: column; min-height: 440px; }
.landing .spotlight-panel { flex: 1; overflow: hidden; background: var(--paper-soft); padding: 20px 16px; font-size: 13px; animation: landing-fade .4s ease-out both; }
.landing .spotlight-panel[hidden] { display: none; }
@keyframes landing-fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (min-width: 900px) {
  .landing .spotlight { grid-template-columns: 360px 1fr; gap: 28px; }
  .landing .spotlight-browser { height: 520px; }
  .landing .spotlight-panel { padding: 20px 24px; }
}
.landing .panel-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.landing .panel-head .left { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.landing .panel-title { font-size: 17px; font-weight: 600; }
.landing .mock-rows > div { display: grid; grid-template-columns: 9px 1fr auto; gap: 14px; align-items: center; padding: 12px 16px; }
.landing .mock-rows > div + div { border-top: 1px solid var(--border); }
.landing .mock-rows .chart { display: none; }
.landing .mock-rows .num { text-align: right; font: 12px var(--mono); }
.landing .mock-rows .num b { display: block; font-size: 13.5px; font-weight: 600; }
.landing .mock-rows .num.down b { color: var(--red); }
.landing .mock-rows .num span { font-size: 10px; color: var(--text-mute); }
.landing .mock-rows .n { font-weight: 600; font-size: 13.5px; }
.landing .mock-rows .u { font: 11px var(--mono); color: var(--text-mute); }
@media (min-width: 640px) {
  .landing .mock-rows > div { grid-template-columns: 9px minmax(120px, 1.4fr) 1.6fr auto auto; }
  .landing .mock-rows .chart { display: block; }
}
.landing .alerts-grid { display: grid; gap: 16px; }
@media (min-width: 640px) { .landing .alerts-grid { grid-template-columns: 1.2fr 1fr; } }
.landing .alert-open { padding: 14px; background: var(--red-soft); border-color: rgba(239,68,68,.3); margin-bottom: 10px; display: flex; justify-content: space-between; gap: 10px; }
.landing .alert-open b { display: block; font-size: 13.5px; color: var(--red-ink); }
.landing .alert-open span { font: 11px var(--mono); color: var(--red-ink); opacity: .85; }
.landing .mono-label { font: 11px var(--mono); color: var(--text-mute); margin: 16px 0 8px; }
.landing .mono-label:first-child { margin-top: 0; }
.landing .event-list { border: 1px solid var(--border); border-radius: 10px; overflow: hidden; background: #fff; }
.landing .event { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 12px; }
.landing .event + .event { border-top: 1px solid var(--border); }
.landing .event .left { display: flex; gap: 10px; align-items: center; min-width: 0; }
.landing .event i { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; display: block; }
.landing .event b { display: block; font-size: 13px; font-weight: 400; }
.landing .event span { font: 10.5px var(--mono); color: var(--text-mute); }
.landing .channel { padding: 10px 12px; display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.landing .channel .icon { width: 30px; height: 30px; border-radius: 7px; background: var(--ink); color: #fff; display: grid; place-items: center; font: 600 14px var(--mono); flex-shrink: 0; }
.landing .channel b { display: block; font-size: 13px; }
.landing .channel span { font: 11px var(--mono); color: var(--text-mute); }
.landing .channel .led { margin-left: auto; width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.landing .perf-stats { display: flex; flex-wrap: wrap; gap: 14px 28px; margin-bottom: 14px; }
.landing .perf-stat { font-size: 22px; font-weight: 600; letter-spacing: -.02em; font-feature-settings: 'tnum'; }
.landing .perf-stat small { font: 400 11px var(--mono); color: var(--text-mute); margin-left: 2px; }
.landing .perf-stat.ok { color: var(--green-ink); } .landing .perf-stat.warn { color: #b45309; } .landing .perf-stat.bad { color: var(--red-ink); }
.landing .perf-label { font: 10.5px var(--mono); color: var(--text-mute); }
.landing .perf-chart { position: relative; padding: 16px; }
.landing .perf-chart .barchart { --chart-height: 200px; }
.landing .perf-chart .p95 { position: absolute; left: 16px; right: 16px; top: 42%; border-top: 1.5px dashed var(--amber); pointer-events: none; }
.landing .perf-chart .p95 span { position: absolute; right: 0; top: -17px; padding: 0 6px; background: #fff; font: 10px var(--mono); color: #b45309; }

/* === How it works === */
.landing .steps { margin-top: 44px; display: grid; }
.landing .steps li { display: grid; grid-template-columns: 48px 1fr; gap: 6px 16px; padding: 22px 0; border-bottom: 1px solid var(--border); }
.landing .steps li:first-child { border-top: 1px solid var(--border); }
.landing .steps .n { grid-row: span 2; font: 500 14px/1.9 var(--mono); color: var(--orange-ink); }
.landing .steps strong { font-size: 20px; font-weight: 600; letter-spacing: -.02em; }
.landing .steps span { color: var(--text-soft); }
@media (min-width: 900px) {
  .landing .steps { grid-template-columns: repeat(3, 1fr); gap: 32px; }
  .landing .steps li { grid-template-columns: 1fr; border: 0; border-top: 2px solid var(--ink); padding-top: 20px; }
  .landing .steps li:first-child { border-top: 2px solid var(--ink); }
  .landing .steps .n { grid-row: auto; }
}

/* === Beta + pricing === */
.landing .split { display: grid; gap: 20px; }
@media (min-width: 900px) { .landing .split { grid-template-columns: 1fr 1fr; gap: 24px; } }
.landing .panel { border-radius: 16px; padding: 32px 26px; position: relative; overflow: hidden; }
@media (min-width: 768px) { .landing .panel { padding: 40px 36px; } }
.landing .panel.beta { background: #fff; border: 1px solid var(--border); }
.landing .panel.price { background: var(--navy); color: #c9cfd9; }
.landing .panel.price::after { content: ""; position: absolute; right: -120px; bottom: -160px; width: 380px; height: 380px; background: radial-gradient(circle, rgba(255,107,28,.35), transparent 65%); pointer-events: none; }
.landing .panel.price .section-title { color: #fff; }
.landing .panel.price .section-eyebrow { color: #ff8a3d; }
.landing .panel p { margin-top: 14px; font-size: 16px; color: var(--text-soft); }
.landing .panel.price p { color: #c9cfd9; }
.landing .panel.price .btn-primary { background: #fff; color: var(--ink); border-color: #fff; }
.landing .panel .btn { margin-top: 26px; position: relative; }

/* === FAQ === */
.landing .faq { max-width: 780px; margin: 40px auto 0; }
.landing .faq details { border-bottom: 1px solid var(--border); }
.landing .faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; min-height: 48px; padding: 20px 0; font-size: 17px; font-weight: 600; }
.landing .faq summary::-webkit-details-marker { display: none; }
.landing .faq summary::after { content: "+"; font: 400 24px/1 var(--mono); color: var(--text-mute); transition: transform .15s; flex-shrink: 0; }
.landing .faq details[open] summary::after { transform: rotate(45deg); }
.landing .faq details p { margin: 0 0 22px; max-width: 680px; color: var(--text-soft); }
.landing .faq a { color: var(--orange-ink); text-decoration: underline; text-underline-offset: 2px; }

/* === Final CTA === */
.landing .final { position: relative; overflow: hidden; background: var(--ink); color: #fff; text-align: center; }
.landing .final-glow { position: absolute; right: -120px; top: -120px; width: 520px; height: 520px; background: radial-gradient(circle, rgba(255,107,28,.22), transparent 60%); pointer-events: none; }
.landing .final .wrap { position: relative; }
.landing .final h2 { max-width: 720px; margin: 0 auto; font-size: clamp(30px, 5vw, 46px); font-weight: 600; letter-spacing: -.025em; line-height: 1.08; }
.landing .final .final-sub { margin: 18px auto 0; max-width: 480px; font-size: 17px; color: rgba(255,255,255,.65); }
.landing .final .btn { margin-top: 32px; }
.landing .final .tiny { margin-top: 18px; color: rgba(255,255,255,.5); }

/* === Footer ===
   Shared by the landing page and the microsite, themed through custom properties.
   Markup: shared/landing/_footer, shared/microsite/_footer. */
.landing .site-footer { --footer-text: var(--text-soft); --footer-link: var(--text-soft); --footer-link-hover: var(--ink); --footer-line: var(--border); padding: 48px 0 32px; background: #fff; border-top: 1px solid var(--footer-line); color: var(--footer-text); font-size: 14px; }
.landing .footer-top { display: grid; gap: 28px; align-items: center; }
.landing .footer-top .about { max-width: 320px; margin: 12px 0 14px; }
.landing .footer-nav { display: flex; flex-wrap: wrap; align-content: start; gap: 6px 22px; }
.landing .footer-nav a, .landing .footer-nav button { padding: 8px 0; border: 0; background: none; font: 13.5px var(--sans); color: var(--footer-link); transition: color .15s; }
.landing .footer-nav a:hover, .landing .footer-nav button:hover, .landing .footer-bottom a:hover { color: var(--footer-link-hover); }
.landing .footer-bottom { margin-top: 32px; padding-top: 22px; border-top: 1px solid var(--footer-line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font: 13px var(--sans); }
@media (min-width: 900px) { .landing .footer-top { grid-template-columns: 1.4fr 2fr; } .landing .footer-nav { justify-content: flex-end; } }

/* === Mobile sticky CTA === */
.landing .sticky-cta { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 50; transform: translateY(140%); transition: transform .2s ease; }
.landing .sticky-cta .btn { width: 100%; min-height: 52px; box-shadow: 0 12px 28px -8px rgba(17,17,17,.45); }
.landing .sticky-cta.show { transform: none; }
@media (min-width: 768px) { .landing .sticky-cta { display: none; } }

/* ==========================================================================
   ping.new microsite
   ========================================================================== */
.instant-ping-page .nav { background: rgba(245,247,250,.7); }
.instant-ping-page .nav[data-scrolled="true"] { background: rgba(245,247,250,.92); }
.instant-ping-hero { background: var(--paper-soft); position: relative; overflow: hidden; margin-top: calc(var(--nav-height) * -1); padding: calc(var(--nav-height) + 56px) 0 40px; text-align: center; }
.instant-ping-ripple { position: absolute; inset: 0; display: flex; align-items: flex-start; justify-content: center; padding-top: 60px; pointer-events: none; }
.instant-ping-hero-content { position: relative; }
.instant-ping-hero .display { margin-top: 14px; font-size: clamp(44px, 10vw, 72px); }
.instant-ping-hero .lead { max-width: 480px; margin: 14px auto 0; }
.instant-ping-form { max-width: 680px; margin: 40px auto 0; text-align: left; }
.instant-ping-form .url-input { border-width: 2px; border-radius: 18px; box-shadow: var(--shadow-lg); padding: 0 6px 0 16px; }
.instant-ping-form .url-input .prefix { font-size: 15px; }
.instant-ping-form .url-input input { font-size: 18px; padding: 16px 0; }
.instant-ping-form .url-input .btn { padding: 14px 18px; font-size: 16px; border-radius: 14px; margin: 6px 0; }
.instant-ping-hints { margin-top: 14px; display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 14px; }
.instant-ping-hints kbd, .landing kbd { display: inline-flex; padding: 1px 6px; margin: 0 4px; font: 11px var(--mono); color: var(--text-soft); background: #fff; border: 1px solid var(--border-strong); border-bottom-width: 2px; border-radius: 5px; }
@media (min-width: 640px) {
  .instant-ping-form .url-input { padding-left: 22px; }
  .instant-ping-form .url-input .prefix { font-size: 18px; }
  .instant-ping-form .url-input input { font-size: 24px; padding: 20px 0; }
}
.instant-ping-results { padding: 24px 0 72px; background: var(--paper-soft); }
.instant-ping-results:not(:has(.results:not(.hidden))) { display: none; } /* nothing pinged yet */
.instant-ping-results-inner { max-width: 980px; margin: 0 auto; }
.instant-ping-summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.instant-ping-summary .left, .instant-ping-summary .right { display: flex; align-items: center; gap: 10px; }
.instant-ping-summary .pill { padding: 5px 12px; }
.instant-ping-results .results { margin: 0 auto; }
.instant-ping-banner { position: relative; overflow: hidden; margin-top: 24px; padding: 24px 22px; display: flex; flex-direction: column; align-items: flex-start; gap: 18px; background: var(--ink); color: #fff; border-radius: 16px; }
.instant-ping-banner-glow { position: absolute; right: -60px; top: -60px; width: 240px; height: 240px; background: radial-gradient(circle, rgba(255,107,28,.35), transparent 65%); pointer-events: none; }
.instant-ping-banner > :not(.instant-ping-banner-glow) { position: relative; }
.instant-ping-banner b { display: block; font-size: 20px; font-weight: 600; letter-spacing: -.015em; }
.instant-ping-banner .tiny { color: rgba(255,255,255,.6); margin-top: 4px; }
@media (min-width: 768px) { .instant-ping-banner { flex-direction: row; align-items: center; justify-content: space-between; gap: 24px; padding: 24px 28px; } }
.instant-ping-then { padding: 72px 0; background: #fff; border-top: 1px solid var(--border); }
.instant-ping-then-inner { max-width: 980px; margin: 0 auto; padding: 0 20px; display: grid; gap: 40px; align-items: start; }
.instant-ping-then .h1 { margin-top: 8px; font-size: 36px; }
.instant-ping-then p.lead-sm { margin-top: 14px; max-width: 340px; font-size: 15px; color: var(--text-soft); }
.instant-ping-then .btn { margin-top: 24px; }
.instant-ping-then-row { display: grid; grid-template-columns: 1fr; gap: 4px 16px; align-items: baseline; padding: 18px 0; }
.instant-ping-then-row + .instant-ping-then-row { border-top: 1px solid var(--border); }
.instant-ping-then-key { font: 600 18px/1.3 var(--mono); letter-spacing: -.005em; color: var(--orange-ink); }
.instant-ping-then-row p { font-size: 14.5px; color: var(--text-soft); }
.instant-ping-then-num { display: none; font: 12px var(--mono); color: var(--text-mute); text-align: right; }
@media (min-width: 768px) {
  .instant-ping-then { padding: 80px 0; }
  .instant-ping-then-inner { padding: 0 40px; grid-template-columns: 1fr 2fr; gap: 64px; }
  .instant-ping-then-row { grid-template-columns: 200px 1fr 60px; }
  .instant-ping-then-num { display: block; }
}

/* === Account pages (sign in, sign up, password reset) ===
   Markup: sessions/*, users/new, users/_form, passwords/*. */
.landing .instant-ping-label { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 500; color: var(--ink); }
.landing .instant-ping-input { display: block; width: 100%; min-height: 44px; padding: 10px 14px; background: #fff; border: 1.5px solid var(--border-strong); border-radius: 10px; font: 15px var(--sans); color: var(--ink); outline: 0; transition: border-color .15s, box-shadow .15s; }
.landing .instant-ping-input::placeholder { color: var(--text-mute); }
.landing .instant-ping-input:focus { border-color: var(--ink); box-shadow: 0 0 0 4px rgba(17,17,17,.08); }
.landing .instant-ping-input[aria-invalid="true"] { border-color: var(--red-ink); background: var(--red-soft); }
.landing .instant-ping-error { margin-top: 6px; font-size: 13px; color: var(--red-ink); }
.landing .instant-ping-hint { margin-top: 6px; font-size: 13px; color: var(--text-mute); }
.landing .instant-ping-alert { padding: 12px 14px; border: 1px solid var(--red-ink); border-radius: 10px; background: var(--red-soft); color: var(--red-ink); font-size: 14px; }
.landing .instant-ping-divider { display: flex; align-items: center; gap: 12px; margin: 20px 0; font-size: 13px; color: var(--text-mute); }
.landing .instant-ping-divider::before, .landing .instant-ping-divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.landing .instant-ping-link { color: var(--orange-ink); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
.landing .instant-ping-link:hover { color: var(--ink); }
.landing .instant-ping-check { width: 16px; height: 16px; margin-top: 2px; flex-shrink: 0; accent-color: var(--ink); cursor: pointer; }
.landing .instant-ping-auth { position: relative; overflow: hidden; isolation: isolate; margin-top: calc(var(--nav-height) * -1); padding-top: calc(var(--nav-height) + 48px); }
@media (min-width: 768px) { .landing .instant-ping-auth { padding-top: calc(var(--nav-height) + 80px); } }
.landing .instant-ping-auth::before { content: ""; position: absolute; z-index: -1; top: -80px; left: 50%; width: min(980px, 140%); height: 640px; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(255,107,28,.18), rgba(255,107,28,.06) 55%, transparent); pointer-events: none; }
.landing .instant-ping-card { padding: 28px; box-shadow: var(--shadow-lg); }
@media (min-width: 640px) { .landing .instant-ping-card { padding: 36px; } }
.landing .instant-ping-head { margin-bottom: 24px; }
.landing .instant-ping-head p { margin-top: 8px; }
.landing .instant-ping-aside { margin-top: 20px; text-align: center; }
/* =============================================
   SUMMARY PILLS
   ============================================= */
.pill {
  display:       inline-flex;
  align-items:   center;
  gap:           5px;
  padding:       4px 9px;
  border-radius: 100px;
  font-size:     12px;
  font-weight:   500;
}

.pill-dot {
  width:         5px;
  height:        5px;
  border-radius: 50%;
  background:    currentColor;
  flex-shrink:   0;
}

.pill-healthy {
  background: rgba(34, 197, 94, 0.08);
  border:     1px solid rgba(34, 197, 94, 0.2);
  color:      #16a34a;
}

.pill-down {
  background: rgba(232, 59, 59, 0.08);
  border:     1px solid rgba(232, 59, 59, 0.2);
  color:      var(--red);
}

.pill-avg {
  background:  #f8f9fb;
  border:      1px solid #e4e7ec;
  color:       #667085;
  font-family: 'IBM Plex Mono', monospace;
}

.pill-uptime {
  background:  #f8f9fb;
  border:      1px solid #e4e7ec;
  color:       var(--ink);
  font-family: 'IBM Plex Mono', monospace;
}

/* =============================================
   COMPACT TIME TABS
   ============================================= */
.time-tabs {
  display:       flex;
  background:    white;
  border:        1px solid #e4e7ec;
  border-radius: 8px;
  overflow:      hidden;
}

.time-tab {
  padding:     6px 11px;
  font-size:   12px;
  font-weight: 500;
  color:       #667085;
  background:  none;
  border:      none;
  cursor:      pointer;
  transition:  background 150ms, color 150ms;
  font-family: 'IBM Plex Mono', monospace;
}

.time-tab:hover {
  background: #f2f4f7;
  color:      #101828;
}

.time-tab.active {
  background: var(--ink);
  color:      white;
}

/* =============================================
   REFRESH BUTTON
   ============================================= */
.refresh-btn {
  display:         inline-flex;
  align-items:     center;
  justify-content: center;
  width:           30px;
  height:          30px;
  background:      white;
  border:          1px solid #e4e7ec;
  border-radius:   8px;
  color:           #667085;
  cursor:          pointer;
  transition:      background 150ms, color 150ms, border-color 150ms;
  flex-shrink:     0;
}

.refresh-btn:hover {
  background:   #f2f4f7;
  color:        #101828;
  border-color: #d0d5dd;
}

.refresh-btn.refreshing {
  color:        var(--ink);
  border-color: var(--ink);
}

.refresh-btn.refreshing .refresh-icon {
  animation: spin-refresh 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes spin-refresh {
  from {
    transform: rotate(360deg);
  }
  to {
    transform: rotate(0deg);
  }
}

/* =============================================
   SERVICE CARDS
   ============================================= */
.service-card {
  background:    white;
  border-radius: 12px;
  box-shadow:    0 1px 3px rgba(16, 24, 40, 0.06), 0 1px 2px rgba(16, 24, 40, 0.04);
  overflow:      hidden;
  position:      relative;
  cursor:        pointer;
  transition:    box-shadow 220ms;
}

.service-card:hover {
  box-shadow: 0 4px 16px rgba(16, 24, 40, 0.09), 0 2px 4px rgba(16, 24, 40, 0.04);
}

.service-card[data-status="down"] {
  background: #fffafa;
}

/* Reveal overlay */
.card-reveal {
  position:        absolute;
  top:             0;
  right:           0;
  bottom:          0;
  width:           200px;
  background:      linear-gradient(90deg,
  transparent 0%,
  rgba(255, 255, 255, 0.7) 40%,
  rgba(255, 255, 255, 0.97) 65%
                   );
  display:         flex;
  align-items:     center;
  justify-content: flex-end;
  gap:             6px;
  padding-right:   22px;
  opacity:         0;
  pointer-events:  none;
  transition:      opacity 200ms ease;
  border-radius:   0 12px 12px 0;
}

.service-card[data-status="down"] .card-reveal {
  background: linear-gradient(90deg,
  transparent 0%,
  rgba(255, 250, 250, 0.7) 40%,
  rgba(255, 250, 250, 0.97) 65%
              );
}

.service-card:hover .card-reveal {
  opacity: 1;
}

/* Status dots */
.status-dot {
  width:         8px;
  height:        8px;
  border-radius: 50%;
  flex-shrink:   0;
}

.status-dot.up {
  background: var(--green);
}

.status-dot.degraded {
  background: var(--yellow);
  animation:  pulse-yellow 2.4s infinite;
}

.status-dot.down {
  background: var(--red);
  animation:  pulse-red 1.8s infinite;
}

.status-dot.unknown {
  background: #98a2b3;
}

@keyframes pulse-yellow {
  0% {
    box-shadow: 0 0 0 0 rgba(234, 179, 8, 0.5);
  }
  60% {
    box-shadow: 0 0 0 5px rgba(234, 179, 8, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(234, 179, 8, 0);
  }
}

@keyframes pulse-red {
  0% {
    box-shadow: 0 0 0 0 rgba(232, 59, 59, 0.45);
  }
  60% {
    box-shadow: 0 0 0 6px rgba(232, 59, 59, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(232, 59, 59, 0);
  }
}

/* =============================================
   SPARKLINE
   ============================================= */
.sparkline {
  display:     flex;
  align-items: flex-end;
  gap:         2px;
  height:      72px;
}

.sparkline-bar {
  flex:          1;
  min-width:     0;
  border-radius: 2px 2px 0 0;
  visibility:    hidden;
}

.sparkline-bar.fast:hover,
.sparkline-bar.slow:hover,
.sparkline-bar.timedout:hover,
.sparkline-bar.down:hover
{
  opacity: 1;
}

.sparkline-bar.fast {
  background: var(--bar-fast);
  opacity:    0.8;
}

.sparkline-bar.slow {
  background: var(--bar-medium);
  opacity:    0.8;
}

.sparkline-bar.timedout {
  background: var(--bar-slow);
  opacity:    0.8;
}

.sparkline-bar.down {
  background: var(--bar-down);
}

/* =============================================
   SERVICE DETAIL DRAWER
   ============================================= */

/* Backdrop */
.drawer-backdrop {
  position:        fixed;
  inset:           0;
  z-index:         100;
  background:      rgba(16, 24, 40, 0.8);
  backdrop-filter: blur(2px);
  opacity:         0;
  transition:      opacity 280ms ease;
  pointer-events:  none;
}

.drawer-backdrop.open {
  opacity:        1;
  pointer-events: auto;
}

/* Grayscale on background content when drawer is open */
body.drawer-open > header,
body.drawer-open > main {
  filter:     grayscale(60%);
  transition: filter 280ms ease;
}

/* Drawer panel */
.drawer {
  position:       fixed;
  top:            0;
  right:          0;
  bottom:         0;
  z-index:        200;
  width:          70%;
  background:     white;
  box-shadow:     -12px 0 48px rgba(16, 24, 40, 0.12), -1px 0 0 #e4e7ec;
  display:        flex;
  flex-direction: column;
  transform:      translateX(100%);
  transition:     transform 320ms cubic-bezier(0.32, 0, 0.15, 1);
}

.drawer.open {
  transform: translateX(0);
}

/* Drawer header (service identity section) */
.drawer-header {
  flex-shrink:   0;
  padding:       20px 24px 0;
  border-bottom: 1px solid #e4e7ec;
  background:    white;
}

.drawer-header-top {
  display:         flex;
  align-items:     flex-start;
  justify-content: space-between;
  margin-bottom:   10px;
}

.drawer-identity {
  display:     flex;
  align-items: flex-start;
  gap:         10px;
}

.drawer-status-dot {
  width:         10px;
  height:        10px;
  border-radius: 50%;
  flex-shrink:   0;
  margin-top:    6px;
}

.drawer-status-dot.up {
  background: var(--green);
}

.drawer-status-dot.degraded {
  background: var(--yellow);
  animation:  pulse-yellow 2.4s infinite;
}

.drawer-status-dot.down {
  background: var(--red);
  animation:  pulse-red 1.8s infinite;
}

.drawer-status-dot.unknown {
  background: #98a2b3;
}

.drawer-name {
  font-size:      20px;
  font-weight:    600;
  color:          var(--ink);
  letter-spacing: -0.03em;
  line-height:    1.2;
}

.drawer-url {
  font-family: 'IBM Plex Mono', monospace;
  font-size:   12px;
  color:       var(--ink);
  margin-top:  2px;
}

.drawer-header-actions {
  display:     flex;
  align-items: center;
  gap:         4px;
  flex-shrink: 0;
}

.drawer-action-btn {
  height:        30px;
  display:       flex;
  align-items:   center;
  gap:           5px;
  padding:       0 10px;
  border:        1px solid #e4e7ec;
  border-radius: 4px;
  background:    none;
  font-size:     12px;
  font-weight:   500;
  color:         #667085;
  cursor:        pointer;
  transition:    background 150ms, color 150ms, border-color 150ms;
}

.drawer-action-btn:hover {
  background:   #f2f4f7;
  color:        #101828;
  border-color: #d0d5dd;
}

.drawer-close-btn {
  width:           30px;
  height:          30px;
  display:         flex;
  align-items:     center;
  justify-content: center;
  border:          none;
  background:      none;
  border-radius:   4px;
  color:           #98a2b3;
  cursor:          pointer;
  transition:      background 150ms, color 150ms;
}

.drawer-close-btn:hover {
  background: #f2f4f7;
  color:      #101828;
}

.drawer-meta-row {
  display:        flex;
  align-items:    center;
  gap:            8px;
  padding-bottom: 14px;
  flex-wrap:      wrap;
}

.status-chip {
  display:       inline-flex;
  align-items:   center;
  gap:           4px;
  padding:       2px 8px;
  border-radius: 100px;
  font-size:     11.5px;
  font-weight:   500;
}

.status-chip.up {
  background: rgba(34, 197, 94, 0.1);
  color:      #16a34a;
}

.status-chip.degraded {
  background: rgba(234, 179, 8, 0.1);
  color:      #92400e;
}

.status-chip.down {
  background: rgba(232, 59, 59, 0.1);
  color:      var(--red);
}

.status-chip.unknown {
  background: #f2f4f7;
  color:      #667085;
}

.custom-notifications-badge {
  display:       inline-flex;
  align-items:   center;
  gap:           4px;
  padding:       2px 8px;
  border-radius: 100px;
  background:    #f2f4f7;
  color:         #667085;
  font-size:     11px;
  font-weight:   500;
  white-space:   nowrap;
}

.status-chip.muted {
  background: #f2f4f7;
  color:      #475467;
}

.drawer-meta-sep {
  width:         3px;
  height:        3px;
  border-radius: 50%;
  background:    #98a2b3;
  flex-shrink:   0;
}

.drawer-meta-text {
  font-size: 12px;
  color:     #98a2b3;
}

/* Drawer tabs strip */
.drawer-tabs {
  flex-shrink:   0;
  display:       flex;
  align-items:   center;
  padding:       0 24px;
  border-bottom: 1px solid #e4e7ec;
  background:    white;
}

.drawer-tab {
  position:    relative;
  padding:     11px 12px;
  font-size:   13px;
  font-weight: 500;
  color:       #667085;
  border:      none;
  background:  none;
  white-space: nowrap;
  cursor:      pointer;
  transition:  color 150ms;
}

.drawer-tab:hover {
  color: #101828;
}

.drawer-tab.active {
  color: var(--ink);
}

.drawer-tab.active::after {
  content:       '';
  position:      absolute;
  bottom:        -1px;
  left:          12px;
  right:         12px;
  height:        2px;
  background:    var(--ink);
  border-radius: 2px 2px 0 0;
}

/* Scrollable body */
.drawer-body {
  flex:                1;
  overflow-y:          auto;
  overscroll-behavior: contain;
}

/* Tab panels */
.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

/* Section label */
.section-label {
  font-size:      11px;
  font-weight:    600;
  color:          #98a2b3;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom:  14px;
}

/* ── Performance stat strip ── */
.perf-stats {
  display:               grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  border-bottom:         1px solid #e4e7ec;
}

.perf-stat {
  display:        flex;
  flex-direction: column;
  padding:        18px 16px 16px;
  border-right:   1px solid #e4e7ec;
}

.perf-stat:last-child {
  border-right: none;
}

.perf-stat-value {
  font-family:    'IBM Plex Mono', monospace;
  font-size:      20px;
  font-weight:    500;
  line-height:    1;
  letter-spacing: -0.03em;
  white-space:    nowrap;
}

.perf-stat-unit {
  font-size:   11px;
  color:       #98a2b3;
  font-weight: 400;
  margin-left: 0.25rem;
}

.perf-stat-label {
  font-size:  11px;
  color:      #98a2b3;
  margin-top: 6px;
  white-space: nowrap;
}

.pv-fast {
  color: #16a34a;
}

.pv-good {
  color: #101828;
}

.pv-warn {
  color: #92400e;
}

.pv-slow {
  color: var(--red);
}

.pv-none {
  color:     #98a2b3;
  font-size: 16px;
}

/* ── Chart section (drawer) ── */
.chart-section {
  padding:       20px 24px;
  border-bottom: 1px solid #e4e7ec;
}

.chart-header {
  display:         flex;
  align-items:     center;
  justify-content: space-between;
  margin-bottom:   14px;
}

.chart-title {
  font-size:   13px;
  font-weight: 600;
  color:       #101828;
}

.chart-content {
  height: 300px;
  position: relative;
  overflow: hidden;
}

.drawer-time-selector {
  display:       flex;
  background:    #f2f4f7;
  border:        1px solid #e4e7ec;
  border-radius: 8px;
  overflow:      hidden;
}

.drawer-time-btn {
  padding:     4px 9px;
  font-size:   11.5px;
  font-weight: 500;
  font-family: 'IBM Plex Mono', monospace;
  color:       #667085;
  background:  none;
  border:      none;
  cursor:      pointer;
  transition:  background 150ms, color 150ms;
}

.drawer-time-btn:hover {
  background: white;
  color:      #101828;
}

.drawer-time-btn.active {
  background: var(--ink);
  color:      #fff;
}

/* ── Incident history (Performance tab) ── */
.incidents-section {
  padding: 20px 24px 32px;
}

.incidents-header {
  display:         flex;
  align-items:     center;
  justify-content: space-between;
  margin-bottom:   14px;
}

.incidents-title {
  font-size:   13px;
  font-weight: 600;
  color:       #101828;
}

.incidents-link {
  font-size:       12px;
  color:           var(--ink);
  font-weight:     500;
  text-decoration: none;
}

.incident-row {
  display:     flex;
  align-items: flex-start;
  gap:         12px;
  padding:     12px 0;
  border-top:  1px solid #e4e7ec;
}

.incident-row:first-child {
  border-top:  none;
  padding-top: 0;
}

.incident-dot-col {
  flex-shrink: 0;
  padding-top: 3px;
}

.incident-dot {
  width:         8px;
  height:        8px;
  border-radius: 50%;
}

.incident-dot.open {
  background: var(--red);
  animation:  pulse-red 1.8s infinite;
}

.incident-dot.resolved {
  background: #98a2b3;
}

.incident-dot.degraded {
  background: var(--yellow);
}

.incident-body {
  flex: 1;
}

.incident-title {
  font-size:     13px;
  font-weight:   500;
  color:         #101828;
  margin-bottom: 2px;
}

.incident-meta {
  font-size:   11.5px;
  color:       #98a2b3;
  font-family: 'IBM Plex Mono', monospace;
}

.incident-badge {
  flex-shrink:   0;
  display:       inline-flex;
  align-items:   center;
  padding:       2px 8px;
  border-radius: 100px;
  font-size:     11px;
  font-weight:   500;
}

.badge-open {
  background: rgba(232, 59, 59, 0.1);
  color:      var(--red);
}

.badge-resolved {
  background: #f2f4f7;
  color:      #98a2b3;
}

.badge-degraded {
  background: rgba(234, 179, 8, 0.1);
  color:      #92400e;
}

.incidents-empty {
  display:       flex;
  gap:           10px;
  align-items:   flex-start;
  padding:       14px 16px;
  background:    rgba(34, 197, 94, 0.06);
  border:        1px solid rgba(34, 197, 94, 0.18);
  border-radius: 8px;
}

.incidents-empty-icon {
  flex-shrink: 0;
  color:       #16a34a;
}

.incidents-empty-text {
  font-size:   13px;
  font-weight: 500;
  color:       #16a34a;
}

.incidents-empty-sub {
  font-size:  12px;
  color:      #98a2b3;
  margin-top: 2px;
}

/* ── uPlot CSS (from uPlot@1.6.32/dist/uPlot.min.css) ── */
.uplot, .uplot *, .uplot *::before, .uplot *::after {
  box-sizing: border-box;
}

.uplot {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.5;
  width:       min-content;
}

.u-wrap {
  position:    relative;
  user-select: none;
}

.u-over, .u-under {
  position: absolute;
}

.u-under {
  overflow: hidden;
}

.uplot canvas {
  display:  block;
  position: relative;
  width:    100%;
  height:   100%;
}

.u-axis {
  position: absolute;
}

.u-select {
  background:     rgba(0, 0, 0, .07);
  position:       absolute;
  pointer-events: none;
}

.u-cursor-x, .u-cursor-y {
  position:       absolute;
  left:           0;
  top:            0;
  pointer-events: none;
  will-change:    transform;
}

.u-hz .u-cursor-x, .u-vt .u-cursor-y {
  height:       100%;
  border-right: 1px dashed #607d8b;
}

.u-hz .u-cursor-y, .u-vt .u-cursor-x {
  width:         100%;
  border-bottom: 1px dashed #607d8b;
}

.u-cursor-pt {
  position:        absolute;
  top:             0;
  left:            0;
  border-radius:   50%;
  border:          0 solid;
  pointer-events:  none;
  will-change:     transform;
  background-clip: padding-box !important;
}

.u-axis.u-off, .u-select.u-off, .u-cursor-x.u-off, .u-cursor-y.u-off, .u-cursor-pt.u-off {
  display: none;
}

/* ── Chart tooltip ── */
.u-tooltip {
  position:       absolute;
  pointer-events: none;
  z-index:        10;
  background:     rgba(16, 24, 40, 0.88);
  color:          #efefef;
  padding:        5px 10px;
  border-radius:  5px;
  font-size:      11.5px;
  white-space:    nowrap;
}

.u-tt-time {
  font-family:  'IBM Plex Mono', monospace;
  font-size:    10px;
  color:        #98a2b3;
  margin-right: 6px;
}

.u-tt-val {
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 500;
  padding-left: 1rem;
}

.u-tt-unit {
  font-size: 10px;
  color:     #98a2b3;
  padding-left: 0.15rem;
}

/* ── Multi-region tooltip rows ── */
.u-tt-region {
  display:     flex;
  align-items: center;
  gap:         5px;
  font-size:   11px;
  font-family: 'IBM Plex Mono', monospace;
  white-space: nowrap;
  line-height: 1.6;
}

.u-tt-dot {
  width:         6px;
  height:        6px;
  border-radius: 50%;
  flex-shrink:   0;
}

/* ── Drawer region selector (compact) ── */
.drawer-region-trigger {
  display:       flex;
  align-items:   center;
  gap:           5px;
  padding:       4px 8px;
  background:    #f2f4f7;
  border:        1px solid #e4e7ec;
  border-radius: 6px;
  cursor:        pointer;
  font-size:     11.5px;
  color:         #667085;
  transition:    border-color 150ms, background 150ms;
  white-space:   nowrap;
}

.drawer-region-trigger:hover {
  background:   white;
  border-color: #d0d5dd;
  color:        #101828;
}

.drawer-region-trigger--active {
  background:   white;
  border-color: var(--ink);
  box-shadow:   0 0 0 2px rgba(28, 43, 39, 0.08);
}

.drawer-region-summary {
  font-weight: 500;
  font-size:   11.5px;
}

.drawer-region-menu {
  position:      absolute;
  top:           calc(100% + 4px);
  right:         0;
  min-width:     220px;
  background:    white;
  border:        1px solid #e4e7ec;
  border-radius: 8px;
  box-shadow:    0 8px 28px rgba(0,0,0,0.12), 0 2px 8px rgba(0,0,0,0.06);
  z-index:       50;
  overflow:      hidden;
  padding:       4px;
}

.drawer-region-row {
  display:       flex;
  align-items:   center;
  gap:           8px;
  padding:       6px 8px;
  border-radius: 5px;
  cursor:        pointer;
  transition:    background 100ms;
}

.drawer-region-row:hover {
  background: #f9fafb;
}

.drawer-region-default-pill {
  font-size:     10px;
  font-weight:   500;
  padding:       1px 6px;
  border-radius: 100px;
  background:    rgba(34, 197, 94, 0.08);
  border:        1px solid rgba(34, 197, 94, 0.2);
  color:         #16a34a;
  flex-shrink:   0;
}

/* =============================================
   SERVICE FORM — hint card color variants
   (RGBA values are cumbersome as Tailwind
    arbitrary classes, so use named variants)
   ============================================= */

.sf-hint-card {
  display:       flex;
  gap:           12px;
  padding:       13px 15px;
  border-radius: 8px;
  margin-bottom: 9px;
}
.sf-hint-card:last-child { margin-bottom: 0; }

.sf-hint-card.positive {
  background: rgba(34, 197, 94, 0.06);
  border:     1px solid rgba(34, 197, 94, 0.18);
}
.sf-hint-card.suggestion {
  background: rgba(28, 43, 39, 0.08);
  border:     1px solid rgba(28, 43, 39, 0.08);
}
.sf-hint-card.warning {
  background: rgba(234, 179, 8, 0.07);
  border:     1px solid rgba(234, 179, 8, 0.22);
}

.sf-hint-card.positive   .sf-hint-title { color: #16a34a; }
.sf-hint-card.suggestion .sf-hint-title { color: #1d7db8; }
.sf-hint-card.warning    .sf-hint-title { color: #92400e; }

.threshold.recovered {
  color: var(--green);
}

.threshold.slow {
  color: var(--yellow);
}

.threshold.down {
  color: var(--red);
}

/* =============================================
   WATERFALL TIMING CHART
   ============================================= */
.wf-bar-fill {
  transform:        scaleX(0);
  transform-origin: left;
}

.wf-bar-fill.revealed {
  transition: transform 500ms cubic-bezier(0.25, 1, 0.5, 1);
  transform:  scaleX(1);
}

.wf-phase {
  transition: background-color 120ms ease;
}

.wf-phase:hover {
  background-color: #f4f6f8;
}

.wf-phase:hover .wf-bar-fill {
  filter: brightness(1.08);
}
/* ==========================================================================
   Settings drawer — CSS for things that genuinely need named classes
   (pseudo-elements, complex states). Everything else uses Tailwind directly.
   ========================================================================== */

/* Toggle switch — needs ::after pseudo-element for knob */
.settings-toggle {
  position: relative;
  width: 36px;
  height: 20px;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  transition: background 200ms;
  flex-shrink: 0;
}

.settings-toggle.on  { background: var(--green); }
.settings-toggle.off { background: #D0D5DD; }

.settings-toggle::after {
  content: '';
  position: absolute;
  top: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.15);
  transition: left 200ms;
}

.settings-toggle.on::after  { left: 18px; }
.settings-toggle.off::after { left: 2px; }

.settings-toggle:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* Threshold degraded color — .slow, .down, .recovered already in services.css */
.threshold.degraded {
  color: #f97316;
}

.settings-toggle:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

/* Notification matrix (shared/_notification_matrix) */
.nm-panel { border: 1px solid #e4e7ec; border-radius: 10px; background: #fff; padding: 4px 16px 12px; }
.nm-panel.locked { background: #f9fafb; border-color: #eaecf0; }
.nm-grid { display: grid; grid-template-columns: minmax(0, 1fr) 104px 104px 104px; align-items: stretch; }
.nm-colhead { padding: 12px 0 10px; min-height: 66px; text-align: center; border-bottom: 1px solid #eaecf0; }
.nm-colhead b { display: block; font-size: 13px; font-weight: 600; color: #101828; }
.nm-colhead span { display: block; font-size: 11.5px; color: #667085; line-height: 1.3; margin-top: 1px; }
.nm-rowlabel { display: flex; align-items: flex-start; gap: 10px; padding: 12px 12px 12px 0; min-height: 56px; }
.nm-channel-icon { width: 16px; height: 16px; color: #667085; flex-shrink: 0; margin-top: 2px; }
.nm-name { font-size: 13px; font-weight: 500; color: #101828; }
.nm-status { font-size: 12px; color: #667085; line-height: 1.4; margin-top: 1px; }
.nm-status.warn { color: #b45309; }
.nm-status a { color: #1d7db8; text-decoration: underline; text-underline-offset: 2px; }
.nm-cell { display: flex; justify-content: center; align-items: center; min-height: 56px; }
.nm-rowsep { grid-column: 1 / -1; border-top: 1px solid #f2f4f7; }
.nm-help { font-size: 11.5px; color: #667085; margin: 10px 0 0; line-height: 1.5; }
.nm-locked-note { display: flex; align-items: center; gap: 6px; font-size: 12px; color: #667085; margin-top: 10px; padding-top: 10px; border-top: 1px solid #eaecf0; }
.nm-locked-note[hidden], .nm-note[hidden] { display: none; }
.nm-locked-note a { color: #1d7db8; text-decoration: underline; text-underline-offset: 2px; }
.nm-notes { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.nm-note { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 8px; font-size: 12.5px; line-height: 1.5; }
.nm-note svg { flex-shrink: 0; margin-top: 1px; }
.nm-note.warn { background: rgba(234, 179, 8, 0.07); border: 1px solid rgba(234, 179, 8, 0.28); color: #92400e; }
.nm-note.info { background: #f9fafb; border: 1px solid #e4e7ec; color: #475467; }
.nm-note a { color: inherit; text-decoration: underline; text-underline-offset: 2px; font-weight: 500; }

/* Segmented control: native radios, styled labels */
.nm-seg { display: inline-flex; padding: 3px; background: #f2f4f7; border-radius: 8px; gap: 2px; }
.nm-seg label { position: relative; cursor: pointer; }
.nm-seg input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.nm-seg span { display: block; padding: 6px 14px; border-radius: 6px; font-size: 13px; font-weight: 500; color: #667085; transition: all 150ms; }
.nm-seg input:checked + span { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(16, 24, 40, 0.12), 0 0 0 1px rgba(16, 24, 40, 0.04); }
.nm-seg input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
.nm-reminder { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 12px; padding: 14px 16px; border: 1px solid #e4e7ec; border-radius: 10px; background: #fff; }
.nm-reminder-icon { width: 18px; height: 18px; flex-shrink: 0; color: #667085; }
.nm-reminder-text { flex: 1 1 240px; min-width: 0; }
.nm-reminder-text label { display: block; font-size: 13px; font-weight: 600; color: #101828; }
.nm-reminder-text p { font-size: 12px; color: #667085; line-height: 1.5; margin: 1px 0 0; }
.nm-seg-help { font-size: 12px; color: #667085; margin: 8px 0 14px; line-height: 1.5; }

@media (max-width: 420px) {
  .nm-grid { grid-template-columns: minmax(0, 1fr) 64px 64px 64px; }
}
/* app/assets/stylesheets/variant_switcher.css
 *
 * Import this in application.css (development only, or always — it's a no-op
 * in production since the partial only renders in development):
 *
 *   @import "variant_switcher";
 *
 * Or inline it in your layout inside <% if Rails.env.development? %>
 */

/* ── Variables ─────────────────────────────────────────────────────────────── */
:root {
  --vs-bg:            #0f0f10;
  --vs-bg-hover:      #1a1a1e;
  --vs-border:        #2a2a30;
  --vs-accent:        #7c6dff;
  --vs-accent-dim:    rgba(124, 109, 255, 0.15);
  --vs-text:          #e8e8f0;
  --vs-text-muted:    #666680;
  --vs-active-bg:     rgba(124, 109, 255, 0.12);
  --vs-active-border: #7c6dff;
  --vs-shadow:        0 8px 32px rgba(0, 0, 0, 0.5), 0 2px 8px rgba(0, 0, 0, 0.3);
  --vs-radius:        10px;
  --vs-font:          'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
  --vs-z:             2147483647; /* max z-index */
}

/* ── Panel ─────────────────────────────────────────────────────────────────── */
.vs-panel {
  position:       fixed;
  bottom:         24px;
  right:          24px;
  z-index:        var(--vs-z);
  width:          220px;
  background:     var(--vs-bg);
  border:         1px solid var(--vs-border);
  border-radius:  var(--vs-radius);
  box-shadow:     var(--vs-shadow);
  font-family:    var(--vs-font);
  font-size:      11px;
  color:          var(--vs-text);
  user-select:    none;
  overflow:       hidden;
  transition:     box-shadow 0.15s ease;
  /* Ensure it doesn't interfere with the page layout */
  pointer-events: auto;
}

.vs-panel.vs-dragging {
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.6), 0 4px 16px rgba(0, 0, 0, 0.4);
  cursor:     grabbing;
}

/* ── Header / drag handle ──────────────────────────────────────────────────── */
.vs-header {
  display:       flex;
  align-items:   center;
  gap:           7px;
  padding:       9px 12px;
  cursor:        grab;
  border-bottom: 1px solid transparent;
  transition:    border-color 0.15s, background 0.15s;
}

.vs-header:hover {
  background: var(--vs-bg-hover);
}

.vs-panel.vs-expanded .vs-header {
  border-bottom-color: var(--vs-border);
}

.vs-logo {
  color:       var(--vs-accent);
  flex-shrink: 0;
  display:     flex;
  align-items: center;
}

.vs-title {
  font-weight:    600;
  letter-spacing: 0.04em;
  color:          var(--vs-text);
  flex:           1;
  font-size:      10px;
  text-transform: uppercase;
}

.vs-current-badge {
  font-size:      9px;
  padding:        2px 6px;
  background:     var(--vs-accent-dim);
  color:          var(--vs-accent);
  border-radius:  4px;
  border:         1px solid rgba(124, 109, 255, 0.3);
  letter-spacing: 0.02em;
  max-width:      70px;
  overflow:       hidden;
  text-overflow:  ellipsis;
  white-space:    nowrap;
}

.vs-chevron {
  color:       var(--vs-text-muted);
  display:     flex;
  align-items: center;
  transition:  transform 0.2s ease;
  flex-shrink: 0;
}

.vs-panel.vs-expanded .vs-chevron {
  transform: rotate(180deg);
}

/* ── Body (collapsible) ────────────────────────────────────────────────────── */
.vs-body {
  display:        none;
  flex-direction: column;
  padding:        6px;
  gap:            2px;
  max-height:     320px;
  overflow-y:     auto;
}

.vs-body::-webkit-scrollbar {
  width: 4px;
}

.vs-body::-webkit-scrollbar-track {
  background: transparent;
}

.vs-body::-webkit-scrollbar-thumb {
  background:    var(--vs-border);
  border-radius: 2px;
}

.vs-panel.vs-expanded .vs-body {
  display: flex;
}

/* ── Variant buttons ───────────────────────────────────────────────────────── */
.vs-btn {
  display:        flex;
  align-items:    flex-start;
  gap:            8px;
  padding:        7px 9px;
  background:     transparent;
  border:         1px solid transparent;
  border-radius:  6px;
  color:          var(--vs-text);
  cursor:         pointer;
  text-align:     left;
  font-family:    var(--vs-font);
  font-size:      11px;
  transition:     background 0.1s, border-color 0.1s;
  flex-direction: column;
  gap:            2px;
}

.vs-btn:hover {
  background:   var(--vs-bg-hover);
  border-color: var(--vs-border);
}

.vs-btn.vs-active {
  background:   var(--vs-active-bg);
  border-color: var(--vs-active-border);
  color:        #b8b0ff;
}

.vs-btn .vs-dot {
  width:         6px;
  height:        6px;
  border-radius: 50%;
  background:    var(--vs-text-muted);
  flex-shrink:   0;
  margin-top:    3px;
  /* Keep dot in a row with label */
  align-self:    flex-start;
  display:       inline-block;
}

/* Put dot and label on same row */
.vs-btn {
  flex-direction: row;
  align-items:    flex-start;
  flex-wrap:      wrap;
}

.vs-btn-label {
  flex:        1;
  line-height: 1.4;
}

.vs-btn.vs-active .vs-dot {
  background: var(--vs-accent);
  box-shadow: 0 0 6px rgba(124, 109, 255, 0.6);
}

.vs-btn-desc {
  display:      block;
  width:        100%;
  padding-left: 14px;
  font-size:    9.5px;
  color:        var(--vs-text-muted);
  line-height:  1.4;
  margin-top:   1px;
}

/* ── Keyboard hint ─────────────────────────────────────────────────────────── */
.vs-shortcut {
  font-size:      9px;
  color:          var(--vs-text-muted);
  text-align:     center;
  padding:        6px 6px 4px;
  letter-spacing: 0.03em;
  border-top:     1px solid var(--vs-border);
  margin-top:     4px;
}

/* ── In-page variant badge (overlaid on the active variant block) ─────────── */
.vs-variant-wrapper {
  position: relative;
}

.vs-variant-badge {
  position:       absolute;
  top:            6px;
  left:           6px;
  z-index:        calc(var(--vs-z) - 1);
  font-family:    var(--vs-font);
  font-size:      9px;
  font-weight:    600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding:        3px 8px;
  background:     var(--vs-accent);
  color:          #fff;
  border-radius:  4px;
  pointer-events: none;
  opacity:        0.85;
}

.vs-variant-badge--default {
  background: #3a8a4a;
}
