* { box-sizing: border-box; }
body { margin: 0; font: 15px/1.5 system-ui, -apple-system, Segoe UI, sans-serif; color: #1d2433; background: #f5f6f8; }
a { color: #2457d6; }
code { font: 13px ui-monospace, SFMono-Regular, Menlo, monospace; }
.top { display: flex; align-items: center; gap: 18px; padding: 0 20px; height: 52px; background: #1d2433; color: #fff; position: sticky; top: 0; z-index: 10; }
.top a { color: #c9d2e3; text-decoration: none; }
.top .brand { color: #fff; font-weight: 700; }
.top nav { display: flex; gap: 4px; }
.top nav a { padding: 6px 10px; border-radius: 6px; }
.top nav a.active, .top nav a:hover { background: #2f3a52; color: #fff; }
.spacer { flex: 1; }
.pending { background: #f0b46c; color: #1d2433 !important; padding: 3px 9px; border-radius: 12px; font-size: 13px; font-weight: 600; }
.roles { display: flex; background: #2f3a52; border-radius: 8px; padding: 3px; }
.roles a { padding: 4px 10px; border-radius: 6px; font-size: 13px; }
.roles a.on { background: #fff; color: #1d2433; font-weight: 600; }
.page { max-width: 1100px; margin: 0 auto; padding: 24px 20px 60px; }
.page.wide { max-width: none; padding: 0; }
h1 { font-size: 24px; margin: 0 0 16px; }
h2 { font-size: 17px; margin: 0 0 10px; }
.lead { color: #4a5568; margin-top: -8px; }
.muted { color: #6b7385; }
.small { font-size: 13px; }
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.card { background: #fff; border: 1px solid #e1e5ec; border-radius: 10px; padding: 16px 18px; margin-bottom: 16px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 10px 0 0; }
.inline { display: inline-flex; gap: 6px; align-items: center; margin: 0; }
input, select, textarea { font: inherit; padding: 6px 8px; border: 1px solid #c8cfdb; border-radius: 6px; }
.btn { display: inline-block; font: inherit; padding: 7px 14px; border-radius: 6px; border: 1px solid #c8cfdb; background: #fff; color: #1d2433; cursor: pointer; text-decoration: none; }
.btn:hover { background: #f0f2f6; }
.btn.primary { background: #2457d6; border-color: #2457d6; color: #fff; }
.btn.primary:hover { background: #1c46b0; }
.btn.danger { color: #b42318; border-color: #f1b3ad; }
.btn.small { padding: 3px 9px; font-size: 13px; }
.note { padding: 10px 14px; border-radius: 8px; margin-bottom: 16px; }
.note.ok { background: #e7f6ec; border: 1px solid #a6dab6; }
.note.err { background: #fdecea; border: 1px solid #f1b3ad; }
.tag { display: inline-block; font-size: 12px; padding: 1px 7px; border-radius: 10px; background: #eef1f6; color: #4a5568; }
.tag.added { background: #e7f6ec; color: #1e7b3c; }
.tag.modified { background: #fff4e5; color: #9a5b00; }
.tag.deleted { background: #fdecea; color: #b42318; }
.tag.live { background: #2457d6; color: #fff; }
.changes { list-style: none; padding: 0; margin: 0; max-height: 300px; overflow: auto; }
.changes li { padding: 3px 0; }
table.list { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid #e1e5ec; border-radius: 10px; overflow: hidden; }
table.list td, table.list th { padding: 8px 12px; border-bottom: 1px solid #eef1f6; text-align: left; vertical-align: middle; }
table.list tr.current { background: #f3f7ff; }
td.actions { text-align: right; white-space: nowrap; }
td.actions > * { margin-left: 8px; }
td.thumb { width: 72px; }
td.thumb img { width: 64px; height: 48px; object-fit: cover; border-radius: 4px; background: #eef1f6; }
.filters a { margin-right: 10px; text-decoration: none; padding: 2px 8px; border-radius: 10px; }
.filters a.on { background: #1d2433; color: #fff; }
@media (max-width: 800px) { .cols { grid-template-columns: 1fr; } }
.pending.hidden { display: none; }
.who { color: #fff !important; font-size: 14px; }
.btn.ghost { background: transparent; color: #c9d2e3; border-color: #46526b; }
.btn.ghost:hover { background: #2f3a52; }
body.login { display: grid; place-items: center; min-height: 100vh; }
.login-card { width: 340px; display: grid; gap: 12px; }
.login-card h1 { margin: 0 0 4px; }
.login-card label, .form-grid label { display: grid; gap: 4px; font-size: 14px; }
.form-grid { display: grid; gap: 12px; max-width: 420px; }
