/* PONTOSPOOL shared workspace system — shadcn-inspired control hierarchy. */
.portal-layout{--control-height:40px;--line:#e0e6ed;--radius:8px;--bg:#f6f7f9;--muted:#637185;background:var(--bg);min-height:100vh;}
.portal-layout .main{padding-top:0!important;margin-left:224px;}
.portal-layout .sidebar{top:0!important;width:224px;padding:28px 16px 16px;overflow-y:auto;background:#fff;}
.portal-layout .sidebar .brand{margin:0 0 24px;padding:0 8px;}
.portal-layout .workspace{display:block;margin:0 0 20px;padding:12px;background:#f7f8fa;border:0;border-radius:6px;}
.portal-layout .workspace strong{overflow-wrap:anywhere;}
.portal-layout .sidebar nav{display:block;}
.portal-layout .navitem{display:flex;justify-content:flex-start;min-height:44px;font-size:14px;border-radius:6px;padding:10px 12px;margin:3px 0;}
.portal-layout .navitem>span{display:inline;}
.portal-layout .navitem.active{background:#edf3ff;color:#1d50bb;}
.portal-layout .sidebar-foot{padding-top:16px;margin-top:auto;}
.portal-account{display:flex;flex-direction:column;gap:5px;min-width:0;padding:12px 8px 0;font-size:12px;}
.portal-account strong,.account-email{overflow-wrap:anywhere;}.account-email{color:var(--muted);font-size:11px;}
.portal-account button{align-self:flex-start;margin-top:8px;}
.portal-layout .content{max-width:1400px;padding:32px 32px 64px;margin:auto;}
.portal-mobile-header{display:none;}
.portal-layout button:not(.pool-tap-targets button):not(.tabs button):not(.touch-element-tabs button),#modal-root button:not(.pool-tap-targets button):not(.touch-element-tabs button){min-height:40px;padding:9px 14px;border-radius:6px;font-size:13px;font-weight:600;line-height:20px;box-shadow:none;white-space:normal;}
.portal-layout button.primary,#modal-root button.primary{background:#245bd6;border-color:#245bd6;color:#fff;box-shadow:none;}
.portal-layout button.ghost{border-color:transparent;background:transparent;}
.portal-layout button:hover,#modal-root button:hover{filter:brightness(.98);}
.portal-layout :is(button,a,summary,input,select,textarea):focus-visible,#modal-root :is(button,a,summary):focus-visible{outline:2px solid #245bd6;outline-offset:3px;}
.portal-layout :is(input:not([type=checkbox]):not([type=radio]):not([type=file]),select){min-height:40px;font-size:14px;border-radius:6px;}
.portal-layout .pagehead{margin-bottom:24px;gap:20px;}
.portal-layout .pagehead h1{font-size:28px;letter-spacing:-.6px;}
.portal-layout .card{border-color:var(--line);border-radius:8px;box-shadow:none;}
.portal-layout .pad{padding:24px;}
.portal-layout .hero{min-height:160px;padding:24px;border-radius:8px;}
.portal-layout .hero h2{font-size:24px;}
.portal-layout .badge{border-radius:5px;font-size:11px;}
.project-workspace-view{max-width:1200px;}
.project-identity{padding:0 0 18px;}
.project-back{display:inline-flex;align-items:center;min-height:32px;font-size:13px;color:var(--muted);margin-bottom:14px;}
.project-title-row{display:flex;justify-content:space-between;align-items:center;gap:20px;}
.project-title-row h1{font-size:30px;line-height:1.2;letter-spacing:-.7px;margin:0 0 10px;font-weight:650;}
.project-meta{display:flex;align-items:center;flex-wrap:wrap;gap:10px;font-size:13px;color:var(--muted);}
.project-reference{padding-left:10px;border-left:1px solid #cbd5e1;font-size:12px;font-variant-numeric:tabular-nums;}
.project-primary-actions{display:flex;flex-wrap:wrap;gap:8px;align-items:center;}
.project-identity .project-progress{margin:22px 0 0!important;padding:12px 0 0!important;border-top:1px solid var(--line)!important;}
.project-identity .project-progress-heading{font-size:11px;margin-bottom:6px;}
.project-identity .project-progress-heading strong{font-weight:500;color:var(--muted);}
.project-progress .progress-label{background:var(--bg);}
.project-workspace-view .project-tabs{gap:24px!important;}
.project-workspace-view .project-tabs a{font-size:13px!important;min-height:44px;padding:12px 0!important;}
.project-tab-content{padding-top:20px;}
.project-tab-content>.project-hint-banner:first-child{margin-top:0;}
.project-hint-banner{border-radius:6px;padding:10px 12px;}
.project-hint-copy summary{font-size:13px;}
.project-hint-tag{font-size:10px;}
.project-tab-content .offer-register-head{padding:18px 20px;}
.project-tab-content .offer-register-head h2{font-size:18px;}
.project-tab-content .offer-register-head p{font-size:13px;}
.order-context-note{font-size:13px;border-left:2px solid #b7c7db;padding:8px 12px;margin:16px 0;color:var(--muted);}
.portal-layout .empty{padding:28px 20px;}
@media(max-width:1050px){.portal-layout .sidebar{width:200px;}.portal-layout .main{margin-left:200px;}.portal-layout .content{padding:24px;}.project-title-row{align-items:flex-start;}.project-primary-actions{max-width:240px;justify-content:flex-end;}}
@media(max-width:760px){
 .portal-layout .sidebar{display:none!important;}.portal-layout .main{margin-left:0!important;}.portal-layout .content{padding:20px 16px 48px;}
 .portal-mobile-header{display:flex;align-items:center;justify-content:space-between;padding:10px 16px;background:#fff;border-bottom:1px solid var(--line);min-height:60px;gap:12px;}
 .portal-mobile-header .brand{font-size:18px;padding:0;max-width:170px;}.portal-mobile-header .brand img{max-width:150px!important;max-height:40px;object-fit:contain;}
 .portal-mobile-menu>summary{list-style:none;cursor:pointer;min-height:44px;display:flex;gap:12px;align-items:center;font-size:13px;padding:8px 12px;border:1px solid var(--line);border-radius:6px;}.portal-mobile-menu>summary::-webkit-details-marker{display:none;}
 .portal-mobile-panel{position:absolute;left:12px;right:12px;top:64px;background:white;border:1px solid var(--line);border-radius:8px;padding:12px;z-index:50;box-shadow:0 12px 30px #142e511a;max-height:calc(100dvh - 80px);overflow:auto;}
 .portal-mobile-panel .portal-account{border-top:1px solid var(--line);margin-top:12px;}
 .project-title-row{flex-direction:column;gap:16px;}.project-title-row h1{font-size:26px;}.project-primary-actions{max-width:none;justify-content:flex-start;}.project-meta{gap:8px;font-size:12px;}.project-back{margin-bottom:10px;}.project-identity{padding-bottom:8px;}
 .project-tab-content{padding-top:16px;}.portal-layout .pagehead{flex-wrap:wrap;}.portal-layout .pad{padding:18px;}
 .portal-layout button:not(.pool-tap-targets button):not(.tabs button):not(.touch-element-tabs button),#modal-root button:not(.pool-tap-targets button):not(.touch-element-tabs button){min-height:44px;}
}
@media(prefers-reduced-motion:reduce){.portal-layout *{scroll-behavior:auto!important;}}
