.form-honeypot{
    position:absolute!important;
    left:-10000px!important;
    top:auto!important;
    width:1px!important;
    height:1px!important;
    overflow:hidden!important;
}
.cookie-consent-panel{
    position:fixed;
    z-index:1200;
    left:max(16px,env(safe-area-inset-left));
    right:max(16px,env(safe-area-inset-right));
    bottom:max(16px,env(safe-area-inset-bottom));
    max-width:920px;
    margin:0 auto;
    padding:18px;
    border:1px solid var(--border,#d8e1de);
    border-radius:18px;
    background:var(--surface,#fff);
    box-shadow:0 18px 60px rgba(15,43,36,.18);
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:20px;
}
.cookie-consent-panel[hidden]{display:none!important}
.cookie-consent-panel p{margin:6px 0;font-size:.92rem;line-height:1.5}
.cookie-consent-panel a{text-decoration:underline;text-underline-offset:2px}
.cookie-consent-actions{display:flex;gap:10px;flex:0 0 auto}
.footer-cookie-button{
    appearance:none;
    border:0;
    padding:0;
    background:none;
    color:inherit;
    font:inherit;
    cursor:pointer;
    text-decoration:underline;
    text-underline-offset:2px;
}
@media (max-width:720px){
    .cookie-consent-panel{align-items:stretch;flex-direction:column}
    .cookie-consent-actions{display:grid;grid-template-columns:1fr}
    .cookie-consent-actions .button{width:100%}
}

/* UI/UX Faz 13 — consent remains equally actionable without swallowing mobile screens. */
@media(max-width:720px){
  .cookie-consent-panel{
    left:max(8px,env(safe-area-inset-left));
    right:max(8px,env(safe-area-inset-right));
    bottom:max(8px,env(safe-area-inset-bottom));
    max-height:min(52dvh,330px);
    overflow-y:auto;
    overscroll-behavior:contain;
    gap:10px;
    padding:13px 14px;
    border-radius:14px;
  }
  .cookie-consent-panel>div:first-child{min-width:0}
  .cookie-consent-panel p{margin:4px 0;font-size:.82rem;line-height:1.4}
  .cookie-consent-panel a{font-size:.82rem;line-height:1.4}
  .cookie-consent-actions{
    width:100%;
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:8px;
  }
  .cookie-consent-actions .button{
    min-height:48px;
    padding:8px 10px;
    white-space:normal;
    line-height:1.3;
    font-size:.82rem;
  }
  /* Fixed mobile navigation cannot compete with an unanswered privacy choice. */
  body:has(.cookie-consent-panel:not([hidden])) :is(.workspace-mobile-nav,.profile-save-bar,.capability-save-bar){
    visibility:hidden;
    pointer-events:none;
  }
  body:has(.cookie-consent-panel:not([hidden])) .mobile-sticky-actions{
    position:static;
  }
}
@media(max-width:350px){
  .cookie-consent-panel{max-height:55dvh;padding:11px 12px}
  .cookie-consent-actions{grid-template-columns:1fr}
  .cookie-consent-actions .button{min-height:44px}
}
