:root {
    --ink: #0b1f33;
    --muted: #62748a;
    --line: #dbe4ea;
    --soft: #f4f8f8;
    --panel: #ffffff;
    --brand: #0f766e;
    --brand-dark: #0b3b37;
    --danger: #b42318;
    --danger-soft: #fee4e2;
    --warn: #b54708;
    --warn-soft: #fff2cc;
    --ok: #067647;
    --ok-soft: #dcfae6;
    --shadow: 0 18px 45px rgba(11, 31, 51, 0.08);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    color: var(--ink);
    background: #f7fafb;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
    color: inherit;
    text-decoration: none;
}

.login-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #eef8f6, #f8fbfd 55%, #eef4f8);
    padding: 24px;
}

.login-card {
    width: min(430px, 100%);
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: var(--shadow);
    padding: 34px;
}

.logo-mark {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: var(--brand-dark);
    color: #fff;
    font-weight: 800;
    margin-bottom: 18px;
}

.login-card h1 {
    margin: 0 0 6px;
    font-size: 30px;
}

.login-card p {
    margin: 0 0 24px;
    color: var(--muted);
}

.field {
    display: grid;
    gap: 7px;
    margin-bottom: 16px;
}

.field label {
    color: #344054;
    font-weight: 650;
    font-size: 14px;
}

input,
select,
textarea {
    width: 100%;
    border: 1px solid #cbd5df;
    border-radius: 8px;
    padding: 11px 12px;
    color: var(--ink);
    background: #fff;
    font: inherit;
}

textarea {
    min-height: 96px;
    resize: vertical;
}

button,
.button {
    border: 0;
    border-radius: 8px;
    background: var(--brand);
    color: #fff;
    padding: 11px 16px;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

button.secondary,
.button.secondary {
    background: #e8f3f1;
    color: var(--brand-dark);
}

button.danger,
.button.danger {
    background: var(--danger);
}

.error {
    color: var(--danger);
    background: var(--danger-soft);
    padding: 10px 12px;
    border-radius: 8px;
    margin: 0 0 14px;
}

.shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 280px 1fr;
}

.sidebar {
    background: var(--brand-dark);
    color: #fff;
    padding: 22px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 17px;
    font-weight: 850;
    margin: 8px 6px 22px;
}

.brand .logo-mark {
    margin: 0;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.nav {
    display: flex;
    gap: 10px;
    align-items: center;
    color: rgba(255, 255, 255, 0.86);
    padding: 12px;
    border-radius: 8px;
    font-weight: 700;
}

.nav.active,
.nav:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.content {
    padding: 28px 32px 42px;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 26px;
}

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

h1 {
    margin: 0;
    font-size: 30px;
}

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

.grid {
    display: grid;
    gap: 16px;
}

.grid.kpis {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

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

.card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(11, 31, 51, 0.04);
    padding: 20px;
}

.kpi .label {
    color: var(--muted);
    font-weight: 700;
    margin-bottom: 12px;
}

.kpi .value {
    font-size: 32px;
    font-weight: 850;
}

.section-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin: 30px 0 14px;
}

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

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 860px;
}

th,
td {
    text-align: left;
    padding: 13px 14px;
    border-bottom: 1px solid #edf2f5;
    vertical-align: top;
    font-size: 14px;
}

th {
    color: #344054;
    background: #f8fbfc;
    font-weight: 800;
}

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

.badge {
    display: inline-flex;
    align-items: center;
    padding: 5px 9px;
    border-radius: 99px;
    font-size: 12px;
    font-weight: 800;
    background: #edf2f7;
    color: #344054;
}

.badge.ok,
.badge.indexed,
.badge.complete,
.badge.active {
    background: var(--ok-soft);
    color: var(--ok);
}

.badge.error,
.badge.failed {
    background: var(--danger-soft);
    color: var(--danger);
}

.badge.warning,
.badge.pending,
.badge.drafting {
    background: var(--warn-soft);
    color: var(--warn);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.full {
    grid-column: 1 / -1;
}

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

.progress {
    height: 12px;
    background: #edf2f5;
    border-radius: 99px;
    overflow: hidden;
}

.progress span {
    display: block;
    height: 100%;
    background: var(--brand);
}

.callout {
    padding: 14px;
    border: 1px solid #bfdbfe;
    background: #eff6ff;
    color: #1e3a8a;
    border-radius: 10px;
    margin-bottom: 16px;
}

.footer-note {
    margin-top: 22px;
    color: var(--muted);
    font-size: 13px;
}

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

    .sidebar {
        position: static;
    }

    .grid.kpis,
    .grid.two,
    .form-grid {
        grid-template-columns: 1fr;
    }
}

