/* Phone/tablet layout override. No business logic or persistence. */
.mobile-nav-label,.mobile-check-text,.mobile-comparison,.mobile-loi-jumps{display:none}
.mobile-check-label{display:inline-flex;align-items:center;justify-content:center}
.advanced-loi{margin:0}.advanced-loi>summary{display:none}
@media screen and (max-width:900px){
 html{scroll-padding-top:72px}body{font-size:15px;padding-bottom:calc(96px + env(safe-area-inset-bottom));overflow-wrap:anywhere}
 .sidebar{position:relative;inset:auto;width:100%;height:auto;padding:18px 18px 16px;border-right:0;border-bottom:2px solid #b39351;display:block}
 .brand{font-size:22px;display:inline-block;padding:0;letter-spacing:2px}.brand span{font-size:9px;letter-spacing:1.8px}
 .workspace-label,.sidebar-bottom,.sidebar>p{display:none}
 .sidebar nav{position:fixed;z-index:80;bottom:0;left:0;right:0;width:100%;margin:0;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:0;padding:5px 5px calc(5px + env(safe-area-inset-bottom));background:#0b1f3a;border-top:1px solid #496078;overflow:visible;box-shadow:0 -3px 16px #10243a18}
 .sidebar nav a{min-width:0;min-height:58px;margin:0;padding:9px 3px;display:flex;align-items:center;justify-content:center;border:0;border-radius:6px;font-size:12px;white-space:normal;line-height:1.25;text-align:center;color:#d0d9e4;flex-shrink:1;overflow-wrap:normal}
 .sidebar nav a>span:not(.mobile-nav-label){display:none}.sidebar nav .mobile-nav-label{display:block}.sidebar nav a[aria-current=page]{background:#304966;color:white;box-shadow:inset 0 3px #c4a35a}
 .shell{margin:0}main{margin-left:0;padding:18px 16px;max-width:100%}.topbar{padding:0 16px;height:52px}.topbar-tools{gap:12px}.topbar .eyebrow,.topbar-divider{display:none}
 h1,.hero h1{font-size:34px;line-height:1.15}h2{font-size:25px}.hero{display:block;margin:22px 0}.hero-description{font-size:15px;line-height:1.65;max-width:none}.hero .button{margin-top:16px;font-size:15px}
 button,.button,.text-button,.text-link,.close-button,.save-button,.language{min-height:44px;touch-action:manipulation}button,.button{font-size:15px}.text-button,.text-link{display:inline-flex;align-items:center;justify-content:center;padding:8px}.language{min-width:52px;font-size:14px}
 input:not([type=checkbox]),select,textarea{font-size:16px!important;max-width:100%;min-height:46px}textarea{min-height:130px}label{font-size:14px}.small-note,.hint,.subtle,.notice{font-size:13px;line-height:1.55}
 .brain-sync-banner{padding:16px;margin-bottom:18px;font-size:14px}.sync-heading{align-items:flex-start;flex-direction:column;gap:12px}.sync-actions{width:100%;display:flex;gap:8px;flex-wrap:wrap}.sync-actions .button{flex:1 1 130px;text-align:center;justify-content:center}.brain-sync-banner p{font-size:13px}.trust-strip{font-size:12px;line-height:1.55}.trust-detail{font-size:12px}
 .metrics{grid-template-columns:repeat(2,minmax(0,1fr));margin-bottom:22px}.metric{padding:17px 13px;min-width:0}.metric-label{font-size:12px}.metric-value{font-size:30px;overflow-wrap:normal}.metric-note{font-size:12px}.metric:nth-child(3),.metric:nth-child(4){border-top:1px solid #dfe3e6}
 .attention-grid,.overview-bottom,.readiness-grid{grid-template-columns:1fr}.attention-card{display:flex;padding:18px;gap:8px}.attention-card h3{font-size:17px;line-height:1.4}.attention-card p{font-size:14px}.attention-card .text-button{align-self:flex-start;font-size:14px}
 .section-heading{align-items:flex-start;gap:12px}.section-heading .text-link{font-size:13px;max-width:none;white-space:nowrap}.section-heading>.subtle{display:none}
 .filter-bar{padding:16px;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.search-field,.filter-bar label:last-child{grid-column:1/-1}.filter-bar label{min-width:0}.filter-secondary{padding:0 16px 12px;flex-wrap:wrap;gap:12px}.filter-toggles{gap:10px}.checkbox-label{min-height:44px;display:flex;align-items:center}
 .removal-toolbar{padding:14px 16px;position:relative}.removal-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.removal-actions button{width:100%;min-width:0;font-size:14px;line-height:1.35;padding:9px 7px}.removal-actions #remove-selected{grid-column:1/-1;min-height:48px}.removal-actions #removed-view{grid-column:1/-1}.removal-toolbar p{font-size:13px}
 .table-meta{font-size:13px;align-items:flex-start;padding:12px 16px;gap:6px}.table-scroll:has(.property-table),.table-scroll:has(.pipeline-table){overflow:visible}
 .property-table,.pipeline-table{display:block;width:100%!important;min-width:0!important;table-layout:auto}
 .property-table thead,.pipeline-table thead{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap}
 .property-table tbody,.pipeline-table tbody{display:grid;gap:16px;width:100%;padding:12px;background:#f5f6f4}
 .property-table tbody tr,.pipeline-table tbody tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:100%;padding:16px;background:white;border:1px solid #d8dfe5;border-radius:10px;gap:12px;box-shadow:0 2px 6px #19314906}
 #properties-table .property-table td,.property-table td,.pipeline-table td{display:block;min-width:0!important;max-width:none!important;width:auto!important;padding:0;border:0;text-align:left;white-space:normal;overflow-wrap:anywhere;font-size:15px;line-height:1.5}
 .property-table td::before,.pipeline-table td::before{content:attr(data-label);display:block;color:#637080;font-size:12px;font-weight:600;line-height:1.3;margin-bottom:6px}
 .property-table td:has(.property-name),.property-table td:last-child,.property-table td.evidence-cell,.property-table td.property-select-cell{grid-column:1/-1}
 .property-table td:has(.property-name)::before,.property-table td.property-select-cell::before{display:none}
 .property-name{font-size:17px!important;font-weight:650;line-height:1.45;min-height:44px;display:flex;align-items:center;padding:0;white-space:normal!important;text-align:left}.property-subline{font-size:12px;margin-top:4px}.property-table .number{font-size:17px}.evidence-track{max-width:170px}
 .mobile-check-label{display:inline-flex;min-height:44px;min-width:44px;padding:7px 9px;gap:9px;cursor:pointer;background:#f5f7fa;border:1px solid #dfe4ea;border-radius:6px;font-size:14px}.mobile-check-text{display:inline}.mobile-check-label input{width:24px;height:24px;margin:0;flex-shrink:0}.property-select-cell .mobile-check-label{display:flex;width:100%;justify-content:flex-start}
 .row-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.row-actions .detail-button,.row-actions>a{flex:1;min-width:70px;background:#eef3f8;border:1px solid #d6dfe9;border-radius:6px;min-height:44px;font-size:15px}.row-actions .save-button{width:46px;height:44px;font-size:22px}.row-actions .mobile-check-label{width:100%;justify-content:flex-start}
 .pipeline-panel{padding:16px}.pipeline-heading{align-items:flex-start;flex-direction:column}.pipeline-heading .button{width:100%}.pipeline-table tbody{padding:0;background:transparent}.pipeline-table td:nth-child(1),.pipeline-table td:nth-child(2),.pipeline-table td:nth-child(3),.pipeline-table td:nth-child(6),.pipeline-table td:nth-child(7),.pipeline-table td:nth-child(8){grid-column:1/-1}
 .pipeline-table td:nth-child(1){display:flex;flex-wrap:wrap;align-items:flex-start;gap:10px}.pipeline-table td:nth-child(1)::before{width:100%;margin-bottom:0}.pipeline-table .proposal-label{flex:1;min-width:150px;font-size:13px}.proposal-label select{max-width:100%;width:100%}.pipeline-table small{font-size:13px;line-height:1.55}.pipeline-table td:nth-child(8){display:flex;flex-wrap:wrap;gap:8px}.pipeline-table td:nth-child(8)::before{width:100%}.pipeline-table td:nth-child(8)>button{flex:1 1 120px;margin:0;font-size:14px;padding:10px}.pipeline-table .tag{margin:0;font-size:13px}
 .compare-tray{left:12px;right:12px;bottom:calc(82px + env(safe-area-inset-bottom));transform:none;min-width:0;width:auto;gap:10px;padding:12px;flex-wrap:wrap}.compare-tray strong{font-size:14px}.compare-tray span{font-size:12px}.compare-tray .button{min-height:44px;padding:10px 14px}
 dialog.drawer{position:fixed;inset:0;width:100%;max-width:100%;height:100dvh;max-height:100dvh;margin:0;border-radius:0}.drawer .dialog-top{position:sticky;top:0;z-index:3;background:white;padding:12px 16px;border-bottom:1px solid #dfe3e6}.close-button{min-width:48px;min-height:48px;font-size:27px}.detail-head,.detail-section{padding:20px 16px}.detail-head h2{font-size:25px}.definition-grid{grid-template-columns:1fr}.calc-fields{grid-template-columns:1fr!important;gap:14px}.stage-track{grid-template-columns:1fr!important;gap:8px}.stage-track>div{padding:12px;min-width:0}.drawer .source-list a{display:block;min-height:44px;overflow-wrap:anywhere}
 .comparison-dialog,.pipeline-notes,.remove-dialog{width:calc(100% - 24px);max-width:680px;max-height:calc(100dvh - 32px);padding:18px;margin:auto;overflow:auto}.comparison-dialog .table-scroll{display:none}.mobile-comparison{display:grid;gap:16px}.mobile-compare-card{border:1px solid #dfe3e6;border-radius:8px;padding:16px}.mobile-compare-card h3{font-size:18px;line-height:1.5;margin:0 0 14px}.mobile-compare-card>div{display:grid;gap:3px;padding:10px 0;border-top:1px solid #e7ebef}.mobile-compare-card strong{font-size:12px;color:#637080}.mobile-compare-card span{font-size:15px;white-space:pre-wrap;overflow-wrap:anywhere}.remove-dialog .actions,.pipeline-notes .actions{flex-wrap:wrap}.remove-dialog .actions button{flex:1;min-height:46px}
 /* LOI: clear jump links, readable fields, advanced terms expandable. */
 .top{display:block;padding-bottom:18px}.top h1{font-size:30px}.top .actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:18px}.top .actions button{min-width:0;min-height:48px;padding:9px;font-size:13px}.top .actions #printLetter{grid-column:1/-1}
 .workspace{display:flex;flex-direction:column;gap:18px;width:100%}.formPanel,.previewColumn{width:100%;min-width:0}.formPanel{padding:18px}.formPanel fieldset{padding:0 0 18px;margin:0 0 18px;min-width:0}.formPanel label{font-size:14px}.formPanel input,.formPanel select,.formPanel textarea{width:100%}.formPanel legend{font-size:17px}.quickPresets{display:flex;flex-wrap:wrap;gap:8px}.quickPresets button{flex:1 0 56px;min-height:44px;font-size:15px}.attachmentActions{display:flex;flex-wrap:wrap;gap:10px}.attachmentActions a{min-height:44px;display:inline-flex;align-items:center}.dropZone{padding:24px 14px;min-height:140px}.candidate select{font-size:16px}.candidateCheck{min-height:44px}.candidateCheck input{width:24px;height:24px;flex-shrink:0}
 .mobile-loi-jumps{position:sticky;top:0;z-index:30;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px;margin:14px -2px;background:#f3f5f7;padding:8px 0;border-bottom:1px solid #d4dce5}.mobile-loi-jumps a{min-height:44px;display:flex;align-items:center;justify-content:center;border:1px solid #cbd6e0;border-radius:6px;background:white;font-size:14px;color:#163957;text-decoration:none}
 #loiForm,#math,#letter,#emailPreview{scroll-margin-top:76px}.advanced-loi{border:1px solid #dbe1e8;border-radius:8px;margin:12px 0;min-width:0}.advanced-loi>summary{display:list-item;cursor:pointer;min-height:50px;padding:14px;font-weight:650;font-size:15px;color:#193956}.advanced-loi>fieldset{margin:0;padding:0 14px 14px}.advanced-loi>fieldset>legend{display:none}
 #letter{padding:22px 16px;min-width:0;width:100%;font-size:14px}.letterBrand{gap:10px}.letterBrand strong{font-size:13px}.letterBrand .wordmark{flex-shrink:0}.letterRow{grid-template-columns:1fr!important;gap:5px;padding:10px 0}.letterSection h3{font-size:13px;letter-spacing:.02em}.signatures{grid-template-columns:1fr;gap:20px}.emailCard{padding:18px}.cardTop{align-items:flex-start;gap:12px;flex-wrap:wrap}#emailPreview,#extractedText{font-size:14px;white-space:pre-wrap;overflow-wrap:anywhere;word-break:break-word;max-width:100%}.money{padding:18px}.money #math{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.money strong{font-size:18px}
 footer{font-size:12px}.noscript{padding-bottom:90px}
}
@media screen and (max-width:359px){.sidebar nav a{font-size:11px}main{padding:16px 12px}.metric-value{font-size:26px}.filter-bar{grid-template-columns:1fr}.filter-bar label{grid-column:1/-1}.property-table tbody tr{padding:12px}.brain-sync-banner{padding:12px}.pipeline-table td{grid-column:1/-1}}
@media print{.mobile-nav-label,.mobile-comparison,.mobile-loi-jumps{display:none!important}.advanced-loi>summary{display:none}body{padding-bottom:0}}
