.kogiConsent[hidden]{display:none!important}.kogiConsent{position:fixed;z-index:1200;bottom:20px;right:20px;width:min(620px,calc(100% - 40px));max-height:80dvh;overflow:auto;box-sizing:border-box;padding:24px;background:#fff;color:#202b3e;border:1px solid #dfe5ed;border-radius:18px;box-shadow:0 14px 60px #0009;font:15px/1.6 system-ui,sans-serif;overflow-wrap:anywhere}.kogiConsent h2{font-size:1.2rem;margin:0 0 10px}.kogiConsent h2:focus{outline:none}.kogiConsent p{margin:10px 0}.kogiConsent details{margin:16px 0}.kogiConsent summary{cursor:pointer;min-height:44px;display:list-item;color:#187451;font-weight:600}.kogiConsent label{display:flex;align-items:flex-start;gap:12px;padding:10px 0;cursor:pointer}.kogiConsent input[type=checkbox]{flex:0 0 22px;width:22px;height:22px;min-height:22px;margin:3px 0 0;accent-color:#315ddb}.kogiConsent small{display:block;color:#657187;font-size:13px;font-weight:400}.kogiConsentActions{display:flex;flex-wrap:wrap;gap:10px}.kogiConsentActions button{flex:1 1 155px;min-height:46px;margin:0;padding:10px 12px;border:1px solid #dfe5ed;border-radius:10px;background:#f3f6fa;color:#202b3e;font:600 14px/1.4 system-ui;cursor:pointer}.kogiConsentActions button:hover{background:#f3f6fa}.kogiConsentActions button:disabled{opacity:.6;cursor:wait}.kogiConsent a{color:#315ddb;text-underline-offset:3px}.kogiConsent nav{display:flex;flex-wrap:wrap;gap:8px 18px}.kogiConsent .kogiConsentNote,.kogiConsentFeedback,.kogiConsentStatus{font-size:13px;color:#657187}.kogiConsentFeedback:empty,.kogiConsentStatus:empty{display:none}.kogiConsentOpen{position:fixed;left:max(14px,env(safe-area-inset-left));bottom:max(14px,env(safe-area-inset-bottom));right:auto;z-index:1100;box-shadow:0 4px 18px #14203920;background:#fff;color:#315ddb;border:1px solid #dfe5ed;border-radius:9px;padding:9px 13px;min-height:44px;font:inherit;cursor:pointer}.kogiConsent :focus-visible,.kogiConsentOpen:focus-visible{outline:2px solid #315ddb;outline-offset:3px}@media(max-width:600px){.kogiConsent{bottom:0;right:0;width:100%;max-height:85dvh;border-radius:18px 18px 0 0;padding:20px;padding-bottom:max(20px,env(safe-area-inset-bottom))}.kogiConsentActions{display:grid;grid-template-columns:1fr}.kogiConsentActions button{width:100%}}

body.kogiHasConsentControl{padding-bottom:var(--kogi-consent-control-space,calc(90px + env(safe-area-inset-bottom,0px)))}
.kogiConsentOpen{max-width:calc(100vw - 28px - env(safe-area-inset-left,0px) - env(safe-area-inset-right,0px))}
@media(min-width:701px){body.kogiHasConsentControl #shell>aside,body.kogiHasConsentControl .platformSidebar{height:calc(100dvh - var(--kogi-consent-control-space,calc(90px + env(safe-area-inset-bottom,0px))));bottom:var(--kogi-consent-control-space,calc(90px + env(safe-area-inset-bottom,0px)));padding-bottom:14px;scroll-padding-bottom:14px}body.kogiHasConsentControl #shell>aside .asideBottom,body.kogiHasConsentControl .platformLogout{flex-shrink:0}}

/* Sidebar action and viewport-clamped anchored preferences. */
body.kogiConsentInSidebar{padding-bottom:0}
html body.kogiConsentInSidebar #shell>aside{height:100dvh;bottom:0;padding-bottom:22px}
html #shell .asideBottom :is(.kogiConsentOpen,#logout){position:static;inset:auto;display:block;width:100%;max-width:none;margin:4px 0 0;padding:12px 14px;min-height:44px;text-align:left;font-family:inherit;font-size:14px;font-weight:500;line-height:1.4;box-shadow:none;background:transparent;color:var(--muted,#657187);border:0;border-radius:10px}
html #shell .asideBottom :is(.kogiConsentOpen,#logout):hover{background:var(--line,#e1e6ee)}
.kogiConsent{inset:auto;margin:0;transform-origin:left bottom;animation:kogiConsentReveal .16s ease-out}
.kogiConsentHead{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:10px}
.kogiConsentHead h2{margin:0;min-width:0}
.kogiConsent .kogiConsentClose{flex:0 0 44px;width:44px;height:44px;min-height:44px;padding:8px;border:0;background:transparent;color:inherit;font:24px/1 system-ui;cursor:pointer;border-radius:10px}
@keyframes kogiConsentReveal{from{opacity:0;transform:translateX(-8px) scale(.98)}to{opacity:1;transform:none}}
@media(prefers-reduced-motion:reduce){.kogiConsent{animation:none}}
@media(max-width:700px){
 html body.kogiConsentInSidebar #shell>aside{height:auto;max-height:100dvh;padding-bottom:10px}
 html body.kogiConsentInSidebar #shell>aside .brandRow{padding-top:48px}
 html #shell>aside:has(#mainNavigation.expanded) .asideBottom{display:grid;grid-template-columns:minmax(0,1fr);gap:0;padding-top:10px;margin-top:0}
 html #shell>aside:has(#mainNavigation.expanded) .asideBottom :is(.dot,#deploymentLabel,#workerStatus,br){display:none}
 .kogiConsent{border-radius:18px;padding:20px}
}

/* Direct account/legal/admin pages use the same sidebar action group. */
html .platformSidebar>.kogiConsentOpen,html .platformSidebar .platformLogout button{position:static;inset:auto;width:100%;max-width:none;padding:12px 16px;min-height:44px;background:transparent;color:var(--muted,#657187);border:0;border-radius:10px;box-shadow:none;text-align:left;font-family:inherit;font-size:14px;font-weight:500;line-height:1.4}
html .platformSidebar>.kogiConsentOpen{margin-top:auto}
html body.kogiConsentInSidebar .platformSidebar{height:100dvh;bottom:0}
html body.kogiConsentInSidebar .platformLogout{width:100%;max-width:none;min-width:0;margin:4px 0 0;padding:0;gap:0;align-self:stretch}
html .platformSidebar :is(.kogiConsentOpen,.platformLogout button):hover{background:var(--line,#e1e6ee)}
.kogiConsent{z-index:2000}
@media(max-width:700px){html body.kogiConsentInSidebar .platformSidebar{height:auto;max-height:100dvh}html .platformSidebar>.kogiConsentOpen{display:none;margin-top:10px}html .platformSidebar:has(#platformNavigation.expanded)>.kogiConsentOpen,html .platformSidebar:has(#platformNavigation.expanded)>.platformLogout{display:block}}

/* A single action geometry; the navigation scrolls, never the action group. */
html body>.kogiConsentOpen{box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;position:fixed;margin:0;inset:auto auto max(14px,env(safe-area-inset-bottom,0px)) max(14px,env(safe-area-inset-left,0px));width:auto;max-width:calc(100vw - 28px - env(safe-area-inset-left,0px) - env(safe-area-inset-right,0px));white-space:normal;overflow-wrap:anywhere;--kogi-safe-left:env(safe-area-inset-left,0px);--kogi-safe-right:env(safe-area-inset-right,0px);--kogi-safe-bottom:env(safe-area-inset-bottom,0px)}
html #shell .asideBottom :is(.kogiConsentOpen,#logout),html .platformSidebar>.kogiConsentOpen,html .platformSidebar .platformLogout button{box-sizing:border-box;display:flex;align-items:center;justify-content:flex-start;width:100%;min-width:0;max-width:100%;min-height:44px;padding:12px 16px;margin:4px 0 0;line-height:1.4;text-align:left;overflow-wrap:anywhere}
html body.kogiConsentInSidebar #shell .asideBottom{position:static;inset:auto;display:block;flex:0 0 auto;width:100%;min-width:0;margin-top:auto;padding-top:16px}
html .platformSidebar .platformLogout{display:block;flex:0 0 auto;width:100%;min-width:0;max-width:100%;padding:0;margin:0;background:transparent;border:0}
@media(min-width:701px){
 html body.kogiConsentInSidebar :is(#shell>aside,.platformSidebar){box-sizing:border-box;display:flex;flex-direction:column;height:100dvh;max-height:100dvh;overflow:hidden;padding-bottom:max(16px,env(safe-area-inset-bottom,0px))}
 html body.kogiConsentInSidebar :is(#mainNavigation,#platformNavigation){flex:1 1 auto;min-height:0;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;margin-bottom:8px;align-content:start;scrollbar-gutter:stable}
 html body.kogiConsentInSidebar :is(.brandRow,.platformBrandRow){flex:0 0 auto}
 html .platformSidebar>.kogiConsentOpen{flex:0 0 auto;margin-top:8px}
}
@media(max-width:700px){
 html body.kogiConsentInSidebar #shell>aside{display:flex;flex-direction:column;max-height:100dvh}
 html #shell>aside:has(#mainNavigation:not(.expanded)) .asideBottom{display:none}
 html #shell>aside:has(#mainNavigation.expanded) .asideBottom{display:block;flex:none;padding-top:8px}
 html :is(#mainNavigation,#platformNavigation).expanded{min-height:0;overflow-y:auto;overscroll-behavior:contain;max-height:calc(100dvh - 230px)}
 html .platformSidebar:has(#platformNavigation:not(.expanded)) .platformLogout{display:none}
}
@media(min-width:701px) and (max-width:1100px){html #shell .asideBottom :is(.kogiConsentOpen,#logout),html .platformSidebar>.kogiConsentOpen,html .platformSidebar .platformLogout button{font-size:13px}}
.kogiGooglePrivacyHub{border-top:1px solid var(--border,#cbd5e1);margin-top:16px;padding-top:12px}.kogiGooglePrivacyHub h3{font-size:1rem;margin:0 0 8px}.kogiGooglePrivacyHub p{font-size:.875rem;line-height:1.6}.kogiGooglePrivacyHub a{display:inline-block;padding:10px 0;line-height:1.5;text-underline-offset:3px}
.kogiConsent .kogiGooglePrivacyHub{background:transparent;color:inherit;box-shadow:none;padding:12px 0 0;border-radius:0}

.kogiConsentWithdrawal[hidden]{display:none!important}.kogiConsentWithdrawal{margin:10px 0 16px}.kogiConsentRevoke{width:100%;white-space:normal}.kogiConsent .kogiConsentWithdrawalHint{font-size:13px;line-height:1.5;margin:8px 0}
.kogiWelcomeChoice{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.65rem;margin-block:.65rem}
.kogiWelcomeChoice section{display:flex;flex-direction:column;gap:.35rem;padding:.75rem;border:1px solid var(--line,#8694a8);border-radius:.65rem}
.kogiWelcomeChoice h3,.kogiWelcomeChoice p{margin:0}
#kogiConsentPanel.kogiWelcomeConsent .kogiWelcomeChoice :is(button,a){margin-top:auto;display:flex;align-items:center;justify-content:center;min-height:44px;padding:.4rem .6rem;border:1px solid transparent;border-radius:.5rem;background:#315ddb;color:#fff;font:inherit;font-weight:650;text-align:center;text-decoration:none}
#kogiConsentPanel.kogiWelcomeConsent .kogiWelcomeChoice :is(button,a):hover{background:#254bb9}
.kogiWelcomeConsent .kogiWelcomeNecessary{width:100%;min-height:44px;margin-bottom:.6rem}
.kogiWelcomeConsent .kogiWelcomeSettings{margin-block:.3rem .6rem}
@media(max-width:460px){
 .kogiWelcomeChoice{grid-template-columns:minmax(0,1fr);gap:.45rem}
 .kogiWelcomeConsent .kogiWelcomeChoice section{padding:.55rem}
 .kogiWelcomeConsent .kogiWelcomeChoice p{font-size:.875rem;line-height:1.4}
}
/* Privacy controls stay readable while the theme and sidebar position settle. */
.kogiConsentOpen,.kogiConsentRevoke,.platformLogout button{transition:none!important}
