:root{--ink:#223b33;--muted:#5d6b62;--green:#204f43;--light:#eaf0e8;--border:#e5e8e1;--canvas:#f7f8f4;--lime:#c6dfa7;--amber:#a47a35}*{box-sizing:border-box}body{margin:0;color:var(--ink);background:var(--canvas);font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-size:14px;line-height:1.5}a{color:inherit;text-decoration:none}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}a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #7aa289;outline-offset:3px}input,select,textarea{color:var(--ink);background:#fff;border:1px solid #dce1d9;border-radius:7px;min-height:46px;padding:11px 14px;width:100%}input::placeholder,textarea::placeholder{color:#70786f}input:focus,select:focus,textarea:focus{border-color:#527962}textarea{resize:vertical}h1,h2,h3,p{margin-top:0}h1{font-size:32px;letter-spacing:-1.2px;line-height:1.2;font-weight:560}h2{font-size:16px;letter-spacing:-.3px;font-weight:600}h3{font-weight:600}button{border:0}label{font-size:13px;font-weight:550}.brand{display:flex;align-items:center;gap:9px;font-size:23px;letter-spacing:-.9px;font-weight:750;white-space:nowrap}.brand>span:not(.brand-dot){font-weight:400;margin-left:-5px}.brand-light{color:#fff}.brand-dot{width:6px;height:6px;background:var(--lime);border-radius:50%;align-self:flex-end;margin-bottom:9px;margin-left:-6px}.eyebrow{font-size:12px;font-weight:600;letter-spacing:1.65px}.muted{color:var(--muted)}.button{display:inline-flex;justify-content:center;align-items:center;gap:12px;padding:12px 19px;min-height:43px;border-radius:7px;font-size:13px;font-weight:550;white-space:nowrap;transition:background .15s,transform .15s;border:1px solid transparent}.button:hover{transform:translateY(-1px)}.primary{background:var(--green);color:#fff}.primary:hover{background:#153d32}.secondary{background:#fff;border-color:#dce2d8}.secondary:hover{background:#f0f4ec}.full{width:100%}.full>span{margin-left:auto}.login-layout{display:grid;grid-template-columns:1.06fr 1fr;min-height:100vh}.login-story{background:#153d35;position:relative;overflow:hidden;color:#f7faef;padding:48px 60px 29px;display:flex;flex-direction:column}.login-story:before{content:"";position:absolute;inset:0;background:radial-gradient(ellipse at 60% 60%,#39614766,transparent 65%);pointer-events:none}.login-story>*{position:relative}.story-copy{margin-top:83px}.story-copy .eyebrow{color:#b3c3b4;font-size:12px;letter-spacing:1.4px;display:flex;align-items:center;gap:10px}.little-line{width:24px;height:1px;background:var(--lime)}.story-copy h1{font-size:clamp(35px,3.7vw,55px);line-height:1.19;font-weight:450;letter-spacing:-2px;margin:23px 0 20px}.story-copy em{color:#c7dda9;font-family:Georgia,serif;font-weight:400}.story-copy p{font-size:14px;line-height:1.85;color:#b3c8bd}.building-scene{position:relative;width:calc(100% + 65px);margin-left:-33px;margin-top:-4px;min-height:255px;flex:1;display:flex;align-items:center}.building-art{width:100%;max-height:330px}.system-tag{display:flex;align-items:center;gap:9px;position:absolute;font-size:12px;border:1px solid #6b8c7160;border-radius:5px;padding:9px 12px;background:#224c40e8;box-shadow:0 8px 22px #0a211b30}.system-tag>span{margin-left:13px;color:#9eb2a3}.tag-a{left:4%;top:53%}.tag-b{right:5%;top:20%}.tag-c{right:1%;top:72%}.dot{display:inline-block;width:7px;height:7px;border-radius:50%;flex-shrink:0}.green{background:#afd394}.amber{background:#dfb876}.blue{background:#7dbbb3}.story-bottom{border-top:1px solid #7791823d;padding-top:23px;display:flex;align-items:center;justify-content:space-between;font-size:12px;color:#b4c4b7;gap:12px}.tiny-boxes{letter-spacing:2px;color:#d4e1cc;font-size:12px}.tiny-boxes i{font-style:normal;color:#769784;margin:0 4px}.login-side{display:flex;flex-direction:column;background:#fcfcf9;padding:44px 48px 26px}.login-top{display:flex;justify-content:space-between;color:var(--muted);font-size:12px}.language{color:#5b655b}.language>span{margin-left:12px}.login-form-wrap{max-width:374px;width:100%;margin:auto; padding:55px 0 40px}.small-icon{height:42px;width:42px;display:grid;place-items:center;background:#edf1e7;border:1px solid #e2e7d9;border-radius:11px;color:var(--green);font-size:25px;margin-bottom:25px}.login-form-wrap .eyebrow{font-size:12px;letter-spacing:1.45px}.login-form-wrap h2{font-size:27px;font-weight:550;letter-spacing:-1px;margin:10px 0}.intro{font-size:13px;margin-bottom:28px}.login-form label{display:block;margin-bottom:8px}.login-form input{height:49px;font-size:13px;background:#fff}.password-label{margin-top:20px}.password-field{position:relative}.password-field input{padding-right:45px}.show-password{background:transparent;color:#899286;position:absolute;right:9px;top:7px;width:33px;height:35px}.login-help{font-size:12px;color:var(--muted);margin:10px 0 23px}.login-form .button{height:48px}.secure-note{margin:19px 0 30px;display:flex;gap:8px;align-items:center;justify-content:center;color:var(--muted);font-size:12px}.secure-note svg{width:15px;height:15px;flex-shrink:0}.demo-divider{display:flex;align-items:center;gap:14px;font-size:12px;letter-spacing:1.2px;color:var(--muted);margin-bottom:20px}.demo-divider:before,.demo-divider:after{content:"";flex:1;height:1px;background:#e5e9df}.demo-explainer{text-align:center;color:var(--muted);font-size:12px;margin:11px 0 0}.login-footer{display:flex;justify-content:space-between;font-size:12px;color:var(--muted)}.app-shell{display:flex;min-height:100vh}.sidebar{width:242px;flex-shrink:0;border-right:1px solid var(--border);background:#fcfdf9;display:flex;flex-direction:column;position:fixed;inset:0 auto 0 0;padding:29px 18px 0;z-index:10}.sidebar .brand{font-size:21px;padding:0 6px;gap:8px}.workspace-label{font-size:12px;letter-spacing:1.5px;color:var(--muted);margin:42px 13px 10px}.project-switch{display:flex;align-items:center;gap:8px;border:1px solid var(--border);border-radius:7px;padding:4px 8px;background:#fff;margin-bottom:27px}.project-symbol{font-size:23px;color:#617658}.project-switch select{font-size:12px;min-height:38px;border:0;padding:5px 0;background:transparent;text-overflow:ellipsis}.sidebar nav a{display:flex;align-items:center;gap:12px;padding:11px 14px;margin-bottom:6px;font-size:12px;color:#6d7769;border-radius:6px}.sidebar nav a>span{font-size:19px;line-height:1;min-width:20px;text-align:center}.sidebar nav a:hover{background:#f0f3ec}.sidebar nav a.active{color:#2d5b3e;background:#eaf0e4;font-weight:600}.sidebar nav b{margin-left:auto;border-radius:4px;background:#dde6d4;padding:1px 6px;font-size:12px}.nav-divider{height:1px;background:var(--border);margin:22px 13px}.sidebar-bottom{margin-top:auto}.collab-note{margin:30px 12px;color:var(--muted)}.collab-icon{font-size:28px;display:block;margin-bottom:7px;color:#7f9673}.collab-note strong{font-size:12px;color:#63755b}.collab-note p{font-size:12px;margin:6px 0}.user-card{display:flex;align-items:center;gap:10px;border-top:1px solid var(--border);margin:0 -18px;padding:19px 22px}.avatar,.top-avatar{display:grid;place-items:center;border-radius:50%;background:#e7e9df;color:var(--muted);width:34px;height:34px;font-size:12px;font-weight:600}.user-card strong{font-size:12px;display:block}.user-card small{display:block;font-size:12px;color:var(--muted)}.user-card>a,.user-card>form{margin-left:auto}.user-card button{background:transparent;color:var(--muted);font-size:19px}.main-shell{flex:1;margin-left:242px;min-width:0;display:flex;flex-direction:column}.topbar{height:77px;border-bottom:1px solid var(--border);background:#fcfdf9;display:flex;justify-content:space-between;align-items:center;padding:0 36px;font-size:12px;color:#5a6753}.breadcrumb{color:var(--muted)}.slash{color:#c5cbbb;margin:0 15px}.topbar-right{display:flex;align-items:center;gap:8px;color:var(--muted);font-size:12px}.live-dot{height:6px;width:6px;background:#7ba16a;border-radius:50%}.top-avatar{margin-left:21px}.main-content{padding:26px 36px 40px;max-width:1680px;width:100%;margin:0 auto;flex:1}.demo-banner{display:flex;align-items:center;justify-content:space-between;gap:20px;background:#edf2e7;border:1px solid #e0e8d7;border-radius:6px;padding:10px 14px;font-size:12px;color:#637956;margin-bottom:29px}.demo-banner b{font-weight:600}.demo-banner a{white-space:nowrap;font-weight:600}.page-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:17px 0 27px}.page-heading .eyebrow{font-size:12px;letter-spacing:1.2px;text-transform:uppercase}.page-heading h1{margin:9px 0 10px;font-size:30px}.heading-dot{color:#76995b}.page-heading p{font-size:12px;margin:0}.phase-label{display:flex;align-items:center;gap:7px;font-size:12px;background:#fff;border:1px solid var(--border);padding:7px 11px;border-radius:5px}.phase-label .dot{width:5px;height:5px;background:#769360}.stats-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:17px;margin-bottom:27px}.stat-card{background:#fff;border:1px solid var(--border);border-radius:9px;padding:19px 21px 17px}.stat-label{display:flex;align-items:center;justify-content:space-between;color:var(--muted);font-size:12px;gap:7px}.stat-label>span{font-size:18px;color:#879479}.stat-label .amber-text{color:#876e45}.stat-number{font-size:35px;letter-spacing:-1.3px;line-height:1.2;margin:17px 0 15px;font-weight:500}.stat-number>span{font-size:12px;letter-spacing:0;color:#899281;margin-left:8px;font-weight:400}.stat-card small{font-size:12px;color:var(--muted)}.mini-dot{display:inline-block;height:5px;width:5px;background:#caa571;border-radius:50%;margin-right:4px}.completed{background:#edf2e7;border-color:#dfe7d8}.completed .stat-number{color:#49693c}.progress-track{display:flex;gap:10px;align-items:center;font-size:12px;color:var(--muted)}.progress-track progress{appearance:none;flex:1;min-width:0;border:0;border-radius:3px;height:4px;overflow:hidden;background:#dce6d1}.progress-track progress::-webkit-progress-bar{background:#dce6d1}.progress-track progress::-webkit-progress-value{background:#73965d;border-radius:3px}.progress-track progress::-moz-progress-bar{background:#73965d}.overview-grid{display:grid;grid-template-columns:minmax(0,1fr) 265px;gap:23px}.panel{background:#fff;border:1px solid var(--border);border-radius:9px;overflow:hidden}.panel-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:21px 23px}.panel-heading h2{font-size:13px;margin:0}.panel-heading p{font-size:12px;color:var(--muted);margin:5px 0 0}.text-link{font-size:12px;font-weight:550;color:#567345}.panel-heading .text-link{font-size:12px;white-space:nowrap}.table-scroll{overflow-x:auto}table{width:100%;border-collapse:collapse;text-align:left;white-space:nowrap}th{font-size:12px;letter-spacing:.7px;font-weight:550;color:var(--muted);background:#fafbf7;padding:12px 14px;border-top:1px solid #eef0e9;border-bottom:1px solid #eef0e9}th:first-child,td:first-child{padding-left:23px}td{padding:17px 14px;border-bottom:1px solid #edf0e9;font-size:12px}tr:last-child td{border-bottom:0}tbody tr:hover{background:#fcfdf9}.interface-title{font-size:12px;display:block;font-weight:550;white-space:normal;min-width:150px;max-width:310px;line-height:1.65}.interface-title:hover{color:#537b41}.interface-code{font-size:12px;display:block;color:var(--muted);letter-spacing:.5px;font-weight:400}.company-sub{display:block;font-size:12px;color:var(--muted);margin-top:3px}.discipline{font-size:12px;color:var(--muted)}.connection{color:#b0bba6;font-size:12px;margin:0 6px}.badge{display:inline-flex;align-items:center;gap:5px;padding:4px 8px;border-radius:5px;font-size:12px;white-space:nowrap;background:#eef0ed;color:var(--muted)}.badge i{width:4px;height:4px;background:currentColor;border-radius:50%}.badge.clarify{color:#886e3e;background:#f8f0df}.badge.progress{color:#4a6f7a;background:#eaf2f4}.badge.done{color:#607a48;background:#edf3e6}.badge.open{color:var(--muted);background:#f0f2ed}.date-cell{font-size:12px;color:var(--muted)}.row-arrow{font-size:15px;color:#849574}.project-panel .panel-heading>span{font-size:19px;color:#859476}.project-illustration{margin:0 19px 20px;background:#f0f2e8;border-radius:6px;height:133px;position:relative;display:flex;align-items:center;justify-content:center;overflow:hidden;background-image:linear-gradient(90deg,#e3e8d944 1px,transparent 1px),linear-gradient(#e3e8d944 1px,transparent 1px);background-size:18px 18px}.mini-building{transform:skewY(-15deg);display:flex;align-items:end;margin-top:-13px}.mini-building span{width:41px;height:58px;display:block;border:1px solid #a0b28f;background:repeating-linear-gradient(0deg,transparent 0,transparent 11px,#b3c39e 12px,#b3c39e 13px),repeating-linear-gradient(90deg,#d4dfc5 0,#d4dfc5 12px,#b3c39e 13px,#b3c39e 14px);box-shadow:6px 6px 0 #adbfa2}.mini-building span:nth-child(2){height:76px;z-index:2}.mini-building span:nth-child(3){height:46px;z-index:3}.illustration-caption{font-size:12px;letter-spacing:1.4px;position:absolute;bottom:10px;color:var(--muted)}.project-panel h3{font-size:14px;margin:0 22px 4px}.address{font-size:12px;margin:0 22px 19px}.project-meta{margin:0 22px 21px;font-size:12px}.project-meta>div{display:flex;align-items:baseline;justify-content:space-between;gap:20px;padding:9px 0;border-bottom:1px solid #eef0e8}.project-meta>div:last-child{border:0}.project-meta dt{color:var(--muted)}.project-meta dd{text-align:right;margin:0;color:#65775a}.project-panel .button{width:calc(100% - 44px);margin:0 22px 22px;font-size:12px;min-height:36px;padding:8px}.bottom-note{display:flex;align-items:center;gap:15px;border:1px dashed #d9e2d0;border-radius:8px;padding:21px;margin-top:24px;color:#657858}.note-icon{font-size:27px;color:#79995c}.bottom-note strong{font-size:12px;font-weight:550}.bottom-note p{font-size:12px;margin:4px 0 0;color:var(--muted)}.note-decoration{margin-left:auto;font-size:12px;letter-spacing:1.4px;color:#829570}.app-footer{padding:17px 36px;display:flex;justify-content:space-between;font-size:12px;color:var(--muted)}.footer-dot{margin:0 8px}.filter-bar{display:flex;align-items:center;gap:12px;padding:20px 23px}.search-field{position:relative;flex:1}.search-field>span{position:absolute;left:13px;top:7px;font-size:22px;color:#859377}.search-field input{padding-left:38px;font-size:12px}.filter-bar select{max-width:160px;font-size:12px}.list-count{color:var(--muted);font-size:12px;padding:0 23px 17px}.company-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}.company-card{padding:25px;position:relative}.company-icon{display:grid;place-items:center;width:46px;height:46px;border:1px solid #dce6d2;border-radius:10px;background:#edf3e7;color:#6b8556;font-size:16px;margin-bottom:22px}.company-card>.badge{position:absolute;right:20px;top:27px;font-size:12px}.company-card h2{font-size:16px}.company-card p{font-size:12px;margin-bottom:28px}.add-company{margin-top:25px;padding:25px}.add-company>p{font-size:12px}.inline-form{display:flex;align-items:end;gap:15px;margin-top:20px}.inline-form label{flex:1;font-size:12px}.inline-form input{margin-top:7px}.inline-form button{min-height:46px}.activity-panel,.account-panel,.detail-panel{padding:28px;max-width:950px}.account-panel{max-width:720px}.account-panel .project-meta,.detail-panel .project-meta{margin:20px 0 28px;font-size:13px}.account-panel .project-meta>div,.detail-panel .project-meta>div{padding:15px 0}.account-note{font-size:12px;margin:24px 0 0;max-width:500px;line-height:1.8}.description{font-size:14px;color:var(--muted);line-height:1.9}.activity-row{display:flex;gap:17px;align-items:center;padding:23px 0;border-bottom:1px solid var(--border)}.activity-row:last-child{border:0}.activity-row strong{font-size:12px;font-weight:550}.activity-row p{font-size:12px;color:var(--muted);margin:5px 0 0}.activity-icon{display:grid;place-items:center;background:#edf2e7;color:#77995e;border-radius:50%;width:35px;height:35px}.empty{padding:40px 22px;text-align:center;white-space:normal;color:var(--muted)}.empty h3{font-size:14px;color:#637854;margin:10px 0}.empty p{font-size:12px;max-width:450px;margin:0 auto;line-height:1.8}.empty-icon{font-size:36px;color:#7c9764}.form-page{max-width:690px;margin:42px auto;padding:0 22px 40px}.form-back{display:block;margin:32px 0 18px}.form-panel{padding:32px}.form-panel h1{margin:10px 0 30px}.form-field{margin-bottom:22px}.form-field label{display:block;margin-bottom:7px}.help-text{font-size:12px;color:var(--muted);line-height:1.7}.help-text ul{padding-left:18px}.form-actions{display:flex;justify-content:flex-end;gap:12px;margin-top:30px}.alert,.errorlist{padding:12px 16px;background:#edf3e7;color:#557344;border-radius:6px;margin-bottom:18px;font-size:12px;list-style:none}.alert.error,.errorlist{background:#fbece7;color:#9a4a36}.standalone{max-width:600px;margin:100px auto;padding:30px}.standalone h1{margin-top:35px}.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}
@media(min-width:1600px){.login-story{padding-left:90px;padding-right:90px}.story-copy{margin-top:110px}.building-art{max-height:430px}.login-form-wrap{max-width:410px}.overview-grid{grid-template-columns:minmax(0,1fr) 300px}td{padding-top:20px;padding-bottom:20px}.interface-title{max-width:400px}.stat-card{padding:23px}.stat-number{font-size:41px}}
@media(max-width:1250px){.sidebar{width:215px;padding-left:13px;padding-right:13px}.sidebar .brand{font-size:19px}.main-shell{margin-left:215px}.main-content{padding:24px}.topbar{padding:0 24px}.overview-grid{grid-template-columns:minmax(0,1fr) 235px;gap:16px}.stats-grid{gap:12px}.stat-card{padding:17px 14px}.stat-number>span{font-size:12px}.stat-label{font-size:12px}.interface-panel th:nth-child(2),.interface-panel td:nth-child(2){display:none}.user-card{margin-left:-13px;margin-right:-13px}.login-story{padding:36px}.login-side{padding:36px}.story-copy{margin-top:70px}.company-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:950px){.login-layout{grid-template-columns:.9fr 1fr}.login-story{padding:32px 26px}.story-copy h1{font-size:38px}.story-copy .eyebrow{font-size:12px;line-height:1.8}.story-copy p{font-size:12px}.story-bottom{font-size:12px}.tiny-boxes{font-size:12px}.login-side{padding:32px}.login-form-wrap h2{font-size:24px}.login-top{font-size:12px}.login-form-wrap{padding-top:50px}.desktop{display:none}.sidebar{width:185px}.main-shell{margin-left:185px}.sidebar .brand{font-size:17px;gap:6px}.sidebar .brand img{width:30px;height:30px}.sidebar nav a{font-size:12px;padding:11px 10px;gap:8px}.project-switch select{font-size:12px}.main-content{padding:20px}.topbar{padding:0 20px}.overview-grid{grid-template-columns:1fr}.project-panel{display:none}.stats-grid{grid-template-columns:repeat(2,1fr)}.stat-label{font-size:12px}.stat-number>span{font-size:12px}.demo-banner{align-items:flex-start;font-size:12px}.page-heading h1{font-size:27px}.page-heading p{font-size:12px}.phase-label{display:none}.company-card{padding:20px}.company-card>.badge{position:static;margin-bottom:15px}.note-decoration{display:none}.app-footer{padding:17px 20px}}
@media(max-width:680px){.login-layout{display:block}.login-story{padding:23px;min-height:240px}.login-story .brand{font-size:21px}.login-story .brand img{width:32px;height:32px}.story-copy{margin-top:33px}.story-copy h1{font-size:32px;margin:14px 0}.story-copy p,.building-scene,.story-bottom,.story-copy .eyebrow{display:none}.login-side{padding:24px}.login-top{display:none}.login-form-wrap{padding:10px 0 40px;max-width:420px}.small-icon{display:none}.login-form-wrap>.eyebrow{margin-top:10px}.login-footer{max-width:420px;width:100%;margin:0 auto}.app-shell{display:block}.sidebar{position:static;width:100%;padding:16px;border-bottom:1px solid var(--border);border-right:0}.sidebar .brand{font-size:21px}.sidebar .brand img{width:32px;height:32px}.workspace-label,.project-switch,.sidebar-bottom,.nav-divider{display:none}.sidebar nav{display:flex;gap:3px;margin-top:17px;overflow-x:auto}.sidebar nav a{white-space:nowrap;padding:8px 10px;margin:0;font-size:12px;gap:6px}.sidebar nav a>span{font-size:15px;min-width:15px}.sidebar nav a:last-child{margin-left:auto}.sidebar nav b{display:none}.main-shell{margin:0}.topbar{height:50px;padding:0 18px;font-size:12px}.topbar-right{font-size:12px}.top-avatar{display:none}.main-content{padding:17px}.demo-banner{display:block;padding:10px 12px;margin-bottom:22px;font-size:12px}.demo-banner a{display:block;margin-top:5px}.page-heading{margin:13px 0 22px;align-items:flex-start}.page-heading h1{font-size:27px}.page-heading p{line-height:1.7}.page-heading>.button{padding:9px;font-size:12px}.stats-grid{gap:10px;margin-bottom:20px}.stat-card{padding:15px}.stat-label{font-size:12px}.stat-number{font-size:30px;margin:13px 0}.stat-number>span{font-size:12px}.stat-card small{font-size:12px}.panel-heading{padding:17px}.panel-heading h2{font-size:12px}.panel-heading p{font-size:12px}.panel-heading .text-link{font-size:12px}.interface-panel th:nth-child(4),.interface-panel td:nth-child(4){display:none}th:first-child,td:first-child{padding-left:17px}td{padding:15px 10px}.interface-title{font-size:12px;min-width:120px}.company-sub{font-size:12px}.badge{font-size:12px}.bottom-note{padding:16px;margin-top:18px}.bottom-note strong{font-size:12px}.bottom-note p{font-size:12px}.app-footer{padding:16px 17px;font-size:12px;gap:12px}.filter-bar{flex-wrap:wrap;padding:15px;gap:10px}.search-field{flex:1 0 100%}.filter-bar select{max-width:none;flex:1}.filter-bar .button{font-size:12px}.company-grid{grid-template-columns:1fr}.company-card{padding:22px}.company-card>.badge{position:absolute;right:22px;top:26px}.inline-form{display:block}.inline-form label{display:block;margin-bottom:14px}.inline-form button{width:100%}.account-panel,.detail-panel,.activity-panel{padding:21px}.project-meta{font-size:12px!important}.form-panel{padding:23px}.form-page{margin-top:25px;padding:0 17px}.form-panel h1{font-size:26px}.form-actions .button{font-size:12px}.account-note{font-size:12px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}

.account-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap}

.master-note{background:#edf4f2;border:1px solid #d7e5df;border-radius:12px;padding:18px 22px;margin-bottom:20px;font-size:13px;line-height:1.7}.master-note p{margin:5px 0 0}.master-tabs{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:22px}.master-tabs .button{font-size:12px;padding:10px 13px}.master-panel{min-width:0;overflow:hidden}.master-source{padding:16px 22px;font-size:12px;line-height:1.7;border-top:1px solid #e4e9e6}.master-source summary{cursor:pointer;font-weight:600}.master-scroll{overflow:auto;max-height:65vh}.master-table{width:max-content;min-width:100%;border-collapse:separate;border-spacing:0}.master-table th,.master-table td{white-space:pre-wrap;min-width:140px;max-width:320px;padding:14px;vertical-align:top;border-bottom:1px solid #e4e9e6;border-right:1px solid #edf0ee;font-size:12px;overflow-wrap:anywhere}.master-table thead th{position:sticky;top:0;background:#eef3f0;z-index:2}.master-table thead small{display:block;color:var(--muted);margin-bottom:5px}.master-table th:first-child{position:sticky;left:0;background:#f8faf9;min-width:180px;max-width:240px;z-index:1}.master-table thead th:first-child{z-index:3}.master-table tbody th{font-weight:400}.master-table tbody th strong,.master-table tbody th .badge{display:block;margin-bottom:8px}.master-error{color:#a13c24;background:#fff2e9}.master-pagination{display:flex;align-items:center;justify-content:center;gap:20px;padding:18px;font-size:13px}.main-shell,.main-content{min-width:0}

.system-state{display:inline-block;border-radius:5px;padding:4px 7px;font-size:12px;font-weight:600;white-space:nowrap}.state-v{background:#e2f2d4;color:#315b19}.state-u{background:#fff1ad;color:#685100}.state-x{background:#ffe0da;color:#8b2919}.system-table .system-status-heading{min-width:125px;max-width:155px}.system-table td{min-width:125px}.system-table tbody th>small{display:block;margin-bottom:6px}

.contractor-groups{display:flex;flex-wrap:wrap;gap:8px;margin:16px 0 24px}.contractor-groups .button{font-size:13px;padding:10px 14px}

.project-step{border:0;padding:0;margin:28px 0;min-width:0}.project-step legend{font-size:1.1rem;font-weight:650;margin-bottom:18px}.marking-preview{padding:18px;border:1px solid #d5e4df;border-radius:10px;background:#f3f8f5;overflow-wrap:anywhere}.marking-preview p{margin:8px 0}.project-step textarea{min-height:100px}

/* Keep project creation in the shared topbar, including narrow screens. */
.workspace-status{display:inline-flex;align-items:center;gap:8px;white-space:nowrap}
.topbar-right>.button{margin-right:16px}
@media(max-width:700px){.topbar{height:auto;min-height:60px;flex-wrap:wrap;gap:10px;padding-top:10px;padding-bottom:10px}.topbar-right{flex-wrap:wrap}.topbar-right>.button{min-height:36px;padding:7px 12px;font-size:12px;margin-right:4px}}

/* Account switcher remains available on small screens and while testing access. */
.profile-menu{position:relative;margin-left:20px}.profile-menu summary.top-avatar{display:flex;margin-left:0;cursor:pointer;list-style:none;border:1px solid var(--border)}.profile-menu summary::-webkit-details-marker{display:none}.profile-menu summary:focus-visible{outline:3px solid var(--green);outline-offset:3px}.profile-dropdown{position:absolute;right:0;top:calc(100% + 12px);width:min(310px,calc(100vw - 36px));z-index:30;background:white;padding:22px;border:1px solid var(--border);border-radius:12px;box-shadow:0 12px 36px #153d3520;font-size:13px;line-height:1.6;overflow-wrap:anywhere}.profile-dropdown p{margin:5px 0 12px}.profile-dropdown form{margin-top:16px}.profile-dropdown label{display:block;font-weight:600;margin-bottom:6px}.profile-dropdown select{width:100%;padding:10px}.access-test-banner{position:sticky;top:0;z-index:40;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px 24px;background:#f5edda;border-bottom:1px solid #d3bd88;font-size:13px}.access-test-banner span{display:block;margin-top:4px;font-size:12px}.access-test-banner form{flex-shrink:0}@media(max-width:680px){.access-test-banner{flex-wrap:wrap;padding:12px 17px}.profile-menu{margin-left:12px}}

.registry-picker { min-width: 0; width: 100%; }
.registry-search-row { display: flex; gap: .5rem; }
.registry-search-row input { min-width: 0; flex: 1; }
.registry-results { display: grid; gap: .35rem; max-height: 320px; overflow-y: auto; }
.registry-result { text-align: left; padding: .8rem; border: 1px solid #d9dfd7; border-radius: 6px; background: #fff; color: #153d35; cursor: pointer; font: inherit; overflow-wrap: anywhere; }
.registry-result:hover, .registry-result:focus-visible { background: #eef5ef; outline: 2px solid #7fa68d; }
.add-company .form-field { flex: 1 1 320px; min-width: 0; }

.component-choices { border: 1px solid var(--line, #d9e0e5); border-radius: 8px; padding: 16px; margin: 20px 0; }
.component-choices #id_systems { max-height: 420px; overflow: auto; }
.component-choices label { display: flex; align-items: center; gap: 12px; padding: 10px; cursor: pointer; }
.component-choices input[type=checkbox] { width: 20px; height: 20px; flex: 0 0 20px; }
.component-table .component-groups th { background: var(--green); color: white; text-align: center; }
.component-table th form { margin-top: 10px; }
.form-panel details { margin-top: 28px; }
.form-panel summary { cursor: pointer; font-weight: 600; }
.component-table thead { position: sticky; top: 0; z-index: 3; }
.component-table thead th { position: static; }
.component-table thead tr:nth-child(2) th:first-child { position: static; min-width: 140px; }
.component-table thead .component-groups th:first-child { position: sticky; left: 0; z-index: 4; }
.component-choices input[type=checkbox] { min-height: 20px; padding: 0; }

.project-switch-admin .project-settings-link { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; padding: 10px 0; }
.project-switch-admin .project-settings-link:hover { text-decoration: underline; }
.project-switch-admin select { flex: 0 0 28px; width: 28px; color: transparent; }
.project-switch-admin select option { color: var(--ink); }
.project-settings-panel { max-width: 720px; margin: 0 0 24px; }
@media (max-width: 700px) { .project-settings-panel .form-actions { flex-wrap: wrap; } }
.project-switch-admin select { appearance: none; min-height: 44px; cursor: pointer; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%23223b33' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat center; }
@media (max-width: 700px) { .sidebar .project-switch-admin { display: flex; margin: 12px 0; } }

.project-people { margin: 24px 0; }
.project-people .account-panel { margin-top: 24px; }
.project-people .activity-row { overflow-wrap: anywhere; }
.project-people + .add-company { margin-bottom: 24px; }
.milestone-panel { margin-bottom: 24px; }
.milestone-panel .panel-heading { flex-wrap: wrap; }
.milestone-list { padding: 0 23px 20px; }
.milestone-list > p { margin-bottom: 0; }
.milestone-row { display: flex; align-items: baseline; gap: 20px; border-top: 1px solid var(--border); padding: 16px 0; }
.milestone-row time { color: var(--green); font-weight: 600; white-space: nowrap; }
.milestone-row > div { min-width: 0; }
.milestone-row h3 { margin: 0; font-size: 14px; overflow-wrap: anywhere; }
.milestone-row p { margin: 6px 0 0; color: var(--muted); overflow-wrap: anywhere; }
.milestone-actions { margin-left: auto; display: flex; gap: 16px; }
@media (max-width: 700px) { .milestone-row { flex-wrap: wrap; gap: 10px; } .milestone-row > div:not(.milestone-actions) { flex: 1 1 180px; } }
.discipline-catalog { margin-top: 20px; }
.discipline-catalog summary { cursor: pointer; font-weight: 600; margin-bottom: 12px; }
.discipline-catalog li { margin: 5px 0; }
.person-edit-link { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: #b5c9bc; }
.person-edit-link:hover { color: var(--green); text-decoration-color: currentColor; }

.component-table .component-main-category th { background: var(--green); color: white; padding: 12px 16px; text-align: left; }
.component-table .component-category th { background: var(--light); color: var(--ink); padding: 12px 16px; text-align: left; }

/* More room for the workbook, with a persistent, reversible menu toggle. */
.topbar-location { display: flex; align-items: center; gap: 14px; min-width: 0; }
.menu-toggle { display: inline-grid; place-items: center; flex: 0 0 36px; width: 36px; height: 36px; border: 1px solid var(--border); border-radius: 6px; background: white; color: var(--ink); font-size: 20px; }
.app-shell.menu-collapsed .sidebar { display: none; }
.app-shell.menu-collapsed .main-shell { margin-left: 0; }
.systems-workspace .main-content { max-width: none; padding: 14px 18px 20px; }
.systems-workspace .page-heading { margin: 8px 0 14px; }
.systems-workspace .page-heading h1 { font-size: 25px; margin: 4px 0; }
.systems-workspace .master-note { padding: 8px 12px; margin-bottom: 12px; font-size: 12px; }
.systems-workspace .master-note summary { cursor: pointer; }
.systems-workspace .master-note[open] summary { margin-bottom: 8px; }
.systems-workspace .filter-bar { padding: 10px 12px; gap: 8px; }
.systems-workspace .filter-bar input, .systems-workspace .filter-bar select { min-height: 34px; padding: 6px 10px; }
.systems-workspace .filter-bar .button { min-height: 34px; padding: 6px 12px; }
.component-toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; padding: 6px 12px 10px; font-size: 12px; color: var(--muted); }
.component-toolbar .button { min-height: 30px; padding: 4px 10px; font-size: 12px; }
.component-toolbar [aria-pressed=true] { background: var(--light); border-color: var(--green); color: var(--green); }
.systems-workspace .master-scroll { max-height: calc(100vh - 290px); min-height: 180px; }
.component-table { table-layout: fixed; width: 3000px; min-width: 0; }
.component-table col { width: 78px; }
.component-table .component-col-F { width: 165px; }
.component-table .component-col-G { width: 190px; }
.component-table .component-col-H, .component-table .component-col-I, .component-table .component-col-J { width: 120px; }
.component-table th, .component-table td, .component-table th:first-child, .component-table thead tr:nth-child(2) th:first-child { min-width: 0; max-width: none; padding: 5px 7px; font-size: 12px; line-height: 1.25; vertical-align: middle; }
.component-table thead th { font-size: 12px; font-weight: 600; }
.component-table thead .component-groups th { padding: 7px 5px; }
.component-table tbody th strong { margin: 0; }
.component-table tbody th p { font-size: 12px; margin: 2px 0; }
.component-table th form { margin: 0; }
.component-table .button { min-height: 25px; padding: 3px 7px; font-size: 12px; }
.component-table .component-main-category th, .component-table .component-category th { position: static; padding: 4px 7px; text-align: left; }
.component-table .category-content { position: sticky; left: 7px; width: max-content; max-width: min(900px, 85vw); display: flex; align-items: center; gap: 12px; flex-wrap: wrap; min-height: 22px; }
.component-table .category-content strong { display: inline; }
.systems-workspace .master-pagination { padding: 8px 12px; font-size: 12px; }
@media(max-width:680px) { .systems-workspace .main-content { padding: 12px; } .topbar-location { gap: 8px; } .component-toolbar { gap: 8px; } }

.component-table [hidden] { display: none !important; }
.component-table .group-toggle { display: inline-flex; align-items: center; gap: 6px; padding: 3px 2px; background: transparent; color: inherit; font: inherit; text-align: left; max-width: 100%; }
.component-table .group-toggle-icon { display: inline-grid; place-items: center; flex: 0 0 17px; width: 17px; height: 17px; border: 1px solid currentColor; border-radius: 3px; font-size: 13px; line-height: 1; }
.component-table .component-groups .group-toggle { width: 100%; justify-content: center; }
.component-table .column-group-closed .group-toggle { flex-direction: column; font-size: 12px; overflow-wrap: anywhere; }
.component-table .folded-cell { color: transparent; font-size: 0; background: #edf0ee; }

.component-table .component-panel-col { --panel-width: 140px; width: var(--panel-width); }
.component-panel-cell .panel-select { display: flex; gap: 4px; align-items: center; }
.component-panel-cell select, .component-panel-cell input:not([type=hidden]) { min-height: 26px; padding: 3px 5px; font-size: 12px; min-width: 0; }
.component-panel-cell .new-panel { font-size: 12px; }
.component-panel-cell summary { cursor: pointer; }
.component-panel-cell .new-panel form { display: flex; flex-wrap: wrap; gap: 4px; }
.component-panel-cell { position: relative; }
.component-inline-row td { vertical-align: top; padding: 6px; }
.component-inline-row input, .component-inline-row textarea { min-width: 0; width: 100%; padding: 7px; font-size: 12px; background: #fff; }
.component-inline-row input:disabled { background: #edf1ed; color: #536451; }
.component-inline-row th { vertical-align: top; }
.component-inline-row .errorlist { white-space: normal; padding-left: 14px; color: #a52a2a; }

.component-code-button { width: 100%; min-height: 46px; padding: 7px; border: 1px solid #dce1d9; border-radius: 7px; background: #fff; color: var(--ink); text-align: left; }
.component-code-dialog { width: min(620px, calc(100vw - 24px)); max-height: 85vh; padding: 20px; border: 1px solid var(--border); border-radius: 12px; color: var(--ink); background: #fff; white-space: normal; font-size: 14px; }
.component-code-dialog::backdrop { background: #153d3570; }
.code-dialog-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.code-dialog-heading h2 { margin: 0; }
.component-code-dialog label { display: block; }
.component-code-dialog input { margin-top: 6px; }
.component-code-results { display: grid; gap: 5px; max-height: 45vh; overflow-y: auto; margin-bottom: 14px; padding: 4px; }
.component-code-result { padding: 12px; background: #f7f9f6; border: 1px solid var(--border); border-radius: 6px; text-align: left; color: var(--ink); }
.component-code-result[aria-pressed="true"] { border-color: var(--green); background: var(--light); }
.component-code-result:hover { background: var(--light); }
.component-code-result span { display: block; font-size: 12px; margin-top: 4px; }
.component-description-suggestions { display: block; margin-top: 6px; font-size: 12px; white-space: normal; }
.component-description-suggestions select { display: block; width: 100%; min-width: 0; min-height: 32px; font-size: 12px; padding: 4px; }

.activity-row { align-items: flex-start; }
.activity-icon { flex-shrink: 0; }
.activity-content { min-width: 0; overflow-wrap: anywhere; }
.activity-details { display: flex; flex-wrap: wrap; gap: 10px 24px; margin: 12px 0; font-size: 12px; }
.activity-details dt, .activity-changes dt { color: #65775a; font-size: 12px; }
.activity-details dd, .activity-changes dd { margin: 2px 0 0; white-space: pre-wrap; }
.activity-changes { margin: 12px 0; font-size: 12px; }
.activity-changes summary { cursor: pointer; color: #49693c; }
.activity-changes dl > div { margin: 10px 0; }

.component-table tr:target{outline:3px solid #d89812}
.drawing-upload{padding:20px;margin-bottom:16px}
.component-table td[data-cell-url]{cursor:text}.component-table td[data-cell-url]:hover{box-shadow:inset 0 0 0 2px #809c85}.component-table td[data-cell-url]:focus-visible{outline:2px solid #235145;outline-offset:-2px}.cell-editor{position:fixed;margin:0;width:320px;max-width:calc(100vw - 16px);max-height:calc(100vh - 16px);overflow:auto;border:1px solid #749582;border-radius:8px;padding:14px;box-shadow:0 8px 32px #0003;background:#fff;color:#173e34;z-index:20}.cell-editor label{display:block;margin-top:10px;font-size:12px}.cell-editor input,.cell-editor textarea,.cell-editor select{width:100%;margin-top:4px}.cell-editor [role=alert]{font-size:13px;color:#a52a2a;white-space:normal}.cell-editor .form-actions{margin-top:12px;gap:8px}#cell-save-status{position:fixed;bottom:16px;right:20px;background:#e5f0e4;color:#214e3d;border-radius:6px;padding:8px 14px;z-index:10}#cell-save-status:empty{display:none}

/* Company assignments use compact checkboxes in forms and table rows. */
#id_assigned_companies { display: grid; gap: 8px; max-height: 280px; overflow-y: auto; }
#id_assigned_companies label { display: flex; align-items: center; gap: 8px; white-space: normal; }
#id_assigned_companies input[type="checkbox"] { width: 17px; height: 17px; min-height: 17px; flex: 0 0 17px; padding: 0; }
.company-assignment { min-width: 0; border: 0; padding: 0; margin: 12px 0; }
.company-assignment legend { font-size: 12px; margin-bottom: 8px; }

.component-table .component-empty-system td { height: 72px; padding: 18px 12px; background: #fff; }
.component-empty-system form { margin: 0; }
.component-empty-system .text-link { margin-left: 14px; }

.component-drawing-link{display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;margin-left:5px;vertical-align:middle;border:1px solid #c6d6cb;border-radius:4px;color:#245345;background:#f1f6f2;text-decoration:none}.component-drawing-link:hover{background:#dcebdd;border-color:#638674}.component-drawing-link:focus-visible{outline:2px solid #245345;outline-offset:2px}.component-drawing-link svg{flex-shrink:0}
.component-table tbody th > strong{display:inline;vertical-align:middle}
/* Supply requirements follow component-code rules, including incomplete drafts. */
.supply-alerts{border:1px solid #e5bf72;border-left:4px solid #c58113;background:#fff9eb;margin:18px 0;padding:20px}.supply-alerts h2{margin-top:0;font-size:19px}.supply-alerts p{font-size:14px}.supply-company{padding:10px 0;border-top:1px solid #eddbb8}.supply-company summary{cursor:pointer}.supply-company li{margin:8px 0;overflow-wrap:anywhere}.component-table td.supply-missing{background:#fff6e5!important;box-shadow:inset 0 0 0 1px #dfbf80;color:#795516;font-weight:600}.supply-required{white-space:normal}

/* Vertical labels keep the data columns narrow without truncating their names. */
.component-table col{width:60px}
.component-table .component-col-B,.component-table .component-col-C,.component-table .component-col-D,.component-table .component-col-E{width:52px}
.component-table .component-col-H,.component-table .component-col-I,.component-table .component-col-J{width:105px}
.component-table .component-column-labels th{height:172px;text-align:center;vertical-align:bottom;padding:8px 4px}
.component-table .vertical-column-label{display:inline-block;writing-mode:vertical-rl;transform:rotate(180deg);white-space:nowrap;text-align:left;line-height:1.2}
.component-table .component-groups th[data-group-key="tfm-tag"],.component-table .component-column-labels .tfm-heading{background:#244c72;color:#fff}
.component-table td[data-cell-key="F"]:not(.folded-cell){color:#234663;font-weight:600}
.component-table{width:2658px}

/* Readable rotated headings; JavaScript sizes each data column to its content. */
.component-table .component-column-labels th{height:auto;padding:10px 6px;font-size:14px;font-weight:650;color:#304b40;letter-spacing:0}
.component-table .vertical-column-label{font-size:14px;line-height:1.25}
.component-table .component-column-labels .tfm-heading{color:#fff}
.component-table .component-groups th{font-size:12px}
.component-table .column-group-closed .group-toggle{font-size:12px}

/* Keep navigation controls reachable while the workbook is scrolled. */
.sidebar-heading { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.sidebar-heading .brand { font-size: 18px; padding: 0; gap: 6px; }
.sidebar-heading .sidebar-collapse { flex-basis: 28px; width: 28px; height: 32px; }
.menu-restore { display: none; position: fixed; left: 12px; bottom: 16px; z-index: 30; min-height: 40px; padding: 8px 14px; border: 1px solid var(--border); border-radius: 7px; background: var(--green); color: white; box-shadow: 0 2px 10px #0002; font-size: 13px; }
.app-shell.menu-collapsed .menu-restore { display: block; }
@media (min-width: 681px) and (max-width: 950px) { .sidebar-heading .brand { font-size: 15px; gap: 4px; } .sidebar-heading .brand img { width: 24px; height: 24px; } .sidebar-heading .sidebar-collapse { flex-basis: 24px; width: 24px; } }

.component-row-label{display:inline-flex;align-items:center;gap:5px;vertical-align:middle}
.component-delete-icon{display:inline-flex;align-items:center;justify-content:center;width:26px;height:26px;border-radius:4px;color:#b42318;opacity:0;pointer-events:none;transition:opacity .12s,background .12s}
.component-row-label:hover .component-delete-icon,.component-row-label:focus-within .component-delete-icon{opacity:1;pointer-events:auto}
.component-delete-icon:hover{background:#fee4e2;color:#912018}
.component-delete-icon:focus-visible{outline:2px solid #b42318;outline-offset:2px}
@media(hover:none){.component-delete-icon{opacity:1;pointer-events:auto;width:32px;height:32px}}
.sidebar nav a.has-outstanding { font-weight: 750; color: var(--ink); }
.sidebar nav a.has-outstanding b { background: #fff0ce; color: #764900; }
.outstanding-filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.outstanding-item { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 18px 22px; border-bottom: 1px solid var(--border); }
.outstanding-item h2 { margin: 6px 0; }
.outstanding-item p { margin: 5px 0; overflow-wrap: anywhere; }
.outstanding-item > div { min-width: 0; }
@media(max-width:680px) { .outstanding-item { flex-wrap: wrap; padding: 14px; } }
.fire-signals-table { width: 100%; min-width: 850px; border-collapse: collapse; }
.fire-signals-table td { vertical-align: top; max-width: 360px; overflow-wrap: anywhere; }
.fire-signals-table { min-width: 2400px; }
.fire-signals-table th { min-width: 110px; }
.fire-signals-table td:first-child, .fire-signals-table td:nth-child(6), .fire-signals-table td:nth-child(10) { min-width: 230px; }

.cell-company-results{max-height:160px;overflow-y:auto;display:grid;gap:4px}.cell-company-option{text-align:left;white-space:normal;background:#eef3eb;color:var(--ink);border:1px solid var(--border);border-radius:5px;padding:9px 10px;font-size:12px}.cell-company-option:hover{background:#dce8d7}

/* Product datasheets / FDV */
.fdv-summary{display:flex;flex-wrap:wrap;gap:14px;margin:20px 0}.fdv-summary>div,.fdv-summary>a{flex:1 1 160px;background:#fff;border:1px solid var(--border);border-radius:8px;padding:18px;font-size:13px}.fdv-summary strong{display:block;font-size:28px;color:#244e42}.fdv-summary>a{background:#fff6e4}
.fdv-filters{flex-wrap:wrap}.fdv-filters>input{flex:1 1 230px}.fdv-filters label{display:flex;align-items:center;gap:8px;white-space:nowrap}.fdv-filters input[type=checkbox]{width:auto}.fdv-export{padding:0 23px 18px}.fdv-system{margin-top:20px}.fdv-system>h2{background:#eaf0e7;padding:18px 22px;margin:0;font-size:18px}.fdv-component{padding:22px;border-top:1px solid var(--border);scroll-margin-top:100px}.fdv-component-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:15px}.fdv-component-heading h3{font-size:16px;margin:7px 0}.fdv-tag{font-weight:700;color:#244c72}.fdv-documents{display:flex;flex-wrap:wrap;gap:12px;margin:16px 0}.fdv-document{display:flex;align-items:center;gap:12px;border:1px solid var(--border);border-radius:7px;padding:16px;flex:1 1 240px;max-width:500px;overflow-wrap:anywhere}.fdv-document small{display:block;margin-top:5px;font-size:12px;color:#657765}.fdv-file-icon{border:1px solid #b9cfc1;background:#edf4ee;border-radius:5px;padding:12px 7px;color:#2b5544;font-weight:bold;font-size:12px}.fdv-document:hover{background:#f5f8f3}.fdv-drop{display:block;border:1px dashed #809e8a;border-radius:7px;background:#f7faf5;padding:12px;text-align:center;font-size:12px}.fdv-drop.drag-over,.fdv-drop:focus-visible{outline:3px solid #648b72;background:#e2efdf}.fdv-dialog{width:540px;max-width:calc(100vw - 30px);max-height:calc(100vh - 30px);overflow:auto;padding:25px;border:1px solid #96b49e;border-radius:10px;color:#153d35}.fdv-dialog::backdrop{background:#153d3570}.fdv-dialog label,.fdv-upload-panel label{display:block;margin-bottom:6px}.fdv-upload-panel{max-width:660px;padding:25px;margin-top:20px}.fdv-upload-panel [data-fdv-close]{display:none}.fdv-dialog [role=alert],.fdv-upload-panel [role=alert]{color:#a13f2c}.fdv-page-image{display:block;width:100%;height:auto;border-top:1px solid var(--border)}.component-fdv-cell{min-width:90px!important;white-space:normal!important}.component-fdv-cell .fdv-drop{margin-top:8px;padding:8px}.fdv-missing{color:#926316;font-size:12px}.component-fdv-cell small{display:block}.fdv-component-heading .badge{font-size:12px}@media(max-width:680px){.fdv-component{padding:16px}.fdv-component-heading{flex-wrap:wrap}.fdv-dialog{padding:18px}.fdv-filters select{max-width:100%;width:100%}}

.drawing-group h2{font-size:20px;margin:0 0 18px}.drawing-company + .drawing-company{border-top:1px solid #dfe6de;margin-top:20px;padding-top:16px}.drawing-company h3{font-size:15px;margin:0 0 12px}.drawing-list-item{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:10px 0;overflow-wrap:anywhere}.drawing-list-item>div{min-width:0}.drawing-list-item> .text-link{flex-shrink:0}.drawing-list-item p{margin:5px 0 0;font-size:12px}@media(max-width:600px){.drawing-list-item{align-items:flex-start;flex-direction:column;gap:6px}}

.component-table .component-fdv-col{width:90px}

.function-upload,.function-group{padding:22px;margin-bottom:20px}
.function-upload summary{cursor:pointer;font-weight:600}.function-upload form{max-width:650px;margin-top:24px}
.function-group{margin-top:20px}.function-group h2{font-size:18px}.function-document{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:18px 0;border-top:1px solid var(--border)}
.function-document>div{min-width:0;overflow-wrap:anywhere}.function-document h3{font-size:14px;margin:0}.function-actions{display:flex;align-items:center;gap:16px;flex-wrap:wrap;font-size:12px}
@media(max-width:700px){.function-document{align-items:flex-start;flex-direction:column}}
.fdv-library{padding:18px 22px;margin-top:18px}.fdv-library summary{cursor:pointer;font-weight:600}.fdv-library-item{display:flex;justify-content:space-between;gap:16px;padding:12px 0;border-top:1px solid var(--border);font-size:13px;overflow-wrap:anywhere}.fdv-library-item span{flex-shrink:0;color:var(--muted)}.fdv-target-field>div[id]{max-height:220px;overflow:auto;border:1px solid var(--border);border-radius:6px;padding:10px}.fdv-target-field input[type=checkbox]{width:auto;margin-right:8px}.fdv-selection-actions{display:flex;gap:8px;margin:8px 0}.fdv-target-field label{font-size:12px;overflow-wrap:anywhere}
.cell-editor [hidden]{display:none!important}
.fdv-filters>select{flex:1 1 210px;min-width:180px;max-width:320px}@media(max-width:680px){.fdv-filters>input,.fdv-filters>select{flex:1 1 100%;min-width:0;max-width:none;width:100%}}

.system-header-actions{display:flex;flex-direction:column;align-items:center;gap:16px}.component-table .component-create-system{background:#e9f3e6;color:#204f43;border:1px solid #b9d3ae;min-height:32px;font-size:12px;padding:6px 8px;white-space:normal}.component-table .component-create-system:hover{background:#d4e8cb}.component-table .component-create-system:focus-visible{outline-color:#fff}
.integration-upload-button { display: block; margin-top: 6px; padding: 6px 4px; max-width: 100%; border: 1px dashed #648779; border-radius: 4px; background: #fff; color: var(--green); font-size: 12px; white-space: normal; }
.integration-drop.drag-over { outline: 3px solid #3f7965; outline-offset: -3px; background: #d5ebde !important; }

/* Personal landing page */
.home-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-bottom:28px}.home-stats .panel{padding:22px 24px;display:flex;flex-direction:column;gap:4px}.home-stats strong{font-size:30px;font-weight:600}.home-stats span{color:var(--muted)}.home-stats .home-overdue{background:#fff6e8}.home-projects{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:16px}.home-project{padding:24px;display:flex;flex-direction:column}.home-project h2{font-size:21px;margin:10px 0;overflow-wrap:anywhere}.home-project-bottom{margin-top:auto;padding-top:18px;border-top:1px solid var(--border);display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}.home-project-bottom strong{font-size:13px}.home-due{color:#946021}.home-project-bottom .home-due{display:block;font-size:12px}.home-tasks{margin-top:32px}.home-tasks .panel-heading p{margin:6px 0 0}.home-tasks .outstanding-item>div{min-width:0;overflow-wrap:anywhere}.home-more{margin-top:14px}@media(max-width:600px){.home-stats{gap:8px}.home-stats .panel{padding:14px 10px}.home-stats strong{font-size:24px}.home-stats span{font-size:12px}.home-projects{grid-template-columns:1fr}}

/* Framed people within the project company cards. */
.project-people .company-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,310px),1fr));align-items:start}
.project-people .company-card{min-width:0}
.project-people .company-card h2{overflow-wrap:anywhere}
.company-edit-button{margin:0 0 14px}
.project-people .person-card{border:1px solid #cbd8c6;border-radius:9px;background:#f5f8f1;padding:17px;margin:14px 0;overflow-wrap:anywhere}
.person-card strong{display:block;font-size:14px;font-weight:600}
.project-people .person-card p{font-size:12px;line-height:1.6;color:#63735d;margin:6px 0 0}
.person-card a[href^="mailto:"]{text-decoration:underline;text-underline-offset:3px}
.person-card .person-edit-button{font-size:12px;white-space:normal;text-align:center;margin-top:10px;padding:8px 12px;min-height:38px}
.project-people>.account-panel{margin-top:20px}

/* Multiple company disciplines, grouped by trade. */
#id_discipline:has(input[type="checkbox"]){max-height:440px;overflow:auto;border:1px solid #cbd8c6;border-radius:8px;padding:16px;background:#f8faf5}
#id_discipline:has(input[type="checkbox"])>div{margin-bottom:18px;font-size:13px;font-weight:600}
#id_discipline label{display:flex;align-items:center;gap:10px;padding:7px 5px;margin:0;font-size:13px;font-weight:400;cursor:pointer}
#id_discipline label:has(input:checked){background:#e4efde;border-radius:5px;color:var(--green);font-weight:600}
#id_discipline input[type="checkbox"]{width:18px;height:18px;min-height:18px;flex:0 0 18px;padding:0;accent-color:var(--green)}

/* Keep the single project navigation available on narrow screens too. */
@media(max-width:680px){.sidebar .project-switch{display:flex;margin:12px 0}.project-switch select{min-height:44px}}

.component-drawing-missing{border-style:dashed;background:#fff;color:#68796c}.component-drawing-missing:hover{background:#edf3e7;color:#245345}

/* Project handover date in the shared header. */
.handover-countdown{display:flex;flex-direction:column;align-items:center;gap:2px;padding:8px 16px;margin:6px 16px;border:1px solid #d1dfc8;border-radius:8px;background:#edf4e7;color:#315d3e;text-align:center;flex-shrink:0}
.handover-countdown strong{font-size:14px;font-weight:600}.handover-countdown time{font-size:12px;color:#62755b}
.handover-today{background:#e0efdb;border-color:#94b286}.handover-past{background:#fff4e5;border-color:#e8cea4;color:#855821}.handover-past time{color:#855821}
@media(max-width:1150px){.topbar:has(.handover-countdown){height:auto;min-height:77px;flex-wrap:wrap;gap:8px;padding-top:10px;padding-bottom:10px}.handover-countdown{order:3;flex:1 0 100%;margin:0;padding:8px 12px;flex-direction:row;justify-content:center;gap:10px}}
@media(max-width:480px){.handover-countdown{flex-direction:column;gap:2px}.handover-countdown strong{font-size:13px}}

.home-project .handover-countdown{align-self:flex-start;flex:0 1 auto;order:0;margin:0 0 18px;max-width:100%;flex-direction:column;gap:2px;text-align:left;align-items:flex-start}

/* Shared delivery responsibility edits */


.meter-cell-link{display:block;text-align:center;font-size:16px;margin-top:6px;text-decoration:none}.meter-cell-link:focus-visible{outline:2px solid #244e42}tr[id^="meter-"]:target{outline:3px solid #d89812;outline-offset:-3px}

/* Technical cutaway with all five disciplines on the login page. */
.building-scene .building-art{height:auto;max-height:440px}.building-scene .tag-a{left:1%;top:22%}.building-scene .tag-b{right:1%;top:27%}.building-scene .tag-c{right:0;top:77%}.building-scene .tag-d{left:1%;top:68%}.building-scene .tag-e{right:12%;top:5%}.dot.plumbing{background:#7fc7db}.dot.structure{background:#bdd0b7}
@media(min-width:681px) and (max-width:950px){.building-scene .system-tag{font-size:12px;padding:6px 8px;gap:6px}.building-scene .system-tag>span{display:none}.building-scene .tag-a{top:14%}.building-scene .tag-b{top:34%}.building-scene .tag-e{top:2%}.building-scene .tag-d{top:80%}}

/* First-party email login */
.login-form .otp-code-input{font-size:30px;letter-spacing:.45em;text-align:center;font-variant-numeric:tabular-nums;padding-left:1em}.otp-recipient{display:grid;grid-template-columns:1fr auto;gap:3px 16px;padding:15px 18px;background:var(--light);border-radius:9px;margin-bottom:16px}.otp-recipient span{font-size:12px;color:var(--muted)}.otp-recipient strong{grid-column:1;overflow-wrap:anywhere;min-width:0}.otp-recipient a{grid-column:2;grid-row:1/3;align-self:center;color:var(--green);text-decoration:underline}.otp-resend{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:22px 0;font-size:13px}.otp-resend .button{white-space:nowrap}@media(max-width:400px){.otp-resend{align-items:flex-start;flex-direction:column}}
/* Keep component identification and drawing shortcuts on one compact line. */
.component-row-label{white-space:nowrap;flex-wrap:nowrap}
.component-row-label .component-drawing-link{flex:0 0 24px;margin-left:0}
.component-row-label .component-delete-icon{flex-shrink:0}

/* Compact FDV rows, grouped by the responsible company. */
.fdv-company{margin-top:20px}.fdv-company-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 20px;background:#eaf0e7}.fdv-company-heading h2{margin:0;font-size:16px;overflow-wrap:anywhere}.fdv-company-heading>span{font-size:12px;color:#64755c;flex-shrink:0}.fdv-table-scroll{overflow-x:auto}.fdv-products{table-layout:fixed;min-width:900px}.fdv-products th{font-size:12px;letter-spacing:0}.fdv-products th:nth-child(1){width:24%}.fdv-products th:nth-child(2){width:23%}.fdv-products th:nth-child(3){width:17%}.fdv-products th:nth-child(4){width:20%}.fdv-products th:nth-child(5){width:16%}.fdv-products td{padding:9px 14px;font-size:12px;vertical-align:middle;height:52px}.fdv-products td:first-child{padding-left:20px}.fdv-products .fdv-tag,.fdv-product-name,.fdv-inline-document{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.fdv-products .fdv-tag,.fdv-inline-document{display:block}.fdv-products .badge{font-size:12px}.fdv-products .fdv-drop{margin:0;padding:7px 9px;font-size:12px;white-space:nowrap}.fdv-row-documents summary{cursor:pointer;color:var(--green)}.fdv-row-documents a{display:block;overflow:hidden;text-overflow:ellipsis;margin-top:7px}.fdv-products tr{scroll-margin-top:90px}.fdv-products tr:target{background:#f1f6df}@media(max-width:680px){.fdv-company-heading{align-items:flex-start;flex-direction:column;gap:4px;padding:14px}}

/* Source excerpts for the project SD requirements review. */
.sd-requirement{border-top:1px solid var(--border);padding:20px 0;overflow-wrap:anywhere}
.sd-requirement h3{margin:0;font-size:16px}.sd-requirement-kind{font-size:12px;color:var(--muted)}
.sd-excerpt{margin:16px 0;padding:12px 16px;border-left:3px solid var(--border);font-size:14px;line-height:1.65}
.sd-excerpt span{display:block}.sd-excerpt strong{font-weight:600}
.sd-full-text{white-space:pre-wrap;line-height:1.65;font-size:14px;margin-top:14px}
.sd-help-intro{padding:22px;margin-bottom:20px}

.component-table .component-subsystem th{position:static;border-top:6px solid #fff;background:#f0f4ec;padding:4px 7px 4px 24px;color:#244e42;text-align:left;font-size:12px;letter-spacing:0}
.component-table .component-subsystem .category-content{left:24px;min-height:18px;gap:12px}
.component-table .component-subsystem strong{font-weight:600}
.component-table .component-subsystem .text-link{font-size:12px;font-weight:400;letter-spacing:0}

.form-field input#id_confirm[type="checkbox"]{width:20px;height:20px;min-height:20px;padding:0;accent-color:var(--green)}

/* Column colours follow the same groups as the folding controls. */
.component-table .band-identification{--band:#fff;--band-head:#e8efeb;--band-line:#c8d5ce}
.component-table .band-tfm-tag{--band:#fff;--band-head:#e8efeb;--band-line:#c8d5ce}
.component-table .band-3{--band:#fff;--band-head:#e8efeb;--band-line:#c8d5ce}
.component-table .band-4{--band:#fff;--band-head:#e8efeb;--band-line:#c8d5ce}
.component-table .band-5{--band:#fff;--band-head:#e8efeb;--band-line:#c8d5ce}
.component-table .band-6{--band:#fff;--band-head:#e8efeb;--band-line:#c8d5ce}
.component-table .band-7{--band:#fff;--band-head:#e8efeb;--band-line:#c8d5ce}
.component-table .band-8{--band:#fff;--band-head:#e8efeb;--band-line:#c8d5ce}
.component-table .band-fdv{--band:#fff;--band-head:#e8efeb;--band-line:#c8d5ce}
.component-table thead .component-groups th.column-band{background:var(--band-head);color:#243c35;border-left:2px solid var(--band-line)}
.component-table thead .component-column-labels th.column-band,
.component-table tbody tr td.column-band{background:var(--band)}
.component-table thead .component-column-labels th.column-band{color:#30463e}
.component-table .column-band.band-start{border-left:2px solid var(--band-line)}

.identity-fields,.identity-parts{display:grid;grid-template-columns:repeat(2,minmax(100px,1fr));gap:8px;white-space:normal;min-width:300px}
.identity-fields label,.identity-parts span{font-size:12px}.identity-parts small{display:block;color:#64756f;font-weight:400;margin-bottom:4px}
.identity-fields input,.identity-fields select{width:100%;min-width:0}.identity-fields label:last-child,.identity-parts span:last-child{grid-column:1/-1}
.identity-parts{grid-template-columns:minmax(0,1fr);min-width:0;gap:4px}
.identity-parts span{overflow-wrap:anywhere}.identity-parts small{display:inline;margin:0 6px 0 0}
.cell-editor input:disabled,.cell-editor select:disabled{background:#eef2ef;color:#52645d}

/* TFM identity is the first column, with in-place editing of its five parts. */
.component-table .tfm-main-heading{background:#e8efeb!important;color:#243c35!important;text-align:center;position:relative!important}
.component-table td[data-cell-key="F"],.component-table .tfm-inline-create{background:#f4f7f5;color:#204f43;font-weight:600}
.component-table .identity-fields{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:6px;min-width:360px}
.component-table .identity-fields label:last-child{grid-column:auto}
.component-table .identity-fields label{display:flex;flex-direction:column;align-items:stretch;gap:8px;margin:0;min-width:0}
.component-table .identity-fields label>span{writing-mode:vertical-rl;transform:rotate(180deg);height:124px;align-self:center;font-size:12px;text-align:left}
.component-table .identity-fields input{width:100%;min-width:0;padding:5px 3px;font-size:12px;height:34px}
.component-table .identity-fields input:disabled{background:#e2e9ed;color:#52645d}
.component-table .identity-editing{cursor:default;vertical-align:top}
.identity-editing form{margin:0}.identity-editing [role=alert]{white-space:normal;color:#923c2a;font-size:12px;margin:6px 0}
.identity-actions{display:flex;gap:8px}.identity-actions button{font-size:12px;padding:4px 8px;min-height:26px}
.company-logo{height:64px;display:flex;align-items:center;justify-content:flex-start;margin-bottom:22px;max-width:240px}
.company-logo img{display:block;max-width:100%;max-height:64px;object-fit:contain;object-position:left center}
.company-website{font-size:13px;overflow-wrap:anywhere}.company-website a{text-decoration:underline;text-underline-offset:3px}
#id_remove_logo{display:block;width:18px;height:18px;min-height:18px;padding:0;accent-color:var(--green)}
.delivery-badge{display:inline-flex;flex-direction:column;align-items:center;gap:4px;white-space:nowrap;font-weight:600;vertical-align:middle}
.delivery-badge img{order:2;width:36px;height:18px;object-fit:contain;flex:0 0 18px}
.component-table .folded-cell .delivery-badge{visibility:hidden}
.fdv-target-field .fdv-missing-toggle{display:flex;align-items:center;gap:8px;margin:12px 0}.fdv-target-field .fdv-missing-toggle input{width:auto;margin:0;flex-shrink:0}
.fdv-target-field [hidden]{display:none!important}
#id_document_types{display:flex;flex-wrap:wrap;gap:12px 24px;margin:10px 0}
#id_document_types label{display:flex;align-items:center;gap:8px;margin:0}
#id_document_types input[type=checkbox]{width:18px;height:18px;min-height:18px;flex:0 0 18px;padding:0;margin:0;accent-color:var(--green)}

.subsystem-add-component{display:inline-flex;margin:0}.component-subsystem .subsystem-add-component .button{min-height:26px;padding:3px 8px;font-size:12px}

.component-table .subsystem-name{color:inherit;font-weight:600;text-decoration:none}
.component-table .subsystem-name:hover,.component-table .subsystem-name:focus-visible{text-decoration:underline}

.component-table .tfm-main-heading{position:relative;min-width:145px}
.component-table .main-system-add{position:absolute;bottom:8px;left:6px;right:6px;padding:6px 3px;min-height:28px;font-size:12px;white-space:normal;letter-spacing:0;text-transform:none}
.component-main-category .button.secondary{min-height:26px;padding:3px 8px;font-size:12px;letter-spacing:0;text-transform:none}
/* Reserve room for both row actions inside the TFM cell. */
.component-table .component-col-F{width:240px}
.component-table td[data-cell-key="F"] .component-row-label{display:flex;max-width:100%;min-width:0}
.component-row-label .tfm-value{flex:0 0 auto;white-space:nowrap;overflow-wrap:normal}
.component-row-label .component-delete-icon{margin-left:auto}

.component-main-category .button.secondary{color:var(--ink)}
summary.fdv-company-heading{cursor:pointer;list-style:none;gap:16px}summary.fdv-company-heading::-webkit-details-marker{display:none}summary.fdv-company-heading h2{margin:0;font-size:16px}summary.fdv-company-heading h2:before{content:'▾';display:inline-block;margin-right:10px}.fdv-company:not([open]) summary h2:before{content:'▸'}.fdv-company[open] .fdv-expand-label,.fdv-company:not([open]) .fdv-collapse-label{display:none}.fdv-company-controls{display:flex;flex-wrap:wrap;gap:16px;align-items:end;padding:20px}.fdv-company-controls label{display:flex;flex-direction:column;gap:7px;flex:1;min-width:160px;font-size:13px}.fdv-company-controls label:first-child{flex:2}.fdv-company-controls input,.fdv-company-controls select{width:100%;min-width:0}.fdv-company [hidden]{display:none!important}.fdv-company-empty{padding:0 20px 16px}.fdv-company summary>span{font-size:12px;flex-shrink:0}@media(max-width:650px){summary.fdv-company-heading{align-items:flex-start;flex-direction:column}.fdv-company-controls{padding:14px;gap:12px}.fdv-company-controls label{min-width:100%;width:100%}}
.fdv-company-heading .fdv-company-progress{display:flex;align-items:center;gap:10px;margin-left:auto;color:#79551c;flex-wrap:wrap}.fdv-company-progress strong{font-size:13px;white-space:nowrap}.fdv-company-progress small{font-size:12px;white-space:nowrap}.fdv-company-progress progress{width:100px;height:8px;border:0;border-radius:8px;overflow:hidden;background:#d9e2d8;accent-color:#ac802f}.fdv-company-progress progress::-webkit-progress-bar{background:#d9e2d8;border-radius:8px}.fdv-company-progress progress::-webkit-progress-value{background:#ac802f;border-radius:8px}.fdv-company-progress progress::-moz-progress-bar{background:#ac802f}.fdv-company-heading .fdv-company-progress.is-complete{color:#245345}.fdv-company-progress.is-complete progress{accent-color:#357455}.fdv-company-progress.is-complete progress::-webkit-progress-value{background:#357455}.fdv-company-progress.is-complete progress::-moz-progress-bar{background:#357455}summary.fdv-company-heading{flex-wrap:wrap}.fdv-company-count{margin-left:auto}@media(max-width:650px){.fdv-company-count{margin-left:0}.fdv-company-heading .fdv-company-progress{gap:8px}}

.fdv-filter-count{padding:0 20px;margin:0 0 12px}
@media(max-width:680px){.fdv-company-heading .fdv-company-progress{margin-left:0}.fdv-filter-count{padding:0 14px}}

.sidebar nav .nav-icon{display:block;flex:0 0 20px;width:20px;height:20px;color:inherit}
@media(max-width:680px){.sidebar nav .nav-icon{flex-basis:18px;width:18px;height:18px}}

.outstanding-groups{display:grid;gap:16px;margin-bottom:24px}
.outstanding-group>summary{display:flex;align-items:center;gap:12px;padding:17px 22px;background:#eaf0e7;cursor:pointer;list-style:none;border-radius:inherit}
.outstanding-group>summary::-webkit-details-marker{display:none}
.outstanding-group>summary h2{margin:0;font-size:16px}
.outstanding-group>summary .nav-icon{flex:0 0 20px}
.task-group-count{margin-left:auto;white-space:nowrap;font-size:12px;color:var(--green);background:#fff;padding:3px 9px;border-radius:20px}
.task-group-chevron{font-size:20px;line-height:1;transition:transform .15s}
.outstanding-group:not([open]) .task-group-chevron{transform:rotate(-90deg)}
.outstanding-group .outstanding-item:last-child{border-bottom:0}
@media(max-width:680px){.outstanding-group>summary{padding:14px;gap:8px;flex-wrap:wrap}.outstanding-group>summary h2{font-size:14px}.outstanding-group .outstanding-item{padding:14px}}

.task-company-filter{max-width:600px;margin:20px 0}.task-company-filter label{display:block;margin-bottom:6px}.task-company-filter>div{display:flex;gap:10px}.task-company-filter select{min-width:0}.task-company-filter button{flex-shrink:0}

.home-marking{padding:14px 16px;background:var(--bg,#f7f8f4);border:1px solid var(--border);border-radius:10px;margin:0 0 18px;overflow-wrap:anywhere}.home-marking p{margin:6px 0}.home-marking summary,.home-parties summary{cursor:pointer}.home-trades{margin-bottom:18px}.home-trades h3{font-size:16px;margin:0 0 6px}.home-card-note{font-size:12px;margin:0 0 12px}.home-trades ul,.home-parties ul{list-style:none;padding:0;margin:0}.home-trades li{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 0;border-bottom:1px solid var(--border);overflow-wrap:anywhere}.home-trade-status{text-align:right;flex-shrink:0;font-size:13px}.home-trade-status small{display:block}.home-trade-status.is-clear{color:var(--muted)}.home-parties{margin-bottom:20px;font-size:14px}.home-parties summary{font-weight:600;padding:8px 0}.home-parties li{display:flex;flex-direction:column;gap:3px;padding:8px 0;overflow-wrap:anywhere}.home-parties .text-link{display:inline-block;margin-top:8px}

/* Compact FDV uploads: document state and file links share the same cell. */
.fdv-products{min-width:1280px}.fdv-products th:nth-child(1){width:18%}.fdv-products th:nth-child(2){width:18%}.fdv-products th:nth-child(3){width:64%}
.fdv-upload-slots{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px 24px;align-items:start}
.fdv-upload-slot{min-width:0;grid-row:1}.fdv-upload-slot[data-document-kind="datasheet"]{grid-column:1}.fdv-upload-slot[data-document-kind="wiring"]{grid-column:2}.fdv-upload-slot[data-document-kind="bacnet"]{grid-column:3}.fdv-upload-slot[data-document-kind="modbus"]{grid-column:4}.fdv-product-name{white-space:normal;overflow-wrap:anywhere}
.fdv-products .fdv-type-upload{display:block;width:100%;padding:7px 9px;border:1px solid;border-radius:5px;text-align:center;font-size:12px;font-weight:600;text-decoration:none;line-height:1.4;margin:0}
.fdv-products .fdv-type-upload.is-uploaded{background:#e5f2e9;border-color:#8eb69a;color:#225b36}
.fdv-products .fdv-type-upload.is-missing{background:#fff6e5;border-color:#dfbf80;color:#795516}
.fdv-products a.fdv-type-upload:hover{filter:brightness(.96)}
.fdv-products .fdv-file-link{display:block;font-size:12px;line-height:1.5;margin-top:0;white-space:normal;overflow-wrap:anywhere}
.fdv-file-entry{margin-top:10px}.fdv-file-entry+.fdv-file-entry{margin-top:16px}.fdv-upload-date{display:block;margin-top:4px;font-size:12px;color:var(--muted);white-space:normal}.fdv-products td{padding-top:16px;padding-bottom:16px}

/* Shared workspace controls live in the sidebar, leaving page content at the top. */
.app-shell .sidebar{padding-top:12px;top:var(--access-banner-height,0px);overflow-y:auto;overscroll-behavior:contain}
.sidebar-controls{display:flex;align-items:center;gap:10px;margin:12px 0 8px}
.sidebar-controls .profile-menu{margin:0;flex-shrink:0}
.sidebar-controls .top-avatar{display:flex;margin:0;width:34px;height:34px}
.sidebar-page-label{font-size:12px;color:var(--muted);overflow-wrap:anywhere}
.sidebar-controls .profile-dropdown{position:fixed;left:12px;right:auto;top:calc(var(--access-banner-height,0px) + 94px);max-height:calc(100dvh - var(--access-banner-height,0px) - 110px);overflow:auto;z-index:50}
.sidebar .workspace-label{margin:12px 8px 6px}
.sidebar .handover-countdown{margin:4px 0 8px;padding:7px 8px;flex:0 0 auto;order:0;flex-direction:column;gap:2px}
.sidebar .handover-countdown strong{font-size:12px}
.sidebar .project-switch{margin:0 0 12px}
.sidebar-new-project{font-size:12px;padding:7px 10px;min-height:32px;margin-bottom:10px}
.app-shell .main-content{padding-top:12px}
.systems-workspace .main-content{padding:6px 10px 12px}
.systems-workspace .component-toolbar{padding:5px 8px;gap:8px}
.systems-workspace .master-scroll{max-height:calc(100dvh - var(--access-banner-height,0px) - 72px)}
.component-table .tfm-main-heading{vertical-align:top!important}
.component-table .tfm-main-heading>span{display:block;margin:5px 0 8px}
.systems-workspace .tfm-search{display:flex;flex-wrap:wrap;gap:5px;padding:0;margin:0;border:0;text-align:left;white-space:normal}
.systems-workspace .tfm-search .search-field{flex:1 0 100%;min-width:0}
.systems-workspace .tfm-search input,.systems-workspace .tfm-search select{width:100%;min-width:0;max-width:100%;font-size:12px;min-height:30px;padding:5px}
.systems-workspace .tfm-search select{flex:1 0 100%}
.systems-workspace .tfm-search .button{font-size:12px;min-height:28px;padding:4px 8px}
.systems-workspace .tfm-search>a{align-self:center;font-size:12px;margin-left:auto}
@media(max-width:680px){
 .app-shell .sidebar{padding:10px 12px;overflow:visible}
 .sidebar-controls{margin:8px 0}
 .sidebar .handover-countdown{flex-direction:row;justify-content:space-between}
 .sidebar .project-switch{margin:8px 0}
 .sidebar nav{margin-top:8px}
 .sidebar-new-project{margin-bottom:4px}
 .systems-workspace .main-content{padding:6px}
 .sidebar-controls .profile-dropdown{top:calc(var(--access-banner-height,0px) + 88px)}
}

.home-company-info{display:flex;flex-direction:column;gap:3px;min-width:0}.home-company-info>.muted{font-size:13px}.home-company-overview>.text-link{display:inline-block;margin-top:12px}@media(max-width:540px){.home-company-overview li{align-items:flex-start;flex-wrap:wrap}.home-company-overview .home-trade-status{margin-left:auto}}
.component-table thead .tfm-main-heading{position:sticky!important;top:0;left:0;z-index:5}

.tfm-table-tools{display:flex;flex-direction:column;align-items:stretch;gap:5px;margin:10px 0 42px}
.component-table .tfm-table-tools .button{min-height:28px;padding:4px 6px;font-size:12px;white-space:normal}

.component-table .component-fdv-cell{text-align:center}.fdv-status{font-size:12px;font-weight:600;white-space:nowrap}.fdv-status.is-ok{color:#225b36}.fdv-status.is-missing{color:#795516}

.component-table th[data-group-key="6"]:not(.column-group-closed) .group-toggle{white-space:nowrap}

/* Align every vertical column label from the same bottom edge. */
.component-table thead .component-column-labels>th,.component-table thead tr.component-column-labels>th:first-child{vertical-align:bottom;padding:10px 6px;text-align:center;font-family:inherit;font-size:14px;font-weight:600;line-height:1.25;letter-spacing:0}
.component-table thead .component-column-labels .vertical-column-label{display:inline-block;vertical-align:bottom;margin:0;font-family:inherit;font-size:14px;font-weight:600;font-style:normal;line-height:1.25;letter-spacing:0;writing-mode:vertical-rl;transform:rotate(180deg);text-align:left;white-space:nowrap}

.component-table .band-knx{--band:#fff;--band-head:#e8efeb;--band-line:#c8d5ce}

.fdv-summary{align-items:flex-start}
.fdv-summary>.fdv-library-card{min-width:0}
.fdv-library-card .fdv-library{padding:10px 0 0;margin-top:10px;border-top:1px solid var(--border)}
.fdv-library-card .fdv-library summary{font-size:12px;overflow-wrap:anywhere}
.fdv-library-card .fdv-library[open]{max-height:350px;overflow:auto}
.fdv-library-card .fdv-library-item{flex-direction:column;gap:4px;font-size:12px;padding:10px 0}
.fdv-library-card .fdv-library-item span{font-size:12px}

.component-table .component-history-col{width:120px}
.component-history-cell .button{display:inline-flex;gap:5px;align-items:center}
.component-table .band-history{--band:#fff;--band-head:#e8efeb;--band-line:#c8d5ce}
.component-history-dialog{width:min(760px,calc(100vw - 32px));max-width:calc(100vw - 32px);max-height:85dvh;padding:0;border:1px solid var(--line,#d7dfd7);border-radius:12px;color:var(--ink,#23463b);background:var(--paper,#fff)}
.component-history-dialog::backdrop{background:rgb(16 35 30 / .5)}
.component-history-dialog>header{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 22px;border-bottom:1px solid #d7dfd7}
.component-history-dialog>header h2{margin:0;font-size:1.15rem;overflow-wrap:anywhere}
.row-history-scroll{padding:16px 22px;max-height:calc(85dvh - 100px);overflow-y:auto;overscroll-behavior:contain;overflow-wrap:anywhere}
.component-history-dialog .activity-content{min-width:0;width:100%}
.component-history-dialog .activity-content h2{font-size:1rem}
@media(max-width:600px){.component-history-dialog>header,.row-history-scroll{padding:14px}.component-history-dialog .activity-details{display:block}}

.fdv-link-others{margin:16px 0;border-top:1px solid var(--border);padding-top:14px}.fdv-link-others>summary{cursor:pointer;font-size:13px;font-weight:600}.fdv-link-others[open]>summary{margin-bottom:14px}

.participant-trade{margin:24px 0 32px}.participant-trade>h2{font-size:20px;border-bottom:2px solid var(--border);padding-bottom:10px}.participant-trade-slots{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,340px),1fr));gap:20px}.participant-trade-slots>div{min-width:0}.participant-trade-slots h3{font-size:14px}.participant-trade-slots .company-grid{grid-template-columns:1fr}

/* Compact project company directory. */
.project-people .participant-trade{margin:14px 0 20px}
.project-people .participant-trade>h2{font-size:17px;margin:0 0 8px;padding-bottom:5px}
.project-people .participant-trade-slots{gap:12px}
.project-people .participant-trade-slots h3{font-size:13px;margin:0 0 6px}
.project-people .company-grid{gap:10px}
.project-people .company-card{padding:12px;margin:0}
.participant-company-heading{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.project-people .participant-company-heading h2{flex:1;min-width:120px;font-size:14px;margin:0}
.project-people .company-logo{height:32px;max-width:90px;margin:0;flex-shrink:0}
.project-people .company-logo img{max-height:32px}
.project-people .company-icon{width:32px;height:32px;font-size:12px;margin:0;flex-shrink:0}
.project-people .company-card .button{min-height:30px;padding:5px 9px;font-size:12px;white-space:normal}
.project-people .company-card p{margin:3px 0;font-size:12px}
.participant-company-meta{display:flex;flex-wrap:wrap;gap:2px 12px;margin:5px 0 8px}
.project-people .person-card{padding:8px 10px;margin:7px 0;border-radius:6px}
.project-people .person-card p{margin:2px 0;line-height:1.4}
.project-people .person-card strong{font-size:13px}
.project-people .person-card .person-edit-button{margin-top:4px}
.participant-company-actions{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:6px 12px;margin-top:7px}
.participant-company-actions .text-link{font-size:12px}
.project-people .participant-shared-note{margin:0 0 10px}
@media(max-width:600px){.project-people .company-card .button{min-height:36px}.participant-company-heading{gap:8px}}

/* Unified register palette: neutral data, green hierarchy, amber missing information. */
.component-table .band-3,.component-table .band-5,.component-table .band-7,.component-table .band-8,.component-table .band-history{--band:#f7f9f8}
.component-table thead .component-column-labels th.column-band{background:#f0f4f2;color:#344b40}
.component-table .component-main-category th{background:#dbe7e0;color:#204f43;border-top:1px solid #bacdc1;border-bottom:1px solid #bacdc1;font-weight:700}
.component-table .component-category th{background:#edf2ef;color:#344b40;border-bottom:1px solid #dce5df}
.component-table .component-subsystem th{background:#f7f9f8;color:#344b40;border-top:3px solid #fff;border-bottom:1px solid #dce5df}
.component-table tbody tr[id^="component-"]:hover>td:not(.supply-missing){background:#edf4ef}
.component-table td[data-cell-url]:focus-visible{outline:2px solid #39765b;outline-offset:-2px}
.component-table .group-toggle-icon{border-color:#a2b9aa;background:#ffffff80;color:#315943}
.component-table .button.secondary{border-color:#cedbd2;background:#fff;color:#315943;box-shadow:none}
.component-table .button:hover{transform:none;background:#edf4ef}
.component-table .component-subsystem .text-link{color:#68786f}
.component-toolbar{color:#5e7066}
.fdv-status{display:inline-block;padding:4px 7px;border-radius:5px}
.fdv-status.is-ok{background:#eaf3ed;color:#285d40}
.fdv-status.is-missing{background:#fff6e5;color:#795516}
.fdv-tag{color:#204f43}

.bulk-delivery-bar{position:fixed;bottom:12px;left:254px;right:18px;z-index:19;display:flex;align-items:center;flex-wrap:wrap;gap:10px 18px;padding:16px 20px;background:#fff;border:1px solid #a2b9aa;border-radius:10px;box-shadow:0 8px 32px #173e3426;max-height:45vh;overflow:auto}.bulk-delivery-bar[hidden]{display:none}.bulk-delivery-bar>label{display:flex;align-items:center;gap:10px}.bulk-delivery-bar select{width:260px;min-height:36px;padding:6px 10px}.bulk-empty input{width:18px;height:18px;min-height:18px;accent-color:var(--green)}.bulk-columns{display:flex;align-items:center;flex-wrap:wrap;gap:6px;width:100%;font-size:12px}.bulk-columns .button{min-height:30px;padding:4px 9px;font-size:12px}.bulk-count{margin:0;flex:1;font-size:13px}.bulk-actions{display:flex;gap:8px}.bulk-delivery-bar [role=alert]{margin:0;color:#92392f;width:100%}.bulk-delivery-bar [role=alert]:empty{display:none}.bulk-delivery-mode td[data-cell-key="K"],.bulk-delivery-mode td[data-cell-key="L"],.bulk-delivery-mode td[data-cell-key="N"],.bulk-delivery-mode td[data-cell-key="O"]{cursor:crosshair;user-select:none}.component-table td.bulk-selected{background:#dceee3!important;box-shadow:inset 0 0 0 2px #39765b!important;color:#204f43}.bulk-delivery-active .master-scroll{padding-bottom:220px}.menu-collapsed .bulk-delivery-bar{left:18px}@media(max-width:680px){.bulk-delivery-bar{left:8px;right:8px;bottom:8px;padding:12px;gap:8px}.bulk-delivery-bar select{width:190px}.bulk-actions{width:100%}.bulk-delivery-active .master-scroll{padding-bottom:300px}}
.bulk-delivery-active .support-launchers{display:none}
.component-table td.bulk-selected{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

/* Fag side om side, med rådgiver under entreprenør i hver kolonne. */
.project-people{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,320px),1fr));gap:20px 16px;align-items:start}
.project-people>.participant-shared-note{grid-column:1/-1;margin:0}
.project-people .participant-trade{min-width:0;margin:0}
.project-people .participant-trade-slots{grid-template-columns:minmax(0,1fr);gap:14px}
.project-people .participant-trade-slots .company-grid{grid-template-columns:minmax(0,1fr)}

.account-photo{display:flex;align-items:center;gap:20px;margin:24px 0;flex-wrap:wrap}.account-photo img,.account-photo-placeholder{width:96px;height:96px;border-radius:50%;object-fit:cover}.account-photo-placeholder{display:grid;place-items:center;background:#eaf0e7;font-size:32px;color:#365d4b}.top-avatar img{width:100%;height:100%;object-fit:cover;border-radius:50%}.profile-photo-preview{display:block;width:128px;height:128px;object-fit:cover;border-radius:50%;margin:20px 0}

/* Avoid painting the uninitialized table before widths and saved groups are applied. */
.system-table-loading .systems-workspace .master-panel{position:relative;min-height:240px}
.system-table-loading .systems-workspace .master-panel::before{content:"Laster systemoversikten …";position:absolute;top:65px;left:24px;color:var(--muted);font-size:14px}
.system-table-loading .systems-workspace .master-scroll{visibility:hidden;overflow:hidden}

/* Compact project cards with one column per company and its trade advisors. */
.home-projects{grid-template-columns:1fr}.home-project{padding:18px 20px;min-width:0}.home-project-header{display:flex;align-items:flex-start;gap:24px;margin-bottom:18px;flex-wrap:wrap}.home-project-title{flex:1 1 260px;min-width:0}.home-project-title h2{margin:4px 0;font-size:20px}.home-project-title p{margin:4px 0}.home-project-header .home-marking{margin:0;padding:8px 12px;max-width:300px;min-width:120px}.home-project-header .home-marking p{margin:3px 0}.home-project-header .handover-countdown{margin:0;padding:8px 12px}.home-project-header details{font-size:12px}.home-company-scroll{overflow:auto;max-width:100%;border:1px solid var(--border);border-radius:7px}.home-company-table{width:100%;border-collapse:separate;border-spacing:0;table-layout:fixed}.home-company-table th,.home-company-table td{width:190px;min-width:190px;padding:10px 12px;border:0;border-right:1px solid var(--border);border-bottom:1px solid var(--border);font-size:12px;letter-spacing:0;color:var(--ink);white-space:normal;overflow-wrap:anywhere;text-align:left;vertical-align:top}.home-company-table thead th{background:#edf3ef}.home-company-table th:first-child{position:sticky;left:0;z-index:1;width:145px;min-width:145px;background:#f3f5ef}.home-company-table small{display:block;font-weight:400;color:var(--muted);font-size:12px;margin-top:3px}.home-company-table strong{font-weight:600}.home-advisor{border-top:1px solid #d9e1d7;padding-top:6px;margin-top:8px}.home-advisor-metric{border-top:1px solid var(--border);margin-top:8px;padding-top:5px}.home-percent{display:flex;align-items:center;gap:10px}.home-percent meter{width:70px;height:9px}.home-company-overview .home-card-note{margin:8px 0 12px;font-size:12px}.home-project-bottom{padding-top:10px}.home-stats{gap:10px;margin-bottom:18px}.home-stats .panel{padding:12px 18px;flex-direction:row;align-items:center;gap:12px}.home-stats strong{font-size:24px}
@media(max-width:600px){.home-project{padding:12px}.home-project-header{gap:10px;margin-bottom:12px}.home-project-title{flex-basis:100%}.home-project-header .home-marking{max-width:100%}.home-projects .home-project-bottom{gap:8px}.home-stats .panel{padding:10px;flex-direction:column;gap:2px;align-items:flex-start}.home-company-table th:first-child{width:110px;min-width:110px}}

.participant-company-functions{margin:6px 0;font-size:12px}.participant-company-functions p{margin:3px 0}.participant-access{margin-top:6px!important}.participant-unaffiliated{margin-top:20px}.project-people>.company-grid>.company-card{min-width:0}

.document-filters{display:flex;flex-wrap:wrap;gap:14px;align-items:end;margin-bottom:22px;padding:20px}.document-filters label{display:flex;flex-direction:column;gap:7px;flex:1 1 160px;min-width:0;font-size:13px}.document-filters label:first-of-type{flex-grow:2}.document-filters input,.document-filters select{width:100%;min-width:0}.document-result-count{flex-basis:100%;margin:0}.fdv-company>header.fdv-company-heading{display:flex;flex-wrap:wrap;align-items:center;gap:12px;padding:18px 20px;background:#eaf0e6}.fdv-company>header h2{margin:0;font-size:16px}.fdv-export{margin:12px 20px}@media(max-width:650px){.document-filters label{flex-basis:100%}.document-filters{padding:14px}}

/* Design refresh (7 Oct 2026): self-hosted Inter, one-word wordmark, ITB hub on login, quieter sidebar, neutral FDV slots, mobile menu and card rows. */
@font-face{font-family:Inter;font-style:normal;font-weight:100 900;font-display:swap;src:url("fonts/InterVariable-latin.3e9f2f688e04.woff2") format("woff2")}
body{font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;-webkit-font-smoothing:antialiased;text-rendering:geometricPrecision}
.brand{gap:10px}.brand>.brand-name{margin-left:0;font-weight:400;letter-spacing:-.5px}.brand-name b{letter-spacing:-.2px;margin-right:1px}.brand-name b{font-weight:700}
.login-story .brand{font-size:24px}.story-copy p{color:#c4d4ca}.story-copy .eyebrow{color:#c4d4ca}
.login-side{justify-content:space-between}.login-form-wrap{padding-top:40px}
.building-scene{isolation:isolate}
.building-scene .system-tag{z-index:2;font-size:12px;color:#eef4ea}
.show-password{display:grid;place-items:center;color:var(--muted)}.show-password svg{width:20px;height:20px}.show-password .eye-closed,.show-password[aria-pressed=true] .eye-open{display:none}.show-password[aria-pressed=true] .eye-closed{display:block}
.login-help a{color:var(--green);text-decoration:underline;text-underline-offset:2px}

/* Sidebar: one user block, quiet project creation, help at the bottom instead of floating over content. */
.sidebar-user{display:flex;flex-direction:column;min-width:0;line-height:1.3}.sidebar-user strong{font-size:13px;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.sidebar-user small{font-size:12px;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.sidebar .sidebar-new-project{display:inline-flex;align-self:flex-start;align-items:center;gap:4px;margin:-4px 8px 14px;padding:2px 0;min-height:0;font-size:12px;font-weight:550;color:var(--muted);background:none;border:0}.sidebar .sidebar-new-project:hover{color:var(--green);text-decoration:underline}
.sidebar nav a{font-size:13px;color:#4f5d55;padding:10px 12px;gap:10px}.sidebar nav b{font-size:12px}
@media(min-width:1251px){.sidebar{width:270px}.main-shell{margin-left:270px}.bulk-delivery-bar{left:282px}}
@media(min-width:951px) and (max-width:1250px){.sidebar{width:240px}.main-shell{margin-left:240px}.bulk-delivery-bar{left:252px}}
.sidebar-help{margin-top:auto;padding:10px 0 14px;border-top:1px solid var(--border)}
.sidebar-help button{display:flex;align-items:center;gap:12px;width:100%;padding:9px 14px;border-radius:6px;background:none;color:#4f5d55;font-size:13px;text-align:left}.sidebar-help button:hover{background:#f0f3ec;color:var(--green)}
.sidebar-help .nav-icon{flex-shrink:0}
body:has(.sidebar) .support-launchers{display:none}body:has(.sidebar) .app-footer{padding-bottom:17px}
.mobile-menu-toggle{display:none}

/* FDV: neutral upload slots with a status dot rather than a wall of amber. */
.fdv-products .fdv-type-upload.is-missing{background:#fff;border-color:#d5dbd2;color:var(--ink)}
.fdv-products .fdv-type-upload.is-missing::before{content:"";display:inline-block;width:7px;height:7px;margin-right:7px;border-radius:50%;background:#c98a1b;vertical-align:1px}
.fdv-products a.fdv-type-upload.is-missing:hover{background:#f6f8f3;border-color:#9fb3a5;filter:none}
.fdv-products .fdv-type-upload.is-uploaded{background:#eef6f0;border-color:#b9d3c0}

@media(max-width:680px){
 .sidebar-heading{display:flex;align-items:center;gap:8px}
 .sidebar-heading .brand{margin-right:auto}
 .sidebar-heading .sidebar-collapse,.menu-restore{display:none!important}
 .mobile-menu-toggle{display:inline-flex;align-items:center;gap:7px;min-height:40px;padding:8px 12px;border:1px solid var(--border);border-radius:7px;background:#fff;color:var(--ink);font-size:13px;font-weight:600}
 .app-shell.menu-collapsed .sidebar{display:flex}
 .app-shell .sidebar{display:flex;flex-direction:column}
 .sidebar:not(.mobile-open)>:not(.sidebar-heading){display:none!important}
 .sidebar.mobile-open{padding-bottom:6px}
 .sidebar.mobile-open nav{display:block;overflow:visible;margin-top:6px}
 .sidebar.mobile-open nav a{display:flex;white-space:normal;margin:0 0 2px;padding:10px 12px;font-size:14px;gap:12px}
 .sidebar.mobile-open nav a:last-child{margin-left:0}
 .sidebar.mobile-open nav b{display:inline-block}
 .sidebar.mobile-open .nav-divider{display:block;margin:10px 12px}
 .sidebar.mobile-open .sidebar-bottom{display:block}
 .sidebar.mobile-open .sidebar-help button{font-size:14px;padding:10px 12px}

 /* System overview as stacked cards: one card per component, labelled cells. */
 .systems-workspace .master-scroll{max-height:none!important;overflow:visible!important}
 .systems-workspace .component-table{display:block;width:auto!important;zoom:1!important;min-width:0!important}
 .systems-workspace .component-table colgroup,.systems-workspace .component-table .component-column-labels,.systems-workspace .component-table .component-groups>th:not(.tfm-main-heading){display:none}
 .systems-workspace .component-table thead,.systems-workspace .component-table tbody,.systems-workspace .component-table tr{display:block}
 .systems-workspace .component-table thead .tfm-main-heading{display:block;position:static!important;width:auto!important;min-width:0;padding:10px;text-align:left}
 .systems-workspace .component-table .tfm-main-heading>span{display:none}
 .systems-workspace .tfm-table-tools{flex-direction:row;flex-wrap:wrap;margin:8px 0 0}
 .systems-workspace .tfm-table-tools [data-table-fit]{display:none}
 .systems-workspace .component-table .main-system-add{position:static;display:inline-flex;margin-top:8px;width:auto}
 .systems-workspace .component-toolbar [data-table-scale]{display:none}
 .systems-workspace .component-table tbody>tr>th{display:block;position:static!important;width:auto!important;text-align:left}
 .systems-workspace .component-table tbody>tr[id^="component-"]:not(.component-empty-system):not(.component-inline-row){margin:8px 0 12px;background:#fff;border:1px solid var(--border);border-radius:9px;overflow:hidden}
 .systems-workspace .component-table tbody>tr[id^="component-"]:not(.component-empty-system):not(.component-inline-row)>td{display:flex;align-items:center;justify-content:space-between;gap:12px;position:static!important;width:auto!important;min-height:0;height:auto;padding:9px 12px;border:0;border-bottom:1px solid #edf0e9;text-align:right;white-space:normal}
 .systems-workspace .component-table tbody>tr>td.folded-cell{display:none!important}
 .systems-workspace .component-table tbody>tr>td[data-cell-label]::before,.systems-workspace .component-table tbody>tr>td[data-card-label]::before{flex:0 0 42%;color:var(--muted);font-size:12px;font-weight:500;text-align:left}
 .systems-workspace .component-table tbody>tr>td[data-cell-label]::before{content:attr(data-cell-label)}
 .systems-workspace .component-table tbody>tr>td[data-card-label]::before{content:attr(data-card-label)}
 .systems-workspace .component-table tbody>tr>td[data-cell-key="F"]{justify-content:flex-start;font-size:14px;background:#eef3ef;text-align:left}
 .systems-workspace .component-table tbody>tr>td[data-cell-key="F"]::before{display:none}
 .systems-workspace .component-table tbody>tr>td:last-child{border-bottom:0}
 .systems-workspace .component-table tbody>tr.component-empty-system>td,.systems-workspace .component-table tbody>tr.component-inline-row>td{display:block;width:auto!important}
}

/* Wordmark logo files replace the HTML wordmark; keep their aspect ratio at every breakpoint. */
.brand img.brand-logo{width:auto!important;height:36px!important;max-width:100%}
.login-story .brand img.brand-logo{height:52px!important}
@media(min-width:681px) and (max-width:950px){.sidebar-heading .brand img.brand-logo{height:28px!important}}
@media(max-width:680px){.login-story .brand img.brand-logo{height:38px!important}.sidebar-heading .brand img.brand-logo{height:34px!important}}

/* Login: large logo symbol in place of an illustration. */
.hero-logo{flex:1;display:grid;place-items:center;min-height:240px;position:relative}
.hero-logo:before{content:"";position:absolute;width:min(70%,460px);aspect-ratio:1;border-radius:50%;background:radial-gradient(circle,#c6dfa72e,#c6dfa700 68%)}
.hero-logo img{position:relative;width:min(58%,330px);height:auto}
@media(max-width:680px){.hero-logo{display:none}}

.pdf-drop{display:flex;flex-direction:column;gap:10px;border:2px dashed var(--border);border-radius:8px;padding:24px;text-align:center;background:var(--background,#f7f9f5);overflow-wrap:anywhere}
.pdf-drop input{max-width:100%;min-width:0;background:white;text-align:left}
.pdf-drop.is-dragging,.pdf-drop:focus-within{border-color:#20594b;background:#edf5ed}
.pdf-drop [data-drop-status]:empty{display:none}

.document-card-toolbar{display:flex;align-items:center;gap:16px;flex-wrap:wrap;margin-bottom:20px}
.document-card-toolbar h2{margin:0;margin-right:auto}
.document-inline-search{display:flex;align-items:center;gap:8px;flex-wrap:wrap;max-width:100%}
.document-inline-search input[type=search]{width:240px;max-width:100%;min-width:0}
.drawing-inline-upload{margin-bottom:24px}
@media(max-width:600px){.document-inline-search{order:3;width:100%}.document-inline-search input[type=search]{flex:1;width:0}.document-card-toolbar{gap:12px}}

.tfm-login-link{margin-top:32px;padding:24px 0;border-top:1px solid #d7e0d8}.tfm-login-link h2{font-size:23px;margin:10px 0}.tfm-login-link p{line-height:1.6;color:#53675f;margin-bottom:18px}
