/* Scoped customer workspace: navy, ivory and Global Edge gold. */
html body:not(.admin-theme) #app div.client-shell{--ink:#eef3fa;--muted:#b5c4d7;--panel:#15263b;--gold:#d5b56d;background:#0b1729!important;color:var(--ink);border:1px solid #293d55;border-radius:22px;overflow:hidden;gap:0!important;box-shadow:0 24px 70px #0b172923;margin-block:28px!important;min-height:75vh}
html body:not(.admin-theme) #app div.client-shell .side{background:#0c192b!important;border:0!important;border-inline-end:1px solid #293d55!important;padding:24px 18px!important;min-width:0}html body:not(.admin-theme) #app div.client-shell .profile{padding:18px!important;background:linear-gradient(135deg,#243952,#14243a);border:1px solid #38506d;border-radius:16px;margin-bottom:24px}html body:not(.admin-theme) #app div.client-shell .profile b{color:#fff;font-size:17px}html body:not(.admin-theme) #app div.client-shell .side button{color:#c2cfe0!important;min-height:45px!important;padding:12px 16px!important;margin-bottom:8px!important;border:1px solid transparent!important;border-radius:11px!important;text-align:start;transition:background .2s,color .2s,transform .2s}html body:not(.admin-theme) #app div.client-shell .side button:hover{background:#213750!important;color:#fff!important;transform:translateX(-2px)}html body:not(.admin-theme) #app div.client-shell .side button.active{background:linear-gradient(100deg,#b9964f,#e1c889)!important;color:#17263b!important;font-weight:800;border-color:#e7cd8c!important;box-shadow:0 6px 22px #0003}html body:not(.admin-theme) #app div.client-shell .main{background:radial-gradient(ellipse at 80% 0,#263d55 0,transparent 45%),#101e32!important;padding:32px!important;min-width:0}html body:not(.admin-theme) #app div.client-shell :is(h1,h2,h3,h4,strong,b,dt){color:#f1f5fc!important}html body:not(.admin-theme) #app div.client-shell :is(p,.muted,.prose,dd,.eyebrow){color:#b9c8da!important}html body:not(.admin-theme) #app div.client-shell .eyebrow{color:#e1c483!important;letter-spacing:2px}html body:not(.admin-theme) #app div.client-shell :is(.card,.message,.empty,.table-wrap){background:#172a43!important;color:#e6eef9!important;border:1px solid #304864!important;border-radius:16px!important;box-shadow:0 8px 28px #0002}html body:not(.admin-theme) #app div.client-shell .card{padding:24px!important}html body:not(.admin-theme) #app div.client-shell .stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin-block:24px}html body:not(.admin-theme) #app div.client-shell .stat strong{font-size:34px!important;color:#e5c782!important}html body:not(.admin-theme) #app div.client-shell .stat span{color:#c4d1e2!important}html body:not(.admin-theme) #app div.client-shell .client-welcome{padding:28px!important;border:1px solid #3d5270;border-radius:20px;background:linear-gradient(120deg,#253b53,#122239)!important;overflow:hidden}html body:not(.admin-theme) #app div.client-shell .client-welcome img{max-width:140px;filter:drop-shadow(0 12px 18px #0005)}html body:not(.admin-theme) #app div.client-shell :is(.primary,a.primary){background:#d0af66!important;color:#16263b!important}html body:not(.admin-theme) #app div.client-shell :is(th,td){border-color:#304864!important;color:#e1e9f4!important}html body:not(.admin-theme) #app div.client-shell th{background:#213750!important}html body:not(.admin-theme) #app div.client-shell :is(input,select,textarea){background:#102039!important;color:#ecf3ff!important;border-color:#405873!important}html body:not(.admin-theme) #app div.client-shell .tag{background:#2b4560!important;color:#f0d59a!important}html body:not(.admin-theme) #app div.client-shell .actions{gap:12px!important;flex-wrap:wrap}.bundle-manager{padding:24px;border:1px solid #9f8348;border-radius:16px;margin-bottom:24px;display:flex;gap:14px;flex-wrap:wrap;align-items:center}.bundle-manager h2,.bundle-manager p{width:100%;margin:0}.bundle-editor{width:min(760px,94vw);max-height:90vh;overflow:auto;border:1px solid #59697c;border-radius:20px;background:#182534;color:#eef4fc;padding:24px}.bundle-editor header{display:flex;justify-content:space-between;align-items:center}.bundle-editor form{display:grid;gap:20px}.bundle-editor label{display:grid;gap:8px}.bundle-editor fieldset{display:grid;gap:12px;padding:20px;border:1px solid #526071;border-radius:14px}.bundle-editor .bundle-option{display:flex;align-items:center;gap:14px;padding:14px;background:#22354a;border-radius:10px}.bundle-option input{width:20px;height:20px;accent-color:#d0ae67}.bundle-option small{display:block;color:#b2c3d5}.bundle-editor input,.bundle-editor textarea,.bundle-editor select{padding:12px;border-radius:10px;width:100%;box-sizing:border-box}.bundle-option input{width:20px}.bundle-option[hidden]{display:none!important}
@media(max-width:800px){html body:not(.admin-theme) #app div.client-shell .main{padding:20px!important}html body:not(.admin-theme) #app div.client-shell .stats{grid-template-columns:1fr}html body:not(.admin-theme) #app div.client-shell .side{border-inline-end:0!important}html body:not(.admin-theme) #app div.client-shell .client-welcome{padding:20px!important}html body:not(.admin-theme) #app div.client-shell .client-welcome img{max-width:90px}}@media(prefers-reduced-motion:reduce){html body:not(.admin-theme) #app div.client-shell *{transition:none!important;animation:none!important}}

html body:not(.admin-theme) #app div.client-shell .main>section,html body:not(.admin-theme) #app div.client-shell .main>article,html body:not(.admin-theme) #app div.client-shell .main>.card{margin-block:0 24px!important}html body:not(.admin-theme) #app div.client-shell .main{display:flex!important;flex-direction:column;gap:24px!important}html body:not(.admin-theme) #app div.client-shell .main>header{padding-bottom:20px!important;border-bottom:1px solid #354b65!important}html body:not(.admin-theme) #app div.client-shell .profile :is(p,strong,b,span){color:#f1f5fc!important}html body:not(.admin-theme) #app div.client-shell :is(p,dd,li){line-height:1.9!important}html body:not(.admin-theme) #app div.client-shell :is(h2,h3){line-height:1.55!important;margin-block:0 18px!important}html body:not(.admin-theme) #app div.client-shell .main>div:not(.stats){min-width:0}html body:not(.admin-theme) #app div.client-shell .side button{display:block!important;width:100%!important}html body:not(.admin-theme) #app div.client-shell .export-toolbar{background:#172a43!important;color:#c8d5e5!important;border:1px solid #354b65!important;padding:18px!important;border-radius:14px!important}

html body:not(.admin-theme):has(.client-shell){background:#080f1c!important}html body:not(.admin-theme):has(.client-shell) :is(.public-header,body>header,.site-header,.portal-header){background:#0b1729!important;border-color:#253850!important}html body:not(.admin-theme):has(.client-shell) #app{max-width:none!important;width:100%!important;padding:24px!important;background:#080f1c!important;box-sizing:border-box}html body:not(.admin-theme) #app div.client-shell{margin:0!important;border:0!important;border-radius:0!important;box-shadow:none!important;min-height:90vh;grid-template-columns:260px minmax(0,1fr)!important}html body:not(.admin-theme):has(.client-shell)>header{background:#0c182a!important;color:#d6e1ef!important}html body:not(.admin-theme):has(.client-shell)>header a{color:#d6e1ef!important}html body:not(.admin-theme):has(.client-shell)>footer{background:#0b1729!important;color:#aabbd0!important;border-color:#293d55!important}html body:not(.admin-theme) #app div.client-shell .side{border-radius:0!important}html body:not(.admin-theme) #app div.client-shell .main{border-radius:0!important;padding:32px 40px!important}html body:not(.admin-theme) #app div.client-shell .export-bar{background:#172a43!important;color:#c8d5e5!important;border-color:#354b65!important}@media(max-width:800px){html body:not(.admin-theme):has(.client-shell) #app{padding:10px!important}html body:not(.admin-theme) #app div.client-shell{grid-template-columns:1fr!important}html body:not(.admin-theme) #app div.client-shell .main{padding:20px!important}}

html body:not(.admin-theme) #app div.client-shell{width:100%!important;max-width:none!important;padding:0!important;box-sizing:border-box!important}html body:not(.admin-theme):has(.client-shell) header.top nav#public-nav a{color:#d6e1ef!important}html body:not(.admin-theme):has(.client-shell) header.top .identity :is(span,small,strong){color:#d6e1ef!important}html body:not(.admin-theme) #app div.client-shell small{color:#b9c8da!important}

/* R46: consistent surfaces and foregrounds across every customer workspace. */
html body:not(.admin-theme) #app div.client-shell{
 --mt5-bg:#101e32;--mt5-card:#172a43;--mt5-soft:#203650;
 --mt5-ink:#f1f5fc;--mt5-muted:#c4d1e2;--mt5-line:#405873;
 --surface:#172a43;--surface-subtle:#203650;--surface-border:#405873;
 --ink:#f1f5fc;--muted:#c4d1e2;color:#f1f5fc!important;
}
html body:not(.admin-theme) #app div.client-shell .mt5-root{
 --mt5-bg:#101e32;--mt5-card:#172a43;--mt5-soft:#203650;
 --mt5-ink:#f1f5fc;--mt5-muted:#c4d1e2;--mt5-line:#405873;
}
html body:not(.admin-theme) #app div.client-shell :is(.mt5-card,.mt5-hero,.mt5-panel,.mt5-empty,.mt5-detail-hero,.mt5-detail-sections>section,.agent-hero,.agent-code,.report-export-toolbar){background:#172a43!important;background-image:none!important;color:#f1f5fc!important;border-color:#405873!important}
html body:not(.admin-theme) #app div.client-shell :is(h1,h2,h3,h4,h5,h6,dt,label,legend){color:#f1f5fc!important;opacity:1!important}
html body:not(.admin-theme) #app div.client-shell :is(p,small,dd,.muted,.prose,.mt5-copy,.agent-metrics span){color:#c4d1e2!important;opacity:1!important}
html body:not(.admin-theme) #app div.client-shell :is(bdi,b,strong){color:inherit!important;opacity:1!important}
html body:not(.admin-theme) #app div.client-shell .profile :is(b,bdi,p,span){color:#ffffff!important;opacity:1!important}
html body:not(.admin-theme) #app div.client-shell .profile b{display:block;margin-bottom:12px!important;font-size:18px!important}
html body:not(.admin-theme) #app div.client-shell :is(button,a.button,.report-export-button){background:#243d59!important;border:1px solid #506784!important;color:#ffffff!important;opacity:1!important;min-height:46px}
html body:not(.admin-theme) #app div.client-shell :is(button,a.button):hover{background:#34536f!important;color:#ffffff!important}
html body:not(.admin-theme) #app div.client-shell :is(.primary,button.active,.side button.active){background:#d5b56d!important;color:#132238!important;border-color:#e1c88c!important}
html body:not(.admin-theme) #app div.client-shell :is(.mt5-status,.tag){background:#294661!important;color:#ffffff!important;border-color:#57718e!important}
html body:not(.admin-theme) #app div.client-shell .mt5-status.active{background:#174d3d!important;color:#e5fff0!important;border-color:#4c9e7b!important}
html body:not(.admin-theme) #app div.client-shell :is(.mt5-status.pending_payment,.mt5-status.pending_review,.mt5-status.building){background:#614c20!important;color:#fff1c7!important;border-color:#b18d48!important}
html body:not(.admin-theme) #app div.client-shell :is(.mt5-status.rejected,.mt5-status.build_failed,.mt5-status.suspended){background:#652f42!important;color:#ffe5ed!important;border-color:#b5768b!important}
html body:not(.admin-theme) #app div.client-shell .report-export-toolbar{padding:18px!important;margin-block:0 24px!important;border-radius:14px!important;gap:12px!important}
html body:not(.admin-theme) #app div.client-shell .mt5-card{padding:26px!important;gap:20px!important}
html body:not(.admin-theme) #app div.client-shell .mt5-hero{padding:28px!important;margin-bottom:26px!important}
html body:not(.admin-theme) #app div.client-shell .mt5-grid{gap:24px!important;margin-block:0 26px!important}
html body:not(.admin-theme) #app div.client-shell .mt5-root dl{row-gap:16px!important;column-gap:24px!important}
html body:not(.admin-theme) #app div.client-shell .mt5-actions{gap:12px!important;margin-top:24px!important}
html body:not(.admin-theme) #app div.client-shell .side button{background:transparent!important;border-color:transparent!important;color:#d8e3f1!important;margin-bottom:10px!important}
html body:not(.admin-theme) #app div.client-shell .side button:hover{background:#243d59!important;color:#ffffff!important}
html body:not(.admin-theme) #app div.client-shell .side button.active{background:#d5b56d!important;color:#132238!important}
html body:not(.admin-theme):has(.client-shell) header.top :is(a.button,a.primary,button){color:#172a43!important;background:#e5cb8d!important;border-color:#c6a45e!important}
html body:not(.admin-theme):has(.client-shell) header.top nav#public-nav a{color:#e5edf8!important}
html body:not(.admin-theme):has(.client-shell) header.top nav#public-nav a.button{color:#172a43!important;background:#e5cb8d!important}

/* R47: complete customer portal palette, including courses, publications and forms. */
html body:not(.admin-theme) #app div.client-shell :is(.learning-card,.learning-card-body,.course-panel,.course-filters,.course-player-info,.course-curriculum,.course-registration-grid,.review-card,.review-compose,.review-company-reply,.reviews-hero,.review-own-status,.subscription-tracking,.transfer-method,.promo-box,.discount-summary,.consultation-order,.consultation-timeline,.card,.message,.empty,.table-wrap,fieldset,details){background:#172a43!important;background-image:none!important;color:#f1f5fc!important;border-color:#405873!important}
html body:not(.admin-theme) #app div.client-shell :is(.learning-root,.course-panel,.course-filters,.review-card,.review-compose,.subscription-tracking,.transfer-method,.card,.message,fieldset,details) :is(h1,h2,h3,h4,strong,b,dt,label,legend,summary){color:#f1f5fc!important;opacity:1!important}
html body:not(.admin-theme) #app div.client-shell :is(.learning-root,.course-panel,.review-card,.review-compose,.subscription-tracking,.transfer-method,.card,.message,fieldset,details) :is(p,small,span,dd,li,.muted,.course-muted,.course-clamp,.prose){color:#c4d1e2!important;opacity:1!important}
html body:not(.admin-theme) #app div.client-shell :is(a:not(.button),summary){color:#efd392!important;text-underline-offset:4px}
html body:not(.admin-theme) #app div.client-shell :is(input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]),textarea,select){background:#0e1d30!important;color:#ffffff!important;border:1px solid #58718e!important;color-scheme:dark;opacity:1!important}
html body:not(.admin-theme) #app div.client-shell :is(input,textarea)::placeholder{color:#aebed2!important;opacity:1!important}
html body:not(.admin-theme) #app div.client-shell :is(input,textarea,select):focus{outline:2px solid #e5c98a!important;outline-offset:3px}
html body:not(.admin-theme) #app div.client-shell :is(th,td){background:#172a43!important;color:#ecf3fc!important;border-color:#405873!important;padding:16px!important}
html body:not(.admin-theme) #app div.client-shell th{background:#243d59!important;color:#ffffff!important}
html body:not(.admin-theme) #app div.client-shell tbody tr:hover td{background:#243d59!important}
html body:not(.admin-theme) #app div.client-shell :is(.course-pill,.subscription-status,.badge,.tag){background:#294661!important;color:#ffffff!important;border-color:#58718e!important}
html body:not(.admin-theme) #app div.client-shell :is(.course-price-free,.course-overall-label,.price,.course-kicker,.review-stars,.review-rating,.review-score){color:#efd392!important}
html body:not(.admin-theme) #app div.client-shell :is(.course-message,.message.support){background:#174d3d!important;color:#e5fff0!important;border-color:#4c9e7b!important}
html body:not(.admin-theme) #app div.client-shell :is(.course-message.bad,.report-export-error,.modal-error){background:#652f42!important;color:#ffe5ed!important;border-color:#b5768b!important}
html body:not(.admin-theme) #app div.client-shell :is(.grid,.split,.learning-card-grid,.course-study-grid,.stats){gap:24px!important}
html body:not(.admin-theme) #app div.client-shell :is(.learning-card-body,.course-panel,.review-card,.review-compose,.subscription-tracking,.transfer-method,fieldset,details){padding:24px!important}
html body:not(.admin-theme) #app div.client-shell :is(form,.course-outline,.course-curriculum){gap:18px!important}
html body:not(.admin-theme) #app div.client-shell :is(form>label,form>div,form>fieldset){margin-bottom:18px!important}
html body:not(.admin-theme) #app div.client-shell :is(.actions,.course-actions,.subscription-card-heading){gap:14px!important;flex-wrap:wrap}
html body:not(.admin-theme) #app div.client-shell :is(.course-outline>div,.course-students>div){padding-block:18px!important;border-color:#405873!important}
html body:not(.admin-theme) #app div.client-shell .learning-card-placeholder{background:linear-gradient(135deg,#243d59,#102039)!important;color:#efd392!important}
html body:not(.admin-theme) #app div.client-shell :is(button,a.button):disabled{color:#bac9dd!important;background:#25364d!important;border-color:#4b607a!important;opacity:1!important;cursor:not-allowed}
/* Customer dialogs sit outside #app; keep the same readable palette. */
html body:not(.admin-theme):has(.client-shell) dialog:not(.activity-dialog){background:#14253b!important;color:#f1f5fc!important;border-color:#506784!important;--mt5-bg:#14253b;--mt5-card:#172a43;--mt5-soft:#203650;--mt5-ink:#f1f5fc;--mt5-muted:#c4d1e2;--mt5-line:#506784}
html body:not(.admin-theme):has(.client-shell) dialog:not(.activity-dialog) :is(h1,h2,h3,h4,label,legend,strong,b,bdi,dt){color:#f1f5fc!important;opacity:1!important}
html body:not(.admin-theme):has(.client-shell) dialog:not(.activity-dialog) :is(p,small,span,dd,.muted,.prose){color:#c4d1e2!important;opacity:1!important}
html body:not(.admin-theme):has(.client-shell) dialog:not(.activity-dialog) :is(.card,.course-panel,.message,fieldset){background:#172a43!important;color:#f1f5fc!important;border-color:#506784!important}
html body:not(.admin-theme):has(.client-shell) dialog:not(.activity-dialog) :is(input:not([type=checkbox]):not([type=radio]):not([type=color]),textarea,select){background:#0e1d30!important;color:#ffffff!important;border-color:#58718e!important;color-scheme:dark}
html body:not(.admin-theme):has(.client-shell) dialog:not(.activity-dialog) :is(button,a.button){background:#243d59!important;color:#ffffff!important;border:1px solid #58718e!important}
html body:not(.admin-theme):has(.client-shell) dialog:not(.activity-dialog) .primary{background:#d5b56d!important;color:#132238!important}
@media(max-width:600px){html body:not(.admin-theme) #app div.client-shell :is(.learning-card-body,.course-panel,.review-card,.review-compose,fieldset,details){padding:18px!important}html body:not(.admin-theme) #app div.client-shell :is(.grid,.learning-card-grid,.stats){gap:18px!important}}

/* R49: explicit foreground/background pairs for shared small UI elements. */
html body:not(.admin-theme) #app div.client-shell .report-export-toolbar,html body:not(.admin-theme) #app div.client-shell .report-export-toolbar :is(span,p,b,strong,small,h2,h3){background-color:transparent!important;color:#ecf3fc!important;opacity:1!important}
html body:not(.admin-theme) #app div.client-shell .report-export-toolbar{background:#172a43!important}
html body:not(.admin-theme) #app div.client-shell .review-company-reply .review-official{background:#e5cb8d!important;color:#172a43!important;border:1px solid #b99b5a!important;font-weight:700!important;opacity:1!important}
html body:not(.admin-theme) #app div.client-shell .review-company-reply time,html body:not(.admin-theme) #app div.client-shell .review-reply-count{color:#c4d1e2!important;opacity:1!important}
html body:not(.admin-theme) #app div.client-shell .review-avatar{background:#294661!important;color:#ffffff!important}
html body:not(.admin-theme) #app div.client-shell :is(.comp-filters,.comp-panel,.comp-card,.comp-card-body,.comp-step,.comp-leaderboard,.comp-summary>div){background:#172a43!important;color:#ecf3fc!important;border-color:#405873!important}
html body:not(.admin-theme) #app div.client-shell .comp-filters :is(label,legend,span,p,small){color:#ecf3fc!important;opacity:1!important}
html body:not(.admin-theme) #app div.client-shell .comp-filters{padding:22px!important;gap:20px!important}
html body:not(.admin-theme) #app div.client-shell .comp-filters label{line-height:1.8!important}
html body:not(.admin-theme):has(.client-shell) header.top a[href*="#dashboard"],html body:not(.admin-theme):has(.client-shell) header.top :is(#public-nav,.links) a[href*="#dashboard"]{background:#e5cb8d!important;color:#172a43!important;border-color:#b99b5a!important;font-weight:750!important;opacity:1!important}
html body:not(.admin-theme):has(.client-shell) header.top a[href*="#dashboard"] *,html body:not(.admin-theme):has(.client-shell) header.top :is(#public-nav,.links) a[href*="#dashboard"] *{color:#172a43!important;opacity:1!important}

/* R51: compact competition cards have independent legacy white surfaces. */
html body:not(.admin-theme) #app div.client-shell .competitions-root .comp-compact-card,
html body:not(.admin-theme) #app div.client-shell .competitions-root .comp-compact-card .comp-card-body{background:#172a43!important;background-image:none!important;color:#f1f5fc!important;border-color:#405873!important}
html body:not(.admin-theme) #app div.client-shell .competitions-root .comp-compact-card .comp-card-body h2{font-size:22px!important;line-height:1.65!important;color:#ffffff!important;margin:0!important}
html body:not(.admin-theme) #app div.client-shell .competitions-root .comp-compact-card :is(.comp-description,.comp-muted){color:#c4d1e2!important;line-height:1.85!important}
html body:not(.admin-theme) #app div.client-shell .competitions-root .comp-card-schedule>div{background:#102039!important;border-color:#405873!important;padding:12px!important}
html body:not(.admin-theme) #app div.client-shell .competitions-root .comp-card-schedule :is(span,bdi,b){color:#e5edf8!important;opacity:1!important}
html body:not(.admin-theme) #app div.client-shell .competitions-root .comp-compact-card .comp-countdown{background:#174d3d!important;color:#e5fff0!important;border-color:#4c9e7b!important}
html body:not(.admin-theme) #app div.client-shell .competitions-root .comp-compact-card .comp-countdown :is(b,span){color:#e5fff0!important}
html body:not(.admin-theme) #app div.client-shell .competitions-root .comp-compact-card .comp-prizes>span{background:#3e3523!important;color:#ffe3a3!important;border-color:#947b45!important}
html body:not(.admin-theme) #app div.client-shell .competitions-root .comp-compact-card .comp-pill{background:#294661!important;color:#ffffff!important;border-color:#58718e!important}
html body:not(.admin-theme) #app div.client-shell .competitions-root .comp-compact-card .comp-pill.approved{background:#174d3d!important;color:#e5fff0!important;border-color:#4c9e7b!important}
html body:not(.admin-theme) #app div.client-shell .competitions-root .comp-compact-card .comp-actions .button{background:#243d59!important;color:#ffffff!important;border-color:#58718e!important}
html body:not(.admin-theme) #app div.client-shell .competitions-root .comp-compact-card .comp-actions .button.primary{background:#d5b56d!important;color:#132238!important;border-color:#e1c88c!important}

/* R58: agent entry belongs to the customer session, with accessible motion. */
html body:not(.admin-theme) #app div.client-shell .side button.agent-launch,html body:not(.admin-theme) #app div.client-shell .agent-entry-banner button.agent-launch{background:linear-gradient(110deg,#ba954b,#edcf8c)!important;color:#122239!important;border:1px solid #f1da9f!important;font-weight:800!important;animation:geAgentFloat 3s ease-in-out infinite;box-shadow:0 0 22px #d5ad5a44!important}html body:not(.admin-theme) #app div.client-shell .agent-entry-banner{display:flex;align-items:center;justify-content:space-between;gap:24px;flex-wrap:wrap;background:#172a43!important;padding:26px!important;margin-bottom:24px!important}html body:not(.admin-theme) #app div.client-shell .agent-entry-banner p{margin-top:12px!important;line-height:1.9!important}@keyframes geAgentFloat{50%{transform:translateY(-4px);box-shadow:0 0 30px #d5ad5a66}}@media(prefers-reduced-motion:reduce){html body:not(.admin-theme) #app div.client-shell .agent-launch{animation:none!important}}

/* R59: agent launcher outside the customer menu; standalone workspace. */
html body:not(.admin-theme) #app>.agent-portal-launcher{display:flex!important;align-items:center;justify-content:space-between;gap:28px;flex-wrap:wrap;padding:26px 30px;margin:0 0 28px;border:1px solid #b79a5d;border-radius:20px;background:radial-gradient(ellipse at top left,#8f743b55,transparent 65%),linear-gradient(110deg,#203750,#101e32);box-shadow:0 12px 35px #0003;color:#ffffff!important}
html body:not(.admin-theme) #app>.agent-portal-launcher .agent-launcher-copy>span{color:#f1d69a!important;font:600 11px/1.8 sans-serif;letter-spacing:2px}
html body:not(.admin-theme) #app>.agent-portal-launcher h2{color:#ffffff!important;font-size:27px!important;margin:10px 0!important;line-height:1.6!important}
html body:not(.admin-theme) #app>.agent-portal-launcher p{color:#d5e0ee!important;margin:0!important;line-height:1.9!important}
html body:not(.admin-theme) #app>.agent-portal-launcher button.agent-launch{background:linear-gradient(110deg,#c09c51,#efd28e)!important;color:#122239!important;border:1px solid #f5dc9d!important;font-weight:800!important;border-radius:13px!important;min-height:54px;padding:14px 26px!important;animation:geAgentFloat 3.5s ease-in-out infinite;box-shadow:0 0 22px #d5ad5a44!important;margin:0!important}
html body:not(.admin-theme) #app div.client-shell.agent-standalone{display:block!important;grid-template-columns:none!important;width:100%!important;max-width:none!important}
html body:not(.admin-theme) #app div.client-shell.agent-standalone .main{padding:24px!important;display:block!important}
html body:not(.admin-theme) #app div.client-shell .agent-workspace-topbar{display:flex;align-items:center;justify-content:space-between;gap:18px;flex-wrap:wrap;margin-bottom:26px;padding-bottom:20px;border-bottom:1px solid #405873}
@media(max-width:650px){html body:not(.admin-theme) #app>.agent-portal-launcher{padding:22px!important;gap:20px}html body:not(.admin-theme) #app>.agent-portal-launcher button.agent-launch{width:100%}html body:not(.admin-theme) #app div.client-shell.agent-standalone .main{padding:16px!important}}
@media(prefers-reduced-motion:reduce){html body:not(.admin-theme) #app>.agent-portal-launcher button.agent-launch{animation:none!important}}

/* R62: participant board uses one dark surface instead of white-on-white. */
html body:not(.admin-theme) #app div.client-shell .competitions-root .comp-board-content{background:#172a43!important;color:#f1f5fc!important;border-color:#405873!important}
html body:not(.admin-theme) #app div.client-shell .competitions-root .comp-board-content :is(h2,h3,strong,label){color:#f3f6fc!important;opacity:1!important}
html body:not(.admin-theme) #app div.client-shell .competitions-root .comp-board-tools h2{font-size:26px!important;line-height:1.6!important}
html body:not(.admin-theme) #app div.client-shell .competitions-root .comp-board-content :is(p,small,.comp-board-count,.comp-board-footnote,.comp-board-status,.comp-board-progress>span){color:#c4d1e2!important;opacity:1!important}
html body:not(.admin-theme) #app div.client-shell .competitions-root .comp-board-content .comp-board-row{background:#102039!important;color:#f3f6fc!important;border-color:#405873!important}
html body:not(.admin-theme) #app div.client-shell .competitions-root .comp-board-content .comp-board-rank{background:#e5cb8d!important;color:#172a43!important}
html body:not(.admin-theme) #app div.client-shell .competitions-root .comp-board-content .comp-board-percent{color:#f1d69a!important}
html body:not(.admin-theme) #app div.client-shell .competitions-root .comp-board-content #comp-board-search{background:#0d1c30!important;color:#ffffff!important;border-color:#58718e!important}
html body:not(.admin-theme) #app div.client-shell .competitions-root .comp-board-empty{color:#d5e0ee!important;border-color:#58718e!important}

/* R65: explicit contrast on competition status and participant board, independent of shell nesting. */
html body:not(.admin-theme) #app .competitions-root .comp-step .comp-autosave-status,
html body:not(.admin-theme) #app .competitions-root .comp-step .comp-autosave-status *{background:#e6f4eb!important;color:#174b35!important;opacity:1!important}
html body:not(.admin-theme) #app .competitions-root .comp-step .comp-muted{color:#c7d7eb!important;opacity:1!important}
html body:not(.admin-theme) #app .comp-board-page .comp-board-content{background:#172a43!important;color:#f3f6fc!important;border-color:#405873!important}
html body:not(.admin-theme) #app .comp-board-page .comp-board-content :is(h2,h3,label,strong){color:#f3f6fc!important;opacity:1!important}
html body:not(.admin-theme) #app .comp-board-page .comp-board-content :is(p,small,.comp-board-count,.comp-board-footnote,.comp-board-status,.comp-board-progress>span){color:#c7d7eb!important;opacity:1!important}
html body:not(.admin-theme) #app .comp-board-page .comp-board-content .comp-board-row{background:#102039!important;color:#f3f6fc!important;border-color:#405873!important}
html body:not(.admin-theme) #app .comp-board-page .comp-board-content .comp-board-rank{background:#e5cb8d!important;color:#172a43!important}
html body:not(.admin-theme) #app .comp-board-page .comp-board-content .comp-board-percent{color:#f1d69a!important}
html body:not(.admin-theme) #app .comp-board-page .comp-board-content #comp-board-search{background:#0d1c30!important;color:#fff!important;border-color:#58718e!important}

/* R71: mobile menu owns its surface and all link states. */
@media(max-width:1440px){
html body:not(.admin-theme) header.top nav#public-nav,
html body:not(.admin-theme):has(.client-shell) header.top nav#public-nav{background:#102039!important;color:#f2f6fc!important;border-color:#526a85!important;box-shadow:0 18px 42px #020b1bcc!important;color-scheme:dark}
html body:not(.admin-theme) header.top nav#public-nav>a,
html body:not(.admin-theme):has(.client-shell) header.top nav#public-nav>a{color:#f2f6fc!important;background:transparent!important;opacity:1!important;font-size:15px!important;line-height:1.65!important;min-height:48px!important;padding:12px 14px!important}
html body:not(.admin-theme) header.top nav#public-nav>a *,
html body:not(.admin-theme):has(.client-shell) header.top nav#public-nav>a *{color:inherit!important;opacity:1!important}
html body:not(.admin-theme) header.top nav#public-nav>a:is(:hover,:focus-visible,[aria-current=page]),
html body:not(.admin-theme):has(.client-shell) header.top nav#public-nav>a:is(:hover,:focus-visible,[aria-current=page]){background:#28445f!important;color:#fff!important;outline-color:#e5cb8d!important}
html body:not(.admin-theme) header.top nav#public-nav>a:is(.button,[data-page=dashboard],[data-page=login]),
html body:not(.admin-theme):has(.client-shell) header.top nav#public-nav>a:is(.button,[data-page=dashboard],[data-page=login]){background:#e5cb8d!important;color:#15263c!important;border-color:#b99b5a!important;font-weight:750!important}
}

/* R75: dedicated result page and readable winner cards in every portal surface. */
html body:not(.admin-theme) #app .competitions-root .comp-winners-page{max-width:1200px;margin:0 auto;padding:12px 0 32px;min-width:0}
html body:not(.admin-theme) #app .competitions-root .comp-results-heading{background:linear-gradient(130deg,#203a54,#102039)!important;border:1px solid #506783;border-radius:20px;padding:28px;margin:20px 0 24px;color:#f5f8ff!important}
html body:not(.admin-theme) #app .competitions-root .comp-results-heading h1{color:#fff!important;line-height:1.5;margin:12px 0;font-size:clamp(27px,4vw,40px)!important}
html body:not(.admin-theme) #app .competitions-root .comp-results-heading p{color:#d0def0!important;opacity:1!important;line-height:1.8}
html body:not(.admin-theme) #app .competitions-root .comp-results-count{display:inline-block;margin-top:12px;color:#f5d48a!important}
html body:not(.admin-theme) #app .competitions-root .comp-winners{background:#14263e!important;color:#f4f7fc!important;border-color:#506783!important}
html body:not(.admin-theme) #app .competitions-root .comp-winners .comp-winner-grid{gap:20px!important;margin:24px 0!important;grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr))!important}
html body:not(.admin-theme) #app .competitions-root .comp-winners .comp-winner-grid>article{background:#203a54!important;border:1px solid #58718e!important;color:#f4f7fc!important;border-radius:16px;padding:22px!important;min-width:0}
html body:not(.admin-theme) #app .competitions-root .comp-winners .comp-winner-grid>article h3{color:#fff!important;opacity:1!important;font-size:21px!important;line-height:1.7!important;margin:12px 0!important;overflow-wrap:anywhere}
html body:not(.admin-theme) #app .competitions-root .comp-winners .comp-winner-grid>article p{color:#d0def0!important;opacity:1!important;line-height:1.9}
html body:not(.admin-theme) #app .competitions-root .comp-winners .comp-winner-grid>article>.comp-pill{background:#e7cc8b!important;color:#17283e!important;border-color:#b99c60!important;opacity:1!important;margin-top:12px}
html body:not(.admin-theme) #app .competitions-root .comp-winners .comp-result-rank{color:#f5d48a!important}
html body:not(.admin-theme) #app .competitions-root .comp-winners .comp-results-caption{color:#d0def0!important;line-height:1.9;opacity:1!important}
html body:not(.admin-theme) #app .competitions-root .comp-winners .comp-results-video{display:block;width:100%;max-height:65vh;object-fit:contain;background:#07111f;border:1px solid #506783;border-radius:16px}
@media(max-width:600px){html body:not(.admin-theme) #app .competitions-root .comp-results-heading{padding:22px}html body:not(.admin-theme) #app .competitions-root .comp-winners{padding:18px!important}html body:not(.admin-theme) #app .competitions-root .comp-winners .comp-winner-grid{grid-template-columns:minmax(0,1fr)!important}}
