/* The Exchange · Commerce cell. Scoped to .cx-* so no other room changes. Ink and Spark market hall at night: the family palette from brand/BRAND-BOOK.md (Ink #0e0e10, Spark #ffb000, house hues for Intelligence, Works, Experiences). */
.cx-hall{position:relative;overflow:hidden;margin:-8px -8px 0;padding:28px clamp(16px,4vw,48px) 40px;border-radius:24px;background:radial-gradient(1100px 600px at 15% -10%,#1d2026 0,transparent 60%),radial-gradient(900px 500px at 110% 20%,#141a2b 0,transparent 55%),#0e0e10;color:#faf8f4;isolation:isolate}
.cx-glow i{position:absolute;z-index:-1;width:38vw;height:38vw;border-radius:50%;filter:blur(70px);opacity:.16;background:#ffb000;animation:cx-drift 22s ease-in-out infinite alternate}
.cx-glow i:nth-child(2){right:-10vw;top:25%;background:#12a37f;animation-duration:28s}
.cx-glow i:nth-child(3){left:35%;bottom:-18vw;background:#3d6bff;animation-duration:34s}
@keyframes cx-drift{to{transform:translate(6vw,5vw) scale(1.12)}}
.cx-arches{position:absolute;inset:0 0 auto;height:420px;z-index:-1;opacity:.22;background:radial-gradient(60px 120px at 50% 120px,transparent 58px,#ffb00055 59px,transparent 61px) 0 0/130px 240px repeat-x;mask-image:linear-gradient(#000,transparent)}
.cx-kicker{font:600 11px/1.4 ui-monospace,Menlo,monospace;letter-spacing:.16em;color:#ffb000;margin:0 0 8px}
.cx-hero{display:grid;grid-template-columns:auto 1fr;gap:28px;align-items:center;min-height:300px;padding:24px 0}
.cx-hero h1{font:400 clamp(40px,7vw,78px)/1 Georgia,'Times New Roman',serif;margin:0 0 14px;color:#ffffff;text-shadow:0 0 34px #ffb00055}
.cx-hero h1 em{color:#ffb000}
.cx-lede{max-width:62ch;font-size:17px;line-height:1.55;color:#e3dfd6}
.cx-seal .cx-emblem{width:clamp(110px,16vw,170px);height:auto;filter:drop-shadow(0 0 26px #ffb00066);animation:cx-spin 50s linear infinite}
@keyframes cx-spin{to{transform:rotate(360deg)}}
.cx-hud{display:flex;flex-wrap:wrap;gap:10px;margin:16px 0 8px}
.cx-hud span{padding:8px 14px;border:1px solid #ffb00055;border-radius:999px;background:#17191dcc;font-size:13px}
.cx-hud b{color:#ffd166;font-size:16px;margin-right:4px}
.cx-note{font-size:12.5px;color:#9aa1aa;margin:10px 0 0}
.cx-note.warn{color:#f0a3a3}
.cx-mono{font-family:ui-monospace,Menlo,monospace;font-size:12px;color:#8fe3c4;word-break:break-all}
.cx-scenes{position:sticky;top:0;z-index:2;display:flex;gap:6px;overflow-x:auto;padding:10px;margin:8px 0 18px;border:1px solid #ffb00033;border-radius:16px;background:#0e0e10dd;backdrop-filter:blur(10px)}
.cx-scene-btn{flex:0 0 auto;display:flex;gap:8px;align-items:center;padding:9px 14px;border:1px solid transparent;border-radius:12px;background:transparent;color:#e3dfd6;font:inherit;cursor:pointer}
.cx-scene-btn span{font:600 10px ui-monospace,monospace;color:#ffb000}
.cx-scene-btn.on,.cx-scene-btn:hover{border-color:#ffb00088;background:#1d2026;color:#fff}
.cx-room{margin:0 0 26px;padding:24px;border:1px solid #2b3038;border-radius:20px;background:linear-gradient(180deg,#17191dee,#0e0e10ee);box-shadow:inset 0 1px 0 #ffffff0d,0 20px 40px #0007;scroll-margin-top:80px}
.cx-room-head h2{font:400 clamp(24px,3.2vw,34px)/1.15 Georgia,serif;margin:0 0 8px;color:#ffffff}
.cx-room-head p{color:#cfd3d8;max-width:72ch}
.cx-wings{display:flex;flex-wrap:wrap;gap:8px;margin:14px 0}
.cx-wing{padding:8px 14px;border:1px solid #2b3038;border-radius:999px;background:#17191d;color:#e3dfd6;font:inherit;font-size:13px;cursor:pointer}
.cx-wing.on,.cx-wing:hover{border-color:#ffb000;color:#fff;background:#1d2026}
.cx-shelf,.cx-bay,.cx-lucy,.cx-reports,.cx-team{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:14px;margin-top:16px}
.cx-product,.cx-machine{position:relative;text-align:left;display:flex;flex-direction:column;gap:6px;padding:18px;border:1px solid #2b3038;border-radius:18px;background:linear-gradient(160deg,#17191d,#0e0e10);color:#faf8f4;font:inherit;cursor:pointer;transition:transform .2s,border-color .2s,box-shadow .2s}
.cx-product:hover,.cx-machine:hover,.cx-product:focus-visible,.cx-machine:focus-visible{transform:translateY(-4px);border-color:#ffb000;box-shadow:0 14px 34px #ffb00026}
.cx-product.lit{border-color:#12a37f88;box-shadow:inset 0 0 0 1px #12a37f33,0 0 30px #12a37f1a}
.cx-product strong,.cx-machine strong{font-size:16.5px;color:#fff}
.cx-product p,.cx-machine p{font-size:13.5px;line-height:1.5;color:#cfd3d8;margin:4px 0}
.cx-chips{display:flex;flex-wrap:wrap;gap:6px;margin-top:auto}
.cx-chips i{font:600 10.5px ui-monospace,monospace;font-style:normal;padding:3px 8px;border-radius:999px;border:1px solid #2b3038;color:#ffd166}
.cx-chips i.lit{border-color:#12a37f;color:#8fe3c4}
.cx-tag{font:600 10px ui-monospace,monospace;letter-spacing:.12em;color:#12a37f;text-transform:uppercase}
.cx-open{font-size:12px;color:#ffb000}
.cx-emblem{width:60px;height:60px}
.cx-machine .cx-emblem{animation:cx-pulse 4s ease-in-out infinite}
@keyframes cx-pulse{50%{filter:drop-shadow(0 0 10px #ffb00088)}}
.cx-belt{width:100%;height:auto;margin-top:12px}
.cx-belt-run{animation:cx-tread 1.5s linear infinite}
@keyframes cx-tread{to{transform:translateX(24px)}}
.cx-st rect{fill:#1d2026;stroke:#2b3038}.cx-st text{fill:#cfd3d8;font-size:14px}
.cx-st.ok circle{fill:#12a37f}.cx-st.warm circle{fill:#ffb000}.cx-st.cold circle{fill:#5c6570}
.cx-stations{list-style:none;padding:0;margin:14px 0 0;display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:8px}
.cx-stations li{display:flex;flex-direction:column;padding:10px 12px;border:1px solid #2b3038;border-left:4px solid #5c6570;border-radius:10px;background:#17191d}
.cx-stations li.ok{border-left-color:#12a37f}.cx-stations li.warm{border-left-color:#ffb000}
.cx-stations small{color:#9aa1aa}.cx-stations span{font-size:12px;color:#e3dfd6}
.cx-transit-wrap{display:grid;grid-template-columns:minmax(0,2.2fr) minmax(200px,1fr);gap:18px;align-items:center;margin:12px 0}
.cx-transit{width:100%;height:auto;border-radius:16px;background:#0e0e10;border:1px solid #2b3038}
.cx-flow{stroke-dasharray:16 900;animation:cx-flowa 6s linear infinite}
@keyframes cx-flowa{to{stroke-dashoffset:-916}}
.cx-stops{list-style:none;margin:0;padding:0;display:grid;gap:6px}
.cx-stops button{width:100%;text-align:left;display:flex;flex-direction:column;padding:9px 12px;border:1px solid #2b3038;border-radius:12px;background:#17191d;color:#faf8f4;font:inherit;cursor:pointer}
.cx-stops button:hover{border-color:#ffb000}.cx-stops small{color:#9aa1aa}
.cx-reports article,.cx-lucy article,.cx-team article{padding:18px;border:1px solid #2b3038;border-radius:18px;background:#17191d}
.cx-reports h3,.cx-lucy h3{margin:6px 0;font-size:16px;color:#fff}
.cx-reports ul{padding-left:18px;font-size:13px;line-height:1.6;color:#cfd3d8}
.cx-reports a{color:#ffb000}
.cx-team article{display:flex;gap:12px;align-items:flex-start}
.cx-team small{display:block;color:#9aa1aa;font-size:11.5px}.cx-team p{font-size:13px;color:#cfd3d8;margin:4px 0 0}
.cx-dot{flex:0 0 40px;height:40px;display:grid;place-items:center;border-radius:50%;background:radial-gradient(#1d2026,#17191d);border:1px solid #ffb000;font:600 13px Georgia,serif;color:#ffd166}
.cx-house{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);gap:20px;align-items:center}
.cx-house svg{width:100%;height:auto;border-radius:16px;border:1px solid #ffb00044}
.cx-rooms{padding-left:18px;line-height:1.7;color:#e3dfd6}
.cx-foot{display:flex;justify-content:space-between;flex-wrap:wrap;gap:8px;padding-top:16px;border-top:1px solid #ffb00033;font:600 11px ui-monospace,monospace;letter-spacing:.14em;color:#9aa1aa}
.cx-detail .cx-emblem{width:90px;height:90px}
.cx-detail dl{display:grid;grid-template-columns:auto 1fr;gap:6px 14px}
.cx-detail dt{font-weight:600}
.cx-promise{font:400 17px/1.6 Georgia,serif}
@media (max-width:760px){.cx-hero,.cx-transit-wrap,.cx-house{grid-template-columns:1fr}}
@media (prefers-reduced-motion:reduce){.cx-hall,.cx-hall *{animation:none!important;transition:none!important}.cx-pack,.cx-crate{display:none}}
.dialog-body .cx-mono{color:#0b6b52}.dialog-body .cx-note{color:#5c6570}.dialog-body .cx-kicker{color:#2b3038}

/* Exchange v2 (Nov 16, 2026): Front Counter, Clocks, Brand Atelier. Scoped to .cx2-* */
.cx2-sub{font:600 14px/1.3 ui-monospace,Menlo,monospace;letter-spacing:.12em;text-transform:uppercase;color:#ffb000;margin:26px 0 8px}
.cx2-ask{margin:14px 0;display:flex;flex-direction:column;gap:8px}
.cx2-label{font:600 11px/1.4 ui-monospace,Menlo,monospace;letter-spacing:.14em;color:#9aa1aa;text-transform:uppercase}
.cx2-row{display:flex;gap:8px;flex-wrap:wrap}
.cx2-row input,.cx2-ask textarea{min-width:0;background:#17191d;color:#faf8f4;border:1px solid #2b3038;border-radius:10px;padding:12px 14px;font:16px/1.4 inherit;outline:none}
.cx2-ask textarea{width:100%;resize:vertical}
.cx2-row input{flex:1 1 260px}
.cx2-row input:focus,.cx2-ask textarea:focus{border-color:#ffb000;box-shadow:0 0 0 2px #ffb00033}
.cx2-ex{display:flex;gap:6px;flex-wrap:wrap}
.cx2-exbtn{background:transparent;color:#cfd3d8;border:1px solid #2b3038;border-radius:999px;padding:6px 12px;font:13px/1.2 inherit;cursor:pointer}
.cx2-exbtn:hover,.cx2-exbtn:focus-visible{border-color:#ffb000;color:#ffb000;outline:none}
.cx2-hits{display:flex;flex-direction:column;gap:10px;margin:10px 0}
.cx2-hit{display:flex;gap:14px;background:#17191d;border:1px solid #2b3038;border-left:3px solid #ffb000;border-radius:10px;padding:14px 16px}
.cx2-hit.likely{border-left-color:#3d6bff}.cx2-hit.unsure{border-left-color:#5c6570}
.cx2-hit h3{margin:2px 0 6px;font-size:18px}.cx2-hit p{margin:4px 0}
.cx2-rank{font:700 28px/1 Georgia,serif;color:#ffb000;min-width:26px}
.cx2-chip{display:inline-block;font:600 12px/1 inherit;border-radius:999px;padding:5px 10px;border:1px solid currentColor}
.cx2-chip.ok{color:#12a37f}.cx2-chip.warm{color:#ffb000}.cx2-chip.cold{color:#9aa1aa}
.cx2-clocks{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,250px),1fr));gap:8px}
.cx2-clock{display:grid;grid-template-columns:14px 1fr;gap:2px 10px;align-items:center;background:#17191d;border:1px solid #2b3038;border-radius:8px;padding:10px 12px}
.cx2-clock i{width:10px;height:10px;border-radius:50%;background:#5c6570;grid-row:span 2}
.cx2-clock b{font:600 13px/1.3 ui-monospace,Menlo,monospace;overflow-wrap:anywhere}.cx2-clock small{color:#9aa1aa;font-size:12px}
.cx2-clock.ok i{background:#12a37f;box-shadow:0 0 8px #12a37f}.cx2-clock.warm i{background:#ffb000;box-shadow:0 0 8px #ffb00088}.cx2-clock.bad i{background:#f05a1e;box-shadow:0 0 8px #f05a1e}
@media (prefers-reduced-motion:no-preference){.cx2-clock.ok i{animation:cx2-pulse 3s ease-in-out infinite}}
@keyframes cx2-pulse{50%{opacity:.45}}
.cx2-swatches{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,200px),1fr));gap:10px;margin:14px 0}
.cx2-sw{margin:0;background:#17191d;border:1px solid #2b3038;border-radius:10px;overflow:hidden}
.cx2-sw span{display:block;height:64px;border-bottom:1px solid #2b3038}
.cx2-sw figcaption{padding:10px 12px;display:flex;flex-direction:column;gap:2px}.cx2-sw small{color:#9aa1aa;font-size:12px}
.cx2-sw code,.cx2-houses code{color:#ffb000;font-size:12px}
.cx2-houses{display:flex;flex-wrap:wrap;gap:8px 18px;margin:6px 0 14px;font-size:14px;color:#cfd3d8}
.cx2-houses i{display:inline-block;width:12px;height:12px;border-radius:3px;margin-right:6px;vertical-align:-1px}
.cx2-houses i.cx2-none{background:linear-gradient(135deg,#0e0e10 50%,#ffb000 50%);outline:1px solid #2b3038}
.cx2-lines{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr));gap:10px;margin:8px 0}
.cx2-lines article{background:#17191d;border:1px solid #2b3038;border-radius:10px;padding:14px 16px}
.cx2-lines blockquote{margin:8px 0;font:italic 18px/1.35 Georgia,serif;color:#fff}.cx2-lines p{margin:0;color:#9aa1aa;font-size:13px}
.cx2-rules{margin:10px 0;padding-left:20px;color:#cfd3d8;line-height:1.6}
.cx2-finds{margin:0;padding:0;list-style:none;display:flex;flex-direction:column;gap:8px}
.cx2-finds li{background:#17191d;border:1px solid #2b3038;border-left:3px solid #f05a1e;border-radius:8px;padding:10px 14px}
.cx2-finds small{display:block;color:#9aa1aa;margin-top:2px}
.cx2-clean{margin:0;background:#17191d;border:1px solid #2b3038;border-left:3px solid #12a37f;border-radius:8px;padding:12px 14px}
@media (max-width:640px){.cx2-hit{flex-direction:column;gap:6px}.cx2-row input{flex-basis:100%}}

/* Family-palette corrections after the first visual check (Nov 16, 2026) */
.cx-hall code{background:#0e0e10;color:#ffb000;border:1px solid #2b3038;border-radius:4px;padding:1px 6px;font-size:12px}
.cx-hall .button.primary{background:#ffb000;color:#0e0e10;border-color:#ffb000;font-weight:600}
.cx-hall .button.primary:hover,.cx-hall .button.primary:focus-visible{background:#ffd166;border-color:#ffd166;outline:2px solid #ffb00066;outline-offset:2px}
.cx2-ask textarea{min-height:0;height:96px}
.cx2-hit .cx-tag{color:#ffb000}.cx2-hit.likely .cx-tag{color:#3d6bff}.cx2-hit.unsure .cx-tag{color:#9aa1aa}
.cx2-sw:last-child span{box-shadow:inset 0 0 0 1px #2b3038}
