/* Icecat brand palette and Montserrat, as on icecat.biz (frontoffice/ssr-app src/styles/global.css). */
@font-face {
    font-family: Montserrat;
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('/fonts/montserrat-cyrillic.woff2') format('woff2');
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
    font-family: Montserrat;
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('/fonts/montserrat-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: Montserrat;
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('/fonts/montserrat-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
    color-scheme: light;
    --theme-font: Montserrat, Arial, sans-serif;
    --theme-bg: #f4f6fb;
    --theme-surface: #ffffff;
    --theme-raised: #ffffff;
    --theme-header: #ffffff;
    --theme-text: #2b3348;
    --theme-heading: #2e3f77;
    --theme-muted: #5d6680;
    --theme-border: #c5cde4;
    --theme-hover: #eef1fa;
    --theme-selection: #dde4f8;
    --theme-accent: #21409a;
    --theme-on-accent: #ffffff;
    --theme-link: #21409a;
    --theme-danger: #c40c0c;
    --theme-danger-bg: #fdeaea;
    --theme-success: #1b6e1b;
    --theme-success-bg: #e5f3e5;
    --theme-warning: #7a4f00;
    --theme-warning-bg: #fff1d6;
    --theme-focus: #21409a;
    --theme-shadow: rgb(33 64 154 / 12%);
    --theme-json-string: #547500;
    --theme-json-number: #8654ac;
    --theme-table-row-alt: #f6f8fd;
    --theme-table-group: #eef1fa;
    --theme-table-border: #c5cde4;
}

:root[data-theme="dark"] {
    color-scheme: dark;
    --theme-bg: #0d1324;
    --theme-surface: #121a2e;
    --theme-raised: #172038;
    --theme-header: #121a2e;
    --theme-text: #ffffff;
    --theme-heading: #ffffff;
    --theme-muted: #ffffff;
    --theme-border: #2e3b5f;
    --theme-hover: #1e2945;
    --theme-selection: #263866;
    --theme-accent: #3d5fc4;
    --theme-on-accent: #ffffff;
    --theme-link: #94acf2;
    --theme-danger: #ff7a7a;
    --theme-danger-bg: #3a1d26;
    --theme-success: #84d38f;
    --theme-success-bg: #1b3226;
    --theme-warning: #ffb33c;
    --theme-warning-bg: #3a2d15;
    --theme-focus: #94acf2;
    --theme-shadow: rgb(0 0 0 / 40%);
    --theme-json-string: #a5d77f;
    --theme-json-number: #c3a6ff;
    --theme-table-row-alt: #121a2e;
    --theme-table-group: #1a2440;
    --theme-table-border: #2e3b5f;
}

html { min-height: 100%; }
body {
    min-height: 100vh;
    min-height: 100dvh;
    margin: 0;
    display: flex;
    flex-direction: column;
    background: var(--theme-bg);
    color: var(--theme-text);
    font-family: var(--theme-font);
    line-height: 1.5;
}
body > main { flex: 1 0 auto; min-width: 0; }
body > nav, body > header { flex-shrink: 0; }
body:not(.launchpad-page) > main { width: min(1400px, 100%); box-sizing: border-box; }
.launchpad-ui h1, .launchpad-ui h2, .launchpad-ui h3, .launchpad-ui h4, .launchpad-ui h5, .launchpad-ui h6 { color: var(--theme-heading); }
.launchpad-ui a { color: var(--theme-link); }
.launchpad-ui a:hover { color: var(--theme-heading); }
::selection { background: var(--theme-selection); color: var(--theme-heading); }
:focus-visible { outline: 2px solid var(--theme-focus); outline-offset: 3px; }

body .launchpad-ui .navbar.bg-info, .site-header {
    background: var(--theme-header) !important;
    color: var(--theme-heading);
    border-bottom: 1px solid var(--theme-border);
}
.site-header { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; padding: 16px 24px; }
.site-header a { color: var(--theme-link); font-weight: 600; text-decoration: none; }
:root[data-theme="dark"] .site-header a { color: var(--theme-heading); }
:root[data-theme="dark"] .site-header a:hover { text-decoration: underline; }
.site-header > .theme-toggle { margin-left: auto; }
body .launchpad-ui .navbar-light .navbar-nav .nav-link { color: var(--theme-text); }
body .launchpad-ui .navbar-light .navbar-nav .nav-link:hover { color: var(--theme-heading); }
.launchpad-ui :is(button, input, select, textarea) { font: inherit; }
.launchpad-ui button { cursor: pointer; }
.launchpad-ui button:disabled { cursor: default; }
body .launchpad-ui .btn, body .launchpad-ui button:not(.btn), body .launchpad-ui .form-control, body .launchpad-ui .form-select,
body .launchpad-ui input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
body .launchpad-ui select, body .launchpad-ui textarea {
    background-color: var(--theme-surface);
    color: var(--theme-text);
    border: 1px solid var(--theme-border);
}
body .launchpad-ui button:not(.btn), body:not(.launchpad-page) .launchpad-ui input, body:not(.launchpad-page) .launchpad-ui select { border-radius: 5px; padding: 9px 12px; }
body .launchpad-ui .btn:hover, body .launchpad-ui button:not(.btn):hover { background-color: var(--theme-hover); color: var(--theme-heading); border-color: var(--theme-accent); }
body .launchpad-ui .btn:focus, body .launchpad-ui .form-control:focus, body .launchpad-ui .form-select:focus { border-color: var(--theme-focus); box-shadow: 0 0 0 3px var(--theme-selection); }
body .launchpad-ui .btn-primary, body #jsoncall { background-color: var(--theme-accent); border-color: var(--theme-accent); color: var(--theme-on-accent); }
body .launchpad-ui .btn-primary:hover, body #jsoncall:hover { background-color: var(--theme-accent); color: var(--theme-on-accent); filter: brightness(.94); }
body .launchpad-ui .btn-danger { color: var(--theme-danger); background-color: var(--theme-danger-bg); }
body .launchpad-ui .btn-danger:hover { color: var(--theme-danger); background-color: var(--theme-danger-bg); border-color: var(--theme-danger); }
body .launchpad-ui .btn-success { color: var(--theme-success); background-color: var(--theme-success-bg); }
body .launchpad-ui .btn:disabled, body .launchpad-ui .btn.disabled { color: var(--theme-muted); background-color: var(--theme-surface); border-color: var(--theme-border); opacity: .65; }
body .launchpad-ui .btn-check:checked + .btn-outline-info, body .launchpad-ui .btn.active, body .launchpad-ui .btn:active {
    color: var(--theme-heading); background-color: var(--theme-selection); border-color: var(--theme-accent);
}
body .launchpad-ui .btn-check:focus-visible + .btn { outline: 2px solid var(--theme-focus); outline-offset: 3px; }
.launchpad-ui input[type="checkbox"], .launchpad-ui input[type="radio"] { accent-color: var(--theme-accent); }
.launchpad-ui input::placeholder, .launchpad-ui textarea::placeholder { color: var(--theme-muted) !important; opacity: 1; }
body .launchpad-ui .form-control:disabled, body .launchpad-ui .form-select:disabled { background-color: var(--theme-header); }
body .launchpad-ui .input-group-text { color: var(--theme-text); background-color: var(--theme-header); border-color: var(--theme-border); }
body .launchpad-ui input[type="file"]::file-selector-button { background: var(--theme-header); color: var(--theme-text); border: 1px solid var(--theme-border); border-radius: 4px; padding: 6px 10px; }
body .launchpad-ui .dropdown-menu, body .launchpad-ui .modal-content { color: var(--theme-text); background: var(--theme-raised); border-color: var(--theme-border); box-shadow: 0 8px 24px var(--theme-shadow); }
body .launchpad-ui .dropdown-item { color: var(--theme-text); }
body .launchpad-ui .dropdown-item:hover, body .launchpad-ui .dropdown-item:focus { color: var(--theme-heading); background: var(--theme-hover); }
body .launchpad-ui .modal-header, body .launchpad-ui .modal-footer { border-color: var(--theme-border); }
body .launchpad-ui .btn-close { background-color: transparent; border: 0; }
:root[data-theme="dark"] .launchpad-ui .btn-close { filter: invert(1) grayscale(1); }
:root[data-theme="dark"] .launchpad-ui .form-select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23ffffff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3E%3C/svg%3E"); }
body .launchpad-ui code, body .launchpad-ui pre { color: var(--theme-heading); }
body .launchpad-ui .header, body .launchpad-ui h2, body .launchpad-ui .bp-container { background-color: var(--theme-header); border-color: var(--theme-border); }
body .launchpad-ui .text-dark { color: var(--theme-text) !important; }

body .launchpad-ui .theme-toggle {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    width: 42px;
    height: 40px;
    padding: 0;
    border-radius: 6px;
    color: var(--theme-accent);
    background: var(--theme-surface);
    border: 1px solid var(--theme-border);
    list-style: none;
    cursor: pointer;
}
.theme-toggle::-webkit-details-marker { display: none; }
.theme-toggle svg {
    display: block;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}
/* The icon shows the theme the button switches to. */
.theme-toggle .theme-sun { display: none; }
:root[data-theme="dark"] .theme-moon { display: none; }
:root[data-theme="dark"] .theme-sun { display: block; }
.uploads-main { max-width: 1100px !important; margin: 32px auto; padding: 0 24px; }
.uploads-main li { padding: 6px 0; overflow-wrap: anywhere; }

body .launchpad-ui .table-wrap { background: var(--theme-surface); border-color: var(--theme-border); }
body .launchpad-ui th { background: var(--theme-header); color: var(--theme-heading); }
body .launchpad-ui th, body .launchpad-ui td { border-bottom-color: var(--theme-border); }
body .launchpad-ui .today { background: var(--theme-success-bg); color: var(--theme-success); }
body .launchpad-ui .yesterday { background: var(--theme-warning-bg); color: var(--theme-warning); }
body .launchpad-ui .old { background: var(--theme-danger-bg); color: var(--theme-danger); }
body .launchpad-ui .unknown { background: var(--theme-header); color: var(--theme-muted); }
body .launchpad-ui .note, body #languageStatus, body #statusMessage, body #uploadsStatus { color: var(--theme-muted); }
body:not(.launchpad-page) .launchpad-ui p { color: var(--theme-muted); }

body .json-viewer, body .json-viewer a.list-link { color: var(--theme-text); }
body .json-viewer ul { border-left-color: var(--theme-border); }
body .json-viewer .type-string { color: var(--theme-json-string); }
body .json-viewer .type-number, body .json-viewer .type-boolean,
body .json-viewer .type-null, body .json-viewer .type-undefined { color: var(--theme-json-number); }
body .json-viewer .type-date { color: var(--theme-warning); }
body .json-viewer .items-ph, body .json-viewer a.list-link:before { color: var(--theme-muted); }

@media (max-width: 600px) {
    .site-header { padding: 12px 14px; gap: 12px; }
}

.header-tooltip {
    position: fixed;
    z-index: 1100;
    max-width: min(260px, calc(100vw - 16px));
    padding: 10px 12px;
    border: 1px solid var(--theme-border);
    border-radius: 6px;
    background: var(--theme-raised);
    color: var(--theme-text);
    box-shadow: 0 5px 18px var(--theme-shadow);
    font: 13px/1.5 var(--theme-font);
    pointer-events: none;
}
.header-tooltip[hidden] { display: none; }
