* { box-sizing: border-box; }
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    margin: 0;
    background: #0f1115;
    color: #e6e8eb;
    line-height: 1.5;
}
.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 28px;
    background: #181b21;
    border-bottom: 1px solid #262a33;
}
.brand {
    font-weight: 700;
    font-size: 18px;
    color: #fff;
    text-decoration: none;
}
.topbar nav a {
    color: #b6bac3;
    text-decoration: none;
    margin-left: 20px;
}
.topbar nav a:hover { color: #fff; }
.container {
    max-width: 1100px;
    margin: 28px auto;
    padding: 0 28px;
}
h1, h2, h3 { color: #fff; margin-top: 0; }
a { color: #6da6ff; }
button, .btn {
    background: #2d5bff;
    color: #fff;
    border: none;
    padding: 9px 18px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    text-decoration: none;
    display: inline-block;
}
button:hover, .btn:hover { background: #1a47ee; }
.btn-secondary { background: #3a404b; }
.btn-secondary:hover { background: #4a515e; }
.btn-danger { background: #d64747; }
.btn-danger:hover { background: #b83838; }
input[type=text], input[type=password], input[type=number], input[type=email], textarea, select {
    background: #181b21;
    border: 1px solid #2d323c;
    color: #e6e8eb;
    padding: 9px 12px;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    width: 100%;
}
textarea { min-height: 120px; resize: vertical; font-family: "SF Mono", Menlo, Consolas, monospace; font-size: 13px; }
label { display: block; margin-bottom: 4px; font-size: 13px; color: #b6bac3; }
.field { margin-bottom: 14px; }
.card {
    background: #181b21;
    border: 1px solid #262a33;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 18px;
}
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid #262a33; font-size: 14px; }
th { color: #9ba1ad; font-weight: 500; }
.badge {
    display: inline-block;
    padding: 2px 9px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}
.badge-generated { background: #2d3a52; color: #7aa3ff; }
.badge-published { background: #1f3a2a; color: #6fd690; }
.badge-failed { background: #3a1f1f; color: #e88585; }
.badge-publishing { background: #3a301f; color: #e8c285; }
.flash {
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 18px;
    font-size: 14px;
}
.flash-info { background: #1f2a3a; color: #9ec5ff; }
.flash-success { background: #1f3a2a; color: #8fd9a3; }
.flash-error { background: #3a1f1f; color: #e88585; }
.row { display: flex; gap: 14px; }
.row > * { flex: 1; }
.muted { color: #8b909b; font-size: 13px; }
.post-content { white-space: pre-wrap; max-width: 500px; overflow: hidden; text-overflow: ellipsis; }
.login-box { max-width: 360px; margin: 80px auto; }
