/* Safari samples the canvas background colour for its toolbar. Keep that
   brand-tinted, then paint the original dark surface beneath the glow as an
   opaque image layer. No extra header, overlay or layout shift is needed. */
html[data-system=wildberries]{--iv-shell-base:var(--market-deep,#100b1d);--iv-shell-tint:#36152f;--iv-shell-glow:radial-gradient(ellipse 750px 440px at right top,rgba(203,17,171,.23) 0%,rgba(203,17,171,.10) 32%,rgba(203,17,171,.025) 66%,rgba(203,17,171,0) 100%)}
html[data-system=ozon]{--iv-shell-base:#081327;--iv-shell-tint:#132c56;--iv-shell-glow:radial-gradient(ellipse 750px 440px at right top,rgba(0,91,255,.26) 0%,rgba(0,91,255,.12) 32%,rgba(0,91,255,.03) 66%,rgba(0,91,255,0) 100%)}
html[data-system],html[data-system] body[data-theme=dark]{background-color:var(--iv-shell-tint);background-image:var(--iv-shell-glow),linear-gradient(var(--iv-shell-base),var(--iv-shell-base));background-repeat:no-repeat;background-attachment:fixed}
body[data-system] .main{background:transparent}
body .sidebar-head .brand{display:flex;flex-direction:row;align-items:center;gap:10px;min-width:0}
body .sidebar-head .brand-wordmark{flex:none}
.iv-service-caption{max-width:100px;font-size:11px;line-height:1.3;color:var(--muted);font-weight:500;white-space:normal}
body.iv-nav-collapsed .iv-service-caption{display:none}
.iv-avatar img{display:block;width:26px;height:26px;border-radius:8px;object-fit:cover}
body .sidebar-identity .iv-settings-entry{gap:7px}
.iv-account-history h2{font-size:12px;margin:0 0 10px;color:var(--muted);font-weight:500}
.iv-account-history .sidebar-event{display:flex;flex-direction:column;gap:6px;margin-bottom:8px}
.iv-account-message{padding:12px 14px;border:1px solid #71834a;border-radius:10px;color:#e0f4b7;background:#d4ff0008}
.iv-profile-form,.iv-service-settings-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.iv-profile-form label,.iv-service-settings-form label,.iv-smtp-test label{display:flex;flex-direction:column;gap:7px;font-size:13px}
.iv-profile-form input:not([type=radio]),.iv-service-settings-form input:not([type=checkbox]),.iv-service-settings-form select,.iv-smtp-test input{width:100%;min-height:42px;padding:10px;border:1px solid var(--line);border-radius:9px;background:var(--market-canvas,#171020);color:var(--text);font:inherit}
.iv-profile-form small,.iv-service-settings-form small{font-size:11px;color:var(--muted);line-height:1.5}
.iv-profile-form .iv-avatar-styles,.iv-profile-form .iv-form-actions{grid-column:1/-1}
.iv-avatar-styles{border:1px solid var(--line);border-radius:12px;padding:14px;display:flex;gap:16px;flex-wrap:wrap}
.iv-avatar-styles legend{font-size:12px;padding:0 6px}.iv-avatar-styles label{display:grid;grid-template-columns:18px auto;gap:6px;align-items:center;font-size:11px}.iv-avatar-styles img{border-radius:10px}.iv-avatar-styles input{accent-color:#d1fe17;width:16px;height:16px}
.iv-avatar-styles label{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;width:104px;min-height:100px;padding:10px 14px;border-radius:10px;white-space:nowrap;cursor:pointer;background:#ffffff03}.iv-avatar-styles label:has(input:checked){background:#d1fe170b;box-shadow:inset 0 0 0 1px #d1fe1733}.iv-avatar-styles input{position:absolute;left:8px;top:8px;margin:0}.iv-avatar-styles img{margin-top:4px}
.iv-notification-form{display:grid;gap:12px}.iv-notification-form label,.iv-service-settings-form .iv-check{display:flex;flex-direction:row;align-items:center;gap:9px;font-size:13px}.iv-notification-form input,.iv-check input{width:18px;height:18px;accent-color:#d1fe17;flex:none}
.iv-service-settings-form .iv-check{grid-column:1/-1}.iv-smtp-test{display:flex;align-items:flex-end;gap:12px;margin-top:20px;padding-top:18px;border-top:1px solid var(--line)}.iv-smtp-test label{flex:1}
.iv-team-member{padding-top:16px;margin-top:16px;border-top:1px solid var(--line)}
.iv-overview .iv-gallery-position{display:none!important}
.iv-store-enable{flex:none;padding:3px 5px;margin-right:4px;border:0;border-radius:5px;background:#d1fe17;color:#243000;font-size:10px;font-weight:700;cursor:pointer}
.creator-photo-previews video{display:block;width:100%;height:100%;object-fit:contain;border-radius:10px;background:var(--market-canvas,#120e1c)}
.experiment-type-menu [data-experiment-type=video_cover]:is(:hover,:focus-visible) .iv-create-icon svg{transform:scale(1.1) rotate(-4deg)}
.creator-video-confirm{display:flex!important;align-items:flex-start;gap:8px;font-size:11px;line-height:1.5;color:var(--market-soft,#ddd4e7)}.creator-video-confirm[hidden]{display:none!important}.creator-video-confirm input{flex:none;width:18px;height:18px;min-height:18px;margin:2px 0;accent-color:#d1fe17}
/* Tiny CSS-only dither reduces visible 8-bit banding without a generated bitmap. */
.iv-overview .test-row:before,#iv-detail .iv-fill-shimmer{background-image:repeating-conic-gradient(#ffffff03 0 25%,#00000003 0 50%),linear-gradient(110deg,#c9ff383d,#dcff486b,#b6df2847);background-size:2px 2px,200% 100%}
.iv-overview .test-row[data-no-traffic=true]:before{background-image:repeating-conic-gradient(#ffffff03 0 25%,#00000003 0 50%),linear-gradient(110deg,#ffca3526,#ffe57870,#f5bd1a36,#ffe99070);background-size:2px 2px,250% 100%}
@supports(background:linear-gradient(90deg in oklab,black,white)){
 .iv-overview .test-row:before,#iv-detail .iv-fill-shimmer{background-image:repeating-conic-gradient(#ffffff03 0 25%,#00000003 0 50%),linear-gradient(110deg in oklab,#c9ff383d,#dcff486b,#b6df2847)}
 .iv-overview .test-row[data-no-traffic=true]:before{background-image:repeating-conic-gradient(#ffffff03 0 25%,#00000003 0 50%),linear-gradient(110deg in oklab,#ffca3526,#ffe57870,#f5bd1a36,#ffe99070)}
}
@media(max-width:720px){.iv-profile-form,.iv-service-settings-form{grid-template-columns:1fr}.iv-smtp-test{flex-direction:column;align-items:stretch}.iv-profile-form input:not([type=radio]),.iv-service-settings-form input:not([type=checkbox]){font-size:16px}}
