/*
 * «Не упал» — one stylesheet for the public site, auth pages and the dashboard.
 * Idea: a night watchman who writes you one line. Warm paper, near-black ink,
 * red and green only as status signals, Telegram messages set in monospace.
 */

@font-face {
    font-family: "Golos Text";
    src: url("../fonts/golos-text-cyrillic.woff2") format("woff2");
    font-weight: 400 700;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
    font-family: "Golos Text";
    src: url("../fonts/golos-text-latin.woff2") format("woff2");
    font-weight: 400 700;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: "JetBrains Mono";
    src: url("../fonts/jetbrains-mono-cyrillic.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
    font-family: "JetBrains Mono";
    src: url("../fonts/jetbrains-mono-latin.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
    /* Day: paper and ink */
    --paper: #f2ede3;
    --paper-deep: #e8e1d3;
    --sheet: #fbf9f4;
    --ink: #1c1b19;
    --ink-2: #57534b;
    --rule: #d6cebf;
    --edge: #8f887b;

    /* Signals: the only colours on the page */
    --up: #1b7a45;
    --up-bright: #3fbf73;
    --down: #c2362b;

    /* Night: the phone screen at 03:12 */
    --night: #1d2125;
    --night-2: #2a3036;
    --night-ink: #ece8e0;
    --night-soft: #a3a9ae;

    --font-sans: "Golos Text", "Segoe UI", system-ui, -apple-system, sans-serif;
    --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

    --radius: .5rem;
    --gutter: 1rem;
}

@media (min-width: 640px) {
    :root { --gutter: 1.5rem; }
}

@media (min-width: 1024px) {
    :root { --gutter: 2rem; }
}

/* ---------- Base ---------- */

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

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--font-sans);
    font-size: 1.0625rem;
    line-height: 1.6;
    font-kerning: normal;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main { flex: 1 0 auto; }

h1, h2, h3 {
    margin: 0 0 .5em;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -.015em;
    text-wrap: balance;
}

h1 { font-size: clamp(2.125rem, 1.5rem + 2.6vw, 3.25rem); letter-spacing: -.03em; line-height: 1.05; }
h2 { font-size: clamp(1.625rem, 1.25rem + 1.6vw, 2.375rem); letter-spacing: -.025em; }
h3 { font-size: 1.1875rem; letter-spacing: -.01em; line-height: 1.3; }

p { margin: 0 0 1em; }

a {
    color: inherit;
    text-decoration-line: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: .2em;
}

a:hover { text-decoration-thickness: 2px; }

code, pre, kbd { font-family: var(--font-mono); }

img, svg { max-width: 100%; }

::selection { background: var(--ink); color: var(--paper); }

:focus-visible {
    outline: 2px solid var(--ink);
    outline-offset: 3px;
    border-radius: 2px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute;
    left: var(--gutter);
    top: .5rem;
    z-index: 10;
    padding: .5rem .875rem;
    background: var(--ink);
    color: var(--paper);
    border-radius: var(--radius);
    transform: translateY(-200%);
}

.skip-link:focus { transform: none; }

.wrap {
    width: 100%;
    max-width: 72rem;
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.narrow { max-width: calc(44rem + 2 * var(--gutter)); }

/* ---------- Header and footer ---------- */

.site-header { border-bottom: 1px solid var(--rule); }

.site-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 4rem;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    margin: 0;
    font-weight: 700;
    font-size: 1.125rem;
    letter-spacing: -.02em;
    text-decoration: none;
    white-space: nowrap;
}

.brand-dot {
    width: .625rem;
    height: .625rem;
    border-radius: 50%;
    background: var(--up);
    flex: none;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    font-size: .9375rem;
}

.site-nav a,
.site-nav .link {
    color: var(--ink-2);
    text-decoration: none;
    white-space: nowrap;
}

.site-nav a:hover,
.site-nav .link:hover,
.site-nav a[aria-current="page"] {
    color: var(--ink);
    text-decoration: underline;
    text-decoration-thickness: 2px;
}

.site-nav .nav-strong { color: var(--ink); font-weight: 500; }

.site-nav form { margin: 0; }

.nav-wide { display: none; }

@media (min-width: 720px) {
    .nav-wide { display: inline; }
    .site-nav { gap: 1.75rem; }
}

.nav-user { color: var(--ink-2); }

.site-footer {
    border-top: 1px solid var(--rule);
    padding-block: 2.5rem 3rem;
    font-size: .9375rem;
    color: var(--ink-2);
}

.site-footer-inner {
    display: grid;
    gap: 1.75rem;
}

.site-footer .brand { color: var(--ink); margin-bottom: .5rem; }

.footer-about p:last-child { max-width: 30ch; margin: 0; }

.footer-links,
.footer-contact {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: .5rem;
}

.site-footer a { text-decoration-color: var(--rule); }

.site-footer a:hover { color: var(--ink); text-decoration-color: currentColor; }

@media (min-width: 760px) {
    .site-footer-inner { grid-template-columns: 1.4fr 1fr 1fr; }
}

/* ---------- Buttons and links ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    min-height: 2.875rem;
    padding: .625rem 1.25rem;
    border: 1.5px solid var(--ink);
    border-radius: var(--radius);
    background: var(--ink);
    color: var(--paper);
    font: inherit;
    font-weight: 500;
    font-size: 1rem;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    transition: background-color .15s, color .15s;
}

.btn:hover { background: #3a3833; border-color: #3a3833; text-decoration: none; }

.btn:active { transform: translateY(1px); }

.btn-lg { min-height: 3.375rem; padding: .875rem 1.625rem; font-size: 1.0625rem; }

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

.btn-paper:hover { background: #fff; border-color: #fff; }

.btn-danger { background: transparent; color: var(--down); border-color: var(--down); }

.btn-danger:hover { background: var(--down); border-color: var(--down); color: var(--sheet); }

.btn-quiet {
    font-weight: 500;
    text-decoration-thickness: 1.5px;
    text-underline-offset: .25em;
}

button.link {
    padding: 0;
    border: 0;
    background: none;
    color: inherit;
    font: inherit;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: .2em;
    cursor: pointer;
}

/* ---------- Status dots ---------- */

.dot {
    display: inline-block;
    width: .625rem;
    height: .625rem;
    border-radius: 50%;
    background: transparent;
    box-shadow: inset 0 0 0 1.5px var(--edge);
    flex: none;
    vertical-align: .05em;
}

.dot-up { background: var(--up); box-shadow: none; }
.dot-down { background: var(--down); box-shadow: none; }

/* ---------- Landing: hero ---------- */

.hero { padding-block: 2rem 4rem; }

.hero-title {
    margin: 0 0 1.75rem -.05em;
    font-size: clamp(4.25rem, 19.5vw, 13.75rem);
    font-weight: 700;
    line-height: .88;
    letter-spacing: -.06em;
    white-space: nowrap;
}

.hero-dot {
    position: relative;
    color: transparent;
    letter-spacing: 0;
}

/* The full stop is a status light: a green dot with one quiet heartbeat on load. */
.hero-dot::before,
.hero-dot::after {
    content: "";
    position: absolute;
    left: .02em;
    bottom: var(--dot-bottom, .215em);
    width: .17em;
    height: .17em;
    border-radius: 50%;
    background: var(--up);
}

.hero-dot::after {
    background: transparent;
    box-shadow: 0 0 0 .012em var(--up);
    opacity: 0;
    animation: heartbeat 2.2s ease-out .7s 2;
}

@keyframes heartbeat {
    0% { transform: scale(1); opacity: .7; }
    100% { transform: scale(3.2); opacity: 0; }
}

.hero-grid {
    display: grid;
    gap: 2.75rem;
}

.hero-lead {
    max-width: 32ch;
    margin: 0;
    font-size: clamp(1.1875rem, 1rem + .9vw, 1.5rem);
    line-height: 1.45;
    letter-spacing: -.01em;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem 1.75rem;
    margin: 2rem 0 1rem;
}

.hero-note { margin: 0; font-size: .9375rem; color: var(--ink-2); }

@media (min-width: 900px) {
    .hero { padding-block: 3.5rem 6rem; }
    .hero-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 4rem; align-items: start; }
    .hero-copy { padding-top: .75rem; }
}

/* ---------- Telegram chat ---------- */

.tg { margin: 0; max-width: 27rem; }

.tg-window {
    background: var(--night);
    color: var(--night-ink);
    border-radius: 1.125rem;
    overflow: hidden;
}

.tg-head {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .75rem 1rem;
    border-bottom: 1px solid rgba(236, 232, 224, .08);
}

.tg-avatar {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    background: radial-gradient(circle, var(--up-bright) 0 22%, var(--night-2) 24%);
    flex: none;
}

.tg-who { display: flex; flex-direction: column; line-height: 1.25; }
.tg-who b { font-weight: 500; font-size: .9375rem; }
.tg-who span { font-size: .8125rem; color: var(--night-soft); }

.tg-body {
    display: grid;
    justify-items: start;
    gap: .5rem;
    padding: 1rem 1rem 1.25rem;
}

.tg-day {
    justify-self: center;
    margin: 0 0 .25rem;
    padding: .125rem .75rem;
    border-radius: 1rem;
    background: rgba(236, 232, 224, .07);
    color: var(--night-soft);
    font-size: .8125rem;
}

.bubble {
    max-width: 100%;
    margin: 0;
    padding: .625rem .8125rem .4375rem;
    border-radius: 1rem 1rem 1rem .25rem;
    background: var(--night-2);
    font-family: var(--font-mono);
    font-size: .8125rem;
    line-height: 1.55;
    overflow-wrap: anywhere;
}

.bubble time {
    display: block;
    margin-top: .125rem;
    text-align: right;
    font-family: var(--font-sans);
    font-size: .75rem;
    color: var(--night-soft);
}

.bubble-light {
    background: var(--sheet);
    color: var(--ink);
    box-shadow: 0 0 0 1px var(--rule);
}

.bubble-light time { color: var(--ink-2); }

.tg figcaption {
    margin-top: .875rem;
    font-size: .875rem;
    color: var(--ink-2);
    max-width: 40ch;
}

/* ---------- Landing: sections ---------- */

.section { padding-block: 3.5rem; }

.section > h2 {
    padding-top: 1.25rem;
    border-top: 2px solid var(--ink);
    margin-bottom: 2rem;
}

@media (min-width: 900px) {
    .section { padding-block: 4.5rem; }
    .section > h2 { margin-bottom: 2.75rem; }
}

.watch { display: grid; gap: 3rem; }

.watch-item { display: flex; flex-direction: column; }

.watch-item > p:not(.bubble) { color: var(--ink-2); }

.watch-item .bubble { margin-top: auto; align-self: flex-start; }

@media (min-width: 900px) {
    .watch { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3rem; }
}

.how { display: grid; gap: 2.5rem; }

.steps {
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: step;
    display: grid;
    gap: 1.75rem;
}

.steps li {
    counter-increment: step;
    display: grid;
    grid-template-columns: 2.75rem 1fr;
    column-gap: .75rem;
}

.steps li::before {
    content: counter(step);
    grid-row: span 2;
    font-size: 2.25rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -.04em;
}

.steps h3 { margin-bottom: .25rem; }

.steps p { margin: 0; color: var(--ink-2); }

.aside-note {
    align-self: start;
    padding: 1.25rem 1.375rem;
    background: var(--paper-deep);
    border-radius: .75rem;
}

.aside-note h3 { font-size: 1.0625rem; margin-bottom: .375rem; }

.aside-note p { margin: 0; color: var(--ink-2); font-size: 1rem; }

@media (min-width: 900px) {
    .how { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 4rem; }
}

.cases { display: grid; gap: 2rem; margin: 0; }

.cases dt { font-weight: 700; font-size: 1.125rem; line-height: 1.3; }

.cases dd { margin: .5rem 0 0; color: var(--ink-2); }

@media (min-width: 760px) {
    .cases { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3rem; }
}

.faq-list details { border-bottom: 1px solid var(--rule); }

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

.faq-list summary {
    position: relative;
    padding: 1.125rem 2.5rem 1.125rem 0;
    font-weight: 500;
    font-size: 1.125rem;
    line-height: 1.35;
    list-style: none;
    cursor: pointer;
}

.faq-list summary::-webkit-details-marker { display: none; }

.faq-list summary::after {
    content: "+";
    position: absolute;
    right: .25rem;
    top: .95rem;
    font-size: 1.5rem;
    font-weight: 400;
    line-height: 1;
    color: var(--ink-2);
}

.faq-list details[open] summary::after { content: "−"; }

.faq-list details p { max-width: 64ch; margin: -.25rem 0 1.375rem; color: var(--ink-2); }

.more { margin: 1.75rem 0 0; font-weight: 500; }

.closing {
    background: var(--night);
    color: var(--night-ink);
    padding-block: 4rem;
    margin-top: 1.5rem;
}

.closing h2 { max-width: 20ch; }

.closing p { max-width: 46ch; color: var(--night-soft); margin-bottom: 1.75rem; }

.closing :focus-visible { outline-color: var(--night-ink); }

main:has(> .closing:last-child) + .site-footer { border-top: 0; }

/* ---------- Inner pages ---------- */

.narrow > h1:first-child { margin-top: 3rem; }

.lead { font-size: 1.1875rem; line-height: 1.5; color: var(--ink-2); margin-bottom: 2rem; }

.narrow { padding-bottom: 4rem; }

.meta { color: var(--ink-2); font-size: .9375rem; }

.qa-item { padding-block: 1.5rem; border-top: 1px solid var(--rule); }

.qa-item h2 { font-size: 1.3125rem; letter-spacing: -.01em; margin-bottom: .5rem; }

.qa-item p { margin: 0; color: var(--ink-2); }

.cta-box {
    margin-block: 3rem;
    padding: 1.5rem 1.5rem 1.75rem;
    background: var(--paper-deep);
    border-radius: .75rem;
}

.cta-box h2 { font-size: 1.375rem; letter-spacing: -.015em; margin-bottom: .5rem; }

.cta-box p { color: var(--ink-2); }

.cta-box > :last-child { margin-bottom: 0; }

.cta-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; }

/* Long-form text: blog, privacy, explanations */

.prose h2 { font-size: 1.5rem; letter-spacing: -.02em; margin: 2.25em 0 .6em; }

.prose h3 { font-size: 1.125rem; margin: 1.75em 0 .4em; }

.prose ul { padding-left: 1.25rem; margin: 0 0 1.25em; }

.prose li { margin-block: .4em; }

.prose li::marker { color: var(--ink-2); }

.prose code {
    font-size: .875em;
    padding: .1em .35em;
    background: var(--paper-deep);
    border-radius: .3rem;
    overflow-wrap: anywhere;
}

.prose pre {
    margin: 0 0 1.25em;
    padding: 1rem 1.125rem;
    background: var(--night);
    color: var(--night-ink);
    border-radius: .625rem;
    overflow-x: auto;
    font-size: .8125rem;
    line-height: 1.6;
    tab-size: 4;
}

.prose pre code { padding: 0; background: none; font-size: inherit; overflow-wrap: normal; }

.prose pre:focus-visible { outline-color: var(--ink); }

.explain { margin-top: 3.5rem; padding-top: .25rem; border-top: 2px solid var(--ink); }

.explain h2 { margin-top: 1.25rem; }

.crumbs {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-top: 2rem;
    font-size: .9375rem;
    color: var(--ink-2);
}

.post-header { margin-bottom: 2rem; }

.post-header h1 { margin-top: 1.25rem; }

.post > p:first-of-type { font-size: 1.1875rem; line-height: 1.55; }

.post-list { margin: 0; padding: 0; list-style: none; }

.post-list li { padding-block: 1.5rem; border-top: 1px solid var(--rule); }

.post-list a { font-size: 1.25rem; font-weight: 700; line-height: 1.3; letter-spacing: -.015em; text-decoration: none; }

.post-list a:hover { text-decoration: underline; }

.post-list p { margin: .5rem 0 .375rem; color: var(--ink-2); }

.post-list time { font-size: .875rem; color: var(--ink-2); }

/* ---------- Checker ---------- */

.check-form label { display: block; margin-bottom: .375rem; font-weight: 500; }

.check-row { display: flex; flex-wrap: wrap; gap: .5rem; }

.check-row input { flex: 1 1 10rem; width: auto; min-width: 0; }

.check-row .btn { flex: none; }

.field-hint { margin: .5rem 0 0; font-size: .875rem; color: var(--ink-2); }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.report {
    margin-top: 2.5rem;
    padding: 1.25rem 1.25rem .5rem;
    background: var(--sheet);
    border: 1.5px solid var(--ink);
    border-radius: .75rem;
}

.report h2 { font-size: 1.25rem; margin-bottom: .125rem; }

.report-url {
    margin: 0 0 .75rem;
    font-family: var(--font-mono);
    font-size: .875rem;
    color: var(--ink-2);
    overflow-wrap: anywhere;
}

.report dl { margin: 0; }

.report-row { padding-block: .875rem; border-top: 1px solid var(--rule); }

.report-row dt { font-weight: 500; font-size: .9375rem; color: var(--ink-2); }

.report-row dd { margin: .125rem 0 0; display: flex; align-items: baseline; gap: .625rem; }

.report-row .dot { position: relative; top: -.05em; }

.report-time { margin: 0; padding-block: .875rem; border-top: 1px solid var(--rule); font-size: .875rem; color: var(--ink-2); }

@media (min-width: 600px) {
    .report { padding: 1.5rem 1.75rem .5rem; }
    .report-row { display: grid; grid-template-columns: 13rem 1fr; gap: 1rem; }
    .report-row dt { font-size: 1rem; }
    .report-row dd { margin: 0; }
}

/* ---------- Forms (auth, dashboard, checker) ---------- */

.page-form {
    width: 100%;
    max-width: calc(26rem + 2 * var(--gutter));
    margin: 0 auto;
    padding: 3rem var(--gutter) 4.5rem;
}

.page-form h1 { font-size: 2.25rem; margin-bottom: 1.5rem; }

.form-field { margin-bottom: 1.125rem; }

.form-field > label { display: block; margin-bottom: .375rem; font-weight: 500; font-size: .9375rem; }

.form-field > label:has(input[type="checkbox"]) {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-weight: 400;
    font-size: 1rem;
    cursor: pointer;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="url"],
select {
    width: 100%;
    min-height: 2.875rem;
    padding: .625rem .875rem;
    border: 1.5px solid var(--edge);
    border-radius: var(--radius);
    background: var(--sheet);
    color: var(--ink);
    font: inherit;
    font-size: 1rem;
}

select {
    appearance: none;
    padding-right: 2.5rem;
    background-image: linear-gradient(45deg, transparent 50%, var(--ink-2) 50%), linear-gradient(135deg, var(--ink-2) 50%, transparent 50%);
    background-position: calc(100% - 1.15rem) 50%, calc(100% - .8rem) 50%;
    background-size: .35rem .35rem;
    background-repeat: no-repeat;
}

input::placeholder { color: #8a8377; }

input:focus,
select:focus {
    outline: none;
    border-color: var(--ink);
    box-shadow: 0 0 0 3px rgba(28, 27, 25, .14);
}

input[aria-invalid="true"] { border-color: var(--down); }

input[type="checkbox"] {
    width: 1.125rem;
    height: 1.125rem;
    margin: 0;
    accent-color: var(--ink);
}

.field-error { margin: .375rem 0 0; color: var(--down); font-size: .9375rem; }

.form-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1.75rem;
}

.alert,
.notice {
    margin: 0 0 1.5rem;
    padding: .75rem 1rem;
    background: var(--sheet);
    border: 1px solid var(--rule);
    border-radius: var(--radius);
    font-size: .9375rem;
}

.notice-warn { background: var(--paper-deep); border-color: transparent; border-left: 3px solid var(--ink); }

.smart-captcha { min-height: 100px; }

/* ---------- Dashboard ---------- */

.app-main { padding-block: 2.25rem 4.5rem; }

.app-main > h1 { font-size: 2.25rem; margin-bottom: 1.5rem; }

.app-main > form { max-width: 34rem; }

.table-wrap { margin-bottom: 1.5rem; }

.sites-table { width: 100%; border-collapse: collapse; }

.sites-table th {
    padding: .5rem .75rem;
    border-bottom: 1.5px solid var(--ink);
    font-size: .8125rem;
    font-weight: 500;
    color: var(--ink-2);
    text-align: left;
    white-space: nowrap;
}

.sites-table td {
    padding: .875rem .75rem;
    border-bottom: 1px solid var(--rule);
    vertical-align: middle;
}

.sites-table th:first-child,
.sites-table td:first-child { padding-left: 0; }

.sites-table .site-name { font-weight: 500; overflow-wrap: anywhere; }

.sites-table .site-name small { font-weight: 400; color: var(--ink-2); }

.sites-table .num { font-family: var(--font-mono); font-size: .875rem; white-space: nowrap; }

.row-actions { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; justify-content: flex-end; font-size: .9375rem; }

.row-actions form { margin: 0; }

/* On a phone every site becomes a small card. */
@media (max-width: 759px) {
    .sites-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

    .sites-table,
    .sites-table tbody,
    .sites-table tr,
    .sites-table td { display: block; }

    .sites-table tr {
        margin-bottom: .75rem;
        padding: .875rem 1rem;
        background: var(--sheet);
        border: 1px solid var(--rule);
        border-radius: .75rem;
    }

    .sites-table td,
    .sites-table td:first-child {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 1rem;
        padding: .25rem 0;
        border: 0;
    }

    .sites-table td[data-label]::before {
        content: attr(data-label);
        font-family: var(--font-sans);
        font-size: .875rem;
        color: var(--ink-2);
    }

    .sites-table .site-name { display: block; font-size: 1.0625rem; margin-bottom: .25rem; }

    .sites-table .row-actions {
        justify-content: flex-start;
        margin-top: .5rem;
        padding-top: .625rem;
        border-top: 1px solid var(--rule);
    }
}

.settings-section {
    max-width: 34rem;
    margin-top: 2.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--rule);
}

.settings-section h2 { font-size: 1.375rem; }

.danger-zone { margin-top: 2.5rem; }

.danger-zone .link { color: var(--down); }

/* ---------- Motion ---------- */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after { animation: none !important; transition: none !important; }
}
