/* Telão site: neutral black with an amber accent, like the TV app. No JavaScript. */
:root {
    --bg: #0d0d0d;
    --surface: #171717;
    --surface-2: #202020;
    --line: #2e2e2e;
    --text: #f2f2f2;
    --muted: #a3a3a3;
    --accent: #f5a524;
    --accent-ink: #1a1203;
    --danger: #f87171;
    --ok: #4ade80;
    --radius: 10px;
    color-scheme: dark;
}

* { box-sizing: border-box; }

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

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a { color: var(--accent); }

.top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 20px;
    border-bottom: 1px solid var(--line);
}

.brand { color: var(--text); font-weight: 800; font-size: 1.3rem; text-decoration: none; letter-spacing: .02em; }
.brand::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 2px; background: var(--accent); margin-right: 8px; }

nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; }
nav a { color: var(--muted); text-decoration: none; }
nav a:hover { color: var(--text); }

main { flex: 1; width: 100%; max-width: 920px; margin: 0 auto; padding: 24px 16px 40px; }

.foot { border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; text-align: center; padding: 16px; }
.foot p { margin: 4px 0; }

h1 { font-size: 1.7rem; margin: 0 0 16px; }
h2 { font-size: 1.2rem; margin: 0 0 12px; }

.card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 18px;
    margin-bottom: 16px;
}

.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

.muted { color: var(--muted); }
.small { font-size: .9rem; }
.mono { font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; letter-spacing: .04em; }
.big { font-size: 1.5rem; font-weight: 700; }

label { display: block; font-weight: 600; margin: 12px 0 4px; }
.hint { display: block; color: var(--muted); font-weight: 400; font-size: .9rem; }

input[type=text], input[type=email], input[type=password], input[type=url], input[type=number], select, textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface-2);
    color: var(--text);
    font: inherit;
}

input:focus, select:focus, textarea:focus, button:focus, a:focus { outline: 2px solid var(--accent); outline-offset: 2px; }

.check { display: flex; align-items: center; gap: 8px; font-weight: 400; }

button, .button {
    display: inline-block;
    margin-top: 14px;
    padding: 10px 18px;
    border: 0;
    border-radius: 8px;
    background: var(--accent);
    color: var(--accent-ink);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
}

button.secondary, .button.secondary { background: var(--surface-2); color: var(--text); border: 1px solid var(--line); }
button.danger { background: transparent; color: var(--danger); border: 1px solid var(--danger); }
button.link { background: none; border: 0; padding: 0; margin: 0; color: var(--muted); font-weight: 400; }
button.link:hover { color: var(--text); }

form.inline { display: inline; }
.actions { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; }

.errors { border: 1px solid var(--danger); color: var(--danger); border-radius: 8px; padding: 8px 14px; margin-bottom: 16px; }
.errors ul { margin: 0; padding-left: 18px; }
.flash { border: 1px solid var(--ok); color: var(--ok); border-radius: 8px; padding: 10px 14px; }

table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 600; font-size: .9rem; }
.table-wrap { overflow-x: auto; }

.badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .85rem; font-weight: 700; border: 1px solid var(--line); }
.badge.trial { color: var(--accent); border-color: var(--accent); }
.badge.active { color: var(--ok); border-color: var(--ok); }
.badge.expired { color: var(--danger); border-color: var(--danger); }

.secret { background: var(--surface-2); border: 1px dashed var(--accent); border-radius: 8px; padding: 10px 14px; font-size: 1.3rem; }

ul.plain { list-style: none; padding: 0; margin: 0; }
ul.plain li { padding: 8px 0; border-bottom: 1px solid var(--line); }
ul.plain li:last-child { border-bottom: 0; }

@media (max-width: 520px) {
    .top { padding: 12px 16px; }
    h1 { font-size: 1.4rem; }
}
