* { box-sizing: border-box; }
body { font-family: system-ui, sans-serif; margin: 0; background: #f2f4f8; color: #1a1a2e; }
header { display: flex; justify-content: space-between; align-items: center; background: #1a1a2e; color: #fff; padding: 12px 16px; position: sticky; top: 0; z-index: 10; }
header h1 { font-size: 20px; margin: 0; }
#menu { display: flex; gap: 4px; background: #23233d; padding: 8px 10px; overflow-x: auto; position: sticky; top: 49px; z-index: 9; }
.menu-btn { background: transparent; color: #c7cbe0; border: 0; padding: 9px 16px; border-radius: 8px; font-size: 15px; cursor: pointer; white-space: nowrap; }
.menu-btn.active { background: #2563eb; color: #fff; }
.subtabs { display: flex; gap: 6px; margin: 14px 14px 0; }
.sub-btn { background: #e2e8f0; color: #1a1a2e; border: 0; padding: 9px 18px; border-radius: 8px; font-size: 15px; cursor: pointer; }
.sub-btn.active { background: #2563eb; color: #fff; }
.card { background: #fff; margin: 14px; padding: 16px; border-radius: 10px; box-shadow: 0 1px 4px rgba(0,0,0,.08); }
.card.auth { max-width: 420px; margin: 40px auto; }
.card h2 { margin-top: 0; font-size: 17px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; margin: 14px; }
.stat { background: #fff; border-radius: 10px; padding: 14px; box-shadow: 0 1px 4px rgba(0,0,0,.08); text-align: center; }
.stat .num { font-size: 26px; font-weight: 700; color: #2563eb; }
.stat .lbl { font-size: 12px; color: #555; }
input, select, textarea { width: 100%; padding: 10px; margin: 6px 0; border: 1px solid #cbd2e0; border-radius: 8px; font-size: 15px; }
button { background: #2563eb; color: #fff; border: 0; padding: 10px 16px; border-radius: 8px; font-size: 15px; cursor: pointer; margin: 6px 0; }
button.ghost { background: transparent; color: #2563eb; border: 1px solid #2563eb; }
header button.ghost { color: #fff; border-color: #fff; }
button.danger { background: #dc2626; }
button.small { padding: 5px 10px; font-size: 13px; }
.row { display: flex; gap: 8px; }
.row input, .row select { flex: 1; }
.hint { color: #555; font-size: 13px; }
.error { color: #dc2626; font-size: 14px; }
.hidden { display: none !important; }
.notice { margin: 14px; padding: 12px; border-radius: 8px; background: #dcfce7; color: #166534; }
.notice.bad { background: #fee2e2; color: #991b1b; }
.client { background: #fff; margin: 14px; padding: 16px; border-radius: 10px; box-shadow: 0 1px 4px rgba(0,0,0,.08); }
.client h3 { margin: 0 0 6px; font-size: 16px; }
.page-row, .post-row, .batch-row { display: flex; align-items: center; gap: 8px; padding: 6px 0; border-bottom: 1px solid #eef2f7; font-size: 14px; flex-wrap: wrap; }
.page-row img { width: 28px; height: 28px; border-radius: 50%; }
.badge { font-size: 11px; padding: 2px 8px; border-radius: 20px; background: #e2e8f0; }
.badge.posted { background: #dcfce7; color: #166534; }
.badge.failed { background: #fee2e2; color: #991b1b; }
.badge.pending, .badge.queued, .badge.scheduled, .badge.publishing { background: #fef9c3; color: #854d0e; }
label { font-size: 13px; color: #444; display: block; margin-top: 8px; }
.check { display: flex; align-items: center; gap: 8px; padding: 4px 0; font-size: 14px; }
.check input { width: auto; margin: 0; }
