/* =========================================
   Reset & base
   ========================================= */

*, *::before, *::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    color: #1a1a1a;
    background: white;
    min-height: 100vh;
}

/* =========================================
   Auth page layout — centers the form
   ========================================= */

.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}

.auth-container {
    width: 100%;
    max-width: 380px;
}

/* =========================================
   Logo above the card
   ========================================= */

.auth-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 2rem;
    font-size: 16px;
    font-weight: 500;
}

.auth-logo svg {
    width: 22px;
    height: 22px;
    overflow: visible;  /* let the pulse expand past the SVG bounds */
}

/* =========================================
   Pulse animation — radar ripple from logo
   ========================================= */

.pulse-glow {
    transform-origin: center;
    transform-box: fill-box;
    animation: pulse 2s ease-out infinite;
}

.pulse-delayed {
    animation-delay: 1s;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.6;
    }
    100% {
        transform: scale(3);
        opacity: 0;
    }
}

/* Respect users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
    .pulse-glow {
        animation: none;
    }
}

/* =========================================
   The card — white box holding the form
   ========================================= */

.auth-card {
    background: white;
    border: 0.5px solid rgba(0, 0, 0, 0.15);
    border-radius: 12px;
    padding: 1.75rem;
}

.auth-card h3 {
    font-size: 18px;
    font-weight: 500;
    margin: 0 0 4px;
}

.auth-card > p {
    font-size: 13px;
    color: #6b6b6b;
    margin: 0 0 1.5rem;
}

/* =========================================
   Form fields
   - Each label wraps its input
   - Labels stack as blocks with the field name as muted text on top
   ========================================= */

form {
    display: flex;
    flex-direction: column;
}

form label {
    display: block;
    margin-bottom: 14px;
    font-size: 12px;
    color: #6b6b6b;
}

form input {
    display: block;
    width: 100%;
    margin-top: 6px;
    padding: 9px 12px;
    font-size: 14px;
    color: #1a1a1a;
    background: white;
    border: 0.5px solid rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
}

form input:hover {
    border-color: rgba(0, 0, 0, 0.35);
}

form input:focus {
    border-color: #185fa5;
    box-shadow: 0 0 0 3px rgba(24, 95, 165, 0.15);
}

/* =========================================
   Submit button — primary blue CTA
   ========================================= */

button[type="submit"] {
    width: 100%;
    padding: 10px;
    margin-top: 6px;
    font-size: 14px;
    font-weight: 500;
    color: white;
    background: #185fa5;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.15s;
}

button[type="submit"]:hover:not(:disabled) {
    background: #134e87;
}

button[type="submit"]:active:not(:disabled) {
    transform: scale(0.99);
}

button[type="submit"]:disabled {
    background: #b8b8b8;
    cursor: not-allowed;
}

/* =========================================
   Error message under the form
   ========================================= */

.error-message {
    color: #a32d2d;
    font-size: 12px;
    margin: 0 0 12px;
}

/* =========================================
   Footer text — terms, privacy, sign-in link
   ========================================= */

form small {
    display: block;
    text-align: center;
    margin-top: 12px;
    font-size: 11px;
    color: #999;
    line-height: 1.5;
}

form small a {
    color: #6b6b6b;
}

form hr {
    margin: 1.25rem 0 1rem;
    border: none;
    border-top: 0.5px solid rgba(0, 0, 0, 0.1);
}

form > p:last-child {
    text-align: center;
    font-size: 13px;
    color: #6b6b6b;
    margin: 0;
}

form a {
    color: #185fa5;
    text-decoration: none;
    font-weight: 500;
}

form a:hover {
    text-decoration: underline;
}


/* =========================================
   Check email page
   ========================================= */

.check-email-card {
    text-align: center;
}

.check-email-icon {
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
}

.check-email-icon svg {
    width: 48px;
    height: 48px;
}

.check-email-card h3 {
    margin-top: 0;
}

.check-email-message {
    font-size: 13px;
    color: #6b6b6b;
    margin: 0 0 1.5rem;
    line-height: 1.6;
}

.check-email-message strong {
    color: #1a1a1a;
    font-weight: 500;
}

.check-email-tips {
    text-align: left;
    background: #f5f4ee;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 1rem;
}

.check-email-tips p {
    font-size: 12px;
    font-weight: 500;
    color: #6b6b6b;
    margin: 0 0 6px;
}

.check-email-tips ul {
    margin: 0;
    padding-left: 18px;
    font-size: 12px;
    color: #6b6b6b;
    line-height: 1.7;
}

.check-email-footer {
    text-align: center;
    font-size: 13px;
    color: #6b6b6b;
    margin: 0;
}


/* =========================================
   Toast notifications — transient feedback
   ========================================= */
   
.toast {
  position: fixed;
  top: 1.25rem;
  right: 1.25rem;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  max-width: 480px;
  max-width: 28rem;
  padding: 0.875rem 1rem;
  background: #fef3c7;        /* amber-100 */
  color: #78350f;              /* amber-900 */
  border: 1px solid #fbbf24;   /* amber-400 */
  border-radius: 0.5rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.4;
  box-shadow:
      0 10px 15px -3px rgba(0, 0, 0, 0.08),
      0 4px 6px -2px rgba(0, 0, 0, 0.04);
  animation: toast-slide-in 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast-icon { font-size: 1.1rem; }
.toast-message { flex: 1; }

.toast-close {
  background: none;
  border: none;
  color: inherit;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 0.25rem;
  opacity: 0.7;
}
.toast-close:hover { opacity: 1; }

.toast-info {
    background: #E6F1FB;
    border: 0.5px solid #85B7EB;
    border-left: 4px solid #185FA5;
    color: #042C53;
}

.toast-error {
    background: #FCEBEB;
    border: 0.5px solid #F09595;
    border-left: 4px solid #A32D2D;
    color: #501313;
}

.toast-success {
    background: #E1F5EE;
    border: 0.5px solid #5DCAA5;
    border-left: 4px solid #0F6E56;
    color: #04342C;
}

.toast-warning {
    background: #FAEEDA;
    border: 0.5px solid #EF9F27;
    border-left: 4px solid #854F0B;
    color: #412402;
}

@keyframes toast-in {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes toast-in {
  from { transform: translateY(-10px); opacity: 0; }
  to   { transform: translateY(0);     opacity: 1; }
}

@media (max-width: 480px) {
  .toast { top: auto; bottom: 1rem; left: 1rem; right: 1rem; max-width: none; }
}

@keyframes toast-slide-in {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Respect motion preferences */
@media (prefers-reduced-motion: reduce) {
    .toast {
        animation: none;
    }
}

/* =========================================
   App layout — sidebar + main content
   ========================================= */

.app-layout {
    display: flex;
    min-height: 100vh;
    align-items: stretch;
}

.app-main {
    flex: 1;
    overflow: auto;
}


/* =========================================
   Sidebar — fixed-width left rail
   ========================================= */

.sidebar {
    width: 200px;
    height: 100vh;             /* exact, not min */
    position: sticky;          /* sticks as the page scrolls */
    top: 0;
    background: white;
    border-right: 0.5px solid rgba(0, 0, 0, 0.1);
    padding: 1rem 0.75rem;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    overflow-y: auto;          /* if nav ever gets too tall, scroll inside */
}

/* Brand */

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 8px;
    margin-bottom: 1.5rem;
    font-size: 14px;
    font-weight: 500;
}

.sidebar-brand svg {
    width: 18px;
    height: 18px;
    overflow: visible;
}

/* Navigation */

.sidebar-nav {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 6px 8px;
    font-size: 14px;
    gap: 15px;
    color: #6b6b6b;
    text-decoration: none;
    border-radius: 6px;
    transition: background 0.1s, color 0.1s;
}

.nav-item:hover {
    background: rgba(0, 0, 0, 0.03);
    color: #1a1a1a;
}

.nav-item[aria-current="page"] {
    background: #ced7ce;
    color: #1a1a1a;
    font-weight: 500;
}

.nav-badge {
    background: #fcebeb;
    color: #501313;
    font-size: 10px;
    font-weight: 500;
    padding: 1px 6px;
    border-radius: 8px;
    line-height: 1.5;
}

/* Footer — pinned to bottom */

.sidebar-footer {
    margin-top: auto;
    padding: 8px;
    border-top: 0.5px solid rgba(0, 0, 0, 0.1);
    font-size: 11px;
    color: #999;
}

.connection-status {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 6px;
}

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

.status-dot-up { background: #1d9e75; }
.status-dot-degraded { background: #ba7517; }
.status-dot-down { background: #a32d2d; }

.search-hint kbd {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    background: #f5f4ee;
    padding: 1px 5px;
    border-radius: 3px;
    font-size: 10px;
    color: #6b6b6b;
}

/* =========================================
   App layout — sidebar + main content
   ========================================= */

.app-layout {
    display: flex;
    min-height: 100vh;
}

.app-main {
    flex: 1;
    overflow-y: auto;
}

/* =========================================
   Dashboard
   ========================================= */

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
}

.dashboard-header h1 {
    font-size: 18px;
    font-weight: 500;
    margin: 0;
}

.dashboard-subtitle {
    font-size: 12px;
    color: #6b6b6b;
    margin: 2px 0 0;
}

.dashboard-actions {
    display: flex;
    gap: 8px;
}

.btn-primary {
    padding: 6px 12px;
    font-size: 13px;
    background: #185fa5;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

.btn-primary:hover {
    background: #134e87;
}

.btn-secondary {
    padding: 6px 12px;
    font-size: 13px;
    background: white;
    color: #1a1a1a;
    border: 0.5px solid rgba(0, 0, 0, 0.2);
    border-radius: 6px;
    cursor: pointer;
}

.btn-secondary:hover {
    background: #f5f4ee;
}

/* Status counts grid */

.status-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 1.5rem;
}

.stat-card {
    background: #f7f7f5;
    /*border: 0.5px solid rgba(0, 0, 0, 0.1);*/
    border-radius: 8px;
    padding: 12px 14px;
    padding: 1rem 1.125rem;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.stat-card-value {
    font-size: 11px;
    font-size: 24px;
    font-weight: 500;
    color: #6b6b6b;
    font-variant-numeric: tabular-nums;
    /*text-transform: uppercase;*/
    letter-spacing: 0.04em;
    margin: 0 0 4px;
}

.stat-card-label {
  font-size: 13px;
  color: #6b6b6b;
  margin: 0;
}

.stat-card-value-danger {
  color: #a32d2d;
}

.stat-value {
    font-size: 22px;
    font-weight: 500;
    margin: 0;
}

.stat-up { color: #0f6e56; }
.stat-degraded { color: #ba7517; }
.stat-down { color: #a32d2d; }

/* Section label between groups */

.section-label {
    font-size: 12px;
    color: #6b6b6b;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin: 0 0 8px;
    margin-bottom: 10px;
}

/* Monitor table */

.monitor-table {
    background: white;
    border: 0.5px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.monitor-table-header,
.monitor-row {
    display: grid;
    grid-template-columns: 1.8fr 0.9fr 1.2fr 1.3fr 0.7fr 0.7fr;
    align-items: center;
    gap: 12px;
}

.monitor-table-header {
    padding: 8px 14px;
    background: #f5f4ee;
    border-bottom: 0.5px solid rgba(0, 0, 0, 0.1);
    font-size: 11px;
    color: #6b6b6b;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.monitor-row {
    padding: 12px 14px;
    font-size: 13px;
    border-bottom: 0.5px solid rgba(0, 0, 0, 0.1);
}

.monitor-row:hover {
    background: rgba(0, 0, 0, 0.015);
}

.monitor-name p {
    margin: 0;
    font-weight: 500;
}

.monitor-meta {
    font-size: 11px;
    color: #6b6b6b;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    margin-top: 2px !important;
}

.tabular {
    font-variant-numeric: tabular-nums;
}


/* =========================================
   Status badges — colored pills
   ========================================= */

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
    line-height: 1.5;
    width: fit-content;
}

.status-badge-up {
    background: #e1f5ee;
    color: #04342c;
}

.status-badge-degraded {
    background: #faeeda;
    color: #412402;
}

.status-badge-down {
    background: #fcebeb;
    color: #501313;
}


.status-badge-pending {
    background: #f1efe8;
    color: #5f5e5a;
}

.status-dot-pending { 
    background: #888780; 
}

/* =========================================
   Sparkline — recent check history
   ========================================= */

.sparkline {
    display: flex;
    gap: 1.5px;
    align-items: center;
}

.sparkline-tick {
    width: 3px;
    height: 12px;
    border-radius: 1px;
    background: #d3d1c7;  /* default — light grey for unknown status */
}

.sparkline-tick-up { background: #1d9e75; }
.sparkline-tick-degraded { background: #ef9f27; }
.sparkline-tick-down { background: #e24b4a; }

.monitor-row-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.monitor-row-link:hover .monitor-row {
    background: rgba(0, 0, 0, 0.02);
}

/* =========================================
   Monitor detail page
   ========================================= */

.monitor-detail {
    padding: 1.25rem 1.5rem;
}

.breadcrumb {
    font-size: 12px;
    color: #6b6b6b;
    margin: 0 0 8px;
}

.breadcrumb a {
    color: #6b6b6b;
    text-decoration: none;
}

.breadcrumb a:hover {
    color: #1a1a1a;
}

.monitor-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.monitor-detail-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.monitor-detail-title h1 {
    font-size: 22px;
    font-weight: 500;
    margin: 0;
}

.monitor-detail-actions {
    display: flex;
    gap: 8px;
}

.monitor-config {
    font-size: 13px;
    color: #6b6b6b;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    margin: 0 0 1.25rem;
}

.monitor-row-link {
    display: block;
    text-decoration: none;
    color: inherit;
}


/* =========================================
   Monitor detail page
   ========================================= */

.monitor-detail {
    padding: 1.25rem 1.5rem;
}

.breadcrumb {
    font-size: 12px;
    color: #6b6b6b;
    margin: 0 0 8px;
}

.breadcrumb a {
    color: #6b6b6b;
    text-decoration: none;
}

.breadcrumb a:hover {
    color: #1a1a1a;
}

.monitor-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.monitor-detail-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.monitor-detail-title h1 {
    font-size: 22px;
    font-weight: 500;
    margin: 0;
}

.monitor-detail-actions {
    display: flex;
    gap: 8px;
}

.monitor-config {
    font-size: 13px;
    color: #6b6b6b;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    margin: 0 0 1.25rem;
}

/* =========================================
   Checks table
   ========================================= */

.checks-table {
    background: white;
    border: 0.5px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.checks-table-header,
.check-row {
    display: grid;
    grid-template-columns: 0.5fr 1fr 0.5fr 0.6fr 1.4fr;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    font-size: 13px;
}

.checks-table-header {
    background: #f5f4ee;
    border-bottom: 0.5px solid rgba(0, 0, 0, 0.1);
    font-size: 11px;
    color: #6b6b6b;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.check-row {
    border-bottom: 0.5px solid rgba(0, 0, 0, 0.1);
}

.check-row:last-child {
    border-bottom: none;
}

.check-row-fail {
    background: rgba(252, 235, 235, 0.5);
}

.check-row-fail .check-when,
.check-row-fail .check-detail,
.check-row-fail .tabular {
    color: #501313;
}

.check-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.check-status-ok { color: #04342c; font-weight: 500; }
.check-status-fail { color: #501313; font-weight: 500; }
.check-status-degraded { color: #412402; font-weight: 500; }

.check-when {
    color: #6b6b6b;
}

.check-detail {
    color: #6b6b6b;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 12px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.error-message {
    padding: 1rem 1.5rem;
    color: #a32d2d;
    font-size: 13px;
}


/* =========================================
   Chart card
   ========================================= */

.chart-card {
    background: white;
    border: 0.5px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    margin-bottom: 1.25rem;
}

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

.chart-title {
    font-size: 14px;
    font-weight: 500;
    margin: 0;
}

.chart-range {
    display: flex;
    gap: 4px;
}

.chart-range-btn {
    font-size: 12px;
    padding: 3px 10px;
    border: 0.5px solid rgba(0, 0, 0, 0.15);
    background: transparent;
    border-radius: 6px;
    cursor: pointer;
}

.chart-range-active {
    background: #f5f4ee;
    font-weight: 500;
}

.latency-chart-svg {
    width: 100%;
    height: 180px;
    display: block;
}


/* =========================================
   Landing page
   ========================================= */

.landing {
    min-height: 100vh;
}

.landing-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2rem;
    border-bottom: 0.5px solid rgba(0, 0, 0, 0.08);
    max-width: 1200px;
    margin: 0 auto;
}

.landing-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 500;
}

.landing-brand svg {
    width: 22px;
    height: 22px;
    overflow: visible;
}

.landing-nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    font-size: 13px;
}

.landing-nav a {
    color: #6b6b6b;
    text-decoration: none;
}

.landing-nav a:hover {
    color: #1a1a1a;
}

.landing-nav-signin {
    color: #1a1a1a !important;
}

.landing-nav-cta {
    background: #185fa5;
    color: white !important;
    padding: 6px 14px;
    border-radius: 6px;
    font-weight: 500;
}

.landing-nav-cta:hover {
    background: #134e87;
}

/* Hero */

.hero {
    padding: 4rem 2rem 3rem;
    text-align: center;
    max-width: 760px;
    margin: 0 auto;
}

.hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: white;
    border: 0.5px solid rgba(0, 0, 0, 0.1);
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 12px;
    color: #6b6b6b;
    margin-bottom: 1.5rem;
}

.hero-headline {
    font-size: 44px;
    font-weight: 500;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin: 0 0 1rem;
    color: #1a1a1a;
}

.hero-subhead {
    font-size: 17px;
    line-height: 1.5;
    color: #6b6b6b;
    margin: 0 auto 2rem;
    max-width: 560px;
}

.hero-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 1rem;
}

.btn-large {
    padding: 11px 20px !important;
    font-size: 14px !important;
    text-decoration: none;
    display: inline-block;
}

.hero-fineprint {
    font-size: 12px;
    color: #888;
    margin: 0;
}

/* Dashboard preview frame */

.preview-section {
    max-width: 920px;
    margin: 0 auto 4rem;
    padding: 0 2rem;
}

.preview-frame {
    background: white;
    border: 0.5px solid rgba(0, 0, 0, 0.1);
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
}

.preview-titlebar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border-bottom: 0.5px solid rgba(0, 0, 0, 0.08);
    margin-bottom: 12px;
}

.preview-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.preview-dot-red { background: #ff5f57; }
.preview-dot-yellow { background: #ffbd2e; }
.preview-dot-green { background: #28c840; }

.preview-url {
    font-size: 11px;
    color: #888;
    margin-left: 8px;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.preview-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 14px;
}

.preview-stat {
    background: #fafafa;
    border-radius: 8px;
    padding: 10px 12px;
}

.preview-stat-card-value {
    font-size: 10px;
    color: #6b6b6b;
    margin: 0 0 2px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.preview-stat-value {
    font-size: 18px;
    font-weight: 500;
    margin: 0;
}

.preview-stat-up { color: #0F6E56; }
.preview-stat-degraded { color: #BA7517; }
.preview-stat-down { color: #A32D2D; }

.preview-row {
    display: grid;
    grid-template-columns: 1.4fr 0.7fr 1.2fr 0.5fr 0.5fr;
    padding: 12px 14px;
    font-size: 12px;
    align-items: center;
    border-bottom: 0.5px solid rgba(0, 0, 0, 0.06);
}

.preview-row:last-child {
    border-bottom: none;
}

.preview-row-degraded {
    background: rgba(250, 238, 218, 0.3);
}

.preview-name p:first-child {
    margin: 0;
    font-weight: 500;
}

.preview-meta {
    margin: 1px 0 0;
    font-size: 10px;
    color: #6b6b6b;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.preview-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 1px 8px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 500;
    width: fit-content;
}

.preview-pill-up { background: #E1F5EE; color: #04342C; }
.preview-pill-degraded { background: #FAEEDA; color: #412402; }

.preview-spark {
    display: flex;
    gap: 1.5px;
}

.spark {
    width: 3px;
    height: 11px;
    border-radius: 1px;
}

.spark-up { background: #1D9E75; }
.spark-degraded { background: #EF9F27; }
.spark-down { background: #E24B4A; }

.preview-num {
    font-variant-numeric: tabular-nums;
    font-size: 11px;
}

/* Section primitives */

.section-narrow {
    padding: 4rem 2rem;
    max-width: 760px;
    margin: 0 auto;
}

.section-center {
    text-align: center;
}

.section-eyebrow {
    font-size: 12px;
    color: #6b6b6b;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin: 0 0 12px;
}

.section-heading {
    font-size: 32px;
    font-weight: 500;
    line-height: 1.2;
    margin: 0 0 1rem;
    letter-spacing: -0.01em;
}

.section-lede {
    font-size: 16px;
    color: #6b6b6b;
    max-width: 540px;
    margin: 0 auto;
}

/* Features grid */

.features-section {
    padding: 0 2rem 4rem;
    max-width: 1000px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.feature-card {
    background: white;
    border: 0.5px solid rgba(0, 0, 0, 0.08);
    border-radius: 14px;
    padding: 24px;
}

.feature-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
}

.feature-icon-blue { background: #E6F1FB; color: #185fa5; }
.feature-icon-green { background: #E1F5EE; color: #0F6E56; }
.feature-icon-pink { background: #FBEAF0; color: #993556; }
.feature-icon-purple { background: #EEEDFE; color: #534AB7; }
.feature-icon-amber { background: #FAEEDA; color: #854F0B; }
.feature-icon-gray { background: #F1EFE8; color: #444441; }

.feature-title {
    font-size: 15px;
    font-weight: 500;
    margin: 0 0 6px;
}

.feature-body {
    font-size: 13px;
    color: #6b6b6b;
    line-height: 1.6;
    margin: 0;
}

/* How it works */

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    text-align: left;
    margin-top: 2.5rem;
}

.step-number {
    font-size: 11px;
    color: #185fa5;
    font-weight: 500;
    margin: 0 0 8px;
    letter-spacing: 0.05em;
}

.step-title {
    font-size: 14px;
    font-weight: 500;
    margin: 0 0 6px;
}

.step-body {
    font-size: 13px;
    color: #6b6b6b;
    line-height: 1.6;
    margin: 0;
}

/* Final CTA */

.final-cta {
    padding: 4rem 2rem;
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
}

.final-cta-sub {
    font-size: 15px;
    color: #6b6b6b;
    margin: 12px 0 1.5rem;
}

/* Footer */

.landing-footer {
    padding: 2rem;
    border-top: 0.5px solid rgba(0, 0, 0, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
    flex-wrap: wrap;
    gap: 1rem;
}

.landing-footer-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 500;
}

.landing-footer-copyright {
    font-size: 12px;
    color: #888;
    font-weight: 400;
    margin-left: 8px;
}

.landing-footer-links {
    display: flex;
    gap: 1.5rem;
    font-size: 12px;
}

.landing-footer-links a {
    color: #6b6b6b;
    text-decoration: none;
}

.landing-footer-links a:hover {
    color: #1a1a1a;
}

/* Mobile responsiveness */

@media (max-width: 768px) {
    .hero-headline {
        font-size: 32px;
    }

    .features-grid,
    .steps-grid,
    .preview-stats {
        grid-template-columns: 1fr;
    }

    .landing-nav {
        gap: 0.75rem;
        font-size: 12px;
    }

    .preview-row {
        grid-template-columns: 1fr;
        gap: 6px;
    }
}


/* =========================================
   Settings — shared section primitives
   ========================================= */

.settings-section {
    margin-bottom: 2.5rem;
}

.settings-eyebrow {
    font-size: 11px;
    color: #6b6b6b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0 0 8px;
}

.settings-section-title {
    font-size: 16px;
    font-weight: 500;
    margin: 0 0 1.25rem;
}

.settings-card {
    background: white;
    border: 0.5px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    padding: 0 1.5rem;
    margin-bottom: 1rem;
}

.settings-row {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 1.5rem;
    padding: 16px 0;
    border-bottom: 0.5px solid rgba(0, 0, 0, 0.08);
    align-items: start;
}

.settings-row:last-child {
    border-bottom: none;
}

.settings-row-title {
    font-size: 13px;
    font-weight: 500;
    margin: 0 0 2px;
}

.settings-row-help {
    font-size: 12px;
    color: #6b6b6b;
    margin: 0;
    line-height: 1.5;
}

.settings-row-input {
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: flex-start;
}

.settings-input {
    width: 100%;
    max-width: 320px;
    padding: 8px 12px;
    font-size: 14px;
    color: #1a1a1a;
    background: white;
    border: 0.5px solid rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.settings-input:disabled {
    background: #f5f4ee;
    color: #6b6b6b;
    border-color: rgba(0, 0, 0, 0.08);
    cursor: not-allowed;
}

.settings-input:disabled:hover {
    border-color: rgba(0, 0, 0, 0.08); /* override the hover state */
}


.settings-input:hover {
    border-color: rgba(0, 0, 0, 0.35);
}

.settings-input:focus {
    border-color: #185fa5;
    box-shadow: 0 0 0 3px rgba(24, 95, 165, 0.15);
}

.settings-row-meta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: #6b6b6b;
    margin: 0;
}

.settings-row-meta.verified {
    color: #04342c;
}

.settings-row-meta.unverified {
    color: #6b6b6b;
}

.settings-inline-btn {
    width: fit-content;
}

/* =========================================
   Settings — action buttons
   ========================================= */

.settings-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 1rem;
}

.btn-ghost {
    padding: 7px 14px;
    font-size: 13px;
    background: transparent;
    color: #6b6b6b;
    border: 0.5px solid rgba(0, 0, 0, 0.15);
    border-radius: 6px;
    cursor: pointer;
}

.btn-ghost:hover {
    color: #1a1a1a;
    background: rgba(0, 0, 0, 0.02);
}


/* =========================================
   Settings layout — page header + inner nav
   ========================================= */

.settings-page {
    max-width: 100vw;
    /* lock the page to the viewport height so children can scroll independently */
    height: 100vh;
    display: flex;
    flex-direction: column;
}

.settings-header {
    margin-bottom: 1.75rem;
    flex-shrink: 0; /* header stays put, doesn't shrink when content scrolls */
}

.settings-header h1 {
    font-size: 18px;
    font-weight: 500;
    margin: 0 0 4px;
}

.settings-header p {
    font-size: 13px;
    color: #6b6b6b;
    margin: 0;
}

.settings-layout {
    display: flex;
    gap: 2rem;
    align-items: stretch; /* both columns fill available height */
    flex: 1;              /* take all remaining vertical space */
    min-height: 0;        /* critical for nested flex scroll containers */
}

.settings-nav {
    width: 180px;
    flex-shrink: 0;

    display: flex;
    flex-direction: column;
    gap: 2px;

    /* sidebar stays put — no scrolling, no sticky needed */
    overflow-y: auto;     /* only if nav itself overflows */
}


.settings-nav-item {
    /* the missing bit */
    display: block;

    padding: 6px 10px;
    border-radius: 6px;
    color: #6b6b6b;
    text-decoration: none;
    font-size: 13px;
    transition: background 0.1s, color 0.1s;
}


.settings-nav-item:hover {
    background: rgba(0, 0, 0, 0.03);
    color: #1a1a1a;
}

.settings-nav-item.active {
    background: #f5f4ee;
    color: #1a1a1a;
    font-weight: 500;
}

.settings-content {
    flex: 1;
    min-width: 0;
    overflow-y: auto;     /* THIS is what scrolls */
    padding-right: 0.5rem;
}


/* =========================================
   Settings section help text
   ========================================= */

.settings-section-help {
    font-size: 13px;
    color: #6b6b6b;
    margin: -0.5rem 0 1rem;
    max-width: 480px;
}

/* =========================================
   Channel rows — Notifications page
   ========================================= */

.channels-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 1rem;
}

.channel-row {
    display: grid;
    grid-template-columns: 32px 1fr auto auto;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: white;
    border: 0.5px solid rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}

.channel-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.channel-icon-email {
    background: #FBEAF0;
    color: #993556;
}

.channel-icon-slack {
    background: #EEEDFE;
    color: #534AB7;
    font-weight: 600;
}

.channel-icon-whatsapp {
    background: #DCF8C6;
    color: #534AB7;
    font-weight: 600;
}

.channel-icon-webhook {
    background: #F1EFE8;
    color: #444441;
}

.channel-icon-letter {
    font-size: 13px;
    font-weight: 600;
}

.channel-info {
    min-width: 0;
}

.channel-name {
    font-size: 13px;
    font-weight: 500;
    margin: 0;
}

.channel-detail {
    font-size: 12px;
    color: #6b6b6b;
    margin: 2px 0 0;
}

.channel-meta {
    min-width: 80px;
}

.channel-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: #6b6b6b;
}

.channel-status-active {
    color: #04342c;
}

.channel-button {
    padding: 5px 12px;
    font-size: 12px;
    color: #1a1a1a;
    background: transparent;
    border: 0.5px solid rgba(0, 0, 0, 0.15);
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.1s;
}

.channel-button:hover {
    background: rgba(0, 0, 0, 0.03);
}

/* =========================================
   Quiet hours card
   ========================================= */

.quiet-hours-card {
    padding: 1.25rem 1.5rem !important;
}

.quiet-hours-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 1rem;
    border-bottom: 0.5px solid rgba(0, 0, 0, 0.08);
}

.quiet-hours-times {
    display: flex;
    align-items: end;
    gap: 12px;
    padding-top: 1rem;
    transition: opacity 0.15s;
}

.quiet-hours-times.disabled {
    opacity: 0.5;
}

.time-input-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.time-input-group label {
    font-size: 11px;
    color: #6b6b6b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.time-input {
    max-width: 130px !important;
    font-variant-numeric: tabular-nums;
}

.time-separator {
    font-size: 14px;
    color: #6b6b6b;
    padding-bottom: 10px;
}

.time-timezone {
    font-size: 12px;
    color: #6b6b6b;
    padding-bottom: 10px;
    margin-left: auto;
}

/* =========================================
   Toggle switch
   ========================================= */

.toggle {
    width: 36px;
    height: 20px;
    background: #d3d1c7;
    border: none;
    border-radius: 10px;
    position: relative;
    cursor: pointer;
    padding: 0;
    transition: background 0.15s;
    flex-shrink: 0;
}

.toggle-on {
    background: #185fa5;
}

.toggle-thumb {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 16px;
    height: 16px;
    background: white;
    border-radius: 50%;
    transition: transform 0.15s;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.toggle-on .toggle-thumb {
    transform: translateX(16px);
}


.eyebrow-danger {
    color: #a32d2d !important;
}

.danger-card {
    border-color: rgba(163, 45, 45, 0.2);
}

.btn-danger {
    padding: 7px 14px;
    font-size: 13px;
    background: transparent;
    color: #a32d2d;
    border: 0.5px solid rgba(163, 45, 45, 0.3);
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
}

.btn-danger:hover {
    background: #fcebeb;
    border-color: #a32d2d;
}

/* =========================================
   Danger zone
   ========================================= */

.eyebrow-danger {
    color: #a32d2d !important;
}

.danger-card {
    border-color: rgba(163, 45, 45, 0.2) !important;
    padding: 0 !important;
}

.danger-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    padding: 1rem 1.5rem;
    border-bottom: 0.5px solid rgba(0, 0, 0, 0.08);
}

.danger-row:last-child {
    border-bottom: none;
}

.danger-row-destructive {
    background: rgba(252, 235, 235, 0.3);
}

.danger-row-info {
    flex: 1;
    min-width: 0;
}

.danger-row-title {
    font-size: 13px;
    font-weight: 500;
    margin: 0 0 4px;
}

.danger-row-title-red {
    color: #501313;
}

.danger-row-help {
    font-size: 12px;
    color: #6b6b6b;
    margin: 0;
    line-height: 1.5;
}

/* Danger buttons */

.btn-danger {
    padding: 7px 14px;
    font-size: 13px;
    background: transparent;
    color: #a32d2d;
    border: 0.5px solid rgba(163, 45, 45, 0.3);
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.1s, border-color 0.1s;
    flex-shrink: 0;
}

.btn-danger:hover {
    background: #fcebeb;
    border-color: #a32d2d;
}

.btn-danger-filled {
    padding: 7px 14px;
    font-size: 13px;
    background: #a32d2d;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.1s;
}

.btn-danger-filled:hover {
    background: #8a2424;
}

/* =========================================
   Modal — reusable confirmation dialog
   ========================================= */

.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    animation: modal-fade-in 0.15s ease-out;
    padding: 1rem;
}

.modal-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    max-width: 440px;
    width: 100%;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.12);
    animation: modal-slide-up 0.2s ease-out;
}

.modal-title {
    font-size: 16px;
    font-weight: 500;
    margin: 0 0 8px;
}

.modal-message {
    font-size: 13px;
    color: #6b6b6b;
    margin: 0 0 1.5rem;
    line-height: 1.6;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

@keyframes modal-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes modal-slide-up {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Respect reduced-motion preference */
@media (prefers-reduced-motion: reduce) {
    .modal-backdrop,
    .modal-card {
        animation: none;
    }
}

select.settings-input {
    appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'><path fill='%236b6b6b' d='M6 9L1 4h10z'/></svg>");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 32px;
    cursor: pointer;
    max-width: 320px;
}


/* =========================================
   Mobile responsiveness — landing navbar
   ========================================= */

@media (max-width: 768px) {
    .landing-header {
        padding: 0.75rem 1rem;
        gap: 0.5rem;
    }

    .landing-brand {
        font-size: 15px;
        gap: 6px;
        flex-shrink: 0;
    }

    .landing-brand svg {
        width: 20px;
        height: 20px;
    }

    /* Tighten nav spacing and prevent wrapping */
    .landing-nav {
        gap: 0.5rem;
        font-size: 13px;
        flex-shrink: 0;
        flex-wrap: nowrap;
    }

    /* Hide the section anchors — keep Sign in + CTA only */
    .landing-nav > a:not(.landing-nav-signin):not(.landing-nav-cta) {
        display: none;
    }

    .landing-nav-signin,
    .landing-nav-cta {
        white-space: nowrap;
    }

    .landing-nav-cta {
        padding: 6px 12px;
    }
}

@media (max-width: 480px) {
    .landing-header {
        padding: 0.625rem 0.875rem;
    }

    /* On very small screens, drop "Sign in" — the CTA is what matters */
    .landing-nav-signin {
        display: none;
    }

    .landing-brand {
        font-size: 14px;
    }
}


/* ---------- Backdrop ---------- */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    z-index: 1000;
    animation: modal-fade-in 0.15s ease-out;
}

/* ---------- Modal shell ---------- */
.modal {
    width: 100%;
    max-width: 520px;
    max-height: calc(100vh - 4rem);
    background: #ffffff;
    border-radius: 12px;
    border: 0.5px solid rgba(0, 0, 0, 0.08);
    box-shadow:
        0 20px 25px -5px rgba(0, 0, 0, 0.15),
        0 10px 10px -5px rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: modal-slide-up 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- Header ---------- */
.modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 20px 24px 16px;
    border-bottom: 0.5px solid rgba(0, 0, 0, 0.08);
}

.modal-header h2 {
    font-size: 18px;
    font-weight: 500;
    margin: 0 0 4px;
    color: #111111;
}

.modal-header p {
    font-size: 13px;
    color: #6b6b6b;
    margin: 0;
}

.modal-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 6px;
    color: #6b6b6b;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    transition: background-color 0.15s, color 0.15s;
}

.modal-close:hover {
    background: rgba(0, 0, 0, 0.05);
    color: #111111;
}

/* ---------- Body ---------- */
.modal-body {
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    overflow-y: auto;
}

/* ---------- Form fields ---------- */
.field {
    display: flex;
    flex-direction: column;
}

.field label {
    font-size: 13px;
    font-weight: 500;
    color: #111111;
    margin: 0 0 6px;
}

.field input[type="text"],
.field input[type="url"],
.field input[type="number"],
.field select {
    width: 100%;
    height: 36px;
    padding: 0 12px;
    font-size: 14px;
    font-family: inherit;
    color: #111111;
    background: #ffffff;
    border: 0.5px solid rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.field input[type="text"]::placeholder {
    color: #a0a0a0;
}

.field input[type="text"]:hover,
.field select:hover {
    border-color: rgba(0, 0, 0, 0.25);
}

.field input[type="text"]:focus,
.field select:focus {
    border-color: #185FA5;
    box-shadow: 0 0 0 3px rgba(24, 95, 165, 0.15);
}

.field-hint {
    font-size: 12px;
    color: #888888;
    margin: 6px 0 0;
}

.field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

/* ---------- Toggle card ---------- */
.field-toggle {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px;
    background: #f7f7f5;
    border-radius: 8px;
}

.field-toggle input[type="checkbox"] {
    margin-top: 2px;
    width: 16px;
    height: 16px;
    accent-color: #185FA5;
    cursor: pointer;
}

.field-toggle label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #111111;
    margin: 0 0 2px;
    cursor: pointer;
}

.field-toggle p {
    font-size: 12px;
    color: #6b6b6b;
    margin: 0;
}

/* ---------- Footer ---------- */
.modal-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    padding: 16px 24px;
    border-top: 0.5px solid rgba(0, 0, 0, 0.08);
    background: #fafaf8;
}

/* ---------- Buttons ---------- */
.btn-secondary,
.btn-primary {
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 500;
    font-family: inherit;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.15s, border-color 0.15s, opacity 0.15s;
}

.btn-secondary {
    background: #ffffff;
    color: #111111;
    border: 0.5px solid rgba(0, 0, 0, 0.15);
}

.btn-secondary:hover {
    background: #f5f5f3;
    border-color: rgba(0, 0, 0, 0.25);
}

.btn-primary {
    background: #185FA5;
    color: #ffffff;
    border: 0.5px solid #185FA5;
}

.btn-primary:hover {
    background: #134e88;
    border-color: #134e88;
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ---------- Animations ---------- */
@keyframes modal-fade-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes modal-slide-up {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ---------- Mobile ---------- */
@media (max-width: 600px) {
    .modal-backdrop {
        padding: 0;
        align-items: flex-end;
    }
    
    .modal {
        max-width: 100%;
        max-height: 90vh;
        border-radius: 16px 16px 0 0;
        animation: modal-slide-up-mobile 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    }
    
    .field-row {
        grid-template-columns: 1fr;
    }
}

@keyframes modal-slide-up-mobile {
    from {
        opacity: 0;
        transform: translateY(100%);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 1rem;
}

.pagination-info {
    font-size: 14px;
    color: #8a8a8a;
}

.pagination-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.page-btn {
    height: 40px;
    min-width: 40px;
    padding: 0 8px;
    border: 1px solid #2e2e2e;
    border-radius: 10px;
    color: black;
    font-size: 14px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.12s ease, border-color 0.12s ease;
}

.page-btn:hover:not(:disabled):not(.page-btn-active) {
    background: grey;
    border-color: #3a3a3a;
}

.page-btn-active {
    background: grey;
    border-color: black;
    color: #fff;
    font-weight: 500;
}

.page-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.page-btn-icon {
    font-size: 18px;
}


.empty-state {
    min-height: 55vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 12px;
    padding: 2rem;
}

.empty-state-title {
    font-size: 18px;
    font-weight: 500;
    margin: 0;
}

.empty-state-text {
    font-size: 14px;
    color: #8a8a8a;
    margin: 0 0 8px;
    max-width: 360px;
}

/* ---------- Section headings ---------- */

.section-heading {
  /*display: flex;*/
  align-items: center;
  gap: 8px;
  margin: 1.75rem 0 0.75rem;
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #6b6b6b;
}

.section-heading-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #a32d2d;
}

.section-heading-dot-muted {
  background: #b4b2a9;
}

/* ---------- Incident table ---------- */

.incident-table {
  background: #ffffff;
  border: 0.5px solid rgba(0, 0, 0, 0.12);
  border-radius: 12px;
  overflow: hidden;
}

/* Shared grid: Monitor | Status | Started | Cause | Duration */
.incident-table-header,
.incident-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr 1fr;
  gap: 12px;
  align-items: center;
}

.incident-table-header {
  padding: 10px 16px;
  background: #f7f7f5;
  font-size: 12px;
  color: #6b6b6b;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.incident-table-header .text-right {
  text-align: right;
}

.incident-row-link {
  display: block;
  text-decoration: none;
  color: inherit;
  border-top: 0.5px solid rgba(0, 0, 0, 0.08);
  transition: background 0.12s ease;
}

.incident-row-link:hover {
  background: #fafaf8;
}

.incident-row {
  padding: 14px 16px;
  font-size: 14px;
}

/* Resolved rows visually de-emphasised */
.incident-row-resolved {
  color: #6b6b6b;
}

.incident-row-resolved .incident-monitor-name,
.incident-row-resolved .incident-cell-duration {
  color: #6b6b6b;
}

/* ---------- Cells ---------- */

.incident-cell {
  min-width: 0;
}

.incident-cell-muted {
  color: #6b6b6b;
}

.incident-cell-monitor {
  overflow: hidden;
}

.incident-monitor-name {
  margin: 0;
  font-weight: 500;
  color: #1a1a1a;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.incident-monitor-id {
  margin: 2px 0 0;
  font-size: 12px;
  color: #9a9a96;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.incident-cell-cause {
  min-width: 0;
}

.incident-cause-category {
  margin: 0;
  font-size: 11px;
  color: #6b6b6b;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.incident-cause-detail {
  margin: 0;
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.incident-cell-duration {
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-weight: 500;
}

/* ---------- Status pill ---------- */

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
}

.status-pill-down {
  background: #fcebeb;
  color: #a32d2d;
}

.status-pill-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

/* ---------- Utility ---------- */

.text-right {
  text-align: right;
}


/* ============================================================
   Heatmap page
   ============================================================ */
.dashboard,
.incidents-page,
.heatmap-page,
.settings-page {
    padding: 1.25rem 1.5rem;
}

/* ---------- Range selector ---------- */

.heatmap-range-select {
  font-size: 13px;
  padding: 6px 10px;
}

/* ---------- Stat cards (with subtitle row) ----------
   Reuses the .stat-card / .stat-card-label / .stat-card-value classes from
   incidents.css. These are additions for the two cards that have a smaller
   value plus a colored sub-line ("Worst hour" / "Worst day"). */

.stat-card-value-sm {
  font-size: 16px;
  font-weight: 500;
  color: #1a1a1a;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stat-card-sub {
  font-size: 12px;
  color: #6b6b6b;
  margin-top: 2px;
}

.stat-card-sub-danger {
  color: #a32d2d;
}

/* ---------- Heatmap card ---------- */

.heatmap-card {
  background: #ffffff;
  border: 0.5px solid rgba(0, 0, 0, 0.12);
  border-radius: 12px;
  padding: 1.25rem;
  margin-top: 1.75rem;
}

/* ---------- Heatmap grid layout ----------

   Two columns:
   ┌─────────┬─────────────────────────────┐
   │ (empty) │ hour axis (0..23)           │
   ├─────────┼─────────────────────────────┤
   │ days    │ cells (7 rows × 24 cols)    │
   └─────────┴─────────────────────────────┘
*/

.heatmap-grid {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 12px;
}

.heatmap-hours {
  display: grid;
  grid-template-columns: repeat(24, 1fr);
  gap: 3px;
  font-size: 10px;
  color: #9a9a96;
  padding-bottom: 6px;
}

.heatmap-hour-label {
  text-align: center;
}

.heatmap-days {
  display: grid;
  grid-template-rows: repeat(7, 1fr);
  gap: 3px;
  font-size: 11px;
  color: #6b6b6b;
  align-items: center;
  text-align: right;
  padding-right: 4px;
}

.heatmap-day-label {
  line-height: 1;
}

.heatmap-cells {
  display: grid;
  grid-template-rows: repeat(7, 1fr);
  gap: 3px;
}

.heatmap-row {
  display: grid;
  grid-template-columns: repeat(24, 1fr);
  gap: 3px;
}

/* ---------- Cells ---------- */

.hm-cell {
  aspect-ratio: 1;
  border-radius: 2px;
  cursor: pointer;
  transition: transform 0.08s ease, outline 0.08s ease;
  outline: 0 solid transparent;
}

.hm-cell:hover {
  transform: scale(1.6);
  outline: 2px solid #1a1a1a;
  z-index: 2;
  position: relative;
}

/* Uptime color stops — quantised gradient, not continuous.
   The eye can't distinguish "99.3% green" from "99.6% green", so we bucket. */
.u-100 { background: #639922; }
.u-99  { background: #97C459; }
.u-98  { background: #C0DD97; }
.u-95  { background: #EAF3DE; }
.u-90  { background: #FAEEDA; }
.u-80  { background: #FAC775; }
.u-50  { background: #EF9F27; }
.u-bad { background: #E24B4A; }
.u-na  { background: #F1EFE8; }

/* ---------- Legend ---------- */

.heatmap-legend {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 0.5px solid rgba(0, 0, 0, 0.08);
}

.heatmap-legend-scale {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #6b6b6b;
}

.heatmap-legend-label {
  margin: 0 4px;
}

.heatmap-legend-divider {
  width: 1px;
  height: 14px;
  background: rgba(0, 0, 0, 0.12);
  margin: 0 8px;
}

.heatmap-legend-hint {
  font-size: 12px;
  color: #9a9a96;
}

.hm-swatch {
  width: 14px;
  height: 14px;
  border-radius: 2px;
  display: inline-block;
}

/* ---------- Worst windows ---------- */

.worst-windows-card {
  background: #ffffff;
  border: 0.5px solid rgba(0, 0, 0, 0.12);
  border-radius: 12px;
  overflow: hidden;
  margin-top: 0.75rem;
}

.worst-window-row {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 12px;
  padding: 14px 16px;
  align-items: center;
  font-size: 14px;
  border-top: 0.5px solid rgba(0, 0, 0, 0.08);
}

.worst-window-row:first-child {
  border-top: none;
}

.worst-window-when {
  font-weight: 500;
}

.worst-window-affected {
  color: #6b6b6b;
}

.worst-window-pct {
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.worst-window-pct-danger {
  color: #a32d2d;
}

.worst-window-pct-warning {
  color: #ba7517;
}

.worst-window-downtime {
  text-align: right;
  color: #6b6b6b;
  font-variant-numeric: tabular-nums;
}

/* ---------- Section label (matches existing pattern from dashboard.rs) ---------- */

.section-label {
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #6b6b6b;
  margin: 1.75rem 0 0;
  margin-bottom: 10px;
}

/*  OPT Page */

.icon-wrap {
    width: 56px;
    height: 56px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: rgb(23 92 161 / 18%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-email {
    font-weight: 400;
    color: #f1efe8;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 12px;
    background: #e9e9e2;
    padding: 1px 5px;
    border-radius: 6px;
    display: inline-block;
    margin-bottom: 32px;
}

.subtitle {
    font-size: 14px;
    color: #b4b2a9;
    margin: 0 0 4px;
}

.otp-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .8em;
}

.otp-digit {
    width: 49px;
    height: 56px;
    border: .5px solid grey;
    text-align: center;
    font-size: 22px;
    font-weight: 500px;
}

.status {
    color: #888780;
    font-size: 13px;
    min-height: 20px;
    margin: 8px 0 24px;
    transition: color 0.15s ease;
}

.btn-verify-btn {
    width: 100%;
    padding: 13px 20px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 500;
    color: white;
    background: var(--accent);
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: background 0.15s ease, transform 0.05s ease;
}

.divider {
    height: 1px;
    background: var(--border);
    margin: 28px 0 20px;
}

.filter-wrapper,
.dashboard-actions,
.monitor-detail-actions {
    position: relative;
}


/* ============================================
   Filter wrapper — positioning anchor
   ============================================ */
.filter-wrapper {
  position: relative;
  display: inline-block;
}

/* ============================================
   Filter button (the trigger)
   ============================================ */
.filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.filter-btn .ti {
  font-size: 16px;
}

.filter-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  margin-left: 2px;
  background: #e6f1fb;
  color: #185fa5;
  border-radius: 9px;
  font-size: 11px;
  font-weight: bold;
  line-height: 1;
}

/* ============================================
   Dropdown panel
   ============================================ */
.filter-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 320px;
  background: #ffffff;
  border: 0.5px solid rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08),
              0 2px 6px rgba(0, 0, 0, 0.04);
  z-index: 50;
  overflow: hidden;

  /* Subtle entry animation */
  animation: filter-panel-in 120ms ease-out;
  transform-origin: top right;
}

@keyframes filter-panel-in {
  from {
    opacity: 0;
    transform: translateY(-4px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ============================================
   Panel header
   ============================================ */
.filter-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 0.5px solid rgba(0, 0, 0, 0.08);
}

.filter-panel-title {
  font-size: 14px;
  font-weight: 500;
  color: #1a1a1a;
}

.filter-close-btn {
  background: none;
  border: none;
  padding: 4px;
  margin: -4px;
  cursor: pointer;
  color: #888;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: background 120ms ease, color 120ms ease;
}

.filter-close-btn:hover {
  background: rgba(0, 0, 0, 0.04);
  color: #1a1a1a;
}

.filter-close-btn .ti {
  font-size: 16px;
}

/* ============================================
   Panel body
   ============================================ */
.filter-panel-body {
  padding: 14px 16px;
  max-height: 360px;
  overflow-y: auto;
}

.filter-section {
  margin-bottom: 16px;
}

.filter-section:last-child {
  margin-bottom: 0;
}

.filter-section-label {
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #999;
  margin: 0 0 8px;
  display: block;
}

/* ============================================
   Chips — base + neutral
   ============================================ */
.filter-chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  background: #ffffff;
  color: #666;
  border: 0.5px solid rgba(0, 0, 0, 0.15);
  border-radius: 14px;
  font-size: 12px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: border-color 120ms ease, background 120ms ease, color 120ms ease;
  user-select: none;
}

.filter-chip:hover {
  border-color: rgba(0, 0, 0, 0.3);
  color: #1a1a1a;
}

.filter-chip:focus-visible {
  outline: none;
  border-color: #378add;
  box-shadow: 0 0 0 3px rgba(55, 138, 221, 0.15);
}

/* Active state for neutral chips (e.g. protocols) */
.filter-chip.is-active {
  background: #e6f1fb;
  color: #185fa5;
  border-color: #b5d4f4;
}

.filter-chip.is-active:hover {
  border-color: #85b7eb;
}

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

/* ============================================
   Status chips — coloured active states
   ============================================ */
.chip-status.chip-up.is-active {
  background: #e1f5ee;
  color: #0f6e56;
  border-color: #9fe1cb;
}
.chip-status.chip-up.is-active:hover {
  border-color: #5dcaa5;
}

.chip-status.chip-degraded.is-active {
  background: #faeeda;
  color: #854f0b;
  border-color: #fac775;
}
.chip-status.chip-degraded.is-active:hover {
  border-color: #ef9f27;
}

.chip-status.chip-down.is-active {
  background: #fcebeb;
  color: #a32d2d;
  border-color: #f7c1c1;
}
.chip-status.chip-down.is-active:hover {
  border-color: #f09595;
}

.chip-status.chip-pending.is-active {
  background: #f1efe8;
  color: #5f5e5a;
  border-color: #d3d1c7;
}
.chip-status.chip-pending.is-active:hover {
  border-color: #b4b2a9;
}

/* ============================================
   Text input
   ============================================ */
.filter-input {
  width: 100%;
  box-sizing: border-box;
  padding: 8px 12px;
  background: #ffffff;
  border: 0.5px solid rgba(0, 0, 0, 0.15);
  border-radius: 8px;
  font-size: 13px;
  font-family: inherit;
  color: #1a1a1a;
  transition: border-color 120ms ease, box-shadow 120ms ease;
}

.filter-input::placeholder {
  color: #aaa;
}

.filter-input:hover {
  border-color: rgba(0, 0, 0, 0.3);
}

.filter-input:focus {
  outline: none;
  border-color: #378add;
  box-shadow: 0 0 0 3px rgba(55, 138, 221, 0.15);
}

/* ============================================
   Panel footer
   ============================================ */
.filter-panel-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px;
  border-top: 0.5px solid rgba(0, 0, 0, 0.08);
  background: #fafaf8;
}

.filter-clear-btn {
  background: none;
  border: none;
  font-size: 13px;
  font-weight: 500;
  color: #666;
  cursor: pointer;
  padding: 4px 2px;
  font-family: inherit;
  transition: color 120ms ease;
}

.filter-clear-btn:hover {
  color: #1a1a1a;
}

.filter-apply-btn {
  padding: 6px 14px;
  background: #1a1a1a;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: background 120ms ease, transform 80ms ease;
}

.filter-apply-btn:hover {
  background: #000;
}

.filter-apply-btn:active {
  transform: scale(0.97);
}

/* ============================================
   Scrollbar inside the panel body
   ============================================ */
.filter-panel-body::-webkit-scrollbar {
  width: 6px;
}

.filter-panel-body::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.15);
  border-radius: 3px;
}

.filter-panel-body::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.25);
}

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

/* ============================================
   Responsive — narrow viewports
   ============================================ */
@media (max-width: 480px) {
  .filter-panel {
    width: calc(100vw - 32px);
    right: 0;
  }
}


/* ============================================
   Backdrop — dims the page behind the filter
   ============================================ */
.filter-backdrop {
  position: fixed;
  inset: 0;                          /* top/right/bottom/left: 0 */
  background: rgba(0, 0, 0, 0.4);
  z-index: 40;                       /* below the panel (50), above page content */
  animation: filter-backdrop-in 150ms ease-out;
}

@keyframes filter-backdrop-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}


.ad-carousel {
  background: #ffffff;
  border: 0.5px solid rgba(0, 0, 0, 0.08);
  border-radius: 10px;
  padding: 10px;
  margin: 0;
  margin-bottom: 10px;
}

.ad-carousel-viewport {
  overflow: hidden;
}

.ad-carousel-track {
  display: flex;
  transition: transform 320ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.ad-carousel-slide {
  box-sizing: border-box;
  padding-right: 2px;
}

.ad-slide-label {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 8px;
}

.ad-slide-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 7px;
  margin-bottom: 8px;
}

.ad-slide-icon .ti {
  font-size: 14px;
}

.ad-slide-image-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.ad-slide-image {
  flex: 0 0 50px;
  height: 50px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ad-slide-image .ti {
  font-size: 20px;
  color: #ffffff;
}

.ad-slide-text {
  flex: 1;
  min-width: 0;
}

.ad-slide-title {
  font-size: 12px;
  font-weight: 500;
  margin: 0 0 2px;
  color: #1a1a1a;
  line-height: 1.3;
}

.ad-slide-body {
  font-size: 10px;
  color: #888;
  margin: 0 0 10px;
  line-height: 1.4;
}

.ad-slide-cta {
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 5px 10px;
  color: #ffffff;
  border: none;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 500;
  font-family: inherit;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.ad-slide-cta:hover {
  opacity: 0.92;
}

.ad-carousel-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
  margin-top: 10px;
  padding-top: 8px;
  border-top: 0.5px solid rgba(0, 0, 0, 0.06);
}

.ad-carousel-arrow {
  background: none;
  border: none;
  padding: 4px;
  margin: 0 2px;
  cursor: pointer;
  color: #aaa;
  display: inline-flex;
  align-items: center;
  border-radius: 4px;
  transition: color 150ms ease, background 150ms ease;
}

.ad-carousel-arrow:hover {
  color: #1a1a1a;
  background: rgba(0, 0, 0, 0.04);
}

.ad-carousel-arrow .ti {
  font-size: 14px;
}

.ad-carousel-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #ddd;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background 200ms ease, width 200ms ease, border-radius 200ms ease;
}

.ad-carousel-dot.is-active {
  background: #1a1a1a;
  width: 16px;
  border-radius: 3px;
}


/* ============================================
   Sponsors section
   ============================================ */
.sponsors-section {
  max-width: 960px;
  margin: 0 auto;
  padding: 4rem 1.5rem 5rem;
  text-align: center;
}

.sponsors-heading {
  font-size: 22px;
  font-weight: 500;
  margin: 0.5rem 0 2.5rem;
  color: #1a1a1a;
  line-height: 1.3;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}

.sponsors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-bottom: 2rem;
}

/* ============================================
   Sponsor card
   ============================================ */
.sponsor-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 24px 20px;
  background: #ffffff;
  border: 0.5px solid rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  transition: border-color 150ms ease, transform 150ms ease, box-shadow 150ms ease;
}

.sponsor-card:hover {
  border-color: rgba(0, 0, 0, 0.25);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.sponsor-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: #f1efe8;
  color: #1a1a1a;
  border-radius: 10px;
  margin-bottom: 14px;
}

.sponsor-name {
  font-size: 14px;
  font-weight: 500;
  margin: 0 0 2px;
  color: #1a1a1a;
}

.sponsor-tagline {
  font-size: 12px;
  color: #888;
  margin: 0;
}

/* ============================================
   Tier accents — subtle, not loud
   ============================================ */
.sponsor-card-platinum .sponsor-logo {
  background: #e6f1fb;
  color: #185fa5;
}

.sponsor-card-gold .sponsor-logo {
  background: #faeeda;
  color: #854f0b;
}

/* ============================================
   Bottom CTA
   ============================================ */
.sponsors-cta {
  font-size: 13px;
  color: #888;
  margin: 0;
}

.sponsors-cta-link {
  color: #185fa5;
  text-decoration: none;
  font-weight: 500;
}

.sponsors-cta-link:hover {
  text-decoration: underline;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 640px) {
  .sponsors-section {
    padding: 3rem 1rem 3.5rem;
  }

  .sponsors-heading {
    font-size: 20px;
    margin-bottom: 2rem;
  }

  .sponsors-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}


.edit-modal-body {
    padding: 15px 17px;
}

.error-banner {
    background-color: #e9a17178;
    border-left: 4px solid red;
    padding: 8px 8px;
    margin-bottom: 15px;
}

.error-banner > p {
    margin: 5px;
}


.recent-check-table-header {
    display: flex;
    justify-content: space-between;
}

.recent-check-table-header * {
    margin: 0;
    padding: 5px;
}


.password-field { position: relative; }
.password-field input { width: 100%; padding-right: 2.5rem; }
.password-field button {
    position: absolute; right: 0.5rem; top: 50%;
    transform: translateY(-50%);
    background: none; border: none; cursor: pointer;
}