:root {
    --bg: #14120f;
    --card: #1e1b17;
    --line: rgba(244, 239, 230, 0.12);
    --text: #f4efe6;
    --muted: #a3988c;
    --accent: #ef8f4a;
    --accent-ink: #2a1608;
    --warn: #e7b15a;
    --ok: #8fbf7a;
    --danger: #e15b4a;
    color-scheme: dark;
}

* { box-sizing: border-box; }
body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(900px 420px at 10% -10%, rgba(239, 143, 74, 0.16), transparent 60%),
        var(--bg);
    color: var(--text);
    font-family: Outfit, sans-serif;
    font-size: 16px;
    line-height: 1.45;
}
main { width: min(1120px, calc(100% - 32px)); margin: 0 auto 64px; }
h1, h2 { font-family: Literata, serif; font-weight: 560; letter-spacing: -0.03em; }
h1 { font-size: clamp(2rem, 4vw, 3.2rem); margin: 0 0 8px; }
h2 { margin: 0 0 8px; font-size: 1.4rem; }
a { color: inherit; }
code { font-family: inherit; color: var(--accent); }
.eyebrow { margin: 0 0 6px; color: var(--accent); text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.75rem; }
.lede, .hint, .muted { color: var(--muted); }
.lede { max-width: 62ch; }

.top {
    display: flex;
    align-items: center;
    gap: 18px;
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
    padding: 18px 0;
}
.mark { font-family: Literata, serif; font-size: 1.25rem; text-decoration: none; }
.mark span { color: var(--accent); }
.top nav { display: flex; gap: 14px; }
.top nav a { text-decoration: none; color: var(--muted); }
.top nav a:hover { color: var(--text); }
.top form { margin-left: auto; }

.banner {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto 16px;
    padding: 10px 14px;
    border-radius: 12px;
    background: rgba(239, 143, 74, 0.12);
}
.banner.warn { background: rgba(225, 91, 74, 0.15); }
.card, .shot {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 16px;
    margin: 0 0 16px;
}
label { display: grid; gap: 6px; font-size: 0.92rem; color: var(--muted); }
input, select, textarea, button {
    font: inherit;
    color: var(--text);
}
input, select, textarea {
    width: 100%;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: #12100d;
}
textarea { resize: vertical; }
button {
    border: 0;
    border-radius: 999px;
    padding: 10px 16px;
    background: var(--accent);
    color: var(--accent-ink);
    font-weight: 600;
    cursor: pointer;
}
button.ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }
button.danger { background: transparent; color: var(--danger); border: 1px solid rgba(225, 91, 74, 0.4); }
.stack { display: grid; gap: 12px; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.split-head, .layout { display: grid; gap: 24px; }
.split-head { grid-template-columns: 1.4fr 0.8fr; align-items: end; margin-bottom: 22px; }
.layout { grid-template-columns: minmax(0, 1fr) 300px; align-items: start; }
.grid-form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.grid-form .wide, .grid-form button { grid-column: 1 / -1; }
.row2, .row3 { display: grid; gap: 12px; }
.row2 { grid-template-columns: 1fr 1fr; }
.row3 { grid-template-columns: 1fr 1fr 1fr; }
.preset-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 18px; }
.cards, .links { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 10px; }
.cards { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.cards a, .links li {
    display: grid;
    gap: 4px;
    padding: 14px;
    border-radius: 16px;
    background: var(--card);
    border: 1px solid var(--line);
    text-decoration: none;
}
.pill { display: inline-block; width: fit-content; padding: 2px 8px; border-radius: 999px; background: #2a2621; color: var(--muted); font-size: 0.78rem; }
.pill.ready, .pill.done { color: var(--ok); }
.pill.running, .pill.queued { color: var(--warn); }
.pill.failed { color: var(--danger); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0; }
.chip { background: #2a241d; color: var(--text); border-radius: 999px; }
.chip em { color: var(--muted); font-style: normal; font-weight: 400; }
.thumbs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.thumbs figure { margin: 0; width: 120px; }
.thumbs img, .shot img, .shot video { width: 100%; border-radius: 12px; display: block; }
.shot video { max-height: 420px; background: #000; margin-top: 10px; }
.swatch { display: inline-block; width: 12px; height: 12px; border-radius: 99px; vertical-align: -1px; }
audio { width: 100%; margin-top: 6px; }
.login { max-width: 460px; margin: 10vh auto; }
.log {
    white-space: pre-wrap;
    background: #100e0c;
    border-radius: 12px;
    padding: 12px;
    color: var(--muted);
    max-height: 180px;
    overflow: auto;
}
.phone { position: sticky; top: 16px; }
.bezel {
    background: #0c0b09;
    border: 1px solid var(--line);
    border-radius: 28px;
    min-height: 520px;
    padding: 12px;
    display: grid;
    place-items: center;
    overflow: hidden;
}
.bezel video, .bezel img { width: 100%; height: 100%; object-fit: cover; border-radius: 18px; max-height: 560px; }
.bezel ol { list-style: none; padding: 0; margin: 0; width: 100%; display: grid; gap: 8px; }
.bezel li {
    aspect-ratio: 9 / 12;
    border-radius: 16px;
    overflow: hidden;
    background: #221e19;
    display: grid;
    place-items: center;
    color: var(--muted);
}
.empty { color: var(--muted); }

@media (max-width: 860px) {
    .split-head, .layout, .preset-grid, .grid-form, .row2, .row3 { grid-template-columns: 1fr; }
    .phone { position: static; }
    .top { flex-wrap: wrap; }
}
