:root {
    --bg: #111315;
    --surface: #181b1e;
    --surface-2: #1f2327;
    --text: #f2efe8;
    --muted: #a9a59c;
    --border: #33373b;
    --gold: #bd9c62;
    --gold-soft: #d3bb8d;
}

* {
    box-sizing: border-box;
}

html {
    background: var(--bg);
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(
            circle at 82% 5%,
            rgba(189,156,98,.08),
            transparent 28rem
        ),
        var(--bg);
    color: var(--text);
    font-family:
        Inter,
        ui-sans-serif,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
}

a {
    color: var(--gold-soft);
    text-decoration: none;
}

.topbar {
    height: 86px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5vw;
    border-bottom: 1px solid var(--border);
    background: rgba(17,19,21,.92);
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.mark {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 1px solid var(--gold);
    color: var(--gold-soft);
    font-family: Georgia, serif;
    font-size: 16px;
}

.brand-name {
    font-size: 13px;
    letter-spacing: .19em;
}

.brand-subtitle {
    margin-top: 4px;
    color: var(--muted);
    font-size: 10px;
    letter-spacing: .22em;
}

nav {
    display: flex;
    align-items: center;
    gap: 24px;
    font-size: 13px;
}

.user-name {
    color: var(--muted);
}

.shell {
    width: min(1180px, 90vw);
    margin: 0 auto;
    padding: 80px 0 100px;
}

.hero {
    max-width: 760px;
    padding-top: 45px;
}

.eyebrow {
    display: block;
    margin-bottom: 18px;
    color: var(--gold);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .2em;
}

h1 {
    max-width: 900px;
    margin: 0 0 24px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(42px, 6vw, 72px);
    font-weight: 400;
    line-height: 1.04;
}

h2 {
    margin: 5px 0 0;
    font-family: Georgia, serif;
    font-size: 28px;
    font-weight: 400;
}

p {
    color: var(--muted);
    font-size: 17px;
    line-height: 1.7;
}

.primary-button {
    display: inline-block;
    margin-top: 22px;
    padding: 14px 22px;
    border: 1px solid var(--gold);
    color: var(--text);
    letter-spacing: .04em;
}

.setup-state,
.notice {
    margin-top: 34px;
    padding: 20px 22px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--gold-soft);
}

.notice strong {
    font-family: Georgia, serif;
    font-size: 22px;
    font-weight: 400;
}

.notice p {
    margin-bottom: 0;
    font-size: 14px;
}

.welcome {
    margin-bottom: 55px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 40px;
}

.grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.panel {
    padding: 28px;
    border: 1px solid var(--border);
    background: var(--surface);
}

.panel-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 25px;
}

.count {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border: 1px solid var(--border);
    border-radius: 50%;
    color: var(--gold-soft);
}

.item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    padding: 18px 0;
    border-top: 1px solid var(--border);
}

.item p {
    margin: 5px 0 0;
    font-size: 13px;
}

.status {
    white-space: nowrap;
    color: var(--gold-soft);
    font-size: 12px;
}

.empty {
    padding: 22px 0;
    border-top: 1px solid var(--border);
    color: var(--muted);
}

footer {
    width: min(1180px, 90vw);
    margin: 0 auto;
    padding: 30px 0 50px;
    border-top: 1px solid var(--border);
    color: var(--muted);
    font-size: 11px;
    letter-spacing: .08em;
}

@media (max-width: 760px) {
    .topbar {
        padding: 0 20px;
    }

    .user-name {
        display: none;
    }

    .shell {
        padding-top: 50px;
    }

    .grid {
        grid-template-columns: 1fr;
    }
}

.admin-header {
    max-width: 760px;
    margin-bottom: 50px;
}

.admin-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.admin-form {
    display: grid;
    gap: 18px;
    margin-bottom: 28px;
}

.admin-form label {
    display: grid;
    gap: 8px;
    color: var(--muted);
    font-size: 12px;
    letter-spacing: .04em;
}

input,
select,
textarea {
    width: 100%;
    padding: 12px 13px;
    border: 1px solid var(--border);
    border-radius: 0;
    outline: none;
    background: var(--surface-2);
    color: var(--text);
    font: inherit;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--gold);
}

button {
    width: fit-content;
    padding: 12px 18px;
    border: 1px solid var(--gold);
    background: transparent;
    color: var(--text);
    cursor: pointer;
}

button:hover {
    background: rgba(189,156,98,.08);
}

.admin-row,
.user-admin-card {
    padding: 16px 0;
    border-top: 1px solid var(--border);
}

.admin-row {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.user-admin-card p {
    margin: 5px 0 12px;
    font-size: 13px;
}

.inline-form {
    display: flex;
    gap: 8px;
}

.inline-form select {
    flex: 1;
}

.activity-panel {
    margin-top: 24px;
}

@media (max-width: 850px) {
    .admin-grid {
        grid-template-columns: 1fr;
    }

    .inline-form {
        flex-direction: column;
    }
}
