:root { --navy:#0f2740; --red:#cf4537; --bg:#f0f4f8; --line:#d8dee6; --muted:#5b6573; }
* { box-sizing: border-box; }
body { margin:0; font:14px/1.45 -apple-system, "Segoe UI", Arial, sans-serif; color:var(--navy); background:var(--bg); }
.top { display:flex; justify-content:space-between; align-items:center; padding:12px 20px; background:var(--navy); color:#fff; }
.brand { font-weight:700; letter-spacing:.3px; }
.who button.link { color:#fff; }
main { max-width:1180px; margin:20px auto; padding:0 16px; }
.card { background:#fff; border:1px solid var(--line); border-radius:10px; padding:18px 20px; margin-bottom:16px; }
.card.narrow { max-width:420px; margin:60px auto; }
h1,h2,h3 { margin:0 0 12px; }
h2 { font-size:18px; }
label { display:block; margin:0 0 10px; font-weight:600; font-size:13px; }
label input, label select, textarea { display:block; width:100%; margin-top:4px; padding:8px 10px; border:1px solid var(--line); border-radius:6px; font:inherit; font-weight:400; }
label.inline { display:inline-flex; gap:8px; align-items:center; }
label.inline select { width:auto; margin:0; }
label.check { display:flex; gap:8px; align-items:center; font-weight:400; }
label.check input { width:auto; margin:0; }
textarea { font:12px/1.4 ui-monospace, Menlo, Consolas, monospace; }
button { background:var(--navy); color:#fff; border:0; border-radius:6px; padding:8px 14px; font:inherit; font-weight:600; cursor:pointer; }
button.secondary { background:#e7ecf2; color:var(--navy); }
button.danger { background:#fff; color:var(--red); border:1px solid var(--red); }
button.go { background:var(--red); }
button.link { background:none; padding:0; text-decoration:underline; font-weight:400; }
button:disabled { opacity:.5; cursor:default; }
.tabs { display:flex; gap:6px; margin-bottom:14px; flex-wrap:wrap; }
.tabs button { background:#fff; color:var(--navy); border:1px solid var(--line); }
.tabs button.active { background:var(--navy); color:#fff; }
.grid { width:100%; border-collapse:collapse; }
.grid th, .grid td { text-align:left; padding:7px 8px; border-bottom:1px solid var(--line); vertical-align:middle; }
.grid th { font-size:12px; color:var(--muted); text-transform:uppercase; letter-spacing:.4px; }
.grid tr.off td { color:#9aa3ad; }
.row-between { display:flex; justify-content:space-between; align-items:center; gap:10px; }
.two { display:grid; grid-template-columns:1fr 1fr; gap:16px; }
@media (max-width: 900px) { .two { grid-template-columns:1fr; } .grid { font-size:12px; } }
.actions { display:flex; gap:8px; flex-wrap:wrap; }
.muted { color:var(--muted); font-size:13px; }
.msg { min-height:1.2em; font-size:13px; }
.msg.err { color:var(--red); }
.msg.ok { color:#1d7a46; }
.pill { display:inline-block; padding:2px 8px; border-radius:20px; font-size:12px; font-weight:600; background:#e7ecf2; }
.pill.live { background:#d9f2e3; color:#1d7a46; }
.pill.draft { background:#fff3d6; color:#8a5a00; }
.preview-frame { border:1px solid var(--line); border-radius:8px; background:#fff; padding:8px; overflow:auto; }
.preview-frame iframe { width:100%; min-width:620px; height:380px; border:0; }
dialog { border:1px solid var(--line); border-radius:10px; width:min(460px, 94vw); }
.assets { display:grid; grid-template-columns:repeat(auto-fill, minmax(240px, 1fr)); gap:12px; }
.asset { border:1px solid var(--line); border-radius:8px; padding:8px; font-size:12px; word-break:break-all; }
.asset img { max-width:100%; max-height:120px; display:block; margin-bottom:6px; background:#f6f8fa; }
.asset button { margin-top:6px; padding:4px 8px; font-size:12px; }
