:root{font-family:Segoe UI,system-ui,sans-serif;color:#102346;background:#f3f6fd;font-synthesis:none;--blue:#0875ff;--nav:#0c2043;--border:#e2e8f5}*{box-sizing:border-box;min-width:0}html{scroll-behavior:smooth;scroll-padding-top:100px}body{margin:0}a{color:#0067e9}button,input,select,textarea{font:inherit}button,a,input,select,textarea,summary{touch-action:manipulation}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible{outline:3px solid #93bdff;outline-offset:3px}[hidden]{display:none!important}.topbar{position:sticky;top:0;z-index:10;display:flex;align-items:center;gap:24px;height:82px;padding:16px 32px;background:#ffffffed;border-bottom:1px solid var(--border);backdrop-filter:blur(14px)}.brand{display:flex;align-items:center;gap:12px;color:#0b1d41;text-decoration:none}.brand strong{font-size:21px;letter-spacing:.5px}.brand small{display:block;font-size:10px;font-weight:400;letter-spacing:1px}.topbar-caption{font-size:13px;color:#69809b}.topbar button{margin-left:auto;background:#edf4ff;color:#175fc4}#navigation{position:fixed;left:0;top:82px;bottom:0;width:224px;background:linear-gradient(160deg,#102b55,#081a36);color:white;padding:24px 16px;overflow-y:auto;z-index:9}.sidebar-brand{display:flex;align-items:center;flex-direction:column;gap:8px;margin-bottom:24px}.sidebar-brand strong{letter-spacing:1px}.sidebar-brand small{color:#a0b5d3;font-size:11px}nav{display:grid;gap:6px}nav a{display:flex;align-items:center;gap:14px;color:#cedcf2;text-decoration:none;border-radius:10px;padding:12px;font-size:15px}nav a:hover{background:#ffffff12}nav a.active{background:linear-gradient(90deg,#0669ec,#0a82ff);color:white;box-shadow:0 4px 14px #006cff33}.sidebar-note{border-top:1px solid #ffffff24;padding:20px 10px;font-size:13px;color:#cfdef4}.sidebar-note span{display:block;color:#7f9abd;font-size:11px;margin-top:8px}main{max-width:1300px;margin:24px auto;padding:0 28px 36px;display:flex;flex-direction:column;gap:22px}.authenticated main{margin-left:224px;max-width:1600px}section{background:white;border:1px solid var(--border);border-radius:16px;padding:26px;box-shadow:0 3px 14px #1b4b9010}h1{font-size:28px;line-height:1.3;margin:0 0 12px;letter-spacing:-.5px}h2{font-size:21px;margin:0 0 20px}h3{font-size:17px}p{line-height:1.6}label,.editor-field{display:grid;gap:8px;font-size:13px;color:#425775}input,select,textarea{border:1px solid #cfd9e9;border-radius:9px;padding:11px 12px;min-height:44px;background:#fbfcff;color:#142947;max-width:100%}textarea{min-height:100px;resize:vertical}button{background:var(--blue);color:white;border:0;border-radius:9px;min-height:44px;padding:11px 18px;cursor:pointer;font-weight:600;font-size:13px;transition:background .15s}button:hover{background:#0058d4}button:disabled{opacity:.45;cursor:default}form{display:grid;gap:16px;max-width:560px;margin:0 0 20px}.controls{display:flex;gap:14px;align-items:end;flex-wrap:wrap;margin:20px 0;max-width:100%}.controls label{flex:1;min-width:160px}.card{border:1px solid var(--border);border-radius:12px;padding:18px;margin:12px 0;background:linear-gradient(140deg,#fff,#fcfdff);overflow-wrap:anywhere}.card h3{margin:0 0 10px}.card p{font-size:14px;color:#60728c}.card button{margin:8px 0 0 12px;background:#eaf2ff;color:#0963da}.badge{display:inline-block;color:#0871ed;background:#e8f2ff;padding:5px 10px;border-radius:20px;font-size:12px}details{border-top:1px solid var(--border);padding:18px 0}summary{font-size:17px;font-weight:600;cursor:pointer;min-height:40px}details[open]>summary{margin-bottom:18px}fieldset{border:1px solid var(--border);border-radius:10px;padding:16px;margin:12px 0;display:grid;gap:12px}legend{font-weight:600}input[type=checkbox]{min-height:22px;width:22px}select[multiple]{min-height:120px}.photo-preview{display:block;max-width:100%;max-height:240px;margin-top:12px}#message{white-space:pre-wrap;color:#a32b32;margin:0;order:-10;empty-cells:hide}#message:empty{display:none}#overview{order:-9;padding:0;border:0;box-shadow:none;background:none}.welcome{border:1px solid #d5e5ff;border-radius:16px;background:linear-gradient(110deg,#fff 5%,#e5f0ff 65%,#c6e0ff);display:flex;align-items:center;justify-content:space-between;overflow:hidden;min-height:190px;padding:24px 0 24px 26px;gap:16px}.welcome>div{position:relative;z-index:1;flex:1}.welcome img{align-self:stretch;object-fit:cover;width:36%;height:auto;min-height:180px;margin:-24px 0;opacity:.9}.welcome p{color:#476587;margin:8px 0}.eyebrow{display:block;color:#0874ed;font-size:10px;letter-spacing:1.6px;font-weight:700;margin-bottom:10px}#overviewContext{font-size:12px;color:#4e6d95}.metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-top:18px}.metric{display:flex;gap:12px;align-items:flex-start;border:1px solid var(--border);border-radius:14px;background:linear-gradient(130deg,white,#fbfcff);padding:20px 14px;box-shadow:0 2px 8px #254e9410}.metric-icon{border-radius:50%;width:42px;height:42px;display:grid;place-items:center;font-size:23px;color:white;flex-shrink:0}.blue{background:#0875ff}.purple{background:#8b51fd}.green{background:#00b68d}.amber{background:#ffb20a}.metric strong{display:block;font-size:24px;line-height:1.2;overflow-wrap:anywhere}.metric span:not(.metric-icon){display:block;font-size:12px;margin:7px 0}.metric small{font-size:10px;color:#7690ae}#workspace{order:-8}#taskEditor,#formEditor{order:-7}#projectTools{order:-6}#directory{order:0}#onboarding{order:1}#admin{order:2}#login{width:min(480px,100%);margin:40px auto}.login-brand{display:flex;flex-direction:column;align-items:center;gap:6px;margin-bottom:26px}.login-brand p{font-size:10px;color:#6b89ac;letter-spacing:2px}#login h1{text-align:center}#login>p{color:#69809b;text-align:center;font-size:14px}footer{order:9;font-size:12px;color:#6e829c;padding:8px}#items{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}#items .card{margin:0}#total{color:#637995;font-size:13px}#projectForm,#taskForm{padding:16px;background:#f6f9ff;border-radius:12px}button+a,a+button{margin-left:12px}@media(min-width:1700px){.authenticated main{margin-right:auto}}@media(max-width:1150px){.metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.topbar-caption{display:none}#navigation{width:200px}.authenticated main{margin-left:200px;padding:0 20px 30px}}@media(max-width:740px){html{scroll-padding-top:80px}main,.authenticated main{margin:18px 0 0;padding:0 14px 95px;gap:16px}.topbar{height:68px;padding:12px 16px;gap:8px}.brand strong{font-size:17px}.brand img{width:29px;height:34px}.brand small{font-size:8px}.topbar button{padding:9px;font-size:11px}#navigation{top:auto;bottom:0;left:0;right:0;width:100%;height:66px;padding:4px 8px;background:#fff;border-top:1px solid var(--border);overflow-x:auto;overflow-y:hidden;box-shadow:0 -4px 16px #1023460d}#navigation nav{display:flex;gap:8px;width:max-content;min-width:100%;justify-content:space-around}#navigation nav a{display:flex;flex-direction:column;gap:4px;font-size:20px;color:#6b7f9d;padding:6px 10px;white-space:nowrap;min-width:66px;border-radius:7px}#navigation nav a span{font-size:9px}#navigation nav a.active{color:#0875ff;background:#edf5ff;box-shadow:none}.sidebar-brand,.sidebar-note{display:none}section{padding:20px;border-radius:14px}h1{font-size:23px}h2{font-size:20px}.welcome{padding:24px 20px;min-height:174px}.welcome img{display:none}.welcome p{font-size:13px}.metrics{gap:10px;margin-top:12px}.metric{padding:16px 12px;gap:10px}.metric-icon{width:32px;height:32px;font-size:18px}.metric strong{font-size:21px}.metric span:not(.metric-icon){font-size:11px}.metric small{font-size:9px}.controls{display:grid;gap:14px}.controls label{min-width:0}#items{grid-template-columns:1fr}input,select,textarea{width:100%}#login{margin:20px auto}.card button{margin-left:0;margin-right:8px}.topbar-caption{display:none}}@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}button{transition:none}}
/* Dashboard composition aligned with the approved visual reference. */
.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}.dashboard-search{display:none}.authenticated .topbar{margin-left:210px;height:70px;padding:14px 30px;background:#f4f7ff}.authenticated .topbar>.brand{display:none}.authenticated .dashboard-search{display:flex;position:relative;width:min(500px,65%);max-width:none;margin:0;gap:0}.dashboard-search input{width:100%;border-radius:14px;background:#ffffffc9;padding-left:17px;min-height:38px;font-size:13px}.dashboard-search button{margin-left:8px;min-height:38px;padding:5px 12px}#dashboardDate{margin-left:auto;font-size:12px;white-space:nowrap}body:not(.authenticated) #dashboardDate{display:none}.authenticated .topbar #logout{margin-left:0;font-size:11px;min-height:36px;padding:8px 10px}#navigation{top:0;width:210px;padding:38px 13px 20px;background:linear-gradient(135deg,#11213b,#193451 80%,#102039);display:flex;flex-direction:column}.sidebar-brand{margin:0 0 27px;gap:2px}.sidebar-brand img{width:65px;height:66px}.sidebar-brand strong{font-size:19px;letter-spacing:0}.sidebar-brand small{color:#d1def0;font-size:10px}nav{gap:3px}nav a{padding:11px 16px;font-size:13px;gap:15px;border-radius:12px;min-height:43px}.sidebar-note{margin-top:auto;margin-bottom:0;padding:20px 10px 0}.sidebar-note span{font-size:13px;color:white;font-weight:600;margin-top:22px}.sidebar-note small{font-size:9px;display:block;margin-top:5px;color:#a1b7d5}.authenticated main{margin:0 0 0 210px;padding:0 24px 24px;max-width:none;gap:16px}.authenticated[data-view=overview] main>section:not(#overview){display:none!important}.authenticated[data-view=workspace] #overview{display:none!important}.authenticated[data-view=overview] footer{display:none}#overview{padding-top:0}.welcome{height:140px;min-height:140px;border-radius:13px;padding:20px 24px;position:relative;background:linear-gradient(105deg,#e5edff,#e2efff 55%,#0871d4);gap:0}.welcome>div{flex:none;width:53%;padding-left:0}.welcome h1{font-size:25px}.welcome p{font-size:15px;margin:6px 0;color:#172d50}.eyebrow{font-size:9px;letter-spacing:1px}.welcome img{position:absolute;right:13%;width:40%;height:100%;margin:0;opacity:.85;object-fit:cover;min-height:0}.hero-motto{position:absolute;right:25px;top:50%;transform:translateY(-50%);color:white;font-size:18px;line-height:1.3;max-width:18%;text-shadow:0 1px 4px #004a8a}#overviewContext{font-size:10px}.metrics{margin-top:12px;gap:12px}.metric{min-height:112px;border-radius:13px;padding:19px 16px;gap:15px;background:#fff;align-items:center}.metric-icon{width:50px;height:50px;font-size:27px;box-shadow:inset 0 0 0 4px #ffffff22,0 0 0 6px #f6f9ff}.metric strong{font-size:27px;color:#06142d}.metric small{font-size:10px}.metric span:not(.metric-icon){margin:5px 0;color:#172d50}.dashboard-grid{display:grid;grid-template-columns:1.4fr 1fr;gap:14px;margin-top:14px}.dashboard-panel{border:1px solid var(--border);box-shadow:0 1px 3px #244d9410;border-radius:13px;background:#fff;padding:18px 20px;min-height:180px;overflow:hidden}.panel-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;border-bottom:1px solid var(--border);padding-bottom:12px;margin-bottom:0}.panel-heading h2{font-size:17px;margin:0;color:#07162e}.panel-heading a{font-size:11px;text-decoration:none;white-space:nowrap}.dashboard-project{background:none;color:#0e203a;display:flex;align-items:center;text-align:left;width:100%;gap:15px;border-radius:0;border-bottom:1px solid var(--border);padding:12px 0;font-weight:400}.dashboard-project:hover{background:#f5f9ff}.dashboard-project:last-child{border-bottom:0}.project-thumbnail{width:70px;height:52px;border-radius:7px;background:linear-gradient(140deg,#e0f0ff,#98c7fc);display:grid;place-items:center;font-size:32px;color:#0875ff;flex-shrink:0}.dashboard-project strong{display:block;font-size:14px}.dashboard-project small{display:block;font-size:11px;color:#7a8ba3;margin-top:6px}.project-arrow{margin-left:auto;color:#0875ff;font-size:11px;white-space:nowrap}.dashboard-row{display:flex;align-items:center;text-align:left;gap:10px;min-height:43px;background:none;border:0;border-bottom:1px solid var(--border);border-radius:0;width:100%;color:#152540;padding:10px 0;font-size:12px;text-decoration:none;font-weight:400}.dashboard-row:hover{background:#f6f9ff}.dashboard-row span:nth-child(2){flex:1}.dashboard-row small{color:#7c8a9f;font-size:10px;margin-left:auto}.status-dot{width:9px;height:9px;background:#0875ff;border-radius:50%;flex-shrink:0}.status-dot.done{background:#00b68d}.panel-context{font-size:10px;color:#7c8a9f;margin:12px 0 2px}.dashboard-empty{font-size:13px;color:#8291a9;padding:18px 0;line-height:1.7}.schedule-preview{display:grid;gap:7px;padding:12px 0;border-bottom:1px solid var(--border)}.schedule-preview strong{font-size:12px}.schedule-preview small{font-size:10px;color:#7a8ba3}.schedule-preview progress{width:100%;height:7px;accent-color:#0875ff}
@media(max-width:1150px){.metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.welcome h1{font-size:21px}.hero-motto{font-size:15px}.dashboard-grid{grid-template-columns:1fr 1fr}.dashboard-panel{padding:16px}.panel-heading h2{font-size:15px}.project-thumbnail{width:48px;height:45px}.project-arrow{font-size:10px}}
@media(max-width:740px){.authenticated .topbar{margin:0;height:64px;padding:10px 14px;gap:8px}.authenticated .dashboard-search{width:auto;flex:1}.dashboard-search input{font-size:11px}#dashboardDate{display:none}.authenticated main{margin:14px 0 0;padding:0 14px 90px}.authenticated #navigation{top:auto;bottom:0;width:100%;padding:4px 8px;display:block;background:#fff}.sidebar-brand,.sidebar-note{display:none}.welcome{height:160px;padding:20px}.welcome>div{width:100%}.welcome img,.hero-motto{display:none}.welcome h1{font-size:22px}.welcome p{font-size:13px}.dashboard-grid{grid-template-columns:1fr}.metric{padding:16px 12px;gap:11px;min-height:100px}.metric-icon{width:34px;height:34px;font-size:20px}.metric strong{font-size:23px}.dashboard-panel{min-height:140px}}
/* Final dashboard artwork and responsive rhythm. */
:root{font-family:Arial,"Segoe UI",system-ui,sans-serif}.authenticated main{padding-top:0}.welcome{background:linear-gradient(90deg,#edf3ff 0%,#edf3ffcc 38%,#dcecff22 65%,#0365c5 100%),url('/buildmaster-hero.png') center 48%/cover no-repeat}.welcome img{display:none}.welcome>div{width:58%}.welcome h1{font-size:25px;letter-spacing:-.5px}.welcome .eyebrow{display:none}.hero-motto{font-size:20px;max-width:19%}.welcome p{font-size:16px}.sidebar-brand{margin-bottom:20px}#navigation{padding-top:30px}nav a{min-height:36px;padding:8px 15px;font-size:13px}.sidebar-note{padding-top:14px}.sidebar-note span{margin-top:10px}.sidebar-note .account-avatar{display:inline-grid;place-items:center;width:33px;height:33px;border:2px solid #aecbff;border-radius:50%;font-size:11px;margin-right:8px;background:#3b5f87}.dashboard-project{min-height:69px;padding:9px 0}.project-thumbnail{height:50px;width:74px;font-size:20px;font-weight:700;letter-spacing:1px}.dashboard-panel{padding:17px 20px}.dashboard-grid{grid-template-columns:1.4fr 1fr}.dashboard-grid>.dashboard-panel:nth-child(-n+2){min-height:330px}.dashboard-row{font-size:13px}.dashboard-grid>.dashboard-panel:nth-child(n+3){min-height:160px}.activity-avatar{flex-shrink:0;width:25px;height:25px;border-radius:50%;display:grid;place-items:center;background:#e4efff;color:#1e6ad0;font-size:9px}.activity-row{font-size:11px;gap:9px}.activity-row time{font-size:9px;white-space:nowrap;color:#7690ae;margin-left:auto}.schedule-preview{padding:10px 0}.schedule-preview progress{height:6px}.panel-heading h2{font-size:17px}.dashboard-empty{padding:15px 0}.authenticated .topbar{padding-left:24px}.metric strong{font-size:27px}.metric{min-height:114px}.metric-icon{align-self:flex-start}.dashboard-project:focus-visible{outline-offset:-3px}.dashboard-row:focus-visible{outline-offset:-3px}
@media(max-width:1150px){.welcome h1{font-size:23px}.metric strong{font-size:24px}.dashboard-grid{grid-template-columns:1.2fr 1fr}.panel-heading h2{font-size:15px}.dashboard-panel{padding:15px}.hero-motto{font-size:17px}.project-thumbnail{width:54px}}
@media(max-width:740px){.welcome{background:linear-gradient(90deg,#eef4fff5,#eef4ffdd),url('/buildmaster-hero.png') center/cover}.welcome>div{width:100%}.welcome h1{font-size:22px}.welcome p{font-size:14px}.hero-motto{display:none}.dashboard-grid{grid-template-columns:1fr}.dashboard-grid>.dashboard-panel:nth-child(-n+2){min-height:0}.sidebar-note{display:none}.metric{min-height:110px}.metric strong{font-size:22px}.activity-row time{white-space:normal;max-width:60px}.panel-heading h2{font-size:16px}.project-thumbnail{width:60px}}
/* Each navigation choice is a separate application view. */
main>#projectContext,main>#tasksPage,main>#filesPage{display:none}.authenticated main>section{display:none!important}.authenticated[data-page=overview] main>#overview,.authenticated[data-page=workspace] main>#workspace,.authenticated[data-page=tasksPage] main>#tasksPage,.authenticated[data-page=filesPage] main>#filesPage,.authenticated[data-page=directory] main>#directory,.authenticated[data-page=onboarding] main>#onboarding,.authenticated[data-page=admin] main>#admin{display:block!important}.authenticated:not([data-page=overview]) main>#projectContext{display:block!important;order:-9;padding:12px 22px}.authenticated #projectContext .controls{margin:0}.authenticated[data-page=tasksPage] main>#taskEditor:not([hidden]),.authenticated[data-page=formsPanel] main>#formEditor:not([hidden]){display:block!important}.authenticated[data-page=schedulePanel] main>#projectTools,.authenticated[data-page=budgetPanel] main>#projectTools,.authenticated[data-page=formsPanel] main>#projectTools,.authenticated[data-page=sheetsPanel] main>#projectTools,.authenticated[data-page=photosPanel] main>#projectTools,.authenticated[data-page=chatPanel] main>#projectTools,.authenticated[data-page=activityPanel] main>#projectTools{display:block!important}#projectTools>h2,#projectTools>details{display:none}body[data-page=schedulePanel] #schedulePanel,body[data-page=budgetPanel] #budgetPanel,body[data-page=formsPanel] #formsPanel,body[data-page=sheetsPanel] #sheetsPanel,body[data-page=photosPanel] #photosPanel,body[data-page=chatPanel] #chatPanel,body[data-page=activityPanel] #activityPanel{display:block;border:0;padding:0}body:not(.authenticated) main>#projectContext,body:not(.authenticated) main>#tasksPage,body:not(.authenticated) main>#filesPage{display:none}#tasksPage,#filesPage{order:-8}#projectDirectory{margin-bottom:20px}.project-name{flex:1;min-width:0}.project-name strong{overflow-wrap:anywhere}.project-meter{display:flex;align-items:center;gap:8px;width:120px;flex-shrink:0}.project-meter progress{width:90px;height:7px;accent-color:#0875ff}.project-meter small{margin:0;font-size:10px;min-width:25px}.project-status{font-size:10px;color:#0875ff;background:#dceeff;border-radius:16px;padding:7px 10px;white-space:nowrap}.project-status.planning{background:#eee5ff;color:#783dde}.project-status.complete{background:#d8f7ea;color:#009969}.timeline-stages{display:flex;padding:25px 5px 10px}.timeline-stage{position:relative;flex:1;text-align:center;padding:0 6px}.timeline-stage:before{content:'';position:absolute;top:11px;left:0;width:100%;height:2px;background:#cbd7e8}.timeline-stage:first-child:before{left:50%;width:50%}.timeline-stage:last-child:before{width:50%}.stage-circle{position:relative;display:grid;place-items:center;margin:0 auto 12px;width:23px;height:23px;border:2px solid #a0b2ce;border-radius:50%;background:white;color:white;font-size:13px}.timeline-stage.done .stage-circle{background:#00b58b;border-color:#00b58b}.timeline-stage.done:before{background:#00b58b}.timeline-stage.current .stage-circle{background:#0875ff;border-color:#0875ff}.timeline-stage strong{display:block;font-size:11px;overflow-wrap:anywhere}.timeline-stage small{display:block;font-size:10px;margin-top:7px;color:#7084a0}.overdue small{color:#e54859}.project-thumbnail{width:62px;flex-shrink:0}.dashboard-project{gap:12px}.dashboard-grid{grid-template-columns:1.4fr 1fr}.dashboard-grid .project-name{max-width:170px}
@media(max-width:1150px){.project-meter{width:85px}.project-meter progress{width:55px}.project-status{font-size:9px;padding:6px}.project-thumbnail{width:45px}.dashboard-grid{grid-template-columns:1fr}.dashboard-grid>.dashboard-panel:nth-child(-n+2){min-height:0}.dashboard-grid .project-name{max-width:none}}
@media(max-width:740px){.dashboard-project{flex-wrap:wrap;gap:9px}.project-name{min-width:130px}.project-meter{margin-left:54px;flex:1;width:auto}.project-meter progress{width:90px}.project-status{margin-left:auto}.timeline-stages{flex-wrap:wrap;gap:20px 0}.timeline-stage{flex:0 0 50%}.timeline-stage:before{display:none}.authenticated:not([data-page=overview]) main>#projectContext{padding:15px}.dashboard-grid .project-name{max-width:none}}
.timeline-stage:only-child:before{display:none}.dashboard-project progress{appearance:none;border:0;border-radius:8px;overflow:hidden;background:#e1e7f4}.dashboard-project progress::-webkit-progress-bar{background:#e1e7f4;border-radius:8px}.dashboard-project progress::-webkit-progress-value{background:#0875ff;border-radius:8px}
@media(max-width:740px){.dashboard-project{display:grid;grid-template-columns:45px minmax(0,1fr) auto;gap:7px 10px}.dashboard-project .project-thumbnail{grid-column:1;grid-row:1/3;width:45px}.dashboard-project .project-name{grid-column:2;grid-row:1;min-width:0}.dashboard-project .project-status{grid-column:3;grid-row:1;font-size:8px;padding:6px}.dashboard-project .project-meter{grid-column:2/4;grid-row:2;width:100%;margin:0;display:flex}.dashboard-project .project-meter progress{width:auto;flex:1}.dashboard-project .project-meter small{flex-shrink:0}.dashboard-project strong{font-size:13px}.dashboard-project small{font-size:10px}}
