:root {
    --ink: #19152a;
    --muted: #6f6a7b;
    --line: #dedbe7;
    --paper: #ffffff;
    --wash: #f6f4fa;
    --violet: #6d43ed;
    --violet-dark: #4f2fb2;
    --coral: #ff6f61;
    --green: #18865d;
    --red: #b52e45;
    --shadow: 0 22px 70px rgba(31, 21, 55, .12);
}

* { box-sizing: border-box; }
html { color-scheme: light; }
body { margin: 0; font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: var(--ink); background: var(--wash); }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
.admin-body { min-height: 100vh; background: radial-gradient(circle at top left, rgba(109,67,237,.11), transparent 35rem), var(--wash); }
.setup-shell { width: min(920px, calc(100% - 32px)); margin: 0 auto; padding: 42px 0 72px; }
.admin-brand { display: inline-flex; gap: 9px; align-items: center; margin: 0 0 28px; text-decoration: none; font-size: 1.12rem; font-weight: 850; }
.admin-card { padding: clamp(24px, 5vw, 48px); border: 1px solid var(--line); border-radius: 24px; background: rgba(255,255,255,.96); box-shadow: var(--shadow); }
.setup-card h1, .setup-success h1 { margin: 8px 0 12px; font-size: clamp(2rem, 5vw, 3.25rem); line-height: 1.04; letter-spacing: -.045em; }
.setup-card > p, .setup-success > p { color: var(--muted); font-size: 1.04rem; line-height: 1.65; }
.eyebrow { color: var(--violet); font-size: .78rem !important; font-weight: 850; letter-spacing: .14em; }
.setup-form { display: grid; gap: 22px; margin-top: 30px; }
fieldset { display: grid; gap: 16px; margin: 0; padding: 22px; border: 1px solid var(--line); border-radius: 17px; }
legend { padding: 0 9px; font-weight: 850; }
label { display: grid; gap: 7px; font-size: .91rem; font-weight: 750; }
input, select, textarea { width: 100%; border: 1px solid #c9c5d3; border-radius: 11px; padding: 12px 13px; background: #fff; color: var(--ink); outline: none; }
input:focus, select:focus, textarea:focus { border-color: var(--violet); box-shadow: 0 0 0 4px rgba(109,67,237,.12); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; }
.form-grid-three { grid-template-columns: 1fr .45fr 1.2fr; align-items: end; }
.field-note { color: var(--muted); font-size: .84rem; line-height: 1.5; }
.alert { margin: 22px 0; padding: 16px 18px; border-radius: 13px; line-height: 1.5; }
.alert ul { margin: 8px 0 0; padding-left: 20px; }
.alert-error { border: 1px solid #efb8c2; color: #762137; background: #fff1f4; }
.alert-success { border: 1px solid #9bd7c1; color: #0f6042; background: #eefaf5; }
.button-primary, .button-secondary, button.button-primary { display: inline-flex; justify-content: center; align-items: center; min-height: 48px; padding: 0 20px; border: 0; border-radius: 11px; text-decoration: none; cursor: pointer; font-weight: 850; }
.button-primary { color: #fff; background: linear-gradient(135deg, var(--violet), var(--violet-dark)); box-shadow: 0 10px 22px rgba(82,45,181,.22); }
.button-primary:hover { filter: brightness(1.07); }
.button-secondary { border: 1px solid var(--line); background: #fff; }
.button-full { width: 100%; }
.admin-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.secure-note { margin: 0; text-align: center; color: var(--muted); font-size: .82rem; }
.consent-row { display: grid; grid-template-columns: 20px 1fr; gap: 10px; align-items: start; font-weight: 550; line-height: 1.55; }
.consent-row input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--violet); }
.status-dot { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; font-size: 1.5rem; font-weight: 900; }
.status-good { color: #fff; background: var(--green); }
.admin-shell { width: min(1180px, calc(100% - 32px)); margin: 0 auto; padding: 28px 0 64px; }
.admin-header { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 24px; }
.admin-nav { display: flex; align-items: center; gap: 16px; }
.admin-nav a { color: var(--muted); font-weight: 750; text-decoration: none; }
.admin-nav a:hover { color: var(--violet); }
.page-title h1 { margin: 0; font-size: clamp(2rem, 5vw, 3rem); letter-spacing: -.04em; }
.page-title p { margin: 8px 0 0; color: var(--muted); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 24px 0; }
.stat-card { padding: 20px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.stat-card span { display: block; color: var(--muted); font-size: .82rem; font-weight: 750; }
.stat-card strong { display: block; margin-top: 8px; font-size: 1.65rem; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 18px; background: #fff; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 14px 16px; border-bottom: 1px solid #ebe8f0; text-align: left; white-space: nowrap; }
th { color: var(--muted); background: #fbfafe; font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; }
td { font-size: .91rem; }
tr:last-child td { border-bottom: 0; }
.status-pill { display: inline-flex; padding: 6px 9px; border-radius: 999px; color: #4e3784; background: #f0eaff; font-size: .77rem; font-weight: 800; }
.order-grid { display: grid; grid-template-columns: minmax(0,1.5fr) minmax(300px,.8fr); gap: 20px; align-items: start; }
.detail-list { display: grid; gap: 16px; }
.detail-item { padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.detail-item:last-child { border-bottom: 0; padding-bottom: 0; }
.detail-item span { display: block; color: var(--muted); font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
.detail-item p { margin: 7px 0 0; line-height: 1.65; white-space: pre-wrap; }
.login-shell { width: min(480px, calc(100% - 32px)); margin: 0 auto; padding: 72px 0; }
.login-form { display: grid; gap: 16px; margin-top: 26px; }
.empty-state { padding: 48px 24px; text-align: center; color: var(--muted); }
code { padding: 2px 6px; border-radius: 5px; background: #eeebf4; overflow-wrap: anywhere; }

@media (max-width: 780px) {
    .form-grid, .form-grid-three, .order-grid, .stats-grid { grid-template-columns: 1fr; }
    .admin-header { align-items: flex-start; flex-direction: column; }
    .admin-nav { flex-wrap: wrap; }
    .setup-shell { padding-top: 24px; }
    fieldset { padding: 17px; }
}

.editorial-panel { margin-top: 20px; min-width: 0; }
.editorial-panel .button-primary { max-width: 100%; padding-block: 12px; }

.lyrics-review { white-space: pre-wrap; overflow-wrap: anywhere; font: inherit; line-height: 1.7; }
