/* Compact desktop work surface; keep touch inputs legible on small screens. */
@media(min-width:651px){.app .main{padding:8px 12px}.app .main .topbar{margin-bottom:4px}.app .main .topbar h1{font-size:14px}.app .main .comparison-grid th,.app .main .comparison-grid td{font-size:12px;padding:4px 6px;vertical-align:middle}.app .main .comparison-grid small{font-size:11px}.app .compact-navigation{min-height:40px;padding:5px 12px}.app .main .sheet-tabs button{font-size:12px;padding:5px 12px}.app .main .project-head h2{font-size:14px}.app .main .grid-caption{font-size:11px}.app .main .compact-fold>summary{font-size:12px;padding:4px 0}}
.cell-note-popover{position:fixed;z-index:1000;pointer-events:none;max-width:min(360px,calc(100vw - 16px));max-height:60vh;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere;background:#fffce8;border:1px solid #c8b669;box-shadow:2px 3px 10px #0002;padding:8px 10px;font-size:12px;line-height:1.5;color:#202b36}.metric-note:focus-visible{outline:2px solid #2677bd;outline-offset:2px}
.comparison-grid tr.batch{display:table-row}.comparison-grid .batch button{margin:0}.master-sheet{margin-bottom:18px}.master-sheet h2{font-size:15px;margin:0}.project-tools button,.project-tools select{padding:6px 10px;font-size:12px;border-radius:3px;min-height:30px}.compact-navigation .work-nav .nav{border-radius:3px 3px 0 0;font-size:12px}.bom-table{font-variant-numeric:tabular-nums}.bom-table th{position:sticky;top:0;z-index:2}.bom-scroll{max-height:65vh}
.sheet-tabs{display:flex;gap:2px;border-bottom:1px solid #acbdcf;margin-top:8px}.sheet-tabs button{border:1px solid #cbd5df;border-radius:3px 3px 0 0;padding:7px 15px;background:#edf1f5;color:#334155}.sheet-tabs button[aria-selected="true"]{background:#fff;border-top:3px solid #2879b9;padding-top:5px;font-weight:600}.grid-filters{display:flex;flex-wrap:wrap;align-items:end;gap:8px;padding:9px 0}.grid-filters label{font-size:12px;display:flex;gap:4px;align-items:center;margin:0}.grid-filters input,.grid-filters select{width:auto;max-width:240px;padding:5px;font-size:12px;min-height:30px}.grid-filters input[type=date]{width:137px}.grid-filters button{padding:6px 9px}.grid-caption{font-size:11px;color:#596a7d;margin:4px 0 7px}.grid-scroll{overflow:auto;border:1px solid #bbc9d6;max-height:65vh;background:white}.comparison-grid{width:max-content;min-width:100%;font-variant-numeric:tabular-nums}.comparison-grid th{position:sticky;top:0;z-index:3;white-space:nowrap}.comparison-grid td,.comparison-grid th{border-right:1px solid #dbe2e9;padding:5px 8px;font-size:12px}.comparison-grid td{white-space:nowrap;vertical-align:middle}.comparison-grid tr:nth-child(even){background:#f5f8fa}.comparison-grid tbody tr:hover{background:#eaf3fb}.comparison-grid .freeze-material{position:sticky;left:0;background:#f7fafc;z-index:2;max-width:240px;white-space:normal;min-width:170px}.comparison-grid th.freeze-material{z-index:4;background:#edf3f8}.comparison-grid small{font-size:11px}.comparison-grid .metric-value{text-align:right;min-width:64px}.comparison-grid .metric-empty{color:#8793a0;text-align:center}.comparison-grid .metric-fail{background:#ffe4e4;color:#a21717;font-weight:600}.comparison-grid .metric-warning{background:#fff1c6;color:#805200;font-weight:600}.metric-note{display:block;cursor:help}.cell-corner{font-size:8px;margin-left:5px}.row-tools{white-space:nowrap}.comparison-grid .batch-comment .comment-body{position:fixed;right:22px;top:140px;max-height:60vh;overflow:auto}.project-tools{justify-content:flex-start;gap:8px;margin-bottom:6px}.project-tools .filters{margin-right:auto}.project-head{margin:5px 0 8px}.main .project-head h2{font-size:15px;margin:0}.main .project-head small{font-size:11px}.main .topbar{margin-bottom:6px}.main .topbar h1{font-size:16px}.main{padding:10px 14px}.sheet-tabs+[role=tabpanel]{min-height:250px}[role=tabpanel][hidden]{display:none!important}
.sidebar.compact-navigation{flex-direction:row;justify-content:flex-start;min-height:52px}.compact-navigation .brand{color:#173454}.compact-navigation .work-nav{flex-direction:row;display:flex}.compact-navigation .account .link,.product-grid .link{color:#176fbd;background:transparent;text-decoration:underline;border:0}.compact-navigation .brand>div{color:#173454}
body{font-size:14px}.app{display:block}.compact-navigation{position:static;width:100%;height:auto;padding:8px 18px;display:flex;align-items:center;gap:16px;background:#fff;color:#18212b;border-bottom:1px solid #dbe5ed}.compact-navigation .brand{padding:0;font-size:15px}.compact-navigation .brand small,.compact-navigation .avatar,.compact-navigation #roleName{display:none}.compact-navigation .account{margin:0 0 0 auto;padding:0;border:0;display:flex;align-items:center;gap:10px}.compact-navigation .account strong{font-size:12px}.compact-navigation .nav{color:#34495c;padding:6px 10px;margin:0;white-space:nowrap}.compact-navigation .nav.active{background:#eaf4ff;color:#175b94}.work-nav{display:flex;order:1}.tool-menu{position:relative;order:2}.tool-menu summary{cursor:pointer;font-size:12px}.tool-menu nav{position:absolute;top:100%;right:0;z-index:12;background:white;border:1px solid #dbe5ed;box-shadow:0 6px 20px #17345420;min-width:160px;padding:8px}.account{order:3}.main{padding:16px 22px}.topbar{margin-bottom:12px}.topbar h1{font-size:20px}.topbar .eyebrow,.topbar #pageSubtitle{display:none}.panel{padding:14px}.panel h2,.project-head h2{font-size:17px}.panel h3{font-size:15px}input,select,textarea{font-size:14px}.measure input,.measure select{font-size:15px}button{font-size:13px}.banner{padding:8px 12px;font-size:12px}.compact-fold{margin:10px 0}.compact-fold>summary{cursor:pointer;color:#175b94;padding:8px 0}.product-grid{border-collapse:collapse;width:100%;font-size:13px}.product-grid th,.product-grid td{border-bottom:1px solid #dbe5ed;padding:8px;text-align:left;vertical-align:top}.product-grid th{background:#edf3f8}.product-grid small{display:block;color:#64748b;font-size:12px}.product-grid button{padding:4px 8px}.batch-comment{position:relative;display:inline-block}.batch-comment summary{cursor:help;list-style:none;border-bottom:1px dotted #a55b00;white-space:nowrap}.batch-comment summary::after{content:' ◢';color:#b83131}.batch-comment .comment-body{display:none;position:absolute;right:0;top:100%;z-index:10;width:300px;max-width:75vw;background:#fffce8;border:1px solid #d8c681;box-shadow:0 4px 16px #0002;padding:10px;color:#18212b;font-weight:normal;white-space:normal;line-height:1.5}.batch-comment:hover .comment-body,.batch-comment:focus-within .comment-body,.batch-comment[open] .comment-body{display:block}.comment-body p{margin:4px 0}.batch-actions{display:flex;flex-wrap:wrap;gap:8px}.handling-choice{margin-top:16px;border-top:1px solid #dbe5ed;padding-top:12px}
@media(max-width:650px){.compact-navigation{flex-wrap:wrap;padding:8px;gap:8px}.main{padding:12px 8px}.compact-navigation .brand small{display:none}.product-grid td,.product-grid th{padding:6px 3px}.product-grid small{overflow-wrap:anywhere}input,select,textarea,.measure input,.measure select{font-size:16px}.product-grid button{min-height:36px}.batch-comment .comment-body{position:fixed;right:8px;top:25%;max-width:90vw}.compact-navigation .account strong{max-width:120px}}
