.is-top-actions {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    gap: clamp(8px, 1.1vw, 16px);
}

.is-theme-toggle {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 28px;
    padding: 3px 7px;
    border: 1px solid #8a979b;
    border-radius: 4px;
    background: transparent;
    color: inherit;
    font: inherit;
    cursor: pointer;
    white-space: nowrap;
}

.is-theme-toggle::before {
    content: '';
    width: 10px;
    height: 10px;
    border: 1px solid currentColor;
    border-radius: 50%;
    background: linear-gradient(90deg, currentColor 50%, transparent 50%);
}

.is-theme-toggle:hover,
.is-theme-toggle[aria-pressed="true"] {
    background: #f3efe5;
    color: #14252c;
}

.is-theme-toggle:focus-visible {
    outline-color: #f5ae9b;
}

@media (max-width: 670px) {
    .is-top .is-wrap {
        gap: 6px;
    }

    .is-theme-toggle {
        min-height: 32px;
    }
}

:root[data-infosvet-theme="dark"] {
    color-scheme: dark;
    --paper: #152027;
    --ink: #f3f0e8;
    --muted: #b5c1c6;
    --line: #43545c;
    --accent: #f4a48f;
    --dark: #102026;
    --is-dark-panel: #202f37;
    --is-dark-field: #1a282f;
}

[data-infosvet-theme="dark"] body {
    background-color: var(--paper);
    color: var(--ink);
}

[data-infosvet-theme="dark"] .is-brand.is-brand--image img {
    filter: invert(1) hue-rotate(180deg);
}

[data-infosvet-theme="dark"] .is-footer .is-brand.is-brand--image {
    background-color: transparent;
}

[data-infosvet-theme="dark"] :is(.is-topics a:hover,.is-banner,.is-social-panel,.is-instagram-card,.is-instagram-channel,.is-social-reels .is-social-reel,.is-social-feature #facebook-iz-kraja,.is-facebook-card,.is-ads-filter,.is-ads-form,.is-ads-empty,.is-ads-feedback,.is-ads-widget-side,.is-col-app .is-col-form,.is-col-notice) {
    background-color: var(--is-dark-panel);
    color: var(--ink);
    border-color: var(--line);
}

[data-infosvet-theme="dark"] :is(.is-instagram-heading h2,.is-social-panel h2,.is-instagram-channel-head h3,.is-social-rail-heading h3,.is-social-reels > h4,.is-social-reel-row h3,.is-social-feature .is-facebook-card,.is-col-app) {
    color: var(--ink);
}

[data-infosvet-theme="dark"] :is(.is-article-head .is-deck,.is-social-rail-heading p,.is-ads-meta,.is-col-submissions span) {
    color: var(--muted);
}

[data-infosvet-theme="dark"] :is(.is-instagram-heading p,.is-social-label,.is-facebook .is-instagram-heading p) {
    color: var(--accent);
}

[data-infosvet-theme="dark"] :is(.is-instagram-profile select,.is-social-share a,.is-social-share button,.is-profile-switches button:not([aria-pressed="true"]),.is-facebook-group a,.is-ads input:not([type="checkbox"]),.is-ads select,.is-ads textarea,.is-col-form input:not([type="checkbox"]),.is-col-form textarea) {
    background-color: var(--is-dark-field);
    color: var(--ink);
    border-color: var(--line);
}

[data-infosvet-theme="dark"] :is(.is-search input,.is-ads input,.is-ads textarea,.is-col-form input,.is-col-form textarea)::placeholder {
    color: var(--muted);
}

[data-infosvet-theme="dark"] :is(a, button, input, select, textarea, summary):focus-visible {
    outline-color: var(--accent);
}

[data-infosvet-theme="dark"] :is(.is-mark,.is-lead .is-label) {
    background-color: #963e35;
}
