* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: -apple-system, "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
    background: #f4f5f7;
    color: #1a1a1a;
}
.layout { display: flex; min-height: 100vh; }
.sidebar {
    width: 220px;
    background: #1f2430;
    color: #fff;
    padding: 20px 0;
    flex-shrink: 0;
}
.sidebar .brand { font-size: 15px; font-weight: 700; padding: 0 20px 16px; opacity: .85; }
.sidebar nav a {
    display: block;
    padding: 10px 20px;
    color: rgba(255,255,255,.8);
    text-decoration: none;
    font-size: 14px;
}
.sidebar nav a.active, .sidebar nav a:hover { background: rgba(255,255,255,.08); color: #fff; }
.content { flex: 1; padding: 28px 32px; max-width: 960px; }
h1 { font-size: 20px; margin: 0 0 16px; }
.panel { background: #fff; border-radius: 10px; padding: 20px; margin-bottom: 20px; box-shadow: 0 1px 2px rgba(0,0,0,.06); }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid #eee; }
th { color: #888; font-weight: 600; font-size: 12px; text-transform: uppercase; }
.btn { display: inline-block; padding: 8px 16px; border-radius: 6px; background: #2f6feb; color: #fff; text-decoration: none; border: none; font-size: 14px; cursor: pointer; }
.btn.secondary { background: #eee; color: #333; }
.badge { display: inline-block; padding: 2px 8px; border-radius: 10px; font-size: 12px; }
.badge.active { background: #e6f4ea; color: #1a7f37; }
.badge.suspended { background: #fdecea; color: #b42318; }
.badge.trial { background: #fff4e5; color: #a15c00; }
.badge.draft { background: #f0f0f0; color: #666; }
.badge.published { background: #e6f4ea; color: #1a7f37; }
.badge.archived { background: #f0f0f0; color: #999; }
.error-box { background: #fdecea; color: #b42318; padding: 10px 14px; border-radius: 8px; margin-bottom: 16px; font-size: 14px; }
.success-box { background: #e6f4ea; color: #1a7f37; padding: 10px 14px; border-radius: 8px; margin-bottom: 16px; font-size: 14px; }
.stack-form label { display: block; font-size: 13px; color: #555; margin: 12px 0 4px; }
.stack-form input, .stack-form textarea, .stack-form select { width: 100%; padding: 9px 10px; border: 1px solid #ddd; border-radius: 6px; font-size: 14px; }
.login-wrapper { max-width: 340px; margin: 80px auto; padding: 0 16px; }
.login-wrapper h1 { text-align: center; }
.inline-form { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; margin-bottom: 16px; }
.inline-form label { display: block; font-size: 12px; color: #888; margin-bottom: 4px; }
