.archive-fullscreen-panel { background:#070808; }
.archive-fullscreen-panel::before { display:none; }
.archive-detail-view { position:absolute; inset:0; overflow:hidden; font-family:"Galmuri14",sans-serif; }
.archive-detail-view .archive-desk-bg { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; filter:brightness(.72) saturate(.72); }
.archive-detail-view.subject-profiles::after { content:""; position:absolute; inset:0; pointer-events:none; background:radial-gradient(circle at 50% 47%,transparent 34%,rgba(0,0,0,.55) 100%); }

.aged-subject-card { position:absolute; z-index:2; left:50%; top:49%; width:880px; height:590px; transform:translate(-50%,-50%) rotate(-.45deg); padding:48px 56px 42px; overflow:hidden; color:#27251f; background-color:#d5c9a7; background-image:linear-gradient(92deg,rgba(85,55,26,.08),transparent 12%,rgba(255,255,255,.13) 53%,rgba(57,34,18,.08)),repeating-linear-gradient(0deg,rgba(75,55,30,.025) 0 1px,transparent 1px 4px); border:1px solid #8c7b5c; box-shadow:0 22px 65px rgba(0,0,0,.75),inset 0 0 80px rgba(68,41,21,.19); }
.aged-subject-card::before,.aged-subject-card::after { content:""; position:absolute; pointer-events:none; }
.aged-subject-card::before { inset:10px; border:1px solid rgba(67,52,33,.38); box-shadow:inset 0 0 0 4px rgba(119,91,51,.06); }
.aged-subject-card::after { display:none; }
.aged-subject-card header { position:relative; z-index:1; display:flex; justify-content:space-between; align-items:flex-start; padding-bottom:18px; border-bottom:3px double rgba(54,48,37,.55); }
.aged-subject-card header small { font:13px/1.3 "Galmuri11",sans-serif; letter-spacing:.07em; color:#635d50; }
.aged-subject-card header h2 { margin:8px 0 0; font:30px/1.2 "Galmuri14",sans-serif; letter-spacing:-.04em; }
.aged-subject-card header b { padding:8px 12px; border:1px solid #635a49; font:18px/1 "Galmuri11",sans-serif; }
.subject-card-grid { position:relative; z-index:1; display:grid; grid-template-columns:215px 1fr; gap:34px; padding-top:28px; }
.subject-card-grid figure { height:268px; margin:0; padding:8px; border:1px solid rgba(60,52,40,.62); background:#b5aa8d; box-shadow:3px 4px 0 rgba(72,55,34,.2); }
.subject-card-grid figure img { width:100%; height:100%; object-fit:cover; filter:sepia(.28) contrast(.92) grayscale(.14); }
.profile-silhouette { position:relative; height:100%; overflow:hidden; background:linear-gradient(145deg,#aaa48f,#c7bea0); }
.profile-silhouette::before { content:""; position:absolute; left:50%; top:45px; width:76px; height:88px; transform:translateX(-50%); border-radius:48% 48% 44% 44%; background:#666358; box-shadow:inset 9px -5px 0 rgba(0,0,0,.08); }
.profile-silhouette::after { content:""; position:absolute; left:50%; bottom:-35px; width:180px; height:155px; transform:translateX(-50%); border-radius:52% 52% 12% 12%; background:#666358; box-shadow:inset 16px -7px 0 rgba(0,0,0,.08); }
.profile-silhouette i { position:absolute; inset:8px; border:1px solid rgba(67,61,48,.22); }
.subject-card-grid dl { display:grid; grid-template-columns:1fr 1fr; margin:0; border-top:1px solid #756d5c; border-left:1px solid #756d5c; }
.subject-card-grid dl div { display:grid; grid-template-columns:62px 1fr; border-right:1px solid #756d5c; border-bottom:1px solid #756d5c; }
.subject-card-grid dl .experiment-date { grid-column:1 / -1; grid-template-columns:78px 1fr; }
.subject-card-grid dt,.subject-card-grid dd { margin:0; padding:10px 11px; }
.subject-card-grid dt { color:#5a554a; background:rgba(70,60,45,.08); font:13px/1.35 "Galmuri11",sans-serif; }
.subject-card-grid dd { font:17px/1.25 "Galmuri14",sans-serif; }
.subject-card-grid h3 { margin:24px 0 8px; font-size:16px; }
.subject-card-grid p { margin:0; max-width:495px; font-size:15px; line-height:1.72; word-break:keep-all; }
.subject-card-grid section>small { display:block; margin-top:11px; color:#605b50; font:12px/1.35 "Galmuri11",sans-serif; }
.experiment-stamp { position:absolute; z-index:3; right:50px; bottom:38px; padding:9px 17px 7px; border:4px double currentColor; border-radius:6px; font:30px/1 "Galmuri14",sans-serif; letter-spacing:.16em; opacity:.72; transform:rotate(-11deg); mix-blend-mode:multiply; }
.experiment-stamp.success { color:#174f79; }
.experiment-stamp.failure { color:#842d24; }
.implant-handwriting { position:absolute; z-index:4; left:54px; bottom:42px; color:#342e2a; font:24px/1.2 "Hahmlet Variable",serif; font-weight:760; transform:rotate(-3deg); text-decoration:underline 2px rgba(50,42,34,.45); }

.archive-pager { position:absolute; z-index:25; inset:0; display:block; pointer-events:none; }
.archive-pager button { display:grid; place-items:center; width:54px; height:42px; padding:0 0 4px; border:1px solid rgba(221,203,160,.5); color:#e6dbc1; background:rgba(13,14,14,.82); font-size:31px; cursor:pointer; }
.archive-pager button { position:absolute; top:50%; width:70px; height:88px; transform:translateY(-50%); pointer-events:auto; font-size:46px; }
.archive-pager [data-archive-prev] { left:145px; }
.archive-pager [data-archive-next] { right:145px; }
.archive-pager button:disabled { opacity:.25; cursor:default; }
.archive-pager button:not(:disabled):hover,.archive-pager button:not(:disabled):focus-visible { border-color:#f0cc68; color:#f0cc68; outline:none; }
.archive-pager span { position:absolute; left:50%; bottom:20px; min-width:74px; transform:translateX(-50%); color:#d7cdb7; text-align:center; font:15px/1 "Galmuri11",sans-serif; }

.inspection-ledger-backdrop { position:absolute; inset:0; display:grid; place-items:center; background:radial-gradient(circle at 50% 44%,rgba(83,85,76,.45),transparent 46%),linear-gradient(115deg,#111514,#050707); }
.inspection-ledger-backdrop::before { content:""; position:absolute; inset:0; opacity:.2; background:repeating-linear-gradient(90deg,transparent 0 7px,rgba(255,255,255,.018) 8px); }
.inspection-ledger-page { position:relative; width:1000px; height:650px; padding:48px 60px 42px 86px; color:#242824; background-color:#c8c5a9; background-image:linear-gradient(90deg,rgba(91,57,39,.2) 0 3px,transparent 3px),repeating-linear-gradient(0deg,rgba(46,70,65,.06) 0 1px,transparent 1px 28px); border:1px solid #716e5e; box-shadow:0 28px 85px rgba(0,0,0,.75),inset 28px 0 48px rgba(62,47,31,.12); transform:rotate(.18deg); }
.inspection-ledger-page::before { content:""; position:absolute; left:37px; top:0; bottom:0; border-left:2px solid rgba(133,62,52,.3); }
.inspection-ledger-page header { display:flex; justify-content:space-between; align-items:flex-end; padding-bottom:18px; border-bottom:3px double #55584f; }
.inspection-ledger-page header small { font:12px/1.2 "Galmuri11",sans-serif; letter-spacing:.09em; }
.inspection-ledger-page header h2 { margin:8px 0 0; font:28px/1.15 "Galmuri14",sans-serif; }
.inspection-ledger-page header b { font:14px/1.2 "Galmuri14",sans-serif; }
.inspection-meta { display:grid; grid-template-columns:170px 230px 1fr; align-items:center; gap:14px; padding:16px 0; border-bottom:1px solid #777a6c; font:13px/1.35 "Galmuri11",sans-serif; }
.inspection-meta strong { font:15px/1.35 "Galmuri14",sans-serif; text-align:right; }
.inspection-ledger-page table { width:100%; margin-top:14px; border-collapse:collapse; table-layout:fixed; }
.inspection-ledger-page th,.inspection-ledger-page td { padding:12px 13px; border:1px solid rgba(73,78,69,.62); text-align:left; vertical-align:top; }
.inspection-ledger-page thead th { color:#e2e2d5; background:#424943; font:12px/1.2 "Galmuri11",sans-serif; letter-spacing:.04em; }
.inspection-ledger-page tbody th { width:185px; color:#313832; background:rgba(64,77,68,.09); font:12px/1.4 "Galmuri11",sans-serif; }
.inspection-ledger-page tbody td { font:14px/1.55 "Galmuri14",sans-serif; word-break:keep-all; }
.inspection-ledger-page footer { position:absolute; left:86px; right:60px; bottom:35px; padding:13px 142px 0 0; border-top:1px solid #777a6c; }
.inspection-ledger-page footer small { font:11px/1 "Galmuri11",sans-serif; }
.inspection-ledger-page footer p { margin:7px 0 0; font:13px/1.55 "Galmuri14",sans-serif; }
.inspection-ledger-page footer b { position:absolute; right:8px; bottom:0; font:19px/1.2 "Hahmlet Variable",serif; font-style:italic; transform:rotate(-5deg); }

.reagent-fullscreen-scene { position:absolute; inset:0; overflow:hidden; background:#030708; }
.reagent-fullscreen-scene>img { width:100%; height:100%; display:block; object-fit:cover; }
.reagent-fullscreen-scene::after { content:""; position:absolute; inset:0; pointer-events:none; background:linear-gradient(180deg,rgba(0,0,0,.18),transparent 20% 68%,rgba(0,0,0,.62)); }
.reagent-fullscreen-label { position:absolute; z-index:2; left:50%; top:70%; bottom:auto; display:flex; align-items:center; gap:28px; min-width:650px; padding:20px 25px; transform:translate(-50%,-50%); border:1px solid rgba(224,207,161,.58); color:#ddd5bd; background:rgba(5,9,10,.86); box-shadow:0 12px 38px rgba(0,0,0,.55); backdrop-filter:blur(6px); }
.reagent-fullscreen-label div { flex:1; }
.reagent-fullscreen-label strong,.reagent-fullscreen-label span,.reagent-fullscreen-label small { display:block; }
.reagent-fullscreen-label strong { color:#f0e4bd; font:23px/1.2 "Galmuri11",sans-serif; letter-spacing:.09em; }
.reagent-fullscreen-label span { margin-top:5px; font:15px/1.35 "Galmuri11",sans-serif; }
.reagent-fullscreen-label small { margin-top:8px; color:#dc927e; font:14px/1.3 "Galmuri14",sans-serif; }
.reagent-fullscreen-label em { flex:0 0 232px; padding:15px 16px; color:#40372c; background:#d9c891; box-shadow:3px 5px 12px rgba(0,0,0,.4); font:20px/1.3 "Hahmlet Variable",serif; font-weight:760; text-align:center; white-space:nowrap; transform:rotate(-3deg); }

@media (max-height:760px) {
 .aged-subject-card { width:780px; height:520px; padding:38px 48px 34px; }
 .subject-card-grid { grid-template-columns:188px 1fr; gap:28px; padding-top:20px; }
 .subject-card-grid figure { height:235px; }
 .subject-card-grid p { font-size:13px; }
 .inspection-ledger-page { width:900px; height:575px; padding:38px 50px 35px 75px; }
 .inspection-ledger-page footer { left:75px; right:50px; bottom:26px; }
 .reagent-fullscreen-label { top:68%; min-width:min(650px,72vw); padding:14px 20px; }
}
@media (prefers-reduced-motion:reduce) { .aged-subject-card { transform:translate(-50%,-50%); } .inspection-ledger-page { transform:none; } }
