@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;450;500;550;600;650;700&family=Manrope:wght@400;500;600;650;700;750;800&display=swap');
:root{--ink:#19353b;--muted:#56676c;--accent:#087f70;--nav:#112f35;--line:#e3e9e9;--bg:#f5f7f8;--red:#be4c48;--amber:#986718;--radius:16px}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font:16px 'DM Sans',sans-serif}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button,a{touch-action:manipulation}button{cursor:pointer}button:disabled{cursor:default;opacity:.5}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #53b5ac;outline-offset:3px}a{color:inherit}button{color:inherit}h1,h2,h3,p{margin:0}h1,h2,h3{font-family:Manrope,sans-serif}h1{font-size:30px;letter-spacing:-1px;font-weight:800}h2{font-size:18px;letter-spacing:-.4px}h3{font-size:16px}small{font-size:13px}.muted{color:var(--muted)}.icon{width:20px;height:20px;flex-shrink:0;vertical-align:middle;stroke-width:1.65}.sidebar{position:fixed;inset:0 auto 0 0;width:238px;background:var(--nav);color:#b9cecf;padding:32px 20px 20px;display:flex;flex-direction:column;z-index:20}.brand{display:flex;align-items:center;gap:12px;color:white;text-decoration:none;padding:0 9px 33px}.brand-mark{background:#244b50;color:#8ce6d1;border-radius:12px;width:40px;height:40px;display:grid;place-items:center}.brand strong{font:750 20px Manrope,sans-serif;letter-spacing:-.6px}.brand small{display:block;color:#92b6b8;font-size:12px;letter-spacing:2px;margin-top:3px}.nav-label{font-size:12px;text-transform:uppercase;letter-spacing:1.5px;color:#789b9f;margin:18px 14px 10px}.nav-item{display:flex;align-items:center;gap:13px;border:0;background:none;color:#b9cecf;border-radius:9px;padding:13px 14px;width:100%;text-align:left;font-size:14px;margin:3px 0;text-decoration:none}.nav-item:hover{background:#1a3c42;color:#fff}.nav-item.active{background:#244d50;color:#a0efda}.nav-item .count{margin-left:auto;font-size:12px;padding:2px 7px;border-radius:5px;background:#315b5c;color:#c6f4e6}.nav-bottom{margin-top:auto;padding-top:28px}.branch-note{border:1px solid #315158;border-radius:12px;padding:14px;font-size:13px;line-height:1.7;color:#a7c4c6}.branch-note strong{display:block;color:#e6f2f0;font-size:14px}.shell{margin-left:238px}.topbar{height:83px;background:white;border-bottom:1px solid var(--line);padding:0 36px;display:flex;align-items:center;justify-content:space-between;gap:20px}.crumb{font-size:14px;color:var(--muted);display:flex;gap:12px;align-items:center}.crumb strong{color:var(--ink);font-weight:500}.top-actions{display:flex;align-items:center;gap:18px}.select{background:white;border:1px solid var(--line);padding:10px 30px 10px 12px;border-radius:8px;color:var(--ink);font-size:14px;max-width:100%}.avatar{display:grid;place-items:center;background:#e3efec;color:#346258;border-radius:50%;width:38px;height:38px;font-size:13px;font-weight:700}.icon-btn{border:1px solid var(--line);background:white;border-radius:8px;padding:9px;display:grid;place-items:center}.main{max-width:1620px;margin:auto;padding:33px 36px}.page-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:28px}.eyebrow{font-size:12px;letter-spacing:1.4px;text-transform:uppercase;color:var(--accent);font-weight:700;margin-bottom:9px}.subtitle{font-size:14px;color:var(--muted);margin-top:9px;line-height:1.6}.actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.btn{border:1px solid var(--line);padding:11px 16px;background:white;border-radius:8px;font-size:14px;font-weight:600;display:inline-flex;align-items:center;justify-content:center;gap:8px;text-decoration:none;min-height:42px}.btn:hover{background:#f0f6f4}.btn.primary{background:var(--accent);border-color:var(--accent);color:white}.btn.primary:hover{background:#066e62}.btn.small{padding:7px 12px;min-height:34px}.btn.danger{color:var(--red);border-color:#e8c5c2}.text-btn{background:none;border:0;color:var(--accent);padding:4px 0;font-size:14px;font-weight:600}.date{font-size:14px;color:var(--muted)}.stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px;margin-bottom:24px}.stat{background:white;border:1px solid var(--line);border-radius:var(--radius);padding:21px 23px}.stat-top{display:flex;justify-content:space-between;align-items:center;color:var(--muted);font-size:14px}.stat-symbol{background:#eff6f4;color:#4e8f84;border-radius:8px;padding:7px;display:grid;place-items:center}.stat strong{font:800 31px Manrope,sans-serif;letter-spacing:-1px;display:block;margin:13px 0 7px}.stat small{color:var(--muted)}.stat small b{color:var(--accent);font-weight:500}.stat.alert small b{color:var(--red)}.grid-main{display:grid;grid-template-columns:minmax(0,1.8fr) minmax(290px,1fr);gap:22px}.card{border:1px solid var(--line);border-radius:var(--radius);background:white;overflow:hidden}.card-head{padding:22px 24px;display:flex;justify-content:space-between;align-items:center;gap:12px}.card-head p{font-size:13px;color:var(--muted);margin-top:5px}.card-body{padding:0 24px 24px}.badge{display:inline-flex;align-items:center;gap:6px;border-radius:6px;padding:5px 8px;font-size:12px;font-weight:600;white-space:nowrap;background:#eef1f3;color:#4f6066}.badge.green{background:#e7f5ef;color:#247b5e}.badge.orange{background:#fff3df;color:#7d5410}.badge.red{background:#fcecea;color:#b14d43}.badge.blue{background:#eaf1fd;color:#3a5f96}.badge.teal{background:#e5f4f1;color:#1d6a60}.attention{display:flex;align-items:center;gap:14px;padding:17px 0;border-top:1px solid #edf0f0}.attention:first-child{border-top:0;padding-top:0}.attention-icon{width:39px;height:39px;display:grid;place-items:center;border-radius:10px;background:#fff0eb;color:#c06a4a}.attention h3{font-family:'DM Sans',sans-serif;font-size:14px;font-weight:600;margin-bottom:5px}.attention p{font-size:13px;color:var(--muted);line-height:1.5}.attention .text-btn{margin-left:auto;white-space:nowrap}.pipeline{display:grid;grid-template-columns:repeat(5,1fr);gap:8px;margin:8px 0 22px}.stage{padding:16px 12px;background:#f4f7f7;border-radius:10px}.stage strong{font:750 25px Manrope,sans-serif;display:block;margin-bottom:5px}.stage span{font-size:12px;color:var(--muted)}.stage:nth-child(2){background:#e1f0eb;color:#126f60}.stage-line{height:4px;border-radius:3px;background:#ccdeda;margin-top:18px}.stage:nth-child(2) .stage-line{background:#168b77}.load{display:flex;align-items:center;gap:15px;padding:12px 0;font-size:14px}.load-label{min-width:80px}.bar{height:7px;border-radius:8px;background:#eaf0f0;flex:1;overflow:hidden}.bar i{height:100%;background:#64b6a4;display:block;border-radius:8px}.load small{min-width:46px;text-align:right}.section-space{margin-top:22px}.table-wrap{overflow-x:auto}table{border-collapse:collapse;width:100%;text-align:left;white-space:nowrap;font-size:14px}th{background:#fafcfc;color:#7a898e;font-size:12px;font-weight:500;padding:13px 24px;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}td{padding:17px 24px;border-bottom:1px solid #edf0f0}tr:last-child td{border-bottom:0}td small{display:block;color:var(--muted);font-size:12px;margin-top:5px}tbody tr:hover{background:#fafdfc}.order-link{font-weight:650;color:#215e58;background:transparent;border:0;padding:0}.table-foot{padding:14px 24px;border-top:1px solid var(--line);font-size:13px;color:var(--muted);display:flex;justify-content:space-between;align-items:center}.schedule-row{display:flex;gap:14px;padding:16px 0;border-top:1px solid #edf0f0}.schedule-row time{font-size:13px;color:var(--muted);width:43px;padding-top:2px}.schedule-row h3{font:600 14px 'DM Sans',sans-serif;margin-bottom:6px}.schedule-row p{font-size:13px;color:var(--muted)}.demo{font-size:12px;color:#56676c;display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:24px}.demo button{font-size:12px;color:var(--muted);border:0;background:none;text-decoration:underline}.mobile-menu{display:none}.toolbar{display:flex;justify-content:space-between;gap:14px;align-items:center;margin-bottom:20px;flex-wrap:wrap}.search{display:flex;align-items:center;gap:9px;border:1px solid var(--line);border-radius:8px;padding:0 12px;background:white;min-width:260px}.search input{border:0;outline:none;background:none;padding:12px 0;width:100%;font-size:14px}.tabs{display:flex;gap:5px;flex-wrap:wrap}.tab{border:0;background:transparent;border-radius:7px;padding:9px 13px;font-size:14px;color:var(--muted)}.tab.active{background:#e0efea;color:#196f5f;font-weight:600}.empty{padding:50px 20px;text-align:center;color:var(--muted)}.empty h3,.empty h2{color:var(--ink);margin-bottom:10px}.board{display:grid;grid-template-columns:repeat(4,minmax(220px,1fr));gap:16px;overflow-x:auto;padding-bottom:10px}.lane{background:#ebf0f1;border-radius:14px;padding:14px;min-height:300px}.lane-head{display:flex;justify-content:space-between;font-size:14px;font-weight:650;padding:5px 3px 18px}.job{background:white;border:1px solid #e0e8e7;border-radius:11px;padding:17px;margin-bottom:12px}.job h3{margin:12px 0 8px;font-size:15px}.job p{color:var(--muted);font-size:13px;margin-bottom:16px}.job-bottom{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:16px}.job-meta{display:flex;gap:8px;align-items:center;font-size:12px;color:var(--muted)}.job .btn{width:100%;margin-top:14px}.portal-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.portal-tile{display:block;text-align:left;background:white;border:1px solid var(--line);border-radius:15px;padding:24px;color:var(--ink);text-decoration:none}.portal-tile:hover{border-color:#58ad9e;box-shadow:0 6px 20px #153e3610}.portal-tile .stat-symbol{width:44px;height:44px;margin-bottom:20px}.portal-tile h2{font-size:17px;margin-bottom:9px}.portal-tile p{font-size:14px;color:var(--muted);line-height:1.7}.portal-tile small{display:block;margin-top:20px;color:var(--accent)}dialog{padding:0;border:1px solid var(--line);border-radius:18px;width:min(620px,calc(100% - 32px));max-height:90vh;box-shadow:0 30px 90px #112f3530;color:var(--ink)}dialog::backdrop{background:#102e3666;backdrop-filter:blur(3px)}.dialog-head{padding:24px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between}.dialog-content{padding:24px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.field{display:flex;flex-direction:column;gap:8px;font-size:14px}.field input,.field select,.field textarea{width:100%;border:1px solid #d7e1e1;border-radius:8px;padding:11px;background:white;min-width:0;color:var(--ink)}.field.full{grid-column:1/-1}.dialog-foot{padding:20px 24px;border-top:1px solid var(--line);display:flex;justify-content:flex-end;gap:10px}.detail-grid{display:grid;grid-template-columns:1fr 1fr;gap:22px}.detail-grid small{display:block;color:var(--muted);margin-bottom:7px}.detail-grid strong{font-size:15px}.note{padding:14px 16px;background:#eef7f3;border-radius:9px;font-size:14px;line-height:1.6}.task-list{display:grid;gap:16px}.task-card{padding:22px;display:flex;justify-content:space-between;align-items:center;gap:20px}.task-card h2{margin:10px 0 8px}.task-card p{font-size:14px;color:var(--muted)}.checklist{display:grid;gap:13px;margin:22px 0}.checklist label{display:flex;gap:10px;align-items:center;font-size:14px}.checklist input{accent-color:var(--accent);width:18px;height:18px}.tracking{max-width:820px;margin:auto}.tracking-head{text-align:center;padding:20px 0 32px}.tracking-head h1{font-size:34px}.tracking-search{display:flex;gap:12px;align-items:end}.tracking-search .field{flex:1}.timeline{display:flex;justify-content:space-between;margin:28px 0 8px}.timeline-step{text-align:center;flex:1;position:relative;font-size:12px;color:#82908d}.timeline-step:before{content:'';position:absolute;top:15px;left:0;right:0;height:2px;background:#dbe6e2}.timeline-step:first-child:before{left:50%}.timeline-step:last-child:before{right:50%}.timeline-step i{position:relative;display:grid;place-items:center;margin:0 auto 9px;border:2px solid #dbe6e2;background:white;width:32px;height:32px;border-radius:50%;font-style:normal}.timeline-step.done i{background:#168775;border-color:#168775;color:white}.timeline-step.done{color:#237864}.activity{padding:13px 0;border-bottom:1px solid var(--line);font-size:14px;line-height:1.7}.activity small{color:var(--muted);display:block}.settings-grid{display:grid;grid-template-columns:1fr 1fr;gap:22px}.metric-large{font:750 38px Manrope,sans-serif;padding:5px 0 18px}.chart{height:200px;display:flex;align-items:flex-end;gap:14px;padding:12px 8px 28px}.chart-col{flex:1;position:relative;background:#68b5a4;border-radius:5px 5px 0 0;min-height:8px}.chart-col:nth-child(2n){background:#b6d9cf}.chart-col span{position:absolute;bottom:-22px;width:100%;text-align:center;font-size:12px;color:var(--muted)}#toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);background:#143e37;color:#fff;box-shadow:0 8px 24px #183d3725;border-radius:10px;padding:14px 22px;font-size:14px;max-width:90vw;z-index:100;display:none}.show-toast{display:block!important}.help-copy{font-size:14px;line-height:1.8}.help-copy p+p{margin-top:14px}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}
@media(min-width:1500px){.main{padding:40px 48px}.topbar{padding:0 48px}}@media(max-width:1150px){.sidebar{width:210px;padding-left:14px;padding-right:14px}.shell{margin-left:210px}.main{padding:28px 24px}.topbar{padding:0 24px}.stats{gap:12px}.stat{padding:17px}.grid-main{grid-template-columns:1fr}.portal-grid{grid-template-columns:repeat(2,1fr)}.stat strong{font-size:27px}}@media(max-width:760px){.sidebar{transform:translateX(-100%);transition:transform .2s;width:248px}.sidebar.open{transform:translateX(0);box-shadow:0 0 0 100vmax #102c3455}.shell{margin-left:0}.topbar{height:70px;padding:0 18px;gap:10px}.mobile-menu{display:grid}.crumb{display:none}.top-actions{gap:9px;flex:1;justify-content:flex-end}.top-actions .avatar{display:none}.select{font-size:13px;padding-right:20px;max-width:185px}.main{padding:25px 18px}.page-heading{align-items:flex-start;flex-direction:column;gap:18px;margin-bottom:22px}h1{font-size:27px}.stats{grid-template-columns:repeat(2,1fr);gap:12px}.stat{padding:16px}.stat-top{font-size:13px}.stat-symbol{padding:5px}.stat strong{font-size:27px}.stat small{font-size:12px}.card-head{padding:20px}.card-body{padding:0 20px 20px}.pipeline{gap:5px}.stage{padding:13px 7px}.stage strong{font-size:22px}.stage span{font-size:12px}.attention{gap:10px}.attention-icon{display:none}.attention .text-btn{font-size:13px}.portal-grid,.settings-grid{grid-template-columns:1fr}.board{grid-template-columns:repeat(4,260px)}.task-card{align-items:flex-start;flex-direction:column}.task-card .actions{width:100%}.task-card .btn{flex:1}.tracking-search{flex-direction:column;align-items:stretch}.form-grid{grid-template-columns:1fr}.form-grid .full{grid-column:1}.search{min-width:0;flex:1}.tracking-head h1{font-size:28px}.demo{align-items:flex-start;line-height:1.5}.date{display:none}.timeline-step{font-size:12px}.timeline-step i{width:28px;height:28px}.topbar .icon-btn[data-action=notifications]{display:none}}@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}
.sidebar{overflow-y:auto}.board{grid-template-columns:repeat(5,minmax(230px,1fr))}.grid-main>*{min-width:0}.main{min-width:0}.card-head{flex-wrap:wrap}@media(max-width:380px){.topbar{padding:0 12px}.topbar .select{max-width:150px}.topbar #location{max-width:110px}.stat strong{font-size:24px}.stat-top{gap:4px}}
.workflow-summary{margin-bottom:24px}.workflow-strip{list-style:none;display:flex;gap:12px;overflow-x:auto;margin:0;padding:0 24px 24px}.workflow-strip li{display:flex;align-items:center;gap:12px;background:#f2f7f5;border:1px solid #e0eae6;border-radius:10px;padding:15px;min-width:150px;flex:1}.workflow-strip strong{display:block;font-size:14px;overflow-wrap:anywhere}.workflow-strip small{display:block;font-size:12px;color:var(--muted);margin-top:5px}.step-number{display:grid;place-items:center;background:#dfede7;color:#287665;border-radius:50%;width:28px;height:28px;flex-shrink:0;font-size:13px;font-weight:700}.step-editor{display:grid;gap:14px}.step-edit-row{display:grid;grid-template-columns:28px minmax(0,1fr) auto;align-items:center;gap:12px}.step-row-actions{display:flex;gap:5px}.step-edit-row .field{gap:5px}.pipeline{display:flex;overflow-x:auto}.pipeline .stage{min-width:90px;flex:1}.timeline{overflow-x:auto;gap:8px}.timeline-step{min-width:64px;overflow-wrap:anywhere}@media(max-width:600px){.step-edit-row{grid-template-columns:28px minmax(0,1fr)}.step-row-actions{grid-column:2}.workflow-strip{padding:0 20px 20px}}
/* Compact production cards: keep controls clear without oversized labels. */
.job{padding:14px;margin-bottom:10px}
.job h3{font-size:.8125rem;line-height:1.4;letter-spacing:0;margin:10px 0 6px}
.job p{font-size:.75rem;line-height:1.5;margin-bottom:12px}
.job>.actions{gap:7px}
.job>.actions>small,.job-meta{font-size:.71875rem;line-height:1.4}
.job .badge{font-size:.6875rem;padding:4px 7px}
.job-meta .icon{width:16px;height:16px}
.job-bottom{gap:8px;margin-top:12px}
.job .text-btn{font-size:.75rem;font-weight:600;min-height:32px;padding:5px 2px}
.job .btn{font-size:.75rem;line-height:1.35;min-height:36px;padding:8px 10px;margin-top:10px;font-weight:600}
.job .note{font-size:.75rem}
.workflow-board-heading{display:flex;justify-content:space-between;align-items:center;gap:16px;margin:8px 0 18px}.workflow-board-heading p{font-size:13px;color:var(--muted);margin-top:6px;line-height:1.5}.production-board{grid-template-columns:repeat(var(--workflow-columns),minmax(230px,1fr))}.lane-head>span:first-child{display:flex;align-items:center;gap:8px;min-width:0;overflow-wrap:anywhere}.lane-number{color:#78918d;font-size:11px}.task-state{margin:0 0 12px}.lane-head{gap:10px}.job .btn{overflow-wrap:anywhere}@media(max-width:760px){.workflow-board-heading{align-items:flex-start;flex-direction:column}}
/* Desktop sidebar can shrink to a labeled, keyboard-accessible icon rail. */
.sidebar-controls{display:flex;justify-content:flex-end;margin:-14px 0 12px}
.sidebar-toggle{display:grid;place-items:center;width:32px;height:32px;padding:6px;border:1px solid #426168;border-radius:8px;background:#1b3d43;color:#c7e4df;cursor:pointer}
.sidebar-toggle:hover{background:#2a5359;color:white}
@media(min-width:761px){
 .sidebar-collapsed .sidebar{width:76px;padding:32px 12px 18px}
 .sidebar-collapsed .shell{margin-left:76px}
 .sidebar-collapsed .sidebar-controls{justify-content:center}
 .sidebar-collapsed .brand{justify-content:center;padding:0 0 26px;gap:0}
 .sidebar-collapsed .brand>span:not(.brand-mark){display:none}
 .sidebar-collapsed .nav-text,.sidebar-collapsed .count,.sidebar-collapsed .nav-label,.sidebar-collapsed .branch-note{display:none}
 .sidebar-collapsed .nav-item{justify-content:center;gap:0;padding:13px 0;width:100%;min-height:46px}
 .sidebar-collapsed .nav-bottom{padding-top:20px}
}
@media(max-width:760px){.sidebar-controls{display:none}}

/* Shared visual system: quiet borders, compact type and clear control states. */
:root{--line:#dfe6e6;--radius:12px;--bg:#f6f8f8}
body{font-size:14px;line-height:1.5}
h1{font-size:28px;line-height:1.25;letter-spacing:-.8px}
h2{font-size:16px;line-height:1.4;letter-spacing:-.25px}
h3{line-height:1.4}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:2px solid #258d80;outline-offset:2px}
.select,.field select{appearance:none;-webkit-appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23697b80' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 12px center;padding-right:36px;cursor:pointer}
.select{font-size:13px;min-height:40px;border-color:#d6dfdf;box-shadow:none;line-height:1.4}
.select:hover,.field input:hover,.field select:hover,.field textarea:hover{border-color:#a7bcb8}
.select:focus,.field input:focus,.field select:focus,.field textarea:focus{border-color:#278d80;outline:0;box-shadow:0 0 0 2px #278d801a}
.search:focus-within{border-color:#278d80;box-shadow:0 0 0 2px #278d801a}
.search input:focus-visible{outline:0;box-shadow:none}
[hidden]{display:none!important}
.topbar{min-height:76px;height:auto;padding-top:14px;padding-bottom:14px;gap:16px}
.crumb{min-width:0;font-size:13px;flex-wrap:wrap;gap:8px}
.top-actions{gap:10px;min-width:0}
.top-actions #role{max-width:205px}
.main{padding-top:28px}
.page-heading{margin-bottom:24px}
.subtitle{font-size:13px;margin-top:8px;line-height:1.6}
.eyebrow{font-size:11px;letter-spacing:1.2px;margin-bottom:8px}
.stats{gap:14px;margin-bottom:20px}
.stat{padding:18px;min-width:0}
.stat-top{font-size:12px;gap:8px;align-items:flex-start}
.stat-symbol{padding:6px;flex-shrink:0}
.stat strong{font-size:clamp(22px,2vw,28px);line-height:1.25;margin:12px 0 6px;overflow-wrap:anywhere;letter-spacing:-.7px}
.stat small{font-size:12px;line-height:1.5;display:block}
.card,.stat,.portal-tile{box-shadow:0 1px 2px #19353b03}
.card-head{padding:18px 20px;gap:10px}
.card-head p{line-height:1.5}
.card-body{padding:0 20px 20px}
.grid-main,.settings-grid{gap:18px}
.section-space{margin-top:18px}
.btn{font-size:13px;line-height:1.4;padding:10px 14px;border-color:#d6dfdf}
.icon-btn{width:40px;height:40px;flex-shrink:0;padding:9px}
.text-btn{font-size:13px;line-height:1.5}
.portal-tile{border-radius:12px;padding:20px}
.portal-tile p{font-size:13px;line-height:1.6}
.portal-tile .stat-symbol{margin-bottom:16px}
.task-card{padding:20px}
.badge{font-size:11px;padding:4px 8px;line-height:1.5}
.table-wrap{container-type:inline-size;container-name:table-region}
table{font-size:13px;line-height:1.5}
th{font-size:11px;font-weight:600;color:#61767a;padding:12px 18px;background:#f8faf9}
td{padding:14px 18px;vertical-align:middle}
td strong{font-weight:600}
.cell-label,.mobile-action-label{display:none}
.table-foot{font-size:12px;padding:13px 20px;gap:10px;flex-wrap:wrap}
.dialog-head{padding:18px 20px}.dialog-content{padding:20px}.dialog-foot{padding:16px 20px}
.field{font-size:13px}.field input,.field select,.field textarea{font-size:14px;min-height:44px}
/* Container sizing also covers a narrow dashboard panel on a large screen. */
@container table-region (max-width:800px){
 table,tbody{display:block;width:100%;white-space:normal}
 thead{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
 tbody{display:grid;gap:12px;padding:12px;background:#f6f8f8}
 tbody:empty{display:none}
 tbody tr{display:block;min-width:0;border:1px solid var(--line);border-radius:10px;background:white;padding:4px 14px;overflow:hidden}
 tbody tr:hover{background:white}
 td,tr:last-child td{display:grid;grid-template-columns:minmax(72px,.65fr) minmax(0,1.35fr);align-items:start;gap:12px;padding:9px 0;border:0;border-bottom:1px solid #f0f3f2;font-size:13px}
 .cell-label{display:block;color:var(--muted);font-size:12px;line-height:1.7}
 .cell-value{min-width:0;overflow-wrap:anywhere}
 td:first-child{display:block;padding:12px 0;border-bottom:1px solid var(--line)}
 td:first-child .cell-label{display:none}
 td:first-child .cell-value{font-weight:600;font-size:14px}
 td:first-child small{font-weight:400}
 td small{margin-top:3px}
 td:last-child,tr:last-child td:last-child{display:block;border-bottom:0;padding:10px 0}
 td:last-child .cell-label{display:none}
 td:last-child button{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;min-height:42px;padding:9px 12px;border:1px solid #dbe6e3;border-radius:7px;background:#f7faf9;color:var(--accent);font-size:13px;font-weight:600}
 .mobile-action-label{display:inline}
 td:last-child .icon{width:16px;height:16px}
}
@media(max-width:1100px) and (min-width:761px){
 .topbar{flex-wrap:wrap}.top-actions{margin-left:auto}
 .stats{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:760px){
 .topbar{display:grid;grid-template-columns:40px minmax(0,1fr);gap:10px 12px;padding:12px 16px}
 .crumb{display:flex;justify-content:flex-end;font-size:12px}
 .top-actions{grid-column:1/-1;display:flex;width:100%;gap:10px}
 .topbar .select,.topbar #location,.topbar #role{flex:1;min-width:0;width:0;max-width:none;font-size:13px;min-height:42px;padding-left:11px;padding-right:30px;background-position:right 9px center;text-overflow:ellipsis}
 .main{padding:22px 16px}
 h1{font-size:24px;letter-spacing:-.6px}
 .page-heading{gap:14px;margin-bottom:20px}
 .page-heading>.actions:not(:empty){width:100%}
 .page-heading>.actions>.btn{flex:1}
 .stats{gap:10px}
 .stat{padding:14px}
 .stat-top{font-size:12px;gap:6px}
 .stat-symbol{padding:4px}
 .stat-symbol .icon{width:17px;height:17px}
 .stat strong{font-size:24px}
 .card-head{padding:16px;gap:8px}
 .card-body{padding:0 16px 16px}
 .table-foot{padding:12px 16px}
 .toolbar{gap:12px}.toolbar .search{flex-basis:100%;width:100%}
 .tabs{width:100%;gap:4px}.tab{font-size:12px;padding:10px;min-height:40px}
 .btn,.text-btn,.tab,.order-link{min-height:44px}
 .order-link{display:inline-flex;align-items:center}
 .attention .text-btn{display:inline-flex;align-items:center}
 .attention>div{min-width:0}.attention h3,.attention p{overflow-wrap:anywhere}
 .task-card{padding:16px}.task-card .actions{gap:8px}
 .task-card .btn{min-width:110px}
 .job .btn,.job .text-btn{min-height:44px}
 .workflow-strip{padding:0 16px 16px}
 .workflow-strip li{padding:12px;min-width:140px}
 .detail-grid{gap:16px}.detail-grid>div{min-width:0;overflow-wrap:anywhere}
 dialog{border-radius:12px;max-height:calc(100dvh - 24px);width:calc(100% - 24px)}
 .dialog-head,.dialog-content{padding:16px}.dialog-foot{padding:14px 16px}
 .dialog-foot>.btn{flex:1}.field input,.field select,.field textarea{font-size:16px}
 .demo{font-size:11px}.demo button{flex-shrink:0;min-height:44px}
 .tracking-head h1{font-size:24px}
}
@media(max-width:360px){
 .stat strong{font-size:21px}.stat{padding:12px}.stat-symbol{display:none}
 .detail-grid{grid-template-columns:1fr}.topbar,.main{padding-left:12px;padding-right:12px}
}

/* Customer cards: identity on one row, two balanced metrics beneath. */
.customer-toolbar .search{flex:1;max-width:420px}
.customer-count{font-size:12px;color:var(--muted);white-space:nowrap}
.customer-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr));gap:14px;align-items:start}
.customer-card{display:block;width:100%;min-width:0;text-align:left;background:#fff;border:1px solid var(--line);border-radius:12px;padding:18px;color:var(--ink);box-shadow:0 1px 2px #19353b03;transition:border-color .15s,box-shadow .15s}
.customer-card:hover{border-color:#91bcb3;box-shadow:0 3px 12px #19353b08}
.customer-card:focus-visible{outline:2px solid #258d80;outline-offset:2px}
.customer-identity{display:flex;align-items:center;gap:12px;min-width:0}
.customer-identity .avatar{width:44px;height:44px;flex-shrink:0;font-size:13px;border-radius:12px}
.customer-identity .business-avatar{background:#edf0f8;color:#596c94}
.customer-name{display:flex;flex-direction:column;gap:3px;min-width:0;flex:1}
.customer-name strong{font-size:14px;line-height:1.4;font-weight:650;overflow-wrap:anywhere}
.customer-name>span{font-size:12px;color:var(--muted);font-weight:400}
.customer-open{display:grid;place-items:center;color:#879c9b;width:24px;flex-shrink:0}
.customer-open .icon{width:17px;height:17px}
.customer-card:hover .customer-open{color:var(--accent)}
.customer-summary{display:grid;grid-template-columns:minmax(0,.65fr) minmax(0,1.35fr);gap:16px;margin-top:16px;padding-top:13px;border-top:1px solid #edf1f0}
.customer-metric{display:flex;flex-direction:column;gap:3px;min-width:0}
.customer-metric>span{font-size:11px;color:var(--muted);font-weight:400}
.customer-metric strong{font-size:14px;font-weight:600;line-height:1.4;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
.customer-balance{text-align:right}
.customer-balance.settled strong{color:var(--accent)}
@media(min-width:1600px){.customer-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:760px){
 .customer-toolbar{flex-wrap:nowrap;gap:12px}
 .customer-toolbar .search{flex-basis:auto;max-width:none}
 .customer-grid{gap:12px}
 .customer-card{padding:16px}
 .customer-summary{margin-top:14px;padding-top:12px}
}
@media(max-width:360px){.customer-toolbar{flex-wrap:wrap}.customer-toolbar .search{flex-basis:100%}}

/* Fittings use purpose-built cards instead of stacked table fields. */
.appointments-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:14px}
.appointments-heading>span{font-size:12px}
.appointment-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,290px),1fr));gap:14px;align-items:start}
.appointment-card{background:#fff;border:1px solid var(--line);border-radius:12px;padding:18px;min-width:0;box-shadow:0 1px 2px #19353b03}
.appointment-top{display:flex;align-items:center;justify-content:space-between;gap:12px}
.appointment-date{display:flex;align-items:center;gap:10px;flex-wrap:wrap;min-width:0}
.appointment-date>time{font-size:13px;font-weight:650}
.appointment-date>span{display:flex;align-items:center;gap:5px;font-size:12px;color:var(--muted)}
.appointment-date .icon{width:14px;height:14px}
.appointment-top .badge{flex-shrink:0}
.appointment-person{margin:16px 0 14px;min-width:0}
.appointment-person h3{font-family:'DM Sans',sans-serif;font-size:15px;line-height:1.4;font-weight:650;overflow-wrap:anywhere}
.appointment-person p{font-size:12px;line-height:1.5;color:var(--muted);margin-top:4px;overflow-wrap:anywhere}
.appointment-footer{display:flex;justify-content:space-between;align-items:center;gap:10px;padding-top:12px;border-top:1px solid #edf1f0}
.appointment-location{display:flex;align-items:center;gap:5px;font-size:11px;color:var(--muted)}
.appointment-location .icon{width:14px;height:14px}
.appointment-footer .btn{font-size:12px;min-height:38px;padding:8px 11px;color:var(--accent);background:#f7faf9;border-color:#dbe6e3;white-space:nowrap}
.appointment-footer .btn:hover{background:#eaf4f0}
.appointment-footer .appointment-completed{opacity:1;color:#697b80;border-color:transparent;background:transparent}
.appointment-completed .icon{width:15px;height:15px}
@media(max-width:760px){
 .appointment-grid{gap:12px}
 .appointment-card{padding:16px}
 .appointment-footer .btn{min-height:44px}
}

/* Month calendar with a focused agenda for the selected day. */
.calendar-layout{display:grid;grid-template-columns:minmax(0,1.9fr) minmax(290px,1fr);gap:20px;align-items:start}
.calendar-toolbar{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:20px}
.calendar-toolbar h2{font-size:18px}
.calendar-toolbar p{font-size:12px;color:var(--muted);margin-top:3px}
.calendar-controls{display:flex;align-items:center;gap:6px}
.calendar-controls .btn{min-height:36px}
.calendar-controls .icon-btn{width:36px;height:36px}
.previous-month{display:flex;transform:rotate(180deg)}
.calendar-weekdays{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));border-top:1px solid var(--line);background:#f8faf9}
.calendar-weekdays span{padding:10px 0;text-align:center;font-size:11px;font-weight:600;color:var(--muted)}
.month-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:1px;background:var(--line);border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.calendar-day{position:relative;background:white;border:0;padding:9px 7px;min-width:0;min-height:100px;display:flex;flex-direction:column;gap:6px;text-align:left;border-radius:0;color:var(--ink)}
.calendar-day:hover{background:#f0f7f4}
.calendar-day.outside-month{background:#fafbfb;color:#5f7170}
.calendar-day.selected-day{background:#edf7f3;box-shadow:inset 0 0 0 2px #278d80}
.calendar-day:focus-visible{outline:2px solid var(--accent);outline-offset:-3px;z-index:1}
.calendar-day-top{display:flex;align-items:center;justify-content:space-between;gap:2px}
.day-number{display:grid;place-items:center;width:25px;height:25px;font-size:12px;font-weight:500;border-radius:50%}
.is-today .day-number{background:var(--accent);color:white;font-weight:700}
.day-count{font-size:10px;color:var(--accent);font-weight:700;padding-right:3px}
.calendar-events{display:grid;gap:4px;width:100%;min-width:0}
.calendar-event{display:block;background:#dff0e9;border-radius:4px;padding:3px 4px;font-size:10px;color:#266453;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.calendar-event b{font-weight:600}.calendar-event.event-done{background:#edf0ef;color:#788b85}
.calendar-more{font-size:10px;color:var(--muted);padding-left:4px}
.calendar-dot{display:none}
.calendar-legend{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:12px 16px;font-size:11px;flex-wrap:wrap}
.calendar-legend>span:first-child{display:flex;align-items:center;gap:7px}
.calendar-legend i{display:block;width:7px;height:7px;border-radius:50%;background:var(--accent)}
.day-schedule{min-width:0}
.day-schedule-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:14px}
.day-schedule-heading .eyebrow{font-size:10px;margin-bottom:5px}
.day-schedule-heading h2{font-size:17px}
.day-appointments{display:grid;gap:12px}
.day-appointments .appointment-card{padding:16px}
.calendar-empty{text-align:center;padding:30px 16px}
.calendar-empty-icon{display:grid;place-items:center;width:44px;height:44px;background:#eef5f2;color:var(--accent);border-radius:12px;margin:0 auto 14px}
.calendar-empty h3{font-size:14px}
.calendar-empty p{font-size:12px;color:var(--muted);margin:6px 0 18px}
@media(max-width:1100px){.calendar-layout{grid-template-columns:1fr}.day-appointments{grid-template-columns:repeat(auto-fit,minmax(min(100%,270px),1fr))}}
@media(max-width:760px){
 .calendar-layout{gap:22px}
 .calendar-toolbar{padding:14px 12px;gap:8px}
 .calendar-toolbar h2{font-size:16px}
 .calendar-toolbar p{font-size:11px}
 .calendar-controls{gap:4px}.calendar-controls .btn{padding:8px;min-height:40px;font-size:12px}
 .calendar-controls .icon-btn{width:36px;height:40px;padding:8px}
 .calendar-weekdays span{font-size:10px;padding:9px 0}
 .calendar-day{min-height:58px;padding:5px 3px;align-items:center;gap:4px}
 .calendar-day-top{width:100%;justify-content:center}.day-count{position:absolute;right:3px;top:3px;padding:0;font-size:9px}
 .calendar-events{display:none}.calendar-dot{display:block;width:4px;height:4px;background:var(--accent);border-radius:50%}
 .day-number{font-size:12px;width:26px;height:26px}
 .calendar-legend{padding:10px 12px;font-size:10px;gap:8px}
 .day-appointments{grid-template-columns:1fr}
}
@media(max-width:360px){.calendar-toolbar{flex-wrap:wrap}.calendar-controls{margin-left:auto}.calendar-day{min-height:52px}}

/* Orders and fittings share the calendar, with distinct event types. */
.calendar-filter-bar{display:flex;gap:4px;margin-bottom:16px;flex-wrap:wrap}
.calendar-filter-bar .tab{border:1px solid transparent}
.calendar-filter-bar .tab.active{border-color:#c8e2d8}
.calendar-event.event-due{background:#fff1d9;color:#956414}
.calendar-event.event-overdue{background:#fce9e7;color:#ad4941}
.calendar-event.event-done{background:#edf0ef;color:#788b85}
.calendar-legend{justify-content:flex-start;gap:16px}
.calendar-legend>span{display:flex;align-items:center;gap:6px}
.calendar-legend .due-dot,.calendar-dots .due-dot{background:#be892c}
.calendar-legend .overdue-dot,.calendar-dots .overdue-dot{background:#bd5b51}
.calendar-dots{display:none}
.agenda-section+.agenda-section{margin-top:20px}
.agenda-section-title{display:flex;align-items:center;gap:7px;margin-bottom:10px;font-family:'DM Sans',sans-serif;font-size:12px;font-weight:600;color:var(--muted)}
.agenda-section-title .icon{width:15px;height:15px}
.agenda-section-title>span{margin-left:auto;font-size:11px}

.due-order-id{font-size:11px;font-weight:600;white-space:nowrap;color:var(--muted)}
.due-order-card.is-overdue{border-color:#e7c2bd}
.due-order-card .appointment-top{align-items:flex-start;flex-wrap:wrap}
.due-order-card .appointment-top .actions{gap:5px;justify-content:flex-end;margin-left:auto}
.due-order-details{display:grid;grid-template-columns:1fr 1fr;gap:10px 14px;margin:0 0 14px}
.due-order-details>div{min-width:0}
.due-order-details dt{font-size:10px;color:var(--muted);margin:0 0 3px}
.due-order-details dd{font-size:12px;margin:0;overflow-wrap:anywhere}
.due-balance{display:flex;flex-direction:column;gap:3px;min-width:0}
.due-balance>span{font-size:10px;color:var(--muted)}
.due-balance strong{font-size:12px;font-weight:600;overflow-wrap:anywhere}
.due-order-card .appointment-footer .icon{width:14px;height:14px}
@media(max-width:760px){
 .calendar-dots{display:flex;justify-content:center;gap:4px}
 .calendar-dots i{display:block;width:5px;height:5px;background:var(--accent);border-radius:50%}
 .calendar-legend{gap:12px}
 .calendar-filter-bar .tab{flex:1}
}

/* Consistent vector icons, with distinct completed/current/upcoming steps. */
.icon{stroke-width:1.8}
.sidebar-toggle{width:36px;height:36px;padding:8px;border:0;border-radius:8px;background:transparent;color:#b9cecf;box-shadow:none}
.sidebar-toggle .icon{width:20px;height:20px;stroke-width:1.8}
.sidebar-toggle:hover{background:#244b50;color:#ecfff9}
.sidebar-toggle:focus-visible{outline:2px solid #8fd5c4;outline-offset:2px;background:#244b50}
.timeline{gap:0;align-items:flex-start;padding:3px 0}
.timeline-step{min-width:76px;padding:0 4px;font-size:11px;line-height:1.4;color:#566764}
.timeline-step:before{top:18px;background:#e0e8e5}
.timeline-marker{position:relative;z-index:1;display:grid;place-items:center;width:34px;height:34px;margin:0 auto 9px;border:1px solid #dbe5e1;border-radius:50%;background:#fff;color:#91a39d}
.timeline-marker .icon{width:17px;height:17px;stroke-width:1.8}
.timeline-step.done .timeline-marker{background:#168775;border-color:#168775;color:#fff}
.timeline-step.done .timeline-marker .icon{stroke-width:2.3}
.timeline-step.done:before{background:#a5d1c2}
.timeline-step.current .timeline-marker{color:#087f70;background:#e6f4ed;border:2px solid #168775}
.timeline-step.current{color:#176f5f;font-weight:600}
.timeline-label{display:block;overflow-wrap:anywhere}
@media(max-width:760px){.timeline-step{min-width:68px}.timeline-marker{width:30px;height:30px}.timeline-marker .icon{width:16px;height:16px}.timeline-step:before{top:16px}}

/* Production cards start compact; native disclosure supports touch and keyboard. */
.job{padding:0;overflow:hidden}
.job-summary{display:block;list-style:none;cursor:pointer;padding:13px 14px;min-height:44px}
.job-summary::-webkit-details-marker{display:none}
.job-summary::marker{content:''}
.job-summary:hover{background:#f8fbfa}
.job-summary:focus-visible{outline:2px solid var(--accent);outline-offset:-3px;border-radius:10px}
.job-card-top{display:flex;align-items:center;gap:7px}
.job-order{font-size:11px;color:var(--muted)}
.job-toggle-icon{margin-left:auto;display:grid;place-items:center;width:26px;height:26px;border-radius:6px;background:#f0f6f4;color:#478578;flex-shrink:0}
.job-toggle-icon .icon{width:15px;height:15px;stroke-width:1.9;transition:transform .15s ease}
.job-disclosure[open] .job-toggle-icon .icon{transform:rotate(180deg)}
.job-summary h3{font-size:13px;line-height:1.45;margin:7px 0 10px}
.job-summary-meta{display:flex;align-items:center;justify-content:space-between;gap:7px;flex-wrap:wrap}
.job-summary-meta .badge{white-space:normal;line-height:1.4}
.job-summary-meta .job-meta{font-size:11px;gap:5px}
.job-summary-meta .job-meta .icon{width:14px;height:14px}
.job-details{padding:13px 14px 14px;border-top:1px solid #edf1f0}
.job-details p{margin:0 0 10px}
.job-details .job-bottom{margin-top:0}
.job-details .avatar{width:27px;height:27px;font-size:11px;flex-shrink:0}
.job-details .job-bottom>.job-meta{min-width:0}
.job-details .text-btn{flex-shrink:0}
@media(max-width:760px){.job-summary{padding:14px}.job-toggle-icon{width:28px;height:28px}.job-details .btn,.job-details .text-btn{min-height:44px}}

/* My Work: staff picker and task details */
.mywork-picker{min-width:240px}
.task-card .task-due{margin-top:10px;color:var(--ink);font-weight:600}
.task-card .actions .btn .icon{width:17px;height:17px}

/* My Work: department work cards with measurements */
.work-list{display:grid;gap:16px}
.work-card{padding:22px}
.work-card.is-urgent{border-color:#e7c2bd}
.work-card-head{display:flex;justify-content:space-between;align-items:flex-start;gap:16px}
.work-card-head h2{margin:4px 0 6px}
.work-card-head p.muted{font-size:14px}
.work-order{font-size:13px;font-weight:600;color:var(--muted)}
.work-badges{display:flex;flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:6px;flex-shrink:0;max-width:45%}
.work-owner{flex-basis:100%;text-align:right;font-size:13px;color:var(--muted)}
.work-facts{display:flex;flex-wrap:wrap;gap:10px 28px;margin:14px 0 0}
.work-facts>div{min-width:0}
.work-facts dt{margin-bottom:2px;font-size:12px;color:var(--muted)}
.work-facts dd{margin:0;font-size:14px;font-weight:500;color:var(--ink);overflow-wrap:anywhere}
.work-facts .is-due dd{font-weight:700}
.work-facts .is-overdue dd{color:var(--red)}
.work-foot{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;margin-top:14px;padding-top:10px;border-top:1px solid var(--line)}
.work-foot>.work-details{flex:1 1 220px;min-width:0}
.work-foot>.work-details[open]{flex-basis:100%}
.work-foot>.work-details>summary{width:fit-content;max-width:100%;margin-left:-10px}
.work-measures{margin-top:16px;padding:14px 16px;border-radius:10px;background:#f4f8f7}
.work-unit{font-size:12px;font-weight:600;color:var(--muted);margin-bottom:10px}
.work-measure-group+.work-measure-group{margin-top:12px}
.work-measure-group h4{margin:0 0 8px;font-size:13px}
.work-measure-group dl{display:grid;grid-template-columns:repeat(auto-fill,minmax(112px,1fr));gap:6px;margin:0}
.work-measure-group dl div{display:flex;justify-content:space-between;gap:8px;padding:7px 10px;border-radius:7px;background:#fff;border:1px solid var(--line)}
.work-measure-group dt{font-size:12px;color:var(--muted)}
.work-measure-group dd{margin:0;font-size:14px;font-weight:700;font-variant-numeric:tabular-nums}
.work-missing{margin-top:16px;padding:12px 14px;border-radius:10px;background:#fff3df;color:#7a5413;font-size:14px}
.work-note{margin-top:12px;font-size:14px;line-height:1.6}
.work-note strong{margin-right:6px}
.work-drawing{display:block;max-width:320px;width:100%;margin-top:14px;border:1px solid var(--line);border-radius:8px;background:#fff}
.work-actions{margin-left:auto;justify-content:flex-end}
.work-actions .btn[data-action=task-pause]{background:transparent;border-color:transparent;color:var(--muted)}
.work-actions .btn[data-action=task-pause]:hover{background:#f1f7f4;color:var(--ink)}
.work-uniforms{list-style:none;margin:16px 0 0;padding:0;display:grid;gap:12px}
.work-uniforms li{padding:14px;border:1px solid var(--line);border-radius:10px}
.work-uniforms .work-measures{margin-top:10px}
.work-uniforms .work-missing{margin-top:10px}
.work-uniform-head{display:flex;align-items:center;flex-wrap:wrap;gap:8px 12px}
.work-uniform-head span{color:var(--muted);font-size:14px;margin-right:auto}
@media(max-width:760px){
 .work-list>.work-card.card{padding:16px}
 .work-card-head{flex-direction:column;gap:10px}
 .work-badges{width:100%;justify-content:flex-start;max-width:none}
 .work-owner{flex-basis:auto;margin-left:auto;text-align:right}
 .work-facts{display:grid;grid-template-columns:1fr 1fr;gap:10px 16px}
 .work-facts .is-wide{grid-column:1/-1}
 .work-actions{width:100%}
 .work-actions .btn{flex:1 1 40%;white-space:nowrap}
 .work-actions .btn.primary{flex-basis:100%;order:-1}
}

/* The fixed sidebar only covers the viewport; this column keeps the dark rail behind it for the
   full page height (long pages, full-page captures, print preview). */
#app{position:relative;min-height:100vh}
#app:has(>.sidebar)::before{content:"";position:absolute;top:0;bottom:0;left:0;width:238px;background:var(--nav);pointer-events:none}
@media(max-width:1150px){#app:has(>.sidebar)::before{width:210px}}
@media(min-width:761px){#app.sidebar-collapsed:has(>.sidebar)::before{width:76px}}
@media(max-width:760px){#app:has(>.sidebar)::before{display:none}}
/* An unpinned sidebar slides off screen, so its rail must go too or it covers the page and the menu button. */
#app.menu-unpinned:has(>.sidebar)::before{display:none}
