* { box-sizing: border-box; }
body {
    font-family: -apple-system, "Segoe UI", Arial, sans-serif;
    margin: 0;
    background: #f4f5f7;
    color: #1f2328;
}
.topbar {
    background: #1e293b;
    color: #fff;
    padding: 12px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.topbar a {
    color: #cbd5e1;
    text-decoration: none;
    margin-right: 18px;
    font-size: 14px;
}
.topbar a:hover, .topbar a.active { color: #fff; font-weight: 600; }
.topbar .user-info { font-size: 13px; color: #94a3b8; }
.container { padding: 20px; }
.panel {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}
.panel h2 { margin-top: 0; font-size: 18px; }
label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 4px; color: #475569; }
input[type=text], input[type=password], input[type=number], select, textarea {
    width: 100%;
    padding: 9px 10px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 14px;
    margin-bottom: 14px;
}
textarea { min-height: 120px; font-family: inherit; }
button, .btn {
    padding: 9px 18px;
    background: #2563eb;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    text-decoration: none;
    display: inline-block;
}
button:hover, .btn:hover { background: #1d4ed8; }
button.secondary, .btn.secondary { background: #64748b; }
button.secondary:hover, .btn.secondary:hover { background: #475569; }
button:disabled { background: #94a3b8; cursor: not-allowed; }
.alert { padding: 10px 14px; border-radius: 6px; margin-bottom: 16px; font-size: 14px; }
.alert-error { background: #fee2e2; color: #b91c1c; }
.alert-success { background: #dcfce7; color: #166534; }
.alert-info { background: #dbeafe; color: #1e40af; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
table th, table td { padding: 8px 10px; border-bottom: 1px solid #e2e8f0; text-align: left; }
table th { background: #f8fafc; font-weight: 600; }
.status-pending { color: #64748b; }
.status-generating { color: #d97706; font-weight: 600; }
.status-done { color: #16a34a; font-weight: 600; }
.status-error { color: #dc2626; font-weight: 600; }
.status-saved { color: #0891b2; font-weight: 600; }
