:root {
    --bg: #f3efe6;
    --paper: rgba(255, 252, 247, 0.96);
    --paper-strong: #fffdf9;
    --ink: #1d2327;
    --muted: #5f6b76;
    --line: rgba(29, 35, 39, 0.12);
    --blue: #1f6fb2;
    --blue-deep: #134b79;
    --green: #108043;
    --orange: #b45b2f;
    --red: #b42318;
    --shadow: 0 20px 45px rgba(20, 30, 38, 0.12);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    color: var(--ink);
    background:
        radial-gradient(circle at top left, rgba(31, 111, 178, 0.14), transparent 24%),
        radial-gradient(circle at top right, rgba(180, 91, 47, 0.14), transparent 22%),
        linear-gradient(180deg, #fbf7f0 0%, #f4ede1 55%, #efe5d6 100%);
    font: 17px/1.6 "Aptos", "Segoe UI", sans-serif;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: var(--blue);
}

h1,
h2,
h3,
p,
dl,
ul,
ol {
    margin-top: 0;
}

h1 {
    font-size: clamp(2.6rem, 5vw, 4.4rem);
    line-height: 1.05;
    letter-spacing: -0.04em;
    text-transform: capitalize;
    margin-bottom: 1rem;
}

.shell {
    width: min(1100px, calc(100% - 2rem));
    margin: 0 auto;
}

.site-header,
.site-footer {
    background: rgba(255, 252, 247, 0.82);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(29, 35, 39, 0.06);
}

.site-footer {
    border-top: 1px solid rgba(29, 35, 39, 0.06);
    border-bottom: 0;
}

.site-header-row,
.site-footer-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 0;
}

.brand-lockup {
    display: inline-flex;
    align-items: center;
    gap: 0.9rem;
    color: inherit;
    text-decoration: none;
}

.brand-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    box-shadow: 0 10px 24px rgba(31, 111, 178, 0.16);
}

.brand-name {
    font-weight: 700;
    color: var(--ink);
}

.brand-tag,
.footer-copy,
.admin-subtitle,
.lede,
.helper-text,
.field span,
.detail-list dt {
    color: var(--muted);
}

.top-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.9rem;
}

.top-nav a {
    text-decoration: none;
}

.nav-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    background: rgba(31, 111, 178, 0.08);
    color: var(--blue-deep);
    font-size: 0.95rem;
    font-weight: 700;
}

.admin-main,
.login-wrap {
    padding: 2rem 0 3rem;
}

.admin-page-head {
    margin-bottom: 1.5rem;
}

.eyebrow,
.card-label {
    display: inline-block;
    margin-bottom: 0.6rem;
    color: var(--blue);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-size: 0.78rem;
    font-weight: 700;
}

.panel,
.metric-card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--shadow);
}

.panel {
    padding: 1.4rem;
    margin-bottom: 1.25rem;
}

.panel-sub {
    background: var(--paper-strong);
    box-shadow: none;
    margin-bottom: 0;
}

.panel-narrow {
    max-width: 560px;
    margin: 0 auto;
}

.metric-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.metric-card {
    padding: 1.2rem 1.3rem;
}

.metric-card h2 {
    margin-bottom: 0;
    font-size: 2rem;
}

.section-top,
.actions-row,
.form-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
}

.detail-list {
    display: grid;
    gap: 0.9rem;
}

.detail-list div {
    padding: 0.85rem 0;
    border-bottom: 1px solid rgba(29, 35, 39, 0.08);
}

.detail-list div:last-child {
    border-bottom: 0;
}

.detail-list dt {
    font-size: 0.9rem;
    margin-bottom: 0.2rem;
}

.detail-list dd {
    margin: 0;
    font-weight: 600;
}

.field {
    display: block;
    margin-bottom: 1rem;
}

.field span {
    display: block;
    margin-bottom: 0.35rem;
    font-size: 0.95rem;
    font-weight: 600;
}

input[type="email"],
input[type="password"],
input[type="file"] {
    width: 100%;
    padding: 0.8rem 0.9rem;
    border: 1px solid rgba(29, 35, 39, 0.16);
    border-radius: 12px;
    background: #fff;
    font: inherit;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0.7rem 1rem;
    border: 1px solid transparent;
    border-radius: 999px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.button-primary {
    background: var(--blue);
    color: #fff;
}

.button-secondary {
    background: #fff;
    border-color: rgba(29, 35, 39, 0.12);
    color: var(--ink);
}

.alert {
    margin-bottom: 1rem;
    padding: 1rem 1.1rem;
    border-radius: 14px;
    border: 1px solid transparent;
}

.alert ul {
    margin: 0;
    padding-left: 1.2rem;
}

.alert-success {
    background: rgba(16, 128, 67, 0.1);
    border-color: rgba(16, 128, 67, 0.2);
}

.alert-error {
    background: rgba(180, 35, 24, 0.08);
    border-color: rgba(180, 35, 24, 0.18);
}

.alert-warning {
    background: rgba(180, 91, 47, 0.08);
    border-color: rgba(180, 91, 47, 0.18);
}

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

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

.data-table th,
.data-table td {
    padding: 0.9rem 0.7rem;
    border-bottom: 1px solid rgba(29, 35, 39, 0.08);
    text-align: left;
    vertical-align: top;
}

.data-table th {
    font-size: 0.9rem;
    color: var(--muted);
}

.plain-list {
    margin-bottom: 0;
    padding-left: 1.15rem;
}

.faq-list {
    display: grid;
    gap: 1rem;
}

.faq-item {
    padding: 1rem 0;
    border-bottom: 1px solid rgba(29, 35, 39, 0.08);
}

.faq-item:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.faq-item h3 {
    margin-bottom: 0.45rem;
    font-size: 1.2rem;
}

.faq-item p {
    margin-bottom: 0;
    color: var(--muted);
}

code {
    padding: 0.12rem 0.35rem;
    border-radius: 0.4rem;
    background: rgba(29, 35, 39, 0.07);
    font: 0.92em/1.35 Consolas, "Courier New", monospace;
}

@media (max-width: 760px) {
    .site-header-row,
    .site-footer-row,
    .section-top,
    .actions-row,
    .form-actions {
        align-items: flex-start;
        flex-direction: column;
    }

    .button,
    .top-nav,
    .top-nav a {
        width: 100%;
    }

    .nav-pill {
        width: auto;
    }
}
