/* Closed dialogs must never paint during profile navigation or receive keyboard focus. */
.modal:not(.open){visibility:hidden!important;transition:none!important}
.modal.open{visibility:visible!important}
.iw-preference-modal{width:min(540px,calc(100vw - 28px))!important;max-height:calc(100dvh - 36px)!important;overflow:auto!important}
.iw-preference-modal .modal-body{padding:24px;line-height:1.6}
.iw-preference-modal p{color:#b5c1ce;margin:0 0 18px}
.iw-preference-modal h4{margin:0 0 18px}
.iw-preference-modal button:focus-visible,#iwLanguageReset:focus-visible{outline:2px solid #eed191;outline-offset:4px}
.iw-choice-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:20px 0}
.iw-choice-grid button{padding:18px;border:1px solid #526174;border-radius:12px;background:#101923;color:#edf4fc;font:inherit;cursor:pointer}
.iw-choice-grid button[aria-pressed=true]{border-color:#dfbf78;background:#302818}
#iwLanguageReset{position:fixed;right:18px;bottom:20px;z-index:2147483000;background:#e5c986;color:#15110a;border:1px solid #fff0c6;box-shadow:0 4px 24px #0008;border-radius:30px;padding:12px 18px;font:700 14px system-ui;cursor:pointer}
#iwLanguageReset[hidden]{display:none!important}
.iw-check-row,.iw-range-label{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:16px 0}
.iw-check-row{justify-content:flex-start}
.iw-platform-status{display:flex;align-items:center;gap:10px;padding:14px 12px;border:1px solid #413b2c;border-radius:12px;color:#ead29b;background:#1a1914;font-size:13px}
.iw-status-dot{width:8px;height:8px;background:#e5bb64;border-radius:50%;flex-shrink:0}
.iw-platform-status[data-state=operational] .iw-status-dot{background:#5ee29b}
.iw-settings-notice{position:fixed;left:50%;top:50%;transform:translate(-50%,-50%);z-index:2147483001;max-width:calc(100vw - 36px);padding:16px 24px;border:1px solid #486958;border-radius:16px;background:#111d18;box-shadow:0 16px 60px #0009;display:flex;align-items:center;gap:14px;color:#f0fff6;font:600 16px system-ui;pointer-events:none}
.iw-success-tick{display:grid;place-items:center;border-radius:50%;width:30px;height:30px;background:#3dc67f;color:#062d19;font-size:23px;flex-shrink:0}
.iw-account-facts{display:grid;grid-template-columns:1fr 1fr;gap:12px;font-size:13px;line-height:1.5}
.iw-account-facts dt{color:#a7b8ca}.iw-account-facts dd{margin:0;overflow-wrap:anywhere}
.iw-blocked-row{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;border-top:1px solid #34404b;padding:18px 0}
.iw-blocked-row small{display:block;color:#9aabbb}.iw-blocked-row p{width:100%;margin:0}
body.iw-a11y-reduce *,body.iw-a11y-reduce *::before,body.iw-a11y-reduce *::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}
body.iw-a11y-focus :focus-visible{outline:3px solid #f5d484!important;outline-offset:4px!important}
body.iw-a11y-large #settingsDrawer,body.iw-a11y-large .modal{font-size:18px!important}
body.iw-a11y-large .setting-label,body.iw-a11y-large .modal p,body.iw-a11y-large .modal label,body.iw-a11y-large .modal button{font-size:1em!important}
body.iw-a11y-contrast .modal,body.iw-a11y-contrast #settingsDrawer{background:#000!important;color:#fff!important;border-color:#fff!important}
body.iw-a11y-contrast .modal p,body.iw-a11y-contrast .modal small,body.iw-a11y-contrast .setting-row small{color:#e9edf5!important}

/* Colour preferences affect interface surfaces; media and artwork keep their colours. */
.iw-theme-choices{grid-template-columns:repeat(3,minmax(0,1fr))}
.iw-theme-choices button{display:grid;gap:12px;justify-items:center;padding:14px 8px;font-size:14px}
.iw-theme-swatch{display:block;width:100%;height:62px;border:1px solid #778493;border-radius:8px;box-shadow:inset 0 10px 0 #7e8a9a40}
.iw-theme-swatch-dark{background:linear-gradient(90deg,#29313d 25%,#0b121c 25%)}
.iw-theme-swatch-light{background:linear-gradient(90deg,#dce2ea 25%,#f7f9fc 25%)}
.iw-theme-swatch-system{background:linear-gradient(90deg,#0b121c 50%,#f7f9fc 50%)}
html[data-iw-theme=light]{--bg:#f3f5f8;--panel:#fff;--panel2:#edf1f6;--line:#c5cfdb;--text:#172438;--muted:#53647a;--soft:#e5ebf2;--accent:#203d68;--danger:#b82332;--shadow:0 22px 70px #26395420;--launch-panel:#fff;--launch-line:#c5cfdb;--launch-muted:#53647a;--launch-ink:#f3f5f8;--launch-gold:#b98619;--launch-blue:#245b9f;background:#f3f5f8;color-scheme:light}
html[data-iw-theme=light] body{background:#f3f5f8!important;color:var(--text)}
html[data-iw-theme=light] :is(.site-header,.settings-drawer,.modal,#iwAccountMenu,.site-footer){background:#f8fafdf7!important;color:var(--text)!important;border-color:var(--line)!important;box-shadow:var(--shadow)}
html[data-iw-theme=light] :is(.site-header,.settings-drawer,.modal,#iwAccountMenu,.site-footer) :is(h2,h3,h4,strong,.setting-label,.brand-word){color:var(--text)!important;text-shadow:none!important}
html[data-iw-theme=light] :is(.settings-drawer,.modal,#iwAccountMenu,.site-footer) :is(p,small,label,dt,.setting-group-title,.iw-account-facts dt){color:var(--muted)!important}
html[data-iw-theme=light] :is(.site-header,.settings-drawer,.modal,#iwAccountMenu) :is(button,input,select,textarea){color:var(--text)!important;background:var(--panel)!important;border-color:var(--line)!important;text-shadow:none!important}
html[data-iw-theme=light] :is(.site-header,.settings-drawer,.modal,#iwAccountMenu) :is(input,textarea)::placeholder{color:#65748a!important}
html[data-iw-theme=light] :is(.site-header,.settings-drawer,.modal,#iwAccountMenu) button:is(:hover,[aria-pressed=true],.active){background:#e0e9f5!important;border-color:#406391!important;color:#152d4d!important}
html[data-iw-theme=light] :is(.site-header .nav-btn.active,.modal .primary,.modal .secondary){background:#244b7e!important;color:#fff!important}
html[data-iw-theme=light] .iw-platform-status{background:#fff4d9;color:#604500;border-color:#dbc486}
html[data-iw-theme=light] :is(#page-creator-profile,#page-library,#page-creators,#page-discover){background:#f3f5f8!important;color:var(--text)!important}
html[data-iw-theme=light] #page-creator-profile::before{background:none!important}
html[data-iw-theme=light] #page-creator-profile :is(.iw-profile-identity,.iw-profile-tabs,.iw-profile-composer,.iw-profile-about,.iw-profile-rail section,.iw-private-drafts,.iw-social-post,.iw-profile-setup,.iw-profile-empty-account){background:#fff!important;color:var(--text)!important;border-color:var(--line)!important;border-radius:16px}
html[data-iw-theme=light] #page-creator-profile .iw-profile-identity{padding:18px}
html[data-iw-theme=light] #page-creator-profile :is(h1,h2,h3,p,small,strong,em,.iw-profile-name span,.iw-profile-name-copy,.iw-profile-handle,.iw-profile-about span,.iw-profile-rail p,.iw-profile-location b,.iw-profile-location,.iw-profile-available){color:var(--text)!important;text-shadow:none!important}
html[data-iw-theme=light] #page-creator-profile :is(button,textarea){background-color:#fff;color:var(--text);border-color:var(--line)}
html[data-iw-theme=light] #page-creator-profile :is(.iw-profile-tabs button.active,.iw-profile-action.gold,.iw-profile-composer footer button){background:#244b7e!important;color:#fff!important}
html[data-iw-theme=light] #page-creator-profile :is(.iw-profile-tabs button,.iw-profile-stats span,.iw-profile-about b,.iw-profile-composer header small,.iw-profile-composer footer span,.iw-post-actions button,.iw-private-drafts p){color:var(--muted)}
html[data-iw-theme=light] :is(#page-creators,#page-library,#page-discover) :is(.section-head h2,.section-head p,.card h3,.card h4,.result-card h4,.creator-card h3){color:var(--text)!important;text-shadow:none!important}
html[data-iw-theme=light] :is(#page-creators,#page-library,#page-discover) :is(.card,.result-card,.creator-card,.chip,.filter-btn,.tab-btn,.tabs button){background-color:var(--panel)!important;color:var(--text)!important;border-color:var(--line)!important}
html[data-iw-theme=light] body.iw-a11y-contrast :is(.modal,#settingsDrawer){background:#fff!important;color:#000!important;border-color:#000!important}
html[data-iw-theme=light] body.iw-a11y-contrast :is(.modal,#settingsDrawer) :is(p,small,label,button,.setting-label){color:#000!important}

html[data-iw-theme=light] #page-home{--text:#f5f7fb;--muted:#aab7c8;--panel:#0d0d0d;--panel2:#121212;--soft:#171717;--line:#262626;--accent:#f4f4f4;color:#f5f7fb;background-color:#02070d!important}
html[data-iw-theme=light] #page-discover :is(.discovery-panel,.filters,.results){background:#fff!important;color:var(--text)!important;border-color:var(--line)!important}
html[data-iw-theme=light] #page-discover :is(.filters button,.filters input,.filters select){background:#edf1f6!important;color:var(--text)!important;border-color:var(--line)!important}
html[data-iw-theme=light] #page-discover .result-card :is(h4,.meta,.meta span,.result-art>span){color:#fff!important;text-shadow:0 2px 6px #000,0 0 12px #000!important}
html[data-iw-theme=light] #page-creators :is(.iw-v2612-creators-head h1,.iw-v2612-creators-head p,.iw-v2612-directory-note){color:var(--text)!important}
html[data-iw-theme=light] #page-creators :is(.iw-v2612-creator-card,.iw-v2612-creator-actions input){background:#fff!important;color:var(--text)!important;border-color:var(--line)!important}
html[data-iw-theme=light] #page-creators .iw-v2612-creator-card :is(strong,p,small,b,span){color:var(--text)!important}
html[data-iw-theme=light] #page-creators :is(.iw-v2612-creators-head>span,.iw-v2612-featured-creator>span,.iw-v2612-creator-card i){color:#755000!important}
html[data-iw-theme=light] #page-library .iw-library-track{background:#fff!important;color:var(--text)!important;border-color:var(--line)!important}
html[data-iw-theme=light] #page-library .iw-library-track :is(h3,p){color:var(--text)!important}
html[data-iw-theme=light] #page-library .iw-library-track button{background:#244b7e!important;color:#fff!important;border-color:#244b7e!important}
html[data-iw-theme=light] #page-library .library-grid .card :is(h3,p,.tag){color:#fff!important;text-shadow:0 2px 6px #000!important}
html[data-iw-theme=light] .iw-preference-modal button:focus-visible{outline-color:#245b9f}
html[data-iw-theme=light] #page-creators .iw-v2612-creator-card em{color:var(--muted)!important}
html[data-iw-theme=light] #page-creators .iw-v2612-all-creators>header :is(span,strong){color:#755000!important}
