:root {
  color-scheme: light;
  --font: "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", sans-serif;
  --song: SimSun, "Songti SC", "Noto Serif CJK SC", serif;
  --digits: Consolas, "SFMono-Regular", monospace;
  --paper: #f2f2f2;
  --surface: #ffffff;
  --quiet: #f6f6f6;
  --line: #d0d0d0;
  --ink: #282625;
  --muted: #5d5957;
  --brand: #8b1e1b;
  --nav: #731815;
  --nav-active: #a6372e;
  --link: #1b4573;
  --focus: #1b4573;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scrollbar-color: #aaa39e #f1efed; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 14px/1.55 var(--font); }
body:is([data-view="raw"], [data-view="ending"]) { overflow: hidden; background: #131110; }
h1, h2, h3, p, figure, dl, dd, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; color: inherit; }
button:disabled { cursor: default; opacity: .52; }
:where(button, a, summary, input):focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
h1:focus, .raw-viewer:focus, .chat-ident h2:focus { outline: none; }
input { color: inherit; caret-color: var(--brand); }
::selection { color: #fff; background: var(--brand); }
:where(time, .item-number, .hotline, .page-meta, .photo-stamp, output) { font-variant-numeric: tabular-nums; }
.frame { width: min(1120px, calc(100% - 40px)); margin-inline: auto; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.text-button { padding: 0; border: 0; background: transparent; text-underline-offset: .22em; }
.text-button:hover { text-decoration: underline; }
.icon-close { position: relative; flex: none; width: 34px; height: 34px; background: transparent; border: 0; }
.icon-close::before, .icon-close::after {
  position: absolute; top: 50%; left: calc(50% - 7px);
  width: 14px; height: 1px; background: currentColor; content: ""; transform: rotate(45deg);
}
.icon-close::after { transform: rotate(-45deg); }
.icon-close:hover { background: rgb(127 127 127 / .18); }

.utility { border-bottom: 1px solid var(--line); background: var(--quiet); color: var(--muted); font-size: 12px; }
.utility-row, .utility-welcome { display: flex; align-items: center; gap: 13px; }
.utility-row { min-height: 30px; justify-content: space-between; }
.utility-welcome button { color: var(--link); white-space: nowrap; }
.hotline { white-space: nowrap; }
.hotline b { margin-left: 5px; color: var(--brand); }
.utility-settings { display: flex; align-items: center; gap: 12px; }
.scare-toggle { min-height: 30px; flex: none; white-space: nowrap; font-size: 12px; text-decoration: underline; text-underline-offset: .2em; }
.utility .scare-toggle[aria-pressed="true"] { color: var(--brand); }
.mast { background: var(--surface); }
.mast-row { display: grid; grid-template-columns: auto minmax(260px, 1fr) auto; align-items: center; gap: clamp(23px, 4.2vw, 65px); min-height: 103px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--brand); white-space: nowrap; }
.community-mark {
  display: grid; align-content: center; flex-shrink: 0;
  width: 53px; height: 53px;
  border: 1px solid #652520; border-radius: 1px; outline: 1px solid #e7bb9a; outline-offset: -5px;
  background: var(--nav); color: #ffeacf;
  font: 700 16px/1.08 var(--song); text-align: center; letter-spacing: .09em;
}
.brand strong { display: block; font: 700 35px/1.05 var(--song); letter-spacing: .07em; }
.brand small { display: block; margin-top: 6px; color: var(--muted); font-size: 12px; letter-spacing: .055em; }
.site-search { min-width: 0; }
.search-box { display: grid; grid-template-columns: minmax(0, 1fr) auto; border: 1px solid var(--brand); min-height: 36px; background: var(--surface); }
.search-box input { width: 100%; min-width: 0; padding: 6px 10px; border: 0; background: transparent; }
.search-box input::placeholder { color: var(--muted); }
.search-box input:focus-visible { outline-offset: -3px; }
.search-box button { min-width: 78px; border: 0; border-left: 1px solid var(--nav); background: var(--brand); color: #fff; font-weight: 700; }
.search-box button:hover { background: var(--nav-active); }
.hotwords { display: flex; align-items: baseline; flex-wrap: wrap; gap: 3px 10px; margin-top: 6px; color: var(--muted); font-size: 12px; }
.hotwords a { color: var(--link); white-space: nowrap; }
.hotwords a:hover { text-decoration: underline; text-underline-offset: .2em; }
.hotwords .hot-query { color: var(--brand); font-weight: 700; }
.location { display: grid; gap: 1px; justify-items: end; white-space: nowrap; }
.location b { font: 700 16px/1.3 var(--song); }
.location button { color: var(--link); font-size: 12px; }
.nav-rule { border-block: 1px solid #651410; background: linear-gradient(var(--brand), var(--nav)); color: #fff2e8; }
.navigation { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); min-height: 39px; }
.navigation a { display: grid; place-items: center; min-height: 39px; border-right: 1px solid #ffffff25; font-size: 14px; font-weight: 700; white-space: nowrap; }
.navigation a:first-child { border-left: 1px solid #ffffff25; }
.navigation a:hover, .navigation a[aria-current] { background: var(--nav-active); }
.navigation a[aria-current] { box-shadow: inset 0 -2px #e5b48a; color: #fff; }
.navigation a:focus-visible { outline-color: #ffe2a6; outline-offset: -4px; }
.ticker { border-bottom: 1px solid var(--line); background: var(--surface); color: var(--muted); }
.ticker-row { display: flex; align-items: stretch; min-height: 32px; overflow: hidden; }
.ticker-label { display: grid; place-items: center; padding: 0 12px 0 0; color: var(--brand); font-size: 12px; white-space: nowrap; }
.ticker-window { display: flex; flex: 1; align-items: center; overflow: hidden; border-left: 1px solid var(--line); }
.ticker-track { display: flex; width: max-content; flex: none; animation: ticker 40s linear infinite; }
.ticker-set { display: flex; flex-shrink: 0; gap: 43px; padding: 0 21px 0 12px; white-space: nowrap; font-size: 12px; }
.ticker-set span::before { display: inline-block; width: 4px; height: 4px; margin: 0 7px 2px 0; background: var(--brand); content: ""; }
.ticker:hover .ticker-track { animation-play-state: paused; }
@keyframes ticker { to { transform: translateX(-50%); } }

.portal { padding-bottom: 22px; }
.crumb { display: flex; align-items: baseline; flex-wrap: wrap; gap: 3px 8px; padding: 10px 0 9px; color: var(--muted); font-size: 12px; }
.crumb a { color: var(--link); }
.crumb a:hover { text-decoration: underline; }
.portal-grid { display: grid; grid-template-columns: minmax(0, 1fr) 264px; align-items: start; gap: 16px; }
.portal-main, .portal-side { min-width: 0; }
.portal-main { padding: 12px 14px 15px; border: 1px solid var(--line); background: var(--surface); }
.portal-side { display: grid; gap: 12px; }
.page-heading { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 5px 12px; padding-bottom: 8px; border-bottom: 2px solid var(--brand); }
.page-heading h1 { color: var(--brand); font: 700 clamp(22px, 3vw, 29px)/1.2 var(--song); overflow-wrap: anywhere; }
.page-heading h1 .item-number { margin-right: 8px; color: inherit; font: 700 .7em/1 var(--digits); }
.page-heading > time { color: var(--muted); font-size: 12px; }
.page-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; margin: 7px 0 11px; color: var(--muted); font-size: 12px; }
.page-meta > span + span { border-left: 1px solid var(--line); padding-left: 12px; }
.lead-record { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); background: var(--quiet); }
.lead-photo { display: block; position: relative; min-height: 140px; overflow: hidden; background: #4d4644; }
.lead-photo img { position: absolute; width: 100%; height: 100%; object-fit: cover; object-position: center 57%; }
.lead-photo span { position: absolute; inset: auto 0 0; padding: 3px 8px; background: #191617c9; color: #fff2e6; font-size: 11px; }
.lead-photo:hover span { text-decoration: underline; }
.lead-copy { display: grid; align-content: center; gap: 8px; padding: 12px 17px; min-width: 0; }
.lead-copy h2 { color: var(--brand); font: 700 clamp(18px, 2.1vw, 23px)/1.22 var(--song); }
.lead-copy p { color: var(--muted); font-size: 13px; }
.lead-copy a { width: fit-content; color: var(--link); text-decoration: underline; text-underline-offset: .24em; font-size: 13px; font-weight: 700; }

.voice { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 9px; border: 1px solid #dcd0c0; padding: 8px 10px; background: #fbf5e9; color: #4d3728; }
.lead-record + .voice { margin-top: 11px; }
.voice-avatar { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 2px; background: #8a4631; color: #fff6df; font: 700 13px/1 var(--song); }
.voice-top { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 9px; min-height: 22px; }
.voice-top strong { font-size: 13px; }
.voice-play { display: inline-flex; align-items: center; justify-content: flex-start; gap: 6px; min-width: 110px; min-height: 30px; padding: 2px 9px; border: 1px solid #b99f83; border-radius: 4px; background: #f3e7d2; color: #442b21; font-size: 12px; }
.voice-play:hover { background: #e8d8bd; }
.voice-play[aria-pressed="true"] { border-color: #8d6546; background: #ebd9b7; }
.voice--ending .voice-play { min-width: 0; }
.voice-wave { display: inline-flex; align-items: center; gap: 2px; width: 19px; height: 15px; }
.voice-wave i { width: 2px; height: 7px; border-radius: 1px; background: currentColor; }
.voice-wave i:first-child { height: 4px; }
.voice-wave i:nth-child(3) { height: 11px; }
.voice-wave i:nth-child(4) { height: 13px; }
.voice-play[aria-pressed="true"] .voice-wave i { animation: voice-wave .69s ease-in-out var(--voice-delay, 0s) infinite alternate; }
.voice-wave i:nth-child(2) { --voice-delay: -.45s; }
.voice-wave i:nth-child(3) { --voice-delay: -.19s; }
.voice-wave i:nth-child(4) { --voice-delay: -.57s; }
@keyframes voice-wave { from { transform: scaleY(.37); } to { transform: scaleY(1.13); } }
#voice-seconds { margin-left: auto; font-variant-numeric: tabular-nums; }
.voice-toggle { margin-left: auto; color: inherit; font-size: 12px; }
.voice p { margin-top: 4px; font-size: 13px; line-height: 1.65; }
.voice-line--reading { background: #e9d6ac; color: #35281d; }
.voice-transcript--altered { color: #803124; }
.voice-transcript--altered .voice-line--reading { background: #ecd3c2; color: #711d18; }
.voice .voice-status { font-size: 12px; }

.inventory-panel, .board, .side-panel, .article-panel { border: 1px solid var(--line); background: var(--surface); }
.inventory-panel, .board, .article-panel { margin-top: 12px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 6px 8px; padding: 8px 10px; border-bottom: 1px solid var(--line); background: var(--quiet); }
.section-head h2 { color: var(--brand); font: 700 16px/1.3 var(--song); }
.section-head > a, .section-head > span { flex-shrink: 0; color: var(--muted); font-size: 12px; }
.section-head a { color: var(--link); }
.section-head a:hover { text-decoration: underline; }
.inventory-panel > .section-head { align-items: center; flex-wrap: wrap; padding-block: 5px; }
.inventory-controls { display: flex; flex-wrap: wrap; gap: 2px 3px; }
.inventory-controls button { border: 1px solid transparent; padding: 3px 7px; background: transparent; color: var(--muted); font-size: 12px; }
.inventory-controls button:hover, .inventory-controls button[aria-pressed="true"] { border-color: var(--line); background: var(--surface); color: var(--brand); }
.inventory-count { margin-left: auto; }
.inventory-columns, .inventory-link { display: grid; grid-template-columns: 70px minmax(0, 1fr) 103px 154px; align-items: center; gap: 10px; padding-inline: 10px; }
.inventory-columns { height: 27px; background: var(--quiet); color: var(--muted); font-size: 12px; }
.inventory-link { position: relative; border-top: 1px solid var(--line); padding-block: 7px; min-height: 66px; }
.inventory-link:hover, .inventory-link:focus-visible { background: var(--quiet); }
.inventory-link:focus-visible { outline-offset: -2px; }
.inventory-link.is-focus { background: #fdf3e9; }
.inventory-link.is-focus:hover, .inventory-link.is-focus:focus-visible { background: #f7e7d6; }
.inventory-thumb { display: grid; place-items: center; width: 70px; height: 48px; overflow: hidden; border: 1px solid #d5d0c9; background: #f1efed; color: #605b56; font-size: 11px; }
.inventory-thumb img { width: 100%; height: 100%; object-fit: cover; }
.inventory-thumb:is(.crop-pot, .crop-basket) { position: relative; }
.inventory-thumb:is(.crop-pot, .crop-basket) img { position: absolute; top: 0; width: 200%; max-width: none; }
.inventory-thumb.crop-pot img { left: 0; }
.inventory-thumb.crop-basket img { right: 0; }
.inventory-item { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: baseline; gap: 2px 6px; min-width: 0; }
.inventory-item .item-number { color: var(--muted); font-size: 12px; }
.inventory-item .item-name { color: var(--ink); font-size: 13px; line-height: 1.4; overflow-wrap: anywhere; }
.inventory-item small { grid-column: 2; color: var(--muted); font-size: 12px; }
.inventory-link.is-focus :is(.item-number, .item-name) { color: var(--brand); }
.inventory-source { color: var(--muted); font-size: 12px; }
.inventory-state { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.inventory-state::after { width: 6px; height: 6px; flex: none; border: solid var(--muted); border-width: 1px 1px 0 0; transform: rotate(45deg); content: ""; }
.status { display: inline-flex; align-items: center; min-height: 19px; padding: 2px 5px; font-size: 11px; font-weight: 700; line-height: 1.35; }
.status--returned { color: #334d65; background: #eaf0f5; }
.status--pending { color: #84331e; background: #f4e3cf; }
.status--archived { color: #515157; background: #ededee; }
.status--filed { color: #80271e; background: #e7c7b7; }
.inventory-panel--index .inventory { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.inventory-panel--index .inventory li:nth-child(even) { border-left: 1px solid var(--line); }
.inventory-panel--index :is(.inventory-columns, .inventory-source) { display: none; }
.inventory-panel--index .inventory-link {
  min-height: 80px; height: 100%;
  grid-template-columns: 70px minmax(0, 1fr); grid-template-rows: 1fr auto;
  column-gap: 9px; row-gap: 3px;
}
.inventory-panel--index .inventory li:nth-child(-n+2) .inventory-link { border-top: 0; }
.inventory-panel--index .inventory-thumb { grid-row: span 2; }
.inventory-panel--index .inventory-state { grid-column: 2; }
.empty-result { grid-column: 1 / -1; padding: 15px 10px; color: var(--muted); }

.board-list li { padding: 8px 10px; }
.board-list li + li { border-top: 1px dotted var(--line); }
.board-byline { display: flex; align-items: baseline; gap: 10px; color: var(--link); font-size: 12px; }
.board-byline time { color: var(--muted); }
.board-list p { max-width: 71ch; margin-top: 3px; font-size: 13px; }
.board-list summary { cursor: pointer; font-size: 13px; }
.board-list .archive-whisper { color: var(--muted); font-size: 12px; }
.leaked-field { color: var(--brand); }
.board-form, .board-posts > li { border-top: 1px dotted var(--line); }
.board-form { padding: 9px 10px 11px; background: var(--quiet); }
.board-form label { display: block; margin-bottom: 4px; color: var(--muted); font-size: 12px; font-weight: 700; }
.board-entry { display: flex; gap: 6px; }
.board-entry input { flex: 1; min-width: 0; min-height: 34px; border: 1px solid var(--line); border-radius: 0; padding: 4px 7px; background: var(--surface); }
.board-entry button { flex: none; min-width: 74px; }
.board-posts p { overflow-wrap: anywhere; }
.board-posts .board-byline { gap: .3em; }
.board-posts .board-byline time::before { content: "（"; }
.board-posts .board-byline time::after { content: "）"; }
.board-reply { margin: 6px 0 2px 10px; padding: 6px 9px; background: var(--quiet); color: var(--muted); font-size: 12px; }
.board-reply p { margin-top: 1px; }
.board-shift { animation: post-shift .24s ease-out; }
@keyframes post-shift { 31% { transform: translateX(1px); } 67% { transform: translateX(-1px); } }

.side-panel > .section-head { border-top: 2px solid var(--brand); }
.volunteer-body { padding: 10px; }
.volunteer-id { display: flex; align-items: center; gap: 10px; }
.avatar { flex-shrink: 0; aspect-ratio: 1; object-fit: cover; object-position: center 46%; background: #acaaa7; }
.volunteer-id .avatar { width: 61px; height: 61px; border: 1px solid var(--line); }
.volunteer-id h3 { font: 700 20px/1.1 var(--song); }
.volunteer-id .role { display: inline-block; margin-top: 3px; padding: 0 4px; color: #803229; background: #f6e5df; font-size: 11px; }
.volunteer-id .presence { margin-top: 4px; color: var(--muted); font-size: 11px; }
.volunteer-id .presence::before { display: inline-block; margin-right: 5px; width: 5px; height: 5px; background: var(--brand); content: ""; vertical-align: 2px; }
.duty-summary { margin: 9px 0; color: var(--muted); font-size: 12px; }
.control, .contact-button {
  display: inline-flex; justify-content: center; align-items: center; gap: 7px;
  min-height: 34px; padding: 4px 10px; border: 1px solid var(--line);
  background: var(--surface); color: var(--brand); font-size: 13px; text-align: center;
}
.control:hover:not(:disabled) { background: var(--quiet); }
.contact-button, .control--primary { border-color: var(--nav); background: var(--brand); color: #fff6ed; }
.contact-button:hover, .control--primary:hover:not(:disabled) { background: var(--nav-active); }
.contact-button { width: 100%; }
.duty-list { padding: 1px 10px; }
.duty-list li { display: flex; gap: 9px; padding: 6px 0; font-size: 12px; }
.duty-list li + li { border-top: 1px dotted var(--line); }
.duty-list time { flex-shrink: 0; color: var(--muted); }
.side-photo { display: block; padding: 9px 10px 10px; }
.side-photo img { width: 100%; aspect-ratio: 2.18; object-fit: cover; object-position: 50% 60%; }
.side-photo strong, .side-photo span { display: block; }
.side-photo strong { margin-top: 4px; color: var(--link); font-size: 13px; }
.side-photo:hover strong { text-decoration: underline; }
.side-photo span { color: var(--muted); font-size: 12px; }
.side-notices { padding: 2px 10px; }
.side-notices a { display: block; padding: 5px 0; color: var(--link); font-size: 12px; }
.side-notices a::before { display: inline-block; width: 4px; height: 4px; margin-right: 7px; background: var(--brand); vertical-align: 2px; content: ""; }
.side-notices a:hover { text-decoration: underline; }
.side-notices li + li { border-top: 1px dotted var(--line); }

.site-footer { padding-bottom: 63px; border-top: 1px solid var(--line); background: var(--quiet); color: var(--muted); font-size: 12px; }
.footer-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; min-height: 51px; padding-block: 7px; }
.footer-row i { display: inline-block; height: 9px; margin-inline: 3px; border-left: 1px solid var(--line); }
.footer-row button { margin-left: auto; color: var(--link); }
.side-tools { position: fixed; right: max(5px, calc((100vw - 1260px) / 2)); top: 43%; z-index: 561; display: grid; width: 53px; background: var(--surface); border: 1px solid var(--line); }
.side-tools button { position: relative; display: grid; justify-items: center; align-content: center; gap: 6px; min-height: 48px; border: 0; background: transparent; color: var(--brand); font-size: 11px; white-space: nowrap; padding: 3px; }
.side-tools button + button { border-top: 1px solid var(--line); }
.side-tools button:hover { background: var(--quiet); }
.tool-chat { display: inline-block; width: 14px; height: 11px; flex: none; border: 1px solid currentColor; border-radius: 2px; }
.tool-chat::after { display: block; width: 4px; height: 4px; margin: 8px 0 0 2px; border: solid currentColor; border-width: 0 0 1px 1px; background: inherit; transform: skewY(-36deg); content: ""; }
.tool-up { display: block; width: 9px; height: 9px; transform: translateY(3px) rotate(45deg); border: solid currentColor; border-width: 1px 0 0 1px; }
.unread-dot { position: absolute; top: 6px; right: 6px; width: 8px; height: 8px; border-radius: 50%; background: #ba2720; }
.follow { position: fixed; z-index: 580; inset: auto 0 0; border-top: 1px solid #963e33; background: #531d1a; color: #fff0e4; padding-bottom: env(safe-area-inset-bottom, 0px); }
.follow-row { display: flex; align-items: center; gap: 10px; min-height: 46px; padding-block: 4px; }
.follow-mark { display: grid; flex: none; place-items: center; width: 27px; height: 27px; border: 1px solid #be8070; color: #fde0c5; font: 700 12px/1 var(--song); }
#follow-text { flex: 1; font-size: 12px; }
#follow-action { flex: none; padding: 4px 10px; border: 1px solid #caa287; background: #f4dcc2; color: #5c231c; font-size: 12px; font-weight: 700; }
#follow-action:hover { background: #ffe8cc; }

.item-article { margin: 11px 0 12px; }
.item-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.item-fields > div { display: grid; grid-template-columns: minmax(75px, .42fr) minmax(0, 1fr); min-height: 34px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.item-fields dt, .item-fields dd { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 7px; padding: 5px 8px; }
.item-fields dt { color: var(--muted); background: var(--quiet); font-size: 12px; }
.item-fields dd { font-size: 13px; }
.item-fields small { font-size: 12px; white-space: nowrap; }
.item-note, .item-comment { margin: 7px 0 11px; color: var(--muted); font-size: 13px; }
.item-note span { margin-right: 10px; font-weight: 700; }
.item-comment { margin-block: 10px; padding: 8px 10px; border: 1px dotted var(--line); background: var(--quiet); }
.item-comment strong { color: var(--ink); font-size: 12px; }
.item-comment p { margin-top: 2px; }
.item-supplement { padding: 6px 8px 2px; color: var(--brand); font-size: 12px; }
.item-crop { position: relative; max-width: 420px; aspect-ratio: 1; overflow: hidden; border: 1px solid var(--line); }
.item-crop img { position: absolute; top: 50%; width: 200%; max-width: none; transform: translateY(-50%); }
.item-crop--pot img { left: 0; }
.item-crop--basket img { top: 55%; right: 0; }
.item-photo { max-width: 680px; border: 1px solid var(--line); }
.item-photo img { width: 100%; height: auto; }
.proof { margin-top: 7px; }
.proof-grid { display: grid; gap: 10px; align-items: start; }
.proof-grid.is-pinned { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.proof figure { min-width: 0; }
.proof-frame { position: relative; aspect-ratio: 3 / 2; overflow: hidden; background: #211e1d; }
.proof-frame img { width: 100%; height: 100%; object-fit: contain; }
.photo-stamp { position: absolute; right: 7px; bottom: 7px; padding: 2px 5px; background: #000b; color: #f0e9e0; font: 12px/1.5 var(--digits); }
.proof-caption { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; justify-content: space-between; min-height: 30px; color: var(--muted); font-size: 12px; }
.hold { -webkit-touch-callout: none; touch-action: none; user-select: none; }
.proof-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; padding-block: 3px; }
.proof-message { color: var(--muted); font-size: 12px; }
.proof-fine-print { margin: 3px 0 5px; color: var(--muted); font: 11px/1.65 var(--song); }
.compare-button { margin-left: auto; color: var(--link); font-size: 12px; }
.scene-link { margin-left: auto; text-decoration: underline; text-underline-offset: .2em; }
.album-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
.album-entry { border: 1px solid var(--line); background: var(--surface); }
.album-entry:hover { border-color: var(--brand); }
.album-thumb { position: relative; aspect-ratio: 3 / 2; overflow: hidden; background: #171515; }
.album-thumb img { width: 100%; height: 100%; object-fit: cover; }
.album-thumb--limited img { transform: scale(1.75); transform-origin: 72% 82%; filter: brightness(.45) saturate(.62); }
.album-thumb--limited span { position: absolute; bottom: 6px; left: 6px; padding: 1px 5px; border: 1px solid #645f54; background: #181716; color: #e0d8c8; font-size: 11px; }
.album-info { padding: 5px 8px 7px; }
.album-info time { display: block; color: var(--muted); font-size: 12px; }
.album-info strong { display: block; margin-top: 1px; color: var(--link); }
.album-main-photo { width: 100%; height: auto; background: var(--quiet); }
.album-view figure { margin-top: 10px; }
.album-caption { padding-block: 8px; color: var(--muted); font-size: 13px; }
.album-siblings { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; border-top: 1px solid var(--line); padding-block: 8px 0; }
.album-siblings a { color: var(--link); font-size: 13px; }
.album-siblings a:hover { text-decoration: underline; }
.article-panel { padding: 11px 13px; }
.article-panel p { max-width: 68ch; }
.registry-panel :is(h2, caption) { color: var(--brand); font: 700 16px/1.35 var(--song); }
.registry-table { width: 100%; margin-top: 8px; border-collapse: collapse; text-align: left; font-size: 13px; }
.registry-table caption { padding-bottom: 8px; text-align: left; }
.registry-table :is(th, td) { padding: 7px 8px; border: 1px solid var(--line); font-weight: 400; overflow-wrap: anywhere; }
.registry-table thead th { background: var(--quiet); color: var(--muted); font-size: 12px; font-weight: 700; }
.registry-table tbody th { font-weight: 700; }
.registry-table td { font-variant-numeric: tabular-nums; }
.ledger-table td { width: 32%; }
.duty-table tbody tr:last-child { background: var(--quiet); }
.duty-anomaly { display: block; color: var(--brand); }
.duty-migration { margin-top: 9px; color: var(--muted); font-size: 11px; }
.record-fold { margin-top: 11px; border: 1px solid var(--line); }
.record-fold > summary, .locked-ledger > summary { padding: 7px 9px; background: var(--quiet); color: var(--muted); cursor: pointer; font-size: 12px; }
.record-fold > p { padding: 7px 9px; }
.historical-paper { padding: 13px clamp(9px, 2.6vw, 20px); background: #e9dbc3 url("materials/paper.webp") center / 620px auto; color: #432e22; font: 15px/1.75 var(--song); }
.historical-paper h3 { padding-bottom: 6px; border-bottom: 1px solid #a0896e; font-size: 16px; }
.historical-paper p { margin-top: 7px; }
.registry-supplement { margin-top: 12px; padding-top: 7px; border-top: 1px dotted #8f5b50; color: #76251d; font: 700 14px/1.5 var(--song); }
.locked-ledger { margin-top: 12px; border: 1px solid var(--line); }
.locked-ledger > .article-panel { margin: 0; border: 0; border-top: 1px solid var(--line); }
.calendar-rows > li { display: grid; grid-template-columns: 53px minmax(0, 1fr); gap: 11px; padding: 9px 4px; border-bottom: 1px dotted var(--line); }
.calendar-rows time { color: var(--muted); font-weight: 700; }
.calendar-rows h2 { margin-bottom: 3px; color: var(--ink); }
.calendar-rows p, .calendar-warning li { font-size: 13px; }
.calendar-warning { margin-top: 12px; padding: 9px 10px; border: 1px solid var(--brand); background: var(--quiet); }
.calendar-warning ol { margin-top: 5px; padding-left: 1.4em; list-style: decimal; }
.calendar-warning li { margin-top: 3px; }
.search-results { margin-block: 9px 12px; border: 1px solid var(--line); background: var(--surface); }
.search-results .section-head { overflow-wrap: anywhere; }
.search-results :is(h2, h3) { outline-offset: 2px; }
.search-results .section-head button { flex: none; color: var(--link); font-size: 12px; }
.search-entries li, .search-empty { padding: 9px 11px; }
.search-entries li + li { border-top: 1px dotted var(--line); }
.search-entries h3 { color: var(--ink); font: 700 15px/1.4 var(--song); }
.search-entries p { max-width: 70ch; margin-top: 4px; font-size: 13px; }
.search-entries a { display: inline-block; margin-top: 5px; color: var(--link); text-decoration: underline; text-underline-offset: .18em; }
.search-empty { color: var(--muted); font-size: 13px; }
.search-empty--dark { color: #76251d; font: 700 15px/1.65 var(--song); text-shadow: 0 1px 2px #76251d4d; }
.closure-note { margin-block: 7px 11px; padding: 7px 10px; background: #f5f4f2; border: 1px solid var(--line); color: #604537; }
body[data-ending="B"][data-view="portal"] { --paper: #fff; }
.new-photo { position: fixed; z-index: 710; right: max(12px, calc((100vw - 1120px) / 2)); bottom: 58px; max-width: calc(100% - 24px); padding: 10px 14px; border: 1px solid #7b4c3c; background: #f5ead5; color: #5d2d23; text-align: left; box-shadow: 0 6px 16px #160a0a32; }
.new-photo strong, .new-photo span { display: block; }
.new-photo span { margin-top: 2px; font-size: 12px; }

.chat {
  --chat-room: #ededed;
  --chat-trim: #f5f5f5;
  --chat-ink: #232323;
  --chat-sub: #565656;
  --chat-line: #c9c9c9;
  --chat-bubble: #fff;
  --chat-bubble-line: #d4d4d4;
  --chat-time: #777;
  --chat-prompt: #e4e4e4;
  --chat-input: #fff;
  --chat-player: #95ec69;
  position: fixed; right: max(14px, calc((100vw - 1120px) / 2)); bottom: calc(57px + env(safe-area-inset-bottom, 0px)); z-index: 770;
  display: flex; flex-direction: column;
  width: min(420px, calc(100% - 28px)); height: min(515px, calc(100dvh - 85px)); min-height: 0;
  overflow: clip; border: 1px solid #77716e; border-radius: 2px;
  background: var(--chat-trim); color: var(--chat-ink); box-shadow: 0 12px 30px #140b0a3c;
}
.chat-header { display: flex; flex: none; align-items: center; gap: 9px; min-height: 56px; padding: 7px 10px 7px 12px; border-bottom: 1px solid #361b18; background: #662622; color: #fff4eb; }
.chat-header .avatar { width: 37px; height: 37px; border: 1px solid #fff2; border-radius: 2px; }
.chat-ident { min-width: 0; flex: 1; }
.chat-ident h2 { font-size: 15px; line-height: 1.2; }
.chat-ident small { margin-left: 4px; font-size: 11px; font-weight: 400; }
.chat-ident p { min-height: 16px; margin-top: 3px; color: #f1d7cd; font-size: 11px; }
.chat-sound { flex: none; font-size: 11px; }
.chat-header .scare-toggle { font-size: 11px; }
.chat :where(button, a, input):focus-visible { outline-color: #a17b50; }
.chat-log { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 9px 12px 11px; background: var(--chat-room); scrollbar-width: thin; scrollbar-color: var(--chat-time) transparent; }
.chat-system { margin: 1px auto 10px; padding: 5px 4px; background: var(--chat-prompt); color: var(--chat-sub); font-size: 11px; text-align: center; }
.chat-entry { margin: 0 0 10px; }
.chat-entry:last-child { margin-bottom: 0; }
.chat-time { display: table; margin: 0 auto 5px; padding: 0 6px; border-radius: 8px; background: var(--chat-time); color: #fff; font-size: 11px; line-height: 16px; }
.chat-message { display: flex; align-items: flex-start; gap: 9px; }
.chat-message--player { flex-direction: row-reverse; }
.chat-message .avatar { width: 34px; height: 34px; border: 1px solid #0002; border-radius: 2px; }
.player-avatar { position: relative; overflow: hidden; background: #c4c5c7; }
.player-avatar::before, .player-avatar::after { position: absolute; left: 50%; transform: translateX(-50%); background: #72747a; content: ""; }
.player-avatar::before { top: 6px; width: 9px; height: 9px; border-radius: 50%; }
.player-avatar::after { bottom: 5px; width: 19px; height: 11px; border-radius: 55% 55% 16% 16%; }
.chat-bubble { position: relative; min-width: 0; max-width: min(76%, 60ch); padding: 6px 9px; border: 1px solid var(--chat-bubble-line); border-radius: 4px; background: var(--chat-bubble); font-size: 13px; }
.chat-bubble::before { position: absolute; top: 11px; left: -5px; width: 8px; height: 8px; transform: rotate(45deg); border: solid var(--chat-bubble-line); border-width: 0 0 1px 1px; background: inherit; content: ""; }
.chat-message--player .chat-bubble { background: var(--chat-player); border-color: #86ce63; color: #17210e; max-width: 69%; }
.chat-message--player .chat-bubble::before { left: auto; right: -5px; border-color: #86ce63; border-width: 1px 1px 0 0; }
.chat-text { position: relative; white-space: pre-wrap; overflow-wrap: anywhere; }
.chat-read { flex: none; align-self: flex-end; padding-bottom: 1px; color: var(--chat-sub); font-size: 10px; }
.chat-photo img { width: 100%; height: auto; }
.copper-crop { position: relative; width: 204px; max-width: 100%; height: 102px; overflow: hidden; }
.copper-crop img { position: absolute; top: -199%; left: -143%; width: 350%; max-width: none; filter: saturate(.5) brightness(.72); }
.typing-status { display: inline-flex; align-items: baseline; gap: 4px; }
.typing-dots { display: inline-flex; gap: 2px; align-items: center; }
.typing-dots i { display: block; width: 3px; height: 3px; border-radius: 50%; background: currentColor; animation: typing 1s ease-in-out infinite alternate; }
.typing-dots i:nth-child(2) { animation-delay: .18s; }
.typing-dots i:nth-child(3) { animation-delay: .36s; }
@keyframes typing { 0%, 25% { transform: translateY(0); opacity: .4; } 65%, 100% { transform: translateY(-2px); opacity: 1; } }
.chat-typing { width: fit-content; min-height: 23px; margin: 8px 0 1px 43px; padding: 3px 7px; border: 1px solid var(--chat-line); border-radius: 2px; background: var(--chat-prompt); color: var(--chat-sub); font-size: 11px; }
.chat-quick, .chat-choices { display: flex; flex: none; gap: 5px; align-items: stretch; padding: 6px 10px; border-top: 1px solid var(--chat-line); }
.chat-quick { flex-wrap: wrap; }
.chat-quick .control { min-height: 28px; padding: 2px 6px; border-color: var(--chat-line); background: var(--chat-input); color: var(--chat-ink); font-size: 12px; }
.chat-quick .control:hover:not(:disabled) { background: var(--chat-prompt); }
.chat-quick .text-button { align-self: center; margin-left: auto; color: var(--chat-sub); text-decoration: underline; font-size: 12px; }
.chat-choices .control { flex: 1; min-height: 36px; border-color: var(--chat-line); background: var(--chat-bubble); color: var(--chat-ink); font-size: 12px; line-height: 1.3; }
.chat-choices .control--primary { border-color: #92544a; background: #652924; color: #fff0e7; }
.chat-choices .control:hover:not(:disabled) { border-color: #a7776f; background: #773c32; color: #fff1e8; }
.chat-form { display: grid; flex: none; grid-template-columns: minmax(0, 1fr) auto; gap: 6px; padding: 7px 10px 9px; border-top: 1px solid var(--chat-line); }
.chat-form input { min-height: 35px; border: 1px solid var(--chat-line); border-radius: 2px; padding: 4px 8px; background: var(--chat-input); color: var(--chat-ink); caret-color: var(--chat-ink); font-size: 13px; }
.chat-form input::placeholder { color: var(--chat-sub); }
.chat-form button { min-width: 52px; border: 1px solid #622220; border-radius: 2px; background: #82302b; color: #fff6f1; }
.chat-form button:hover:not(:disabled) { background: #a64136; }
.route-refusal { position: fixed; top: min(22vh, 185px); left: 50%; z-index: 874; width: max-content; max-width: calc(100% - 28px); padding: 9px 14px; transform: translateX(-50%); border: 1px solid #7c4d41; background: #241917; color: #eed9cf; text-align: center; box-shadow: 0 6px 24px #190b0a5e; }
.route-refusal[data-tone="info"] { color: #593527; border-color: #c4a189; background: #fff9ef; box-shadow: 0 6px 18px #25130e34; }
.is-shaking { animation: shut-attempt .23s ease-out; }
@keyframes shut-attempt { 30% { transform: translateY(3px); } 64% { transform: translateY(-1px); } }

body[data-level="2"] { --paper: #eeece6; --surface: #fdfcf8; --quiet: #f0ede5; --line: #cfc8bd; }
body[data-level="3"] { --paper: #e4e2db; --surface: #f1ede3; --quiet: #e8e3d8; --line: #c6b9a9; }
body[data-level="4"] {
  --paper: #c7bfaf;
  --surface: #e0d6c4;
  --quiet: #d9cdbb;
  --line: #b7a691;
  --ink: #30251f;
  --muted: #534336;
  --brand: #752219;
  --nav: #491c18;
  --nav-active: #7b3026;
  --link: #3c4851;
}
body[data-level="2"] :is(.proof-frame, .lead-photo, .side-photo, .album-main-photo, .inventory-thumb) img { filter: sepia(.12) saturate(.83); }
body:is([data-level="3"], [data-level="4"]) :is(.proof-frame, .lead-photo, .side-photo, .album-main-photo, .inventory-thumb) img { filter: sepia(.29) saturate(.65) contrast(1.06); }
body:is([data-level="3"], [data-level="4"]) img.avatar { filter: grayscale(1) contrast(1.18) brightness(.86); }
body:is([data-level="3"], [data-level="4"]) :is(.ticker-set .leak, .archive-whisper, .leaked-field, .status--filed) {
  color: #811d1a;
  text-shadow: .7px .55px 1.6px #88251887, -.5px .1px .95px #ac543d67;
}
body[data-level="4"] :is(#station-name, .page-heading h1) { text-shadow: 1.2px .85px 2px #9b3d2b91, -.7px .2px .9px #962e237c; }
body[data-level="4"] .ticker { background: #3b2925; color: #ead1bf; }
body[data-level="4"] .ticker-label { color: #f1ad9a; }
body[data-level="4"] .ticker-window { border-color: #845749; }
body[data-level="4"] .follow { border-color: #724236; background: #2d211e; }
body[data-level="4"] #follow-action { border-color: #8e6958; background: #5c352d; color: #f6dcce; }
body[data-level="2"] .chat { --chat-room: linear-gradient(#e9e8e5, #dfddda); }
body:is([data-level="3"], [data-level="4"]) .chat {
  --chat-room: linear-gradient(160deg, #3a3a3a, #28282a);
  --chat-trim: #29282a;
  --chat-ink: #f1eded;
  --chat-sub: #d2caca;
  --chat-line: #5c5658;
  --chat-bubble: #424144;
  --chat-bubble-line: #59575a;
  --chat-time: #615e60;
  --chat-prompt: #3c3839;
  --chat-input: #343234;
  border-color: #695752;
}
body:is([data-level="3"], [data-level="4"]) .chat-header { border-color: #514748; background: #282326; color: #faf3ef; }
body:is([data-level="3"], [data-level="4"]) .chat-ident p { color: #dfc9c4; }
body[data-level="4"] .chat { --chat-room: linear-gradient(165deg, #313234, #202022 76%); height: min(582px, calc(100dvh - 72px)); }

.tide-stain, .ash { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; opacity: 0; }
.tide-stain { z-index: 595; background: url("materials/tide.webp") center / 100% 100% no-repeat; transition: opacity 1.5s ease; }
.ash { z-index: 600; }
body[data-level="2"][data-view="portal"] .tide-stain { opacity: .30; }
body[data-level="3"][data-view="portal"] .tide-stain { opacity: .51; }
body[data-level="4"][data-view="portal"] .tide-stain { opacity: .83; }
body[data-level="2"][data-view="portal"] .ash { opacity: .34; }
body[data-level="3"][data-view="portal"] .ash { opacity: .43; }
body[data-level="4"][data-view="portal"] .ash { opacity: .59; }

.raw-viewer {
  --focus: #dfbd79;
  position: fixed; inset: 0; z-index: 910;
  display: grid; grid-template-rows: auto minmax(0, 1fr) auto; min-height: 0;
  padding-top: env(safe-area-inset-top, 0px);
  background: #151515; color: #eee9df; color-scheme: dark;
}
.raw-header { display: grid; grid-template-columns: minmax(82px, 1fr) minmax(0, auto) minmax(82px, 1fr); align-items: center; gap: 9px; padding: 9px clamp(10px, 3vw, 31px); border-bottom: 1px solid #373432; background: #242324; }
.raw-heading { min-width: 0; text-align: center; }
.raw-heading h2 { font-size: 15px; font-weight: 650; line-height: 1.3; }
.raw-exif { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 10px; margin-top: 4px; color: #c6bdb3; font: 12px/1.4 var(--digits); }
.raw-exif b { color: #e5dcca; font-weight: 400; white-space: nowrap; }
.raw-exif span::before { margin-right: 10px; content: "·"; }
.raw-back { display: inline-flex; justify-self: start; align-items: center; gap: 6px; min-height: 35px; border: 0; background: transparent; color: #e3ded1; font-size: 13px; white-space: nowrap; }
.raw-back span { width: 9px; height: 9px; transform: rotate(-45deg); border: solid currentColor; border-width: 1px 0 0 1px; }
.raw-back:hover, .raw-sound:hover { color: #ffe0a3; }
.raw-settings { display: flex; justify-self: end; align-items: center; gap: 11px; }
.raw-settings button { color: #d5cfc2; font-size: 12px; white-space: nowrap; }
.raw-settings button:hover { color: #ffe0a3; }
.raw-workspace { display: grid; place-items: center; min-height: 0; min-width: 0; margin: 12px clamp(8px, 2.6vw, 23px); container-type: size; }
.raw-stage {
  position: relative; isolation: isolate;
  width: min(100%, max(0px, calc((100dvh - 226px) * 1.5)), 1080px); aspect-ratio: 3 / 2;
  background: #080808; box-shadow: 0 0 0 1px #37322d, 0 8px 24px #0006;
}
@supports (width: 1cqh) { .raw-stage { width: min(100cqw, 150cqh, 1080px); } }
.raw-photo, .raw-grain, .raw-markers, .raw-stage::after { position: absolute; inset: 0; width: 100%; height: 100%; }
.raw-photo img { width: 100%; height: 100%; filter: contrast(var(--raw-contrast)) brightness(var(--raw-light)) saturate(var(--raw-color)); user-select: none; }
.raw-grain { z-index: 1; opacity: var(--raw-grain); mix-blend-mode: soft-light; pointer-events: none; }
.raw-stage::after { z-index: 2; background: linear-gradient(176deg, #050505 3%, #050505ad 40%, transparent 81%); opacity: var(--raw-shade); pointer-events: none; content: ""; }
.raw-markers { z-index: 3; pointer-events: none; }
.raw-hotspot { position: absolute; display: grid; place-items: center; width: 38px; height: 38px; padding: 0; border: 0; transform: translate(-50%, -50%); background: transparent; color: #ffdfa1; pointer-events: auto; }
.raw-target { position: relative; display: grid; place-items: center; width: 18px; height: 18px; border: 1px solid currentColor; box-shadow: 0 0 0 1px #261a11; }
.raw-target::after { width: 4px; height: 4px; background: currentColor; box-shadow: 0 0 0 1px #281b14; content: ""; }
.raw-label { position: absolute; left: calc(50% + 15px); padding: 2px 5px; border: 1px solid #8d7655; background: #181613eb; color: inherit; font-size: 12px; white-space: nowrap; }
.raw-hotspot[data-hotspot="shore"] .raw-label { left: auto; right: calc(50% + 15px); }
.raw-hotspot:hover .raw-label, .raw-hotspot:focus-visible .raw-label { background: #544324; color: #fff3cd; }
.raw-hotspot[aria-pressed="true"] { color: #eee0c0; }
.raw-hotspot[aria-pressed="true"] .raw-target::after { width: 9px; height: 5px; transform: translateY(-1px) rotate(-45deg); border: solid currentColor; border-width: 0 0 1px 1px; background: transparent; box-shadow: none; }
.raw-footer { display: grid; grid-template-rows: minmax(28px, auto) auto; justify-items: center; gap: 3px; padding: 0 16px calc(13px + env(safe-area-inset-bottom, 0px)); }
.raw-subtitle { grid-row: 1; align-self: center; color: #e0d4c3; text-align: center; font: 700 clamp(14px, 2.5vw, 17px)/1.45 var(--song); }
.exposure-control { grid-row: 2; width: min(100%, 550px); padding: 9px 15px 7px; border: 1px solid #4b453e; background: #282729; }
.exposure-head { display: flex; justify-content: space-between; align-items: baseline; gap: 6px; }
.exposure-head label { font-size: 14px; font-weight: 700; }
.exposure-head small { margin-left: 5px; color: #cbc1b4; font-size: 11px; font-weight: 400; }
.exposure-head output { color: #ffe2a8; font: 700 16px/1.2 var(--digits); white-space: nowrap; }
#exposure {
  appearance: none; display: block; width: 100%; height: 32px; margin: 0; border: 0;
  background: repeating-linear-gradient(90deg, #817363 0 1px, transparent 1px calc(100% / 20)) center 22px / calc(100% - 16px) 4px no-repeat;
  cursor: ew-resize; touch-action: none;
}
#exposure::-webkit-slider-runnable-track { height: 4px; background: linear-gradient(90deg, #d3ad70 0 var(--progress), #625a54 var(--progress) 100%); }
#exposure::-moz-range-track { height: 4px; background: linear-gradient(90deg, #d3ad70 0 var(--progress), #625a54 var(--progress) 100%); }
#exposure::-webkit-slider-thumb { appearance: none; width: 16px; height: 23px; margin-top: -10px; border: 1px solid #bdab90; border-radius: 2px; background: linear-gradient(#e8d0a3, #9c7c54); box-shadow: 0 2px 5px #0009; }
#exposure::-moz-range-thumb { width: 14px; height: 21px; border: 1px solid #bdab90; border-radius: 2px; background: linear-gradient(#e8d0a3, #9c7c54); }
#exposure:disabled { cursor: default; }
.exposure-scale { position: relative; display: flex; justify-content: space-between; margin-top: -5px; color: #c5baab; font: 11px/1.3 var(--digits); }
.exposure-scale span:nth-child(2) { position: absolute; left: 47.76%; transform: translateX(-50%); }
#exposure-guide { margin-top: 5px; color: #d4c9ba; font-size: 12px; text-align: center; }

.ending {
  --focus: #dfb77b;
  position: fixed; inset: 0; z-index: 920;
  display: flex; overflow: auto; overscroll-behavior: contain;
  padding: min(5vh, 44px) 16px calc(25px + env(safe-area-inset-bottom, 0px));
  background: radial-gradient(ellipse at 49% 25%, #2b221e, #151211 70%); color: #ead9bf;
  scrollbar-color: #66564b #1b1512;
}
.ending-wrap { width: min(100%, 784px); margin: auto; }
.paper-sheet {
  position: relative; padding: clamp(19px, 4.5vw, 38px); border: 1px solid #88734f;
  background: #c8ac75 url("materials/paper.webp") center / 100% 100% no-repeat;
  color: #39291e; font-family: var(--song); box-shadow: 0 14px 35px #0604028a;
}
.paper-sheet :where(dt, dd, h1, p) { text-shadow: .5px .4px 1.15px #593d2475; }
.ledger { padding-left: clamp(27px, 6vw, 57px); }
.ledger::before {
  position: absolute; inset: 5px auto 5px clamp(7px, 1.4vw, 17px);
  width: 11px; border-left: 1px solid #7553358f; border-right: 1px solid #7657354f;
  background: radial-gradient(ellipse 8px 3px at 3px 19%, #58412c 40%, transparent 65%),
    radial-gradient(ellipse 8px 3px at 3px 46%, #58412c 40%, transparent 65%),
    radial-gradient(ellipse 8px 3px at 3px 74%, #58412c 40%, transparent 65%);
  content: "";
}
.ledger-heading { border-bottom: 3px double #664b32; padding-bottom: 11px; }
.ledger-heading h1 { color: #302219; font: 700 clamp(34px, 6.2vmin, 60px)/1.08 var(--song); letter-spacing: .12em; }
.ledger-heading p { margin-top: 6px; color: #4d3426; font-size: 14px; font-weight: 700; letter-spacing: .08em; }
.ledger-entry { display: grid; grid-template-columns: minmax(0, 1fr) minmax(95px, 29%); align-items: center; gap: clamp(10px, 4.7vw, 45px); margin-top: 15px; }
.ledger-data { border-block: 1px solid #75583d; }
.ledger-data > div { display: grid; grid-template-columns: minmax(46px, .22fr) minmax(0, 1fr); }
.ledger-data > div + div { border-top: 1px solid #72553a90; }
.ledger-data :is(dt, dd) { min-width: 0; padding: 5px 7px; font-size: 15px; line-height: 1.35; }
.ledger-data dt { border-right: 1px solid #735a3d80; color: #4c3527; font-weight: 700; }
.ledger-data time { font-family: var(--digits); font-size: .93em; overflow-wrap: anywhere; }
.ledger-ink { color: #751e16; font-style: normal; font-weight: 700; text-shadow: 1px .5px 1.5px #8e321c8c; }
.cinnabar {
  display: grid; justify-self: center; gap: 5px; width: min(100%, 149px); padding: clamp(8px, 2.25vw, 19px) 4px;
  transform: rotate(-12deg); border: clamp(2px, .5vw, 5px) solid #9b3525; outline: 1px solid #9b3525b5; outline-offset: -8px;
  mix-blend-mode: multiply; color: #86291d; text-shadow: .6px .4px 1.15px #9b2d1d95; text-align: center;
}
.cinnabar strong { font: 700 clamp(21px, 4.7vmin, 40px)/1.05 var(--song); white-space: nowrap; }
.cinnabar span { font: 700 clamp(10px, 2.1vmin, 14px)/1.1 var(--song); white-space: nowrap; }
.ledger-inscription { margin-top: 13px; color: #61291d; font-size: 15px; font-weight: 700; letter-spacing: .06em; }
.end-proofs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(6px, 1.7vw, 15px); margin-block: 15px 14px; }
.end-proof-mat { position: relative; aspect-ratio: 1.6; padding: clamp(3px, .65vw, 7px); border: 1px solid #625348; background: #2f2724; }
.end-proof-mat :is(img, .empty-proof) { width: 100%; height: 100%; object-fit: cover; }
.end-proof-mat img { filter: saturate(.48) sepia(.22) brightness(.76) contrast(1.12); }
.end-proof-mat .door-heavy { object-position: center bottom; filter: saturate(.78) sepia(.08) brightness(1.06); }
.empty-proof { background: #090808; box-shadow: inset 0 0 12px #61483445; }
.end-proofs figcaption { margin-top: 5px; color: #dbccb6; text-align: center; font: 12px/1.35 var(--song); }
.ending .voice { border-color: #6a5143; background: #32231c; color: #ead5bf; }
.ending .voice-avatar { background: #653a2f; }
.ending .voice-play { border-color: #a17e64; background: #4d372a; color: #fff1df; }
.ending .voice-play:hover { background: #694b38; }
.ending-controls { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 8px 15px; margin-top: 14px; }
.ending-reset { min-height: 34px; color: #e5cdb1; font-size: 13px; text-decoration: underline; }
.ending-download { min-height: 34px; border: 1px solid #a17e64; padding: 4px 9px; background: #4d372a; color: #fff1df; font-size: 13px; }
.ending-download:hover { background: #694b38; }

.archive-album .ledger-heading h1, .shutdown-slip .ledger-heading h1 { font-size: clamp(30px, 5.7vmin, 47px); }
.end-comparison { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(9px, 2.5vw, 22px); margin-top: 15px; }
.album-mount { position: relative; padding: clamp(3px, .85vw, 8px); border: 1px solid #5e4733; background: #392f29; transform: rotate(-.8deg); }
.end-comparison figure:nth-child(2) .album-mount { transform: rotate(.8deg); }
.album-mount img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; filter: sepia(.18) saturate(.75) contrast(1.02); }
.album-mount::before, .album-mount::after { position: absolute; z-index: 1; top: 0; width: 18%; height: 25%; background: #ab855b; clip-path: polygon(0 0, 100% 0, 0 100%); content: ""; }
.album-mount::after { right: 0; transform: scaleX(-1); }
.end-comparison figcaption { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 8px; margin-top: 6px; padding-bottom: 5px; border-bottom: 1px solid #75583d78; font-size: 13px; }
.end-comparison time { color: #533d2b; font: 12px/1.3 var(--digits); overflow-wrap: anywhere; }
.end-verdict { margin-top: 16px; color: #64281d; font-size: 16px; font-weight: 700; }

.ending[data-result="C"] .ending-wrap { width: min(100%, 590px); }
.shutdown-slip > p { margin-top: 11px; font-size: 16px; }
.shutdown-slip .shutdown-id { margin-top: 12px; color: #533a29; font-size: 13px; }
.shutdown-record { margin-top: clamp(25px, 8vh, 65px); }
.shutdown-record > div { grid-template-columns: minmax(64px, .26fr) minmax(0, 1fr); }
.scare-frame { position: fixed; inset: 0; z-index: 990; overflow: hidden; background: #050404; pointer-events: none; }
.scare-frame img { display: block; width: 100%; height: 100%; object-fit: cover; }
html:has(.scare-frame[data-effect="aming"]) { overflow: hidden; }
.scare-frame[data-effect="table"] { position: absolute; z-index: 1; }
.scare-frame[data-effect="table"] img { animation: table-impact 380ms linear both; }
.scare-frame[data-effect="table"]::after { position: absolute; inset: 0; background: #e3f3ff; content: ""; animation: bulb-flash 92ms ease-out both; }
.scare-frame[data-effect="drowned"] img { --shake: 16px; animation: face-impact 650ms linear both; }
.scare-frame[data-effect="aming"] img { --shake: 12px; animation: face-impact 280ms linear both; }
@keyframes bulb-flash {
  from { opacity: .9; }
  to { opacity: 0; }
}
@keyframes table-impact {
  0%, 100% { transform: scale(1.015); }
  13% { transform: translate(3px, -2px) scale(1.03); }
  29% { transform: translate(-3px, 2px) scale(1.035); }
  52% { transform: translate(2px, 0) scale(1.025); }
  73% { transform: translate(-1px, 1px) scale(1.018); }
}
@keyframes face-impact {
  0% { transform: scale(1.06); }
  11% { transform: translate(calc(var(--shake) * -.55), var(--shake)) scale(1.1); }
  21% { transform: translate(var(--shake), calc(var(--shake) * -.7)) scale(1.095); }
  35% { transform: translate(calc(var(--shake) * -.85), calc(var(--shake) * .46)) scale(1.09); }
  49% { transform: translate(calc(var(--shake) * .6), calc(var(--shake) * -.63)) scale(1.085); }
  63% { transform: translate(calc(var(--shake) * -.5), calc(var(--shake) * .31)) scale(1.075); }
  79% { transform: translate(calc(var(--shake) * .3), calc(var(--shake) * -.4)) scale(1.065); }
  100% { transform: scale(1.055); }
}
.blackout { position: fixed; inset: 0; z-index: 1000; background: #000; opacity: 0; pointer-events: none; }
.blackout.is-soft { transition: opacity 170ms ease-in-out; }
.blackout.is-active { opacity: 1; }

@media (max-width: 1150px) {
  .side-tools { top: auto; right: 10px; bottom: calc(56px + env(safe-area-inset-bottom, 0px)); }
  .side-tools #scroll-top { display: none; }
}
@media (max-width: 900px) {
  .frame { width: calc(100% - 30px); }
  .mast-row { grid-template-columns: auto minmax(0, 1fr); gap: 19px; }
  .location { display: none; }
  .portal-grid { grid-template-columns: minmax(0, 1fr) 222px; gap: 11px; }
  .inventory-source { display: none; }
  .inventory-columns, .inventory-link { grid-template-columns: 61px minmax(0, 1fr) 139px; }
  .inventory-thumb { width: 61px; }
  .inventory-panel--index .inventory-link { grid-template-columns: 61px minmax(0, 1fr); }
}
@media (max-width: 720px) {
  .portal-grid { grid-template-columns: minmax(0, 1fr); }
  .portal-side { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
  .utility-welcome > span, .raw-exif span::before { display: none; }
}
@media (max-width: 600px) {
  .frame { width: calc(100% - 22px); }
  .utility-settings { gap: 8px; }
  .mast-row { grid-template-columns: minmax(0, 1fr); gap: 10px; padding-block: 12px 9px; }
  .brand strong { font-size: 29px; }
  .brand small { margin-top: 4px; font-size: 11px; }
  .community-mark { width: 46px; height: 46px; font-size: 14px; }
  .site-search input, .chat-form input, .board-entry input { font-size: 16px; }
  .search-box button { min-width: 63px; }
  .hotwords { gap: 3px 8px; }
  .navigation { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .navigation a { min-height: 34px; font-size: 13px; }
  .navigation a:nth-child(4) { border-left: 1px solid #ffffff25; }
  .navigation a:nth-child(n+4) { border-top: 1px solid #ffffff25; }
  .ticker-row { min-height: 29px; }
  .portal-main { padding: 9px 8px 12px; }
  .portal-side { grid-template-columns: minmax(0, 1fr); }
  .page-meta { gap: 3px 7px; }
  .page-meta > span + span { padding-left: 7px; }
  .lead-record { grid-template-columns: 43% minmax(0, 1fr); }
  .lead-copy { gap: 5px; padding: 9px; }
  .lead-copy h2 { font-size: 17px; }
  .lead-copy p, .lead-copy a { font-size: 12px; }
  .lead-photo { min-height: 126px; }
  .lead-photo img { object-position: 73% 56%; }
  .inventory-panel--index .inventory { grid-template-columns: minmax(0, 1fr); }
  .inventory-columns { display: none; }
  .inventory-panel--index .inventory li:nth-child(even) { border-left: 0; }
  .inventory-panel--index .inventory li:nth-child(2) .inventory-link { border-top: 1px solid var(--line); }
  .inventory-link, .inventory-panel--index .inventory-link {
    grid-template-columns: 59px minmax(0, 1fr); grid-template-rows: 1fr auto;
    min-height: 72px; gap: 3px 8px; padding-inline: 8px;
  }
  .inventory-thumb { grid-row: span 2; width: 59px; height: 44px; }
  .inventory-state { grid-column: 2; }
  .inventory-count { margin-left: 0; }
  .item-fields { grid-template-columns: minmax(0, 1fr); }
  .registry-panel { padding: 9px 7px; }
  .duty-table { table-layout: fixed; }
  .duty-table :is(th, td) { padding: 5px 4px; font-size: 12px; }
  .voice-play { min-height: 34px; }
  .proof-grid.is-pinned { gap: 4px; }
  .album-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .follow-row { gap: 6px; min-height: 48px; }
  .follow-mark { width: 22px; height: 23px; font-size: 10px; }
  #follow-text { font-size: 11px; }
  #follow-action { padding-inline: 6px; }
  .follow .icon-close { width: 29px; height: 31px; }
  .route-refusal { top: 8vh; }
  .chat, body[data-level="4"] .chat {
    right: 7px; bottom: calc(54px + env(safe-area-inset-bottom, 0px)); width: calc(100% - 14px);
    height: min(540px, calc(100dvh - 70px));
  }
  body[data-level="4"] .chat { bottom: max(8px, env(safe-area-inset-bottom, 0px)); height: min(650px, calc(100dvh - 35px)); }
  .raw-header { gap: 3px; padding-block: 8px; }
  .raw-settings { flex-direction: column; align-items: flex-end; gap: 0; }
  .raw-settings button { min-height: 25px; font-size: 11px; }
  .raw-heading h2 { font-size: 14px; }
  .raw-exif { font-size: 11px; }
  .raw-back { padding-inline: 5px; }
  .raw-workspace { margin-block: 7px; }
  .raw-hotspot { width: 44px; height: 44px; }
  .raw-label { font-size: 11px; }
  .exposure-control { padding-inline: 11px; }
  #exposure { height: 44px; background-position: center 28px; }
  .ending { padding-inline: 12px; }
  .paper-sheet { padding-right: 13px; }
  .ledger-data :is(dt, dd) { padding: 5px 4px; font-size: 13px; }
  .ledger-heading h1 { letter-spacing: .08em; }
  .end-proofs figcaption { font-size: 11px; }
  .end-comparison figcaption, .end-comparison time { font-size: 11px; }
}
@media (max-width: 355px) {
  .utility-settings .hotline { display: none; }
  .lead-copy h2 { font-size: 16px; }
  .lead-photo { min-height: 136px; }
  .cinnabar { outline-offset: -4px; }
  .raw-back, .raw-sound { font-size: 11px; }
}
@media (max-height: 540px) {
  .raw-header { padding-block: 5px; }
  .raw-workspace { margin-block: 5px; }
  .raw-footer { grid-template-rows: minmax(20px, auto) auto; padding-bottom: 5px; }
  .exposure-control { padding-block: 3px; }
  .chat-entry { margin-bottom: 7px; }
}
@media (prefers-reduced-motion: reduce) {
  .ticker-track, .typing-dots i, .is-shaking, .voice-play[aria-pressed="true"] .voice-wave i, .board-shift, .scare-frame[data-effect] img, .scare-frame[data-effect="table"]::after { animation: none; }
  .scare-frame[data-effect="table"]::after { content: none; }
  .tide-stain { transition: none; }
}
