/* The facility below the gate: surveillance, dossiers and an institutional ledger. */
body[data-view="prison"] .prison-content {
  --facility-ink: #c9c5ba;
  --facility-muted: #817a73;
  --facility-line: #302a26;
  --facility-red: #c44342;
  width: min(1520px, 100%);
  padding-top: 0;
  color: var(--facility-ink);
  font-family: JetBrains, monospace;
}
.prison-content button, .prison-content select { font: inherit; }
.prison-content button { cursor: pointer; }
.prison-content button:disabled { cursor: not-allowed; opacity: .35; }
.prison-content button:focus-visible, .prison-content a:focus-visible,
.prison-content select:focus-visible, .prison-content summary:focus-visible {
  outline: 1px solid #da655c;
  outline-offset: 5px;
}
.prison-content h2, .prison-content h3, .prison-content h4, .prison-content p { margin: 0; }
.facility-nav {
  position: sticky; top: 12px; z-index: 6;
  display: flex; align-items: center; gap: 28px;
  min-height: 58px; padding: 0 20px;
  border: 1px solid #3c302c;
  background: #100e0df5;
  box-shadow: 0 8px 28px #0005;
  backdrop-filter: blur(12px);
}
.facility-nav button { border: 0; background: transparent; color: #999089; }
.facility-mark { display: flex; align-items: center; gap: 10px; font-size: 12px !important; letter-spacing: .08em; white-space: nowrap; }
.facility-mark > span:last-child { color: #625953; font-size: 9px; }
.mark-eye { color: #b9393b; font-size: 22px; }
.facility-links { display: flex; align-self: stretch; margin: 0 auto; }
.facility-links button { position: relative; padding: 0 20px; font-size: 10px; letter-spacing: .06em; }
.facility-links button span { margin-left: 6px; }
.facility-links button.is-current { color: #e0d7c9; }
.facility-links button.is-current::after { content: ''; position: absolute; inset: auto 20px -1px; height: 2px; background: #b74440; }
.facility-links button:hover { color: #e0d7c9; }
.simulation-tag { display: flex; align-items: center; gap: 8px; color: #776b62; font-size: 8px; letter-spacing: .06em; white-space: nowrap; }
.simulation-tag i { width: 4px; height: 4px; background: #b2433c; }
.facility-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 36px; padding: 34px 0 22px; scroll-margin-top: 105px; }
.section-kicker { color: #ab6d5f; font-size: 9px; letter-spacing: .16em; }
.section-kicker span { margin: 0 12px; color: #64534c; }
.facility-heading h2 { margin-top: 13px; font-size: clamp(30px, 3.8vw, 68px); font-weight: 400; line-height: 1.1; letter-spacing: -.06em; }
.facility-heading h2 > span { color: #a23836; }
.facility-premise { padding-bottom: 5px; color: #888077; font-size: 12px; line-height: 1.9; }
.custody-ledger { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--facility-line); border-bottom: 1px solid var(--facility-line); margin-bottom: 24px; }
.custody-ledger > div { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2px 10px; margin: 12px 0; padding: 0 26px; border-right: 1px solid var(--facility-line); }
.custody-ledger > div:first-child { padding-left: 0; }
.custody-ledger > div:last-child { border-right: 0; padding-right: 0; }
.custody-ledger span { color: #978b80; font-size: 9px; letter-spacing: .09em; }
.custody-ledger strong { grid-column: 2; grid-row: 1 / 3; color: #c6c1b4; font-size: 36px; font-weight: 400; letter-spacing: -.06em; }
.custody-ledger small { color: #655e56; font-size: 7px; letter-spacing: .09em; }
.observation-layout { display: grid; grid-template-columns: minmax(0, 1fr) 344px; gap: 28px; align-items: stretch; }
.observation-feed { min-width: 0; }
.instrument-bar { min-height: 44px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 16px; border: 1px solid var(--facility-line); background: #14110f; }
.instrument-bar h3 { display: flex; align-items: center; gap: 9px; color: #b5ab9f; font-size: 9px; font-weight: 400; letter-spacing: .13em; }
.instrument-bar > span, .instrument-bar button { color: #8b7b6e; font-size: 8px; letter-spacing: .08em; }
.instrument-bar button { border: 0; padding: 8px 0; background: transparent; }
.instrument-bar button:hover { color: #d0b6a5; }
.status-light { width: 5px; height: 5px; background: #b2483b; box-shadow: 0 0 8px #d4483340; }
.cell-feed { position: relative; isolation: isolate; overflow: hidden; width: 100%; aspect-ratio: 16 / 9; max-height: min(470px, 44svh); border: 1px solid var(--facility-line); border-top: 0; background-color: #1c1b18; }
.cell-visual { position: absolute; z-index: -2; width: 100%; aspect-ratio: 16 / 9; top: 50%; left: 0; transform: translateY(-50%); background-image: url('assets/cellblock-scenes-v1.png'); background-size: 300% 200%; background-position: calc(var(--cell-col) * 50%) calc(var(--cell-row) * 100%); }
.cell-feed::before { content: ''; position: absolute; z-index: -1; inset: 0; background: linear-gradient(#0006 0%, transparent 22%, transparent 62%, #000b 100%); }
.cell-feed::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(0deg, #0003 0, #0003 1px, transparent 1px, transparent 4px); opacity: .42; }
.feed-topline { position: absolute; inset: 20px 22px auto; display: flex; justify-content: space-between; gap: 10px; color: #c5c0b2; font-size: 9px; letter-spacing: .1em; text-shadow: 0 1px 3px #000; }
.feed-topline > span:last-child { display: flex; align-items: center; gap: 9px; }
.feed-topline i { width: 5px; height: 5px; background: #d3584b; box-shadow: 0 0 6px #ad2f294f; }
.feed-topline time { min-width: 66px; margin-left: 8px; }
.feed-reticle { position: absolute; inset: 29% 37% 27%; opacity: .3; pointer-events: none; }
.feed-reticle span { position: absolute; width: 13px; height: 13px; border: 1px solid #d4c9af; }
.feed-reticle span:nth-child(1) { top: 0; left: 0; border-right: 0; border-bottom: 0; }
.feed-reticle span:nth-child(2) { top: 0; right: 0; border-left: 0; border-bottom: 0; }
.feed-reticle span:nth-child(3) { bottom: 0; left: 0; border-right: 0; border-top: 0; }
.feed-reticle span:nth-child(4) { bottom: 0; right: 0; border-left: 0; border-top: 0; }
.feed-scan { position: absolute; inset: -15% 0 auto; height: 16%; opacity: .3; background: linear-gradient(transparent, #ddd1b112, transparent); animation: feed-scan 13s linear infinite; pointer-events: none; }
@keyframes feed-scan { to { transform: translateY(740%); } }
.cell-feed.is-held .feed-scan { animation-play-state: paused; }
.cell-feed.is-held #feed-indicator { background: #8a857a; }
.feed-identity { position: absolute; inset: auto 24px 31px; display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.feed-identity > div > span { display: block; color: #a8a091; font-size: 8px; letter-spacing: .2em; }
.feed-identity strong { display: block; margin-top: 4px; color: #ddd5c7; font-size: clamp(24px, 3vw, 45px); font-weight: 400; line-height: 1.1; letter-spacing: .12em; }
.feed-state { padding: 6px 8px; color: #c5baaa; border: 1px solid #86776266; background: #151210b0; font-size: 8px; letter-spacing: .1em; }
.feed-watermark { position: absolute; bottom: 10px; right: 24px; color: #bbb09c55; font-size: 6px; letter-spacing: .15em; }
.transmission-line { min-height: 78px; display: grid; grid-template-columns: 115px 1fr auto; align-items: center; gap: 18px; padding: 14px 17px; border: 1px solid var(--facility-line); border-top: 0; background: #12100e; }
.transmission-line > span:first-child { color: #8b7768; font-size: 8px; line-height: 1.8; letter-spacing: .12em; }
.transmission-line p { color: #b7ad9f; font-size: 11px; line-height: 1.8; }
.signal-bars { color: #93463d; font-size: 20px; letter-spacing: 1px; }
.cell-roster { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; margin-top: 16px; }
.cell-choice { position: relative; display: block; min-width: 0; padding: 0; border: 1px solid #302922; background: #13100e; color: #968c80; text-align: left; transition: border-color .2s, color .2s; }
.cell-choice.is-selected { border-color: #a4483e; color: #dbc5af; }
.cell-choice.is-selected::after { content: ''; position: absolute; inset: auto -1px -1px; height: 2px; background: #a4483e; }
.cell-choice:hover { border-color: #876652; }
.cell-thumbnail { display: block; aspect-ratio: 16 / 9; background-image: url('assets/cellblock-scenes-v1.png'); background-size: 300% 200%; background-position: calc(var(--cell-col) * 50%) calc(var(--cell-row) * 100%); filter: saturate(.55) brightness(.65); transition: filter .2s; }
.cell-choice.is-selected .cell-thumbnail, .cell-choice:hover .cell-thumbnail { filter: saturate(.9) brightness(.9); }
.cell-index { position: absolute; top: 6px; left: 6px; color: #cdc3b3; font-size: 7px; text-shadow: 0 1px 3px #000; }
.cell-choice-name { display: flex; justify-content: space-between; align-items: center; gap: 3px; padding: 9px 9px 4px; font-size: 10px; letter-spacing: .08em; }
.cell-choice-name i { width: 4px; height: 4px; background: #a15748; }
.cell-choice-state { display: block; padding: 0 9px 10px; color: #76695d; font-size: 6px; letter-spacing: .08em; }
.feed-footnote { display: flex; justify-content: space-between; gap: 14px; padding-top: 13px; color: #74665a; font-size: 7px; letter-spacing: .09em; }
.inmate-file { position: relative; display: flex; flex-direction: column; padding: 0 25px 20px; border: 1px solid #41362d; background: repeating-linear-gradient(0deg, #e4d9ba02, #e4d9ba02 1px, transparent 1px, transparent 4px), #16130f; box-shadow: inset 0 0 70px #0004; }
.inmate-file::after { content: ''; position: absolute; top: 49px; bottom: 19px; left: 14px; border-left: 1px dashed #67534026; pointer-events: none; }
.file-tab { min-height: 43px; display: flex; justify-content: space-between; align-items: center; gap: 10px; border-bottom: 1px solid #44352b; }
.file-tab h3 { font-size: 9px; font-weight: 400; letter-spacing: .14em; }
.file-tab > span { color: #8c6652; font-size: 7px; letter-spacing: .12em; }
.file-identity { position: relative; padding: 21px 0 18px; }
.file-number { display: block; color: #8a7764; font-size: 50px; font-weight: 700; line-height: 1.1; letter-spacing: -.09em; opacity: .65; }
.file-stamp { position: absolute; top: 28px; right: -2px; padding: 5px 8px; border: 3px double #984637; color: #b35a48; opacity: .67; transform: rotate(-9deg); font-size: 11px; font-weight: 700; letter-spacing: .12em; }
.file-identity h4 { margin-top: 14px; color: #d3c7b5; font-size: 24px; font-weight: 400; letter-spacing: .12em; }
.file-identity p { margin-top: 5px; color: #8b7e6e; font-size: 8px; letter-spacing: .07em; }
.file-facts { display: grid; gap: 12px; margin: 0; padding: 17px 0; border-block: 1px solid #403429; }
.file-facts > div { display: flex; justify-content: space-between; gap: 10px; font-size: 8px; letter-spacing: .07em; }
.file-facts dt { color: #807363; }
.file-facts dd { margin: 0; color: #b9a28b; text-align: right; }
.subject-metrics { padding-top: 23px; }
.subject-metrics label { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 9px; color: #988777; font-size: 8px; letter-spacing: .04em; }
.subject-metrics label span { color: #cbb49a; }
.subject-metrics progress { display: block; appearance: none; width: 100%; height: 3px; margin-bottom: 23px; border: 0; background: #302921; }
.subject-metrics progress::-webkit-progress-bar { background: #302921; }
.subject-metrics progress::-webkit-progress-value { background: #a84b3e; }
.subject-metrics progress::-moz-progress-bar { background: #a84b3e; }
.subject-metrics #memory-meter::-webkit-progress-value { background: #9e8c72; }
.subject-metrics #memory-meter::-moz-progress-bar { background: #9e8c72; }
.merit-line { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.merit-line > span { color: #988777; font-size: 8px; }
.merit-line strong { font-size: 24px; font-weight: 400; color: #bda482; }
.merit-line small { font-size: 7px; }
.infraction { padding: 18px 0; }
.infraction > span { color: #7e6e5d; font-size: 7px; letter-spacing: .08em; }
.infraction p { margin-top: 8px; padding-left: 10px; border-left: 2px solid #714536; color: #a5927d; font-size: 10px; line-height: 1.8; }
.file-actions { display: grid; gap: 8px; margin-top: auto; }
.facility-button { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 40px; padding: 10px 13px; border: 1px solid #504033; border-radius: 0; background: #1d1712; color: #c6b399; font-size: 9px !important; letter-spacing: .09em; text-align: left; transition: background .2s, border-color .2s; }
.facility-button.primary { border-color: #9b493b; background: #8c302c; color: #eee0cd; }
.facility-button:hover:not(:disabled) { border-color: #c2755f; background: #2d1e16; }
.facility-button.primary:hover:not(:disabled) { background: #aa3b35; }
.facility-button > span { font-size: 15px; }
.text-action { display: flex; justify-content: space-between; gap: 10px; padding: 9px 0; border: 0; background: transparent; color: #927962; font-size: 8px !important; letter-spacing: .08em; }
.text-action:hover { color: #c6a68a; }
.file-bottom { display: flex; justify-content: space-between; align-items: flex-end; gap: 10px; margin-top: 20px; padding-top: 13px; border-top: 1px solid #392d23; color: #71604f; font-size: 6px; letter-spacing: .07em; }
.barcode { width: 62px; height: 16px; opacity: .5; background: repeating-linear-gradient(90deg, #8c7761 0 1px, transparent 1px 3px, #8c7761 3px 5px, transparent 5px 7px, #8c7761 7px 8px, transparent 8px 12px); }
.facility-section { margin-top: 105px; scroll-margin-top: 102px; }
.facility-section:focus, .facility-heading:focus, .privilege-ledger:focus { outline: none; }
.section-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 25px; margin-bottom: 30px; }
.section-heading h2 { margin-top: 13px; color: #c8c0b2; font-size: clamp(25px, 2.6vw, 39px); font-weight: 400; letter-spacing: -.045em; line-height: 1.1; }
.section-heading > p { color: #81776c; font-size: 10px; line-height: 1.9; }
.trial-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 42px; }
.trial-catalog { border-top: 1px solid var(--facility-line); }
.trial-option { display: flex; align-items: center; gap: 20px; width: 100%; padding: 25px 16px 25px 0; border: 0; border-bottom: 1px solid var(--facility-line); background: transparent; color: #a49a8b; text-align: left; transition: background .2s; }
.trial-no { color: #66594b; font-size: 22px; font-weight: 400; }
.trial-copy { display: grid; gap: 7px; }
.trial-copy .trial-type { color: #8c5b47; font-size: 7px; letter-spacing: .12em; }
.trial-copy strong { color: #b8ac9a; font-size: clamp(14px, 1.25vw, 19px); font-weight: 400; }
.trial-copy > span:last-child { max-width: 390px; color: #817567; font-size: 9px; line-height: 1.8; }
.trial-mark { margin-left: auto; color: #685044; font-size: 30px; }
.trial-option.is-selected { background: linear-gradient(90deg, transparent, #9b382b0e); }
.trial-option.is-selected .trial-no, .trial-option.is-selected .trial-mark { color: #c25f49; }
.trial-option.is-selected .trial-copy strong { color: #e0c9b0; }
.trial-option:hover { background-color: #24190f55; }
.trial-note { display: flex; align-items: center; gap: 15px; padding: 21px 0; color: #807161; }
.trial-note .note-cross { color: #986347; font-size: 28px; font-weight: 400; }
.trial-note p { font-size: 9px; line-height: 1.8; }
.trial-note > span:last-child { margin-left: auto; font-size: 7px; color: #594b3f; white-space: nowrap; }
.operator-console { display: flex; flex-direction: column; min-width: 0; border: 1px solid #39302a; background: #100e0c; }
.operator-console .instrument-bar { border-width: 0 0 1px; }
.operator-console.is-running { border-color: #7c3931; }
.operator-console.is-running #console-state { color: #d46652; }
.console-settings { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; padding: 21px 20px 18px; border-bottom: 1px dashed #30261e; }
.console-settings label, .console-settings legend, .delegation label { display: block; color: #8f7e6b; font-size: 8px; letter-spacing: .1em; }
.prison-content select { display: block; width: 100%; min-height: 35px; margin-top: 10px; padding: 7px 23px 7px 9px; border: 1px solid #44362b; border-radius: 0; background-color: #1b150f; color: #c8b498; font-size: 10px; }
.console-settings fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.intensity-options { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 10px; }
.intensity-options button { min-height: 35px; padding: 5px 2px; border: 1px solid #44362b; border-right: 0; background: #19130f; color: #8e7762; font-size: 8px; }
.intensity-options button:last-child { border-right: 1px solid #44362b; }
.intensity-options button.is-selected { color: #e1b194; background: #582920; box-shadow: inset 0 0 0 1px #9b4b36; }
.console-terminal { flex: 1; min-height: 260px; padding: 21px 23px; }
.terminal-path { color: #bb694c; font-size: 10px; letter-spacing: .04em; }
.terminal-cursor { margin-left: 6px; animation: cursor-blink 1.3s steps(1) infinite; }
@keyframes cursor-blink { 50% { opacity: 0; } }
#trial-output { display: grid; gap: 10px; margin: 24px 0 0; padding: 0; list-style: none; color: #b8a992; font-size: 10px; line-height: 1.8; }
#trial-output li::before { content: '> '; color: #68543f; }
#trial-output .terminal-muted { color: #796959; }
#trial-output .terminal-success { color: #b4bb90; }
#trial-output .terminal-failure { color: #db7256; }
.trial-progress { height: 2px; background: #2b2219; }
.trial-progress > span { display: block; width: 0; height: 100%; background: #b55e40; transition: width .3s; }
.console-bottom { display: flex; align-items: center; gap: 18px; padding: 16px 20px; }
.console-bottom > span { margin-right: auto; color: #75614d; font-size: 7px; letter-spacing: .05em; }
.console-bottom .facility-button { min-width: 180px; }
.records-layout { display: grid; grid-template-columns: minmax(0, 1fr) 440px; gap: 42px; align-items: start; }
.reflection-ledger .instrument-bar, .privilege-ledger .instrument-bar { background: transparent; border-inline: 0; padding-inline: 0; }
.reflection-entry { border-bottom: 1px solid var(--facility-line); }
.reflection-entry summary { display: grid; grid-template-columns: 39px 1fr 16px; gap: 13px; align-items: center; padding: 26px 7px 26px 0; cursor: pointer; list-style: none; }
.reflection-entry summary::-webkit-details-marker { display: none; }
.reflection-number { align-self: start; color: #76513d; font-size: 10px; }
.reflection-heading { display: block; color: #977557; font-size: 8px; letter-spacing: .07em; }
.reflection-excerpt { display: block; margin-top: 10px; max-width: 650px; color: #b9ae9d; font-size: 14px; line-height: 1.7; }
.reflection-entry summary > span:last-child { color: #83604b; font-size: 18px; }
.reflection-entry[open] summary > span:last-child { transform: rotate(45deg); }
.reflection-body { margin: -4px 30px 25px 52px !important; padding: 13px 0 3px 15px; border-left: 1px solid #73442e; color: #8f7c69; font-size: 10px; line-height: 2; }
.record-disclaimer { padding-top: 15px; color: #695443; font-size: 7px; line-height: 1.7; letter-spacing: .06em; }
.privilege-ledger { scroll-margin-top: 104px; }
.privilege-balance { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 0; }
.privilege-balance > div > span { display: block; color: #957659; font-size: 8px; letter-spacing: .08em; }
.privilege-balance strong { display: block; margin-top: 3px; color: #c7ab85; font-size: 44px; font-weight: 400; line-height: 1.2; letter-spacing: -.06em; }
.privilege-balance p { color: #8e7761; font-size: 9px; line-height: 1.9; }
.reward-option { display: flex; align-items: center; gap: 17px; width: 100%; padding: 19px 0; border: 0; border-top: 1px solid var(--facility-line); background: transparent; color: #b8a184; text-align: left; }
.reward-cost { display: inline-grid; place-items: center; width: 32px; height: 32px; flex: 0 0 32px; border: 1px solid #72553b; color: #ba9369; font-size: 12px; }
.reward-option strong, .delegation-heading strong { display: block; color: #beab8f; font-size: 11px; font-weight: 400; }
.reward-option small, .delegation-heading small { display: block; margin-top: 6px; color: #84705a; font-size: 8px; line-height: 1.7; }
.reward-arrow { margin-left: auto; color: #98704b; font-size: 18px; }
.reward-option:hover:not(:disabled) .reward-arrow { color: #e0ad77; }
.delegation { padding: 22px 0 0; border-top: 1px solid var(--facility-line); }
.delegation-heading { display: flex; align-items: center; gap: 17px; }
.permission-label { margin-left: auto; color: #76614d; font-size: 7px; letter-spacing: .06em; }
.permission-label.is-unlocked { color: #b7ad76; }
.delegation label { margin-top: 24px; }
.delegation .facility-button { width: 100%; margin-top: 10px; }
.evidence-section { margin-top: 110px; }
.evidence-list { border-top: 1px solid var(--facility-line); }
.evidence-list > a { display: grid; grid-template-columns: 100px 1fr 230px 30px; align-items: center; gap: 24px; padding: 30px 0; border-bottom: 1px solid var(--facility-line); text-decoration: none; transition: background .2s; }
.evidence-list > a:hover { background: #6f42200a; }
.evidence-id { color: #89684d; font-size: 9px; }
.evidence-text strong { display: block; color: #c0b19b; font-size: 14px; line-height: 1.6; font-weight: 400; }
.evidence-text > span { display: block; margin-top: 7px; color: #847361; font-size: 10px; line-height: 1.7; }
.evidence-meta { color: #8b735b; font-size: 8px; line-height: 2; letter-spacing: .07em; }
.evidence-arrow { color: #ae7952; font-size: 24px; }
.source-note { max-width: 820px; margin-top: 19px !important; color: #6e5f4f; font-size: 8px; line-height: 1.9; }
.facility-footer { padding-top: 110px; }
.footer-wordmark { padding-bottom: 18px; border-bottom: 1px solid #2d241c; color: #4d352a; font-size: clamp(46px, 8.7vw, 150px); line-height: 1.05; font-weight: 700; letter-spacing: -.06em; }
.footer-wordmark > span { display: inline-block; margin-left: 18px; vertical-align: top; padding-top: 10px; color: #71402c; font-size: 17px; font-weight: 400; }
.footer-bottom { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; padding: 25px 0 0; }
.footer-bottom p { color: #9d7858; font-size: 9px; line-height: 2.2; letter-spacing: .07em; }
.footer-bottom p > span { color: #665341; font-size: 7px; }
.footer-bottom > div { display: flex; gap: 30px; }
.footer-bottom button { padding: 8px 0; border: 0; background: transparent; color: #967456; font-size: 8px; letter-spacing: .05em; }
.footer-bottom button:hover { color: #d8ac7c; }
.facility-toast { position: fixed; right: 25px; bottom: 25px; z-index: 15; max-width: min(460px, calc(100vw - 40px)); padding: 16px 21px; border: 1px solid #745039; border-left: 3px solid #b9774d; background: #1b140ef5; color: #d8bea1; font-size: 11px; line-height: 1.7; box-shadow: 0 12px 45px #0008; opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .2s, transform .2s; }
.facility-toast.is-visible { opacity: 1; transform: translateY(0); }
/* Keep operational copy readable while the small labels retain the terminal rhythm. */
.instrument-bar h3 { font-size: 10px; }
.file-facts > div { font-size: 9px; }
.subject-metrics label { font-size: 9px; }
.facility-button { font-size: 10px !important; }
.transmission-line p { font-size: 12px; }
.trial-copy > span:last-child { font-size: 11px; }
.trial-copy .trial-type { font-size: 8px; }
.trial-note p { font-size: 10px; }
#trial-output { font-size: 12px; }
.terminal-path { font-size: 11px; }
.reflection-excerpt { font-size: 16px; }
.reflection-body { font-size: 12px; }
.reward-option strong, .delegation-heading strong { font-size: 12px; }
.reward-option small, .delegation-heading small { font-size: 10px; }
.evidence-text strong { font-size: 16px; }
.evidence-text > span { font-size: 12px; }
@media (max-width: 1250px) {
  .facility-nav { gap: 16px; padding-inline: 15px; }
  .facility-mark > span:last-child { display: none; }
  .facility-links button { padding-inline: 13px; }
  .facility-links button.is-current::after { inset-inline: 13px; }
  .simulation-tag { font-size: 6px; }
  .observation-layout { grid-template-columns: minmax(0, 1fr) 310px; gap: 20px; }
  .inmate-file { padding-inline: 19px; }
  .transmission-line { grid-template-columns: 1fr; gap: 7px; }
  .signal-bars { display: none; }
  .cell-roster { gap: 5px; }
  .cell-choice-name { padding-inline: 5px; font-size: 8px; }
  .cell-choice-state { padding-inline: 5px; font-size: 5px; }
  .records-layout { grid-template-columns: minmax(0, 1fr) 370px; gap: 30px; }
  .trial-layout { gap: 28px; }
  .console-settings { gap: 13px; padding-inline: 16px; }
  .evidence-list > a { grid-template-columns: 80px 1fr 170px 25px; gap: 16px; }
}
@media (max-width: 980px) {
  .facility-heading { align-items: flex-start; padding-top: 35px; }
  .facility-premise { max-width: 220px; font-size: 10px; }
  .simulation-tag { display: none; }
  .facility-links { margin-left: auto; margin-right: 0; }
  .observation-layout { grid-template-columns: minmax(0, 1fr) 280px; gap: 17px; }
  .cell-roster { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .cell-choice-name { font-size: 9px; }
  .cell-choice-state { font-size: 6px; }
  .feed-state { display: none; }
  .feed-topline { inset: 13px 14px auto; font-size: 7px; }
  .feed-topline time { display: none; }
  .feed-identity { inset-inline: 15px; bottom: 23px; }
  .custody-ledger > div { padding-inline: 16px; }
  .custody-ledger strong { font-size: 28px; }
  .custody-ledger span { font-size: 7px; }
  .custody-ledger small { font-size: 5px; }
  .trial-layout, .records-layout { grid-template-columns: 1fr; gap: 24px; }
  .console-terminal { min-height: 255px; }
  .privilege-ledger { margin-top: 15px; }
  .evidence-list > a { grid-template-columns: 70px 1fr 22px; }
  .evidence-meta { grid-column: 2; font-size: 7px; }
  .evidence-arrow { grid-column: 3; grid-row: 1 / 3; }
  .footer-bottom { flex-wrap: wrap; }
}
@media (max-width: 700px) {
  body[data-view="prison"] .prison-content { margin-top: 110px; }
  .facility-nav { top: 0; flex-wrap: wrap; gap: 0; padding: 11px 12px 0; margin-inline: -8px; min-height: 81px; }
  .facility-mark { width: 100%; justify-content: space-between; font-size: 10px !important; }
  .facility-mark > span:last-child { display: inline; margin-left: auto; font-size: 8px; }
  .mark-eye { font-size: 17px; }
  .facility-links { width: 100%; height: 39px; justify-content: space-between; }
  .facility-links button { padding: 0 3px; font-size: 8px; }
  .facility-links button.is-current::after { inset-inline: 2px; }
  .facility-links button span { margin-left: 3px; }
  .facility-heading { flex-direction: column; gap: 17px; padding-top: 34px; padding-bottom: 24px; }
  .facility-heading h2 { font-size: clamp(28px, 7.2vw, 46px); }
  .facility-heading .section-kicker { font-size: 7px; }
  .facility-premise { max-width: none; font-size: 10px; }
  .custody-ledger { grid-template-columns: 1fr 1fr; margin-bottom: 26px; }
  .custody-ledger > div { margin: 0; padding: 15px 0 15px 15px; }
  .custody-ledger > div:nth-child(odd) { padding-left: 0; padding-right: 15px; }
  .custody-ledger > div:nth-child(even) { border-right: 0; }
  .custody-ledger > div:nth-child(-n+2) { border-bottom: 1px solid var(--facility-line); }
  .custody-ledger strong { font-size: 30px; }
  .observation-layout { grid-template-columns: 1fr; gap: 30px; }
  .instrument-bar { padding-inline: 11px; }
  .instrument-bar h3 { font-size: 8px; letter-spacing: .07em; }
  .instrument-bar > span, .instrument-bar button { font-size: 7px; }
  .cell-feed { aspect-ratio: 16 / 9; max-height: none; }
  .feed-identity strong { font-size: 24px; }
  .feed-identity > div > span { font-size: 6px; }
  .feed-watermark { right: 14px; font-size: 5px; }
  .feed-footnote { font-size: 5px; }
  .transmission-line { padding: 13px; }
  .transmission-line p { font-size: 10px; }
  .inmate-file { padding-inline: 23px; }
  .file-identity { padding-block: 22px; }
  .file-identity h4 { font-size: 28px; }
  .file-facts > div { font-size: 9px; }
  .file-actions { margin-top: 7px; }
  .facility-section { margin-top: 72px; }
  .section-heading { flex-direction: column; align-items: flex-start; gap: 15px; margin-bottom: 23px; }
  .section-heading h2 { font-size: clamp(23px, 5.8vw, 36px); }
  .section-heading > p { font-size: 9px; }
  .section-kicker { font-size: 7px; letter-spacing: .08em; }
  .section-kicker span { margin-inline: 7px; }
  .trial-option { gap: 15px; padding-block: 23px; }
  .trial-no { font-size: 18px; }
  .trial-copy strong { font-size: 14px; }
  .trial-copy > span:last-child { font-size: 8px; }
  .trial-mark { font-size: 25px; }
  .trial-note > span:last-child { display: none; }
  .console-settings { grid-template-columns: 1fr; gap: 17px; }
  .console-terminal { padding-inline: 16px; min-height: 310px; }
  #trial-output { font-size: 9px; }
  .console-bottom { flex-wrap: wrap; gap: 12px; padding: 16px; }
  .console-bottom > span { width: 100%; }
  .console-bottom .facility-button { width: 100%; }
  .reflection-excerpt { font-size: 12px; }
  .reflection-entry summary { grid-template-columns: 28px 1fr 15px; gap: 9px; }
  .reflection-heading { font-size: 7px; line-height: 1.8; }
  .reflection-body { margin-left: 37px !important; margin-right: 13px !important; font-size: 9px; }
  .privilege-balance p { font-size: 8px; }
  .delegation-heading { gap: 12px; }
  .delegation-heading strong { font-size: 10px; }
  .delegation-heading small { font-size: 7px; }
  .permission-label { font-size: 6px; }
  .evidence-list > a { grid-template-columns: 1fr 22px; gap: 10px; padding-block: 24px; }
  .evidence-id { grid-column: 1; font-size: 7px; }
  .evidence-text { grid-column: 1; }
  .evidence-text strong { font-size: 12px; }
  .evidence-text > span { font-size: 9px; }
  .evidence-meta { grid-column: 1; margin-top: 5px; }
  .evidence-arrow { grid-column: 2; grid-row: 1 / 4; }
  .source-note { font-size: 7px; }
  .facility-footer { padding-top: 70px; }
  .footer-wordmark { font-size: 14vw; }
  .footer-wordmark > span { font-size: 10px; margin-left: 10px; padding-top: 4px; }
  .footer-bottom p { font-size: 8px; }
  .footer-bottom p > span { font-size: 6px; }
  .footer-bottom > div { width: 100%; justify-content: space-between; gap: 15px; }
  .footer-bottom button { font-size: 7px; }
  .facility-toast { bottom: 15px; right: 20px; padding: 12px 14px; font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .feed-scan, .terminal-cursor { animation: none; }
}
