.scene-primary { display:flex; gap:8px; min-width:0; }
.scene-overflow { position:relative; align-self:stretch; }
.scene-overflow summary { display:grid; place-items:center; width:44px; height:100%; min-height:44px; cursor:pointer; background:#203f39; border:1px solid #719d88; border-radius:4px; list-style:none; }
.scene-overflow summary::-webkit-details-marker { display:none; }
.scene-more-actions { position:absolute; bottom:calc(100% + 8px); right:0; display:grid; gap:6px; width:230px; max-height:min(50vh,340px,var(--scene-menu-height,340px)); overflow:auto; padding:8px; background:#172c29; border:1px solid #719d88; border-radius:4px; box-shadow:0 6px 18px #0005; }
.scene-overflow:not([open]) .scene-more-actions { display:none; }
.scene-tools .scene-more-actions .scene-action { width:100%; min-width:0; }
.world:has(.scene-overflow[open]) #sceneCalendar { visibility:hidden; }
.continuing-chapters { padding:12px 0; border-bottom:1px solid #46645b; }
.continuing-chapters details { padding:10px 0; }
.continuing-chapters summary { cursor:pointer; overflow-wrap:anywhere; }
.continuing-chapters ol { padding-left:20px; }
.continuing-chapters li { padding:6px 0; }
.continuing-chapters li.complete { color:#9bcb9c; }
.goal-blocked { color:#e5c278; }
.resume-hint { display:flex; align-items:center; gap:8px; padding:8px 12px; border-bottom:1px solid #4d7766; background:#17382f; }
.resume-hint[hidden] { display:none; }
.resume-hint>div { flex:1; min-width:0; }
.resume-hint strong,.resume-hint span,.resume-hint small { display:block; overflow-wrap:anywhere; }
.resume-hint strong { font-size:13px; }.resume-hint span,.resume-hint small { font-size:12px; }
@media(max-width:600px) and (orientation:portrait) {
  .bar-name { width:66px; flex:0 0 66px; }
  .stat-bar { min-width:42px; }
  .world.life-interior { --bar-h:68px; }
  .life-interior .bar { height:var(--bar-h); flex-wrap:nowrap; align-content:center; }
  .life-interior .hotbar { display:none; }
  .life-interior .bar-right { min-width:0; }
  .life-interior .status-chips { flex:0 1 70px; }
  .life-interior .sleep-btn { padding:0 6px; }
  .scene-tools { flex-wrap:nowrap; overflow:visible; align-items:stretch; bottom:calc(var(--bar-h) + 12px); }
  .scene-primary { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); flex:1; gap:6px; }
  .scene-tools .scene-primary .scene-action { min-width:0; max-width:100%; padding:6px; grid-template-columns:18px minmax(0,1fr); gap:3px; }
  .scene-primary .scene-action span { white-space:normal; overflow-wrap:anywhere; }
  .scene-overflow { flex:0 0 40px; }
  .scene-overflow summary { width:40px; }
  .scene-nav { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); right:8px; max-width:none; }
  .scene-nav .scene-tab { justify-content:center; min-width:0; padding:6px 2px; }
  .scene-nav .scene-tab span { position:absolute; width:1px; height:1px; padding:0; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
  .scene-nav .scene-tab:focus-visible { outline:2px solid #e8d785; }
  .resume-hint { padding:6px 8px; }
}
