/* AI Project Universe V6.24 — stable top utility bar, non-overlapping consent, favicon polish */
:root{
  --apu-v624-bar-height:72px;
  --apu-v624-cookie-space:0px;
  --apu-v624-ink:#0a0d14;
  --apu-v624-paper:#f8fafc;
  --apu-v624-line:rgba(15,23,42,.16);
}
html{scroll-padding-top:calc(var(--apu-v624-bar-height) + 18px)!important}
#apu-v624-utilitybar,#apu-v624-utilitybar *,.apu-cookie-panel,.apu-cookie-panel *{box-sizing:border-box}
html[data-apu-cookie-open='true'] body{padding-bottom:var(--apu-v624-cookie-space)!important}
#apu-v624-utilitybar{
  position:sticky!important;top:0!important;left:0!important;right:0!important;z-index:2147482400!important;
  min-height:var(--apu-v624-bar-height);width:100%;display:flex;align-items:center;justify-content:space-between;gap:14px;
  padding:10px max(14px,env(safe-area-inset-right)) 10px max(14px,env(safe-area-inset-left));
  border:0;border-bottom:1px solid var(--apu-border-strong,var(--apu-v624-line));
  background:rgba(248,250,252,.96);color:#111827;box-shadow:0 10px 30px rgba(15,23,42,.10);
  backdrop-filter:blur(18px) saturate(145%);-webkit-backdrop-filter:blur(18px) saturate(145%);
  font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  isolation:isolate;
}
html[data-apu-theme='dark'] #apu-v624-utilitybar{
  background:rgba(7,9,13,.96)!important;color:#f8fafc!important;border-bottom-color:rgba(255,255,255,.16)!important;
  box-shadow:0 12px 32px rgba(0,0,0,.42)!important;
}
#apu-v624-brand{display:flex;align-items:center;gap:11px;min-width:0;color:inherit;text-decoration:none;flex:0 1 auto}
#apu-v624-brand img{display:block;width:42px;height:42px;flex:0 0 42px;border:2px solid currentColor;border-radius:13px;box-shadow:3px 3px 0 currentColor;object-fit:cover;background:#fff}
#apu-v624-brand-copy{display:grid;gap:2px;min-width:0}
#apu-v624-brand-copy strong{display:block;max-width:min(38vw,420px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:inherit;font-size:14px;font-weight:850;letter-spacing:-.015em}
#apu-v624-brand-copy small{display:block;color:inherit;opacity:.68;font-size:10px;font-weight:750;letter-spacing:.12em;text-transform:uppercase}
#apu-v624-controls-slot{display:flex;align-items:center;justify-content:flex-end;min-width:0;flex:0 1 auto}
#apu-v624-controls-slot #apu-ui-dock-v62,
#apu-v624-controls-slot #apu-ui-dock-v62[data-apu-inline='true']{
  position:static!important;inset:auto!important;z-index:1!important;display:flex!important;align-items:center!important;justify-content:flex-end!important;
  width:auto!important;min-width:0!important;max-width:none!important;margin:0!important;padding:0!important;gap:9px!important;
  border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;
  backdrop-filter:none!important;-webkit-backdrop-filter:none!important;align-self:auto!important;
}
#apu-v624-controls-slot #apu-ui-dock-v62 .apu-ui-brand-v62{display:none!important}
#apu-v624-controls-slot #apu-ui-dock-v62 .apu-ui-theme-v62,
#apu-v624-controls-slot #apu-ui-dock-v62 .apu-ui-language-wrap-v62{
  min-height:46px!important;border:1px solid currentColor!important;border-radius:14px!important;color:inherit!important;
  background:rgba(255,255,255,.72)!important;box-shadow:0 4px 0 rgba(15,23,42,.22)!important;
}
html[data-apu-theme='dark'] #apu-v624-controls-slot #apu-ui-dock-v62 .apu-ui-theme-v62,
html[data-apu-theme='dark'] #apu-v624-controls-slot #apu-ui-dock-v62 .apu-ui-language-wrap-v62{
  color:#f8fafc!important;background:#111827!important;border-color:#475569!important;box-shadow:0 4px 0 rgba(0,0,0,.7)!important;
}
#apu-v624-controls-slot #apu-ui-dock-v62 .apu-ui-theme-v62{flex:0 0 auto!important;min-width:96px!important;padding:0 14px!important;font-weight:800!important}
#apu-v624-controls-slot #apu-ui-dock-v62 .apu-ui-language-wrap-v62{flex:0 1 240px!important;min-width:190px!important;overflow:hidden!important}
#apu-v624-controls-slot #apu-ui-dock-v62 .apu-ui-language-v62{width:100%!important;min-width:190px!important;max-width:240px!important;min-height:44px!important;color:inherit!important;background:transparent!important;font-weight:800!important}
#apu-v624-controls-slot #apu-ui-dock-v62 .apu-ui-language-v62 option{color:#111827!important;background:#fff!important}
html[data-apu-theme='dark'] #apu-v624-controls-slot #apu-ui-dock-v62 .apu-ui-language-v62 option{color:#fff!important;background:#111827!important}
#apu-v624-controls-slot #apu-ui-dock-v62 .apu-ui-language-wrap-v62>svg,
#apu-v624-controls-slot #apu-ui-dock-v62 .apu-ui-language-wrap-v62::after{color:inherit!important}
#apu-v624-controls-slot #apu-ui-dock-v62 .apu-translation-progress-v62{position:absolute;right:8px;bottom:-18px;color:inherit!important;font-size:10px;font-weight:850}
#apu-ui-toast-v62{top:calc(var(--apu-v624-bar-height) + max(12px,env(safe-area-inset-top)))!important;right:max(14px,env(safe-area-inset-right))!important;bottom:auto!important}

/* Consent stays centered at the bottom but reserves its own layout space, so content is never hidden behind it. */
.apu-cookie-panel{
  left:max(16px,env(safe-area-inset-left))!important;right:max(16px,env(safe-area-inset-right))!important;
  bottom:max(16px,env(safe-area-inset-bottom))!important;width:min(1120px,calc(100% - 32px))!important;
  max-height:min(72vh,560px)!important;overflow:auto!important;margin-inline:auto!important;padding:20px!important;gap:22px!important;
  grid-template-columns:minmax(0,1fr) minmax(360px,auto)!important;border:3px solid #101010!important;border-radius:20px!important;
  background:#fff!important;color:#080808!important;box-shadow:10px 10px 0 #101010!important;
}
.apu-cookie-panel,.apu-cookie-panel *{color:#080808!important;text-shadow:none!important}
.apu-cookie-panel__actions{min-width:0!important;width:min(440px,100%)!important;grid-template-columns:1fr 1fr!important;align-self:center!important}
.apu-cookie-panel button{min-height:52px!important;font-size:11px!important;background:#fff!important;color:#080808!important;border-color:#101010!important}
.apu-cookie-panel .apu-cookie-allow{background:#d7d7d7!important}
.apu-cookie-panel a{color:#080808!important;text-decoration-color:#080808!important}

@media(max-width:760px){
  :root{--apu-v624-bar-height:76px}
  #apu-v624-utilitybar{gap:9px;padding:8px max(10px,env(safe-area-inset-right)) 8px max(10px,env(safe-area-inset-left))}
  #apu-v624-brand img{width:38px;height:38px;flex-basis:38px;border-radius:11px;box-shadow:2px 2px 0 currentColor}
  #apu-v624-brand-copy strong{max-width:135px;font-size:12px}
  #apu-v624-brand-copy small{font-size:8px}
  #apu-v624-controls-slot #apu-ui-dock-v62 .apu-ui-theme-v62{min-width:82px!important;padding:0 10px!important}
  #apu-v624-controls-slot #apu-ui-dock-v62 .apu-ui-language-wrap-v62{min-width:142px!important;flex-basis:160px!important}
  #apu-v624-controls-slot #apu-ui-dock-v62 .apu-ui-language-v62{min-width:142px!important;max-width:170px!important;padding-left:39px!important;padding-right:30px!important}
  .apu-cookie-panel{grid-template-columns:1fr!important;gap:14px!important;padding:16px!important;bottom:max(10px,env(safe-area-inset-bottom))!important}
  .apu-cookie-panel__actions{width:100%!important}
}
@media(max-width:480px){
  :root{--apu-v624-bar-height:118px}
  #apu-v624-utilitybar{flex-wrap:wrap;align-content:center}
  #apu-v624-brand{width:100%;justify-content:center}
  #apu-v624-brand-copy strong{max-width:230px}
  #apu-v624-controls-slot{width:100%;justify-content:center}
  #apu-v624-controls-slot #apu-ui-dock-v62,#apu-v624-controls-slot #apu-ui-dock-v62[data-apu-inline='true']{width:100%!important;justify-content:center!important}
  #apu-v624-controls-slot #apu-ui-dock-v62 .apu-ui-theme-v62{flex:1 1 88px!important}
  #apu-v624-controls-slot #apu-ui-dock-v62 .apu-ui-language-wrap-v62{flex:2 1 180px!important;min-width:160px!important}
  #apu-v624-controls-slot #apu-ui-dock-v62 .apu-ui-language-v62{max-width:none!important}
  .apu-cookie-panel__actions{grid-template-columns:1fr!important}
}
@media print{#apu-v624-utilitybar,.apu-cookie-panel{display:none!important}html[data-apu-cookie-open='true'] body{padding-bottom:0!important}}
