:root {
    --oe-red: #C41212;
    --oe-red-dark: #8f0f0f;
    --oe-black: #111827;
    --oe-muted: #6b7280;
    --oe-line: #e5e7eb;
    --oe-bg: #f6f7f9;
    --oe-card: #ffffff;
    --oe-green-bg: #e7f7ed;
    --oe-green: #166534;
    --oe-orange-bg: #fff7ed;
    --oe-orange: #9a3412;
    --oe-red-bg: #fee2e2;
    --oe-radius: 18px;
    --oe-shadow: 0 14px 40px rgba(17, 24, 39, 0.08);
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--oe-bg);
}

body > header,
header,
.topbar,
.app-header,
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(12px);
}

.oe-shell {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 22px 0 42px;
}

.oe-hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at top right, rgba(196, 18, 18, 0.18), transparent 34%),
        linear-gradient(135deg, #111827 0%, #2b1111 54%, #C41212 140%);
    color: #fff;
    border-radius: 26px;
    padding: 34px;
    box-shadow: var(--oe-shadow);
    margin-bottom: 22px;
}

.oe-hero::after {
    content: "";
    position: absolute;
    right: -80px;
    bottom: -120px;
    width: 280px;
    height: 280px;
    border: 34px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;
}

.oe-kicker {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.18);
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .02em;
}

.oe-hero h1 {
    color: #fff;
    margin: 18px 0 10px;
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.05;
}

.oe-hero p {
    color: rgba(255,255,255,0.82);
    max-width: 760px;
    font-size: 16px;
    line-height: 1.6;
    margin: 0;
}

.oe-actionbar {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin: 18px 0 0;
}

.oe-btn,
.oe-btn-secondary,
.oe-btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    border-radius: 999px;
    padding: 10px 16px;
    font-weight: 800;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}

.oe-btn {
    background: var(--oe-red);
    color: #fff;
    box-shadow: 0 10px 24px rgba(196, 18, 18, 0.22);
}

.oe-btn:hover {
    background: var(--oe-red-dark);
    color: #fff;
    transform: translateY(-1px);
}

.oe-btn-secondary {
    background: #111827;
    color: #fff;
}

.oe-btn-secondary:hover {
    color: #fff;
    transform: translateY(-1px);
}

.oe-btn-ghost {
    background: rgba(255,255,255,0.13);
    border-color: rgba(255,255,255,0.2);
    color: #fff;
}

.oe-btn-ghost:hover {
    color: #fff;
    background: rgba(255,255,255,0.2);
}

.oe-tabs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    background: rgba(255,255,255,0.82);
    border: 1px solid var(--oe-line);
    border-radius: 22px;
    padding: 10px;
    box-shadow: var(--oe-shadow);
    margin-bottom: 22px;
}

.oe-tabs a {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 8px 13px;
    border-radius: 999px;
    background: #fff;
    color: var(--oe-black);
    border: 1px solid var(--oe-line);
    text-decoration: none;
    font-weight: 800;
    white-space: nowrap;
}

.oe-tabs a:hover {
    border-color: rgba(196,18,18,.35);
    color: var(--oe-red);
}

.oe-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 16px;
    margin-bottom: 22px;
}

.oe-card {
    grid-column: span 4;
    background: var(--oe-card);
    border: 1px solid var(--oe-line);
    border-radius: var(--oe-radius);
    box-shadow: var(--oe-shadow);
    padding: 20px;
    min-width: 0;
}

.oe-card-wide {
    grid-column: span 8;
}

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

.oe-card h2,
.oe-card h3 {
    margin-top: 0;
    color: var(--oe-black);
}

.oe-label {
    color: var(--oe-muted);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.oe-value {
    font-size: clamp(26px, 4vw, 38px);
    line-height: 1;
    font-weight: 900;
    color: var(--oe-black);
    margin: 10px 0 8px;
}

.oe-muted {
    color: var(--oe-muted);
    line-height: 1.55;
}

.oe-list {
    display: grid;
    gap: 10px;
}

.oe-list-item {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding: 13px 0;
    border-bottom: 1px solid var(--oe-line);
}

.oe-list-item:last-child {
    border-bottom: 0;
}

.oe-list-title {
    font-weight: 900;
    color: var(--oe-black);
}

.oe-list-meta {
    color: var(--oe-muted);
    font-size: 13px;
    margin-top: 4px;
}

.oe-pill {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 5px 10px;
    font-size: 12px;
    font-weight: 900;
    white-space: nowrap;
    border: 1px solid var(--oe-line);
    background: #fff;
    color: var(--oe-black);
}

.oe-pill-ok {
    background: var(--oe-green-bg);
    color: var(--oe-green);
    border-color: #86efac;
}

.oe-pill-warn {
    background: var(--oe-orange-bg);
    color: var(--oe-orange);
    border-color: #fdba74;
}

.oe-pill-danger {
    background: var(--oe-red-bg);
    color: #991b1b;
    border-color: #fca5a5;
}

.oe-empty {
    border: 1px dashed #d1d5db;
    border-radius: 16px;
    padding: 18px;
    color: var(--oe-muted);
    background: #fafafa;
}

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

.oe-section-title h2 {
    margin: 0;
}

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

.oe-responsive-table th,
.oe-responsive-table td {
    padding: 12px 10px;
    border-bottom: 1px solid var(--oe-line);
    text-align: left;
    vertical-align: top;
}

.oe-responsive-table th {
    color: var(--oe-muted);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: .03em;
}

@media (max-width: 980px) {
    .oe-card,
    .oe-card-wide {
        grid-column: span 6;
    }
}

@media (max-width: 720px) {
    .oe-shell {
        width: min(100% - 20px, 1180px);
        padding: 12px 0 32px;
    }

    .oe-hero {
        border-radius: 20px;
        padding: 22px;
    }

    .oe-actionbar,
    .oe-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .oe-tabs {
        position: sticky;
        top: 64px;
        z-index: 900;
        border-radius: 18px;
        margin-left: -2px;
        margin-right: -2px;
    }

    .oe-tabs::-webkit-scrollbar,
    .oe-actionbar::-webkit-scrollbar {
        display: none;
    }

    .oe-card,
    .oe-card-wide,
    .oe-card-full {
        grid-column: 1 / -1;
        padding: 18px;
    }

    .oe-list-item {
        display: grid;
    }

    .oe-responsive-table,
    .oe-responsive-table thead,
    .oe-responsive-table tbody,
    .oe-responsive-table th,
    .oe-responsive-table td,
    .oe-responsive-table tr {
        display: block;
    }

    .oe-responsive-table thead {
        display: none;
    }

    .oe-responsive-table tr {
        background: #fff;
        border: 1px solid var(--oe-line);
        border-radius: 16px;
        padding: 10px;
        margin-bottom: 12px;
        box-shadow: 0 8px 20px rgba(17,24,39,.05);
    }

    .oe-responsive-table td {
        border-bottom: 0;
        padding: 8px 4px;
    }

    .oe-responsive-table td::before {
        content: attr(data-label);
        display: block;
        color: var(--oe-muted);
        font-size: 12px;
        font-weight: 900;
        text-transform: uppercase;
        margin-bottom: 4px;
    }

    .btn,
    .oe-btn,
    .oe-btn-secondary,
    .oe-btn-ghost {
        min-height: 44px;
    }
}
