.mobile-dock { display: none; }

@media (max-width: 840px), (pointer: coarse) and (max-width: 1024px) and (max-height: 520px) {
  html:has(.conta-demo) {
    scroll-padding-block-end: calc(90px + env(safe-area-inset-bottom, 0px));
  }
  .conta-demo {
    --dock-space: calc(86px + env(safe-area-inset-bottom, 0px));
  }
  .conta-demo:not(.rail-compact), .conta-demo.rail-compact { --rail: 0px; }
  .conta-demo .sidebar, .account-heading .where { display: none; }
  .conta-demo .account-heading {
    padding-top: env(safe-area-inset-top, 0px);
    background: #faf9f6;
    border-color: #dfe2dd;
  }
  .account-heading .heading-inner {
    min-height: 60px;
    justify-content: space-between;
    padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
    padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
  }
  .account-heading .phone-brand {
    display: flex;
    min-height: 44px;
    align-items: center;
    border-radius: 5px;
  }
  .account-heading .phone-brand .word-logo { width: 98px; }
  .account-heading .head-tools { gap: 9px; }
  .account-heading .demo-badge {
    border: 0;
    padding: 0;
    color: #58676b;
    font-weight: 480;
    font-size: .77rem;
  }
  .account-heading .notification {
    margin: 0 -5px 0 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
  }
  .account-heading .notification .nav-icon { width: 21px; height: 21px; }
  .mobile-dock {
    position: fixed;
    z-index: 21;
    left: max(12px, env(safe-area-inset-left, 0px));
    right: max(12px, env(safe-area-inset-right, 0px));
    bottom: calc(9px + env(safe-area-inset-bottom, 0px));
    margin-inline: auto;
    max-width: 425px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: stretch;
    gap: 3px;
    padding: 5px;
    border-radius: 24px;
    border: 1px solid #d4dad8;
    background: #f7f8f5;
    box-shadow: 0 6px 27px #0f2b3a24, inset 0 1px 0 #fff;
  }
  .mobile-dock .dock-item {
    width: auto;
    height: auto;
    min-width: 0;
    min-height: 51px;
    margin: 0;
    padding: 5px 2px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    color: #4b5b60;
    border: 0;
    border-radius: 18px;
    background: transparent;
    font: 500 .75rem/1.12 var(--sans);
    text-decoration: none;
    touch-action: manipulation;
  }
  .mobile-dock .dock-item .nav-icon { width: 20px; height: 20px; stroke-width: 1.55; }
  .mobile-dock .dock-item[aria-current="page"],
  .mobile-dock .dock-item[aria-expanded="true"] { background: #19323c; color: #fbfcf9; }
  .mobile-dock .dock-item:active { background: #e2e8e7; color: #203942; }
  .mobile-dock .dock-item:focus-visible { outline-offset: -3px; outline-color: #699aaf; }
  .conta-demo .private-foot {
    padding-bottom: var(--dock-space);
  }
  .conta-demo:has(dialog[open]) .mobile-dock { opacity: 0; pointer-events: none; }
  #nav-drawer {
    width: min(338px, 88vw);
    border-right: 1px solid #cdd7d8;
    background: #f7f7f2;
    padding-block: env(safe-area-inset-top, 0px) 0;
    padding-left: env(safe-area-inset-left, 0px);
    box-shadow: 12px 0 55px #0817202b;
  }
  #nav-drawer::backdrop { background: #0c1f29a3; }
  #nav-drawer .rail-head {
    padding: 15px 17px 13px 22px;
    min-height: 78px;
    border-bottom: 1px solid #dce2df;
  }
  #nav-drawer .rail-head .word-logo { width: 109px; }
  #nav-drawer .rail-toggle { width: 44px; height: 44px; border-radius: 50%; }
  #nav-drawer .rail-head, #nav-drawer .rail-person { flex-shrink: 0; }
  #nav-drawer .side-nav { overscroll-behavior: contain; padding: 20px 13px; }
  #nav-drawer .side-group h2 { font-size: .81rem; color: #526267; }
  #nav-drawer .side-nav a { min-height: 46px; font-size: .98rem; border-radius: 12px; }
  #nav-drawer .rail-person { padding-bottom: calc(14px + env(safe-area-inset-bottom, 0px)); }
}

@media (pointer: coarse) and (min-width: 651px) and (max-width: 1024px) and (max-height: 520px) {
  .conta-demo { --dock-space: calc(69px + env(safe-area-inset-bottom, 0px)); }
  .mobile-dock { bottom: calc(5px + env(safe-area-inset-bottom, 0px)); max-width: 410px; padding: 3px; }
  .mobile-dock .dock-item { flex-direction: row; min-height: 44px; gap: 7px; }
  .account-heading .heading-inner { min-height: 48px; }
  #nav-drawer .rail-head { min-height: 50px; padding-block: 3px; }
  #nav-drawer .rail-person { min-height: 50px; padding-top: 6px; padding-bottom: calc(6px + env(safe-area-inset-bottom, 0px)); }
}

@media (max-width: 650px) {
  #shell[data-route="inicio"] .account-heading { background: #0c222c; border-color: transparent; }
  #shell[data-route="inicio"] .account-heading .demo-badge { color: #b8c9cd; }
  #shell[data-route="inicio"] .account-heading .notification { color: #e1ecee; }
  #shell[data-route="inicio"] .account-heading .notification:hover { background: #ffffff15; }
}
