:root { color-scheme: light; --ink:#202124; --muted:#62666a; --line:#d9dcdf; --accent:#245b85; }
* { box-sizing:border-box; }
body { margin:0; color:var(--ink); background:#f7f7f5; font:16px/1.5 system-ui,-apple-system,Segoe UI,sans-serif; }
.container { width:min(100% - 2rem, 980px); margin:2.5rem auto; background:white; padding:clamp(1.25rem,4vw,3rem); border:1px solid #e4e4e0; }
h1 { font-family:Georgia,serif; font-size:clamp(2rem,5vw,3rem); line-height:1.1; margin-top:0; }
h2 { margin-top:2.2rem; border-bottom:1px solid var(--line); padding-bottom:.4rem; }
a { color:var(--accent); }
form { max-width:620px; }
label { display:block; font-weight:650; margin:0 0 1rem; }
label small { float:right; color:var(--muted); font-weight:400; }
input,textarea,select { width:100%; margin-top:.35rem; padding:.7rem; border:1px solid #aeb3b7; border-radius:3px; background:white; color:inherit; font:inherit; }
textarea { resize:vertical; }
button,.button { display:inline-block; border:0; border-radius:3px; background:var(--accent); color:white; padding:.65rem 1rem; font-weight:700; font:inherit; text-decoration:none; cursor:pointer; }
.secondary { color:var(--ink); background:#e9eaeb; }
.danger { background:#9b302b; }
.form-layout { display:grid; grid-template-columns:minmax(0,1.5fr) minmax(240px,1fr); gap:3rem; align-items:start; }
.form-layout aside { position:sticky; top:1rem; }
.ad-preview { border:1px solid #cfd3d5; padding:16px; background:#fff; font-family:Arial,sans-serif; }
.ad-preview strong { display:block; font-size:16px; line-height:1.25; }
.ad-preview p { margin:8px 0 10px; font-size:14px; line-height:1.45; }
.ad-preview a { font-size:13px; font-weight:bold; text-decoration:none; }
.flash,.notice { margin:0 0 1.5rem; padding:1rem; border-left:4px solid var(--accent); background:#eef5fa; }
.flash.error { border-color:#a12c26; background:#fff0ef; }
.flash.success { border-color:#387b45; background:#eff8f0; }
.admin-header,.actions { display:flex; gap:.7rem; align-items:center; flex-wrap:wrap; }
.admin-header { justify-content:space-between; }
.admin-header form,.actions form { margin:0; }
.admin-ad { border:1px solid var(--line); padding:1rem 1.25rem; margin:1rem 0; }
.admin-ad.disabled { opacity:.65; border-style:dashed; }
.admin-ad h3 { margin:.1rem 0; }
dl { display:grid; grid-template-columns:140px 1fr; font-size:.9rem; }
dt { font-weight:700; } dd { margin:0; overflow-wrap:anywhere; }
.actions { border-top:1px solid var(--line); margin-top:1rem; padding-top:1rem; }
.actions select { width:auto; margin:0; }
.count { color:var(--muted); font-size:.8em; }
.muted { color:var(--muted); }
.message,.login { max-width:620px; margin:auto; }
@media (max-width:720px) { .form-layout { grid-template-columns:1fr; } .form-layout aside { position:static; } dl { grid-template-columns:1fr; } dd { margin-bottom:.5rem; } }
