/* =====================================================================
   WebsiteState — design system
   ---------------------------------------------------------------------
   Bootstrap 5 handles layout, grid and components. This file supplies the
   brand layer on top: the "vital signs" palette, the score gauge, the
   pulse-line hero and the checklist rows.

   The core visual idea: a website has vital signs like a patient does.
   Each of the three tools owns one accent colour, and every score is shown
   on the same green -> red band, so a number always means the same thing
   wherever it appears.
   ===================================================================== */

:root {
    /* Base surfaces */
    --ws-ink:        #0a1020;
    --ws-ink-soft:   #131c33;
    --ws-ink-line:   #22304f;
    --ws-paper:      #ffffff;
    --ws-paper-soft: #f5f7fb;
    --ws-border:     #e4e9f2;

    /* Text */
    --ws-text:       #16203a;
    --ws-muted:      #64708c;
    --ws-on-dark:    #eaf0ff;
    --ws-on-dark-mut:#93a2c4;

    /* One accent colour per vital sign */
    --ws-pulse:      #00d3a7;   /* uptime      */
    --ws-speed:      #ffb020;   /* performance */
    --ws-visibility: #7c5cff;   /* SEO         */
    --ws-brand:      #2f6bff;

    /* Score bands — shared by every gauge, pill and bar in the app */
    --ws-thriving:   #0fa958;
    --ws-healthy:    #5bbf3a;
    --ws-stable:     #e5a50a;
    --ws-strained:   #f0733a;
    --ws-critical:   #e0384f;

    --ws-radius:     14px;
    --ws-radius-lg:  22px;
    --ws-shadow:     0 1px 2px rgba(16, 32, 64, .04), 0 8px 24px rgba(16, 32, 64, .06);
    --ws-shadow-lg:  0 2px 4px rgba(16, 32, 64, .05), 0 24px 48px rgba(16, 32, 64, .1);
    --ws-mono:       ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
}

/* ---------------------------------------------------------------------
   Base
   ------------------------------------------------------------------- */
body {
    font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
    color: var(--ws-text);
    background: var(--ws-paper);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .display-1, .display-2, .display-3, .display-4 {
    font-weight: 700;
    letter-spacing: -.022em;
}

.ws-mono { font-family: var(--ws-mono); font-variant-numeric: tabular-nums; }

a { color: var(--ws-brand); text-decoration-thickness: 1px; text-underline-offset: 2px; }

/* Focus ring — visible for keyboard users, invisible for mouse clicks. */
:focus-visible {
    outline: 3px solid rgba(47, 107, 255, .45);
    outline-offset: 2px;
    border-radius: 6px;
}

.ws-eyebrow {
    font-size: .74rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--ws-muted);
}

.ws-section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.ws-section--soft { background: var(--ws-paper-soft); }

/* ---------------------------------------------------------------------
   Navigation
   ------------------------------------------------------------------- */
.ws-nav {
    background: rgba(255, 255, 255, .88);
    backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid var(--ws-border);
}

.ws-logo {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    font-weight: 800;
    font-size: 1.14rem;
    letter-spacing: -.03em;
    color: var(--ws-text) !important;
    text-decoration: none;
}

.ws-logo__mark {
    display: grid;
    place-items: center;
    width: 34px; height: 34px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--ws-brand), var(--ws-visibility));
    color: #fff;
    box-shadow: 0 4px 12px rgba(47, 107, 255, .3);
}

.ws-logo__state { color: var(--ws-brand); }

.ws-nav .nav-link {
    font-weight: 550;
    font-size: .95rem;
    color: var(--ws-text);
    border-radius: 8px;
    padding: .45rem .8rem !important;
}
.ws-nav .nav-link:hover { background: var(--ws-paper-soft); }
.ws-nav .nav-link.active { color: var(--ws-brand); background: rgba(47, 107, 255, .08); }

/* ---------------------------------------------------------------------
   Hero — the "vital signs monitor" look
   ------------------------------------------------------------------- */
.ws-hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(1000px 460px at 15% -10%, rgba(0, 211, 167, .16), transparent 60%),
        radial-gradient(900px 420px at 88% 0%, rgba(124, 92, 255, .18), transparent 60%),
        linear-gradient(180deg, var(--ws-ink) 0%, #0d1730 100%);
    color: var(--ws-on-dark);
    padding: clamp(3.5rem, 9vw, 6.5rem) 0 clamp(3rem, 7vw, 5rem);
}

/* Faint grid, like a heart-rate monitor's graph paper. */
.ws-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px);
    background-size: 46px 46px;
    mask-image: linear-gradient(180deg, rgba(0,0,0,.85), transparent 85%);
    pointer-events: none;
}

.ws-hero > .container { position: relative; z-index: 2; }
.ws-hero p { color: var(--ws-on-dark-mut); }

.ws-hero__title {
    font-size: clamp(2.1rem, 5.6vw, 3.75rem);
    line-height: 1.06;
    margin-bottom: 1rem;
}

/* The rotating word: "Know your website state / performance / SEO / uptime" */
.ws-rotator {
    display: inline-block;
    position: relative;
    min-width: 8.5ch;
    text-align: left;
    color: var(--ws-pulse);
}

.ws-rotator__word {
    display: inline-block;
    animation: wsWordIn .5s cubic-bezier(.22, 1, .36, 1);
    border-bottom: 3px dashed rgba(255, 255, 255, .18);
    padding-bottom: 2px;
}

@keyframes wsWordIn {
    from { opacity: 0; transform: translateY(.45em) rotateX(-35deg); }
    to   { opacity: 1; transform: none; }
}

/* The EKG trace under the headline. Stroke is drawn, then travels. */
.ws-pulse-line { display: block; width: 100%; height: 64px; margin: .25rem 0 1.75rem; }
.ws-pulse-line path {
    fill: none;
    stroke: var(--ws-pulse);
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    filter: drop-shadow(0 0 6px rgba(0, 211, 167, .55));
    stroke-dasharray: 1400;
    animation: wsTrace 4.5s linear infinite;
}
@keyframes wsTrace {
    from { stroke-dashoffset: 1400; }
    to   { stroke-dashoffset: 0; }
}
.ws-pulse-line .ws-pulse-line__base {
    stroke: rgba(255, 255, 255, .1);
    stroke-width: 1.5;
    filter: none;
    animation: none;
    stroke-dasharray: none;
}

/* Respect a visitor's reduced-motion preference. */
@media (prefers-reduced-motion: reduce) {
    .ws-pulse-line path,
    .ws-rotator__word,
    .ws-gauge__arc { animation: none !important; transition: none !important; }
}

/* ---------------------------------------------------------------------
   Scan form
   ------------------------------------------------------------------- */
.ws-scanbox {
    background: rgba(255, 255, 255, .07);
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: var(--ws-radius-lg);
    padding: .5rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, .3);
}
.ws-scanbox .form-control {
    background: transparent;
    border: 0;
    color: var(--ws-on-dark);
    font-size: 1.03rem;
    padding: .85rem 1rem;
    box-shadow: none;
}
.ws-scanbox .form-control::placeholder { color: rgba(234, 240, 255, .45); }
.ws-scanbox .form-control:focus { color: #fff; box-shadow: none; }

/* Light variant used on the tool pages. */
.ws-scanbox--light {
    background: var(--ws-paper);
    border: 1px solid var(--ws-border);
    box-shadow: var(--ws-shadow);
}
.ws-scanbox--light .form-control { color: var(--ws-text); }
.ws-scanbox--light .form-control::placeholder { color: var(--ws-muted); }

.ws-btn-scan {
    background: linear-gradient(135deg, var(--ws-brand), #5a4dff);
    border: 0;
    color: #fff;
    font-weight: 650;
    border-radius: calc(var(--ws-radius-lg) - 6px);
    padding: .85rem 1.6rem;
    white-space: nowrap;
    transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}
.ws-btn-scan:hover:not(:disabled) {
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(47, 107, 255, .35);
}
.ws-btn-scan:disabled { opacity: .65; cursor: progress; }

/* ---------------------------------------------------------------------
   Score gauge
   ------------------------------------------------------------------- */
.ws-gauge { position: relative; display: inline-grid; place-items: center; }
.ws-gauge svg { transform: rotate(-90deg); }

.ws-gauge__track { stroke: var(--ws-border); }
.ws-gauge__arc {
    stroke-linecap: round;
    transition: stroke-dashoffset 1.1s cubic-bezier(.2, .8, .2, 1);
}

.ws-gauge__value {
    position: absolute;
    display: grid;
    place-items: center;
    line-height: 1;
}
.ws-gauge__number {
    font-family: var(--ws-mono);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    letter-spacing: -.04em;
}
.ws-gauge__label {
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--ws-muted);
    margin-top: .35rem;
}

/* On the dark hero the gauge needs a lighter track and label. */
.ws-on-dark .ws-gauge__track { stroke: rgba(255, 255, 255, .13); }
.ws-on-dark .ws-gauge__label { color: var(--ws-on-dark-mut); }
.ws-on-dark .ws-gauge__number { color: #fff; }

/* ---------------------------------------------------------------------
   Vital cards — the three tools
   ------------------------------------------------------------------- */
.ws-vital {
    position: relative;
    height: 100%;
    background: var(--ws-paper);
    border: 1px solid var(--ws-border);
    border-radius: var(--ws-radius-lg);
    padding: 1.75rem;
    box-shadow: var(--ws-shadow);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
    text-decoration: none;
    color: inherit;
    display: block;
    overflow: hidden;
}
.ws-vital:hover {
    transform: translateY(-3px);
    box-shadow: var(--ws-shadow-lg);
    border-color: transparent;
    color: inherit;
}

/* Coloured top edge identifies which vital the card belongs to. */
.ws-vital::after {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 4px;
    background: var(--ws-accent, var(--ws-brand));
}

.ws-vital--pulse      { --ws-accent: var(--ws-pulse); }
.ws-vital--speed      { --ws-accent: var(--ws-speed); }
.ws-vital--visibility { --ws-accent: var(--ws-visibility); }

.ws-vital__icon {
    display: grid;
    place-items: center;
    width: 46px; height: 46px;
    border-radius: 12px;
    font-size: 1.25rem;
    margin-bottom: 1.1rem;
    color: var(--ws-accent, var(--ws-brand));
    background: color-mix(in srgb, var(--ws-accent, var(--ws-brand)) 12%, transparent);
}

.ws-vital__name {
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--ws-accent, var(--ws-brand));
}

.ws-vital h3 { font-size: 1.2rem; margin: .35rem 0 .5rem; }
.ws-vital p  { color: var(--ws-muted); font-size: .94rem; margin-bottom: 1rem; }

.ws-vital__cta { font-weight: 600; font-size: .92rem; color: var(--ws-brand); }

/* ---------------------------------------------------------------------
   Checklist rows
   ------------------------------------------------------------------- */
.ws-checklist { display: grid; gap: .6rem; }

.ws-check {
    border: 1px solid var(--ws-border);
    border-left: 4px solid var(--ws-status, var(--ws-border));
    border-radius: var(--ws-radius);
    background: var(--ws-paper);
    padding: 1rem 1.1rem;
}

.ws-check--pass { --ws-status: var(--ws-thriving); }
.ws-check--warn { --ws-status: var(--ws-stable); }
.ws-check--fail { --ws-status: var(--ws-critical); }
.ws-check--info { --ws-status: var(--ws-brand); }
.ws-check--skip { --ws-status: #b6c0d4; background: var(--ws-paper-soft); }

.ws-check__head {
    display: flex;
    align-items: center;
    gap: .75rem;
    flex-wrap: wrap;
}

.ws-check__icon { color: var(--ws-status); font-size: 1.1rem; line-height: 1; flex: none; }
.ws-check__label { font-weight: 620; flex: 1 1 12rem; min-width: 0; }

.ws-check__value {
    font-family: var(--ws-mono);
    font-size: .82rem;
    font-weight: 650;
    padding: .2rem .55rem;
    border-radius: 7px;
    background: color-mix(in srgb, var(--ws-status) 12%, transparent);
    color: color-mix(in srgb, var(--ws-status) 78%, #000);
    white-space: nowrap;
}

.ws-check__detail { color: var(--ws-muted); font-size: .92rem; margin: .55rem 0 0; }

.ws-check__advice {
    margin: .7rem 0 0;
    padding: .7rem .85rem;
    border-radius: 10px;
    background: var(--ws-paper-soft);
    border: 1px dashed var(--ws-border);
    font-size: .9rem;
}
.ws-check__advice strong { color: var(--ws-text); }

.ws-check__weight {
    font-size: .72rem;
    color: var(--ws-muted);
    font-family: var(--ws-mono);
}

/* ---------------------------------------------------------------------
   Result header / tally / priorities
   ------------------------------------------------------------------- */
.ws-result {
    border: 1px solid var(--ws-border);
    border-radius: var(--ws-radius-lg);
    background: var(--ws-paper);
    box-shadow: var(--ws-shadow);
    overflow: hidden;
}

.ws-result__head {
    display: flex;
    gap: 1.75rem;
    align-items: center;
    flex-wrap: wrap;
    padding: 1.75rem;
    border-bottom: 1px solid var(--ws-border);
    background: linear-gradient(180deg, var(--ws-paper-soft), var(--ws-paper));
}

.ws-state-pill {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    font-weight: 700;
    font-size: .82rem;
    letter-spacing: .02em;
    padding: .3rem .75rem;
    border-radius: 999px;
    background: color-mix(in srgb, var(--ws-state, var(--ws-brand)) 14%, transparent);
    color: color-mix(in srgb, var(--ws-state, var(--ws-brand)) 72%, #000);
}
.ws-state-pill::before {
    content: "";
    width: .5rem; height: .5rem;
    border-radius: 50%;
    background: var(--ws-state, var(--ws-brand));
}

.ws-tally { display: flex; gap: 1.25rem; flex-wrap: wrap; font-size: .88rem; }
.ws-tally span { display: inline-flex; align-items: center; gap: .4rem; color: var(--ws-muted); }
.ws-tally b { color: var(--ws-text); font-family: var(--ws-mono); }

.ws-priority {
    display: flex;
    gap: .85rem;
    padding: .95rem 1.1rem;
    border-radius: var(--ws-radius);
    background: linear-gradient(135deg, rgba(224, 56, 79, .06), rgba(255, 176, 32, .06));
    border: 1px solid var(--ws-border);
}
.ws-priority__rank {
    flex: none;
    display: grid;
    place-items: center;
    width: 26px; height: 26px;
    border-radius: 8px;
    background: var(--ws-text);
    color: #fff;
    font-size: .8rem;
    font-weight: 700;
    font-family: var(--ws-mono);
}

/* ---------------------------------------------------------------------
   Metric tiles (Core Web Vitals, timing breakdown)
   ------------------------------------------------------------------- */
.ws-metric {
    border: 1px solid var(--ws-border);
    border-radius: var(--ws-radius);
    padding: 1rem;
    background: var(--ws-paper);
    height: 100%;
}
.ws-metric__label {
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--ws-muted);
}
.ws-metric__value {
    font-family: var(--ws-mono);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -.03em;
    margin: .3rem 0 .1rem;
}
.ws-metric__note { font-size: .8rem; color: var(--ws-muted); }

/* Waterfall bar for the DNS -> TLS -> TTFB breakdown. */
.ws-waterfall { display: grid; gap: .5rem; }
.ws-waterfall__row { display: grid; grid-template-columns: 7.5rem 1fr 4.5rem; align-items: center; gap: .75rem; font-size: .85rem; }
.ws-waterfall__track { height: 10px; border-radius: 999px; background: var(--ws-paper-soft); overflow: hidden; }
.ws-waterfall__bar { height: 100%; border-radius: 999px; background: var(--ws-brand); transition: width .8s cubic-bezier(.2,.8,.2,1); }
.ws-waterfall__value { font-family: var(--ws-mono); text-align: right; color: var(--ws-muted); }

/* ---------------------------------------------------------------------
   Uptime monitor
   ------------------------------------------------------------------- */
.ws-status-dot {
    display: inline-block;
    width: .6rem; height: .6rem;
    border-radius: 50%;
    background: var(--ws-muted);
    flex: none;
}
.ws-status-dot--up       { background: var(--ws-thriving); box-shadow: 0 0 0 4px rgba(15, 169, 88, .18); }
.ws-status-dot--degraded { background: var(--ws-stable);   box-shadow: 0 0 0 4px rgba(229, 165, 10, .18); }
.ws-status-dot--down     { background: var(--ws-critical); box-shadow: 0 0 0 4px rgba(224, 56, 79, .18); animation: wsBlink 1.4s ease-in-out infinite; }
@keyframes wsBlink { 50% { opacity: .35; } }

/* The uptime history strip: one bar per check. */
.ws-timeline { display: flex; gap: 2px; align-items: flex-end; height: 34px; }
.ws-timeline__bar {
    flex: 1 1 0;
    min-width: 3px;
    border-radius: 2px;
    background: var(--ws-border);
    transition: opacity .15s ease;
}
.ws-timeline__bar--up       { background: var(--ws-thriving); }
.ws-timeline__bar--degraded { background: var(--ws-stable); }
.ws-timeline__bar--down     { background: var(--ws-critical); }
.ws-timeline__bar:hover     { opacity: .7; }

.ws-shot {
    border: 1px solid var(--ws-border);
    border-radius: var(--ws-radius);
    overflow: hidden;
    background: var(--ws-paper-soft);
    position: relative;
}
.ws-shot img { display: block; width: 100%; height: auto; }
.ws-shot__bar {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .5rem .8rem;
    background: var(--ws-ink);
    color: var(--ws-on-dark-mut);
    font-size: .78rem;
}
.ws-shot__dots { display: flex; gap: 4px; }
.ws-shot__dots i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.22); display: block; }

.ws-monitor {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 1.1rem 1.25rem;
    border: 1px solid var(--ws-border);
    border-radius: var(--ws-radius);
    background: var(--ws-paper);
}
@media (min-width: 768px) {
    .ws-monitor { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) auto; align-items: center; }
}

/* ---------------------------------------------------------------------
   Loading state
   ------------------------------------------------------------------- */
.ws-loading {
    display: grid;
    place-items: center;
    gap: 1rem;
    padding: 3.5rem 1rem;
    text-align: center;
}
.ws-loading__ekg { width: min(320px, 80%); height: 54px; }
.ws-loading__ekg path {
    fill: none;
    stroke: var(--ws-brand);
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-dasharray: 300;
    animation: wsTrace 1.6s linear infinite;
}
.ws-loading__step { font-size: .9rem; color: var(--ws-muted); min-height: 1.4em; }

/* Skeleton shimmer for pending result blocks. */
.ws-skeleton {
    border-radius: var(--ws-radius);
    background: linear-gradient(90deg, var(--ws-paper-soft) 25%, #eef1f7 37%, var(--ws-paper-soft) 63%);
    background-size: 400% 100%;
    animation: wsShimmer 1.3s ease-in-out infinite;
}
@keyframes wsShimmer { from { background-position: 100% 0; } to { background-position: 0 0; } }

/* ---------------------------------------------------------------------
   Footer
   ------------------------------------------------------------------- */
.ws-footer {
    background: var(--ws-ink);
    color: var(--ws-on-dark-mut);
    padding: clamp(3rem, 6vw, 4.5rem) 0 1.5rem;
    position: relative;
    overflow: hidden;
}

/* A faint EKG trace across the top of the footer ties it to the hero. */
.ws-footer__trace {
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 40px;
    opacity: .3;
}
.ws-footer__trace path {
    fill: none;
    stroke: var(--ws-pulse);
    stroke-width: 1.5;
}

.ws-footer h5 {
    color: var(--ws-on-dark);
    font-size: .76rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}
.ws-footer a { color: var(--ws-on-dark-mut); text-decoration: none; }
.ws-footer a:hover { color: #fff; }
.ws-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; font-size: .92rem; }

.ws-social { display: flex; gap: .5rem; flex-wrap: wrap; }
.ws-social a {
    display: grid;
    place-items: center;
    width: 38px; height: 38px;
    border-radius: 10px;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .09);
    color: var(--ws-on-dark-mut);
    font-size: 1rem;
    transition: transform .15s ease, background .15s ease, color .15s ease;
}
.ws-social a:hover { transform: translateY(-2px); background: var(--ws-brand); color: #fff; border-color: transparent; }

.ws-footer__legal {
    border-top: 1px solid rgba(255, 255, 255, .08);
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    font-size: .85rem;
}

/* ---------------------------------------------------------------------
   Small utilities
   ------------------------------------------------------------------- */
.ws-card {
    border: 1px solid var(--ws-border);
    border-radius: var(--ws-radius-lg);
    background: var(--ws-paper);
    box-shadow: var(--ws-shadow);
    padding: 1.75rem;
}

.ws-prose { max-width: 46rem; }
.ws-prose h2 { font-size: 1.4rem; margin: 2.25rem 0 .85rem; }
.ws-prose h3 { font-size: 1.1rem; margin: 1.75rem 0 .6rem; }
.ws-prose p, .ws-prose li { color: #3c465e; line-height: 1.7; }
.ws-prose ul, .ws-prose ol { padding-left: 1.15rem; display: grid; gap: .45rem; }

.ws-badge-soft {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    font-size: .78rem;
    font-weight: 600;
    padding: .28rem .7rem;
    border-radius: 999px;
    background: var(--ws-paper-soft);
    border: 1px solid var(--ws-border);
    color: var(--ws-muted);
}
.ws-on-dark .ws-badge-soft {
    background: rgba(255, 255, 255, .07);
    border-color: rgba(255, 255, 255, .13);
    color: var(--ws-on-dark-mut);
}

.ws-hide { display: none !important; }

/* ---------------------------------------------------------------------
   Hero vital-signs monitor panel
   ---------------------------------------------------------------------
   A patient-monitor readout sitting beside the scan box, showing what a
   finished report looks like. Sits on the dark hero, so it uses the
   translucent-glass treatment rather than the light card styles.
   ------------------------------------------------------------------- */
.ws-monitor-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, .085), rgba(255, 255, 255, .035));
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: var(--ws-radius-lg);
    box-shadow: 0 24px 60px rgba(0, 0, 0, .38);
    backdrop-filter: blur(8px);
    overflow: hidden;
    color: var(--ws-on-dark);
}

/* Window chrome */
.ws-monitor-card__bar {
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .6rem .9rem;
    background: rgba(0, 0, 0, .28);
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    font-size: .74rem;
}

.ws-monitor-card__tag {
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    font-size: .64rem;
    padding: .16rem .5rem;
    border-radius: 999px;
    color: var(--ws-ink);
    background: var(--ws-pulse);
    flex: none;
}

.ws-monitor-card .ws-state-pill { transition: opacity .25s ease, background .4s ease, color .4s ease; }

.ws-monitor-card__host {
    color: var(--ws-on-dark-mut);
    margin-left: auto;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: opacity .25s ease;
}

/* Overall score block */
.ws-monitor-card__score {
    display: flex;
    align-items: center;
    gap: 1.1rem;
    padding: 1.4rem 1.25rem 1.1rem;
}

.ws-monitor-card__score .ws-gauge__number { transition: color .4s ease; }
.ws-monitor-card__score .ws-gauge__label   { color: var(--ws-on-dark-mut); }
.ws-monitor-card__score .ws-gauge__track   { stroke: rgba(255, 255, 255, .12); }

/* The dial fills over ~1.1s and re-animates on every sample change. */
.ws-monitor-card__score .ws-gauge__arc {
    transition: stroke-dashoffset 1.1s cubic-bezier(.2, .8, .2, 1), stroke .4s ease;
}

.ws-monitor-card__verdict { min-width: 0; }

.ws-monitor-card__summary {
    font-size: .82rem;
    line-height: 1.45;
    color: var(--ws-on-dark-mut);
    margin: .55rem 0 0;
    transition: opacity .25s ease;
}

/* The three vital rows */
.ws-monitor-card__vitals {
    display: grid;
    gap: .7rem;
    padding: 0 1.25rem 1.2rem;
}

.ws-vitalrow {
    display: grid;
    grid-template-columns: 6.6rem 1fr 2.2rem;
    align-items: center;
    gap: .7rem;
    font-size: .82rem;
}

.ws-vitalrow__name {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    color: var(--ws-on-dark-mut);
    font-weight: 550;
}

.ws-vitalrow__dot {
    width: .5rem;
    height: .5rem;
    border-radius: 50%;
    flex: none;
    display: block;
}

.ws-vitalrow__track {
    height: 7px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .1);
    overflow: hidden;
    display: block;
}

.ws-vitalrow__bar {
    display: block;
    height: 100%;
    border-radius: 999px;
    transition: width 1s cubic-bezier(.2, .8, .2, 1), background .4s ease;
}

.ws-vitalrow__score {
    text-align: right;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    transition: color .4s ease;
}

/* Footer: 30-day uptime + the check strip */
.ws-monitor-card__foot {
    padding: .9rem 1.25rem 1.1rem;
    background: rgba(0, 0, 0, .22);
    border-top: 1px solid rgba(255, 255, 255, .08);
}

.ws-monitor-card__uptime {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: .55rem;
}

.ws-monitor-card__uptime-label {
    font-size: .66rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--ws-on-dark-mut);
}

.ws-monitor-card__foot strong {
    font-size: 1.05rem;
    color: var(--ws-pulse);
    transition: color .4s ease;
}

/* Slightly shorter strip than the dashboard version. */
.ws-monitor-card__foot .ws-timeline { height: 18px; }
.ws-monitor-card__foot .ws-timeline__bar { background: rgba(255, 255, 255, .14); }

/* Fade the panel's text while it swaps samples. */
.ws-monitor-card.is-swapping .ws-monitor-card__host,
.ws-monitor-card.is-swapping .ws-state-pill,
.ws-monitor-card.is-swapping .ws-monitor-card__summary { opacity: .25; }

@media (prefers-reduced-motion: reduce) {
    .ws-monitor-card__score .ws-gauge__arc,
    .ws-vitalrow__bar { transition: none; }
}

/* On narrow screens the panel sits under the form — cap its width so it
   does not stretch awkwardly across a tablet. */
@media (max-width: 991.98px) {
    .ws-monitor-card { max-width: 26rem; margin-inline: auto; }
}
