/* ============================================================
   uptime.css — Uptime Monitor only (/uptime-monitor/).

   Loaded after /themeV0.01.css, /topbar.css and /landingV0.01.css:
   the pages ARE the home page's visual language (lp-* classes) and
   this file adds only what the section needs. Every colour is a
   theme token or an --lp-* token, both defined for both skins, so
   light (:root) and dark ([data-theme="dark"]) need no rules here.
   Cache-busted by um_asset()'s ?v=<mtime>.
============================================================ */

/* ---- section bar, under the fixed topbar ------------------- */
.um-subnav {
    background: var(--panel);
    border-bottom: 1px solid var(--border-soft);
}

.um-subnav__inner {
    display: flex;
    gap: 4px;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: thin;
}

.um-subnav__link {
    display: inline-flex;
    align-items: center;
    min-height: 46px;
    padding: 0 12px;
    color: var(--text);
    font-size: .94rem;
    text-decoration: none;
    border-radius: 6px;
}

.um-subnav__link--home {
    font-weight: 700;
    color: var(--text-strong);
    padding-left: 0;
}

.um-subnav__link:hover {
    color: var(--accent-soft);
}

.um-subnav__link[aria-current="page"] {
    color: var(--accent-soft);
    box-shadow: inset 0 -2px 0 var(--accent-soft);
    border-radius: 0;
}

.um-subnav__link:focus-visible {
    outline: 2px solid var(--accent-soft);
    outline-offset: -2px;
}

/* ---- page frame ---------------------------------------------- */
.um-narrow {
    max-width: 920px;
}

.um-pagehead {
    padding: 64px 0 44px;
    border-bottom: 1px solid var(--border-soft);
    background: radial-gradient(760px 380px at 92% 0%, var(--lp-hero-glow-1), transparent 65%);
}

.um-pagehead h1 {
    font-size: clamp(2rem, 1.35rem + 2.4vw, 3rem);
    line-height: 1.08;
    letter-spacing: -0.028em;
}

.um-section-tight {
    padding: 48px 0;
}

.um-section-tight + .um-section-tight {
    padding-top: 0;
}

.um-badge {
    margin: 0 0 18px !important;
}

.um-note {
    margin-top: 22px !important;
    max-width: 58ch;
    font-size: .92rem;
}

.um-dim,
.lp-main .um-dim {
    color: var(--lp-ink-dim);
    font-size: .92rem;
}

.lp-main p.um-dim {
    margin-top: 14px;
}

.um-actions {
    margin-top: 28px;
}

/* ---- plans grid (landing) ----------------------------------- */
.um-plans {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.um-plan {
    display: grid;
    gap: 8px;
    align-content: start;
    padding: 24px 22px;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 16px;
}

.lp-section--band .um-plan {
    background: var(--bg);
}

.um-plan--free {
    border-style: dashed;
}

.um-plan h3 {
    font-size: 1.15rem;
}

.lp-main .um-plan__pace {
    color: var(--text);
    font-size: .95rem;
}

.lp-main .um-plan__price {
    margin-top: 8px;
    color: var(--text);
}

.um-plan__price strong {
    color: var(--text-strong);
    font-size: 1.6rem;
    letter-spacing: -0.02em;
}

.um-plan__alt {
    font-size: .88rem;
}

.lp-main .um-extras {
    margin-top: 26px;
    max-width: 70ch;
    color: var(--text);
}

/* ---- tables (pricing) -------------------------------------- */
.um-tablewrap {
    overflow-x: auto;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 14px;
    margin-top: 18px;
}

.um-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .96rem;
}

.um-table caption {
    caption-side: bottom;
    text-align: left;
    padding: 12px 16px;
    color: var(--lp-ink-dim);
    font-size: .88rem;
    border-top: 1px solid var(--border-soft);
}

.um-table th,
.um-table td {
    padding: 14px 16px;
    text-align: left;
    color: var(--text);
    border-bottom: 1px solid var(--border-soft);
    vertical-align: top;
}

.um-table thead th {
    color: var(--lp-ink-dim);
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.um-table tbody tr:last-child th,
.um-table tbody tr:last-child td {
    border-bottom: 0;
}

.um-table tbody th {
    color: var(--text-strong);
    font-weight: 600;
}

.um-table--plans tbody th {
    white-space: nowrap;                    /* "1-minute" must not break at its hyphen */
}

.um-table strong {
    color: var(--text-strong);
}

/* ---- prose pages (verification, for site owners) ------------- */
.um-prose h2 {
    margin-top: 40px !important;
    font-size: 1.45rem !important;
    letter-spacing: -0.015em;
}

.um-prose h2:first-child {
    margin-top: 0 !important;
}

.um-prose p,
.um-prose .lp-list,
.um-prose .um-steps {
    margin-top: 14px;
    line-height: 1.65;
}

.um-prose a:not(.lp-btn) {
    color: var(--accent-soft);
    font-weight: 600;
}

.um-prose code {
    font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
    font-size: .88em;
    padding: 2px 6px;
    border-radius: 6px;
    background: var(--panel-light);
    border: 1px solid var(--border-soft);
    color: var(--text);
    overflow-wrap: anywhere;
}

.um-steps {
    padding-left: 22px;
    display: grid;
    gap: 12px;
    color: var(--text);
}

.um-steps strong {
    color: var(--text-strong);
}

.um-code {
    margin: 16px 0 0;
    padding: 14px 16px;
    background: var(--bg-deep);
    border: 1px solid var(--border-soft);
    border-radius: 10px;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    word-break: break-all;
}

.um-code code,
.um-prose .um-code code {
    padding: 0;
    border: 0;
    background: none;
    font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
    font-size: .86rem;
    color: var(--text);
}

.um-iplist {
    margin: 12px 0 0;
    padding-left: 22px;
    color: var(--text);
}

/* ---- FAQ ----------------------------------------------------- */
.um-faq details {
    border-bottom: 1px solid var(--border-soft);
}

.um-faq details:first-child {
    border-top: 1px solid var(--border-soft);
}

.um-faq summary {
    cursor: pointer;
    padding: 18px 4px;
    color: var(--text-strong);
    font-weight: 600;
    font-size: 1.04rem;
    min-height: 44px;
}

.um-faq summary:focus-visible {
    outline: 2px solid var(--accent-soft);
    outline-offset: 2px;
    border-radius: 6px;
}

.um-faq details p {
    padding: 0 4px 20px;
    max-width: 70ch;
    line-height: 1.65;
}

/* ---- console placeholder ------------------------------------- */
.um-card {
    display: grid;
    gap: 14px;
    padding: 30px;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 18px;
}

.um-card h2 {
    font-size: 1.3rem !important;
}

/* ---- console: wizard, forms, messages, the monitor list (S2) ---- */
.um-wizard {
    list-style: none;
    margin: 22px 0 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 22px;
    color: var(--lp-ink-dim);
    font-size: .94rem;
}

.um-wizard__step {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.um-wizard__n {
    display: inline-grid;
    place-items: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 1px solid var(--border);
    font-weight: 700;
    font-size: .82rem;
}

.um-wizard__step[aria-current="step"] {
    color: var(--text-strong);
    font-weight: 600;
}

.um-wizard__step[aria-current="step"] .um-wizard__n {
    background: var(--accent-fill);           /* the theme's pair for text on a filled accent */
    border-color: var(--accent-fill);
    color: var(--on-accent);
}

.um-wizard__step.is-done .um-wizard__n {
    border-color: var(--lp-live);
    color: var(--lp-live);
}

.um-form {
    display: grid;
    gap: 8px;
    margin-top: 18px;
}

.um-label {
    color: var(--text-strong);
    font-weight: 600;
}

.um-prose > .um-label {                       /* a label outside a .um-form grid: the marker's */
    display: block;
    margin: 14px 0 8px;
}

.um-input {
    width: 100%;
    min-height: 46px;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--panel);
    color: var(--text);
    font: inherit;
}

.um-input:focus-visible {
    outline: 2px solid var(--accent-soft);
    outline-offset: 1px;
}

.um-marker {
    font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
    font-size: .86rem;
    word-break: break-all;
    resize: vertical;
}

.lp-main .um-help {
    margin: 0;
    color: var(--lp-ink-dim);
    font-size: .9rem;
}

.um-note-box {
    margin: 0 0 22px;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-left: 4px solid var(--lp-pre);
    border-radius: 10px;
    background: var(--panel);
    color: var(--text);
}

.um-note-box--ok {
    border-left-color: var(--lp-live);
}

.um-note-box--problem {
    border-left-color: var(--danger-soft);
}

.um-prose .um-note-box {
    margin-top: 14px;
}

.um-inline-form {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 10px;
    margin-top: 14px;
}

.um-linkbtn {
    min-height: 44px;
    padding: 0;
    border: 0;
    background: none;
    color: var(--accent-soft);
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

.um-linkbtn:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.um-linkbtn:focus-visible {
    outline: 2px solid var(--accent-soft);
    outline-offset: 2px;
    border-radius: 4px;
}

.um-monitors {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 14px;
}

.um-monitor {
    padding: 20px 22px;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 16px;
}

.um-monitor__head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 14px;
}

.lp-main .um-monitor__name {
    margin: 0;
    font-size: 1.15rem;
    overflow-wrap: anywhere;
}

.lp-main .um-monitor__url {
    margin: 6px 0 0;
    color: var(--text);
    font-size: .92rem;
    overflow-wrap: anywhere;
}

.um-monitor__actions {
    margin-top: 14px;
}

.um-monitor__actions form {
    margin: 0;
}

/* ---- section footer (outside <main>) -------------------------- */
.um-secfooter {
    margin-top: 8px;
    padding-top: 28px;
    padding-bottom: 8px;
    border-top: 1px solid var(--border-soft);
    color: var(--text);
    font-size: .92rem;
}

.um-secfooter ul {
    list-style: none;
    margin: 10px 0 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 4px 20px;
}

.um-secfooter a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    color: var(--accent-soft);
    text-decoration: none;
}

.um-secfooter a:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* ---- responsive ---------------------------------------------- */
@media (max-width: 980px) {
    .um-plans {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .um-plans {
        grid-template-columns: minmax(0, 1fr);
    }
    .um-pagehead {
        padding: 40px 0 32px;
    }
    .um-section-tight {
        padding: 36px 0;
    }
    .um-table th,
    .um-table td {
        padding: 12px;
    }
    .um-card {
        padding: 22px;
    }
}

/* ---- console: alerts (S4) ---- */
.um-rcps {
    margin-top: 16px;
}

/* ---- console: alerts, S7b: where our e-mails come from, and the account's own address ---- */
.lp-main .um-note-box > p {
    margin: 0;
}

.lp-main .um-note-box > p + p {
    margin-top: 6px;
}

.um-own-form {
    margin-top: 18px;
}

.lp-main .um-own-form .um-label,
.lp-main .um-own-form .um-help {
    flex-basis: 100%;
    margin: 0;
}

.um-own-form .um-input {
    flex: 1 1 240px;
    width: auto;
    min-width: 0;
}

.um-card h3 {
    margin: 0;
    font-size: 1.1rem;
}

.um-checks {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    border: 0;
}

.um-checks legend {
    margin-bottom: 10px;
}

.um-check {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    min-height: 44px;
    padding: 10px 14px;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text);
    cursor: pointer;
    overflow-wrap: anywhere;
}

.um-check input {
    flex: none;
    width: 20px;
    height: 20px;
    margin: 2px 0 0;
    accent-color: var(--accent-fill);
}

.um-check:focus-within {
    outline: 2px solid var(--accent-soft);
    outline-offset: 1px;
}

/* ---- console: figures, charts, incidents, the delete dialog (S5) ---- */
.um-sr {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

.lp-main .um-monitor__name a,
.lp-main .um-badge a {                          /* the theme's link colour, as .um-prose links have */
    color: var(--accent-soft);
    text-underline-offset: 3px;
}

.lp-status--down {
    color: var(--danger-soft);
    background: var(--panel-light);
}

.um-figures {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 10px;
    margin: 14px 0 0;
}

.um-figures > div {
    padding: 12px 14px;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 12px;
}

.um-figures dt {
    color: var(--lp-ink-dim);
    font-size: .86rem;
}

.um-figures dd {
    margin: 4px 0 0;
    color: var(--text-strong);
    font-size: 1.15rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.um-figures dd.um-dim {
    color: var(--lp-ink-dim);
    font-size: .86rem;
    font-weight: 400;
}

.um-figure {
    margin: 18px 0 0;
}

.lp-main .um-chart {                          /* beats .lp-main svg, the landing page's 24 px icon rule */
    display: block;
    width: 100%;
    height: 48px;
    stroke: none;
}

.lp-main .um-chart--ms {
    height: 72px;
    background: var(--panel);
    border-bottom: 1px solid var(--border);
}

.lp-main .um-section-tight h2:not(.um-monitor__name) {   /* a console page has seven sections, not one hero */
    font-size: 1.5rem;
    margin-bottom: 4px;
}

.um-bar--up,
.um-key--up::before {
    fill: var(--lp-live);
    background: var(--lp-live);
}

.um-bar--part,
.um-key--part::before {
    fill: var(--warn);
    background: var(--warn);
}

.um-bar--down,
.um-bar--fail,
.um-key--down::before {
    fill: var(--danger-soft);
    background: var(--danger-soft);
}

.um-bar--none,
.um-key--none::before {
    fill: var(--border);
    background: var(--border);
}

.um-bar--ms {
    fill: var(--accent-soft);
}

.um-bar:hover {
    opacity: .7;
}

.lp-main .um-legend {
    margin-top: 10px;
    color: var(--lp-ink-dim);
    font-size: .88rem;
}

.um-key {
    white-space: nowrap;
}

.um-key::before {
    content: "";
    display: inline-block;
    width: 10px;
    height: 10px;
    margin-right: 6px;
    border-radius: 2px;
    vertical-align: -1px;
}

.um-incidents {
    display: grid;
    gap: 12px;
    margin: 14px 0 0;
    padding: 0;
    list-style: none;
}

.um-incident {
    padding: 16px 18px;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 14px;
    scroll-margin-top: 150px;                     /* the fixed topbar and the section bar */
}

.um-incident:target {
    border-color: var(--accent-soft);
    box-shadow: 0 0 0 2px var(--accent-soft);
}

.lp-main .um-incident h3 {
    margin: 0;
    font-size: 1rem;
}

.um-facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 8px 18px;
    margin: 12px 0 0;
}

.um-facts dt {
    color: var(--lp-ink-dim);
    font-size: .84rem;
}

.um-facts dd {
    margin: 2px 0 0;
    color: var(--text);
    overflow-wrap: anywhere;
}

.lp-btn.um-danger {
    background: var(--danger-deep);
    border-color: var(--danger-deep);
    color: var(--on-accent);
}

.um-dialog {
    width: calc(100% - 32px);
    max-width: 520px;
    padding: 26px;
    background: var(--panel);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 16px;
}

.um-dialog::backdrop {
    background: rgba(0, 0, 0, .55);
}

.um-dialog h2 {
    margin: 0 0 10px;
    font-size: 1.2rem;
}

