* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: Arial, Helvetica, sans-serif;
    background: #f3f4f6;
    color: #111827;
}

.app-shell {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.welcome-card {
    width: 100%;
    max-width: 560px;
    background: #ffffff;
    border-radius: 20px;
    padding: 32px;
    box-shadow: 0 16px 45px rgba(15, 23, 42, 0.12);
}

.eyebrow {
    margin: 0 0 8px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #6b7280;
}

h1 {
    margin: 0 0 12px;
    font-size: clamp(36px, 8vw, 58px);
    line-height: 1;
}

.lead {
    margin: 0;
    font-size: 18px;
    line-height: 1.5;
    color: #4b5563;
}

.button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 12px 18px;
    border-radius: 999px;
    background: #111827;
    color: #ffffff;
    text-decoration: none;
    font-weight: 700;
    line-height: 1;
}

.button-secondary {
    background: #e5e7eb;
    color: #111827;
}

@media (max-width: 520px) {
    .welcome-card {
        padding: 24px;
        border-radius: 16px;
    }

    .button-row {
        flex-direction: column;
    }

    .button {
        width: 100%;
    }
}


.site-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
}

.site-header-inner {
    width: min(1120px, calc(100% - 32px));
    min-height: 72px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.site-logo {
    font-size: 20px;
    font-weight: 800;
    color: #111827;
    text-decoration: none;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 18px;
}

.site-nav a {
    color: #374151;
    font-weight: 700;
    text-decoration: none;
}

.site-main {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
    padding: 40px 0;
}

.auth-wrap {
    min-height: calc(100vh - 152px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-card {
    width: 100%;
    max-width: 440px;
    background: #ffffff;
    border-radius: 20px;
    padding: 32px;
    box-shadow: 0 16px 45px rgba(15, 23, 42, 0.12);
}

.form-stack {
    display: grid;
    gap: 18px;
    margin-top: 24px;
}

.form-field {
    display: grid;
    gap: 8px;
}

.form-field label {
    font-size: 14px;
    font-weight: 800;
    color: #374151;
}

.form-field input,
.form-field select,
.form-field textarea {
    width: 100%;
    min-height: 46px;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 10px 12px;
    font: inherit;
    color: #111827;
    background: #ffffff;
}

.form-field textarea {
    min-height: 120px;
    resize: vertical;
}

.alert {
    margin-top: 18px;
    border-radius: 12px;
    padding: 12px 14px;
    font-weight: 700;
}

.alert-error {
    background: #fee2e2;
    color: #991b1b;
}

.page-header {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 28px;
}

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

.dashboard-card {
    display: block;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    padding: 24px;
    color: #111827;
    text-decoration: none;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

.dashboard-card h2 {
    margin: 0 0 10px;
    font-size: 22px;
}

.dashboard-card p {
    margin: 0;
    line-height: 1.5;
    color: #4b5563;
}

@media (max-width: 760px) {
    .site-header-inner {
        min-height: 64px;
    }

    .site-main {
        padding: 28px 0;
    }

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

    .page-header {
        display: block;
    }
}

.page-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.empty-card,
.table-card,
.form-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    padding: 24px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

.empty-card h2 {
    margin: 0 0 10px;
}

.empty-card p {
    margin: 0 0 20px;
    color: #4b5563;
    line-height: 1.5;
}

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

.admin-table th,
.admin-table td {
    border-bottom: 1px solid #e5e7eb;
    padding: 14px 12px;
    text-align: left;
    vertical-align: middle;
}

.admin-table th {
    font-size: 13px;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.admin-table tr:last-child td {
    border-bottom: 0;
}

.table-actions {
    text-align: right;
    white-space: nowrap;
}

.table-link {
    font-weight: 800;
    color: #111827;
    text-decoration: none;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    border-radius: 999px;
    padding: 5px 10px;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
}

.status-draft {
    background: #fef3c7;
    color: #92400e;
}

.status-published {
    background: #dcfce7;
    color: #166534;
}

.status-archived {
    background: #e5e7eb;
    color: #374151;
}

.alert-success {
    background: #dcfce7;
    color: #166534;
}

.form-card {
    margin-top: 20px;
}

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

.form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 10px;
}

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

    .table-card {
        overflow-x: auto;
    }

    .admin-table {
        min-width: 720px;
    }
}

@media (max-width: 620px) {
    .page-actions {
        margin-top: 18px;
    }

    .form-actions {
        display: grid;
    }
}