/* Desktop layout: side column beside a full-height picture. */
/* desktop side column (wide landscape screens): live notebook, pocket and buttons beside a full-height picture */
#side { display: none; }
@media (min-width: 1000px) and (min-aspect-ratio: 5/4) {
  #app { grid-template-columns: minmax(0, 1fr) 360px; grid-template-rows: auto minmax(0, 1fr) auto auto; grid-template-areas: "bar bar" "view side" "view inv" "view nav"; }
  .bar { grid-area: bar; } #view { grid-area: view; } .inv { grid-area: inv; } .bottom { grid-area: nav; }
  #side { grid-area: side; display: flex; flex-direction: column; min-height: 0; background: var(--panel); border-left: 1px solid var(--line); }
  .inv, .bottom { border-left: 1px solid var(--line); }
  .bottom { grid-template-columns: 1fr 1fr; }
  .bottom .primary { grid-column: 1 / -1; }
  .side-head { display: flex; align-items: center; gap: 10px; padding: 12px 16px 10px; border-bottom: 1px solid var(--line); font-family: var(--f-display); font-weight: 800; font-size: 22px; text-transform: uppercase; letter-spacing: .02em; }
  .side-head span { flex: 1; }
  .side-head .fbtn { min-height: 34px; padding: 0 12px; font-size: 13px; border-color: var(--line); color: var(--ink); }
  .side-head .fbtn:disabled { opacity: .35; }
  .side-body { overflow-y: auto; padding: 12px 16px 16px; display: flex; flex-direction: column; gap: 14px; }
  .side-body .lbl { color: var(--muted); margin-bottom: 6px; }
  .side-sus { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
  .side-sus button { position: relative; padding: 6px 2px; border-radius: 8px; border: 1px solid var(--line); background: var(--panel-2); display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 0; }
  .side-sus .L { font-family: var(--f-display); font-weight: 800; font-size: 20px; line-height: 1; }
  .side-sus .N { font-size: 11px; color: var(--muted); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .side-sus button.struck { opacity: .4; text-decoration: line-through; }
  .side-sus .flag { position: absolute; top: 2px; right: 3px; width: 13px; height: 13px; border-radius: 50%; background: var(--bad); color: #fff; font: 700 10px/13px var(--f-body); }
  .side-clues { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
  .side-clues li { padding: 8px 10px; border-radius: 6px; background: var(--panel-2); border-left: 3px solid var(--line); font-size: 13px; line-height: 1.4; color: var(--muted); }
  .side-clues li b { display: block; color: var(--ink); font-size: 13.5px; }
  .side-clues li.ded { border-left-color: var(--ember); }
  .side-clues li.new { animation: pop .4s ease-out; border-left-color: var(--ember); }
  .side-empty { font-size: 13.5px; color: var(--muted); line-height: 1.45; }
  #partner { left: 16px; right: 376px; }
  /* briefing (start card, cold open): no side column, the scene gets the whole width */
  .story #app { grid-template-columns: minmax(0, 1fr) 0; }
  .story #side, .story .inv, .story .bottom { display: none; }
  #sheet { left: 50%; right: auto; width: min(760px, 100%); transform: translate(-50%, calc(100% + 24px)); }
  #sheet.show { transform: translate(-50%, 0); }
}
[data-theme="cozy"] .side-head { text-transform: none; font-weight: 600; }
[data-theme="cozy"] .side-sus button, [data-theme="cozy"] .side-clues li { border-radius: 14px; background: #fff; }
