:root{color-scheme:dark;--bg:#061923;--panel:#102b3a;--line:#294350;--blue:#1677ff;--muted:#a4bbc8}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:#eff6fa;font:15px/1.45 Arial,sans-serif}button,input,select{font:inherit}button,a,input,select{-webkit-tap-highlight-color:transparent}button{cursor:pointer;color:inherit;border:1px solid var(--line);background:var(--panel);padding:10px 16px;border-radius:11px;min-height:44px;transition:transform 120ms,background 140ms}button:active{transform:scale(.97)}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #78b6ff;outline-offset:3px}a{color:inherit;text-decoration:none}[hidden]{display:none!important}#estate{position:fixed;inset:0;width:100%;height:100%;border:0;background:var(--bg)}#market{max-width:1200px;margin:auto;padding:0 28px 100px}.market-header{height:94px;display:flex;align-items:center;justify-content:space-between;padding-right:110px}.brand{display:flex;gap:9px;align-items:center;font-size:28px;font-weight:700;letter-spacing:-1px}.brand-mark{background:var(--blue);width:33px;height:33px;border-radius:10px;text-align:center;line-height:30px}.brand-sub{letter-spacing:2px;font-size:9px;margin-left:10px;color:var(--muted)}.demo-label{font-size:11px;color:var(--muted)}.hero{overflow:hidden;position:relative;border-radius:24px;background:#123b57;display:grid;grid-template-columns:1.3fr 1fr;min-height:260px}.hero-copy{padding:35px}.eyebrow{font-size:10px;letter-spacing:1.9px;font-weight:700;color:#8bb8d4}h1{font-size:42px;line-height:1.12;letter-spacing:-1.4px;margin:16px 0}h2{font-size:23px;letter-spacing:-.5px;margin:5px 0}p{color:var(--muted)}.hero-art{position:relative;display:grid;place-items:center;background:#164668}.hero-art svg{width:85%;z-index:1}.art-orbit{position:absolute;width:260px;height:260px;border:1px solid #578bad;border-radius:50%}.art-tag{position:absolute;bottom:18px;right:25px;color:#b6d9ee;font-size:11px;z-index:2}.search-panel{background:var(--panel);border:1px solid var(--line);border-radius:18px;padding:20px;margin:18px 0 30px}.query{display:block}.query input{width:100%;background:#071e2b;border:1px solid #355266;border-radius:10px;padding:14px;color:white;font-size:17px}.search-example{display:block;color:#91aab8;font-size:11px;margin:7px 2px 14px}.filters{display:grid;grid-template-columns:1.3fr 1fr 1fr .8fr;gap:10px;align-items:end}.filters label{font-size:11px;color:#aac0cd}.filters input,.filters select{width:100%;margin-top:5px;border:1px solid #355266;background:#102a39;color:white;padding:10px;border-radius:8px;min-height:44px}.primary{background:var(--blue);border-color:var(--blue);font-weight:700}.section-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:14px;gap:8px}.text-button{background:none;border:0;padding:5px;color:#81b4ff;font-size:12px}.categories{display:grid;grid-template-columns:repeat(10,1fr);gap:10px}.categories button{padding:12px 4px 8px;font-size:11px;border:1px solid transparent;background:none;display:flex;flex-direction:column;align-items:center;gap:8px;min-width:0}.categories button svg{width:30px;height:30px;fill:none;stroke:#a7c9df;stroke-width:1.5;stroke-linejoin:round;stroke-linecap:round}.categories button[aria-pressed=true]{background:#173d59;border-color:#3b8bec}.categories-section{margin-bottom:34px}.cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.market-card{overflow:hidden;border:1px solid var(--line);background:#0c2634;border-radius:17px;position:relative}.photo-wrap{position:relative}.photos{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;aspect-ratio:1.45}.photos::-webkit-scrollbar{display:none}.photos img{flex:0 0 100%;width:100%;object-fit:cover;scroll-snap-align:start}.source{position:absolute;left:12px;top:12px;background:#173a52ee;border:1px solid #ffffff33;color:#fff;font-size:11px;border-radius:6px;padding:4px 7px;pointer-events:none}.heart{position:absolute;right:11px;top:11px;border:0;border-radius:50%;background:#fff;color:#152f40;width:37px;height:37px;min-height:37px;padding:8px}.heart svg{width:21px;fill:none;stroke:currentColor;stroke-width:1.8}.heart[aria-pressed=true]{color:#c93c50}.heart[aria-pressed=true] svg{fill:currentColor}.photo-count{position:absolute;bottom:10px;right:11px;background:#061923c9;border-radius:5px;padding:2px 7px;font-size:11px}.dots{position:absolute;bottom:12px;left:44%;display:flex;gap:5px;pointer-events:none}.dots i{width:5px;height:5px;border-radius:50%;background:#fff7}.dots i.on{background:#fff}.card-info{display:block;padding:16px}.card-top{display:flex;align-items:center;justify-content:space-between;gap:4px}.price{font-size:22px;font-weight:700;white-space:nowrap}.category-badge{font-size:10px;color:#bdd8e7;background:#1d3c50;padding:4px 6px;border-radius:5px}.card-info h3{font-size:16px;font-weight:500;margin:9px 0}.card-info p{font-size:12px;margin:4px 0}.attribute{color:#759aae!important}.mock-note{font-size:12px;margin-top:0}.market-bottom{position:fixed;bottom:0;left:0;right:0;display:flex;justify-content:center;gap:30px;background:#061923f5;border-top:1px solid var(--line);padding:7px 10px max(7px,env(safe-area-inset-bottom));z-index:5}.market-bottom button{border:0;background:none;min-width:75px;padding:0 10px;font-size:23px;display:grid;gap:1px;justify-items:center;color:#8ca9bb}.market-bottom span{font-size:10px}.market-bottom [aria-current=page]{color:#448fff}.switch-open{position:fixed;right:14px;top:15px;z-index:20;background:#0f2a3df2;color:white;border-color:#59788d;font-size:11px;min-height:32px;padding:6px 10px;box-shadow:0 2px 8px #0002}.selector{position:fixed;inset:0 0 auto;z-index:30;background:#f5f8fc;color:#102b3d;border-bottom:1px solid #d2dfeb;box-shadow:0 12px 50px #0005;transition:transform 320ms ease,opacity 320ms ease}.selector.closed{transform:translateY(-105%);opacity:0;pointer-events:none}.selector-inner{max-width:920px;margin:auto;padding:25px 30px 30px;position:relative}.selector-heading h2{font-size:31px;margin:5px 0}.selector-heading p{color:#677d8e;margin:0 0 18px;font-size:13px}.selector .eyebrow{color:#587995}.section-options{display:grid;grid-template-columns:1fr 1fr;gap:14px}.section-options button{display:flex;align-items:center;gap:14px;text-align:left;background:white;color:#102b3d;border:1px solid #d2dfeb;padding:17px}.section-options button>span:last-child{margin-left:auto;color:#507993}.section-options strong{display:block;font-size:18px}.section-options small{display:block;color:#678091;font-size:11px;margin-top:4px}.section-icon{width:42px;height:42px;border-radius:12px;background:#e9eff5;display:grid;place-items:center;flex-shrink:0}.section-icon.blue{background:#e3edff;color:#1677ff}.section-icon svg{width:24px;height:24px;stroke:currentColor;fill:none;stroke-width:1.7}.selector-close{position:absolute;right:20px;top:15px;background:none;color:#264151;border:0;font-size:23px}.empty{text-align:center;padding:40px}.detail-back{margin:8px 0 20px}.detail-grid{display:grid;grid-template-columns:1.4fr 1fr;gap:25px}.detail-grid .photos{border-radius:18px}.detail-copy{padding:24px;background:var(--panel);border:1px solid var(--line);border-radius:18px}.detail-copy h1{font-size:29px}.detail-copy dl{display:grid;grid-template-columns:1fr 1fr;gap:10px}.detail-copy dt{color:var(--muted)}.detail-copy dd{margin:0}.detail-notice{padding:12px;background:#173c54;border-radius:8px;font-size:13px}.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
@media(max-width:700px){#market{padding:0 16px 88px}.market-header{height:78px;padding-right:83px}.brand{font-size:24px}.brand-sub{font-size:7px;margin-left:1px;letter-spacing:1px}.demo-label{display:none}.hero{min-height:205px;grid-template-columns:1.4fr .7fr;border-radius:18px}.hero-copy{padding:23px 0 23px 20px;z-index:2}.hero h1{font-size:28px;letter-spacing:-.8px}.hero p{font-size:12px;max-width:180px}.eyebrow{font-size:8px;letter-spacing:1px}.hero-art svg{width:190%;max-width:none;margin-left:-15px}.art-orbit{width:190px;height:190px}.art-tag{display:none}.search-panel{padding:14px;margin-top:14px}.filters{grid-template-columns:1fr 1fr}.filters .primary{height:44px}.categories{grid-template-columns:repeat(5,1fr);gap:5px}.categories button{font-size:9px;padding:9px 0;gap:7px}.categories button svg{width:26px;height:26px}.categories-section{margin-bottom:25px}.section-heading h2{font-size:21px}.cards{grid-template-columns:1fr;gap:18px}.photos{aspect-ratio:1.5}.card-info h3{font-size:17px}.price{font-size:23px}.market-bottom{gap:2px;justify-content:space-around}.market-bottom button{min-width:0;flex:1}.selector-inner{padding:20px 16px}.selector-heading h2{font-size:26px}.section-options{gap:9px}.section-options button{padding:12px 10px;gap:8px;flex-wrap:wrap}.section-options strong{font-size:14px}.section-options small{font-size:10px;line-height:1.5}.section-options button>span:last-child{display:none}.section-icon{width:32px;height:32px}.selector-heading p{margin-bottom:12px}.detail-grid{grid-template-columns:1fr}.detail-copy{padding:20px}.switch-open{right:10px;top:16px;font-size:10px}.mock-note{font-size:11px}#resultCount{font-size:12px;color:var(--muted)}}@media(prefers-reduced-motion:reduce){*,*::before,*::after{transition:none!important;scroll-behavior:auto!important}button:active{transform:none}}
/* Marketplace-only refinement. Values mirror the approved platform, not shared selectors. */
:root{--blue:#006aff;--red:#e61936;--ink:#edf3fa;--muted:#98a9ba;--line:#203340;--bg:#03141f;--panel:#071c28}
body{font-family:Arial,"Segoe UI",sans-serif;font-size:14px;color:var(--ink)}
#market{max-width:1280px;padding:0 28px 40px}
.market-header{height:92px;margin:0 -28px;padding:0 28px;gap:24px;background:white;color:#101d35;display:flex;align-items:center;justify-content:space-between}
.brand{font-size:18px;letter-spacing:0;gap:10px;flex-shrink:0}.brand img{width:48px;height:48px;object-fit:contain}.brand strong{font-size:18px;line-height:1.2;display:block}.brand small{display:block;font-size:11px;font-weight:400;margin-top:4px}
.desktop-nav{display:flex;gap:18px;margin-left:auto}.desktop-nav button{background:none;border:0;color:#172c40;border-radius:5px;padding:8px 0;font-size:13px}
.section-switch{display:flex;padding:3px;gap:3px;background:#edf2f6;border:1px solid #d5dfe7;border-radius:7px;flex-shrink:0}.section-switch button{min-height:36px;padding:7px 12px;font-size:12px;border:0;border-radius:5px;background:none;color:#304657}.section-switch button[aria-pressed=true]{background:var(--blue);color:white}
.hero{margin-top:20px;border-radius:8px;display:block;min-height:300px;background:#092235;isolation:isolate}.hero-image{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center;z-index:-2}.hero:after{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(90deg,#03141fbd,transparent 65%)}.hero-copy{padding:48px 36px;max-width:60%}.hero h1{font-size:40px;line-height:1.13;letter-spacing:-.7px;margin:0 0 14px;font-weight:700}.hero p{font-size:17px;color:#d6e1e9;margin:0}
.search-panel{border-radius:7px;background:var(--panel);border-color:var(--line);padding:18px;margin:18px 0 24px}.query input{height:48px;border-radius:6px;background:#0b202c;border-color:var(--line);font-size:14px;padding:14px 16px}.search-example{font-size:12px;color:var(--muted);margin:7px 0 14px}.filters{gap:10px}.filters label{font-size:12px}.filters input,.filters select{height:48px;border-radius:5px;border-color:var(--line);background:#041722;padding:10px 12px}.filters .primary{height:48px;border-radius:5px;font-size:15px;font-weight:400;background:var(--blue)}
.categories{gap:8px}.categories button{min-height:78px;border-radius:6px;font-size:12px;padding:10px 4px;color:#d1dce4}.categories button svg{width:25px;height:25px;stroke:#b7ccda}.categories button[aria-pressed=true]{background:#123553;border-color:#245c86}.categories-section{margin-bottom:26px}.section-heading h2{font-size:22px;letter-spacing:0}.text-button{font-size:13px}.catalogue>.section-heading{margin-bottom:8px}.catalogue>.section-heading .eyebrow{display:none}.mock-note{font-size:12px;color:#98a9ba;margin-bottom:18px}.cards{gap:16px}.market-card{border:1px solid #16303e;border-radius:7px;background:#061c29}.photos{aspect-ratio:1.8;background:#102b3c}.photos img{min-width:0;object-fit:cover}.source{display:inline-flex;align-items:center;gap:6px;top:9px;left:9px;border:1px solid #c09535;border-radius:6px;padding:6px 9px;font-size:15px;font-weight:600;line-height:1.2;background:#513f1af2;color:#ffe29a;box-shadow:0 1px 4px #0005}.source span{color:#ffd361;font-size:21px;line-height:1}.source.telegram{gap:4px;background:#1677ff;border-color:#1677ff;border-radius:5px;padding:4px 6px;color:white;font-size:11px;font-weight:400;box-shadow:none}.source svg{width:13px;height:13px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.heart{top:9px;right:9px;width:34px;height:34px;min-height:34px;border-radius:50%;padding:7px;background:#f7fafc;color:#162a3c;display:grid;place-items:center}.heart svg{width:20px;height:20px}.heart[aria-pressed=true]{color:var(--red)}.photo-count{bottom:8px;right:8px;background:#03131fdf;border-radius:4px;padding:4px 6px;font-size:11px}.card-info{padding:12px}.price{font-size:23px;line-height:1.3;font-weight:700;color:#f2f6fa}.category-badge{background:#1d3b51;color:#d2dfe8;border-radius:3px;font-size:11px;padding:4px 6px;white-space:nowrap}.card-info h3{font-size:16px;font-weight:500;margin:8px 0;color:#edf3fa}.card-info p{font-size:13px;margin:4px 0;color:#bdcbd6}.card-info .attribute{color:#98a9ba!important;font-size:12px}.market-bottom{display:none}.detail-grid .photos{border-radius:7px}.detail-copy{border-radius:7px;background:var(--panel)}.detail-copy h1{font-size:29px}.detail-notice{background:#102b3c}.detail-back{border-radius:6px}.selector-heading .eyebrow{display:none}.selector-heading h2{letter-spacing:0}.section-options button{border-radius:8px}.section-options strong{font-size:18px}.switch-open{max-width:calc(100vw - 20px)}
@media(max-width:900px) and (min-width:701px){.desktop-nav{gap:8px}.desktop-nav button{font-size:11px}.brand strong{font-size:15px}.section-switch button{padding-inline:8px}.market-header{gap:12px}}
@media(max-width:700px){
#market{padding:0 14px calc(100px + env(safe-area-inset-bottom))}.market-header{height:auto;min-height:118px;margin:0 -14px;padding:10px 14px 9px;gap:10px;flex-wrap:wrap}.brand{width:100%;gap:9px}.brand img{width:40px;height:40px}.brand strong{font-size:17px}.brand small{font-size:11px;margin-top:3px}.desktop-nav{display:none}.section-switch{width:100%;padding:3px}.section-switch button{flex:1;min-height:34px;font-size:13px;padding:7px 9px}
.hero{min-height:234px;margin-top:14px;aspect-ratio:auto;border-radius:7px}.hero-image{object-position:62% center;opacity:.8}.hero:after{background:linear-gradient(90deg,#03141fe8 0%,#03141f85 52%,transparent)}.hero-copy{padding:25px 18px;max-width:88%}.hero h1{font-size:29px;margin-bottom:14px;max-width:270px;line-height:1.15;letter-spacing:-.5px}.hero p{font-size:14px;line-height:1.45;max-width:200px}
.search-panel{padding:14px;margin:14px 0 22px}.query input{height:52px;font-size:14px}.filters{grid-template-columns:1fr 1fr;gap:12px 10px}.filters input,.filters select{height:45px;min-height:45px;font-size:13px}.filters .primary{height:45px}.filters label{min-width:0}.search-example{font-size:11px;margin-bottom:14px}
.categories{display:flex;overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x proximity;scrollbar-width:thin;scrollbar-color:#31566d transparent;padding:0 0 8px;gap:8px}.categories button{flex:0 0 88px;min-height:80px;scroll-snap-align:start;font-size:12px;line-height:1.25;gap:10px}.categories button svg{width:25px;height:25px}.categories-section{margin-bottom:20px;scroll-margin-top:14px}.section-heading h2{font-size:21px}.cards{grid-template-columns:1fr;gap:14px;scroll-margin-bottom:100px}.photos{aspect-ratio:1.8}.card-info{padding:11px 12px 12px}.price{font-size:23px}.card-info h3{font-size:16px}.card-info p{font-size:13px}.category-badge{font-size:11px}.mock-note{font-size:11px;line-height:1.45}.market-bottom{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0;position:fixed;bottom:0;background:#04131ff5;padding:7px 8px max(7px,env(safe-area-inset-bottom));border-top:1px solid var(--line)}.market-bottom button{min-height:46px;padding:2px;gap:4px;display:flex;flex-direction:column;justify-content:center;align-items:center;color:#c4ced7;font-size:23px}.market-bottom span{font-size:11px}.market-bottom [aria-current=page]{color:#318bff}.market-bottom svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.detail-copy{padding:18px}.detail-grid{gap:16px}.selector-inner{padding:20px 16px}.section-options strong{font-size:14px}.section-options button{padding:12px 10px}.section-options small{font-size:10px}
}
/* Reserve a real viewport lane for mobile navigation instead of covering scrollable content. */
@media(max-width:700px){#market{height:calc(100dvh - 54px - max(7px,env(safe-area-inset-bottom)));overflow-y:auto;overscroll-behavior-y:contain;padding-bottom:24px;scroll-padding-bottom:18px}.market-bottom{height:auto;z-index:1500}.market-bottom button,.market-bottom span{font:11px Arial,"Segoe UI",sans-serif;line-height:normal}.market-bottom [aria-current=page]{color:#318bff}.market-bottom #homeNav[aria-current=page] svg{fill:#1677ff}.market-bottom [aria-current=page]:focus{outline:none}}
.desktop-nav [aria-current=page]{color:var(--blue)}

/* Umbrella entry sheet: a full-width top surface, never a dimmed modal. */
.selector{inset:0 0 auto;max-width:1280px;margin-inline:auto;height:30svh;min-height:246px;max-height:360px;background:#f7f9fc;border:0;border-bottom:1px solid #d8e2eb;box-shadow:none;border-radius:0;transition:transform 360ms ease,opacity 360ms ease}
.selector-inner{max-width:none;height:100%;padding:24px 32px;display:flex;flex-direction:column;justify-content:center;gap:18px}
.selector-heading h2{font-size:29px;font-weight:700;line-height:1.2;margin:0 0 7px;letter-spacing:-.3px}
.selector-heading p{margin:0;font-size:14px;color:#647889}
.section-options{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.section-options button{min-height:100px;padding:20px 24px;gap:16px;border:1px solid #cddae5;border-radius:12px;background:white;box-shadow:none}
.section-options strong{font-size:21px}.section-options small{font-size:13px;line-height:1.4;margin-top:6px}.section-icon{width:48px;height:48px;background:#eaf0f6;color:#315973;border-radius:12px}.section-icon svg{width:27px;height:27px}.section-options button>span:last-child{font-size:24px}
.selector.closed{transform:translateY(-102%);opacity:0}.selector-close{top:10px;right:14px}
@media(max-width:700px){.selector{height:31svh;min-height:244px;max-height:320px}.selector-inner{padding:20px 16px;gap:18px}.selector-heading h2{font-size:24px;line-height:1.15;max-width:calc(100% - 20px)}.selector-heading p{font-size:13px;margin-top:7px}.section-options{gap:10px}.section-options button{min-height:116px;display:grid;grid-template-columns:1fr;align-content:center;gap:10px;padding:12px;min-width:0}.section-icon{width:30px;height:30px;border-radius:8px}.section-icon svg{width:21px;height:21px}.section-options strong{font-size:15px}.section-options small{font-size:11px;line-height:1.45;margin-top:4px}.categories{scrollbar-width:none}.categories::-webkit-scrollbar{display:none}}

/* Stable Lucide category icon geometry; carousel and filtering behavior are unchanged. */
.categories button{height:78px;min-height:78px;justify-content:flex-start;gap:6px;text-align:center}
.categories button svg{width:22px;height:22px;flex:0 0 22px;fill:none;stroke:#b7ccda;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.categories button>span{display:flex;align-items:flex-start;justify-content:center;width:100%;min-height:30px;text-align:center;line-height:1.25;overflow-wrap:anywhere}
.categories .all-category{position:relative;height:72px;min-height:72px;padding:8px 7px;gap:5px;align-self:flex-start;overflow:visible}.categories .all-category svg{width:16px;height:16px;flex:0 0 16px;stroke:currentColor}.categories .all-category>span{position:absolute;top:34px;left:5px;right:5px;width:auto;min-height:30px;align-items:flex-start;white-space:nowrap}.categories .all-category[aria-pressed=true]{background:var(--blue);border-color:var(--blue);color:#fff;font-weight:700}
@media(max-width:700px){.categories button{height:72px;min-height:72px;padding:7px 4px;gap:6px}.categories button svg{width:20px;height:20px;flex-basis:20px}.categories .all-category{height:67px;min-height:67px;padding:8px 7px;gap:5px}.categories .all-category svg{width:16px;height:16px;flex-basis:16px}.categories .all-category>span{top:29px}}
.catalogue{position:relative;min-height:320px}.catalogueStatus{position:absolute;inset:52px 0 0;z-index:5;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;text-align:center;padding:24px;border-radius:10px;background:rgba(3,20,31,.9);color:var(--ink);box-sizing:border-box}.catalogueStatus[hidden]{display:none}.catalogueStatus strong{font-size:24px;line-height:1.3}.catalogueStatusHint{font-size:14px;color:var(--muted)}.catalogueSpinner{width:42px;height:42px;border:4px solid #203340;border-top-color:var(--blue);border-radius:50%;animation:catalogueSpin .85s linear infinite}@keyframes catalogueSpin{to{transform:rotate(360deg)}}
.cataloguePagination{display:flex;justify-content:center;align-items:center;gap:6px;margin:22px 0 6px}.cataloguePagination button{min-width:40px;min-height:40px;padding:7px 10px;border:1px solid var(--line);border-radius:7px;background:#102b3a;color:var(--ink);font-weight:700}.cataloguePagination button.active{border-color:var(--blue);background:var(--blue);color:#fff}.cataloguePagination button:disabled{opacity:.45}
@media(max-width:700px){.catalogueStatus{position:fixed;inset:auto 14px 76px;min-height:170px;z-index:1100;box-shadow:0 8px 32px #0006}.cataloguePagination{margin-bottom:18px}}
@media(prefers-reduced-motion:reduce){.catalogueSpinner{animation-duration:2s}}
@media(prefers-reduced-motion:reduce){.selector{transition:none}}

.selector.closed{opacity:.94}
#selectorTitle:focus{outline:none}

/* Solid compositor layer: never blend selector text with the page underneath. */
.selector{--selector-safe-top:env(safe-area-inset-top,0px);opacity:1;overflow:hidden;isolation:isolate;visibility:visible;transform:translateY(0);transition:transform 360ms ease,visibility 0s;z-index:30}
.selector.closed{transform:translateY(-100%);opacity:1;visibility:hidden;transition:transform 360ms ease,visibility 0s 360ms}
.selector.opening{visibility:visible;transition:none}
.selector-inner{padding-top:calc(24px + var(--selector-safe-top))}

.selector-close{top:calc(10px + var(--selector-safe-top))}
.section-options button:active{transform:scale(.97);background:#e8f1fd;border-color:#729dcc}
@media(max-width:700px){.selector{height:calc(clamp(220px,60vw,260px) + var(--selector-safe-top));min-height:0;max-height:none}.selector-inner{padding:calc(16px + var(--selector-safe-top)) 16px 16px;gap:14px}.section-options button{height:116px;grid-template-rows:30px 1fr;align-content:stretch;align-items:start;gap:10px}.section-options button>span:nth-child(2){align-self:start}.selector-heading h2{font-size:23px}}
@media(max-width:350px){.selector-heading h2{font-size:21px;max-width:100%}.selector-heading p{margin-top:5px}.section-options button{padding:10px;height:112px;min-height:112px}.section-options strong{font-size:14px}}
@media(prefers-reduced-motion:reduce){.selector,.selector.closed{transition:none}.section-options button:active{transform:none}}

/* External shell backdrop: never changes either section's styles or opacity. */
.selector-dim{position:fixed;inset:0;z-index:25;background:rgba(0,10,20,.70);opacity:1;pointer-events:auto;transition:opacity 280ms ease;touch-action:none}
.selector-dim.closed{opacity:0;pointer-events:none}
@media(prefers-reduced-motion:reduce){.selector-dim{transition:none}}

/* Umbrella-only positioning: leave both section documents untouched. */
.selector{--selector-offset:max(env(safe-area-inset-top,0px),20svh);top:var(--selector-offset)}
.selector.closed{transform:translateY(calc(-100% - var(--selector-offset)))}
@media(max-height:480px){.selector{--selector-offset:max(env(safe-area-inset-top,0px),6svh);max-height:calc(100svh - var(--selector-offset) - 12px);overflow-y:auto}}

/* Original decorative reference images: no crop, filter, or recoloring. */
.selector-flags{display:flex;flex-wrap:nowrap;align-items:center;justify-content:center;gap:8px;flex-shrink:0}
.selector-flags img{display:block;height:14px;width:auto;max-width:none;object-fit:contain;flex:none}
.selector{height:calc(30svh + 24px);min-height:270px;max-height:384px}
@media(max-width:700px){.selector{height:calc(clamp(220px,60vw,260px) + var(--selector-safe-top) + 26px);min-height:0;max-height:none}.selector-flags img{height:12px}}
@media(max-height:480px){.selector{max-height:calc(100svh - var(--selector-offset) - 12px)}}

/* Flag-row micro-spacing only; preserve surrounding layout geometry. */
.selector-flags{position:relative;top:-6px}
@media(max-width:700px){.selector-flags{top:-2px}}

/* Direct-root mobile mode keeps a stable top edge while its height follows
   the selector content. Short viewports scroll inside the panel. */
@media(max-width:700px){html[data-umbrella-boot="selector"] .selector:not(.selector-interacting){--selector-offset:calc(169px + env(safe-area-inset-top,0px));top:var(--selector-offset);height:auto;min-height:0;max-height:calc(100svh - var(--selector-offset));overflow-x:hidden;overflow-y:auto;-webkit-overflow-scrolling:touch;transform:none!important;transition:none!important;animation:none!important}}

