:root {
    color-scheme: dark;
    --background: #08090d;
    --panel: #11131a;
    --panel-border: #282b36;
    --text: #f5f0e6;
    --muted: #a7a9b3;
    --gold: #d8b461;
    --green: #65d69e;
    --amber: #f2c66d;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    min-height: 100vh;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at 15% 10%, rgba(216, 180, 97, .13), transparent 28rem),
        var(--background);
}

.shell {
    width: min(920px, calc(100% - 32px));
    margin: 0 auto;
    padding: 72px 0;
}

.hero {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 48px;
}

.brand-mark {
    display: grid;
    flex: 0 0 76px;
    width: 76px;
    height: 76px;
    place-items: center;
    border: 1px solid rgba(216, 180, 97, .55);
    border-radius: 22px;
    color: var(--gold);
    background: linear-gradient(145deg, rgba(216, 180, 97, .14), rgba(216, 180, 97, .03));
    font-family: Georgia, serif;
    font-size: 38px;
}

.eyebrow {
    margin: 0 0 8px;
    color: var(--gold);
    font-size: 12px;
    font-weight: 750;
    letter-spacing: .18em;
}

h1, h2 { margin: 0; line-height: 1.1; }
h1 { font-family: Georgia, serif; font-size: clamp(34px, 6vw, 56px); font-weight: 500; }
h2 { font-size: 25px; }

.subtitle {
    max-width: 650px;
    margin: 14px 0 0;
    color: var(--muted);
    font-size: 17px;
    line-height: 1.6;
}

.panel {
    overflow: hidden;
    border: 1px solid var(--panel-border);
    border-radius: 22px;
    background: rgba(17, 19, 26, .9);
    box-shadow: 0 24px 80px rgba(0, 0, 0, .28);
}

.panel-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 28px 32px;
    border-bottom: 1px solid var(--panel-border);
}

.status {
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
}

.status-ready { color: var(--green); background: rgba(101, 214, 158, .1); }
.status-pending { color: var(--amber); background: rgba(242, 198, 109, .1); }
.checks { padding: 10px 32px; }

.check-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 52px;
    border-bottom: 1px solid rgba(40, 43, 54, .72);
}

.check-row:last-child { border-bottom: 0; }
.check-icon { font-weight: 800; }
.is-ok { color: var(--green); }
.is-missing { color: var(--amber); }

.next-step {
    margin: 0;
    padding: 22px 32px;
    color: var(--muted);
    background: rgba(255, 255, 255, .018);
    line-height: 1.55;
}

.panel-action { padding: 0 32px 28px; background: rgba(255, 255, 255, .018); }
.button {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    padding: 0 18px;
    border: 1px solid var(--gold);
    border-radius: 11px;
    color: #0b0b0d;
    background: var(--gold);
    font: inherit;
    font-weight: 750;
    text-decoration: none;
    cursor: pointer;
}
.button:disabled { cursor: not-allowed; opacity: .45; }
.button-quiet { min-height: 38px; color: var(--text); background: transparent; border-color: var(--panel-border); }
.auth-shell { width: min(500px, calc(100% - 32px)); margin: 0 auto; padding: 54px 0; }
.wordmark { color: var(--gold); font-size: 13px; font-weight: 800; letter-spacing: .16em; text-decoration: none; }
.auth-panel { margin-top: 32px; padding: 32px; }
.auth-title { font-size: 38px; }
.form-intro { margin: 12px 0 26px; color: var(--muted); line-height: 1.5; }
.form-stack { display: grid; gap: 18px; }
.form-stack label { display: grid; gap: 8px; font-size: 14px; font-weight: 700; }
.form-stack small { color: var(--muted); font-weight: 400; }
.form-stack input {
    width: 100%;
    min-height: 46px;
    padding: 0 13px;
    border: 1px solid var(--panel-border);
    border-radius: 10px;
    outline: none;
    color: var(--text);
    background: #0b0d12;
    font: inherit;
}
.form-stack textarea {
    width: 100%; padding: 13px; resize: vertical; border: 1px solid var(--panel-border); border-radius: 10px;
    outline: none; color: var(--text); background: #0b0d12; font: inherit; line-height: 1.5;
}
.form-stack textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(216, 180, 97, .1); }
.form-stack input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(216, 180, 97, .1); }
.alert { margin: 0 0 20px; padding: 12px 15px; border: 1px solid rgba(255, 108, 108, .35); border-radius: 10px; color: #ffb3b3; background: rgba(255, 108, 108, .08); }
.alert p { margin: 0; }.alert p + p { margin-top: 6px; }
.topbar { display: flex; align-items: center; justify-content: space-between; padding: 18px max(24px, calc((100% - 1120px) / 2)); border-bottom: 1px solid var(--panel-border); background: rgba(8, 9, 13, .88); }
.topbar-actions { display: flex; align-items: center; gap: 9px; }.topbar-actions form { margin: 0; }.settings-shell { width: min(620px, calc(100% - 32px)); }
.dashboard-shell { width: min(1120px, calc(100% - 32px)); margin: 0 auto; padding: 54px 0; }
.dashboard-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 30px; }
.dashboard-heading h1 { font-size: clamp(34px, 5vw, 48px); }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 24px; }
.stat-card { display: grid; gap: 18px; padding: 22px; border: 1px solid var(--panel-border); border-radius: 16px; background: var(--panel); }
.stat-card span { color: var(--muted); font-size: 14px; }.stat-card strong { font-family: Georgia, serif; font-size: 36px; font-weight: 500; }
.empty-state { padding: 48px 32px; text-align: center; }.empty-state p:last-child { color: var(--muted); }
.editor-shell { width: min(1120px, calc(100% - 32px)); margin: 0 auto; padding: 46px 0; }
.editor-heading { margin-bottom: 28px; }.editor-heading h1 { font-size: clamp(34px, 5vw, 48px); }.editor-heading > p:last-child { color: var(--muted); }
.editor-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(320px, .8fr); gap: 20px; align-items: start; }
.form-card { padding: 24px; }
.upload-zone { display: grid; gap: 7px; padding: 38px 20px; border: 1px dashed #484b58; border-radius: 14px; text-align: center; color: var(--muted); background: rgba(255,255,255,.012); cursor: pointer; transition: border-color .15s, background .15s, transform .15s; }
.upload-zone:hover, .upload-zone.is-dragging { border-color: var(--gold); background: rgba(216, 180, 97, .08); }
.upload-zone.is-dragging { transform: scale(1.01); }
.upload-zone input { margin: 12px auto 0; max-width: 100%; }.upload-title { color: var(--text); font-size: 18px; font-weight: 750; }
.upload-icon { display: grid; width: 42px; height: 42px; margin: 0 auto 6px; place-items: center; border: 1px solid rgba(216,180,97,.4); border-radius: 50%; color: var(--gold); font-size: 24px; }
.upload-help { margin-top: 3px; font-size: 12px; }.upload-message { min-height: 20px; margin: 10px 0 0; color: var(--gold); font-size: 13px; text-align: center; }
.preview-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 18px; }
.preview-item { position: relative; overflow: hidden; aspect-ratio: 1; border-radius: 10px; background: #08090d; }
.preview-item img { width: 100%; height: 100%; object-fit: cover; }.preview-item span { position: absolute; top: 7px; left: 7px; display: grid; width: 25px; height: 25px; place-items: center; border-radius: 50%; color: #111; background: var(--gold); font-size: 12px; font-weight: 800; }
.button-row { display: flex; gap: 10px; flex-wrap: wrap; }.button-row .button { flex: 1; }
.success-banner { margin-bottom: 20px; padding: 13px 16px; border: 1px solid rgba(101, 214, 158, .3); border-radius: 11px; color: var(--green); background: rgba(101, 214, 158, .08); }
.post-list { display: grid; gap: 12px; }.post-row { display: flex; gap: 18px; padding: 14px; border: 1px solid var(--panel-border); border-radius: 15px; background: var(--panel); }
.post-row > img { width: 92px; height: 92px; object-fit: cover; border-radius: 10px; }.post-copy { min-width: 0; flex: 1; }.post-copy p { overflow: hidden; margin: 9px 0; white-space: nowrap; text-overflow: ellipsis; }.post-copy small { color: var(--muted); }
.post-action { align-self: center; flex: 0 0 auto; }
.post-status { color: var(--gold); font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.form-note { margin: 18px 0 0; color: var(--muted); font-size: 13px; line-height: 1.5; }.saved-preview-grid { margin-top: 8px; }

@media (max-width: 600px) {
    .shell { padding: 38px 0; }
    .hero { align-items: flex-start; gap: 16px; margin-bottom: 30px; }
    .brand-mark { flex-basis: 56px; width: 56px; height: 56px; border-radius: 16px; font-size: 28px; }
    .panel-heading, .checks, .next-step { padding-left: 20px; padding-right: 20px; }
    .auth-panel { padding: 24px 20px; }
    .dashboard-heading { align-items: flex-start; flex-direction: column; }
    .stat-grid { grid-template-columns: repeat(2, 1fr); }
    .editor-grid { grid-template-columns: 1fr; }.preview-grid { grid-template-columns: repeat(2, 1fr); }
    .post-row { align-items: flex-start; flex-wrap: wrap; }.post-action { width: 100%; }
}
