:root {
    color-scheme: light;
    --shell-bg: #f8f9fb;
    --shell-text: #1d1d1f;
    --shell-muted: #68696d;
    --shell-border: #e3e5e8;
    --shell-header: #fff;
}
:root.incr-black-theme {
    color-scheme: dark;
    --shell-bg: #1d1d1f;
    --shell-text: #fff;
    --shell-muted: #b2b6b9;
    --shell-border: #48484a;
    --shell-header: #242426;
}
* { box-sizing: border-box; }
body.ils-standalone {
    margin: 0; min-height: 100vh; min-height: 100svh;
    display: flex; flex-direction: column;
    background: var(--shell-bg); color: var(--shell-text);
    font-family: Arial, Helvetica, sans-serif;
}
.ils-header, .ils-footer {
    display: flex; align-items: center; justify-content: space-between; gap: 20px;
    width: 100%; padding: 22px max(24px, calc((100% - 1200px)/2));
    background: var(--shell-header);
}
.ils-header { flex-wrap: wrap; border-bottom: 1px solid var(--shell-border); }
.ils-brand {
    display: flex; align-items: center; flex-shrink: 0; gap: 10px;
    text-decoration: none; color: var(--shell-text);
    font-size: 22px; font-weight: 800; letter-spacing: -.6px;
}
.ils-brand img { display: block; }
.ils-header-actions {
    display: flex; align-items: center; justify-content: flex-end; gap: 12px;
    margin-left: auto; min-width: 0;
}
.ils-languages { display: flex; flex-wrap: wrap; gap: 5px; }
.ils-languages a {
    padding: 9px 10px; border-radius: 6px; color: var(--shell-text);
    font-size: 13px; text-decoration: none; font-weight: 700;
}
.ils-languages a[aria-current] { color: #eb5643; background: #fef3f2; }
.ils-theme-toggle {
    display: inline-flex; flex-shrink: 0; align-items: center; justify-content: center;
    width: 42px; height: 42px; padding: 9px; border-radius: 6px;
    border: 1px solid var(--shell-border); background: transparent;
    color: var(--shell-text); cursor: pointer;
}
.ils-theme-toggle[hidden] { display: none !important; }
.ils-theme-toggle:hover { background: var(--shell-border); }
.ils-theme-toggle svg { width: 22px; height: 22px; }
.ils-theme-icon-light { display: none; }
.incr-black-theme .ils-theme-icon-dark { display: none; }
.incr-black-theme .ils-theme-icon-light { display: block; }
.ils-standalone .ils-page {
    flex: 1; display: flex; align-items: center; justify-content: center;
    min-width: 0; padding: 60px 20px;
}
.ils-standalone .ils-card { margin: 0; }
.ils-footer { border-top: 1px solid var(--shell-border); font-size: 12px; color: var(--shell-muted); }
.ils-footer a { color: var(--shell-text); text-decoration: none; }
a:focus-visible, .ils-theme-toggle:focus-visible { outline: 3px solid #eb5643; outline-offset: 3px; }
:root.incr-black-theme .ils-standalone .ils-page {
    --ils-text: #fff; --ils-muted: #b2b6b9; --ils-card: #313135;
    --ils-surface: #1d1d1f; --ils-border: #48484a;
}
:root.incr-black-theme .ils-languages a[aria-current],
:root.incr-black-theme .ils-standalone .ils-referral-disclaimer { background: #2b1411; }
:root.incr-black-theme .ils-standalone .ils-referral-disclaimer { color: #dadce0; }
@media (max-width: 550px) {
    .ils-header { padding: 18px 16px; gap: 12px; }
    .ils-brand { font-size: 18px; gap: 8px; }
    .ils-brand img { width: 32px; height: 32px; }
    .ils-header-actions { gap: 8px; }
    .ils-languages a { padding: 8px; }
    .ils-standalone .ils-page { padding: 35px 15px; }
    .ils-footer { padding: 20px 16px; }
}
