/* Bunyan design system v2 — visual-only refactor, all existing data/authorization flows retained. */
:root{--navy:#0d2942;--orange:#ef7d2b;--muted:#66778c;--line:#e5eaf0;--green:#127b61;--surface:#fff;--canvas:#f6f8fb;--shadow:0 13px 36px rgba(17,45,71,.06);font-family:system-ui,-apple-system,"Segoe UI",Tahoma,Arial,sans-serif}
body{background:var(--canvas);color:#162b44}button{touch-action:manipulation}button:focus-visible,a:focus-visible{outline:3px solid #ef7d2b;outline-offset:3px}a{text-decoration:none}.shell{grid-template-columns:252px minmax(0,1fr);background:var(--canvas)}.side{background:linear-gradient(150deg,#0a243b 0%,#132f4a 100%);box-shadow:-8px 0 32px #0d29420f;padding:29px 17px}.brand{display:flex;align-items:center;gap:11px;font-size:26px;font-weight:900;letter-spacing:-.5px}.brand-icon{height:56px;width:56px;object-fit:cover;border-radius:14px;flex-shrink:0}.brand small{font-size:10px;letter-spacing:2.1px;color:#afc1d0;font-weight:500}.side nav{margin-top:46px;gap:7px}.side .nav{font-size:14px;padding:14px 15px;border-radius:12px;transition:background .16s}.side .nav span{font-size:20px;width:24px;text-align:center;color:#f4a56a}.side .nav.active{background:var(--orange);box-shadow:0 6px 18px #ef7d2b35;color:#fff}.side .nav.active span{color:#fff}.sidefoot{margin-top:35px}.content{max-width:1400px;padding:34px clamp(22px,3.6vw,60px) 70px}.top{margin-bottom:27px;padding:0 2px}.heading{font-size:31px;line-height:1.35;letter-spacing:-.7px}.sub{font-size:13px;margin-top:8px}.topactions .chip{background:#fff}.btn{border-radius:11px;min-height:44px;padding:11px 17px;font-size:13px}.btn.orange{color:#fff;background:var(--orange);box-shadow:0 7px 20px #ef7d2b24}.btn.alt{background:#eaf0f5;color:var(--navy)}.btn.outline{background:white;border:1px solid #dce4ec}.btn:hover:not(:disabled){filter:brightness(.98)}.panel,.card{border-color:#e7ebf1;border-radius:19px;box-shadow:var(--shadow)}.panel{padding:23px}.panel h2,.panel h3{letter-spacing:-.25px}.eyebrow{font-size:12px;font-weight:850;color:var(--orange);margin-bottom:10px}.section-title{display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap;margin-bottom:20px}.section-title h2{font-size:22px;margin:0;color:var(--navy)}.section-title p{margin:7px 0 0}.dashboard-hero{position:relative;min-height:230px;border-radius:22px;padding:36px 38px;margin-bottom:19px;background:linear-gradient(112deg,#183c59 0%,#0b253d 100%);color:white;overflow:hidden;display:flex;align-items:center;justify-content:space-between;gap:20px}.dashboard-hero:before{content:"";position:absolute;left:-75px;bottom:-125px;width:330px;height:330px;border:1px solid #ef7d2b55;border-radius:55px;transform:rotate(35deg)}.dashboard-hero:after{content:"";position:absolute;left:60px;bottom:-165px;width:290px;height:290px;border:1px solid #ef7d2b55;border-radius:55px;transform:rotate(35deg)}.dashboard-hero h2{font-size:clamp(25px,3vw,34px);line-height:1.3;margin:0 0 9px}.dashboard-hero p{font-size:14px;color:#dce8f0;line-height:1.85;margin:0 0 21px;max-width:630px}.dashboard-hero .actions{margin-top:0;position:relative;z-index:1}.dashboard-hero .btn.outline{border-color:#ffffff55;color:white;background:transparent}.dashboard-hero-pattern{height:130px;width:130px;border:1px solid #ffffff25;border-radius:50%;display:grid;place-items:center;color:#ef7d2b66;font-size:105px;margin-left:28px;flex-shrink:0}.stats{grid-template-columns:repeat(4,minmax(0,1fr));gap:13px;margin-bottom:20px}.stat{position:relative;min-height:124px;border:1px solid #e9edf2;border-radius:17px;box-shadow:var(--shadow);padding:22px 20px;display:flex;flex-direction:column;gap:10px}.stat .stat-caption{font-size:13px;color:#65758a;font-weight:650}.stat .stat-ico{position:absolute;top:17px;left:19px;height:35px;width:35px;background:#fff1e6;color:#de7434;font-size:19px;border-radius:12px;display:grid;place-items:center}.stat b{font-size:31px;margin:0;line-height:1.2}.project-list{display:grid;gap:12px}.project-tile{background:#fff;border:1px solid #e5ebf1;border-radius:16px;padding:18px;display:flex;align-items:center;justify-content:space-between;gap:18px;transition:border-color .15s,box-shadow .15s}.project-tile:hover{border-color:#d3dee8;box-shadow:0 7px 22px #132f4a09}.project-tile-main{display:flex;align-items:flex-start;gap:15px;flex:1;min-width:0}.project-tile-icon{flex-shrink:0;width:65px;height:65px;border-radius:14px;background:#eef3f7;color:var(--navy);display:grid;place-items:center;font-size:36px;line-height:1}.project-tile-info{min-width:0;flex:1}.project-topline{display:flex;align-items:center;gap:15px;justify-content:flex-start;flex-wrap:wrap}.project-topline h3{font-size:17px;margin:0!important;font-weight:850}.project-tile-info p{font-size:12px;margin:7px 0;line-height:1.75}.project-description{color:#536379}.project-tile-foot{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;margin-top:9px;font-size:12px;color:#52647a}.project-tile-actions{flex-shrink:0}.tag{border:0;font-size:11px;font-weight:800;padding:7px 12px}.tag.green{background:#e4f6ee}.tag.warn{background:#fff1e6;color:#a7652a}.notice{border:1px solid #dfe8f0;border-radius:12px}.notice.warn{border-color:#f3d7af}.tabs{gap:7px}.tab{border-radius:10px}.tab.active{background:var(--orange);border-color:var(--orange);color:#fff}.auth{grid-template-columns:minmax(0,1.08fr) minmax(390px,.92fr);background:#f5f7fa}.authhero{background:linear-gradient(130deg,#0a243d,#1a4464);padding:clamp(30px,6vw,85px);position:relative;overflow:hidden}.authhero:before{content:"";position:absolute;left:-120px;bottom:-110px;width:460px;height:460px;border-radius:75px;border:2px solid #e9782744;transform:rotate(42deg)}.authhero .brand-icon{width:72px;height:72px}.authhero h1{line-height:1.3;font-size:clamp(32px,4vw,55px);max-width:560px}.authhero p{font-size:16px;line-height:1.9}.authhero .notice{font-size:12px;max-width:520px}.authbox{padding:clamp(20px,5vw,65px)}.authbox>.panel{padding:clamp(21px,3vw,35px);border-radius:24px;box-shadow:0 20px 60px #112d4712}.authbox .logo-mini{font-size:22px;margin-bottom:15px}.logo-mini img{height:49px;width:49px;object-fit:cover;border-radius:12px}.authbox .tabs{margin:20px 0}.authbox .tab{flex:1}.authbox .panel form .btn{margin-top:20px;width:100%;min-height:49px}.authbox input{min-height:49px}.authbox .footerlegal{margin-top:20px}.field{font-size:13px;margin-top:15px}.grid{gap:14px}.card{padding:20px}.dashcard{border-radius:13px;padding:17px}dialog{max-width:min(760px,calc(100vw - 28px));border:1px solid #e2e8f0;border-radius:20px}dialog::backdrop{background:#0b223e99}.modalhead{padding:19px 23px}.modalhead strong{font-size:19px;color:var(--navy)}.modalbody{padding:23px}.project-detail-page{max-width:1060px;margin:auto}.project-back{margin-bottom:15px}.detail-hero{background:linear-gradient(120deg,#153955,#09263e);color:#fff;border-radius:21px;padding:27px 30px;margin-bottom:19px}.detail-hero h2{font-size:27px;margin:6px 0}.detail-hero p{margin:6px 0;color:#cbdde9}.detail-content{background:white;border:1px solid var(--line);padding:29px;border-radius:20px;box-shadow:var(--shadow)}.detail-content>h2{font-size:23px;margin:0 0 10px}.detail-content>h3{font-size:19px;color:var(--navy);margin-top:27px}.detail-content>.grid{grid-template-columns:repeat(auto-fit,minmax(230px,1fr))}.detail-content .card{box-shadow:none}.mobilehead,.bottomnav{display:none}.footerlegal{margin-top:20px}.chatwrap{grid-template-columns:280px minmax(0,1fr)}.chatrow{border-radius:12px}.messages{border:1px solid var(--line)}
@media(max-width:1050px){.shell{grid-template-columns:205px minmax(0,1fr)}.side{padding:23px 10px}.side .nav{font-size:12px;padding:12px}.content{padding:26px 23px}.stats{grid-template-columns:repeat(2,minmax(0,1fr))}.dashboard-hero-pattern{display:none}.project-tile{align-items:flex-start;flex-direction:column}.project-tile-actions{align-self:flex-end}.auth{grid-template-columns:1fr 1fr}}
@media(max-width:900px){.shell{display:block}.side{display:none}.content{padding:0 16px 105px;max-width:740px}.mobilehead{display:flex;align-items:center;justify-content:space-between;padding:15px 0 13px;border-bottom:1px solid #e3eaf0;margin-bottom:20px}.mobilehead .brand{color:var(--navy);font-size:24px}.mobilehead .brand-icon{height:42px;width:42px;border-radius:10px}.mobilehead-btn{border:1px solid #dfe8f1;background:#fff;border-radius:11px;width:42px;height:42px;color:var(--navy);font-size:24px}.top{margin:0 0 17px}.topactions{display:flex;gap:5px}.topactions .chip{display:none}.topactions .btn{min-height:37px;padding:7px 10px;font-size:11px}.heading{font-size:23px}.sub{font-size:12px}.dashboard-hero{min-height:0;padding:25px 23px;border-radius:18px;margin-bottom:15px}.dashboard-hero h2{font-size:26px}.dashboard-hero p{font-size:12px;line-height:1.7}.dashboard-hero .actions{gap:6px}.dashboard-hero .btn{font-size:12px;min-height:42px;padding:10px 13px}.stats{gap:9px;margin-bottom:15px}.stat{min-height:104px;padding:14px}.stat .stat-ico{top:13px;left:13px;width:29px;height:29px;font-size:16px}.stat .stat-caption{font-size:11px;max-width:125px}.stat b{font-size:26px}.panel{padding:16px;border-radius:17px}.section-title h2{font-size:19px}.project-tile{gap:10px;padding:14px}.project-tile-icon{height:49px;width:49px;border-radius:12px;font-size:28px}.project-topline h3{font-size:15px}.project-tile-info p{font-size:11px}.project-tile-foot{font-size:11px}.project-tile-actions{align-self:stretch;display:flex;justify-content:flex-end}.project-tile-actions .btn{font-size:11px;min-height:37px}.bottomnav{position:fixed;bottom:0;left:0;right:0;display:flex;align-items:stretch;justify-content:space-around;background:#fff;border-top:1px solid #e0e7ef;padding:9px max(8px,env(safe-area-inset-right)) calc(8px + env(safe-area-inset-bottom));z-index:20;box-shadow:0 -8px 26px #102d4708}.bottom-nav-button{background:none;border:0;color:#728097;display:flex;flex-direction:column;align-items:center;gap:3px;min-height:54px;min-width:57px;flex:1;font-size:10px;font-weight:700;padding:2px 1px}.bottom-nav-icon{font-size:22px;line-height:1.3}.bottom-nav-button.active{color:#dd7227}.bottom-nav-button.active .bottom-nav-icon{color:#dd7227}.detail-hero{padding:21px;border-radius:16px}.detail-hero h2{font-size:23px}.detail-content{padding:17px;border-radius:16px}.detail-content h2{font-size:19px}.detail-content h3{font-size:17px}.auth{display:flex;flex-direction:column;min-height:100vh}.authhero{padding:26px 20px 20px;min-height:210px;flex:none}.authhero .brand-icon{height:51px;width:51px}.authhero h1{font-size:28px}.authhero p{display:none}.authhero .notice{font-size:11px;margin-top:7px}.authbox{padding:14px 15px 35px;align-items:flex-start}.authbox>.panel{padding:21px 17px;width:100%;max-width:650px;margin:0 auto}.authbox .tab{font-size:11px;padding:10px 7px}dialog{max-height:calc(100dvh - 24px);width:calc(100% - 22px);margin:auto}.modalbody{padding:18px 15px}.modalhead{padding:15px}.footerlegal{padding-bottom:10px}.chatwrap{grid-template-columns:1fr}.chatlist{max-height:180px}}
@media(max-width:390px){.content{padding-left:11px;padding-right:11px}.dashboard-hero{padding:22px 17px}.dashboard-hero .btn{font-size:11px}.stat .stat-caption{font-size:10px}.bottom-nav-button{min-width:0}.bottom-nav-icon{font-size:20px}.project-tile-main{gap:10px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;animation:none!important;transition:none!important}}

/* Dedicated project detail tabs */
.detail-hero{position:relative}.detail-hero .eyebrow{color:#ffaf76}.detail-hero-status{position:absolute;left:28px;top:30px;background:#ffffff20;border:1px solid #ffffff35;color:white;padding:6px 13px;font-size:12px;border-radius:50px}.detail-content{padding:0}.project-tabs{display:flex;align-items:stretch;overflow-x:auto;gap:4px;border-bottom:1px solid #e4eaf0;padding:8px 18px 0}.project-tab{flex-shrink:0;color:#6f7e90;background:transparent;border:0;border-bottom:3px solid transparent;padding:18px 18px 15px;font-size:13px;font-weight:750;white-space:nowrap}.project-tab.active{color:#df742c;border-bottom-color:#ef7d2b}.project-tab:hover{background:#f8fafc}.project-pane{padding:24px 29px}.project-pane[hidden]{display:none!important}.detail-summary-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-bottom:22px}.detail-summary-item{border:1px solid #e5ebf0;background:#f8fafc;border-radius:13px;padding:16px 18px;display:flex;flex-direction:column;gap:8px}.detail-summary-item span{font-size:12px;color:#748397}.detail-summary-item strong{font-size:15px;color:#18354e}.detail-section{margin-bottom:20px}.detail-section h3{color:var(--navy);font-size:18px;margin:0 0 15px}.detail-section p{line-height:1.9}.project-file-list{display:grid;gap:9px}.project-file-list .filelink{cursor:pointer;max-width:100%;overflow-wrap:anywhere;text-align:right}.detail-section .section-title{margin-bottom:14px}
@media(max-width:900px){.detail-hero-status{top:19px;left:17px;font-size:10px}.project-tabs{padding:0 7px;gap:0}.project-tab{font-size:11px;padding:14px 12px}.project-pane{padding:19px 15px}.detail-summary-grid{gap:8px}.detail-summary-item{padding:12px;border-radius:10px}.detail-summary-item span{font-size:10px}.detail-summary-item strong{font-size:12px}.detail-section h3{font-size:16px}}
