/* Verified personalization */
.iris-verification-badge[data-badge-color="blue"]{background-color:#0866FF}
.iris-verification-badge[data-badge-color="purple"]{background-image:url('/icons/verified-purple-flat-v1.svg')!important}
.iris-verification-badge[data-badge-color="gold"]{background-color:#D9A441}
.iris-verification-badge[data-badge-color="rose"]{background-color:#F48FB1}
.iris-verification-badge[data-badge-color="red"]{background-color:#ED1C24}
.iris-verification-badge[data-badge-color="green"]{background-image:url('/icons/verified-green-flat-v1.svg')!important}
.iris-verification-badge[data-badge-color="graphite"]{background-color:#4B4F58}
.iris-verification-badge[data-badge-color="purple"],.iris-verification-badge[data-badge-color="green"]{background-color:transparent!important;background-position:center!important;background-size:contain!important;background-repeat:no-repeat!important;-webkit-mask:none!important;mask:none!important;filter:none!important;mix-blend-mode:normal!important;background-blend-mode:normal!important}
.iris-verification-badge[data-badge-color="purple"]::after,.iris-verification-badge[data-badge-color="green"]::after{content:none!important;display:none!important}
/* Glow belongs to the white check, never to the badge silhouette. */
.iris-verification-badge{box-shadow:none!important;text-shadow:none!important}
.iris-verification-badge[data-badge-glow="true"]{filter:none!important}
.iris-verification-badge[data-badge-glow="true"]::before{content:"";position:absolute;inset:0;z-index:0;background:url('/icons/verified-check-v1.svg') center/contain no-repeat;filter:drop-shadow(0 0 .5px #fff) drop-shadow(0 0 1.3px color-mix(in srgb,#fff 85%,var(--iris-badge-neon,#00F5FF) 15%));box-shadow:none;opacity:.9;pointer-events:none}
.iris-verification-badge[data-badge-color^="legacy-"]{filter:none;background-repeat:no-repeat;background-position:center;background-blend-mode:overlay,color,normal}
.iris-verification-badge[data-badge-color="legacy-metallic-gold"]{background-image:linear-gradient(120deg,rgba(0,0,0,.55) 0%,rgba(255,255,255,.95) 31%,rgba(0,0,0,.28) 50%,rgba(255,255,255,.82) 68%,rgba(0,0,0,.48) 100%),linear-gradient(135deg,#6b4800,#d99b19 24%,#ffe887 45%,#aa7100 64%,#f4c84b 82%,#795100),url('/icons/verified-badge.png');background-size:180% 180%,180% 180%,contain}
.iris-verification-badge[data-badge-color="legacy-chrome"]{background-image:linear-gradient(120deg,rgba(0,0,0,.62) 0%,rgba(255,255,255,.96) 28%,rgba(0,0,0,.2) 46%,rgba(255,255,255,.92) 61%,rgba(0,0,0,.58) 82%,rgba(255,255,255,.75) 100%),linear-gradient(135deg,#262b31,#eef2f6 22%,#737a83 42%,#fff 55%,#8c939c 71%,#1e2329),url('/icons/verified-badge.png');background-size:190% 190%,190% 190%,contain}
.iris-verification-badge[data-badge-color="legacy-neo-chrome"]{background-image:linear-gradient(120deg,rgba(255,255,255,.28),rgba(0,0,0,.22) 35%,rgba(255,255,255,.42) 58%,rgba(0,0,0,.16) 80%),linear-gradient(135deg,#8f4cff 0%,#3d8dff 18%,#46f0e0 34%,#f5f7ff 46%,#ff62bc 61%,#ffb84f 77%,#7d51ff 100%),url('/icons/verified-badge.png');background-size:220% 220%,220% 220%,contain}
.iris-verification-badge[data-badge-color="legacy-chameleon"]{background-image:linear-gradient(120deg,rgba(255,255,255,.3),rgba(0,0,0,.2) 42%,rgba(255,255,255,.38) 68%,rgba(0,0,0,.18)),linear-gradient(135deg,#19d6a3 0%,#1bb7c9 22%,#6557f5 44%,#d64ac6 66%,#f08c55 82%,#3cd89e 100%),url('/icons/verified-badge.png');background-size:220% 220%,220% 220%,contain}
.iris-verification-badge[data-badge-color="legacy-black-chrome"]{background-image:linear-gradient(120deg,rgba(0,0,0,.7),rgba(255,255,255,.72) 30%,rgba(0,0,0,.58) 50%,rgba(255,255,255,.58) 70%,rgba(0,0,0,.76)),linear-gradient(135deg,#050608,#636b76 24%,#15181d 44%,#a9b0b9 56%,#242933 72%,#020304),url('/icons/verified-badge.png');background-size:190% 190%,190% 190%,contain}
@keyframes irisBadgeSheen{0%{background-position:0% 50%}100%{background-position:100% 50%}}
@media(prefers-reduced-motion:no-preference){.iris-verification-badge.verified-badge[data-badge-color^="legacy-"]{animation:irisBadgeSheen 1.8s ease-out 1}}
.verified-personalization{margin:22px 0;padding:18px;border:1px solid var(--iris-line,#ebe8ee);border-radius:20px;background:var(--iris-surface,#fff)}
.vp-head{display:grid;gap:5px;margin-bottom:20px}.vp-kicker{color:var(--iris-accent,#7052e7);font-size:11px;font-weight:800;letter-spacing:.08em;text-transform:uppercase}.vp-head h3{margin:0;font-size:21px}.vp-head p{margin:0;line-height:1.45}
.vp-block{display:grid;gap:10px;margin-top:18px}.vp-label{display:grid;gap:2px}.vp-label strong{font-size:14px}.vp-label span{color:var(--iris-muted,#8b8590);font-size:11px}
.vp-badge-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.vp-badge-option{display:grid;place-items:center;gap:7px;min-height:76px;padding:9px 5px;border:1px solid var(--iris-line,#e6e2e9);border-radius:14px;background:var(--iris-surface-2,#f8f7f9);color:var(--iris-text,#211e25);font:inherit;font-size:11px}.vp-badge-option.selected{border-color:var(--iris-accent,#7052e7);box-shadow:0 0 0 2px color-mix(in srgb,var(--iris-accent,#7052e7) 14%,transparent)}.vp-badge-preview{width:24px!important;height:24px!important}
.vp-legacy-block{padding-top:18px;border-top:1px solid var(--iris-line,#e6e2e9)}.vp-legacy-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.vp-badge-option[data-legacy="true"]{background:linear-gradient(145deg,color-mix(in srgb,var(--iris-surface-2,#f8f7f9) 82%,#fff),var(--iris-surface-2,#f8f7f9))}.vp-legacy-locked{padding:14px;border:1px dashed var(--iris-line,#d8d2dd);border-radius:14px;background:var(--iris-surface-2,#f8f7f9);color:var(--iris-muted,#8b8590);font-size:12px;line-height:1.45}
.vp-glow-controls{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.vp-glow-toggle{min-width:58px;min-height:34px;padding:0 13px;border:1px solid var(--iris-line,#e6e2e9);border-radius:999px;background:var(--iris-surface-2,#f8f7f9);color:var(--iris-text,#211e25);font:inherit;font-size:12px;font-weight:700}.vp-glow-toggle.selected{background:var(--iris-accent,#7052e7);border-color:var(--iris-accent,#7052e7);color:#fff}.vp-neon-grid{display:flex;gap:7px}.vp-neon-option{width:27px;height:27px;padding:0;border:3px solid transparent;border-radius:50%;background:var(--vp-neon);font-size:0;box-shadow:0 0 8px color-mix(in srgb,var(--vp-neon) 70%,transparent)}.vp-neon-option.selected{border-color:var(--iris-text,#211e25);box-shadow:0 0 0 2px var(--iris-bg,#fff),0 0 0 4px var(--vp-neon)}
.vp-theme-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}.vp-theme-option{display:grid;gap:8px;padding:10px;border:1px solid var(--iris-line,#e6e2e9);border-radius:14px;background:var(--iris-surface-2,#f8f7f9);color:var(--iris-text,#211e25);font:inherit;text-align:left}.vp-theme-option.selected{border-color:var(--iris-accent,#7052e7);box-shadow:0 0 0 2px color-mix(in srgb,var(--iris-accent,#7052e7) 14%,transparent)}.vp-theme-option strong{font-size:11px}.vp-theme-swatch{display:grid;grid-template-columns:2fr 1fr 1fr;height:32px;overflow:hidden;border-radius:9px;border:1px solid #0000000f}.vp-theme-swatch i{display:block}
.vp-theme-option[data-theme="default"] .vp-theme-swatch i:nth-child(1){background:#fff}.vp-theme-option[data-theme="default"] .vp-theme-swatch i:nth-child(2){background:#f2f1f4}.vp-theme-option[data-theme="default"] .vp-theme-swatch i:nth-child(3){background:#7052e7}
.vp-theme-option[data-theme="dark"] .vp-theme-swatch i:nth-child(1){background:#101114}.vp-theme-option[data-theme="dark"] .vp-theme-swatch i:nth-child(2){background:#1b1d22}.vp-theme-option[data-theme="dark"] .vp-theme-swatch i:nth-child(3){background:#9177ff}
.vp-theme-option[data-theme="midnight"] .vp-theme-swatch i:nth-child(1){background:#0b1020}.vp-theme-option[data-theme="midnight"] .vp-theme-swatch i:nth-child(2){background:#141c31}.vp-theme-option[data-theme="midnight"] .vp-theme-swatch i:nth-child(3){background:#6f8cff}
.vp-theme-option[data-theme="rose"] .vp-theme-swatch i:nth-child(1){background:#fbf2f6}.vp-theme-option[data-theme="rose"] .vp-theme-swatch i:nth-child(2){background:#f1dce7}.vp-theme-option[data-theme="rose"] .vp-theme-swatch i:nth-child(3){background:#c45482}
.vp-theme-option[data-theme="forest"] .vp-theme-swatch i:nth-child(1){background:#edf3ee}.vp-theme-option[data-theme="forest"] .vp-theme-swatch i:nth-child(2){background:#d9e7dc}.vp-theme-option[data-theme="forest"] .vp-theme-swatch i:nth-child(3){background:#3d7d5b}
.vp-theme-option[data-theme="sand"] .vp-theme-swatch i:nth-child(1){background:#f6f0e5}.vp-theme-option[data-theme="sand"] .vp-theme-swatch i:nth-child(2){background:#eadfca}.vp-theme-option[data-theme="sand"] .vp-theme-swatch i:nth-child(3){background:#aa7844}
.vp-save{width:100%;min-height:44px;margin-top:18px;border:0;border-radius:999px;background:var(--iris-accent,#7052e7);color:#fff;font:inherit;font-weight:750}.vp-status{min-height:18px;margin:8px 0 0;color:var(--iris-muted,#8b8590);font-size:12px;text-align:center}

/* Theme tokens */
html{--iris-bg:#fff;--iris-surface:#fff;--iris-surface-2:#f7f6f8;--iris-text:#211e25;--iris-muted:#827c87;--iris-line:#ebe8ee;--iris-accent:#7052e7}
html[data-iris-theme="dark"]{--iris-bg:#0f1012;--iris-surface:#15171b;--iris-surface-2:#1d2025;--iris-text:#f5f3f7;--iris-muted:#aaa5af;--iris-line:#2b2e34;--iris-accent:#9177ff}
html[data-iris-theme="midnight"]{--iris-bg:#0b1020;--iris-surface:#10182b;--iris-surface-2:#17213a;--iris-text:#eef2ff;--iris-muted:#9ba8c8;--iris-line:#263354;--iris-accent:#708dff}
html[data-iris-theme="rose"]{--iris-bg:#fbf2f6;--iris-surface:#fff9fb;--iris-surface-2:#f4e4ec;--iris-text:#34202a;--iris-muted:#8d6f7d;--iris-line:#ead2de;--iris-accent:#c45482}
html[data-iris-theme="forest"]{--iris-bg:#edf3ee;--iris-surface:#f8fbf8;--iris-surface-2:#e0ebe2;--iris-text:#1e3126;--iris-muted:#687a6e;--iris-line:#cfddd2;--iris-accent:#3d7d5b}
html[data-iris-theme="sand"]{--iris-bg:#f6f0e5;--iris-surface:#fffaf1;--iris-surface-2:#ede2ce;--iris-text:#34291d;--iris-muted:#857563;--iris-line:#e1d3bb;--iris-accent:#aa7844}
html[data-iris-theme]:not([data-iris-theme="default"]) body,
html[data-iris-theme]:not([data-iris-theme="default"]) .shell,
html[data-iris-theme]:not([data-iris-theme="default"]) #app,
html[data-iris-theme]:not([data-iris-theme="default"]) #pane{background:var(--iris-bg)!important;color:var(--iris-text)!important}
html[data-iris-theme]:not([data-iris-theme="default"]) .top,
html[data-iris-theme]:not([data-iris-theme="default"]) .bottom-nav,
html[data-iris-theme]:not([data-iris-theme="default"]) .panel,
html[data-iris-theme]:not([data-iris-theme="default"]) .home-feed,
html[data-iris-theme]:not([data-iris-theme="default"]) .core-profile,
html[data-iris-theme]:not([data-iris-theme="default"]) .explore-screen,
html[data-iris-theme]:not([data-iris-theme="default"]) .notifications-screen,
html[data-iris-theme]:not([data-iris-theme="default"]) .messaging-screen,
html[data-iris-theme]:not([data-iris-theme="default"]) .conversation-screen,
html[data-iris-theme]:not([data-iris-theme="default"]) .account-center,
html[data-iris-theme]:not([data-iris-theme="default"]) .ic-host,
html[data-iris-theme]:not([data-iris-theme="default"]) .voice-v2{background:var(--iris-bg)!important;color:var(--iris-text)!important}
html[data-iris-theme]:not([data-iris-theme="default"]) .home-compose,
html[data-iris-theme]:not([data-iris-theme="default"]) .home-post,
html[data-iris-theme]:not([data-iris-theme="default"]) .explore-card,
html[data-iris-theme]:not([data-iris-theme="default"]) .explore-person,
html[data-iris-theme]:not([data-iris-theme="default"]) .nv-sticky,
html[data-iris-theme]:not([data-iris-theme="default"]) .nv-row,
html[data-iris-theme]:not([data-iris-theme="default"]) .profile-tab,
html[data-iris-theme]:not([data-iris-theme="default"]) .core-profile-head,
html[data-iris-theme]:not([data-iris-theme="default"]) .post-edit-dialog,
html[data-iris-theme]:not([data-iris-theme="default"]) .profile-switch-dialog{background:var(--iris-surface)!important;color:var(--iris-text)!important;border-color:var(--iris-line)!important}
html[data-iris-theme]:not([data-iris-theme="default"]) input,
html[data-iris-theme]:not([data-iris-theme="default"]) textarea,
html[data-iris-theme]:not([data-iris-theme="default"]) .explore-search,
html[data-iris-theme]:not([data-iris-theme="default"]) .account-action-menu{background:var(--iris-surface-2)!important;color:var(--iris-text)!important;border-color:var(--iris-line)!important}
html[data-iris-theme]:not([data-iris-theme="default"]) .muted,
html[data-iris-theme]:not([data-iris-theme="default"]) .profile-handle,
html[data-iris-theme]:not([data-iris-theme="default"]) .home-post-time,
html[data-iris-theme]:not([data-iris-theme="default"]) .conversation-preview{color:var(--iris-muted)!important}
html[data-iris-theme]:not([data-iris-theme="default"]) .profile-tab.active::after,
html[data-iris-theme]:not([data-iris-theme="default"]) .nav-item.active::after{background:var(--iris-accent)!important}
@media(max-width:430px){.vp-badge-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.vp-theme-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
/* Personalization polish v2: full component theming + profile readability. */
html[data-iris-theme]{--core-purple:var(--iris-accent);--core-ink:var(--iris-text);--core-muted:var(--iris-muted);--core-line:var(--iris-line);--core-lav:var(--iris-surface-2)}
html[data-iris-theme="default"]{--iris-bg:#ffffff;--iris-surface:#ffffff;--iris-surface-2:#f6f5f8;--iris-surface-3:#eeebf3;--iris-text:#211e25;--iris-muted:#817a87;--iris-line:#e8e4eb;--iris-accent:#7052e7;--iris-accent-soft:#eee9ff;--iris-shadow:rgba(27,21,33,.08);--iris-button:#ffffff;--iris-button-text:#211e25}
html[data-iris-theme="dark"]{--iris-bg:#0f1012;--iris-surface:#15171a;--iris-surface-2:#1c1e23;--iris-surface-3:#25282e;--iris-text:#f4f4f5;--iris-muted:#a6a8af;--iris-line:#2c2f35;--iris-accent:#9a82ff;--iris-accent-soft:#2b2445;--iris-shadow:rgba(0,0,0,.32);--iris-button:#202329;--iris-button-text:#f7f7f8}
html[data-iris-theme="midnight"]{--iris-bg:#09101e;--iris-surface:#10192b;--iris-surface-2:#17223a;--iris-surface-3:#202d49;--iris-text:#f1f5ff;--iris-muted:#9da9c2;--iris-line:#2a3857;--iris-accent:#7893ff;--iris-accent-soft:#1d2d5a;--iris-shadow:rgba(3,7,18,.38);--iris-button:#17233b;--iris-button-text:#f4f7ff}
html[data-iris-theme="rose"]{--iris-bg:#fbf3f7;--iris-surface:#fffafd;--iris-surface-2:#f5e8ef;--iris-surface-3:#ecd8e3;--iris-text:#35242d;--iris-muted:#866f7a;--iris-line:#ead6e0;--iris-accent:#be557f;--iris-accent-soft:#f1dce7;--iris-shadow:rgba(91,54,70,.10);--iris-button:#fffafd;--iris-button-text:#35242d}
html[data-iris-theme="forest"]{--iris-bg:#edf3ee;--iris-surface:#f8fbf8;--iris-surface-2:#e1ebe3;--iris-surface-3:#d4e2d7;--iris-text:#213229;--iris-muted:#68786e;--iris-line:#cfddd2;--iris-accent:#447c5d;--iris-accent-soft:#d9e9de;--iris-shadow:rgba(42,70,53,.10);--iris-button:#f8fbf8;--iris-button-text:#213229}
html[data-iris-theme="sand"]{--iris-bg:#f7f1e7;--iris-surface:#fffaf2;--iris-surface-2:#eee3d1;--iris-surface-3:#e3d4bb;--iris-text:#392f23;--iris-muted:#827463;--iris-line:#dfd1b9;--iris-accent:#a87543;--iris-accent-soft:#ebdcc5;--iris-shadow:rgba(77,60,41,.10);--iris-button:#fffaf2;--iris-button-text:#392f23}

html[data-iris-theme] body,
html[data-iris-theme] .shell,
html[data-iris-theme] #app,
html[data-iris-theme] #pane,
html[data-iris-theme] .core-ui,
html[data-iris-theme] .core-ui-host,
html[data-iris-theme] .core-edit,
html[data-iris-theme] .create-screen,
html[data-iris-theme] .create-fallback,
html[data-iris-theme] .home-feed,
html[data-iris-theme] .core-profile,
html[data-iris-theme] .explore-screen,
html[data-iris-theme] .notifications-screen,
html[data-iris-theme] .messaging-screen,
html[data-iris-theme] .conversation-screen,
html[data-iris-theme] .account-center,
html[data-iris-theme] .ic-host,
html[data-iris-theme] .voice-v2{background:var(--iris-bg)!important;color:var(--iris-text)!important}

html[data-iris-theme] .top,
html[data-iris-theme] .bottom-nav,
html[data-iris-theme] .panel,
html[data-iris-theme] .home-compose,
html[data-iris-theme] .home-post,
html[data-iris-theme] .core-profile-head,
html[data-iris-theme] .profile-tab,
html[data-iris-theme] .profile-content,
html[data-iris-theme] .profile-post-list,
html[data-iris-theme] .profile-post-list .home-post.feed-item,
html[data-iris-theme] .explore-card,
html[data-iris-theme] .explore-person,
html[data-iris-theme] .nv-sticky,
html[data-iris-theme] .nv-row,
html[data-iris-theme] .post-edit-dialog,
html[data-iris-theme] .profile-switch-dialog,
html[data-iris-theme] .verified-personalization,
html[data-iris-theme] .core-sheet,
html[data-iris-theme] .core-detail-row,
html[data-iris-theme] .core-field-input,
html[data-iris-theme] .core-ui-host .create-header .text-button,
html[data-iris-theme] .core-ui-host .create-option-row,
html[data-iris-theme] .core-ui-host .create-toggle-row,
html[data-iris-theme] .core-ui-host .audience-choice,
html[data-iris-theme] .core-ui-host .create-media-tab{background:var(--iris-surface)!important;color:var(--iris-text)!important;border-color:var(--iris-line)!important}

html[data-iris-theme] .explore-search,
html[data-iris-theme] input,
html[data-iris-theme] textarea,
html[data-iris-theme] select,
html[data-iris-theme] .account-action-menu,
html[data-iris-theme] .vp-badge-option,
html[data-iris-theme] .vp-theme-option,
html[data-iris-theme] .ic-compose-tool,
html[data-iris-theme] .create-input,
html[data-iris-theme] .hidden-words-input{background:var(--iris-surface-2)!important;color:var(--iris-text)!important;border-color:var(--iris-line)!important}

html[data-iris-theme] .profile-action,
html[data-iris-theme] .quiet,
html[data-iris-theme] .account-action,
html[data-iris-theme] .install-action,
html[data-iris-theme] .post-edit-cancel{background:var(--iris-button)!important;color:var(--iris-button-text)!important;border-color:var(--iris-line)!important}
html[data-iris-theme] .profile-action-primary,
html[data-iris-theme] .post-edit-save,
html[data-iris-theme] .vp-save{background:var(--iris-accent)!important;color:#fff!important;border-color:var(--iris-accent)!important}

html[data-iris-theme] .muted,
html[data-iris-theme] .profile-handle,
html[data-iris-theme] .profile-location,
html[data-iris-theme] .home-post-time,
html[data-iris-theme] .conversation-preview,
html[data-iris-theme] .core-detail-row span,
html[data-iris-theme] .core-foot-hint,
html[data-iris-theme] .vp-label span,
html[data-iris-theme] .vp-status{color:var(--iris-muted)!important}

html[data-iris-theme] .profile-tabs,
html[data-iris-theme] .profile-post-list .home-post.feed-item,
html[data-iris-theme] .account-content-controls,
html[data-iris-theme] .account-policy-links,
html[data-iris-theme] .account-danger-zone,
html[data-iris-theme] .post-edit-head,
html[data-iris-theme] .post-edit-actions{border-color:var(--iris-line)!important}

html[data-iris-theme] .profile-tab.active,
html[data-iris-theme] .core-switch,
html[data-iris-theme] .core-profile-more,
html[data-iris-theme] .nav-item,
html[data-iris-theme] .top-notification-button,
html[data-iris-theme] .brand{color:var(--iris-text)!important}
html[data-iris-theme] .profile-tab.active::after,
html[data-iris-theme] .nav-item.active::after{background:var(--iris-accent)!important}
html[data-iris-theme] .core-switch,
html[data-iris-theme] .profile-link,
html[data-iris-theme] .text-button,
html[data-iris-theme] .core-photo-action,
html[data-iris-theme] .core-save{color:var(--iris-accent)!important}

html[data-iris-theme] .core-profile .profile-avatar-wrap{border-color:var(--iris-bg)!important;background:var(--iris-surface-2)!important}
html[data-iris-theme] .core-profile .profile-banner{background:var(--iris-surface-2)!important}
html[data-iris-theme] .carousel-frame,
html[data-iris-theme] .carousel-track .post-image{background:var(--iris-surface-2)!important}

html[data-iris-theme="dark"] .nav-item:not([data-pane="profile"]) img,
html[data-iris-theme="midnight"] .nav-item:not([data-pane="profile"]) img{filter:invert(1) grayscale(1);mix-blend-mode:screen!important}
html[data-iris-theme="dark"] .nav-item>svg,
html[data-iris-theme="midnight"] .nav-item>svg{stroke:#f4f4f5!important;color:#f4f4f5!important}
html[data-iris-theme="dark"] .nav-item.active>svg,
html[data-iris-theme="midnight"] .nav-item.active>svg{stroke:var(--iris-accent)!important;color:var(--iris-accent)!important}
html[data-iris-theme="dark"] .nav-item[data-pane="profile"] img,
html[data-iris-theme="midnight"] .nav-item[data-pane="profile"] img{filter:none!important;mix-blend-mode:normal!important}

html[data-iris-theme] .core-profile .profile-display-name{color:var(--iris-text)!important}
html[data-iris-theme] .core-profile .profile-handle{font-size:18px!important;line-height:1.3;margin-top:7px!important;font-weight:500;letter-spacing:-.15px;color:var(--iris-muted)!important}
html[data-iris-theme] .profile-back{display:inline-flex!important;align-items:center;min-height:38px;margin:12px 22px 8px!important;padding:0!important;border:0!important;background:transparent!important;color:var(--iris-accent)!important;font-size:14px!important;font-weight:700!important;line-height:1!important;opacity:1!important;text-decoration:none!important}
html[data-iris-theme] .profile-back:hover,
html[data-iris-theme] .profile-back:focus-visible{color:var(--iris-text)!important}

html[data-iris-theme="dark"] .bottom-nav,
html[data-iris-theme="midnight"] .bottom-nav{box-shadow:0 -1px 0 var(--iris-line),0 -10px 28px var(--iris-shadow)}
html[data-iris-theme] .bottom-nav{border-top-color:var(--iris-line)!important}
html[data-iris-theme] .account-action-menu,
html[data-iris-theme] .post-edit-dialog,
html[data-iris-theme] .core-sheet{box-shadow:0 16px 40px var(--iris-shadow)!important}

html[data-iris-theme] ::placeholder{color:color-mix(in srgb,var(--iris-muted) 82%,transparent)!important}
html[data-iris-theme] a{color:var(--iris-accent)}

/* Theme polish v3: targeted fixes from iPhone audit. */

/* Search: remove light header slab and stale surface. */
html[data-iris-theme] .explore-head{
  background:color-mix(in srgb,var(--iris-bg) 94%,transparent)!important;
  border-top-color:var(--iris-line)!important;
}
html[data-iris-theme] .shell:has(.explore-pane)>.top{
  height:48px!important;
  min-height:48px;
  background:var(--iris-bg)!important;
}
html[data-iris-theme] .shell:has(.explore-pane)>.top .account-actions summary{
  color:var(--iris-text)!important;
}

/* Composer: fully inherit the selected Iris palette. */
html[data-iris-theme] #pane.ic-host{
  --ic-purple:var(--iris-accent);
  --ic-ink:var(--iris-text);
  --ic-muted:var(--iris-muted);
  --ic-line:var(--iris-line);
  --ic-lav:var(--iris-surface-2);
  background:var(--iris-bg)!important;
  color:var(--iris-text)!important;
  box-shadow:0 0 0 1px var(--iris-line)!important;
}
html[data-iris-theme] #pane.ic-host .ic-shell,
html[data-iris-theme] #pane.ic-host .ic-header,
html[data-iris-theme] #pane.ic-host .ic-footer,
html[data-iris-theme] #pane.ic-host .ic-compose-main,
html[data-iris-theme] #pane.ic-host .ic-caption-strip,
html[data-iris-theme] #pane.ic-host .ic-compose-attachments,
html[data-iris-theme] #pane.ic-host .ic-identity,
html[data-iris-theme] #pane.ic-host .ic-options{
  background:var(--iris-bg)!important;
  color:var(--iris-text)!important;
  border-color:var(--iris-line)!important;
}
html[data-iris-theme] #pane.ic-host .ic-compose-input,
html[data-iris-theme] #pane.ic-host .ic-caption-input,
html[data-iris-theme] #pane.ic-host .ic-caption-preview,
html[data-iris-theme] #pane.ic-host .ic-input,
html[data-iris-theme] #pane.ic-host .ic-option,
html[data-iris-theme] #pane.ic-host .ic-audience,
html[data-iris-theme] #pane.ic-host .ic-ratio,
html[data-iris-theme] #pane.ic-host .ic-look,
html[data-iris-theme] #pane.ic-host .ic-sheet-button{
  background:var(--iris-bg)!important;
  color:var(--iris-text)!important;
  border-color:var(--iris-line)!important;
}
html[data-iris-theme] #pane.ic-host .ic-compose-tool,
html[data-iris-theme] #pane.ic-host .ic-empty-art,
html[data-iris-theme] #pane.ic-host .ic-film,
html[data-iris-theme] #pane.ic-host .ic-grid-photo,
html[data-iris-theme] #pane.ic-host .ic-alt-preview,
html[data-iris-theme] #pane.ic-host .ic-stage{
  background:var(--iris-surface-2)!important;
}
html[data-iris-theme] #pane.ic-host .ic-header h1,
html[data-iris-theme] #pane.ic-host .ic-identity strong,
html[data-iris-theme] #pane.ic-host .ic-compose-attachments-head strong{
  color:var(--iris-text)!important;
}
html[data-iris-theme] #pane.ic-host .ic-primary,
html[data-iris-theme] #pane.ic-host #publish-post{
  background:var(--iris-accent)!important;
  color:#fff!important;
}
html[data-iris-theme] #pane.ic-host .ic-primary:disabled,
html[data-iris-theme] #pane.ic-host #publish-post:disabled{
  background:var(--iris-accent-soft)!important;
  color:color-mix(in srgb,var(--iris-text) 60%,transparent)!important;
  opacity:1!important;
}
html[data-iris-theme] .ic-dialog{
  background:var(--iris-surface)!important;
  color:var(--iris-text)!important;
  border-color:var(--iris-line)!important;
}
html[data-iris-theme] .ic-dialog .ic-sheet-button{
  background:var(--iris-surface)!important;
  color:var(--iris-accent)!important;
  border-color:var(--iris-line)!important;
}

/* Messages + requests: no white rows inside dark palettes. */
html[data-iris-theme] .messaging-screen,
html[data-iris-theme] .messaging-header,
html[data-iris-theme] .inbox-tabs,
html[data-iris-theme] .inbox-list,
html[data-iris-theme] .conversation-screen,
html[data-iris-theme] .compose-screen{
  background:var(--iris-bg)!important;
  color:var(--iris-text)!important;
  border-color:var(--iris-line)!important;
}
html[data-iris-theme] .conversation-row,
html[data-iris-theme] .request-row,
html[data-iris-theme] .compose-result,
html[data-iris-theme] .selected-profile,
html[data-iris-theme] .message-compose{
  background:var(--iris-surface)!important;
  color:var(--iris-text)!important;
  border-color:var(--iris-line)!important;
}
html[data-iris-theme] .active-profile-button,
html[data-iris-theme] .messaging-title,
html[data-iris-theme] .conversation-name,
html[data-iris-theme] .inbox-tab.active{
  color:var(--iris-text)!important;
}
html[data-iris-theme] .inbox-tab,
html[data-iris-theme] .conversation-time,
html[data-iris-theme] .inbox-empty,
html[data-iris-theme] .list-section-title{
  color:var(--iris-muted)!important;
}
html[data-iris-theme] .compose-button{
  background:var(--iris-surface-2)!important;
  color:var(--iris-text)!important;
  border-color:var(--iris-line)!important;
}
html[data-iris-theme] .inbox-badge{
  background:var(--iris-accent-soft)!important;
  color:var(--iris-accent)!important;
}
html[data-iris-theme] .message-bubble{
  background:var(--iris-surface-2)!important;
  color:var(--iris-text)!important;
}
html[data-iris-theme] .message-bubble.own-message{
  background:var(--iris-accent-soft)!important;
}
html[data-iris-theme] .message-compose textarea,
html[data-iris-theme] .compose-search{
  background:var(--iris-surface-2)!important;
  color:var(--iris-text)!important;
  border-color:var(--iris-line)!important;
}

/* Notifications were authored as light-only; make them palette-aware. */
html[data-iris-theme] #pane:has(.notifications-v2),
html[data-iris-theme] .notifications-v2,
html[data-iris-theme] .nv-sticky,
html[data-iris-theme] .nv-row{
  background:var(--iris-bg)!important;
  color:var(--iris-text)!important;
}
html[data-iris-theme] .nv-icon,
html[data-iris-theme] .nv-menu-body,
html[data-iris-theme] .nv-action,
html[data-iris-theme] .nv-retry{
  background:var(--iris-surface)!important;
  color:var(--iris-text)!important;
  border-color:var(--iris-line)!important;
}
html[data-iris-theme] .nv-identity,
html[data-iris-theme] .nv-body{
  color:var(--iris-text)!important;
}
html[data-iris-theme] .nv-tab{
  background:var(--iris-surface-2)!important;
  color:var(--iris-muted)!important;
}
html[data-iris-theme] .nv-tab[aria-selected="true"]{
  background:var(--iris-accent)!important;
  color:#fff!important;
}
html[data-iris-theme] .nv-time,
html[data-iris-theme] .nv-empty p,
html[data-iris-theme] .nv-limit{
  color:var(--iris-muted)!important;
}

/* Post actions: theme color, but never boxed. */
html[data-iris-theme] .post-actions > button,
html[data-iris-theme] .home-post .post-actions > button,
html[data-iris-theme] .core-profile .profile-post-list .post-actions > button{
  background:transparent!important;
  border:0!important;
  border-radius:0!important;
  box-shadow:none!important;
  color:var(--iris-muted)!important;
}
html[data-iris-theme] .home-post .post-actions > .home-like[aria-pressed="true"],
html[data-iris-theme] .post-actions > button[aria-pressed="true"]{
  color:var(--iris-accent)!important;
}

/* Dark nav JPEGs: remove the visible square around supplied artwork. */
html[data-iris-theme="dark"] .nav-item:not([data-pane="profile"]) img,
html[data-iris-theme="midnight"] .nav-item:not([data-pane="profile"]) img{
  filter:invert(1) grayscale(1) brightness(1.25)!important;
  mix-blend-mode:lighten!important;
  background:transparent!important;
}

/* Public-profile return action belongs in the header, not under the avatar. */
html[data-iris-theme] .core-profile .core-profile-head .profile-back{
  margin:0 auto 0 0!important;
  padding:8px 0!important;
  min-height:44px!important;
  font-size:14px!important;
  font-weight:750!important;
  color:var(--iris-accent)!important;
}
html[data-iris-theme] .core-profile .core-profile-head:has(.profile-back){
  justify-content:space-between!important;
}

/* Theme audit v4: remaining hard-coded component cleanup. */
html[data-iris-theme] .nav-item>svg{
  width:28px;height:28px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round;
}
html[data-iris-theme] .nav-item[data-pane="home"]>svg{stroke-width:1.85}
html[data-iris-theme] .nav-item[data-pane="create"]>svg{stroke-width:2}
html[data-iris-theme] .nav-item[data-pane="profile"] img{mix-blend-mode:normal!important;filter:none!important}

html[data-iris-theme] .shell:has(#app:not([hidden]) > .home-feed-pane) > .top{
  background:color-mix(in srgb,var(--iris-bg) 94%,transparent)!important;
  border-bottom-color:var(--iris-line)!important;
}
html[data-iris-theme] .home-feed-pane.panel,
html[data-iris-theme] .home-feed,
html[data-iris-theme] .home-compose{
  background:var(--iris-bg)!important;
  color:var(--iris-text)!important;
  border-color:var(--iris-line)!important;
}
html[data-iris-theme] .home-author.post-author,
html[data-iris-theme] .home-post .comment-item .post-author{
  color:var(--iris-text)!important;
}
html[data-iris-theme] .home-compose-prompt,
html[data-iris-theme] .home-compose-icon,
html[data-iris-theme] .home-post-time,
html[data-iris-theme] .home-author .muted,
html[data-iris-theme] .home-handle{
  color:var(--iris-muted)!important;
}
html[data-iris-theme] .home-post.feed-item,
html[data-iris-theme] .home-post .carousel-frame,
html[data-iris-theme] .home-post .post-comments{
  border-color:var(--iris-line)!important;
}
html[data-iris-theme] .home-load-more,
html[data-iris-theme] .home-post-menu-items,
html[data-iris-theme] .home-post-menu-items button{
  background:var(--iris-surface)!important;color:var(--iris-text)!important;border-color:var(--iris-line)!important;
}
html[data-iris-theme] .home-post-menu summary{color:var(--iris-muted)!important}
html[data-iris-theme] .home-post-menu-items .home-delete-post{color:#d36a75!important}

html[data-iris-theme] .account-center,
html[data-iris-theme] .account-profile-row,
html[data-iris-theme] .add-profile-form,
html[data-iris-theme] .profile-switch-dialog,
html[data-iris-theme] .profile-switch-list,
html[data-iris-theme] .profile-switch-item{
  background:var(--iris-surface)!important;color:var(--iris-text)!important;border-color:var(--iris-line)!important;
}
html[data-iris-theme] .profile-switch-avatar{background:var(--iris-surface-2)!important;color:var(--iris-accent)!important}
html[data-iris-theme] .profile-switch-copy small,
html[data-iris-theme] .account-security-note{color:var(--iris-muted)!important}
html[data-iris-theme] .profile-switch-check{color:var(--iris-accent)!important}

html[data-iris-theme] .post-detail,
html[data-iris-theme] .post-detail-close,
html[data-iris-theme] .profile-edit-form,
html[data-iris-theme] .profile-edit-label input,
html[data-iris-theme] .profile-edit-label textarea{
  background:var(--iris-surface)!important;color:var(--iris-text)!important;border-color:var(--iris-line)!important;
}
html[data-iris-theme] .profile-remove-banner{color:var(--iris-muted)!important}

html[data-iris-theme] .message-compose{
  background:var(--iris-bg)!important;
}
html[data-iris-theme] .message-author{color:var(--iris-muted)!important}
html[data-iris-theme] .request-explainer{color:var(--iris-muted)!important}
html[data-iris-theme] .conversation-row.is-unread{background:var(--iris-surface-2)!important}

html[data-iris-theme] .ic-status:not(:empty){background:var(--iris-surface-2)!important;border-color:var(--iris-line)!important}
html[data-iris-theme] .ic-status.is-error:not(:empty){background:color-mix(in srgb,#a03b4d 12%,var(--iris-surface))!important}
html[data-iris-theme] .ic-toggle input{background:var(--iris-surface-3)!important}
html[data-iris-theme] .ic-toggle input:checked{background:var(--iris-accent)!important}
html[data-iris-theme] .ic-toggle input:before{background:var(--iris-button-text)!important}
html[data-iris-theme] .ic-order{box-shadow:0 0 0 2px var(--iris-bg)!important}
html[data-iris-theme] .ic-film.ic-add{border-color:var(--iris-line)!important}
html[data-iris-theme] .ic-grabber{background:var(--iris-line)!important}
html[data-iris-theme] .ic-sheet p{color:var(--iris-muted)!important}

html[data-iris-theme] .core-ui-host .create-main-preview,
html[data-iris-theme] .core-ui-host .create-media-review,
html[data-iris-theme] .core-ui-host .create-caption-media,
html[data-iris-theme] .core-ui-host .composer-preview,
html[data-iris-theme] .core-profile .profile-text-tile{
  background:var(--iris-surface-2)!important;color:var(--iris-text)!important;
}
html[data-iris-theme] .core-ui-host .create-caption,
html[data-iris-theme] .core-ui-host .create-input,
html[data-iris-theme] .core-ui-host .create-fallback-row{
  background:var(--iris-surface)!important;color:var(--iris-text)!important;border-color:var(--iris-line)!important;
}

/* The public-profile return action is now physically inside the header. */
html[data-iris-theme] .core-profile .core-profile-head{
  position:relative;
}
html[data-iris-theme] .core-profile .core-profile-head .profile-back{
  position:static!important;
  z-index:2;
  flex:0 0 auto;
  white-space:nowrap;
}
html[data-iris-theme] .core-profile .core-profile-head .core-profile-menu{
  margin-left:auto;
}

/* Theme audit v3: repair remaining hard-coded light surfaces and mobile layout. */
html[data-iris-theme] .shell:has(#app:not([hidden]) > .home-feed-pane) > .top{background:color-mix(in srgb,var(--iris-bg) 94%,transparent)!important;border-bottom-color:var(--iris-line)!important}
html[data-iris-theme] .home-feed-pane.panel,
html[data-iris-theme] .home-feed{background:var(--iris-bg)!important;color:var(--iris-text)!important}
html[data-iris-theme] .home-compose{background:var(--iris-surface)!important;color:var(--iris-muted)!important;border-bottom-color:var(--iris-line)!important}
html[data-iris-theme] .home-compose-icon{color:var(--iris-muted)!important}
html[data-iris-theme] .home-post.feed-item,
html[data-iris-theme] .core-profile .profile-post-list .home-post.feed-item{background:var(--iris-bg)!important;border-bottom-color:var(--iris-line)!important}
html[data-iris-theme] .home-author.post-author,
html[data-iris-theme] .home-post .comment-item .post-author{color:var(--iris-text)!important}
html[data-iris-theme] .home-author .muted,
html[data-iris-theme] .home-handle,
html[data-iris-theme] .home-feed-status{color:var(--iris-muted)!important}
html[data-iris-theme] .home-post .post-actions>button,
html[data-iris-theme] .home-post-menu summary{color:var(--iris-muted)!important;background:transparent!important}
html[data-iris-theme] .home-post .post-actions>.home-like[aria-pressed="true"]{color:var(--iris-accent)!important}
html[data-iris-theme] .home-post .post-comments{border-top-color:var(--iris-line)!important}
html[data-iris-theme] .home-post-menu-items,
html[data-iris-theme] .home-post-menu-items button{background:var(--iris-surface)!important;color:var(--iris-text)!important;border-color:var(--iris-line)!important}
html[data-iris-theme] .home-load-more{background:var(--iris-button)!important;color:var(--iris-button-text)!important;border-color:var(--iris-line)!important}
html[data-iris-theme] .shell:has(#app:not([hidden]) > .home-feed-pane) .bottom-nav{background:color-mix(in srgb,var(--iris-bg) 96%,transparent)!important;border-top-color:var(--iris-line)!important}

/* Search: remove leftover light shell and keep image tiles visually untouched. */
html[data-iris-theme] .explore-head{background:color-mix(in srgb,var(--iris-bg) 94%,transparent)!important;border-top-color:var(--iris-line)!important}
html[data-iris-theme] .explore-section,
html[data-iris-theme] .explore-grid{background:var(--iris-bg)!important}
html[data-iris-theme] .explore-image-tile{background:var(--iris-surface-2)!important}
html[data-iris-theme] .explore-card{box-shadow:none!important}
html[data-iris-theme] .explore-card-actions{border-top-color:var(--iris-line)!important}
html[data-iris-theme] .explore-card-action{color:var(--iris-muted)!important}
html[data-iris-theme] .explore-card-action.active{color:var(--iris-accent)!important}

/* Composer: all structural surfaces follow the active theme. */
html[data-iris-theme] #pane.ic-host{--ic-purple:var(--iris-accent);--ic-ink:var(--iris-text);--ic-muted:var(--iris-muted);--ic-line:var(--iris-line);--ic-lav:var(--iris-surface-2);background:var(--iris-bg)!important;color:var(--iris-text)!important;box-shadow:0 0 0 1px var(--iris-line)!important}
html[data-iris-theme] .ic-shell,
html[data-iris-theme] .ic-header,
html[data-iris-theme] .ic-content,
html[data-iris-theme] .ic-footer,
html[data-iris-theme] .ic-caption-strip,
html[data-iris-theme] .ic-host .ic-caption-input,
html[data-iris-theme] .ic-host .ic-caption-preview,
html[data-iris-theme] .ic-host .ic-option,
html[data-iris-theme] .ic-host .ic-audience{background:var(--iris-bg)!important;color:var(--iris-text)!important;border-color:var(--iris-line)!important}
html[data-iris-theme] .ic-stage,
html[data-iris-theme] .ic-status:not(:empty){background:var(--iris-surface-2)!important}
html[data-iris-theme] .ic-host .ic-ratio,
html[data-iris-theme] .ic-host .ic-look{background:var(--iris-surface)!important;color:var(--iris-muted)!important;border-color:var(--iris-line)!important}
html[data-iris-theme] .ic-ratio[aria-pressed=true],
html[data-iris-theme] .ic-look[aria-pressed=true]{background:var(--iris-accent-soft)!important;color:var(--iris-accent)!important;border-color:var(--iris-accent)!important}
html[data-iris-theme] .ic-host .ic-icon-button{color:var(--iris-text)!important}
html[data-iris-theme] .ic-host .ic-next,
html[data-iris-theme] .ic-host .ic-text-button{color:var(--iris-accent)!important}
html[data-iris-theme] #pane.ic-host .ic-caption-mode{background:var(--iris-surface-2)!important;border-color:var(--iris-line)!important}
html[data-iris-theme] #pane.ic-host .ic-caption-mode-button{background:transparent!important;color:var(--iris-muted)!important;box-shadow:none!important}
html[data-iris-theme] #pane.ic-host .ic-caption-mode-button[aria-pressed="true"]{background:var(--iris-accent-soft)!important;color:var(--iris-accent)!important;box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--iris-accent) 35%,transparent)!important}

/* Messages: eliminate white conversation rows and low-contrast header/tabs. */
html[data-iris-theme] .messaging-screen,
html[data-iris-theme] .messages-screen,
html[data-iris-theme] .inbox-screen{background:var(--iris-bg)!important;color:var(--iris-text)!important}
html[data-iris-theme] .conversation-row,
html[data-iris-theme] .inbox-row,
html[data-iris-theme] .message-row,
html[data-iris-theme] .request-row{background:var(--iris-surface)!important;color:var(--iris-text)!important;border-color:var(--iris-line)!important}
html[data-iris-theme] .messaging-title,
html[data-iris-theme] .messages-title,
html[data-iris-theme] .messages-tabs button,
html[data-iris-theme] .message-tab{color:var(--iris-text)!important}
html[data-iris-theme] .messages-tabs,
html[data-iris-theme] .message-tabs{border-color:var(--iris-line)!important}
html[data-iris-theme] .messages-tabs .active,
html[data-iris-theme] .message-tab.active{color:var(--iris-text)!important;border-color:var(--iris-accent)!important}
html[data-iris-theme] .compose-screen input,
html[data-iris-theme] .compose-search{background:var(--iris-surface-2)!important;color:var(--iris-text)!important;border-color:var(--iris-line)!important}

/* Notifications and their fixed navigation. */
html[data-iris-theme] #pane:has(.notifications-v2),
html[data-iris-theme] .notifications-v2{background:var(--iris-bg)!important;color:var(--iris-text)!important;color-scheme:normal!important}
html[data-iris-theme] .nv-sticky{background:color-mix(in srgb,var(--iris-bg) 96%,transparent)!important}
html[data-iris-theme] .nv-icon,
html[data-iris-theme] .nv-action,
html[data-iris-theme] .nv-retry,
html[data-iris-theme] .nv-menu-body,
html[data-iris-theme] .nv-menu-body button{background:var(--iris-surface)!important;color:var(--iris-text)!important;border-color:var(--iris-line)!important}
html[data-iris-theme] .nv-tab{background:var(--iris-surface-2)!important;color:var(--iris-muted)!important}
html[data-iris-theme] .nv-tab[aria-selected="true"]{background:var(--iris-accent)!important;color:#fff!important}
html[data-iris-theme] .shell:has(.notifications-v2) .bottom-nav{background:color-mix(in srgb,var(--iris-bg) 96%,transparent)!important;border-top-color:var(--iris-line)!important}

/* Profile: keep controls in-flow and prevent the back link from colliding with the avatar/banner. */
html[data-iris-theme] .core-profile .core-profile-head{background:var(--iris-bg)!important;color:var(--iris-text)!important;border-color:var(--iris-line)!important}
html[data-iris-theme] .core-profile .profile-actions{background:transparent!important}
html[data-iris-theme] .core-profile .profile-tabs{background:var(--iris-bg)!important}
html[data-iris-theme] .core-profile .profile-post-list,
html[data-iris-theme] .core-profile .profile-content{background:var(--iris-bg)!important}
/* Default light mode is a true white canvas; translucent themed chrome must not tint it. */
html[data-iris-theme="default"] body,
html[data-iris-theme="default"] .shell,
html[data-iris-theme="default"] #app,
html[data-iris-theme="default"] #pane,
html[data-iris-theme="default"] .panel,
html[data-iris-theme="default"] .home-feed,
html[data-iris-theme="default"] .profile-pane,
html[data-iris-theme="default"] .core-profile,
html[data-iris-theme="default"] .profile-tabs,
html[data-iris-theme="default"] .profile-tab{background:#fff!important}
html[data-iris-theme="default"] .shell > .top,
html[data-iris-theme="default"] .bottom-nav{background:#fff!important;backdrop-filter:none!important}
html[data-iris-theme] .core-profile .profile-back{position:relative!important;z-index:3;margin:0 auto 0 0!important;padding:8px 4px!important;min-height:44px!important;font-size:14px!important;white-space:nowrap}
html[data-iris-theme] .core-profile:has(.profile-back) .core-profile-head{justify-content:space-between!important;padding-inline:22px!important}
html[data-iris-theme] .core-profile:has(.profile-back) .profile-avatar-wrap{margin-top:-28px!important}

/* Fixed navigation should never render icon artwork as black square tiles. */
html[data-iris-theme="dark"] .nav-item:not([data-pane="profile"]),
html[data-iris-theme="midnight"] .nav-item:not([data-pane="profile"]){background:transparent!important}
html[data-iris-theme="dark"] .nav-item:not([data-pane="profile"]) img,
html[data-iris-theme="midnight"] .nav-item:not([data-pane="profile"]) img{background:transparent!important}

/* Dark themes use dark browser-native controls; light palettes use light controls. */
html[data-iris-theme="dark"],html[data-iris-theme="midnight"]{color-scheme:dark}
html[data-iris-theme="default"],html[data-iris-theme="rose"],html[data-iris-theme="forest"],html[data-iris-theme="sand"]{color-scheme:light}

/* v5 final specificity repairs from live mobile audit. */
html[data-iris-theme] .core-profile .core-profile-head .profile-back{
  position:static!important;margin:0 auto 0 0!important;padding:8px 0!important;min-height:44px!important;
  color:var(--iris-accent)!important;font-size:14px!important;font-weight:750!important;line-height:1.2!important;opacity:1!important;
}
html[data-iris-theme] .core-profile .core-profile-head:has(.profile-back){justify-content:space-between!important;padding:18px 22px 8px!important}
html[data-iris-theme] .core-profile .core-profile-head:has(.profile-back)+.profile-banner{margin-top:0!important}
html[data-iris-theme] .core-profile .profile-actions{background:transparent!important}
html[data-iris-theme] .core-profile .profile-handle{color:var(--iris-muted)!important;font-size:18px!important}

html[data-iris-theme] .bottom-nav .nav-item{background:transparent!important;box-shadow:none!important}
html[data-iris-theme="dark"] .bottom-nav .nav-item>svg,
html[data-iris-theme="midnight"] .bottom-nav .nav-item>svg{stroke:#f5f5f6!important;color:#f5f5f6!important}
html[data-iris-theme="dark"] .bottom-nav .nav-item.active>svg,
html[data-iris-theme="midnight"] .bottom-nav .nav-item.active>svg{stroke:var(--iris-accent)!important;color:var(--iris-accent)!important}
html[data-iris-theme] .bottom-nav .nav-item[data-pane="profile"] img{background:transparent!important;filter:none!important;mix-blend-mode:normal!important}

/* Composer must not inherit white from its standalone stylesheet. */
html[data-iris-theme] #pane.ic-host .ic-shell,
html[data-iris-theme] #pane.ic-host .ic-header,
html[data-iris-theme] #pane.ic-host .ic-content,
html[data-iris-theme] #pane.ic-host .ic-footer,
html[data-iris-theme] #pane.ic-host .ic-caption-strip,
html[data-iris-theme] #pane.ic-host .ic-caption-input,
html[data-iris-theme] #pane.ic-host .ic-caption-preview,
html[data-iris-theme] #pane.ic-host .ic-option,
html[data-iris-theme] #pane.ic-host .ic-audience{background:var(--iris-bg)!important;color:var(--iris-text)!important;border-color:var(--iris-line)!important}
html[data-iris-theme] #pane.ic-host .ic-identity strong,
html[data-iris-theme] #pane.ic-host .ic-header h1{color:var(--iris-text)!important}
html[data-iris-theme] #pane.ic-host .ic-handle,
html[data-iris-theme] #pane.ic-host .ic-character-count,
html[data-iris-theme] #pane.ic-host .ic-option-value{color:var(--iris-muted)!important}

/* Inbox rows were authored as light-only buttons; force all nested text/surfaces into the palette. */
html[data-iris-theme] .messaging-screen button,
html[data-iris-theme] .messaging-screen .conversation,
html[data-iris-theme] .messaging-screen .conversation-row,
html[data-iris-theme] .messaging-screen .inbox-row,
html[data-iris-theme] .messaging-screen .request-row{color:var(--iris-text)!important;border-color:var(--iris-line)!important}
html[data-iris-theme] .messaging-screen .conversation-row,
html[data-iris-theme] .messaging-screen .inbox-row,
html[data-iris-theme] .messaging-screen .request-row{background:var(--iris-surface)!important}
html[data-iris-theme] .messaging-screen small,
html[data-iris-theme] .messaging-screen .conversation-preview,
html[data-iris-theme] .messaging-screen .message-preview{color:var(--iris-muted)!important}

/* Inbox/Requests should inherit the theme background, never a separate card surface. */
html[data-iris-theme] #pane:has(.messaging-screen){background:transparent!important;border:0!important;box-shadow:none!important}
html[data-iris-theme] .messaging-screen,
html[data-iris-theme] .messaging-screen .messaging-header,
html[data-iris-theme] .messaging-screen .inbox-tabs,
html[data-iris-theme] .messaging-screen .inbox-list{background:transparent!important}
html[data-iris-theme] .messaging-screen .conversation-row,
html[data-iris-theme] .messaging-screen .request-row,
html[data-iris-theme] .messaging-screen .inbox-row,
html[data-iris-theme] .messaging-screen .message-row{background:transparent!important;box-shadow:none!important;border-color:var(--iris-line)!important}

/* Open-surface Home + Profile for custom themes: no white/light card islands. */
html[data-iris-theme]:not([data-iris-theme="default"]) #pane.home-feed-pane,
html[data-iris-theme]:not([data-iris-theme="default"]) .home-feed,
html[data-iris-theme]:not([data-iris-theme="default"]) .home-compose,
html[data-iris-theme]:not([data-iris-theme="default"]) .home-post.feed-item,
html[data-iris-theme]:not([data-iris-theme="default"]) .home-post-body{
  background:transparent!important;
  box-shadow:none!important;
}
html[data-iris-theme]:not([data-iris-theme="default"]) .home-compose,
html[data-iris-theme]:not([data-iris-theme="default"]) .home-post.feed-item{
  border-color:var(--iris-line)!important;
}
html[data-iris-theme]:not([data-iris-theme="default"]) .shell:has(#app:not([hidden]) > .home-feed-pane) > .top,
html[data-iris-theme]:not([data-iris-theme="default"]) .shell:has(#app:not([hidden]) > .home-feed-pane) .bottom-nav{
  background:color-mix(in srgb,var(--iris-bg) 94%,transparent)!important;
  border-color:var(--iris-line)!important;
}

html[data-iris-theme]:not([data-iris-theme="default"]) #pane.profile-pane,
html[data-iris-theme]:not([data-iris-theme="default"]) .core-profile,
html[data-iris-theme]:not([data-iris-theme="default"]) .core-profile-head,
html[data-iris-theme]:not([data-iris-theme="default"]) .profile-identity,
html[data-iris-theme]:not([data-iris-theme="default"]) .profile-tabs,
html[data-iris-theme]:not([data-iris-theme="default"]) .profile-tab,
html[data-iris-theme]:not([data-iris-theme="default"]) .profile-content,
html[data-iris-theme]:not([data-iris-theme="default"]) .profile-post-list,
html[data-iris-theme]:not([data-iris-theme="default"]) .profile-post-list .home-post.feed-item{
  background:transparent!important;
  box-shadow:none!important;
}
html[data-iris-theme]:not([data-iris-theme="default"]) .profile-tabs,
html[data-iris-theme]:not([data-iris-theme="default"]) .profile-post-list .home-post.feed-item{
  border-color:var(--iris-line)!important;
}
html[data-iris-theme]:not([data-iris-theme="default"]) .profile-tab{
  color:var(--iris-muted)!important;
}
html[data-iris-theme]:not([data-iris-theme="default"]) .profile-tab.active{
  color:var(--iris-text)!important;
}

/* Account menu sheet/dropdown must fully inherit custom theme surfaces. */
html[data-iris-theme]:not([data-iris-theme="default"]) .account-action-menu{
  background:var(--iris-bg)!important;
  color:var(--iris-text)!important;
  border-color:var(--iris-line)!important;
  box-shadow:0 -14px 40px var(--iris-shadow)!important;
}
html[data-iris-theme]:not([data-iris-theme="default"]) .account-action-menu .account-action{
  position:static!important;
  width:100%!important;
  min-height:58px!important;
  padding:14px 12px!important;
  border:0!important;
  border-bottom:1px solid var(--iris-line)!important;
  border-radius:0!important;
  background:transparent!important;
  color:var(--iris-accent)!important;
  box-shadow:none!important;
  text-align:left!important;
}
html[data-iris-theme]:not([data-iris-theme="default"]) .account-action-menu .account-action:last-child{
  border-bottom:0!important;
}
html[data-iris-theme]:not([data-iris-theme="default"]) .account-actions summary{
  color:var(--iris-text)!important;
}

/* Friends / Mutual Friends must inherit custom theme surfaces. */
html[data-iris-theme]:not([data-iris-theme="default"]) .profile-friends{
  background:transparent!important;
  color:var(--iris-text)!important;
}
html[data-iris-theme]:not([data-iris-theme="default"]) .profile-friends-tools,
html[data-iris-theme]:not([data-iris-theme="default"]) .profile-friend-row,
html[data-iris-theme]:not([data-iris-theme="default"]) .profile-friend-open{
  background:transparent!important;
  color:var(--iris-text)!important;
  box-shadow:none!important;
}
html[data-iris-theme]:not([data-iris-theme="default"]) .profile-friend-row{
  border-color:var(--iris-line)!important;
}
html[data-iris-theme]:not([data-iris-theme="default"]) .profile-friend-copy strong{
  color:var(--iris-text)!important;
}
html[data-iris-theme]:not([data-iris-theme="default"]) .profile-friend-copy small,
html[data-iris-theme]:not([data-iris-theme="default"]) .profile-friends .collaboration-status,
html[data-iris-theme]:not([data-iris-theme="default"]) .nv-collaboration-state{
  color:var(--iris-muted)!important;
}
html[data-iris-theme]:not([data-iris-theme="default"]) .profile-friends .collaboration-primary,
html[data-iris-theme]:not([data-iris-theme="default"]) .profile-friends .collaboration-secondary,
html[data-iris-theme]:not([data-iris-theme="default"]) .profile-friends .nv-action{
  background:var(--iris-surface-2)!important;
  color:var(--iris-text)!important;
  border-color:var(--iris-line)!important;
  box-shadow:none!important;
}
html[data-iris-theme]:not([data-iris-theme="default"]) .profile-friends .collaboration-primary{
  background:var(--iris-accent)!important;
  color:#fff!important;
  border-color:var(--iris-accent)!important;
}
html[data-iris-theme]:not([data-iris-theme="default"]) .profile-friends .collaboration-danger{
  color:#c75a67!important;
}

/* Verified profile-owner themes are scoped to the viewed profile only. */
.profile-pane[data-iris-profile-theme="default"]{--iris-bg:#ffffff;--iris-surface:#ffffff;--iris-surface-2:#f6f5f8;--iris-surface-3:#eeebf3;--iris-text:#211e25;--iris-muted:#817a87;--iris-line:#e8e4eb;--iris-accent:#7052e7;--iris-accent-soft:#eee9ff;--iris-shadow:rgba(27,21,33,.08);--iris-button:#ffffff;--iris-button-text:#211e25;color-scheme:light}
.profile-pane[data-iris-profile-theme="dark"]{--iris-bg:#0f1012;--iris-surface:#15171a;--iris-surface-2:#1c1e23;--iris-surface-3:#25282e;--iris-text:#f4f4f5;--iris-muted:#a6a8af;--iris-line:#2c2f35;--iris-accent:#9a82ff;--iris-accent-soft:#2b2445;--iris-shadow:rgba(0,0,0,.32);--iris-button:#202329;--iris-button-text:#f7f7f8;color-scheme:dark}
.profile-pane[data-iris-profile-theme="midnight"]{--iris-bg:#09101e;--iris-surface:#10192b;--iris-surface-2:#17223a;--iris-surface-3:#202d49;--iris-text:#f1f5ff;--iris-muted:#9da9c2;--iris-line:#2a3857;--iris-accent:#7893ff;--iris-accent-soft:#1d2d5a;--iris-shadow:rgba(3,7,18,.38);--iris-button:#17233b;--iris-button-text:#f4f7ff;color-scheme:dark}
.profile-pane[data-iris-profile-theme="rose"]{--iris-bg:#fbf3f7;--iris-surface:#fffafd;--iris-surface-2:#f5e8ef;--iris-surface-3:#ecd8e3;--iris-text:#35242d;--iris-muted:#866f7a;--iris-line:#ead6e0;--iris-accent:#be557f;--iris-accent-soft:#f1dce7;--iris-shadow:rgba(91,54,70,.10);--iris-button:#fffafd;--iris-button-text:#35242d;color-scheme:light}
.profile-pane[data-iris-profile-theme="forest"]{--iris-bg:#edf3ee;--iris-surface:#f8fbf8;--iris-surface-2:#e1ebe3;--iris-surface-3:#d4e2d7;--iris-text:#213229;--iris-muted:#68786e;--iris-line:#cfddd2;--iris-accent:#447c5d;--iris-accent-soft:#d9e9de;--iris-shadow:rgba(42,70,53,.10);--iris-button:#f8fbf8;--iris-button-text:#213229;color-scheme:light}
.profile-pane[data-iris-profile-theme="sand"]{--iris-bg:#f7f1e7;--iris-surface:#fffaf2;--iris-surface-2:#eee3d1;--iris-surface-3:#e3d4bb;--iris-text:#392f23;--iris-muted:#827463;--iris-line:#dfd1b9;--iris-accent:#a87543;--iris-accent-soft:#ebdcc5;--iris-shadow:rgba(77,60,41,.10);--iris-button:#fffaf2;--iris-button-text:#392f23;color-scheme:light}
.profile-pane[data-iris-profile-theme]{--core-purple:var(--iris-accent);--core-ink:var(--iris-text);--core-muted:var(--iris-muted);--core-line:var(--iris-line);--core-lav:var(--iris-surface-2);background:var(--iris-bg)!important;color:var(--iris-text)!important}
.profile-pane[data-iris-profile-theme] .core-profile,
.profile-pane[data-iris-profile-theme] .core-profile-head,
.profile-pane[data-iris-profile-theme] .profile-identity,
.profile-pane[data-iris-profile-theme] .profile-tabs,
.profile-pane[data-iris-profile-theme] .profile-tab,
.profile-pane[data-iris-profile-theme] .profile-content,
.profile-pane[data-iris-profile-theme] .profile-post-list,
.profile-pane[data-iris-profile-theme] .profile-post-list .home-post.feed-item,
.profile-pane[data-iris-profile-theme] .profile-friends,
.profile-pane[data-iris-profile-theme] .profile-friend-row,
.profile-pane[data-iris-profile-theme] .profile-friend-open{background:var(--iris-bg)!important;color:var(--iris-text)!important;box-shadow:none!important}
.profile-pane[data-iris-profile-theme] .profile-tabs,
.profile-pane[data-iris-profile-theme] .profile-post-list .home-post.feed-item,
.profile-pane[data-iris-profile-theme] .profile-friend-row{border-color:var(--iris-line)!important}
.profile-pane[data-iris-profile-theme] .profile-handle,
.profile-pane[data-iris-profile-theme] .profile-location,
.profile-pane[data-iris-profile-theme] .profile-friend-copy small,
.profile-pane[data-iris-profile-theme] .collaboration-status,
.profile-pane[data-iris-profile-theme] .nv-collaboration-state{color:var(--iris-muted)!important}
.profile-pane[data-iris-profile-theme] .profile-action,
.profile-pane[data-iris-profile-theme] .collaboration-secondary,
.profile-pane[data-iris-profile-theme] .profile-friends .nv-action{background:var(--iris-button)!important;color:var(--iris-button-text)!important;border-color:var(--iris-line)!important}
.profile-pane[data-iris-profile-theme] .profile-action-primary,
.profile-pane[data-iris-profile-theme] .profile-friends .collaboration-primary{background:var(--iris-accent)!important;color:#fff!important;border-color:var(--iris-accent)!important}
.profile-pane[data-iris-profile-theme] .profile-tab.active::after{background:var(--iris-accent)!important}

/* Account/profile bottom sheets inherit the viewer's active theme. */
html[data-iris-theme] .core-sheet-backdrop .core-sheet{
  background:var(--iris-bg)!important;
  color:var(--iris-text)!important;
  border-color:var(--iris-line)!important;
  box-shadow:0 -14px 40px var(--iris-shadow)!important;
}
html[data-iris-theme] .core-sheet-backdrop .core-grabber{
  background:var(--iris-line)!important;
}
html[data-iris-theme] .core-sheet-backdrop .core-sheet button{
  background:transparent!important;
  color:var(--iris-accent)!important;
  border-color:var(--iris-line)!important;
  box-shadow:none!important;
}
html[data-iris-theme] .core-sheet-backdrop .core-sheet button.danger{
  color:#c75a67!important;
}

/* Strong profile-owner theme isolation: viewer theme must never leak into a verified profile. */
#pane.profile-pane[data-iris-profile-theme]{
  background:var(--iris-bg)!important;
  color:var(--iris-text)!important;
}
#pane.profile-pane[data-iris-profile-theme] .core-profile,
#pane.profile-pane[data-iris-profile-theme] .core-profile-head,
#pane.profile-pane[data-iris-profile-theme] .profile-identity,
#pane.profile-pane[data-iris-profile-theme] .profile-tabs,
#pane.profile-pane[data-iris-profile-theme] .profile-content,
#pane.profile-pane[data-iris-profile-theme] .profile-post-list,
#pane.profile-pane[data-iris-profile-theme] .profile-friends,
#pane.profile-pane[data-iris-profile-theme] .home-post.feed-item,
#pane.profile-pane[data-iris-profile-theme] .home-post-body{
  background:var(--iris-bg)!important;
  color:var(--iris-text)!important;
  box-shadow:none!important;
}
#pane.profile-pane[data-iris-profile-theme] .profile-display-name,
#pane.profile-pane[data-iris-profile-theme] .profile-bio,
#pane.profile-pane[data-iris-profile-theme] .home-author,
#pane.profile-pane[data-iris-profile-theme] .home-author strong,
#pane.profile-pane[data-iris-profile-theme] .home-post .post-caption,
#pane.profile-pane[data-iris-profile-theme] .home-post .post-caption *,
#pane.profile-pane[data-iris-profile-theme] .profile-friend-copy strong,
#pane.profile-pane[data-iris-profile-theme] .profile-tab.active,
#pane.profile-pane[data-iris-profile-theme] .core-profile h1,
#pane.profile-pane[data-iris-profile-theme] .core-profile h2,
#pane.profile-pane[data-iris-profile-theme] .core-profile strong{
  color:var(--iris-text)!important;
}
#pane.profile-pane[data-iris-profile-theme] .profile-handle,
#pane.profile-pane[data-iris-profile-theme] .profile-location,
#pane.profile-pane[data-iris-profile-theme] .home-handle,
#pane.profile-pane[data-iris-profile-theme] .home-time,
#pane.profile-pane[data-iris-profile-theme] .muted,
#pane.profile-pane[data-iris-profile-theme] .profile-friend-copy small,
#pane.profile-pane[data-iris-profile-theme] .profile-tab:not(.active){
  color:var(--iris-muted)!important;
}
#pane.profile-pane[data-iris-profile-theme] .profile-tabs,
#pane.profile-pane[data-iris-profile-theme] .home-post.feed-item,
#pane.profile-pane[data-iris-profile-theme] .profile-friend-row{
  border-color:var(--iris-line)!important;
}
#pane.profile-pane[data-iris-profile-theme] .profile-tab.active::after{
  background:var(--iris-accent)!important;
}
#pane.profile-pane[data-iris-profile-theme] .profile-action{
  background:var(--iris-button)!important;
  color:var(--iris-button-text)!important;
  border-color:var(--iris-line)!important;
}
#pane.profile-pane[data-iris-profile-theme] .profile-action-primary{
  background:var(--iris-accent)!important;
  color:#fff!important;
  border-color:var(--iris-accent)!important;
}
#pane.profile-pane[data-iris-profile-theme] .profile-back,
#pane.profile-pane[data-iris-profile-theme] .core-profile-menu button{
  color:var(--iris-accent)!important;
}
#pane.profile-pane[data-iris-profile-theme] .post-actions button,
#pane.profile-pane[data-iris-profile-theme] .home-post .post-action,
#pane.profile-pane[data-iris-profile-theme] .home-post .home-action{
  color:var(--iris-muted)!important;
}

/* Viewed verified profile owns the full profile viewport, not just its content height. */
body.iris-viewing-themed-profile{background:var(--iris-viewed-profile-bg)!important}
body.iris-viewing-themed-profile .shell:has(#pane.profile-pane[data-iris-profile-theme]){
  background:var(--iris-viewed-profile-bg)!important;
}
#pane.profile-pane[data-iris-profile-theme]{
  min-height:calc(100dvh - 76px - env(safe-area-inset-bottom))!important;
}
#pane.profile-pane[data-iris-profile-theme] .core-profile{
  min-height:calc(100dvh - 76px - env(safe-area-inset-bottom))!important;
}
#pane.profile-pane[data-iris-profile-theme] .profile-content{
  min-height:calc(100dvh - 420px)!important;
}

/* Keep public-profile header stable so usernames are not squeezed or clipped. */
#pane.profile-pane[data-iris-profile-theme] .core-profile-head:has(.profile-back){
  display:grid!important;
  grid-template-columns:minmax(112px,1fr) auto!important;
  align-items:center!important;
  gap:12px!important;
}
#pane.profile-pane[data-iris-profile-theme] .core-profile-head:has(.profile-back) .profile-back{
  min-width:0!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
}
#pane.profile-pane[data-iris-profile-theme] .core-profile-menu{
  justify-self:end!important;
  min-width:0!important;
  gap:12px!important;
}
#pane.profile-pane[data-iris-profile-theme] .core-switch{
  max-width:min(44vw,190px)!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
}
@media(max-width:430px){
  #pane.profile-pane[data-iris-profile-theme]{min-height:calc(100dvh - 72px - env(safe-area-inset-bottom))!important}
  #pane.profile-pane[data-iris-profile-theme] .core-profile{min-height:calc(100dvh - 72px - env(safe-area-inset-bottom))!important}
  #pane.profile-pane[data-iris-profile-theme] .profile-content{min-height:calc(100dvh - 390px)!important}
}

/* Profile header breathing room: prevent handle/menu clipping without adding excess height. */
#pane.profile-pane .core-profile-head{
  position:relative;
  z-index:auto;
  height:auto!important;
  min-height:82px!important;
  padding:22px 20px 10px!important;
  overflow:visible!important;
}
#pane.profile-pane .core-profile-menu{
  position:relative;
  top:-12px;
  z-index:2;
  align-items:center!important;
  min-height:44px!important;
  overflow:visible!important;
}
#pane.profile-pane .core-switch,
#pane.profile-pane .core-profile-more{
  min-height:40px!important;
  padding:8px 6px!important;
  line-height:1.25!important;
  overflow:visible!important;
}
#pane.profile-pane .core-switch{
  max-width:min(48vw,210px)!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
}
/* Keep the return control clear of the avatar when there is no banner. */
#pane.profile-pane.is-public-profile .core-profile:not(:has(>.profile-banner)) .profile-avatar-wrap{
  margin-top:-12px!important;
}
#pane.profile-pane .core-profile-head button.core-profile-more{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  flex:0 0 44px!important;
  width:44px!important;
  height:44px!important;
  min-height:44px!important;
  padding:10px!important;
  letter-spacing:0!important;
  color:var(--iris-text,var(--core-ink,#25222b))!important;
  cursor:pointer;
  -webkit-tap-highlight-color:transparent;
}
#pane.profile-pane .core-profile-menu-icon{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:4.6px;
  flex:0 0 24px;
  width:24px;
  height:24px;
}
#pane.profile-pane .core-profile-menu-icon>span{
  display:block;
  flex:0 0 2.4px;
  width:20px;
  height:2.4px;
  border-radius:999px;
  background:currentColor;
}
#pane.profile-pane .core-profile-more:focus-visible{
  outline:2px solid var(--iris-accent,#7565df);
  outline-offset:2px;
  border-radius:10px;
}
#pane.profile-pane[data-iris-profile-theme] .core-profile-head:has(.profile-back){
  min-height:82px!important;
  padding:22px 20px 10px!important;
  grid-template-columns:minmax(118px,1fr) auto!important;
}
#pane.profile-pane[data-iris-profile-theme] .core-profile-head:has(.profile-back) .profile-back{
  min-height:40px!important;
  padding:8px 0!important;
  line-height:1.25!important;
}
@media(max-width:430px){
  #pane.profile-pane .core-profile-head{
    min-height:80px!important;
    padding:21px 18px 9px!important;
  }
  #pane.profile-pane[data-iris-profile-theme] .core-profile-head:has(.profile-back){
    min-height:80px!important;
    padding:21px 18px 9px!important;
    gap:10px!important;
  }
  #pane.profile-pane .core-switch{
    max-width:min(46vw,185px)!important;
  }
}

/* Preserve interactive liked state inside profile-owner theme isolation. */
#pane.profile-pane[data-iris-profile-theme] .post-actions>.home-like[aria-pressed="true"],
#pane.profile-pane[data-iris-profile-theme] .home-post .post-actions>.home-like[aria-pressed="true"]{
  color:var(--iris-accent)!important;
}
#pane.profile-pane[data-iris-profile-theme] .home-like[aria-pressed="true"]::before{
  mask-image:url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"%3E%3Cpath fill="black" d="M12 21s-7.5-4.7-9.7-9A5.6 5.6 0 0 1 12 6.4 5.6 5.6 0 0 1 21.7 12C19.5 16.3 12 21 12 21Z"/%3E%3C/svg%3E')!important;
}

/* Verified-only iPod shell color picker. */
.vp-ipod-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px}
.vp-ipod-option{display:grid;place-items:center;gap:7px;min-height:88px;padding:9px 5px;border:1px solid var(--iris-line,#e6e2e9);border-radius:14px;background:var(--iris-surface-2,#f8f7f9);color:var(--iris-text,#211e25);font:inherit}
.vp-ipod-option.selected{border-color:var(--iris-accent,#7052e7);box-shadow:0 0 0 2px color-mix(in srgb,var(--iris-accent,#7052e7) 14%,transparent)}
.vp-ipod-option strong{font-size:10px}
.vp-ipod-preview{position:relative;display:block;width:33px;height:48px;border:1px solid #0002;border-radius:7px;background:linear-gradient(145deg,var(--ipod-preview-a,#f1f1f1),var(--ipod-preview-b,#bfc0c2));box-shadow:inset 0 1px 0 #fff8}
.vp-ipod-preview i{position:absolute;left:5px;right:5px;top:5px;height:13px;border-radius:2px;background:#c9d6dc;border:1px solid #0003}
.vp-ipod-preview b{position:absolute;left:50%;bottom:5px;width:20px;height:20px;transform:translateX(-50%);border-radius:50%;background:#f8f8f8;border:1px solid #0002}
.vp-ipod-option[data-ipod="silver"]{--ipod-preview-a:#f4f4f4;--ipod-preview-b:#bfc0c2}
.vp-ipod-option[data-ipod="graphite"]{--ipod-preview-a:#8d9094;--ipod-preview-b:#474a4f}
.vp-ipod-option[data-ipod="black"]{--ipod-preview-a:#343434;--ipod-preview-b:#080808}
.vp-ipod-option[data-ipod="rose"]{--ipod-preview-a:#efafc8;--ipod-preview-b:#b54c78}
.vp-ipod-option[data-ipod="purple"]{--ipod-preview-a:#b19af0;--ipod-preview-b:#6548b7}
.vp-ipod-option[data-ipod="midnight"]{--ipod-preview-a:#263858;--ipod-preview-b:#07101f}
.vp-ipod-option[data-ipod="forest"]{--ipod-preview-a:#88a793;--ipod-preview-b:#3f6b50}
.vp-ipod-option[data-ipod="sand"]{--ipod-preview-a:#d9c4a5;--ipod-preview-b:#9b7950}
@media(max-width:430px){.vp-ipod-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}.vp-ipod-option{min-height:82px;padding-inline:3px}}

.vp-music-input{width:100%;min-height:44px;padding:10px 12px;border:1px solid var(--iris-line,#dddde3);border-radius:11px;background:var(--iris-surface,#fff);color:var(--iris-text,#211e25);font:inherit;font-size:13px}
.vp-music-input:focus{outline:2px solid color-mix(in srgb,var(--iris-accent,#7052e7) 30%,transparent);border-color:var(--iris-accent,#7052e7)}
.vp-music-hint{margin:8px 0 0;color:var(--iris-muted,#817a87);font-size:11px;line-height:1.4}

/* Theme completion: Edit Profile + Notifications should not retain white/light card slabs. */
html[data-iris-theme] .core-edit,
html[data-iris-theme] .core-edit main,
html[data-iris-theme] .core-edit-identity,
html[data-iris-theme] .core-field-list,
html[data-iris-theme] .core-field-editor{
  background:var(--iris-bg)!important;
  color:var(--iris-text)!important;
}
html[data-iris-theme] .core-detail-row,
html[data-iris-theme] .core-field-input{
  background:transparent!important;
  color:var(--iris-text)!important;
  border-color:var(--iris-line)!important;
}
html[data-iris-theme] .core-detail-row span,
html[data-iris-theme] .core-detail-row i,
html[data-iris-theme] .core-field-editor label,
html[data-iris-theme] .core-foot-hint{
  color:var(--iris-muted)!important;
}
html[data-iris-theme] .core-photo-action,
html[data-iris-theme] .core-save{
  color:var(--iris-accent)!important;
}

html[data-iris-theme] #pane:has(.notifications-v2),
html[data-iris-theme] .notifications-v2,
html[data-iris-theme] .nv-sticky,
html[data-iris-theme] .nv-list,
html[data-iris-theme] .nv-row{
  background:var(--iris-bg)!important;
  color:var(--iris-text)!important;
}
html[data-iris-theme] .nv-sticky{
  background:color-mix(in srgb,var(--iris-bg) 94%,transparent)!important;
  border-color:var(--iris-line)!important;
}
html[data-iris-theme] .nv-icon,
html[data-iris-theme] .nv-menu-body,
html[data-iris-theme] .nv-action,
html[data-iris-theme] .nv-retry{
  background:var(--iris-surface-2)!important;
  color:var(--iris-text)!important;
  border-color:var(--iris-line)!important;
}
html[data-iris-theme] .nv-menu-body button{
  background:transparent!important;
  color:var(--iris-text)!important;
  border-color:var(--iris-line)!important;
}
html[data-iris-theme] .nv-tab{
  background:var(--iris-surface-2)!important;
  color:var(--iris-muted)!important;
}
html[data-iris-theme] .nv-tab[aria-selected="true"]{
  background:var(--iris-accent)!important;
  color:#fff!important;
}
html[data-iris-theme] .nv-body,
html[data-iris-theme] .nv-actor,
html[data-iris-theme] .nv-date,
html[data-iris-theme] .nv-name{
  color:var(--iris-text)!important;
}
html[data-iris-theme] .nv-time,
html[data-iris-theme] .nv-unavailable,
html[data-iris-theme] .nv-limit,
html[data-iris-theme] .nv-empty p,
html[data-iris-theme] .nv-chevron{
  color:var(--iris-muted)!important;
}
html[data-iris-theme] .nv-thumbnail,
html[data-iris-theme] .nv-avatar.inbox-avatar{
  background:var(--iris-surface-2)!important;
}
html[data-iris-theme] .shell:has(.notifications-v2) .bottom-nav{
  background:color-mix(in srgb,var(--iris-bg) 95%,transparent)!important;
  border-top-color:var(--iris-line)!important;
}

html[data-iris-theme] .notifications-v2{color-scheme:inherit!important}
html[data-iris-theme] .nv-action-primary{
  background:var(--iris-accent)!important;
  color:#fff!important;
  border-color:var(--iris-accent)!important;
}
html[data-iris-theme] .nv-unread-dot{background:var(--iris-accent)!important}
html[data-iris-theme] .notifications-v2 button:focus-visible,
html[data-iris-theme] .notifications-v2 summary:focus-visible{
  outline-color:var(--iris-accent)!important;
}

/* Notifications theme completion: remove the last light-only feed slab. */
html[data-iris-theme] #pane:has(.notifications-v2),
html[data-iris-theme] #pane:has(.notifications-v2) .notifications-v2{
  background:var(--iris-bg)!important;
  color:var(--iris-text)!important;
}
html[data-iris-theme] #pane:has(.notifications-v2) .nv-list,
html[data-iris-theme] #pane:has(.notifications-v2) .nv-row,
html[data-iris-theme] #pane:has(.notifications-v2) .nv-copy,
html[data-iris-theme] #pane:has(.notifications-v2) .nv-body,
html[data-iris-theme] #pane:has(.notifications-v2) .nv-tail,
html[data-iris-theme] #pane:has(.notifications-v2) .nv-avatar-button{
  background:transparent!important;
}
html[data-iris-theme] #pane:has(.notifications-v2) .nv-row{
  color:var(--iris-text)!important;
  border-color:var(--iris-line)!important;
}
html[data-iris-theme] #pane:has(.notifications-v2) .nv-row.is-unread{
  background:color-mix(in srgb,var(--iris-accent) 5%,transparent)!important;
}
html[data-iris-theme] #pane:has(.notifications-v2) .nv-date{
  background:transparent!important;
  color:var(--iris-text)!important;
}
html[data-iris-theme] #pane:has(.notifications-v2) .nv-time,
html[data-iris-theme] #pane:has(.notifications-v2) .nv-unavailable{
  color:var(--iris-muted)!important;
}
html[data-iris-theme] #pane:has(.notifications-v2) .nv-action:not(.nv-action-primary){
  background:var(--iris-surface-2)!important;
  color:var(--iris-text)!important;
  border-color:var(--iris-line)!important;
}


/* Messages theme hardening: keep compose and selected tabs visible on custom palettes. */
html[data-iris-theme] .messaging-screen .compose-button{
  background:transparent!important;
  color:var(--iris-accent)!important;
  border-color:var(--iris-line)!important;
  box-shadow:none!important;
}
html[data-iris-theme] .messaging-screen .compose-button:hover,
html[data-iris-theme] .messaging-screen .compose-button:focus-visible{
  background:color-mix(in srgb,var(--iris-accent) 10%,transparent)!important;
  color:var(--iris-accent)!important;
}
html[data-iris-theme] .messaging-screen .inbox-tab{
  color:var(--iris-muted)!important;
  opacity:1!important;
}
html[data-iris-theme] .messaging-screen .inbox-tab.active{
  color:var(--iris-accent)!important;
  opacity:1!important;
}
html[data-iris-theme] .messaging-screen .inbox-tab.active::after{
  background:var(--iris-accent)!important;
}

/* Spaces discover theme completion: keep the full screen on the active Iris palette. */
html[data-iris-theme] #pane:has(.s-discover-head) .voice-v2{
  --ink:var(--iris-text)!important;
  --muted:var(--iris-muted)!important;
  --line:var(--iris-line)!important;
  --soft:var(--iris-surface-2)!important;
  --violet:var(--iris-accent)!important;
  --lav:var(--iris-accent-soft)!important;
  background:var(--iris-bg)!important;
  color:var(--iris-text)!important;
}
html[data-iris-theme] #pane .voice-v2 .s-discover-head{
  background:var(--iris-bg)!important;color:var(--iris-text)!important;
}
html[data-iris-theme] #pane .voice-v2 .s-heading-line,
html[data-iris-theme] #pane .voice-v2 .s-heading-line h2,
html[data-iris-theme] #pane .voice-v2 .s-heading-line .icon-button{color:var(--iris-text)!important}
html[data-iris-theme] #pane .voice-v2 .s-mini-logo b{color:var(--iris-accent)!important}
html[data-iris-theme] #pane .voice-v2 .s-search{
  background:var(--iris-surface-2)!important;color:var(--iris-muted)!important;
  border:1px solid var(--iris-line)!important;
}
html[data-iris-theme] #pane .voice-v2 .s-search input{
  background:transparent!important;color:var(--iris-text)!important;border:0!important;
}
html[data-iris-theme] #pane .voice-v2 .s-section-title h1,
html[data-iris-theme] #pane .voice-v2 .s-empty h3{color:var(--iris-text)!important}
html[data-iris-theme] #pane .voice-v2 .s-section-title p,
html[data-iris-theme] #pane .voice-v2 .s-empty,
html[data-iris-theme] #pane .voice-v2 .s-empty p,
html[data-iris-theme] #pane .voice-v2 .s-muted-foot{color:var(--iris-muted)!important}
html[data-iris-theme] #pane .voice-v2 .s-host-fab{
  background:var(--iris-accent)!important;color:#fff!important;
  box-shadow:0 4px 16px color-mix(in srgb,var(--iris-accent) 28%,transparent)!important;
}
html[data-iris-theme] #pane .voice-v2 .s-space-card{
  background:color-mix(in srgb,var(--iris-accent-soft) 72%,var(--iris-surface) 28%)!important;
  border-color:var(--iris-line)!important;color:var(--iris-text)!important;
}
html[data-iris-theme] #pane .voice-v2 .s-card-live,
html[data-iris-theme] #pane .voice-v2 .s-live{color:var(--iris-accent)!important}
html[data-iris-theme] #pane .voice-v2 .s-card-main>p,
html[data-iris-theme] #pane .voice-v2 .s-card-avatars>span,
html[data-iris-theme] #pane .voice-v2 .s-host-profile small{color:var(--iris-muted)!important}
html[data-iris-theme] #pane .voice-v2 .s-host-band{
  background:var(--iris-surface-2)!important;border-top-color:var(--iris-line)!important;
}
html[data-iris-theme] #pane .voice-v2 .s-card-join{
  background:var(--iris-surface)!important;color:var(--iris-accent)!important;border-color:var(--iris-line)!important;
}
/* Native Story camera transparency: theme surfaces must not cover AVFoundation preview. */
html.story-native-preview-active[data-iris-theme] body,
html.story-native-preview-active[data-iris-theme] body .shell{background:transparent!important}
html.story-native-preview-active[data-iris-theme] body .shell>.top{visibility:hidden!important;background:transparent!important;border-color:transparent!important}

/* Absolute totals preserve the avatar, name, handle, bio and menu positions. */
#pane.profile-pane .iris-profile-stats{position:absolute;right:18px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;z-index:1}
#pane.profile-pane .iris-profile-stat{appearance:none!important;background:transparent!important;border:0!important;box-shadow:none!important;color:inherit!important;padding:6px 0!important;margin:0!important;min-width:0!important;min-height:44px;display:flex;flex-direction:column;align-items:center;gap:3px;border-radius:6px!important;font:inherit!important}
#pane.profile-pane .iris-profile-stat strong{font-size:19px;line-height:1.2;font-weight:700}
#pane.profile-pane .iris-profile-stat span{font-size:11px;line-height:1.3;white-space:nowrap}
#pane.profile-pane .iris-profile-stat:focus-visible{outline:2px solid currentColor!important;outline-offset:2px}
#pane .iris-connections{position:fixed;inset:0;z-index:1000;display:flex;flex-direction:column;box-sizing:border-box;width:100%;height:100vh;height:100dvh;max-width:none;max-height:none;margin:0;border:0;border-radius:0;background:var(--iris-bg,#fff);color:var(--iris-text,#211e25);overflow:hidden;overscroll-behavior:contain;padding:calc(env(safe-area-inset-top,0px) + 18px) 20px 0}
#pane .iris-connections:not([open]){display:none}
#pane .iris-connections::backdrop{background:var(--iris-bg,#fff)}
#pane .iris-connections-head{display:flex;flex-shrink:0;align-items:center;gap:16px;min-height:48px}
#pane .iris-connections-head strong{flex:1;text-align:center;padding-right:70px}
#pane .iris-connections button{color:inherit;background:transparent;border:0;font:inherit;min-height:44px;cursor:pointer}
#pane .iris-connections-tabs{display:flex;flex-shrink:0;border-bottom:1px solid #7775;margin-top:24px}
#pane .iris-connections-tabs button{flex:1;padding:14px 4px;border-bottom:3px solid transparent}
#pane .iris-connections-tabs button[aria-selected=true]{border-bottom-color:currentColor;font-weight:700}
#pane .iris-connections-body{flex:1 1 0;min-height:0;overflow-x:hidden;overflow-y:auto;overscroll-behavior-y:contain;-webkit-overflow-scrolling:touch;padding:22px 0 calc(env(safe-area-inset-bottom,0px) + 24px)}
#pane .iris-connections-body>h2{text-align:center;margin:24vh 0 18px;font-size:27px}
#pane .iris-connections-message{text-align:center;line-height:1.5;opacity:.65;max-width:520px;margin:auto}
#pane .iris-connection-row{display:flex;width:100%;align-items:center;gap:12px;padding:10px 0;text-align:left}
#pane .iris-connection-row>.iris-connection-copy{display:flex;flex:1;min-width:0;flex-direction:column;gap:4px}
#pane .iris-connection-name{display:flex;align-items:center;min-width:0;gap:5px}
#pane .iris-connection-name strong{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#pane .iris-connection-name .iris-connection-badge{flex:0 0 18px;margin-left:0}
#pane .iris-connection-row small{opacity:.65}
@media(max-width:350px){#pane.profile-pane .iris-profile-stat strong{font-size:17px}#pane.profile-pane .iris-profile-stat span{font-size:10px}}

body:has(.iris-connections) #bottom-nav{visibility:hidden!important;pointer-events:none!important}

#pane.profile-pane.is-public-profile .profile-actions{position:static!important;display:flex!important;justify-content:flex-start;gap:8px;top:auto!important;right:auto!important;margin:16px 0 0!important}
#pane.profile-pane .profile-repost-credit{font-size:12px;color:var(--iris-muted,#817a87);padding:8px 0 12px;margin:0}
#pane.profile-pane .home-repost[aria-pressed=true]{color:var(--iris-accent,#7052e7)!important}

/* Repost attribution sits outside the original post's avatar/body grid. */
#pane.profile-pane .profile-repost-list .profile-repost-entry{min-width:0;width:100%;margin:0;padding:0}
#pane.profile-pane .profile-repost-list .profile-repost-credit{display:block;box-sizing:border-box;min-width:0;margin:0;padding:10px 14px 0;color:var(--iris-muted,#817a87);font-size:12px;line-height:18px}
#pane.profile-pane .profile-repost-list.profile-post-grid .profile-repost-credit{padding:5px 6px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:10px;line-height:15px}

/* Inbox thumbtack: the founder's angled, solid silhouette. */
.iris-message-pin{display:inline-block;flex:0 0 16px;width:16px;height:16px;background-color:#C5C5CA;-webkit-mask:url('/icons/message-pin-v1.svg') center/contain no-repeat;mask:url('/icons/message-pin-v1.svg') center/contain no-repeat;vertical-align:middle;pointer-events:none}
.iris-message-pin[data-pin-color="blue"]{background-color:#0866FF}
.iris-message-pin[data-pin-color="purple"]{background-color:#5A2D81}
.iris-message-pin[data-pin-color="gold"]{background-color:#D9A441}
.iris-message-pin[data-pin-color="rose"]{background-color:#F48FB1}
.iris-message-pin[data-pin-color="red"]{background-color:#ED1C24}
.iris-message-pin[data-pin-color="green"]{background-color:#4A5D45}
.iris-message-pin[data-pin-color="graphite"]{background-color:#4B4F58}
.iris-message-pin[data-pin-color="legacy-metallic-gold"]{background-image:linear-gradient(120deg,rgba(0,0,0,.55) 0%,rgba(255,255,255,.95) 31%,rgba(0,0,0,.28) 50%,rgba(255,255,255,.82) 68%,rgba(0,0,0,.48) 100%),linear-gradient(135deg,#6b4800,#d99b19 24%,#ffe887 45%,#aa7100 64%,#f4c84b 82%,#795100);background-size:180% 180%}
.iris-message-pin[data-pin-color="legacy-chrome"]{background-image:linear-gradient(120deg,rgba(0,0,0,.62) 0%,rgba(255,255,255,.96) 28%,rgba(0,0,0,.2) 46%,rgba(255,255,255,.92) 61%,rgba(0,0,0,.58) 82%,rgba(255,255,255,.75) 100%),linear-gradient(135deg,#262b31,#eef2f6 22%,#737a83 42%,#fff 55%,#8c939c 71%,#1e2329);background-size:190% 190%}
.iris-message-pin[data-pin-color="legacy-neo-chrome"]{background-image:linear-gradient(120deg,rgba(255,255,255,.28),rgba(0,0,0,.22) 35%,rgba(255,255,255,.42) 58%,rgba(0,0,0,.16) 80%),linear-gradient(135deg,#8f4cff 0%,#3d8dff 18%,#46f0e0 34%,#f5f7ff 46%,#ff62bc 61%,#ffb84f 77%,#7d51ff 100%);background-size:220% 220%}
.iris-message-pin[data-pin-color="legacy-chameleon"]{background-image:linear-gradient(120deg,rgba(255,255,255,.3),rgba(0,0,0,.2) 42%,rgba(255,255,255,.38) 68%,rgba(0,0,0,.18)),linear-gradient(135deg,#19d6a3 0%,#1bb7c9 22%,#6557f5 44%,#d64ac6 66%,#f08c55 82%,#3cd89e 100%);background-size:220% 220%}
.iris-message-pin[data-pin-color="legacy-black-chrome"]{background-image:linear-gradient(120deg,rgba(0,0,0,.7),rgba(255,255,255,.72) 30%,rgba(0,0,0,.58) 50%,rgba(255,255,255,.58) 70%,rgba(0,0,0,.76)),linear-gradient(135deg,#050608,#636b76 24%,#15181d 44%,#a9b0b9 56%,#242933 72%,#020304);background-size:190% 190%}
.vp-pin-preview{width:23px;height:23px;flex-basis:23px}
.vp-pin-grid{grid-template-columns:repeat(4,minmax(0,1fr))}

.vp-rare-block .vp-badge-preview{width:46px;height:46px;flex-basis:46px}.vp-rare-block small{font-size:10px;color:var(--iris-muted);letter-spacing:.08em}
