/* Phone layout. Desktop investigation desk remains unchanged. */
.phone-nav,.phone-dock,.phone-board{display:none}
@media(max-width:760px){
html{scroll-padding-top:130px}body{font-size:17px;-webkit-text-size-adjust:100%;overflow-wrap:anywhere}*{min-width:0}button,input,textarea,select{font-size:16px}button{min-height:46px;padding:12px 15px;touch-action:manipulation}input,select{min-height:48px;width:100%}input[type=checkbox]{width:23px;height:23px;min-height:23px;flex-shrink:0;vertical-align:middle;margin-right:8px}textarea{font-size:17px;line-height:1.75;min-height:230px}header{position:relative;display:flex;flex-wrap:wrap;gap:10px;padding:12px 15px;border-bottom-width:3px}header .brand{font-size:11px;letter-spacing:2px}header .meta{display:none}header>.row{width:100%;display:grid;grid-template-columns:auto 1fr 1fr;gap:8px}header .timer{font-size:12px}header button.secondary{font-size:12px;padding:10px 6px;min-height:42px}header>.tag{font-size:10px}.hero{padding:25px 17px 70px;margin:0 auto}.hero h1{font-size:49px;letter-spacing:-2px}.hero .lead{font-size:18px;line-height:1.65}.hero .library-small{font-size:14px;line-height:1.8}.folders{display:block}.folder-card{margin:30px 0 42px;transform:none!important;padding:28px 20px 20px}.folder-card h2{font-size:27px}.folder-card button{width:100%;margin-top:5px}.folder-card .red-stamp{font-size:9px}.mode-switch{display:flex;width:100%}.mode-switch button{font-size:14px;width:50%;padding:12px 5px}.hero-copy .row{gap:15px}.hero-copy .red-stamp{font-size:12px}.hero-copy .tag{font-size:10px}.shelf-head{margin-bottom:22px}.layout{display:block;width:100%}.layout aside{position:sticky;top:0;z-index:20;background:#dfd3b9;border-bottom:1px solid #a99a7b;padding:9px 13px;min-height:0}.layout aside>.status,.layout aside>nav{display:none}.phone-nav{display:block}.phone-nav label{display:none}.phone-nav select{margin:0;font:600 15px Arial;padding:11px 12px;height:46px;background:#faf3e0;border:1px solid #968766}.layout main{padding:24px 16px 105px;max-width:100%;overflow-wrap:anywhere}.layout main h1{font-size:36px!important;line-height:1.14;letter-spacing:-1px}.layout main h2{font-size:29px}.layout main h3{font-size:22px}.eyebrow{font-size:11px;letter-spacing:1.6px}.document{padding:29px 19px;margin:20px 0}.document p{font-family:Arial,sans-serif;font-size:17px;line-height:1.85;white-space:pre-line;overflow-wrap:anywhere}.document.inspection p{font-size:20px}.document h2{font-size:27px}.document .stamp{font-size:11px;line-height:1.7;padding-bottom:14px}.document:after{display:none}.notice{padding:16px;font-size:16px;line-height:1.75}.evidence-grid,.split,.lab-grid{display:grid;grid-template-columns:1fr;gap:16px}.evidence-card{padding:23px 19px;text-align:left;min-height:125px;touch-action:pan-y}.evidence-card h3{font-size:23px;line-height:1.35}.evidence-card .meta{font-size:13px}.search{margin-bottom:24px;padding:14px}.row>button{flex:1}.layout main>.row{gap:9px}.layout main>.row>button{min-width:125px}.lab-grid .card{padding:22px 17px}.lab-card-title{align-items:flex-start}.lab-grid p{font-size:16px}.dial{width:165px;height:165px}.print-options{gap:9px}.print-choice{min-width:0;width:31%;font-size:13px;min-height:85px;padding:12px 5px}.event-chip{display:grid;grid-template-columns:1fr auto;padding:12px;gap:8px;font-size:15px}.event-chip .row{flex-wrap:nowrap;gap:7px}.event-chip button{min-width:43px;min-height:46px;padding:7px}.cipher-readout{font-size:21px;letter-spacing:3px}.phone-dock{position:fixed;bottom:0;left:0;right:0;z-index:30;display:grid;grid-template-columns:repeat(4,1fr);gap:4px;padding:8px 8px calc(8px + env(safe-area-inset-bottom));background:#20382ff5;border-top:1px solid #b69b66;box-shadow:0 -3px 12px #0002}.phone-dock button{border:0;background:transparent;color:#f2e4c6;font-size:12px;padding:7px 2px;min-height:46px;box-shadow:none;letter-spacing:0}.phone-dock button.current{background:#53664d;color:#fff5d6}.phone-dock button span{display:block;font-size:18px;line-height:1.1;margin-bottom:4px}.phone-board{display:block}.phone-paper{background:#f6ecd6;border:1px solid #b4a17c;padding:22px 18px;margin:18px 0;position:relative;box-shadow:2px 4px 6px #49341b20}.phone-paper:before{content:'';position:absolute;top:-5px;left:43%;width:47px;height:13px;background:#d5b56d90;transform:rotate(-4deg)}.phone-paper.selected{border:3px solid #a72e25}.phone-paper h3{margin:8px 0}.phone-paper .row{margin-top:15px}.phone-paper p{font-size:15px;color:#5a594a}.phone-paper button{font-size:14px;padding:11px 8px}.phone-string{border-left:3px solid #ac3026;margin:16px 0;padding:13px 16px;background:#e8dcc3;font-size:15px}.phone-string strong{display:block}.phone-string button{font-size:13px;margin-top:10px}.board-help{font-size:14px;color:#6b604a}table{font-size:14px;table-layout:fixed}td,th{padding:9px 6px;overflow-wrap:anywhere}#verdict select{font-size:15px;max-width:100%}#verdict .card{padding:18px;min-height:64px;font-size:16px;line-height:1.6}#connection select{font-size:15px}body:has(textarea:focus) .phone-dock,body:has(input:focus) .phone-dock{display:none}.footer{line-height:1.8;font-size:12px}
}
@media(min-width:761px){.phone-dock{display:none!important}}
@media(max-width:360px){.layout main{padding-left:12px;padding-right:12px}.hero h1{font-size:43px}.document{padding:25px 15px}.mode-switch button{font-size:13px}.layout main h1{font-size:32px!important}}
