/* Independent visitor UI additions only. The accepted room/home geometry lives
   in the audited presentation cascade; no generic global box/grid overrides. */
/* A short navigation status owns no part of the photograph or form grid. */
body[data-world] #public-availability{position:static;flex:0 0 auto;order:1;margin:0 12px 0 auto;padding:0;color:#cbd6dd;background:transparent;opacity:1;white-space:nowrap;text-align:right;font:400 11px/18px var(--ml-sans,sans-serif);border:0}
.world-header .world-tools{order:2}.world-header .world-tools .tool-label{display:none}
#public-availability[hidden]{display:none}
/* Unverified restoration has no room scene beneath the shared header. */
body[data-tabletop='true'][data-world='hall'][data-stage='restore'] .world-header{position:relative;inset:auto}
body[data-tabletop='true'][data-world='hall'][data-stage='restore'] .public-chamber{box-sizing:border-box;width:min(100%,720px);margin:0 auto;padding:clamp(28px,6vw,64px) clamp(20px,5vw,40px);overflow-wrap:anywhere}
body[data-tabletop='true'][data-world='hall'][data-stage='restore'] .public-chamber h1{margin:0 0 20px;font-size:clamp(24px,4vw,36px);line-height:1.5}
body[data-tabletop='true'][data-world='hall'][data-stage='restore'] .public-chamber .actions{display:flex;flex-wrap:wrap;gap:12px 18px;margin-top:24px}
@media(max-width:700px){body[data-world] #public-availability{font-size:11px;margin-right:8px}.world-header .world-tools{gap:4px}}
/* A decoded scene has no loading message or retry control to frame. */
body[data-tabletop][data-world] .tt-scene[data-scene-status='ready'] .tt-scene-load{display:none}
.public-footer{position:relative;margin:36px 24px 24px;text-align:center;font:11px/1.7 var(--ml-sans,sans-serif);color:#a1adb7;opacity:.8}
.public-history{width:min(540px,calc(100vw - 32px));max-height:82svh;padding:24px;border:1px solid #72808b5c;border-radius:3px;background:#101e2b;color:#e3e4dc;overflow:auto}
.public-history::backdrop{background:#07111ccc;backdrop-filter:blur(8px)}
.public-history button[data-public-session]{display:block;width:100%;margin:14px 0;padding:16px;text-align:left;background:transparent;border:0;border-bottom:1px solid #6e819449}
.public-history button span{display:block;margin-top:8px;line-height:1.7}
.public-history .history-drawer-header{display:flex;align-items:center;justify-content:space-between;gap:20px}
body[data-world]:not([data-world='hall']) #public-operation{min-width:0;overflow-wrap:anywhere}
body[data-world]:not([data-world='hall']) .choice-options{display:grid;gap:18px;margin:24px 0}
body[data-world]:not([data-world='hall']) .choice-options input{display:block;width:100%;padding:10px 0;border:0;border-bottom:1px solid currentColor;background:transparent;color:inherit;font:inherit}
body[data-world]:not([data-world='hall']) .draw-pool{min-width:0}
@media(max-width:900px){.public-footer{font-size:10px}.public-availability{font-size:11px}.world-nav button{min-height:44px}.public-history{padding:18px}}
@media(prefers-reduced-motion:reduce){.public-history::backdrop{backdrop-filter:none}}
/* Fixed state styling under strict style-src self (no HTML style attributes). */
.tt-card img[data-reversed='true'],.tt-detail-face img[data-reversed='true'],.ritual-ghost img[data-reversed='true']{transform:rotate(180deg)}
.deck img[data-stack-index='0']{--rot:-6deg}.deck img[data-stack-index='1']{--rot:-3deg}.deck img[data-stack-index='2']{--rot:0deg}.deck img[data-stack-index='3']{--rot:3deg}.deck img[data-stack-index='4']{--rot:6deg}

.public-decoded-scene-image{width:100%;height:100%;display:block}
@media(max-width:360px){.tt-result-cards[data-tt-count='3']{grid-auto-columns:minmax(0,1fr);grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.tt-result-cards[data-tt-count='3'] .tt-card{width:100%;max-width:90px}.tt-result-cards[data-tt-count='3'] .tt-card img{width:100%;height:auto}}
body[data-world='hall'][data-stage='choose'] .world-tools .quiet{width:38px;min-width:38px;height:44px;padding:8px;border:0;background:transparent;opacity:.65}
body[data-world='hall'][data-stage='choose'] .world-tools .tool-label{display:none}
body[data-world='hall'][data-stage='choose'] .world-tools{gap:12px}
/* The record drawer belongs to the same quiet glass material as reader controls. */
.public-history {
  box-sizing:border-box; width:min(560px,calc(100vw - 32px));
  max-height:82svh; padding:24px; border-radius:24px;
  border-color:var(--rc-soft-line,#b8cce23b);
  background:linear-gradient(135deg,#172935f5,#172433fa 62%,#25333df7);
  color:var(--rc-text,#edf0ef); box-shadow:0 24px 80px #02090d99,inset 0 1px 0 #e3eef326;
  scrollbar-gutter:stable; overscroll-behavior:contain;
}
.public-history .history-drawer-header {align-items:flex-start;gap:16px}
.public-history .history-drawer-header h2 {margin:0;font:500 22px/1.45 var(--ml-sans,sans-serif);letter-spacing:.035em}
.public-history > p {font:400 13px/1.8 var(--ml-sans,sans-serif);color:var(--rc-muted,#c9d3d9);margin:14px 0 20px}
.public-history button {font:400 14px/1.65 var(--ml-sans,sans-serif);color:inherit;cursor:pointer;touch-action:manipulation;overflow-wrap:anywhere}
.public-history button[data-public-session] {
  margin:12px 0;padding:16px 18px;min-height:64px;border:1px solid var(--rc-soft-line,#b8cce23b);border-radius:17px;
  background:linear-gradient(108deg,var(--rc-start,#b7b9cd22),var(--rc-mid,#d2d9e414),var(--rc-end,#688aa52c));
  box-shadow:inset 0 1px 0 #eef4ff16;
}
.public-history button[data-public-session] strong {font-weight:500;letter-spacing:.04em}
.public-history button[data-public-session] span {color:var(--rc-muted,#c9d3d9);margin-top:7px}
.public-history button[data-action='history-close'] {flex:none;min-width:44px;min-height:44px;padding:8px 12px;border:1px solid var(--rc-soft-line,#b8cce23b);border-radius:14px;background:#d2d9e40a}
.public-history button:focus-visible {outline:2px solid var(--rc-focus,#e4edf8);outline-offset:3px}
@media(hover:hover){.public-history button:not(:disabled):hover {border-color:var(--rc-line,#d9e4f178);background-color:#e4edf80b}}
@media(max-width:700px){.public-history {padding:20px 16px;border-radius:21px}.public-history .history-drawer-header h2 {font-size:20px}}

/* Spread choices are small editorial cards: shape, name, count, then purpose.
   Keep each real button and its existing action/selected/disabled semantics. */
body[data-tabletop][data-world]:not([data-world='hall'])[data-stage='recommend'] .tt-folio .spread-grid > button {
  display:grid;grid-template-columns:38px minmax(0,1fr);align-items:start;gap:12px;
  padding:16px 14px;min-height:108px;border-radius:17px;text-align:left;
}
body[data-tabletop][data-world]:not([data-world='hall'])[data-stage='recommend'] .spread-grid .spread-diagram {
  display:block;width:34px;height:48px;margin:2px 0 0;opacity:.85;flex:none;
}
body[data-tabletop][data-world]:not([data-world='hall'])[data-stage='recommend'] .spread-option-copy {display:block;min-width:0}
body[data-tabletop][data-world]:not([data-world='hall'])[data-stage='recommend'] .spread-option-copy strong {
  display:block;font:500 15px/1.65 var(--ml-sans,sans-serif);letter-spacing:.025em;color:var(--rc-text,#edf0ef);
}
body[data-tabletop][data-world]:not([data-world='hall'])[data-stage='recommend'] .spread-option-count {
  display:block;margin-top:3px;font:400 11px/1.7 var(--ml-sans,sans-serif);letter-spacing:.08em;color:var(--rc-muted,#c9d3d9);
}
body[data-tabletop][data-world]:not([data-world='hall'])[data-stage='recommend'] .spread-option-purpose {
  display:block;margin-top:8px;font:400 12px/1.85 var(--ml-sans,sans-serif);letter-spacing:0;color:var(--rc-muted,#c9d3d9);
}
body[data-tabletop][data-world]:not([data-world='hall'])[data-stage='recommend'] .tt-folio .spread-grid > button[aria-pressed='true'] {
  border-color:var(--rc-focus,#e4edf8);box-shadow:inset 0 0 0 1px var(--rc-line,#d9e4f178),0 4px 16px #02090d30;
}
@media(max-width:540px){
  body[data-tabletop][data-world]:not([data-world='hall'])[data-stage='recommend'] .tt-folio .spread-grid {grid-template-columns:minmax(0,1fr)}
  body[data-tabletop][data-world]:not([data-world='hall'])[data-stage='recommend'] .tt-folio .spread-grid > button {grid-template-columns:42px minmax(0,1fr);min-height:96px;padding:16px 18px;gap:16px}
}
