@font-face{font-family:system;src:local('Arial')}*{box-sizing:border-box} :root{color-scheme:dark;--bg:#0a0e10;--panel:#13191c;--field:#0b1012;--line:#323b40;--text:#f5f6f7;--muted:#a5afb6;--red:#ff122b;--green:#22dd78;--soft:#221216}body{margin:0;background:var(--bg);color:var(--text);font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;font-size:15px}button,input,textarea,select{font:inherit}button{cursor:pointer}button:disabled{opacity:.55;cursor:wait}button:focus-visible,a:focus-visible{outline:3px solid #fd8893;outline-offset:3px}button{border:0;color:inherit;background:none}input,textarea,select{width:100%;min-width:0;padding:11px 12px;border:1px solid var(--line);border-radius:6px;background:var(--field);color:var(--text)}input:focus,textarea:focus,select:focus{outline:2px solid var(--red);outline-offset:1px}textarea{resize:vertical;min-height:90px}h1,h2,h3,p{margin-top:0}h1{font-size:32px;letter-spacing:-.9px;margin-bottom:10px}h2{font-size:19px;letter-spacing:-.3px}small,.muted{color:var(--muted)}[hidden]{display:none!important}.brand{font-weight:950;font-size:26px;letter-spacing:.4px;white-space:nowrap}.brand span{color:var(--red)}.eyebrow{font-size:8px;letter-spacing:1.6px;margin:8px 0 28px}.primary{background:var(--red);color:white;border-radius:7px;padding:12px 20px;font-weight:650}.quiet{border:1px solid var(--line);border-radius:7px;padding:10px 15px}.text-button{color:var(--red);padding:5px 0;font-weight:600}.icon{font-size:24px;padding:6px 9px;min-width:40px;min-height:40px}.auth{min-height:100vh;display:grid;grid-template-columns:1fr 1fr;background:radial-gradient(ellipse at 85% 70%,#241217 0,transparent 50%),var(--bg)}.auth-card{max-width:580px;margin:auto;padding:70px}.auth h1{font-size:46px;line-height:1.1;margin-top:65px}.auth p{color:var(--muted);line-height:1.6}.auth button{display:block;margin:22px 0;width:100%}.auth small{display:block;line-height:1.6;font-size:12px}.auth-art{margin:50px 45px 50px 0;border:1px solid #ffffff10;border-radius:20px;background:linear-gradient(140deg,#182125,#0d0e10 65%);display:grid;place-content:center;position:relative;overflow:hidden}.auth-art:before{content:'';height:1px;width:700px;background:var(--red);position:absolute;transform:rotate(-45deg);bottom:15%;right:-110px;box-shadow:0 0 35px 6px #e3062530}.mini-sheet{background:#fafafa;color:#111;padding:35px;width:300px;transform:rotate(-7deg);box-shadow:0 35px 80px #0008;border-radius:4px}.mini-sheet p{font-size:14px;color:#111}.mini-sheet b{color:var(--red)}.mini-sheet h2{font-size:27px}.mini-sheet hr{border:0;height:2px;background:var(--red)}.sheet-lines{height:35px;border:1px solid #ddd;border-top:0}.art-caption{color:#f5f6f7;position:relative;font-size:27px;font-weight:600;margin:50px 0 0 25px}#workspace{min-height:100vh;display:flex}aside{position:fixed;top:0;bottom:0;width:260px;padding:15px 19px;background:linear-gradient(150deg,#121a1e,#080c0e);border-right:1px solid #293136;display:flex;flex-direction:column;z-index:20}.sidebar-top{display:flex;justify-content:space-between;color:var(--muted)}#close-menu{display:none}.company-mark{height:120px;display:grid;place-content:center;text-align:center;margin:8px 0 16px}.company-mark img{max-height:125px;max-width:195px;object-fit:contain}.monogram{font-weight:950;font-size:55px;letter-spacing:-5px;color:#fff;text-shadow:3px 3px var(--red)}.company-mark small{letter-spacing:4px;color:var(--muted);font-size:10px}aside>.brand{font-size:25px;text-align:center}aside>.eyebrow{text-align:center;font-size:7px;margin-bottom:32px}nav>p{font-size:10px;letter-spacing:1.6px;color:var(--muted);margin:22px 12px 10px}nav button{display:flex;align-items:center;gap:13px;width:100%;text-align:left;padding:14px 12px;margin-bottom:5px;border-radius:7px;font-size:19px}nav button span{font-size:14px}nav button span:nth-child(2){flex:1}nav button:hover{background:#ffffff08}nav button.selected{background:#3b1119;color:#ff3349;border-left:3px solid var(--red);padding-left:9px}.account{display:flex;align-items:center;gap:11px;margin-top:auto;padding:20px 0 5px;border-top:1px solid var(--line)}.avatar{display:grid;place-content:center;background:#303a40;width:40px;height:40px;border-radius:50%;font-size:18px}.account small{display:block;font-size:11px;margin-top:3px}.account div{flex:1}.main-wrap{margin-left:260px;width:calc(100% - 260px)}.topbar{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid #263035;min-height:77px;padding:15px 40px;gap:12px}.topbar>div{display:flex;align-items:center;gap:23px}#breadcrumb{font-size:13px;color:var(--muted)}.connection{color:var(--muted);font-size:12px}.connection:before{content:'●';color:var(--green);margin-right:8px}#menu{display:none}.preview-banner{font-size:11px;text-align:center;padding:9px;background:#221315;color:#e8b6bb;letter-spacing:.8px}main{padding:36px 40px 60px;max-width:1680px;margin:auto}.page-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:30px;gap:18px}.page-heading p{color:var(--muted);margin:0}.date{font-size:14px}.overline{color:var(--red);font-size:12px;font-weight:750;letter-spacing:1.5px;text-transform:uppercase;margin-bottom:12px}.dashboard-grid{display:grid;grid-template-columns:minmax(350px,1.25fr) minmax(270px,1fr);gap:22px;align-items:start}.stack{display:grid;gap:22px}.panel{background:linear-gradient(135deg,#172024,#0d1215);border:1px solid var(--line);border-radius:11px;padding:20px;overflow:hidden}.panel-header{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);padding-bottom:15px;margin-bottom:18px;gap:12px}.panel-header h2{position:relative;margin:0}.panel-header h2:before{content:'';position:absolute;width:4px;left:-20px;top:-1px;bottom:-1px;background:var(--red);border-radius:2px}.pill{padding:7px 12px;border-radius:5px;background:#123723;color:var(--green);font-size:10px;font-weight:800;letter-spacing:.3px;white-space:nowrap}.pill.blue{background:#103043;color:#64ceff}.punches{display:flex;gap:28px;padding-bottom:22px}.punches>div{flex:1;border-right:1px solid var(--line)}.punches>div:last-child{border:0}.punches small{display:block;margin-bottom:7px}.punches strong{font-size:22px}.timeline{border-left:1px solid #6b242b;margin-left:7px}.timeline>div{padding:0 0 22px 24px;position:relative}.timeline>div:before{content:'';width:10px;height:10px;border-radius:50%;background:var(--red);position:absolute;left:-5.5px;top:4px}.timeline small,.timeline strong{display:block;margin:6px 0}.timeline time{color:#c2c9ce;font-size:12px}.timeline .hours{float:right;color:var(--muted);font-size:12px}.panel-footer{display:flex;justify-content:flex-end;border-top:1px solid var(--line);padding-top:13px}.row{display:flex;gap:14px;align-items:center;padding:12px 0;border-bottom:1px solid #ffffff0d}.row:last-child{border-bottom:0}.row strong{flex:1;font-size:14px}.row small{font-size:12px}.todo input{accent-color:var(--red);width:19px;height:19px;flex-shrink:0}.todo:has(input:checked) span{text-decoration:line-through;color:var(--muted)}.note-title{font-weight:650;margin-bottom:9px}.note-body{color:var(--muted);font-size:14px;line-height:1.6}.empty{padding:22px 0;color:var(--muted);line-height:1.7}.form-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;max-width:850px}.choice{text-align:left;background:var(--panel);border:1px solid var(--line);border-radius:9px;padding:27px}.choice b{font-size:20px;display:block;margin:15px 0 10px}.choice .glyph{color:var(--red);font-size:30px}.choice:hover{border-color:var(--red)}.choice small{line-height:1.6}.editor{max-width:1050px;margin:auto}.editor.paper{background:#fff;color:#111;padding:30px;border-radius:10px;color-scheme:light;--field:#fcfcfd;--text:#111;--line:#d7dce0;--muted:#5c6570}.editor h2{font-size:16px;margin:7px 0 17px}.fields{display:grid;grid-template-columns:1fr 1fr;gap:16px 24px;margin-bottom:25px}.field{display:grid;gap:7px;font-size:12px}.field.wide{grid-column:1/-1}.fields input{padding:10px}.editor section{padding:18px 0;border-bottom:1px solid var(--line)}.editor section:first-child{padding-top:0}.editor textarea{margin-top:6px}.grid-wrap{overflow:auto;border:1px solid var(--line);border-radius:6px}.form-grid{width:100%;border-collapse:collapse;font-size:13px}.form-grid th{text-align:left;background:#ffffff08;font-weight:650}.form-grid td,.form-grid th{padding:9px;border-bottom:1px solid var(--line);border-right:1px solid var(--line)}.paper .form-grid th{background:#f0f2f4}.form-grid input{padding:8px;border:1px solid transparent;border-radius:3px;background:transparent}.form-grid input:hover{border-color:var(--line)}.form-grid .qty{width:85px}.worksheet{min-width:1120px}.worksheet th{min-width:78px}.worksheet th:first-child,.worksheet th:nth-last-child(2){min-width:185px}.worksheet .pair{display:flex;gap:2px}.worksheet .pair input{width:50%;padding:6px 2px;text-align:center}.worksheet .pair input:last-child{color:var(--red)}.editor-actions{display:flex;justify-content:space-between;align-items:center;padding-top:25px;gap:20px}.copies{display:flex;gap:7px}.copies button{padding:8px 17px;border:1px solid var(--line);border-radius:5px;color:var(--text)}.copies button.active{background:var(--red);color:white;border-color:var(--red)}.files-toolbar{display:flex;gap:15px;margin-bottom:20px}.files-toolbar input{max-width:450px}.files-table{width:100%;border-collapse:collapse;font-size:14px}.files-table td,.files-table th{padding:18px 14px;border-bottom:1px solid var(--line);text-align:left}.files-table th{color:var(--muted);font-size:11px;text-transform:uppercase;letter-spacing:1px}.files-table button{color:var(--red)}#notice{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);padding:14px 20px;background:#292f34;border:1px solid #73808c;border-radius:8px;max-width:min(650px,90vw);z-index:50;font-size:14px}.settings-panel{max-width:750px}.settings-panel p{color:var(--muted);line-height:1.7}.status-callout{background:var(--soft);border-left:3px solid var(--red);padding:16px;border-radius:5px;line-height:1.7}.print-only{display:none}:root.light{--bg:#f2f4f6;--panel:white;--field:#fff;--line:#ccd2d7;--text:#1c2125;--muted:#65707a;--soft:#ffecef;color-scheme:light}:root.light aside{background:#fff}:root.light .panel{background:white}:root.light .row{border-color:#ddd}:root.light nav button.selected{background:#ffe5e8;color:#a30019}:root.light .preview-banner{background:#ffe5e8;color:#7c1325}:root.light .auth{background:var(--bg)}:root.light .monogram{color:#111}:root.light .account .avatar{color:white}
@media(min-width:1450px){main{padding:45px 65px}.topbar{padding-left:65px;padding-right:65px}.dashboard-grid{gap:28px}.panel{padding:25px}.panel-header h2:before{left:-25px}.punches{padding:10px 0 30px}.timeline>div{padding-bottom:32px}}
@media(max-width:1050px){aside{width:225px;padding:15px}.main-wrap{margin-left:225px;width:calc(100% - 225px)}main{padding:25px}.topbar{padding:15px 25px}.dashboard-grid{grid-template-columns:1fr}.auth-card{padding:40px}.auth h1{font-size:38px}.company-mark{height:90px}.company-mark img{max-height:100px}.brand{font-size:23px}}
@media(max-width:720px){.auth{display:block}.auth-art{display:none}.auth-card{padding:40px 28px}.auth h1{margin-top:55px}aside{transform:translateX(-100%);width:260px;box-shadow:20px 0 70px #0008}aside.open{transform:none}.main-wrap{margin:0;width:100%}#menu,#close-menu{display:inline-block}.topbar{padding:10px 15px}.topbar>div{gap:10px}#breadcrumb{display:none}.connection{font-size:11px}main{padding:25px 17px}.page-heading{align-items:start}.page-heading h1{font-size:27px}.page-heading .primary{padding:10px;font-size:12px}.dashboard-grid{grid-template-columns:minmax(0,1fr)}.form-choices{grid-template-columns:1fr}.editor.paper{padding:17px}.fields{grid-template-columns:1fr}.field.wide{grid-column:auto}.editor-actions{flex-direction:column;align-items:stretch}.copies button{flex:1}.files-table th:nth-child(2),.files-table td:nth-child(2){display:none}.files-table td,.files-table th{padding:12px 7px;font-size:12px}.preview-banner{font-size:8px}.punches{gap:15px}.punches strong{font-size:19px}}
@media(prefers-reduced-motion:no-preference){aside{transition:transform .16s ease}button{transition:background-color .12s,border-color .12s}}
@media print{body{background:white;color:black}aside,.topbar,.preview-banner,.page-heading,.editor-actions,#notice,.no-print{display:none!important}.main-wrap{margin:0;width:100%}main{padding:0;max-width:none}.editor,.editor.paper{padding:0;border:0;background:white;color:black;max-width:none}.print-only{display:block}.print-header{display:flex;justify-content:space-between;border-bottom:2px solid #ff122b;margin-bottom:20px;padding:15px 0}.print-header h1{font-size:30px}input,textarea,select{border:0!important;background:white!important;color:black!important;padding:2px!important}.field{break-inside:avoid}.grid-wrap{overflow:visible;border-color:#bbb}.form-grid{font-size:11px}.form-grid td,.form-grid th{border-color:#aaa}.form-grid tr{break-inside:avoid}.form-grid thead{display:table-header-group}.worksheet{min-width:0}.worksheet th{min-width:0}.worksheet th:first-child,.worksheet th:nth-last-child(2){min-width:0}.worksheet td,.worksheet th{padding:2px}.worksheet input{font-size:9px}.editor section{break-inside:avoid}.editor section:has(.grid-wrap){break-inside:auto}.editor{--line:#aaa;--text:#111;--muted:#555}.fields{grid-template-columns:1fr 1fr}.field.wide{grid-column:1/-1}@page{size:letter;margin:.4in}}

.editor input[type="checkbox"]{width:20px;min-width:20px;height:20px;accent-color:var(--red)}
.editor input[type="datetime-local"]{min-width:210px}

.editor-actions{flex-wrap:wrap}.editor-actions>div:last-child{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}.editor-actions button{min-height:42px}

.file-breadcrumbs{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:-10px 0 22px;color:var(--muted);font-size:14px}.file-breadcrumbs button{color:var(--red);padding:5px 0;text-align:left}.folder-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:16px}.job-folder{display:flex;align-items:center;gap:15px;text-align:left;padding:21px 18px;background:var(--panel);border:1px solid var(--line);border-radius:9px;min-height:115px}.job-folder:hover{border-color:var(--red)}.folder-symbol{font-size:37px;color:var(--red);flex-shrink:0}.job-folder>span:nth-child(2){min-width:0;flex:1;overflow-wrap:anywhere}.job-folder strong,.job-folder b,.job-folder small{display:block}.job-folder strong{font-size:17px}.job-folder b{font-weight:500;margin:6px 0}.job-folder small{margin-top:6px;font-size:12px;line-height:1.5}.folder-chevron{color:var(--muted);font-size:24px}.folder-details{display:flex;gap:16px;align-items:center;justify-content:space-between;flex-wrap:wrap;margin-bottom:22px}.folder-details h2{margin:0 0 6px}.folder-details p{margin:0;color:var(--muted)}.folder-edit{display:grid;grid-template-columns:2fr 1fr;gap:16px;width:100%;border-top:1px solid var(--line);padding-top:18px}.folder-edit>div,.folder-edit>small{grid-column:1/-1}.files-scroll{overflow-x:auto}.file-warning{display:block;color:#e5ac64;margin-top:6px}.files-table td{overflow-wrap:anywhere}.category-folder{min-height:90px}@media(max-width:650px){.folder-edit{grid-template-columns:1fr}.folder-grid{grid-template-columns:1fr}}

.team-filters{display:flex;gap:12px;margin-bottom:20px}.team-filters input{flex:2}.team-filters select{flex:1}.team-fields{border:0;padding:0}.task-summary{flex:1}.task-summary small{display:block;white-space:pre-wrap;margin-top:6px}.files-table td{white-space:normal;overflow-wrap:anywhere}@media(max-width:650px){.team-filters{flex-direction:column}}

.shared-note-text{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.5}aside nav{overflow-y:auto;min-height:0}.account{flex-shrink:0}

.danger-text{color:var(--red,#ff182e);border:1px solid currentColor;border-radius:8px;padding:8px 12px;background:transparent}.danger-text:disabled{opacity:.5}

.form-more{display:inline-block;position:relative;margin-left:12px}.form-more summary{cursor:pointer;padding:8px 14px}.form-more[open]>button{position:absolute;right:0;z-index:4;white-space:nowrap;background:var(--panel,#222);padding:14px}

/* Compact Messages cards: sender, form/copy, job metadata, then a quiet timestamp. */
.message-inbox{display:grid;gap:7px;max-width:760px}
.message-card{display:flex;align-items:center;gap:10px;width:100%;padding:10px;border:1px solid var(--line,#363a3d);border-radius:10px;background:var(--panel,#131718);color:inherit;text-align:left;font:inherit;cursor:pointer;min-width:0}
.message-content{display:flex;flex:1;min-width:0;flex-direction:column;gap:3px}.message-sender{font-size:14px;line-height:1.25}.message-form-line{display:flex;align-items:center;flex-wrap:wrap;gap:5px}.message-form{font-size:12px;font-weight:600;color:var(--red,#ff1025)}.message-job{font-size:12px;line-height:1.35;overflow-wrap:anywhere}.message-date,.message-recipient{font-size:11px;color:var(--muted,#a8afb7)}.message-body{font-size:12px;color:var(--muted,#a8afb7);overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.text-message{cursor:default}.text-message .message-body{white-space:pre-wrap}.message-copy{font-size:10px;font-weight:600;border-radius:4px;padding:2px 5px;background:#e5e5e5;color:#222;white-space:nowrap}.message-copy.yellow{background:#ffe67a}.message-copy.pink{background:#ffbfd1}.message-thumbnail{display:block;flex:none;width:32px;height:44px;background:white;border-radius:3px;overflow:hidden;pointer-events:none}.message-paper{display:grid;place-items:center;height:100%;font-size:26px;color:#ef1025}.message-chevron{color:var(--muted,#a8afb7);font-size:20px}.message-status{font-size:12px;color:var(--muted,#a8afb7)}.message-compose{max-width:760px}.message-compose>summary{cursor:pointer;font-size:14px;font-weight:600;color:var(--red,#ff1025)}.message-compose[open]>summary{margin-bottom:14px}.message-card:hover{border-color:var(--red,#ff1025)}.message-card:focus-visible{outline:2px solid var(--red,#ff1025);outline-offset:2px}

/* Desktop counterpart of the native Reference forms and dashboard. */
:root{--red:#ff001c;--bg:#090d0e;--panel:#111719;--field:#101619;--line:#384043;--soft:#2a0c10}
.page-heading .overline{font-size:12px;font-weight:800;letter-spacing:2px;color:var(--red)}
.page-heading h1{letter-spacing:-.6px}.panel{border-radius:10px;background:linear-gradient(135deg,#171d1f,#0b0f10);box-shadow:none}.panel-header{padding-bottom:12px;border-bottom:1px solid var(--line)}.panel-header h2:before{background:#ff001c;width:4px;border-radius:1px}.pill{border-radius:6px;font-size:10px;font-weight:800;background:#00e75a;color:#000;white-space:nowrap}.pill.blue{background:#13acf2}.dashboard-company{text-align:center;margin:-12px 0 25px}.dashboard-company img{width:190px;max-height:145px;object-fit:contain}.dashboard-grid .stack{gap:14px}.dashboard-grid .panel{padding:18px}.dashboard-grid .panel-header h2:before{left:-18px}.dashboard-grid .panel-header h2{font-size:18px}.dashboard-grid .panel .panel{border:0;padding:0;background:none}.dashboard-grid .row{gap:10px;padding:10px 0}.dashboard-grid .punches{padding:3px 0 16px}.dashboard-grid .timeline>div{padding-bottom:16px}.dashboard-grid .timeline>div:before{background:var(--red)}.dashboard-grid .todo input{accent-color:var(--red)}.form-choices{display:block;max-width:720px;border:1px solid var(--line);border-radius:10px;overflow:hidden}.form-choices .choice{width:100%;border:0;border-bottom:1px solid var(--line);border-radius:0;display:grid;grid-template-columns:38px 1fr auto;align-items:center;gap:16px;padding:22px}.form-choices .choice:last-child{border-bottom:0}.form-choices .choice b{font-size:17px;font-weight:500;margin:0}.form-choices .choice small{display:none}.form-choices .choice:after{content:'›';font-size:26px;color:var(--muted)}
.native-editor{max-width:1144px;border:0!important;padding:0!important;background:none!important;box-shadow:none}.native-editor.paper{max-width:760px;padding:0!important;background:white!important;--line:#cfd4d8;--field:#fbfcfd;border-radius:9px;overflow:hidden}.native-editor.paper>section,.native-editor.paper>.field,.native-editor.paper>.editor-actions{margin-left:20px;margin-right:20px}.native-editor .form-section{border:1px solid var(--line);border-radius:12px;padding:18px;margin:0 0 14px;background:linear-gradient(130deg,#1b2225,#0d1112)}.native-editor.paper .form-section{background:white;border:0;border-bottom:1px solid #e6e8ea;border-radius:0;padding:14px 0;margin-bottom:0}.native-editor section h2{display:flex;align-items:center;gap:12px;font-size:15px;margin:0 0 14px;font-weight:650}.native-editor:not(.paper) section h2:after{content:'';height:1px;flex:1;background:var(--red)}.native-editor .fields{margin:0;gap:14px}.native-editor .field{font-size:13px;gap:6px;min-width:0}.native-editor input,.native-editor select{min-height:36px;padding:7px 10px;font-size:13px;border-radius:5px}.native-editor textarea{font-size:13px;line-height:1.5;min-height:76px;border-radius:5px;resize:vertical}.native-editor textarea[data-key="description"]{min-height:110px}.native-editor .detail-lines{display:grid;gap:8px}.native-editor .detail-lines .field{grid-template-columns:130px minmax(0,1fr);align-items:center;gap:14px}.native-editor .terms select{max-width:180px}.native-editor .invoice-details{grid-template-columns:1fr 1fr;gap:10px 24px}.native-editor .invoice-details .field{grid-template-columns:110px minmax(0,1fr)}.native-editor .invoice-details .terms{grid-column:1/-1}.native-editor .address-pair{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin-top:18px;padding-top:16px;border-top:1px solid #e6e8ea}.native-editor .address-box>div{border:1px solid #d7dce0;background:#fcfcfd;border-radius:5px;padding:8px}.native-editor .address-box h2{margin-bottom:5px}.native-editor .address-box input{border:0;border-radius:0;background:transparent;min-height:27px;padding:3px;font-size:13px}.native-editor .job-code{margin-top:14px}.form-number{display:flex;align-items:center;gap:16px;padding:18px 20px;background:var(--bg);color:var(--text)}.form-number>.field{flex:1}.form-number input{font-size:20px;font-weight:700;border:0;background:transparent;color:var(--text);padding-left:0}.form-number>span{font-size:10px;border:1px solid var(--red);padding:5px 8px;border-radius:4px}.native-editor.paper .form-number{color:#f4f5f6;--text:#f4f5f6}.native-editor .form-grid{table-layout:fixed}.native-editor .form-grid td,.native-editor .form-grid th{padding:0;height:30px;font-size:12px}.native-editor .form-grid th{height:29px;padding:5px 7px;background:#1c2427}.native-editor.paper .form-grid th{background:#eee;color:#111}.native-editor .form-grid input{min-height:29px;width:100%;border:0;border-radius:0;padding:5px 7px;font-size:12px}.native-editor .form-grid input:focus{outline:2px solid var(--red);outline-offset:-2px}.native-editor .form-grid textarea{margin:0;border:0;border-radius:0;min-height:30px;resize:none;padding:5px 7px;font-size:13px;display:block}.native-editor .order-items th:first-child{width:80px}.native-editor .order-items th:last-child{width:32px}.native-editor .order-items button{color:#ed0022;width:30px;height:30px}.native-editor .panel-footer{padding-top:8px;display:flex;justify-content:flex-end}.native-editor .material-top{grid-template-columns:repeat(4,minmax(0,1fr));margin-bottom:16px}.native-editor .material-job{grid-template-columns:1fr 1fr 1fr}.native-editor .sheet-tools{display:flex;align-items:center;justify-content:space-between;gap:18px;margin:0 0 12px}.sheet-tools>input{max-width:380px}.sheet-tools label{font-size:12px;display:flex;gap:8px;align-items:center;white-space:nowrap}.sheet-tools select{width:auto}.native-editor .worksheet{min-width:1050px;table-layout:fixed}.native-editor .worksheet th{min-width:0;text-align:center}.native-editor .worksheet th:first-child,.native-editor .worksheet th:nth-last-child(2){width:175px;min-width:0}.native-editor .worksheet td:first-child,.native-editor .worksheet td:nth-last-child(2){padding:4px 7px}.native-editor .worksheet .pair{display:flex;align-items:center;gap:0}.native-editor .pair span{font-size:12px;color:var(--muted)}.native-editor .worksheet .pair input{width:calc((100% - 6px)/2);padding:5px 0;min-width:0;font-size:11px}.native-editor .worksheet .pair input:last-child{color:#ff001c}.native-editor .tm-grid input{text-align:center}.native-editor .tm-footer{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;margin:18px 0}.native-editor .tm-footer .pair{display:flex;align-items:center;padding:8px;border:1px solid var(--line);border-radius:20px}.native-editor .tm-footer input{width:48%;border:0;background:none}.native-editor .tm-footer input:last-child{color:var(--red)}.native-editor .reminder h2{color:var(--red)}.native-editor .red-note{color:var(--red);font-size:13px;margin:0 0 18px;font-weight:600}.native-editor .truck-material-grid{min-width:760px}.native-editor .truck-material-grid th:first-child,.native-editor .truck-material-grid th:nth-child(5){width:24%}.native-editor .truck-material-grid th:nth-child(2),.native-editor .truck-material-grid th:nth-child(3),.native-editor .truck-material-grid th:nth-child(4){width:11%}.native-editor .stock-columns{display:grid;grid-template-columns:1.15fr 1fr;gap:10px;align-items:start}.native-editor .stock-columns .grid-wrap:first-child{border-right:2px solid var(--red)}.native-editor .stock-grid th:first-child{width:35px}.native-editor .stock-grid th:nth-child(3){width:65px}.native-editor .stock-grid th:last-child{width:110px}.native-editor .stock-grid td:first-child{color:var(--red);padding:0 5px}.native-editor .stock-grid td:nth-child(2){padding:4px 6px}.native-editor .stock-columns .form-grid{min-width:380px}.signature-pair{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-top:16px}.signature-field{border:1px solid var(--line);padding:12px;border-radius:8px;min-width:0}.signature-field>strong{font-size:13px}.signature-field canvas{display:block;width:100%;height:150px;object-fit:fill;background:#fff;border-radius:4px;touch-action:none;margin:10px 0}.signature-field>div{display:flex;align-items:center;justify-content:space-between;gap:10px}.signature-field button{color:var(--red);font-size:12px}.signature-field small{font-size:11px}.signature-disclosure{margin-top:15px;font-size:13px}.signature-disclosure summary{cursor:pointer;padding:8px 0}.native-editor .editor-actions{padding:18px 0;gap:18px;align-items:stretch}.native-editor .editor-actions>div:last-child{flex:1}.native-editor.paper .editor-actions{display:block}.native-editor.paper .copies{margin:6px 0 16px;width:100%;gap:3px}.native-editor.paper .copies button{flex:1;background:#edf0f2;border:0;color:#111;font-size:13px;min-height:32px}.native-editor.paper .copies button.active{color:white;background:#ff001c}.native-editor.paper .editor-actions .primary{flex-basis:100%;border-radius:6px}.native-editor .editor-actions .quiet{font-size:12px;padding:8px 12px}.native-editor .grid-wrap{border-radius:5px}.native-editor .grid-wrap thead{position:sticky;top:0;z-index:1}.native-editor .grid-wrap{max-height:70vh}.native-editor .truck-fields .field{padding:10px;border:1px solid var(--line);border-radius:8px;background:#ffffff02}
:root.light .native-editor .form-section{background:#fff}:root.light .native-editor .form-grid th{background:#edf0f2}:root.light .native-editor.paper .form-number{background:#edf0f2;color:#111;--text:#111}:root.light .native-editor .field{color:#111}
@media(max-width:1150px){.native-editor .invoice-details{grid-template-columns:1fr}.native-editor .material-top{grid-template-columns:1fr 1fr}.native-editor .stock-columns{grid-template-columns:1fr}.native-editor .stock-columns .grid-wrap:first-child{border-right:1px solid var(--line)}}
@media(max-width:720px){.native-editor .detail-lines .field{grid-template-columns:105px minmax(0,1fr);gap:10px}.native-editor .material-job{grid-template-columns:1fr}.native-editor .address-pair{gap:12px}.native-editor .signature-pair{grid-template-columns:1fr}.native-editor .tm-footer{grid-template-columns:1fr}.native-editor.paper>section,.native-editor.paper>.field,.native-editor.paper>.editor-actions{margin-left:12px;margin-right:12px}.native-editor .sheet-tools{flex-wrap:wrap}.dashboard-company{margin-top:0}.native-editor .job-code{grid-template-columns:1fr 1fr}}

.timesheet-heading{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:16px}.timesheet-heading h2{margin-bottom:6px!important}.timesheet-heading>div>span{font-size:13px;color:var(--muted)}.timesheet-heading button{font-size:12px;color:var(--red);padding:7px}.clock-pair{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-bottom:12px}.clock-card{padding:16px;border:1px solid var(--line);border-radius:9px;display:grid;gap:8px}.clock-card strong{font-size:24px}.clock-card span{font-size:14px}.timesheet-total{display:flex;justify-content:space-between;align-items:center;margin-top:18px;padding-top:16px;border-top:1px solid var(--line)}.timesheet-total small{display:block;margin-top:5px;font-size:11px}.timesheet-total strong{font-size:23px}.kind-timesheets .form-grid{min-width:1050px}.kind-timesheets .form-grid th:nth-child(2),.kind-timesheets .form-grid th:nth-child(3){width:185px}.kind-timesheets .form-grid th:first-child{width:86px}.kind-timesheets .form-grid th:last-child{width:30px}.kind-timesheets .form-grid select{padding:5px}.job-list-sheet{background:#fff!important;color:#131923;border:1px solid #c7cdd2;border-radius:4px;padding:0}.job-list-sheet .files-table th{background:#eceff2;color:#252e39;font-size:12px;text-transform:uppercase}.job-list-sheet .files-table td{border-bottom:1px solid #dce1e6;font-size:13px;padding:14px 12px}.job-list-sheet .files-table th{padding:14px 12px}.job-list-sheet .files-table tr:nth-child(even){background:#f8f9fa}.job-list-sheet button{color:#ed001d;border:0;white-space:nowrap}.pill[data-status="Scheduled"]{background:#13acf2}.pill[data-status="On Hold"]{background:#ff233e}.pill[data-status="Material Ordered"],.pill[data-status="Order Material"]{background:#ffc600}.pill[data-status="Not Started"],.pill[data-status="Completed"]{background:#b8bec5}.job-list-sheet>p{padding:14px}.tm-grid td:first-child input,.tm-grid td:nth-last-child(2) input{text-align:left}.native-editor.kind-truckRequests>section{border:1px solid var(--line);border-radius:10px;background:var(--panel);padding:18px;margin-bottom:14px}

.message-mailboxes{display:flex;gap:8px;max-width:760px;margin:0 0 14px}.message-mailboxes button{flex:1}

/* Keep a consistent escape route visible on long forms and nested pages. */
.topbar{position:sticky;top:0;z-index:15;background:var(--bg)}.page-back{color:var(--red);white-space:nowrap;flex-shrink:0}.topbar>div:first-child{flex-wrap:wrap;gap:12px}@media(max-width:700px){.topbar{padding:10px 14px}.page-back{font-size:12px;padding:9px}.topbar #breadcrumb{display:none}}

.job-library-file{width:100%;text-align:left;border:0;border-bottom:1px solid var(--border,#ddd);background:transparent;color:inherit;padding:12px 0}.job-library-file>span:first-child{display:grid;gap:4px}.job-library-file small{color:var(--muted,#777)}

/* Job Details mirrors the mobile Overview / Notes / Files / Tasks workspace. */
.job-detail-tabs,.job-file-sources{display:flex;gap:8px;flex-wrap:wrap;margin:18px 0}
.job-detail-tabs button{flex:1;min-width:90px}
.job-detail-tabs .selected,.job-file-sources .selected{background:var(--red,#ff1632);border-color:var(--red,#ff1632);color:#fff}
.job-detail-actions{display:flex;gap:14px;align-items:center;flex-wrap:wrap}
.job-overview{margin:0}
.job-overview>div{display:grid;grid-template-columns:minmax(110px,180px) 1fr;gap:20px;padding:14px 0;border-bottom:1px solid var(--line,#383c40)}
.job-overview>div:last-child{border-bottom:0}
.job-overview dt{font-weight:650}
.job-overview dd{margin:0;white-space:pre-wrap;overflow-wrap:anywhere}
.job-detail-content>.job-file-sources{margin-top:0}
@media(max-width:600px){.job-overview>div{grid-template-columns:100px 1fr;gap:12px}.job-detail-tabs{gap:4px}.job-detail-tabs button{min-width:60px;padding:10px 6px}}

/* Consistent folders and date-grouped files for private and shared libraries. */
.library-folder{width:100%;text-align:left;margin:0;gap:16px;padding:20px;border:1px solid var(--line)}
.library-folder:hover{border-color:var(--red)}
.library-job-folder>span:first-child{display:grid;gap:6px;min-width:0;flex:1;overflow-wrap:anywhere}
.library-job-folder b{font-weight:500}
.library-file-row{display:flex;align-items:center;gap:16px;border-bottom:1px solid var(--line)}
.library-file-row:last-child{border-bottom:0}
.library-file-row .job-library-file{border:0;min-width:0;flex:1}
.library-file-row .job-library-file>span:first-child{min-width:0;overflow-wrap:anywhere}
.library-file-row>.danger-text{flex-shrink:0;padding:10px}
.library-file-row .job-library-file>span:first-child{flex:1}
.library-date-group{margin-bottom:10px;padding:12px 16px}
.library-date-group>h3{font-size:14px;margin:0 0 6px}
.library-date-group .job-library-file{padding:6px 0;line-height:1.35}
.library-date-group .job-library-file>span:first-child{gap:2px}

/* Messages C: compact newest-first inbox with combined filters. */
.message-filters{display:grid;gap:10px;max-width:760px;margin:14px 0}.message-search{display:flex;align-items:center;gap:10px;background:var(--panel);border:1px solid var(--line);border-radius:10px;padding:0 12px}.message-search input{border:0!important;background:transparent!important;box-shadow:none;min-width:0;width:100%;padding:12px 0;color:inherit}.message-filter-selects{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px}.message-filter-select select{width:100%;min-width:0;min-height:44px;border-radius:10px;font-size:14px}.message-read-filters{display:flex;gap:8px}.message-read-filters button{border-radius:24px;min-width:72px;min-height:44px;padding:8px 18px}.message-result-count{max-width:760px;display:flex;justify-content:space-between;align-items:center;gap:8px;font-size:12px;color:var(--muted);min-height:30px}.message-result-count button{font-size:12px}.message-date-group{display:grid;gap:7px}.message-date-group h2{font-size:12px;text-transform:uppercase;color:var(--muted);font-weight:600;letter-spacing:.06em;margin:16px 0 4px}.message-unread{flex:none;width:7px;height:7px;background:var(--red);border-radius:50%}.message-empty{padding:28px 0;color:var(--muted)}.message-empty p{font-size:14px}.message-job{color:var(--muted)}.message-filters .sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

/* Native-style purchase order and invoice editors, adapted for desktop width. */
@media screen {
 .native-editor.paper { max-width:1500px; border-radius:10px; overflow:visible; --red:#ff1026; }
 .native-editor.paper .form-number { border-radius:10px 10px 0 0; background:#0b1012; color:#fff; --text:#fff; }
 .native-editor.paper .form-section { border:0; box-shadow:none; background:#fff; min-width:0; }
 .native-editor.paper input,.native-editor.paper textarea,.native-editor.paper select { border:1px solid #cbd3dd; border-radius:5px; background:#fff; color:#141920; }
 .native-editor.paper .form-grid { min-width:0; }
 .native-editor.paper .form-grid td { vertical-align:top; }
 .native-editor.paper .form-grid th { background:#edf0f3; }
 .native-editor.paper .form-grid input,.native-editor.paper .form-grid textarea { border:0; border-radius:0; }
 .native-editor.paper .editor-actions { border-top:1px solid #dce1e6; display:flex; flex-wrap:wrap; justify-content:space-between; align-items:end; }
 .native-editor.paper .editor-actions>div:last-child { flex:0 1 auto; display:flex; gap:10px; flex-wrap:wrap; }
 .native-editor.paper .editor-actions .primary { flex-basis:auto; padding:11px 26px; min-width:180px; background:#ff1026; }
 .native-editor.paper .copies { margin:6px 0 0; min-width:250px; }
 .native-editor.paper .copies button.active { background:#ff1026; }
 .native-editor.paper .editor-actions .quiet { color:#131923; border:1px solid #cbd3dd; background:#f4f6f8; font-size:14px; }
 .native-editor .signature-disclosure { border-top:1px solid #dce1e6; }
 .form-more { position:relative; display:inline-block; z-index:20; }
 .form-more[open] { min-width:190px; }
 .form-more[open]>button { display:block; width:100%; text-align:left; }
}
@media screen and (min-width:1100px) {
 .native-editor.paper { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); column-gap:24px; padding:0 24px!important; }
 .native-editor.paper .form-number { grid-column:1/-1; margin:0 -24px 20px; padding:18px 24px; }
 .native-editor.paper>section { margin:0 0 18px; padding:0; }
 .native-editor.paper>.job-picker,.native-editor.paper>.status-callout,.native-editor.paper>.editor-actions { grid-column:1/-1; margin-left:0; margin-right:0; }
 .kind-purchaseOrders .po-details { grid-column:1; }
 .kind-purchaseOrders .po-materials { grid-column:2; }
 .kind-purchaseOrders .po-notes { grid-column:1/-1; }
 .native-editor.kind-invoices .invoice-addresses { grid-column:1; grid-row:2/5; }
 .native-editor.kind-invoices .invoice-description { grid-column:2; grid-row:2; }
 .native-editor.kind-invoices .invoice-notes { grid-column:2; grid-row:3; }
 .native-editor.kind-invoices .invoice-turned-in { grid-column:2; grid-row:4; }
 .native-editor.kind-invoices .invoice-details { grid-template-columns:1fr; margin-bottom:18px; }
 .native-editor.kind-invoices .address-pair { gap:16px; }
 .native-editor.paper .detail-lines .field { grid-template-columns:140px minmax(0,1fr); }
 .native-editor.paper .grid-wrap { max-height:440px; }
}

@media screen {
 .native-editor.paper .form-number input { background:transparent; border:0; color:inherit; font-size:22px; padding:0; min-height:28px; font-weight:700; }
 .native-editor.paper .form-number .field { display:block; max-width:420px; }
 .native-editor.paper .form-number { padding-top:10px; padding-bottom:14px; }
 .form-more summary { list-style:none; padding:10px 14px; cursor:pointer; }
 .form-more summary::-webkit-details-marker { display:none; }
 .form-more[open] { background:var(--panel); border:1px solid var(--line); border-radius:7px; }
 .form-more[open]>button { padding:12px; }
 main:has(.native-editor.paper)>.page-heading { margin-bottom:8px; }
}
