/* zcrisis.com /map: inventory and safehouse views (stash.js). Game windows from the v2 kit (site.css tokens: --win*, --sel,
   --display, --body); class names are stash.js's, keep them. */
/* the window fills the screen: the page behind is no use while it is open (Simm 2026-11-04) */
.zs-ov { position: fixed; inset: 0; z-index: 1200; background: rgba(8,7,5,.72); display: grid; place-items: center; padding: 6px; }
/* in the page (/refuge): under the site's menu and tabs; .zs-big = the whole screen on request */
.zs-ov.zs-inline { position: static; inset: auto; z-index: auto; background: none; padding: 0; display: block; }
.zs-ov.zs-inline[hidden] { display: none; }
.zs-ov.zs-inline .zs-x { display: none; }
.zs-ov.zs-inline.zs-big { position: fixed; inset: 0; z-index: 1200; background: rgba(8,7,5,.72); padding: 6px; height: auto !important; }
/* what's coming, while the first reading is on its way: never an empty block */
.zs-wait { padding: 10px 14px; } .zs-wait .zc-skel { height: 32px; margin: 0 0 11px; }
.zs-plan > .zs-wait { width: 100%; height: 100%; } .zs-plan > .zs-wait .zc-skel { height: 100%; margin: 0; }
.zs-win { width: 100%; height: 100%; display: flex; flex-direction: column; background: var(--zs-bg);
  border: 1px solid var(--win-line); border-radius: var(--r-win); overflow: hidden; box-shadow: var(--win-shade), 0 24px 60px rgba(0,0,0,.55); position: relative; }
.zs-head { display: flex; align-items: center; gap: 10px; padding: 5px 6px 5px 14px; border-bottom: 1px solid var(--win-line); background: var(--win-title); box-shadow: inset 0 1px 0 rgba(255,255,255,.13); }
.zs-title { min-width: 0; flex: 1; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.zs-title h2 { margin: 0; font: 700 19px/1.1 var(--display); letter-spacing: .06em; text-transform: uppercase; text-shadow: 0 1px 0 #000; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.zs-sub { color: #b9bcb5; font-size: 13px; }
.zs-badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; padding: 3px 8px; border-radius: 2px; border: 1px solid rgba(255,255,255,.22); background: rgba(0,0,0,.25); color: var(--dim); white-space: nowrap; }
.zs-badge i { width: 7px; height: 7px; border-radius: 50%; background: var(--zs-none); }
.zs-badge.live { color: var(--text); } .zs-badge.live i { background: var(--zs-live); box-shadow: 0 0 6px var(--zs-live); animation: zs-pulse 1.6s infinite; }
.zs-badge.old i { background: var(--zs-old); }
@keyframes zs-pulse { 50% { opacity: .35; } }
.zs-x { background: linear-gradient(#3b413f, #2a2f2e); border: 1px solid rgba(255,255,255,.2); color: var(--text); width: 32px; height: 32px; border-radius: 3px; cursor: pointer; font-size: 15px; }
.zs-fold { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 10px; background: linear-gradient(#3b413f, #2a2f2e); border: 1px solid rgba(255,255,255,.2); color: var(--text); border-radius: 3px; cursor: pointer; font: 600 13px var(--body); white-space: nowrap; }
.zs-fold svg { width: 16px; height: 16px; } .zs-fold:hover { filter: brightness(1.15); } .zs-fold.on { border-color: var(--amber); }
.zs-fold[hidden] { display: none; }
.zs-x:hover { filter: brightness(1.15); }
.zs-body { flex: 1; min-height: 0; display: flex; }
.zs-note { color: var(--dim); font-size: 14px; line-height: 1.5; padding: 18px; margin: 0; }
.zs-note b { color: var(--text); }

/* safehouse: plan left, panels right */
.zs-house { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) clamp(340px, 29vw, 480px); }
.zs-house.fold { grid-template-columns: minmax(0, 1fr) 0; }
.zs-house.fold > .zs-right { display: none; }
.zs-house.fold > .zs-left { border-right: 0; }
/* in the page a folded list keeps the Moves: they go under the plan, full width (Bastha 2026-11-08). Computers only:
   a phone has no fold button, its list always shows */
@media (min-width: 761px) {
  .zs-inline .zs-house.fold { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; }
  .zs-inline .zs-house.fold > .zs-right { display: block; border-top: 1px solid var(--line); }
  .zs-inline .zs-house.fold > .zs-right > .zs-panel { display: none; }
  .zs-inline .zs-house.fold .zs-queue { max-height: 30vh; }
}
.zs-left { min-width: 0; min-height: 0; display: flex; flex-direction: column; border-right: 1px solid var(--line); }
.zs-tools { display: flex; gap: 8px; align-items: center; padding: 6px 10px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.zs-levels { display: flex; gap: 4px; flex-wrap: wrap; }
.zs-levels button { background: linear-gradient(#2c3130, #191d1c); color: var(--dim); border: 1px solid var(--win-line); border-radius: 3px; padding: 5px 10px; font: 600 13px var(--body); cursor: pointer; }
.zs-levels button.on { color: #fff; border-color: var(--amber); background: linear-gradient(#555b59, #343938); }
.zs-search { flex: 1; min-width: 140px; background: var(--zs-row); border: 1px solid rgba(255,255,255,.2); color: var(--text); border-radius: 2px; padding: 7px 10px; font: inherit; font-size: 14px; box-shadow: inset 0 2px 4px rgba(0,0,0,.5); }
.zs-search:focus { outline: none; border-color: var(--amber); }
.zs-plan { flex: 1; min-height: 0; padding: 12px; display: grid; place-items: center; }
.zs-plan svg { width: 100%; height: 100%; display: block; }
.zs-legend { display: flex; gap: 14px; flex-wrap: wrap; padding: 8px 12px 10px; border-top: 1px solid var(--line); color: var(--dim); font-size: 11.5px; }
.zs-legend span { display: inline-flex; align-items: center; gap: 5px; }
.zs-legend i { display: inline-block; width: 11px; height: 11px; border-radius: 3px; }
.zs-right { min-width: 0; min-height: 0; display: grid; grid-template-rows: minmax(0, 1fr) auto; }
.zs-panel { min-height: 0; overflow: auto; }
.zs-ph { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; gap: 10px; padding: 9px 14px; background: linear-gradient(#3a3f3d, #242827); border-bottom: 1px solid var(--win-line); }
.zs-ph b { font: 700 16px var(--display); letter-spacing: .05em; text-transform: uppercase; text-shadow: 0 1px 0 #000; }
.zs-ph .grow { flex: 1; min-width: 0; }
.zs-ph .muted { margin: 0; }
.zs-back { background: linear-gradient(#3b413f, #2a2f2e); border: 1px solid rgba(255,255,255,.2); color: var(--text); border-radius: 3px; width: 30px; height: 30px; cursor: pointer; flex: none; }
.zs-grp { padding: 10px 14px 4px; color: var(--dim); font: 600 13px var(--body); }
.zs-crow { display: grid; grid-template-columns: 12px minmax(0, 1fr) auto 64px; gap: 10px; align-items: center; width: 100%; text-align: left;
  padding: 8px 14px; background: none; border: 0; border-top: 1px solid #272e2c; color: var(--text); font: inherit; font-size: 13.5px; cursor: pointer; }
.zs-crow:hover, .zs-crow.drop { background: var(--zs-hover); }
.zs-crow .n { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.zs-crow .q { color: var(--dim); font-size: 12px; white-space: nowrap; }
.zs-crow .hits { grid-column: 2 / -1; color: var(--zs-hit); font-size: 12px; margin-top: -4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.zs-cdot { width: 10px; height: 10px; border-radius: 3px; background: var(--zs-box); }
.zs-cdot.some { background: var(--zs-box-some); } .zs-cdot.full { background: var(--zs-box-full); } .zs-cdot.pile { border-radius: 50%; background: var(--zs-pile); } .zs-cdot.veh { background: var(--rv); }
.zs-capt { color: var(--dim); font-size: 12px; white-space: nowrap; text-align: right; }
.zs-capt .zs-bar { width: 90px; margin-top: 4px; margin-left: auto; }

.zs-it { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto auto auto; gap: 10px; align-items: center; padding: 6px 14px; border-top: 1px solid #262c2a; font-size: 13.5px; }
.zs-it[draggable="true"] { cursor: grab; }
.zs-it:hover { background: #1e2422; }
.zs-it.nest { padding-left: 38px; background: #191e1d; }
.zs-it .nm { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.zs-it .nm small { color: var(--dim); margin-left: 6px; }
.zs-it .q { font: 700 14px var(--display); letter-spacing: .03em; color: var(--text); background: #0b0d0c; border: 1px solid var(--win-line-soft); padding: 0 6px; border-radius: 2px; }
.zs-it .w { color: var(--dim); font-size: 12px; width: 52px; text-align: right; white-space: nowrap; }
/* move queue: two compact lines (energy + slots, where you are), help and orders under them (Simm 2026-11-04) */
.zs-dock { min-width: 0; }
.zs-queue { border-top: 1px solid var(--win-line); background: var(--zs-card); max-height: 40vh; overflow: auto; }
.zs-mvh { position: sticky; top: 0; z-index: 2; background: var(--zs-card); }
.zs-mv1, .zs-mv2 { display: flex; align-items: center; gap: 8px; padding: 6px 10px 0 12px; min-width: 0; }
.zs-mv2 { padding: 5px 10px 7px 12px; }
.zs-mvt { font: 700 14px var(--display); letter-spacing: .05em; text-transform: uppercase; text-shadow: 0 1px 0 #000; white-space: nowrap; }
.zs-eb { flex: 1; min-width: 0; display: flex; align-items: center; gap: 6px; }
.zs-eb img, .zs-slots img { image-rendering: pixelated; flex: none; }
.zs-ebar2 { position: relative; flex: 1; min-width: 70px; height: 18px; border-radius: 2px; background: #2a302e; border: 1px solid rgba(0,0,0,.6); overflow: hidden; box-shadow: inset 0 1px 3px rgba(0,0,0,.6); }
.zs-ebar2 i { position: absolute; inset: 0 auto 0 0; background: linear-gradient(#e9c051, #b98a22); }
.zs-ebar2 em { position: relative; display: block; text-align: center; font: 700 12px/18px var(--body); font-style: normal; color: #fff; text-shadow: 0 1px 2px #000, 0 0 3px #000; font-variant-numeric: tabular-nums; }
.zs-eb small { color: var(--zs-live); font-size: 12px; white-space: nowrap; }
.zs-hbtn { flex: none; width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--amber); background: rgba(0,0,0,.3); color: var(--amber); font: 700 14px var(--body); cursor: pointer; }
.zs-hbtn.on, .zs-hbtn:hover { background: var(--amber); color: #1a1408; }
.zs-state { flex: 1; min-width: 0; display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: help; }
.zs-state i { flex: none; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.zs-state.ok { color: var(--zs-live); } .zs-state.wait { color: var(--zs-old); } .zs-state.bad { color: #e6806b; }
.zs-slots { display: inline-flex; align-items: center; gap: 4px; font: 600 13px var(--body); font-variant-numeric: tabular-nums; white-space: nowrap; }
.zs-qall { height: 26px; padding: 0 8px; font-size: 12px; }
.zs-mv3 { margin: 0; padding: 0 12px 6px; color: var(--dim); font-size: 12px; }
.zs-help { display: block; margin: 0 10px 10px; padding: 10px 10px 2px; background: rgba(0,0,0,.25); border: 1px solid rgba(255,255,255,.1); border-radius: 3px; color: var(--text); }
.zs-help a { color: var(--accent); }
.zs-queue .zs-ph { background: var(--zs-card); }
.zs-queue.lotting .zs-qrows { display: none; }
.zs-panel > .zs-ph { position: static; }
.zs-qrow { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 7px 14px; border-top: 1px solid #272e2c; font-size: 12.5px; }
.zs-qrow .zs-ic, .zs-qrow .zs-glyph { width: 24px; height: 24px; }
.zs-qrow .path { color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.zs-qrow .st { font-size: 11.5px; }
.zs-qrow .st.run { color: var(--zs-live); } .zs-qrow .st.wait, .zs-qrow .st.sent, .zs-qrow .st.cancelling { color: var(--zs-old); }
.zs-qrow .st.fail { color: #e6806b; } .zs-qrow .st.done, .zs-qrow .st.cancel { color: var(--dim); }
.zs-qrow .zs-bar { margin-top: 4px; }
.zs-qx { background: none; border: 1px solid var(--win-line); color: var(--dim); border-radius: 3px; width: 26px; height: 26px; cursor: pointer; }
.zs-qx:hover { color: var(--text); border-color: var(--accent); }
.zs-rule { padding: 8px 14px 12px; color: var(--dim); font-size: 11.5px; line-height: 1.45; margin: 0; }

/* plan svg */
.zs-plan .fl { fill: var(--zs-floor); } .zs-plan .in { fill: var(--zs-in); }
.zs-plan .wall { stroke: var(--zs-wall); stroke-width: .16; stroke-linecap: square; fill: none; }
.zs-plan .door { stroke: var(--zs-door); stroke-width: .14; fill: none; }
.zs-plan .win { stroke: var(--zs-win); stroke-width: .12; fill: none; }
.zs-plan .edge { stroke: var(--house); stroke-width: .08; stroke-dasharray: .35 .25; fill: none; opacity: .7; }
.zs-plan .box rect { fill: var(--zs-box); stroke: #0c0a08; stroke-width: .06; cursor: pointer; transition: fill .2s; }
.zs-plan .box.some rect { fill: var(--zs-box-some); } .zs-plan .box.full rect { fill: var(--zs-box-full); }
.zs-plan .box:hover rect, .zs-plan .box.drop rect { stroke: #fff; stroke-width: .1; }
.zs-plan .box.hit rect { stroke: var(--zs-hit); stroke-width: .16; }
.zs-plan .box.sel rect { stroke: var(--accent); stroke-width: .2; }
.zs-plan .box text { font: 600 .42px var(--body); fill: #111; pointer-events: none; }
.zs-plan .pile { fill: var(--zs-pile); stroke: #0c0a08; stroke-width: .05; cursor: pointer; }
.zs-plan .pile.sel { stroke: var(--accent); stroke-width: .14; } .zs-plan .pile.hit { stroke: var(--zs-hit); stroke-width: .14; }
.zs-plan .car rect { fill: rgba(79,163,209,.22); stroke: var(--rv); stroke-width: .1; cursor: pointer; }
.zs-plan .car.sel rect { stroke: var(--accent); }
.zs-plan .car text { font: 600 .42px var(--body); fill: var(--rv); pointer-events: none; }
.zs-plan .who { fill: var(--me); stroke: #111; stroke-width: .08; }
.zs-plan .who-l { font: 600 .5px var(--body); fill: #fff; paint-order: stroke; stroke: #000; stroke-width: .12; }

/* the plan while a lot is ticked: a click takes it there */
.zs-plan.picking .box rect, .zs-plan.picking .car rect { cursor: crosshair; }
.zs-plan.picking .box:hover rect { stroke: var(--accent); stroke-width: .18; }
.zs-plan.picking .zi-stage { box-shadow: inset 0 0 0 2px var(--amber); }
.bad { color: #e6806b; }
.btn[disabled] { opacity: .5; cursor: default; }

/* inventory */
.zs-inv { flex: 1; overflow: auto; display: grid; grid-template-columns: minmax(0, 1fr); align-content: start; }
.zs-stats { display: flex; gap: 22px; padding: 14px 18px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.zs-stat { min-width: 160px; }
.zs-stat .k { color: var(--dim); font-size: 13px; }
.zs-stat .v { font: 700 24px var(--display); letter-spacing: .02em; margin: 1px 0 5px; font-variant-numeric: tabular-nums; }
.zs-cols { columns: 2 380px; column-gap: 0; }
.zs-sec { break-inside: avoid; border-bottom: 1px solid var(--line); }

/* side panel */
.zs-srow { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 2px; cursor: pointer; }
.zs-srow:hover { background: var(--sel); }
.zs-srow .t { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.zs-srow .sub { margin-left: auto; color: var(--dim); font-size: 12px; white-space: nowrap; display: inline-flex; align-items: center; gap: 5px; }
.zs-srow .sub i { width: 6px; height: 6px; border-radius: 50%; background: var(--zs-none); } .zs-srow .sub.live i { background: var(--zs-live); } .zs-srow .sub.old i { background: var(--zs-old); }
.zs-sic { width: 16px; height: 16px; flex: none; color: var(--dim); }
.zs-invbtn { margin-left: 6px; background: none; border: 1px solid var(--win-line); color: var(--dim); border-radius: 3px; height: 22px; padding: 0 6px; cursor: pointer; display: inline-flex; align-items: center; }
.zs-invbtn:hover { color: var(--text); border-color: var(--amber); }
.zs-invbtn svg { width: 13px; height: 13px; }

@media (max-width: 760px) {
  /* in the page the page scrolls; the lot bar and the moves stay above the site's tab bar */
  .zs-ov.zs-inline .zs-win { height: auto; overflow: visible; }
  .zs-ov.zs-inline .zs-house { overflow: visible; }
  .zs-ov.zs-inline .zs-dock { bottom: var(--zc-tabh, 0px); }
  .zs-ov.zs-inline .zs-head { flex-wrap: wrap; gap: 6px 8px; padding: 6px 10px; }
  .zs-ov.zs-inline .zs-title { flex: 1 1 100%; }
  .zs-ov.zs-inline .zs-plan { height: 38vh; }
  .zs-ov.zs-inline .zs-search, .zs-ov.zs-inline .zs-accf { flex: 1 1 40%; min-width: 0; width: auto; }
  .zs-ov { padding: 0; }
  .zs-win { border-radius: 0; height: 100%; }
  .zs-house { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); overflow: auto; }
  .zs-left { border-right: 0; border-bottom: 1px solid var(--line); }
  .zs-plan { height: 52vh; flex: none; }
  .zs-fold { display: none; }
  .zs-house.fold { grid-template-columns: minmax(0, 1fr); } .zs-house.fold > .zs-right { display: grid; }
  .zs-house { grid-template-rows: max-content max-content; }
  .zs-house > .zs-right, .zs-house.fold > .zs-right { display: block; }
  /* phone: the window scrolls as one; the Moves lines stay pinned at the bottom while the list goes by */
  .zs-dock { position: sticky; bottom: 0; z-index: 3; box-shadow: 0 -6px 14px rgba(0,0,0,.5); }
  .zs-queue { max-height: 34vh; }
  .zs-legend { display: none; }
  .zs-right { grid-template-rows: auto auto; }
  .zs-panel { max-height: none; overflow: visible; }
  .zs-cols { columns: 1; }
}

/* names, sorting rules, Auto-Sort (Matt 2026-11-02) */
/* settings stay on one thin line until asked for: the height belongs to the items */
.zs-ph1 { padding: 6px 14px; align-items: baseline; white-space: nowrap; overflow: hidden; }
.zs-ph1 .muted { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; font-size: 12.5px; }
.zs-rules > summary, .zs-ordbox > summary { cursor: pointer; padding: 3px 14px; font-size: 12.5px; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.zs-rules > summary:hover, .zs-ordbox > summary:hover { color: var(--text); }
.zs-ordbox > summary { border-bottom: 1px solid var(--line); }
.zs-ordbox > .zs-small { margin: 6px 14px 2px; }
.zs-rules[open] { margin: 0 14px 10px; border: 1px solid var(--line); border-radius: 2px; padding: 0 10px 10px; background: rgba(255,255,255,.02); }
.zs-rules[open] > summary { padding: 6px 0 0; color: var(--text); }
.zs-rules label { display: block; color: var(--dim); font-size: 12.5px; margin: 10px 0 4px; }
.zs-row2 { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.zs-rules input, .zs-rules select { background: var(--zs-row); color: var(--text); border: 1px solid rgba(255,255,255,.2); border-radius: 2px; padding: 6px 8px; font: inherit; }
.zs-chips { display: flex; flex-wrap: wrap; gap: 5px; max-height: 120px; overflow: auto; }
.zs-chip { background: var(--zs-row); color: var(--dim); border: 1px solid rgba(255,255,255,.15); border-radius: 12px; padding: 3px 9px; font: 12px var(--body); cursor: pointer; }
.zs-chip.on { color: #111; background: var(--accent); border-color: var(--accent); }
.zs-gbar i { background: #6fb7e0 !important; }
.zs-plan .spot rect { fill: rgba(111,183,224,.12); stroke: #6fb7e0; stroke-width: .12; stroke-dasharray: .4 .25; }
.zs-plan .spot text { font: 700 .5px var(--body); fill: #6fb7e0; pointer-events: none; }
.zs-plan.picking svg { cursor: crosshair; }

/* Auto-Sort recommendations 4, 5, 9: presets, names + rule badges on the plan, accept filter, sorting order */
.zs-presets .zs-chip { border-style: dashed; }
.zs-presets .zs-sug { color: var(--text); border-style: solid; border-color: var(--accent); }
.zs-small { font-size: 12px; align-self: center; }
.zs-accf { background: var(--zs-row); color: var(--text); border: 1px solid rgba(255,255,255,.2); border-radius: 2px; padding: 6px 8px; font: inherit; font-size: 13px; max-width: 200px; }
.zs-plan .box .rb { stroke: #0c0a08; stroke-width: .04; pointer-events: none; }
.zs-plan .box .nm { font: 600 .3px var(--body); fill: var(--text); paint-order: stroke; stroke: #0c0a08; stroke-width: .08; pointer-events: none; }
.zs-plan .box.acc rect:first-of-type { stroke: #6fb7e0; stroke-width: .18; }
.zs-plan .box.dim { opacity: .3; }
.zs-order { margin: 0 0 6px; }
.zs-orow { display: grid; grid-template-columns: 22px 10px minmax(0, 1fr) minmax(0, 1.3fr) auto auto; align-items: center; gap: 8px;
  padding: 6px 14px; border-bottom: 1px solid rgba(255,255,255,.05); cursor: pointer; user-select: none; }
.zs-orow[draggable] { cursor: grab; }
.zs-orow:hover { background: var(--zs-hover); }
.zs-orow.drag { opacity: .5; background: var(--zs-hover); }
.zs-orow .i { color: var(--dim); font-size: 12px; text-align: right; }
.zs-orow .sw { width: 10px; height: 10px; border-radius: 3px; }
.zs-orow .n { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 13.5px; }
.zs-orow .cats { color: var(--dim); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.zs-orow .mv { background: var(--zs-row); color: var(--dim); border: 1px solid var(--win-line); border-radius: 2px; width: 26px; height: 24px; cursor: pointer; font: 13px var(--body); }
.zs-orow .mv:hover { color: var(--text); border-color: var(--accent); }
@media (max-width: 640px) { .zs-orow { grid-template-columns: 22px 10px minmax(0, 1fr) auto auto; } .zs-orow .cats { display: none; } }

/* the house drawn like the game (stashiso.js, Simm 2026-11-03): storeys = canvases, lit furniture = its sprite with an outline */
.zs-plan:has(.zi-stage) { padding: 0; display: block; position: relative; overflow: hidden; }
.zi-stage { position: absolute; inset: 0; overflow: hidden; background: radial-gradient(ellipse at 50% 45%, #1c261b 0, #111510 60%, #0c0d0b 100%); }
.zi-stage.grab { cursor: grabbing; }
.zi-world { position: absolute; left: 0; top: 0; transform-origin: 0 0; }
.zi-world.glide { transition: transform .45s cubic-bezier(.3,.7,.2,1); }
.zi-stage.under { background: radial-gradient(ellipse at 50% 45%, #1d1a16 0, #100e0c 60%, #080707 100%); }
.zi-rot { position: absolute; right: 10px; top: 10px; z-index: 30; display: flex; align-items: center; gap: 4px; background: rgba(10,9,8,.75); border: 1px solid var(--win-line); border-radius: 3px; padding: 3px; }
.zi-rot button { width: 30px; height: 28px; background: transparent; color: #e8dcc0; border: 1px solid transparent; border-radius: 2px; font-size: 17px; line-height: 1; cursor: pointer; }
.zi-rot button:hover { border-color: var(--amber); color: #fff; }
.zi-compass { width: 24px; height: 24px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.2); border-radius: 50%; }
.zi-compass i { display: block; width: 0; height: 0; border-left: 5px solid transparent; border-right: 5px solid transparent; border-bottom: 13px solid var(--amber); transform-origin: 50% 60%; }
.zi-edge { position: absolute; left: 0; right: 0; z-index: 25; height: 34px; display: none; align-items: center; justify-content: center; font: 700 12px/1 var(--display); letter-spacing: .08em; text-transform: uppercase; color: #e8dcc0; background: rgba(10,9,8,.82); border: 1px dashed rgba(255,255,255,.25); }
.zi-edge.on { display: flex; }
.zi-edge.up { top: 0; } .zi-edge.dn { bottom: 0; }
.zi-edge.spring { border-color: var(--amber); color: #fff; background: rgba(60,42,10,.9); }
.zi-slab { position: absolute; left: 0; top: 0; transition: transform .4s cubic-bezier(.3,.7,.2,1), opacity .25s; }
.zi-slab canvas { position: absolute; }
.zi-slab.off { opacity: 0; pointer-events: none; }
.zi-slab.dim canvas { filter: saturate(.6) brightness(.55); }
.zi-hl { position: absolute; left: 0; top: 0; z-index: 5; }
.zi-ov { position: absolute; pointer-events: none; }
.zi-ov.hov, .zi-ov.drop { filter: drop-shadow(1.5px 0 0 var(--amber)) drop-shadow(-1.5px 0 0 var(--amber)) drop-shadow(0 1.5px 0 var(--amber)) drop-shadow(0 -1.5px 0 var(--amber)) brightness(1.1); }
.zi-ov.sel { filter: drop-shadow(2px 0 0 #fff) drop-shadow(-2px 0 0 #fff) drop-shadow(0 2px 0 #fff) drop-shadow(0 -2px 0 #fff) drop-shadow(0 0 7px var(--amber)); }
.zi-ov.hit { filter: drop-shadow(1.5px 0 0 var(--zs-hit)) drop-shadow(-1.5px 0 0 var(--zs-hit)) drop-shadow(0 1.5px 0 var(--zs-hit)) drop-shadow(0 -1.5px 0 var(--zs-hit)); }
.zi-flab { position: absolute; z-index: 6; font: 700 12px/1 var(--display); letter-spacing: .1em; text-transform: uppercase; color: #e8dcc0; background: rgba(0,0,0,.6); border: 1px solid rgba(255,255,255,.2); padding: 5px 8px; border-radius: 2px; white-space: nowrap; transition: opacity .25s; pointer-events: none; }
.zi-tag { position: absolute; z-index: 20; transform-origin: 50% 100%; pointer-events: none; white-space: nowrap; background: rgba(10,9,8,.88); border: 1px solid var(--amber); color: #fff; font: 600 12px/1.2 var(--body); padding: 3px 7px; border-radius: 2px; }
.zi-tag small { color: var(--dim); font-weight: 400; margin-left: 6px; }
.zi-tag.hit { border-color: var(--zs-hit); } .zi-tag.sel { border-color: #fff; }
.zs-plan svg.zi-car { position: absolute; left: -2000px; top: -2000px; width: 4000px; height: 4000px; z-index: 4; pointer-events: none; }
.zi-car polygon { stroke: rgba(0,0,0,.55); stroke-width: .8; }
.zi-car .tp { fill: #5a6f63; } .zi-car .s1 { fill: #34443b; } .zi-car .s2 { fill: #2a362f; } .zi-car .cab.tp { fill: #66806f; }
.zi-car .glass { fill: #9ec3d6; } .zi-car .bed { fill: #1f2924; stroke: none; }
.zi-car.hov polygon:not(.bed), .zi-car.sel polygon:not(.bed) { stroke: var(--amber); stroke-width: 2; }
.zi-car.hit polygon:not(.bed) { stroke: var(--zs-hit); stroke-width: 2; }
/* the vehicle's own model drawn (stashiso.js realCar): the box goes, the outline follows the model */
.zi-car.real polygon { display: none; }
.zi-car.real.hov image, .zi-car.real.sel image { filter: drop-shadow(0 0 1.5px var(--amber)) drop-shadow(0 0 1.5px var(--amber)); }
.zi-car.real.hit image { filter: drop-shadow(0 0 1.5px var(--zs-hit)) drop-shadow(0 0 1.5px var(--zs-hit)); }

.zs-levels button.spring { border-color: var(--amber); box-shadow: inset 0 -3px 0 var(--amber); }
.zs-crow.th { grid-template-columns: 32px minmax(0, 1fr) auto 64px; padding-top: 4px; padding-bottom: 4px; }
.zs-left:has(.zi-stage) .zs-legend { display: none; }
