/* corpus-paint.css — INDEX left · FOV white · clutch SMALL nest · webpage LARGE (<100L) */
html[data-paint] { height: 100%; background: #fff; }
html[data-paint] body {
  display: grid !important;
  grid-template-columns: 14rem minmax(11rem, 23.6%) minmax(0, 1.618fr) !important;
  grid-template-rows: auto minmax(0, 1fr) 7.2rem !important;
  grid-auto-rows: 0 !important;
  grid-auto-columns: 0 !important;
  height: 100dvh !important;
  max-height: 100dvh;
  overflow: hidden !important;
  margin: 0 !important;
  padding: 0 !important;
  background: #fff !important;
}
html[data-paint] body > script { display: none !important; }
html[data-paint] body > :not(#sn-self-sort):not(#sn-index):not(#sn-corpus):not(#sn-clutch-pane):not(#sn-bottom) { position: fixed !important; }
html[data-paint] body > #sn-tube-feet { left: 0; right: 0; bottom: 0; top: auto; z-index: 70; max-height: 22vh; overflow: auto; }
html[data-paint] body > #sn-self-sort {
  grid-column: 1 / -1; grid-row: 1;
  flex-wrap: nowrap !important; overflow-x: auto; overflow-y: hidden;
  max-height: 2.6rem; white-space: nowrap; background: #0f1114;
}
html[data-paint] body > #sn-index {
  grid-column: 1; grid-row: 2;
  overflow: auto; min-width: 0; min-height: 0; height: auto;
  margin: 0; border-radius: 0; position: static; top: auto; max-height: none;
  background: #071018; outline: 2px solid #86efac;
}
html[data-paint] body > #sn-clutch-pane {
  grid-column: 2; grid-row: 2;
  justify-self: stretch; align-self: start;
  height: 61.8%; max-height: 61.8%;
  overflow: auto; min-width: 0; min-height: 0;
  margin: .5rem .35rem 0 .4rem; border-radius: 0; position: static; top: auto;
  background: #071018; outline: 2px dashed #7dd3fc; box-shadow: 0 8px 24px #0004;
}
html[data-paint] body > #sn-corpus {
  grid-column: 3; grid-row: 2;
  overflow: auto; min-width: 0; min-height: 0;
  margin: .5rem .7rem .5rem .2rem; background: #071018; outline: 2px solid #86efac;
  display: flex; flex-direction: column;
}
html[data-paint] #sn-corpus > .gaia-nav { position: sticky; top: 0; z-index: 4; flex: 0 0 auto; }
html[data-paint] #sn-corpus .gaia-shell,
html[data-paint] #sn-corpus main,
html[data-paint] #sn-corpus article.zh-body {
  flex: 1; min-height: 0; max-width: none; width: 100% !important; margin: 0 !important; overflow: auto;
}
html[data-paint] #sn-corpus .gaia-hero,
html[data-paint] #sn-corpus .hero { padding: .6rem 0; }
html[data-paint] #sn-bard { margin: 0 0 .6rem; padding: .4rem 0 .6rem; border-bottom: 1px solid var(--border, #1e2228); }
html[data-paint] #sn-bard a { display: block; padding: .28rem 0; border-bottom: 1px solid var(--border, #1e2228); }
html[data-paint] #sn-bard small { color: var(--amber-dim, #7a5f3e); }
html[data-paint] body > main.gaia-shell {
  grid-column: 3; grid-row: 2;
  min-height: 0; overflow: hidden; height: 100%; margin: 0; padding: .382rem; border-radius: 0;
}
html[data-paint] body > #sn-bottom {
  grid-column: 1 / -1; grid-row: 3;
  display: grid; grid-template-columns: 7rem minmax(0, 1fr) auto;
  gap: .5rem; align-items: stretch;
  padding: .3rem .6rem; border-top: 1px solid var(--amber-dim, #7a5f3e);
  background: var(--bg-raised, #0f1114); min-height: 0; overflow: hidden;
}
html[data-paint] #sn-bottom b { color: var(--amber, #d4a574); letter-spacing: .08em; font-size: .72rem; align-self: center; }
html[data-paint] #sn-bottom #sn-bring { width: 100%; height: 6.4rem; background: #02060e; border: 1px solid var(--amber-dim, #7a5f3e); border-radius: 6px; cursor: crosshair; display: block; }
html[data-paint] #sn-index #sn-catalog a { display: block; padding: .32rem 0; border-bottom: 1px solid var(--border, #1e2228); }
html[data-paint] #sn-corpus[data-self] { outline-color: #fff; }
html[data-paint] #sn-clutch-pane[data-self='unject'] .investigation-game { font-size: .72rem; }
html[data-paint] #sn-clutch-pane #investigation-canvas,
html[data-paint] #sn-clutch-pane #game-canvas { width: 100% !important; max-height: 12rem; height: 12rem !important; }
@media (max-width: 900px) {
  html[data-paint], html[data-paint] body { height: auto !important; max-height: none !important; overflow: auto !important; overflow-x: hidden !important; background: #071018 !important; }
  html[data-paint] body { display: flex !important; flex-direction: column; }
  html[data-paint] body > #sn-corpus { order: 1 !important; overflow: visible !important; padding: 1rem 1.1rem 2.4rem; font-size: clamp(16px, 4.2vw, 19px); line-height: 1.55; margin: 0; outline: 0; }
  html[data-paint] body > #sn-index, html[data-paint] body > #sn-clutch-pane { order: 2; max-height: none; height: auto; outline: 0; }
  html[data-paint] article.zh-body { max-width: 42rem; overflow-wrap: anywhere; }
}
