* { box-sizing: border-box; }
body { margin: 0; font: 15px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif; color: #1b1b1b; background: #f5f5f5; }
a { color: #0b5cad; }
.top { display: flex; align-items: center; gap: 18px; background: #111; color: #fff; padding: 0 16px; min-height: 52px; flex-wrap: wrap; }
.top a { color: #ddd; text-decoration: none; }
.top .brand { color: #fff; font-weight: 800; }
.top nav { display: flex; gap: 4px; flex: 1; flex-wrap: wrap; }
.top nav a { padding: 6px 10px; border-radius: 6px; }
.top nav a.on, .top nav a:hover { background: #333; color: #fff; }
.top .who a { margin-left: 12px; font-size: 14px; }
.body { max-width: 1240px; margin: 0 auto; padding: 20px 16px 60px; }
h1 { font-size: 24px; margin: 6px 0 16px; }
h2 { font-size: 17px; margin: 0 0 10px; }
h3 { font-size: 15px; }
.muted { color: #6b6b6b; }
.small { font-size: 13px; }
.nowrap { white-space: nowrap; }
.box { background: #fff; border: 1px solid #ddd; border-radius: 8px; padding: 16px; margin-bottom: 16px; }
.cols2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin-bottom: 16px; }
.stats div { background: #fff; border: 1px solid #ddd; border-radius: 8px; padding: 14px; }
.stats b { display: block; font-size: 26px; }
.stats span { color: #6b6b6b; font-size: 13px; }
table { width: 100%; border-collapse: collapse; background: #fff; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid #e6e6e6; vertical-align: top; }
th { background: #fafafa; font-size: 13px; }
.list { border: 1px solid #ddd; border-radius: 8px; overflow: hidden; }
.trunc { max-width: 380px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.btn { display: inline-block; background: #111; color: #fff; border: 0; border-radius: 6px; padding: 8px 14px; font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; }
.btn:hover { background: #333; color: #fff; }
.btn-2 { background: #fff; color: #111; border: 1px solid #bbb; }
.btn-2:hover { background: #eee; color: #111; }
.btn-danger { background: #a3261c; }
.btn.wide { width: 100%; }
.link-btn { background: none; border: 0; color: #a3261c; cursor: pointer; padding: 0; font: inherit; }
.inline { display: inline-block; margin: 0 6px 8px 0; }
.flash { padding: 10px 14px; border-radius: 6px; background: #e6f4ea; border: 1px solid #b7dfc3; }
.flash-err { background: #fdecea; border-color: #f3c0bb; }
.flash-warn { background: #fff5e0; border-color: #f0d49a; }
.head-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; align-items: center; }
.filters input, .filters select, .bulk select, .bulk input { padding: 7px 9px; border: 1px solid #ccc; border-radius: 6px; font: inherit; }
.bulk { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 10px; }
.pill { font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 99px; background: #eee; }
.pill-published { background: #e6f4ea; color: #1d6b35; }
.pill-scheduled { background: #e7f0fb; color: #0b5cad; }
.pill-draft { background: #f1f1f1; color: #555; }
.pager a { display: inline-block; padding: 4px 10px; border: 1px solid #ccc; border-radius: 6px; margin-right: 4px; text-decoration: none; background: #fff; }
.pager a.on { background: #111; color: #fff; }
.edit label { display: block; font-weight: 600; margin-bottom: 12px; }
.edit input:not([type=checkbox]), .edit select, .edit textarea, .login input { display: block; width: 100%; margin-top: 4px; padding: 8px 10px; border: 1px solid #ccc; border-radius: 6px; font: inherit; font-weight: 400; background: #fff; }
.edit label.chk, label.chk { font-weight: 400; display: flex; gap: 8px; align-items: center; }
.mono { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 13px; }
.edit-grid { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 20px; }
.edit-side .box { padding: 14px; }
.narrow { max-width: 760px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.danger-zone { margin-top: 10px; }
pre { background: #f3f3f3; padding: 10px; border-radius: 6px; overflow-x: auto; white-space: pre-wrap; }
.warn-list li { color: #8a5a00; }
.login { max-width: 360px; margin: 80px auto; background: #fff; border: 1px solid #ddd; border-radius: 8px; padding: 24px; }
.login label { display: block; font-weight: 600; margin-bottom: 12px; }
.login h1 { font-size: 20px; }
@media (max-width: 900px) { .cols2, .edit-grid, .row2 { grid-template-columns: 1fr; } }
