.customer-portal{max-width:1320px;margin:0 auto;min-height:100vh;padding:0 32px;background:radial-gradient(ellipse at 80% 0,rgba(148,129,221,.09),transparent 55%)}
.customer-top{display:flex;align-items:center;gap:28px;min-height:104px;border-bottom:1px solid rgba(224,215,255,.16)}
.customer-top>a:first-child{margin-right:auto}.customer-switch{display:flex;align-items:center;gap:12px;text-decoration:none}.customer-switch small{display:block;color:#c9bee3;font-size:.85rem;margin-top:4px}
.customer-top .account-menu>summary{display:flex;align-items:center;gap:9px;cursor:pointer;list-style:none}.customer-top .account-menu>summary::-webkit-details-marker{display:none}
.customer-portal .main{margin:0;padding:30px 0}.customer-portal .wrap{width:auto;max-width:none;margin:0;padding:0}.customer-portal .page-heading{margin:0 0 26px;align-items:center}.customer-portal h1{font-size:2.25rem}.customer-portal .partner-orders-inbox{gap:20px}
.customer-footer{margin-top:48px;padding:24px 0;color:#bdb2d6;border-top:1px solid rgba(224,215,255,.13);font-size:.85rem}
.customer-search{display:flex;gap:16px;align-items:end;margin:24px 0}.customer-search label:first-child{flex:1}.customer-search label{display:grid;gap:7px}.customer-search input,.customer-search select{width:100%;min-height:48px}.customer-search button{margin:0}.customer-search [role=status]:empty{display:none}
.customer-settings{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}.customer-settings a{text-decoration:none}
.customer-followups{display:grid;gap:24px}.customer-followup>header{display:flex;justify-content:space-between;gap:16px;align-items:start}.customer-followup h2{margin:0}.customer-followup header p{margin-top:8px;color:#c8bedc}.customer-followup>header>a{white-space:nowrap}
.customer-plan-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin:20px 0}.customer-plan-grid>section{border:1px solid rgba(210,198,244,.22);border-radius:14px;padding:20px;background:rgba(226,216,255,.04)}.customer-plan-grid h3{margin:8px 0 12px;font-size:1rem}.customer-plan-grid small{display:block;color:#c8bedc;margin-top:10px;line-height:1.5}.customer-status{display:inline-block;color:#c8e6df}
.customer-report-list{border-top:1px solid rgba(224,215,255,.16);padding-top:14px}.customer-report-list h3{font-size:1rem}.customer-report-list h3 span{color:#c8bedc;margin-left:8px}.customer-report-row{display:flex;align-items:center;gap:14px;padding:14px 4px;text-decoration:none;border-radius:8px}.customer-report-row>span{flex:1}.customer-report-row small{display:block;color:#c8bedc;margin-top:5px}.customer-report-row:hover{background:rgba(226,216,255,.07)}
.customer-shared-reports{max-width:1180px;margin:24px auto}.customer-document{max-width:900px;margin:24px auto}.customer-report-text{line-height:1.8;border-top:1px solid rgba(224,215,255,.2);margin-top:24px;padding-top:24px;overflow-wrap:anywhere}
.customer-new-report{display:inline-block;margin-left:12px;padding:3px 9px;border-radius:20px;font-size:.8rem;background:rgba(149,207,191,.12);color:#b6e2d5;border:1px solid rgba(149,207,191,.35)}
.customer-account-mode{display:flex;align-items:center;gap:20px;margin:16px 0}.customer-account-mode>strong{flex:1}.customer-account-mode label{display:grid;gap:6px}
.customer-account-feedback{flex:0 1 240px;min-width:170px;font-size:.9rem;color:#c9bee3;line-height:1.5}.customer-account-feedback [data-state=saved]{color:#b6e2d5}.customer-account-feedback [data-state=error]{color:#f2c9b4}.customer-account-feedback button{margin-top:8px}.customer-account-feedback [hidden]{display:none!important}
@media(max-width:720px){.customer-portal{padding:0 16px}.customer-top{flex-wrap:wrap;gap:16px;padding:20px 0}.customer-top>a:first-child{width:100%;margin:0}.customer-switch{margin-right:auto}.customer-top .account-menu>summary{font-size:.85rem}.customer-plan-grid,.customer-settings{grid-template-columns:1fr}.customer-search{flex-wrap:wrap}.customer-search label:first-child{flex-basis:100%}.customer-followup>header{flex-direction:column}.customer-account-mode{flex-direction:column;align-items:stretch}.customer-portal h1{font-size:1.8rem}}
@media(max-width:720px){.customer-account-feedback{flex-basis:auto}}

/* Customer workspace: one navigation level, clear focus and quiet dark surfaces. */
.customer-modal-open{overflow:hidden}
.studio dialog.customer-modal{width:min(1280px,calc(100vw - 64px));height:min(900px,calc(100dvh - 48px));max-width:none;max-height:none;padding:0;border:1px solid #89749f;border-radius:20px;background:#251b49;color:#f7f1ff;box-shadow:0 24px 90px #10092399;overflow:hidden}
.customer-modal::backdrop{background:#100b2bc4;backdrop-filter:blur(3px)}
.customer-modal[open]{display:flex;flex-direction:column}
.customer-modal-top{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:22px 28px;border-bottom:1px solid #66517e;background:#302353;flex-shrink:0}
.customer-modal-top h1{margin:0;font-size:26px;line-height:1.3;color:#fff}
.studio dialog.customer-modal .customer-modal-close{background:transparent;border:0;color:#efe3ff;font-size:38px;line-height:1;width:44px;height:44px;cursor:pointer;transition:transform .15s}
.studio dialog.customer-modal .customer-modal-close:hover{transform:scale(1.15)}
.customer-modal-close:focus-visible{outline:2px solid #dfcbff;border-radius:8px}
.customer-modal-status{margin:0;padding:12px 28px;color:#e0d2f4;font-size:15px}.customer-modal-status:empty{display:none}
.customer-modal-body{padding:24px 28px 32px;overflow:auto;flex:1;min-height:0;overscroll-behavior:contain}
.customer-modal-body>.wrap{width:100%;max-width:none;margin:0;padding:0}
.customer-modal-body .partner-page>.subnav{display:none}
.customer-modal-body .actions-row{gap:14px}
@media(max-width:650px){.studio dialog.customer-modal{width:100%;height:100dvh;border:0;border-radius:0;margin:0}.customer-modal-top{padding:16px 18px}.customer-modal-top h1{font-size:22px}.customer-modal-body{padding:20px 18px}.customer-modal-status{padding:10px 18px}}
@media(prefers-reduced-motion:reduce){.studio dialog.customer-modal .customer-modal-close{transition:none}}
.studio .customer-portal{background:none;max-width:1320px}
.studio .customer-portal .main{padding-top:38px}
.studio .customer-portal .page-heading{margin-bottom:12px;gap:20px}
.studio .customer-portal .page-heading h1{font-size:clamp(28px,3vw,36px);letter-spacing:-.7px;line-height:1.25}
.studio .customer-portal .partner-page>.page-heading+p,.studio .customer-portal .customer-intro{margin:0 0 28px;color:#d2c8e8;line-height:1.65;max-width:740px;font-size:16px}
.studio .customer-portal .subnav{display:flex;flex-wrap:wrap;overflow:visible;gap:6px 12px;padding:0 0 12px;margin:28px 0 0;border-bottom:1px solid #51446c}
.studio .customer-portal .subnav>a{display:inline-flex;align-items:center;gap:9px;color:#e5dcf8;background:transparent;border:1px solid transparent;border-radius:9px;padding:11px 14px;min-height:46px;font-size:15px;font-weight:600;text-decoration:none;opacity:1;transition:background .16s,border-color .16s}
.studio .customer-portal .subnav>a:hover{color:#fff;background:#35285a;border-color:#685685}
.studio .customer-portal .subnav>a.active{color:#fff;background:#3b2d63;border-color:#cbb9ec;box-shadow:0 1px 0 #cab8e51a}
.studio .customer-portal .subnav>a>.icon{color:#d2bff3;flex-shrink:0;width:19px;height:19px}
.studio .customer-portal .subnav .partner-new-count{display:inline-grid;place-items:center;min-width:23px;height:23px;padding:1px 6px;border-radius:6px;background:#51406f;color:#f3eaff;font-size:12px;font-weight:700}
.studio .customer-portal .subnav>a.active .partner-new-count{background:#d6c5f3;color:#271b48}
.studio .customer-portal a:focus-visible,.studio .customer-portal button:focus-visible{outline:2px solid #e0d0ff;outline-offset:4px}
.studio .customer-search{display:block;margin:24px 0 16px;max-width:560px}
.studio .customer-search>label{display:grid;gap:9px;color:#e7ddf6;font-size:14px;font-weight:600}
.studio .customer-search-control{display:block;position:relative}
.studio .customer-search-control>.icon{position:absolute;left:16px;top:50%;transform:translateY(-50%);pointer-events:none;color:#c5b1e4}
.studio .customer-portal .partner-page .customer-search input[type=search][name=q]{width:100%;height:50px;min-height:50px;padding:12px 16px 12px 46px;border:1px solid #77638f;border-radius:10px;background:#251b49!important;color:#faf6ff!important;font-size:16px;font-weight:400;box-shadow:inset 0 1px 2px #110b251a;color-scheme:dark;transition:border-color .16s,box-shadow .16s}
.studio .customer-portal .partner-page .customer-search input[type=search][name=q]::placeholder{color:#bbadce;opacity:1}
.studio .customer-portal .partner-page .customer-search input[type=search][name=q]:focus{outline:none;border-color:#dcc9ff;box-shadow:0 0 0 3px #d3b9fa26}
.studio .customer-search [data-search-status]{display:block!important;min-height:21px;margin-top:6px;font-size:13px;color:#c9badf;font-weight:400}
.studio .customer-portal .list-empty-state{min-height:290px;margin:0;padding:48px 28px;background:#1d163a;border:1px solid #504264;border-radius:18px;box-shadow:0 8px 25px #0f092c1a;display:flex;flex-direction:column;align-items:center;justify-content:center}
.studio .customer-portal .list-empty-state>.icon{box-sizing:content-box;display:block;width:29px;height:29px;padding:17px;margin:0 0 18px;border-radius:18px;background:#33264e;border:1px solid #66507f;color:#d9c7f6}
.studio .customer-portal .list-empty-state h3{font-size:22px;font-weight:650;letter-spacing:-.3px;color:#f7f2ff;line-height:1.35;margin:0 0 12px}
.studio .customer-portal .list-empty-state p{max-width:490px;color:#cfc3e1;font-size:16px;line-height:1.7;margin:0}
.studio .customer-portal .customer-empty-actions{display:flex;justify-content:center;gap:12px;margin-top:24px}
.studio .customer-portal .customer-empty-actions a,.studio .customer-portal .customer-empty-actions button{display:inline-flex;align-items:center;gap:8px;margin:0;min-height:44px}
.studio .customer-portal .partner-orders-inbox{margin-top:0;gap:20px}
.studio .customer-portal .partner-inbox-card{background:#20173f;border:1px solid #5b4a73;border-radius:16px;padding:24px;box-shadow:0 6px 20px #110c2812}
.studio .customer-portal .partner-inbox-card.is-new{border-color:#af94d4}
.studio .customer-portal .partner-inbox-card h2{line-height:1.35;margin-top:4px}
.studio .customer-portal .partner-inbox-actions{border-top-color:#4a3b60}
.studio .customer-portal .partner-archive-link{margin:22px 0 0;font-size:14px}
.studio .customer-portal .partner-archive-link a{color:#d4c4e9;text-underline-offset:4px}
.studio .customer-portal .customer-followup{background:#20173f;border:1px solid #57466e;border-radius:16px}
.studio .customer-portal .customer-plan-grid>section{background:#2b204c;border-color:#5e4a76;border-radius:12px}
.studio .customer-portal .customer-report-row:hover{background:#332650}
.studio .customer-portal .customer-footer{margin-top:40px}
@media(max-width:600px){
 .studio .customer-portal .main{padding-top:26px}.studio .customer-portal .page-heading{flex-wrap:wrap}
 .studio .customer-portal .subnav{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:22px}
 .studio .customer-portal .subnav>a{padding:10px 8px;gap:6px;font-size:14px;white-space:normal}
 .studio .customer-portal .subnav .partner-new-count{margin-left:auto;flex-shrink:0}
 .studio .customer-portal .subnav>a>.icon{width:17px;height:17px}
 .studio .customer-search{margin:20px 0 12px;max-width:none}
 .studio .customer-portal .list-empty-state{min-height:280px;padding:32px 20px}
 .studio .customer-portal .list-empty-state h3{font-size:21px}
 .studio .customer-portal .partner-inbox-card{padding:20px}
}
@media(prefers-reduced-motion:reduce){.studio .customer-portal .subnav>a,.studio .customer-portal .partner-page .customer-search input[type=search][name=q]{transition:none}}

/* Candidate identity remains visible while scrolling through the order. */
.customer-modal-identity{flex:1;min-width:0}
.studio .customer-modal-top .customer-modal-eyebrow{margin:0 0 7px;color:#d1c1e6;font-size:14px;line-height:1.45;overflow-wrap:anywhere}
.customer-modal-top h1{overflow-wrap:anywhere}
.customer-modal-top .customer-modal-close{flex-shrink:0}
.customer-modal-top .customer-modal-badge{flex-shrink:0}
.customer-modal-top [hidden]{display:none!important}
@media(max-width:650px){.customer-modal-top{flex-wrap:wrap;gap:12px}.customer-modal-identity{flex-basis:calc(100% - 64px)}.customer-modal-top .customer-modal-close{order:1}.customer-modal-top .customer-modal-identity{order:0}.customer-modal-top .customer-modal-badge{order:2;flex-basis:100%}}

/* Portal branding and quiet primary action. */
.customer-top>a:first-child img{width:190px;height:auto;max-width:100%;display:block}
.studio .customer-portal .partner-page>.page-heading>a[href="/partner-orders/new"]{background:transparent!important;color:#eee3ff!important;border:1px solid #b59bd7;transition:background .16s,color .16s,border-color .16s}
.studio .customer-portal .partner-page>.page-heading>a[href="/partner-orders/new"]:hover,.studio .customer-portal .partner-page>.page-heading>a[href="/partner-orders/new"]:focus-visible{background:#ded0ff!important;color:#271946!important;border-color:#ded0ff}
@media(prefers-reduced-motion:reduce){.studio .customer-portal .partner-page>.page-heading>a[href="/partner-orders/new"]{transition:none}}

/* Orders share these controls in the customer portal and the full workspace. */
.studio .partner-page form.customer-search[data-customer-search] input[type=search][name=q]{background:#251b49!important;color:#faf6ff!important;border:1px solid #927cae;color-scheme:dark}
.studio .partner-page form.customer-search[data-customer-search] input[type=search][name=q]::placeholder{color:#c9bbde;opacity:1}
.studio .partner-page>.page-heading>a.btn[href="/partner-orders/new"]{background:#271b50!important;color:#fff!important;border:1px solid #fff;transition:background .16s}
.studio .partner-page>.page-heading>a.btn[href="/partner-orders/new"]:hover,.studio .partner-page>.page-heading>a.btn[href="/partner-orders/new"]:focus-visible{background:#4a376b!important;color:#fff!important;border-color:#fff}
.partner-invoice-reference{overflow-wrap:anywhere;color:#ded3ed;line-height:1.6}
.studio .customer-portal.customer-with-sidebar{max-width:none;padding:0;min-height:100dvh}
.customer-sidebar{position:fixed;inset:0 auto 0 0;width:248px;padding:32px 22px;background:linear-gradient(90deg,#201647,#281955);border-right:1px solid #67518a55;overflow-y:auto}
.customer-sidebar .customer-brand{display:block;margin:3px 0 38px}
.customer-brand img{width:190px;height:auto;max-width:100%}
:is(.customer-sidebar,.sidebar) .customer-new-order{display:flex;align-items:center;justify-content:center;gap:10px;padding:13px 12px;border:1px solid #fff;border-radius:10px;color:#fff;background:#302051;text-decoration:none;font-size:15px;font-weight:600;margin-bottom:26px}
:is(.customer-sidebar,.sidebar) .customer-new-order:hover{background:#493366}
.customer-sidebar nav{display:grid;gap:8px}
.customer-sidebar nav a{display:flex;align-items:center;gap:13px;padding:13px 14px;border:1px solid transparent;border-radius:10px;color:#e2d5f3;text-decoration:none;font-size:16px}
.customer-sidebar nav a:hover{background:#3b2c5f}
.customer-sidebar nav a.active{border-color:#ded0f7;background:#3e2d64;color:#fff;font-weight:650}
.customer-sidebar nav .icon{width:20px;height:20px}
.customer-workspace{margin-left:248px;padding:0 36px;min-width:0}
.customer-workspace .customer-top{justify-content:flex-end;min-height:92px}
.customer-workspace .customer-top>.customer-switch{margin-right:auto}
.customer-workspace .customer-top>.customer-switch:first-child{width:auto}
.customer-workspace>.main{max-width:1320px;margin:0 auto}
.customer-workspace .customer-footer{max-width:1320px;margin-left:auto;margin-right:auto}
@media(max-width:900px){.customer-sidebar{position:static;width:auto;padding:20px;border-right:0;border-bottom:1px solid #665080}.customer-sidebar .customer-brand{margin:0}.customer-sidebar{display:grid;grid-template-columns:1fr auto;gap:20px}.customer-sidebar .customer-new-order{margin:0}.customer-sidebar nav{grid-column:1/-1;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}.customer-sidebar nav a{justify-content:center;padding:10px 6px;font-size:14px;gap:7px}.customer-workspace{margin-left:0;padding:0 20px}.customer-workspace .customer-top{min-height:76px}}
@media(max-width:520px){.customer-sidebar{grid-template-columns:1fr;gap:18px}.customer-sidebar .customer-brand img{width:170px}.customer-sidebar .customer-new-order{justify-self:start;padding:10px 16px}.customer-sidebar nav{grid-template-columns:repeat(2,minmax(0,1fr))}.customer-sidebar nav a{justify-content:flex-start;padding:11px}.customer-workspace{padding:0 16px}.customer-workspace .customer-top{gap:12px}.customer-workspace .customer-top>.customer-switch{width:auto;max-width:100%;margin-right:auto}}

/* Settings and user administration */
.studio .settings-card-title{display:flex;align-items:center;gap:14px;margin:0 0 18px}
.studio .settings-card-title h2{margin:0;padding:0;border:0;font-size:1.15rem;color:#fff}
.settings-card-title>.icon{flex:none;width:26px;height:26px}
.studio .customer-settings>a{transition:border-color .18s,background .18s;border:1px solid #ffffff35;color:#f6f3ff}
.studio .customer-settings>a:is(:hover,:focus-visible){border-color:#fff;background:#ffffff08}
.studio .customer-settings p{margin:0;color:#ded6ee;line-height:1.6}
.users-content{margin-top:26px}
.studio .users-content .role-editor>summary{color:#fff}
.studio .users-content .section-title h2{margin:0}
.studio .users-content .member-actions{text-align:right;min-width:48px}
.studio .member-actions>summary{display:inline-flex;align-items:center;justify-content:center;width:44px;min-height:44px;cursor:pointer;list-style:none;border:1px solid transparent;border-radius:10px;color:#fff;letter-spacing:3px}
.member-actions>summary::-webkit-details-marker{display:none}
.studio .member-actions>summary:is(:hover,:focus-visible),.studio .member-actions[open]>summary{border-color:#fff;background:#ffffff0a}
.studio .member-action-panel{width:250px;max-width:100%;margin:10px 0 0 auto;padding:16px;text-align:left;white-space:normal;background:#211747;border:1px solid #ffffff40;border-radius:12px}
.studio .member-action-panel p{font-size:14px;line-height:1.6;margin:10px 0 14px;color:#ded6ee}
.studio .member-action-panel button{min-height:42px;color:#fff}

.studio .settings-card-title .icon-tile{margin:0;flex:none}

/* Reserve icon space in both full-account and customer-portal search fields. */
.studio .customer-search .customer-search-control>input[type=search][name=q]{padding-left:48px!important}

.studio .portal .sidebar>.customer-new-order{flex-shrink:0}
:is(.customer-sidebar,.sidebar) .customer-new-order:focus-visible{outline:2px solid #fff;outline-offset:3px}
@media(max-width:850px){.studio .portal .sidebar>.customer-new-order{margin:0;align-self:center}}
@media(max-width:520px){.studio .portal .sidebar>.customer-new-order{grid-column:1/-1;justify-self:start;margin:16px 0 0;padding:10px 16px}}

@media(max-width:520px){.studio .portal .sidebar:has(>.customer-new-order)>.sidebar-menu{grid-row:3}.studio .portal .sidebar>.customer-new-order{grid-row:2}}

@media(min-width:851px){.studio .portal .sidebar>.customer-new-order{margin-top:8px;margin-bottom:10px}}
