@font-face {
    font-family: "Retail-Regular";
    src: url("/static/fonts/Retail-Regular.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Retail-Medium";
    src: url("/static/fonts/Retail-Medium.woff2") format("woff2");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Retail-Bold";
    src: url("/static/fonts/Retail-Bold.woff2") format("woff2");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Retail-Bold-Italic";
    src: url("/static/fonts/Retail_Display-Bold_Italic.woff2") format("woff2");
    font-weight: 700;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: "Retail-Black-Italic";
    src: url("/static/fonts/Retail_Display-Black_Italic.woff2") format("woff2");
    font-weight: 900;
    font-style: italic;
    font-display: swap;
}

:root {
    color-scheme: dark;
    --bg: #101016;
    --panel: #1b1b26;
    --panel-soft: #242432;
    --text: #f7f7fb;
    --muted: #b9bac8;
    --line: rgba(255, 255, 255, 0.14);
    --accent: #ff0065;
    --cyan: #00dfff;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: "Retail-Regular", Arial, sans-serif;
}

.page {
    width: min(1680px, calc(100vw - 48px));
    margin: 0 auto;
    padding: 36px 0 64px;
}

.header {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 24px;
}

.brand-title {
    display: flex;
    align-items: center;
    gap: 24px;
    min-width: 0;
}

.brand-logo {
    display: block;
    width: min(250px, 28vw);
    flex: 0 0 auto;
    height: auto;
    margin: 0 0 4px;
}

h1 {
    margin: 0;
    font-family: "Retail-Black-Italic", Arial, sans-serif;
    font-style: italic;
    font-weight: 900;
    font-size: clamp(38px, 4.8vw, 82px);
    line-height: 0.95;
    text-transform: uppercase;
}

button {
    appearance: none;
    border: 0;
    border-radius: 0;
    background: var(--accent);
    color: #fff;
    padding: 5px 22px;
    padding-bottom: 8px;
    font-family: "Retail-Bold-Italic", Arial, sans-serif;
    font-style: italic;
    font-weight: 700;
    font-size: 20px;
    text-transform: uppercase;
    cursor: pointer;
    clip-path: polygon(6% 0%, 100% 0%, 94% 100%, 0% 100%);
}

.status {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    margin-bottom: 18px;
}

.status-card {
    min-height: 88px;
    background: var(--panel);
    border: 1px solid var(--line);
    padding: 14px 16px;
}

.label {
    display: block;
    margin-bottom: 10px;
    color: var(--muted);
    font-family: "Retail-Bold", Arial, sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.status-card strong {
    font-family: "Retail-Bold", Arial, sans-serif;
    font-size: 22px;
    line-height: 1.1;
}

.controls {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
    background: var(--panel);
    border: 1px solid var(--line);
    padding: 16px;
}

.search {
    display: grid;
    gap: 8px;
    flex: 1;
}

.search span,
.select span {
    color: var(--muted);
    font-family: "Retail-Bold", Arial, sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

input[type="search"] {
    width: 100%;
    height: 44px;
    border: 1px solid var(--line);
    background: var(--panel-soft);
    color: var(--text);
    font-family: "Retail-Regular", Arial, sans-serif;
    padding: 0 14px;
    font-size: 16px;
}

.select {
    display: grid;
    gap: 8px;
    min-width: 320px;
}

select {
    width: 100%;
    height: 44px;
    border: 1px solid var(--line);
    background: var(--panel-soft);
    color: var(--text);
    font-family: "Retail-Regular", Arial, sans-serif;
    padding: 0 14px;
    font-size: 16px;
}

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

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

th,
td {
    border-bottom: 1px solid var(--line);
    padding: 13px 14px;
    text-align: left;
    vertical-align: top;
}

th {
    position: sticky;
    top: 0;
    z-index: 1;
    background: #11111a;
    color: var(--muted);
    font-family: "Retail-Bold", Arial, sans-serif;
    font-size: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

td {
    color: var(--text);
    font-family: "Retail-Regular", Arial, sans-serif;
    font-size: 15px;
}

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

.teams {
    font-family: "Retail-Bold", Arial, sans-serif;
    font-weight: 700;
}

.links {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    min-width: 230px;
}

.link {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    background: rgba(0, 223, 255, 0.14);
    border: 1px solid rgba(0, 223, 255, 0.32);
    color: #fff;
    padding: 4px 9px;
    text-decoration: none;
    font-size: 13px;
    font-family: "Retail-Bold", Arial, sans-serif;
    font-weight: 700;
}

.link-primary {
    background: rgba(255, 0, 101, 0.18);
    border-color: rgba(255, 0, 101, 0.5);
}

.empty {
    height: 140px;
    color: var(--muted);
    text-align: center;
    vertical-align: middle;
}

@media (max-width: 900px) {
    .page {
        width: min(100vw - 24px, 1680px);
        padding-top: 22px;
    }

    .header,
    .controls {
        align-items: stretch;
        flex-direction: column;
    }

    .brand-title {
        align-items: start;
        flex-direction: column;
        gap: 12px;
    }

    .brand-logo {
        width: min(280px, 70vw);
        margin-bottom: 0;
    }

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