/* OPUS B2C/B2B account overview. Shared stages, role-specific commercial rules. */
#account .opus-portal-notice{display:flex;gap:12px;align-items:flex-start;margin:-4px 0 19px;padding:14px 17px;border:1px solid #c9e3d8;background:#edf7f2;color:#214a3d}
#account .opus-portal-light{flex:none;width:8px;height:8px;background:#169878;border-radius:50%;margin-top:6px;box-shadow:0 0 0 4px #c9f5e7}
#account .opus-portal-notice div{display:grid;gap:3px}
#account .opus-portal-notice strong{font-size:12px;font-weight:800}
#account .opus-portal-notice div span{font-size:11px;line-height:1.55;color:#5c8071}
#account .opus-role-select{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px;margin-bottom:20px}
#account .opus-role-select button{font:inherit;min-width:0;display:flex;gap:13px;align-items:center;text-align:left;cursor:pointer;padding:16px 18px;border:1px solid #d0dfd7;background:#fff;color:#203c33;transition:background .15s,border-color .15s}
#account .opus-role-select button:hover{border-color:#8bbaa9;background:#f6fbf7}
#account .opus-role-select button.is-selected{border-color:#236b5d;background:#e7f7ee;box-shadow:inset 0 0 0 1px #236b5d}
#account .opus-role-select button:focus-visible{outline:3px solid #58d1b3;outline-offset:2px}
#account .opus-role-icon{flex:none;display:grid;place-items:center;width:38px;height:38px;background:#162f30;color:#a7f0df;font:700 11px "DM Mono",monospace}
#account .opus-role-select button>span:nth-child(2){display:grid;flex:1;gap:2px}
#account .opus-role-select strong{font-size:14px;font-weight:800}
#account .opus-role-select small{font-size:10px;color:#678377}
#account .opus-role-select button>span:last-child{font-size:19px;color:#328a74}
#account .opus-portal-panel-top{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;margin-bottom:21px}
#account .opus-portal-panel-top small,#account .opus-overline{display:block;color:#308c76;font:600 10px/1.4 "DM Mono",monospace;letter-spacing:.06em}
#account .opus-portal-panel-top h3{font-size:clamp(22px,2.4vw,31px);letter-spacing:-.045em;line-height:1.18;margin:8px 0}
#account .opus-portal-panel-top p{font-size:12px;line-height:1.7;color:#739184;max-width:550px;margin:0}
#account .opus-portal-new{flex:none;display:inline-flex;padding:12px 14px;background:#1a4942;color:#b8f9e7;text-decoration:none;font-size:11px;font-weight:800}
#account .opus-portal-new:hover{background:#246658}
#account .opus-portal-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-bottom:17px}
#account .opus-portal-metrics article{background:#f2f8f4;border:1px solid #e0ebe3;padding:17px 16px;min-width:0}
#account .opus-portal-metrics span{display:block;font:700 11px/1.35 "Manrope",sans-serif;color:#648275}
#account .opus-portal-metrics strong{display:block;font-size:clamp(24px,3vw,36px);letter-spacing:-.055em;color:#173c33;margin:6px 0}
#account .opus-portal-metrics small{font-size:10px;line-height:1.5;color:#719587}
#account .opus-tracking-card{border:1px solid #d1e3d7;padding:21px;background:#fff;margin-bottom:18px}
#account .opus-tracking-title{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
#account .opus-tracking-title h4,#account .opus-dealer-heading h4{font-size:20px;letter-spacing:-.045em;margin:5px 0 0;line-height:1.28}
#account .opus-demo-flag{flex:none;color:#718d7d;font:600 9px/1.5 "DM Mono",monospace;background:#edf5ee;border:1px solid #d4e6d9;padding:7px 9px}
#account .opus-track-list{display:grid;grid-template-columns:repeat(9,minmax(0,1fr));gap:4px;margin:24px 0 15px}
#account .opus-track-item{min-width:0;position:relative;display:flex;align-items:flex-start;flex-direction:column;gap:10px}
#account .opus-track-item:not(:last-child):before{content:"";position:absolute;left:20px;right:-4px;height:2px;top:17px;background:#d6e6dd}
#account .opus-track-item.is-done:not(:last-child):before{background:#258b72}
#account .opus-track-dot{position:relative;z-index:1;display:grid;place-items:center;width:35px;height:35px;border-radius:50%;border:1px solid #cbded4;background:#f4f8f6;color:#7b998a;font:700 11px "DM Mono",monospace}
#account .opus-track-item.is-done .opus-track-dot{background:#1c7260;color:white;border-color:#1c7260}
#account .opus-track-item.is-current .opus-track-dot{background:#9bebd3;color:#14463c;border-color:#49b596;box-shadow:0 0 0 3px #d8f7ea}
#account .opus-track-item>span:last-child{font-size:9px;line-height:1.35;color:#6e897b;max-width:95px;overflow-wrap:anywhere}
#account .opus-track-item.is-current>span:last-child{color:#204b3e;font-weight:800}
#account .opus-track-demo-controls{display:grid;grid-template-columns:minmax(0,1fr) minmax(190px,240px);gap:8px 15px;align-items:center;border-top:1px solid #e1eee6;padding-top:15px}
#account .opus-track-demo-controls label{font-size:11px;font-weight:800;color:#507164}
#account .opus-track-demo-controls select{width:100%;height:41px;padding:8px;border:1px solid #accabb;background:#f9fdfa;color:#234b3f;font-size:12px}
#account .opus-track-demo-controls p{grid-column:1/-1;font-size:11px;line-height:1.6;color:#6e8c7c;margin:1px 0 0}
#account .opus-dealer-card{padding:22px;border:1px solid #1b5d50;background:#122b2d;color:#e0f9ef;margin-bottom:18px}
#account .opus-dealer-heading{display:flex;justify-content:space-between;gap:18px}
#account .opus-dealer-card .opus-overline{color:#8dd6bb}
#account .opus-dealer-heading h4{color:#e5fff1}
#account .opus-dealer-heading p{font-size:11px;color:#aac6b8;line-height:1.65;max-width:480px;margin:8px 0 0}
#account .opus-dealer-heading>strong{flex:none;font-size:clamp(36px,5vw,62px);letter-spacing:-.07em;color:#adf8de;line-height:1}
#account .opus-dealer-controls{margin:23px 0 18px;display:grid;gap:7px;max-width:430px}
#account .opus-dealer-controls label{font-size:11px;color:#c0ddd2;font-weight:700}
#account .opus-dealer-controls label small{display:block;font:9px "DM Mono",monospace;margin-top:5px;color:#88ac9f}
#account .opus-dealer-controls input{width:100%;height:44px;border:1px solid #537b70;background:#173e3b;color:#e3fff1;padding:9px 13px;font:700 20px "Manrope",sans-serif;box-sizing:border-box}
#account .opus-tier-line{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}
#account .opus-tier{border:1px solid #44695f;padding:10px 9px;min-width:0;display:grid;gap:5px;color:#a8c7b8}
#account .opus-tier.is-active{border-color:#9debcf;background:#21544a;color:#f4fff8}
#account .opus-tier b{font-size:18px;color:#adefd6}
#account .opus-tier span{font:10px/1.3 "DM Mono",monospace}
#account .opus-tier-progress{margin:12px 0;height:5px;background:#3a6057}
#account .opus-tier-progress>div{height:100%;background:#a8f3d3;transition:width .2s ease}
#account .opus-dealer-next{color:#b1f5dd;font-size:12px;font-weight:800;margin:9px 0}
#account .opus-dealer-policy{font-size:10px;color:#96b9ad;line-height:1.7;margin:10px 0 0;max-width:850px}
#account .opus-portal-bottom{display:flex;justify-content:space-between;align-items:center;gap:20px;border:1px solid #d2e5d8;background:#eff7f1;padding:16px 18px}
#account .opus-portal-bottom div{display:grid;gap:4px}
#account .opus-portal-bottom strong{font-size:12px}
#account .opus-portal-bottom span{font-size:10px;color:#6e8a7b;line-height:1.6}
#account .opus-portal-bottom a{flex:none;font-size:11px;font-weight:800;color:#136854;text-decoration:underline;text-underline-offset:4px}
#account [hidden]{display:none!important}
@media(max-width:1050px){
 #account .opus-track-list{grid-template-columns:repeat(5,minmax(0,1fr));row-gap:16px}
 #account .opus-track-item:nth-child(5):before{display:none}
}
@media(max-width:650px){
 #account .opus-role-select{gap:7px}
 #account .opus-role-select button{padding:11px 9px;gap:8px}
 #account .opus-role-icon{height:30px;width:30px;font-size:9px}
 #account .opus-role-select strong{font-size:11px}
 #account .opus-role-select small{font-size:9px}
 #account .opus-role-select button>span:last-child{display:none}
 #account .opus-portal-panel-top{flex-direction:column}
 #account .opus-portal-new{width:100%;justify-content:center;box-sizing:border-box}
 #account .opus-portal-metrics{gap:5px}
 #account .opus-portal-metrics article{padding:11px 8px}
 #account .opus-portal-metrics span{font-size:9px}
 #account .opus-portal-metrics small{font-size:8px;line-height:1.4}
 #account .opus-portal-metrics strong{font-size:25px}
 #account .opus-tracking-card{padding:15px 11px}
 #account .opus-tracking-title{flex-wrap:wrap}
 #account .opus-demo-flag{font-size:8px}
 #account .opus-track-list{grid-template-columns:repeat(3,minmax(0,1fr));row-gap:16px}
 #account .opus-track-item:nth-child(3n):before{display:none}
 #account .opus-track-item:nth-child(5):before{display:block}
 #account .opus-track-item:not(:last-child):before{left:18px;top:15px}
 #account .opus-track-dot{height:31px;width:31px}
 #account .opus-track-demo-controls{grid-template-columns:1fr}
 #account .opus-track-demo-controls p{grid-column:1}
 #account .opus-dealer-card{padding:17px 12px}
 #account .opus-dealer-heading>strong{font-size:38px}
 #account .opus-tier-line{gap:4px}
 #account .opus-tier{padding:8px 4px}
 #account .opus-tier b{font-size:17px}
 #account .opus-tier span{font-size:8px}
 #account .opus-portal-bottom{flex-direction:column;align-items:stretch}
 #account .opus-portal-bottom a{align-self:flex-start}
}


/* Allow the account's horizontal tab strip to scroll inside a narrow viewport. */
#account .account-shell{grid-template-columns:270px minmax(0,1fr);min-width:0}
#account .account-side,#account .account-main,#account .account-side nav{min-width:0;max-width:100%}
#account .kp-card,#account .saved-row{overflow-wrap:anywhere}
@media(max-width:900px){#account .account-shell{grid-template-columns:215px minmax(0,1fr)}}
@media(max-width:650px){#account .account-shell{grid-template-columns:minmax(0,1fr)}#account .account-side nav{overflow-x:auto}}

/* Live client cabinet */
#account [hidden]{display:none!important}#account .client-auth{max-width:520px;margin:24px auto;padding:28px;background:white;border:1px solid #c9dfd4;border-radius:8px;color:#20483c}#account .client-auth-tabs{display:flex;gap:12px;margin-bottom:18px}#account .client-auth form,#account .client-form{display:grid;gap:16px}#account .client-auth label,#account .client-form label{display:grid;gap:7px;font-size:13px}#account input,#account select{width:100%;min-width:0;padding:12px;background:#fff;color:#214337;border:1px solid #b7d4c6;border-radius:4px;font:inherit}#account .client-auth button,#account .client-form button,#account .client-note button,#account #client-refresh,#account #client-import-local,#account .client-estimate-actions button{font:inherit;padding:11px 16px;cursor:pointer;border:1px solid #2f7861;background:#edf7f1;color:#174d3a;border-radius:4px}#account .client-auth button[aria-pressed=true],#account button[type=submit]{background:#146e52;color:white}#account button:disabled{opacity:.5;cursor:wait}#account .client-check{display:flex!important;align-items:start}#account .client-check input{width:18px;flex-shrink:0}#account .client-password{display:flex;gap:7px}#account .client-muted{font-size:12px;color:#617a70}#account .client-note{padding:20px;background:#edf6f1;border:1px solid #c9dfd4;margin:20px 0}#account .client-form{max-width:640px;margin:20px 0}#account .client-local-drafts{margin-top:35px}#account summary{cursor:pointer;font-weight:700;padding:15px 0}#account .client-estimate{padding:20px;background:#fff;border:1px solid #c9dfd4;border-radius:6px;margin:15px 0;overflow-wrap:anywhere}#account .client-estimate h4{margin:0 0 8px}#account .client-estimate-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:15px}#account #client-feedback{min-height:24px;color:#255e46}#account #client-feedback.error{color:#ad3434}#account #client-logout{margin-top:25px;padding:10px;cursor:pointer}#account .client-auth p{margin:14px 0;font-size:13px}#account .client-auth a{color:#176850}#account .client-estimate ul{padding-left:20px}#account .opus-portal-metrics strong{font-size:26px}@media(max-width:600px){#account .client-auth{padding:20px}#account .client-password{flex-wrap:wrap}#account .client-password input{flex:1 1 160px}}
#account .client-check[hidden]{display:none!important}

.client-order-flow{margin-top:16px;padding:16px;border-top:1px solid #d5e2dc}.client-order-flow label{display:flex;gap:10px;align-items:flex-start;margin-bottom:12px}.client-order-flow input[type=checkbox]{width:auto;flex:none;margin-top:5px}.client-order-flow ol{padding-left:22px}.client-order-flow li{margin:8px 0}.client-order-flow button{margin:6px 0}
