/* NEXUS side sheet, shared by /network (dock inside the map stage) and /bounties (drawer over the page).
   Desktop: a rounded panel on the right. Phone (<= 900px): a bottom sheet that slides up. Uses only site.css tokens. */
.sheet { z-index: 80; display: flex; flex-direction: column; background: var(--gloss), #07154A; border: 1px solid transparent; border-radius: 24px; box-shadow: 0 40px 90px -30px #000, inset 0 1px 0 rgba(255, 255, 255, .1); overflow: hidden; animation: sheetin .42s var(--ease) both }
.sheet.dock { position: absolute; top: 84px; right: 16px; bottom: 16px; width: 392px }
.sheet.side { position: fixed; top: 12px; right: 12px; bottom: 12px; width: min(500px, calc(100% - 24px)) }
.sheet-bg { position: fixed; inset: 0; z-index: 79; background: rgba(1, 6, 24, .72); opacity: 0; transition: opacity .25s } .sheet-bg.in { opacity: 1 }
@keyframes sheetin { from { opacity: 0; transform: translateX(26px) } }
.sheet-h { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 18px 18px 14px; flex: none; border-bottom: 1px solid var(--line) }
.sheet-id { display: flex; align-items: center; gap: 12px; min-width: 0 } .sheet-id > div { min-width: 0 }
.sheet-id h2 { font-size: 24px; letter-spacing: -.03em; overflow-wrap: anywhere; line-height: 1.08 } .sheet-id .tk { color: var(--c); font: 500 13px var(--mf) }
.sheet-b { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 16px 18px 20px; display: grid; gap: 18px; align-content: start; scrollbar-width: thin; scrollbar-color: rgba(91, 155, 255, .35) transparent }
.sheet-sec { display: grid; gap: 10px } .sheet-sec > h3 { font: 700 12px/1.2 var(--mf); letter-spacing: .08em; text-transform: uppercase; color: var(--mut2) }
.sheet-kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 10px } .sheet-kpis .kpi { padding: 12px 14px; border-radius: 14px; border: 1px solid transparent; background: rgba(255, 255, 255, .03) } .sheet-kpis .kpi dd { font-size: 20px } .sheet-kpis small { font-size: 12px; font-weight: 600 }
.sheet-acts, .sheet-f { display: flex; flex-wrap: wrap; gap: 10px } .sheet-acts .btn, .sheet-f .btn { flex: 1 1 150px }
.sheet-f { flex: none; padding: 14px 18px 16px; border-top: 1px solid var(--line); background: rgba(1, 9, 43, .35) } .sheet-f:empty { display: none }
.sheet-badges { display: flex; flex-wrap: wrap; gap: 6px }
@media (max-width: 900px) {
  .sheet.dock, .sheet.side { position: fixed; top: auto; left: 0; right: 0; bottom: 0; width: 100%; border-radius: 24px 24px 0 0; max-height: 64dvh; animation-name: sheetup; padding-bottom: env(safe-area-inset-bottom) }
  .sheet.side { max-height: 88dvh }
  .sheet::before { content: ''; display: block; flex: none; width: 44px; height: 4px; margin: 8px auto 0; border-radius: 4px; background: var(--line3) }
  .sheet-h { padding-top: 12px }
}
@keyframes sheetup { from { opacity: 0; transform: translateY(40px) } }
