:root {
    color-scheme: light;
    font: 100%/1.5 system-ui, -apple-system, sans-serif;
    color: #172539;
    background: #f1f5f8;
    --line: #d6dee7;
    --accent: #00665b;
}
* { box-sizing: border-box; }
body { margin: 0; }
.wrap { width: min(100% - 2rem, 68rem); margin-inline: auto; }
.top { background: #142638; color: #fff; }
.bar, .heading, .site-title, .actions, .delete {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    flex-wrap: wrap;
}
.bar { min-height: 4.25rem; }
.brand { font-size: 1.15rem; letter-spacing: -.025em; }
.brand span { color: #7ddcc5; }
main { padding-block: 2rem 4rem; }
h1, h2, h3, p, dl, dd { margin: 0; }
h1 { font-size: clamp(1.7rem, 4vw, 2.5rem); letter-spacing: -.04em; line-height: 1.15; }
h2 { font-size: 1.2rem; margin-bottom: .85rem; }
h3 { font-size: 1.12rem; overflow-wrap: anywhere; }
.heading p { margin-top: .5rem; color: #475b70; }
.panel, .metrics > div {
    background: white;
    border: 1px solid var(--line);
    border-radius: .85rem;
    padding: 1.15rem;
}
.login { max-width: 28rem; margin: clamp(1rem, 8vh, 5rem) auto; padding: 1.5rem; }
.login form { display: grid; gap: .9rem; margin-top: 1rem; }
.metrics, .site-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .7rem; }
.metrics { margin-block: 1.25rem; }
dt, .url, .hint { color: #475b70; font-size: .9rem; }
.metrics dd { font-size: 1.9rem; font-weight: 720; line-height: 1.25; }
.site-metrics { margin-block: 1rem; }
.site-metrics dd { font-weight: 600; }
.add, .website { margin-bottom: 1rem; }
.url { overflow-wrap: anywhere; margin-top: .15rem; }
.site-title > div { min-width: 0; }
.badge { padding: .2rem .65rem; border-radius: 2rem; font-size: .875rem; font-weight: 680; background: #e9eef4; }
.up { color: #0a654b; }
.badge.up { background: #e0f5eb; }
.down { color: #9c2a38; }
.badge.down { background: #fce8ec; }
.suspect { color: #845113; }
.badge.suspect { background: #fff0d4; }
.fields { display: grid; grid-template-columns: 1fr 1.5fr auto; align-items: end; gap: .7rem; }
label { display: block; font-size: .92rem; font-weight: 600; min-width: 0; }
input:not([type="checkbox"]) {
    display: block;
    margin-top: .25rem;
    width: 100%;
    border: 1px solid #aebccd;
    border-radius: .45rem;
    padding: .62rem;
    font: inherit;
    font-size: 1rem;
    font-weight: 400;
    color: inherit;
    background: #fff;
}
input[type="checkbox"] { accent-color: var(--accent); }
button, .button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.75rem;
    padding: .55rem .85rem;
    border: 1px solid transparent;
    border-radius: .45rem;
    color: white;
    background: var(--accent);
    font: inherit;
    font-weight: 650;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
}
.secondary { color: #223b52; background: white; border-color: var(--line); }
.danger { color: #9c2a38; background: #fff; border-color: #e2a8b1; }
button:hover, .button:hover { filter: brightness(.92); }
:focus-visible { outline: 3px solid #3884ca; outline-offset: 3px; }
.notice { padding: .65rem .8rem; margin-block: .8rem; border-radius: .45rem; background: #e3f5ef; }
.notice.error { background: #fce8ec; color: #882333; }
.notice.warn { background: #fff0d4; color: #69400d; }
details { border-top: 1px solid var(--line); padding-top: .75rem; }
summary { cursor: pointer; font-weight: 620; }
details .fields, .actions { margin-top: .85rem; }
.hint { margin-top: .35rem; }
.table-wrap { overflow-x: auto; margin-block: .75rem; }
table { width: 100%; text-align: left; border-collapse: collapse; font-size: .9rem; }
th, td { padding: .45rem .6rem; border-bottom: 1px solid var(--line); }
th { background: #edf2f6; }
@media (max-width: 42rem) {
    .metrics, .site-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .fields { grid-template-columns: minmax(0, 1fr); align-items: stretch; }
}
@media (max-width: 24rem) {
    .wrap { width: calc(100% - 1rem); }
    .panel, .metrics > div { padding: .8rem; }
    .delete { align-items: flex-start; }
}
