/* Customer workspace only; shared website header remains independent. */
.customer-portal .cp-shell{display:grid;grid-template-columns:230px minmax(0,1fr);gap:24px;max-width:1440px;margin:26px auto;padding:0 24px;align-items:start}
.customer-portal .cp-shell>.customer-main{width:100%;max-width:none;min-width:0;margin:0;padding:0}
.cp-sidebar{position:sticky;top:110px;padding:18px 12px;border:1px solid var(--line);border-radius:22px;background:var(--surface);box-shadow:var(--shadow);backdrop-filter:blur(16px);min-width:0}
.cp-identity{display:flex;gap:10px;align-items:center;padding:4px 5px 20px;border-bottom:1px solid var(--line)}.cp-identity>span:last-child{min-width:0}.cp-identity strong{display:block;font-size:13px;overflow-wrap:anywhere}.cp-identity small{display:block;font-size:11px;color:var(--muted)}.cp-avatar{display:grid;place-items:center;flex:0 0 44px;width:44px;height:44px;border-radius:14px;background:var(--accent);color:var(--primary);font-weight:700;border:1px solid color-mix(in srgb,var(--primary) 20%,transparent);overflow:hidden}.cp-avatar img{width:100%;height:100%;object-fit:cover}
.cp-menu{display:grid;gap:6px;padding:18px 0}.cp-menu a,.cp-sidebar-footer>a,.cp-sidebar-footer form button{display:flex;align-items:center;gap:10px;min-height:46px;width:100%;padding:11px 13px;border:1px solid transparent;border-radius:12px;font-size:13px;background:transparent;color:var(--text);text-align:start}.cp-menu svg,.cp-sidebar-footer svg,.cp-more svg{width:20px;height:20px;flex:none}.cp-menu a.is-active{background:var(--accent);color:var(--primary);border-color:color-mix(in srgb,var(--primary) 15%,transparent);font-weight:600}.cp-menu a:hover,.cp-sidebar-footer>a:hover,.cp-sidebar-footer form button:hover{background:var(--accent);color:var(--primary)}.cp-sidebar-footer{border-top:1px solid var(--line);padding-top:12px}.cp-sidebar-footer form{margin:0}.cp-sidebar-footer>small{display:block;padding:14px 12px 0;font-size:10px;color:var(--muted)}.cp-sidebar-footer>small a{color:var(--primary)}
.cp-bottom{display:none}.cp-more{width:min(420px,calc(100vw - 28px));max-height:80dvh;margin:auto;padding:18px;border:1px solid var(--line);border-radius:22px;background:var(--surface);color:var(--text);box-shadow:0 16px 70px #0003;backdrop-filter:blur(20px)}.cp-more::backdrop{background:#12213f55;backdrop-filter:blur(4px)}.cp-more-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}.cp-more-heading h2{font-size:17px;margin:0}.cp-more-heading button{border:0;background:var(--accent);color:var(--text);border-radius:12px;min-width:44px;height:44px;font-size:25px}.cp-more>a,.cp-more form button{display:flex;align-items:center;gap:12px;width:100%;min-height:48px;border:0;border-radius:12px;background:transparent;color:var(--text);padding:12px;font-size:14px}.cp-more>a:hover,.cp-more form button:hover{background:var(--accent);color:var(--primary)}.cp-more form{margin:0}.cp-more:not([open]){display:none}
.cp-stat-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:18px 0}.cp-stat{padding:18px;border:1px solid var(--line);border-radius:18px;background:var(--surface);display:flex;align-items:center;gap:12px}.cp-stat>span{display:grid;place-items:center;width:42px;height:42px;flex:none;border-radius:13px;background:color-mix(in srgb,var(--cp-color,var(--primary)) 10%,transparent);color:var(--cp-color,var(--primary))}.cp-stat svg{width:21px;height:21px}.cp-stat strong{display:block;font-size:22px}.cp-stat small{font-size:12px;color:var(--muted)}.cp-recent{padding:20px;border-radius:20px;border:1px solid var(--line);background:var(--surface);margin:18px 0}.cp-recent-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.cp-recent h2{font-size:17px;margin:0}.cp-recent-heading a{font-size:12px;color:var(--primary)}.cp-order-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:center;padding:15px 0;border-bottom:1px solid var(--line)}.cp-order-row:last-child{border:0}.cp-order-row strong,.cp-order-row small{display:block;overflow-wrap:anywhere}.cp-order-row strong{font-size:13px}.cp-order-row small{font-size:12px;color:var(--muted)}.cp-payments{display:grid;gap:12px}.cp-payment{padding:18px;border:1px solid var(--line);border-radius:16px;background:var(--surface);display:flex;align-items:center;gap:14px;flex-wrap:wrap}.cp-payment>div{flex:1;min-width:0}.cp-payment strong,.cp-payment small{display:block;overflow-wrap:anywhere}.cp-payment small{font-size:12px;color:var(--muted)}.cp-payment .btn{min-height:44px;font-size:12px}.cp-payment .ow-badge{font-size:12px}
@media(max-width:1000px){.customer-portal .cp-shell{grid-template-columns:200px minmax(0,1fr);gap:16px;padding:0 18px}.cp-stat-grid{gap:10px}.cp-stat{padding:13px;gap:8px}.cp-stat>span{width:34px;height:34px}}
@media(max-width:760px){.customer-portal .cp-shell{display:block;margin:18px 0 0;padding:0 14px}.cp-sidebar{display:none}.customer-portal:has(.cp-bottom){padding-bottom:calc(92px + env(safe-area-inset-bottom,0px))}.cp-bottom{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));position:fixed;bottom:calc(10px + env(safe-area-inset-bottom,0px));left:10px;right:10px;z-index:80;gap:3px;padding:6px;border:1px solid var(--line);border-radius:23px;background:var(--surface);box-shadow:0 6px 30px #142c5520;backdrop-filter:blur(20px)}.cp-bottom a,.cp-bottom button{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:4px;min-width:0;min-height:59px;padding:7px 2px;border:1px solid transparent;border-radius:17px;color:var(--muted);background:transparent;font-size:10px;font-weight:600;line-height:1.4}.cp-bottom svg{width:22px;height:22px;flex:none}.cp-bottom .is-active,.cp-bottom button[aria-expanded=true]{background:var(--accent);color:var(--primary)}.cp-bottom a:hover,.cp-bottom button:hover{color:var(--primary)}.cp-bottom a:focus-visible,.cp-bottom button:focus-visible{outline:2px solid var(--primary);outline-offset:0}.cp-bottom.is-keyboard{display:none}.cp-more{margin:auto auto calc(90px + env(safe-area-inset-bottom,0px));max-height:65dvh;overflow:auto}.cp-stat-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.cp-stat{flex-direction:column;align-items:flex-start;padding:12px;gap:7px}.cp-stat strong{font-size:20px}.cp-stat small{font-size:11px}.cp-recent{padding:16px}.cp-payment{padding:15px;gap:10px}.cp-payment>div{flex-basis:100%}.cp-payment>.btn{width:100%;justify-content:center}.cp-order-row{grid-template-columns:minmax(0,1fr)}.cp-order-row .order-status{justify-self:start}.customer-portal .tob-live-indicator{bottom:calc(94px + env(safe-area-inset-bottom,0px))}}

@media(max-width:760px){.customer-portal .tob-live-apply{bottom:calc(126px + env(safe-area-inset-bottom,0px))}}

/* Keep privacy controls accessible without covering customer navigation. */
.customer-portal:has(.cp-shell) .tob-cookie-manage{display:none!important}
.cp-sidebar-footer>.cp-sidebar-privacy{display:flex;align-items:center;gap:10px;width:100%;min-height:46px;padding:11px 13px;border:1px solid transparent;border-radius:12px;background:transparent;color:var(--text);font-size:13px;text-align:start}
.cp-sidebar-privacy:hover{background:var(--accent);color:var(--primary)}
.cp-more .cp-more-heading{align-items:flex-start;margin:4px 0 18px;gap:12px}
.cp-more-heading p{font-size:12px;margin:5px 0 0;color:var(--muted)}
.cp-more-heading>button{display:grid;place-items:center;flex:0 0 44px;padding:10px}
.cp-more-heading>button svg{width:20px;height:20px}
.cp-sheet-handle{display:none}
.cp-more-options{display:grid;gap:9px}
.cp-more .cp-more-row{display:flex;align-items:center;gap:12px;width:100%;padding:12px;border:1px solid var(--line);border-radius:16px;background:color-mix(in srgb,var(--cp-option,var(--primary)) 3%,var(--surface));color:var(--text);text-align:start;min-height:74px;text-decoration:none}
.cp-option-icon{display:grid;place-items:center;align-self:stretch;flex:0 0 44px;min-height:44px;border-radius:13px;background:color-mix(in srgb,var(--cp-option,var(--primary)) 11%,transparent);color:var(--cp-option,var(--primary))}
.cp-option-icon svg{width:21px;height:21px}
.cp-option-copy{flex:1;min-width:0}
.cp-option-copy strong{display:block;font-size:13px;font-weight:650;line-height:1.5}
.cp-option-copy small{display:block;font-size:11px;line-height:1.5;margin-top:3px;color:var(--muted);overflow-wrap:anywhere}
.cp-option-arrow{color:var(--muted);flex:none}.cp-option-arrow svg{width:15px;height:15px}
.cp-more .cp-more-row:hover{border-color:color-mix(in srgb,var(--cp-option,var(--primary)) 40%,var(--line));background:color-mix(in srgb,var(--cp-option,var(--primary)) 7%,var(--surface))}
.cp-more .cp-more-signout{border-top:1px solid var(--line);padding-top:14px;margin-top:16px}
.cp-more .cp-more-signout .cp-more-row strong{color:#c34862}
.cp-more .cp-more-row:focus-visible,.cp-sidebar-privacy:focus-visible{outline:2px solid var(--primary);outline-offset:2px}
@media(max-width:760px){
.cp-more{width:calc(100vw - 20px);max-width:460px;padding:12px 16px 18px;max-height:calc(100dvh - 120px);border-radius:25px;animation:cp-sheet-in .18s ease-out}
.cp-sheet-handle{display:block;width:36px;height:4px;border-radius:4px;background:color-mix(in srgb,var(--muted) 35%,transparent);margin:0 auto 16px}
.customer-portal:has(.cp-shell) .tob-cookie-banner{bottom:calc(94px + env(safe-area-inset-bottom,0px));max-height:calc(100dvh - 125px);overflow:auto}
}
@keyframes cp-sheet-in{from{opacity:0;transform:translateY(16px)}to{opacity:1;transform:translateY(0)}}
@media(prefers-reduced-motion:reduce){.cp-more{animation:none}}

/* Profile fields match the compact Contact form dimensions. */
.customer-portal .cp-profile-page .form-panel{padding:24px;width:100%;max-width:none}
.customer-portal .cp-profile-page .form-grid{gap:0 20px}
.customer-portal .cp-profile-page label{font-size:13px;font-weight:600;line-height:1.6;margin-bottom:16px}
.customer-portal .cp-profile-page input:not([type=file]):not([type=checkbox]):not([type=hidden]),.customer-portal .cp-profile-page select{box-sizing:border-box;height:46px;min-height:46px;max-width:100%;margin-top:7px;padding:10px 12px;font-size:16px;font-weight:400;line-height:1.5;border-radius:12px}
.customer-portal .cp-profile-page textarea{box-sizing:border-box;min-height:96px;margin-top:7px;padding:10px 12px;font-size:16px;font-weight:400;line-height:1.6;border-radius:12px}
.customer-portal .cp-profile-page input::placeholder,.customer-portal .cp-profile-page textarea::placeholder{font-size:14px;font-weight:400;color:var(--muted);opacity:.85}
.customer-portal .cp-profile-page .customer-section-title{margin-bottom:18px;gap:12px}
.customer-portal .cp-profile-page .customer-section-title h2{font-size:17px}
.customer-portal .cp-profile-page .btn{min-height:44px;font-size:13px;padding:10px 15px}
.customer-portal .cp-profile-page .customer-password-panel{margin-top:18px}
@media(max-width:600px){.customer-portal .cp-profile-page .form-panel{padding:17px}.customer-portal .cp-profile-page .form-grid{grid-template-columns:minmax(0,1fr)}.customer-portal .cp-profile-page .form-panel>button.btn,.customer-portal .cp-profile-page .customer-password-panel form>button.btn{width:100%}}

/* Workspace breathing room and consistent dashboard rhythm. */
.customer-portal .cp-shell{margin-top:40px;column-gap:24px}
.customer-portal .cp-menu{margin:0;padding:16px 0;gap:6px}
.customer-portal .cp-sidebar{top:128px}
.customer-portal .cp-identity{padding-bottom:16px}
.customer-portal .cp-shell .customer-welcome-action{border-color:color-mix(in srgb,var(--primary) 22%,var(--line));background:var(--accent);color:var(--primary);min-height:44px;font-weight:600}
.customer-portal .cp-shell .customer-welcome-action:hover{border-color:var(--primary);background:color-mix(in srgb,var(--primary) 15%,var(--surface))}
.customer-portal .cp-shell .customer-welcome{margin-bottom:0}
.customer-portal .cp-stat-grid{margin:20px 0;gap:18px}
.customer-portal .cp-recent{margin:20px 0}
.customer-portal .cp-order-row{position:relative;border-radius:10px;padding:15px 10px;transition:background .16s}
.customer-portal .cp-order-row:hover,.customer-portal .cp-order-row:focus-visible{background:var(--accent)}
.customer-portal .cp-order-row>div{min-width:0}
.customer-portal .cp-order-status{display:flex;align-items:center;gap:12px}
.customer-portal .cp-order-arrow{display:grid;place-items:center;width:24px;height:24px;color:var(--muted)}
.customer-portal .cp-order-arrow svg{width:15px;height:15px}
.customer-portal .cp-order-row:hover .cp-order-arrow{color:var(--primary)}
.customer-portal .cp-shell .customer-quick-grid{gap:18px;margin:20px 0}
.customer-portal .cp-shell .customer-dashboard-grid{gap:20px}
@media(max-width:1000px){.customer-portal .cp-shell{column-gap:18px}}
@media(max-width:760px){.customer-portal .cp-shell{margin-top:24px}.customer-portal .cp-stat-grid{gap:8px;margin:18px 0}.customer-portal .cp-recent{margin:18px 0}.customer-portal .cp-shell .customer-quick-grid{gap:12px;margin:18px 0}.customer-portal .cp-order-status{justify-content:space-between;width:100%}.customer-portal .cp-order-row{padding:14px 6px}.customer-portal .cp-shell .customer-dashboard-grid{gap:18px}}
@media(prefers-reduced-motion:reduce){.cp-order-row{transition:none}}

/* Match the frontend container and align dashboard account cards. */
.customer-portal .cp-shell{width:min(1160px,calc(100% - 48px));max-width:1160px;padding:0;grid-template-columns:210px minmax(0,1fr)}
.customer-portal .cp-shell .customer-dashboard-refined{grid-template-columns:repeat(2,minmax(0,1fr));align-items:stretch}
.customer-portal .customer-dashboard-refined>.customer-dashboard-card{height:auto;min-width:0;margin:0;display:flex;flex-direction:column;padding:20px}
.customer-portal .customer-dashboard-refined .customer-section-title{min-width:0;flex-wrap:wrap;margin-bottom:14px}
.customer-portal .customer-dashboard-refined .customer-section-title>div{flex:1;min-width:0}
.customer-portal .cp-verification-actions{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:10px;margin-top:18px}
.customer-portal .cp-verification-actions .customer-verification-state{margin:0;white-space:nowrap}
.customer-portal .customer-dashboard-refined .cp-verification-actions form{margin:0;min-width:0}
.customer-portal .cp-verification-actions .btn{padding:10px;font-size:11px;min-height:44px;max-width:100%;white-space:normal}
.customer-portal .customer-verification-help{margin:4px 0 0}
.customer-portal .cp-verification-actions .customer-preview-note{margin:0}
@media(max-width:1000px){.customer-portal .cp-shell{grid-template-columns:190px minmax(0,1fr)}.customer-portal .cp-shell .customer-dashboard-refined{grid-template-columns:minmax(0,1fr)}}
@media(max-width:760px){.customer-portal .cp-shell{width:calc(100% - 28px);margin-inline:auto;padding:0;display:block}.customer-portal .customer-dashboard-refined>.customer-dashboard-card{padding:18px}}
