/* Scoped, static, touch-sized UI. No shared selectors. */
.market-day-shell{--md-ink:#30483e;--md-line:#c4d0bd;--md-sage:#e6efdf;--md-paper:#fffcf4;color:var(--md-ink);text-align:start;max-width:1160px;margin:auto;font:inherit;line-height:1.55}
.market-day-shell *{box-sizing:border-box;min-width:0}
.market-day-shell h3{font-size:1.15rem;margin:.8rem 0 .6rem}.market-day-shell p{margin:.5rem 0}
.market-day-shell button,.market-day-shell select{font:inherit;color:var(--md-ink);border:1.5px solid var(--md-line);border-radius:14px;background:var(--md-paper);min-height:48px;padding:.6rem .85rem;touch-action:manipulation;cursor:pointer;line-height:1.4;white-space:normal;overflow-wrap:anywhere}
.market-day-shell button:hover:not(:disabled){background:#f2f5e8}.market-day-shell button:disabled{opacity:.55;cursor:default}
.market-day-shell button:focus-visible,.market-day-shell select:focus-visible{outline:3px solid #305c8b;outline-offset:3px}
.market-day-shell button[aria-pressed="true"]{background:#e2edde;border-color:#3d705c;box-shadow:inset 0 0 0 2px #3d705c}
.market-day-shell img{object-fit:contain;display:block;max-width:100%;height:auto}
.market-day-shell .market-day-primary{background:#38634f;color:#fff;border-color:#38634f}.market-day-shell .market-day-primary:hover:not(:disabled){background:#284a3a}
.market-day-top{display:flex;justify-content:space-between;gap:1rem;align-items:end;flex-wrap:wrap}.market-day-top label{display:grid;gap:.4rem;flex:1 1 220px;font-weight:650}.market-day-top select{width:100%;max-width:440px}.market-day-top p{align-self:end}
.market-day-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.65rem;margin-bottom:1rem}.market-day-list button{display:grid;grid-template-columns:28px 58px 1fr;gap:.35rem;align-items:center;text-align:start}.market-day-list button img{width:58px;height:58px}.market-day-list small{grid-column:2/-1;color:#38634f}.market-day-number{font-weight:800}
.market-day-world{display:grid;grid-template-columns:minmax(0,1.75fr) minmax(240px,1fr);gap:1rem;align-items:start}.market-day-scene{position:relative;border-radius:20px;overflow:hidden;background:#ebd8b3;isolation:isolate}.market-day-shell .market-day-backdrop{width:100%;height:auto;aspect-ratio:3/2;object-fit:cover;max-height:none}
.market-day-counter{position:absolute;inset:43% 10% 30%;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5%;direction:ltr;align-items:end}.market-day-counter span{display:flex;align-items:end;justify-content:center;height:100%}.market-day-counter img{width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 3px 2px #765f3444)}
.market-day-stock{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.6rem}.market-day-stock button{display:flex;flex-direction:column;align-items:center;justify-content:start;padding:.5rem;gap:.35rem;font-size:.9rem}.market-day-stock img{width:100%;height:90px;object-fit:contain}.market-day-stock .market-day-hinted{outline:3px dashed #986834;outline-offset:0;background:#fff2d4}
.market-day-bag{background:#f3f1e6;border:1px solid #dfdfd0;border-radius:20px;padding:1rem}.market-day-bag>button{width:100%;margin:.3rem 0}.market-day-alternatives{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.45rem;margin:.6rem 0}.market-day-alternatives>span{display:grid;justify-items:center;text-align:center;border-radius:12px;background:#fffcf4;padding:.45rem}.market-day-alternatives img{width:64px;height:64px}.market-day-alternatives small{font-size:.85rem}.market-day-packed{display:grid;gap:.6rem}.market-day-packed>div{display:grid;grid-template-columns:55px 1fr;gap:.3rem .55rem;align-items:center;background:#fffdf6;border-radius:12px;padding:.5rem}.market-day-packed img{width:55px;height:55px;grid-row:span 2}.market-day-packed button{padding:.4rem;font-size:.85rem}.market-day-packed [data-swap]{grid-column:1/-1}
.market-day-status{padding:1rem;background:var(--md-sage);border-radius:14px;min-height:3.5rem}.market-day-actions{display:flex;gap:.6rem;flex-wrap:wrap;margin:.8rem 0}.market-day-shell .market-day-note{font-size:.86rem;color:#53685c;margin:.75rem 0}
@media(max-width:760px){.market-day-world{grid-template-columns:1fr}.market-day-bag{display:block}.market-day-alternatives{grid-template-columns:repeat(4,minmax(0,1fr))}.market-day-list button{grid-template-columns:20px 1fr;justify-items:center;text-align:center;padding:.45rem}.market-day-list img{grid-column:2}.market-day-list button>span:last-of-type,.market-day-list small{grid-column:1/-1}.market-day-packed{grid-template-columns:repeat(2,minmax(0,1fr))}.market-day-packed>div{grid-template-columns:1fr;text-align:center;justify-items:center}.market-day-packed button{width:100%}.market-day-stock{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:420px){.market-day-list{gap:.35rem}.market-day-list button{font-size:.84rem}.market-day-stock{grid-template-columns:repeat(3,minmax(0,1fr))}.market-day-stock img{height:72px}.market-day-alternatives{grid-template-columns:repeat(2,minmax(0,1fr))}.market-day-actions>button{flex:1 1 120px}.market-day-bag{padding:.75rem}.market-day-top p{font-size:.9rem}}
