:root {
    --ink: #12213a;
    --blue: #3157d5;
    --sky: #f3f6ff;
    --line: #dfe5f2;
    --muted: #64748b;
    --green: #087f5b;
    --amber: #b45309;
    --page-gutter: 50px;
    --section-space: 64px
}

* {
    box-sizing: border-box
}

body {
    margin: 0;
    font: 15px/1.5 Inter, Segoe UI, Arial, sans-serif;
    color: var(--ink);
    background: #fbfcff
}

.topbar {
    height: 70px;
    display: flex;
    align-items: center;
    gap: 34px;
    padding: 0 var(--page-gutter);
    background: #fff;
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 10;
}

.brand {
    font-size: 22px;
    font-weight: 800;
    text-decoration: none;
    color: var(--ink);
    letter-spacing: -1px
}

.brand span {
    color: var(--blue)
}

nav {
    display: flex;
    gap: 22px;
    flex: 1
}

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

nav a:hover,
.nav-actions>a:first-child {
    color: var(--blue)
}

.nav-actions {
    display: flex;
    gap: 13px;
    align-items: center
}

.button,
button {
    border: 0;
    background: var(--blue);
    color: #fff;
    padding: 10px 16px;
    border-radius: 7px;
    font-weight: 700;
    cursor: pointer
}

.button.ghost {
    background: #eef2ff;
    color: var(--blue)
}

.container {
    max-width: 100%;
    margin: auto;
    padding: 34px var(--page-gutter);
    min-height: calc(100vh - 126px)
}

footer {
    padding: 24px;
    text-align: center;
    color: var(--muted);
    border-top: 1px solid var(--line);
    background: #fff
}

.hero {
    display: grid;
    grid-template-columns: 1.25fr .75fr;
    gap: 45px;
    align-items: center;
    padding: 55px 0
}

.eyebrow {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1.3px;
    font-weight: 800;
    color: var(--blue)
}

h1 {
    font-size: 48px;
    line-height: 1.08;
    letter-spacing: -2px;
    margin: 12px 0
}

h2 {
    font-size: 28px;
    margin: 8px 0 20px
}

.lead {
    font-size: 18px;
    color: var(--muted);
    max-width: 650px
}

.hero-card,
.card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 23px;
    box-shadow: 0 8px 28px #152d5b0b
}

.metric {
    font-size: 34px;
    font-weight: 800;
    color: var(--blue)
}

.grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px
}

.grid.two {
    grid-template-columns: repeat(2, 1fr)
}

.card h3 {
    margin: 0 0 7px
}

.muted {
    color: var(--muted)
}

.chips {
    display: flex;
    gap: 8px;
    flex-wrap: wrap
}

.chip {
    background: #eef2ff;
    color: #4157a5;
    border-radius: 100px;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 700
}

.section {
    margin: var(--section-space) 0
}

.toolbar {
    display: flex;
    gap: 12px;
    align-items: end;
    background: #fff;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 12px;
    margin-bottom: 22px
}

.field {
    display: flex;
    flex-direction: column;
    gap: 5px;
    flex: 1
}

label {
    font-weight: 700;
    font-size: 13px
}

input,
select,
textarea {
    border: 1px solid #cfd8ea;
    border-radius: 7px;
    padding: 10px;
    font: inherit;
    background: #fff
}

textarea {
    min-height: 110px
}

.form {
    max-width: 540px;
    margin: 25px auto
}

.form .field {
    margin: 13px 0
}

.alert {
    padding: 13px 16px;
    border-radius: 8px;
    margin-bottom: 18px
}

.success {
    background: #eafaf4;
    color: #05724e
}

.error {
    background: #fff1f2;
    color: #b42338
}

.table-wrap {
    overflow: auto;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px
}

.table {
    width: 100%;
    border-collapse: collapse
}

.table th,
.table td {
    padding: 13px 15px;
    text-align: left;
    border-bottom: 1px solid var(--line)
}

.table th {
    font-size: 12px;
    text-transform: uppercase;
    color: var(--muted)
}

.status {
    font-size: 12px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 999px;
    background: #fff5e8;
    color: var(--amber)
}

.status.active,
.status.approved,
.status.published {
    background: #eafaf4;
    color: var(--green)
}

.dashboard-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px
}

.stat {
    padding: 20px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px
}

.stat b {
    font-size: 27px;
    display: block
}

.admin-nav {
    display: flex;
    gap: 14px;
    margin: 0 0 22px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--line)
}

@media(max-width:760px) {
    :root {
        --page-gutter: 24px;
        --section-space: 46px
    }

    .topbar {
        gap: 12px
    }

    .topbar nav {
        display: none
    }

    .hero,
    .grid,
    .grid.two {
        grid-template-columns: 1fr
    }

    h1 {
        font-size: 37px
    }

    .stat-grid {
        grid-template-columns: repeat(2, 1fr)
    }

    .nav-actions .button.ghost {
        display: none
    }
}
