/*
 * Feature 071 — the web surface's only stylesheet. Served from 'self' (CSP style-src).
 *
 * Palette from the MiTrackingBot logo: brand red, soft pink dots, charcoal outlines, kraft-box beige. The accent is a
 * slightly deeper red than the logo's #FF0000 so white button text keeps a 4.5:1 contrast.
 */
:root {
    --text: #3f434b;
    --muted: #6b6f78;
    --surface: #ffffff;
    --background: #fbf5ec;
    --accent: #d40000;
    --accent-soft: #ff9a9a;
    --kraft: #f3dfc3;
    --border: #e4d3ba;
}

@media (prefers-color-scheme: dark) {
    :root {
        --text: #f3dfc3;
        --muted: #cbbba4;
        --surface: #2a2d33;
        --background: #1d1f23;
        --accent: #e53935;
        --accent-soft: #ff9a9a;
        --kraft: #4a4e57;
        --border: #4a4e57;
    }
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
    color: var(--text);
    background: var(--background);
    line-height: 1.5;
}

.site-header {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 16px;
    background: var(--accent);
    border-bottom: 4px solid var(--accent-soft);
}

.site-header a, .site-header button.secondary { color: #fff; border-color: #fff; }

.brand { font-weight: 700; color: #fff; text-decoration: none; }

.content { max-width: 44rem; margin: 0 auto; padding: 1rem 16px 3rem; }

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1rem;
    margin: 1rem 0;
}

label { display: block; font-weight: 600; margin-bottom: 0.25rem; }

input[type="text"], select {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--background);
    color: var(--text);
    font: inherit;
}

button, .button {
    display: inline-block;
    margin-top: 0.5rem;
    padding: 0.5rem 1rem;
    border: 0;
    border-radius: 6px;
    background: var(--accent);
    color: #fff;
    font: inherit;
    cursor: pointer;
    text-decoration: none;
}

button.secondary { background: transparent; color: var(--accent); border: 1px solid var(--accent); }

.inline { display: inline; }

.notice { padding: 0.75rem; border-left: 4px solid var(--accent); background: var(--kraft); }

.field-error { color: var(--accent); font-weight: 600; margin: 0.25rem 0 0.75rem; }

h1, h2 { color: var(--accent); }

.muted { color: var(--muted); }

.carriers, .followings { list-style: none; padding: 0; margin: 0; }

.carriers li, .followings li { padding: 0.5rem 0; border-bottom: 1px solid var(--border); }

.actions { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
