#app-root {
  width: min(100%, 1420px);
  max-width: 1420px;
  margin: 0 auto;
  min-height: 100vh;
  background: var(--bg);
}

.app-shell {
  display: grid;
  min-height: 100vh;
  grid-template-columns: 1fr;
}

.app-sidebar {
  display: none;
}

.desktop-shell-header,
.tablet-shell-header,
.tablet-nav-panel,
.tablet-nav-scrim {
  display: none;
}

.app-main {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100vh;
  min-width: 0;
}

.topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 12px 0;
  background: var(--bg);
}

.topbar-copy {
  display: grid;
}

.topbar--branded .topbar-copy {
  display: flex;
  align-items: center;
  gap: 8px;
}

.topbar-logo {
  width: 24px;
  height: 24px;
  object-fit: contain;
  flex: 0 0 auto;
}

.topbar h1 {
  margin: 0;
  color: var(--text);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.1;
}

.topbar--branded h1 {
  color: #527674;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.25;
}




.page-container {
  width: calc(100% - 24px);
  margin: 0 auto;
  padding: 16px 0 36px;
}

.app-footer {
  align-self: end;
  padding: 0 12px 18px;
  color: var(--text-3);
  font-size: 10px;
  font-weight: 500;
  text-align: center;
}

.page-section {
  display: grid;
  gap: 18px;
}

.page-header {
  min-height: 40px;
  padding: 0 2px 10px;
  border-bottom: 1px solid var(--border);
}

.page-header h2 {
  margin: 0;
  color: var(--text);
  font-size: 17px;
  font-weight: 650;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.page-actions,
.toolbar,
.stack {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.grid {
  display: grid;
  gap: 10px;
}

.grid-2,
.grid-3 {
  grid-template-columns: 1fr;
}

.bottom-nav {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 30;
  display: grid;
  grid-auto-columns: minmax(0, 1fr);
  grid-auto-flow: column;
  height: calc(48px + env(safe-area-inset-bottom));
  padding: 0 6px env(safe-area-inset-bottom);
  border-top: 1px solid var(--border);
  background: var(--menu-bg);
  box-shadow: 0 -3px 12px rgb(15 23 42 / 6%);
  backdrop-filter: none;
}

.app-main {
  padding-bottom: calc(48px + env(safe-area-inset-bottom));
}

.bottom-nav__item {
  appearance: none;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-width: 0;
  height: 48px;
  padding: 5px 3px 4px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--text-2);
  font-family: inherit;
  cursor: pointer;
  transition: color 160ms ease, background-color 160ms ease;
}

.bottom-nav__item .menu-icon {
  flex: 0 0 auto;
  color: currentColor;
  font-size: 17px;
  line-height: 1;
}

.bottom-nav__label {
  min-width: 0;
  overflow: hidden;
  font-size: 9px;
  font-weight: 500;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bottom-nav__item::before {
  position: absolute;
  top: 0;
  right: 16%;
  left: 16%;
  height: 2px;
  border-radius: 0 0 999px 999px;
  background: transparent;
  content: "";
  transition: background-color 160ms ease;
}

.bottom-nav__item:hover,
.bottom-nav__item:focus-visible {
  background: var(--active-bg);
  color: var(--teal-dark);
}

.bottom-nav__item.is-active {
  color: var(--teal-dark);
}

.bottom-nav__item.is-active::before {
  background: var(--teal);
}

.bottom-nav__item.is-active .bottom-nav__label {
  font-weight: 700;
}

.bottom-nav__item:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: -2px;
}

.bottom-nav__item--add {
  align-self: start;
  width: 44px;
  height: 44px;
  min-height: 44px;
  margin: 0 auto;
  border: 1px solid #cfe1e0;
  border-radius: 50%;
  background: var(--active-bg);
  color: var(--teal-dark);
  box-shadow: 0 4px 10px rgb(15 23 42 / 10%);
  transform: translateY(-14px);
}

.bottom-nav__item--add:hover,
.bottom-nav__item--add:focus-visible {
  background: var(--surface-hover);
  color: var(--teal-dark);
}

.bottom-nav__item--add .menu-icon {
  font-size: 24px;
}

.mobile-nav-menu {
  --mobile-menu-top-offset: 64px;
  --mobile-menu-bottom-offset: calc(54px + env(safe-area-inset-bottom));
  position: fixed;
  inset: var(--mobile-menu-top-offset) auto var(--mobile-menu-bottom-offset) 0;
  width: min(86vw, 320px);
  max-width: 320px;
  height: auto;
  max-height: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-left: 0;
  border-radius: 0 18px 18px 0;
  background: var(--card);
  color: var(--text);
  box-shadow: 12px 0 30px rgb(15 23 42 / 16%);
}

.mobile-nav-menu::backdrop {
  background: var(--drawer-backdrop);
}

.mobile-nav-menu[open] {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  animation: mobile-drawer-enter 180ms ease-out;
}

@keyframes mobile-drawer-enter {
  from { transform: translateX(-100%); }
  to { transform: translateX(0); }
}

.mobile-nav-menu__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 40px;
  padding: 5px 8px 5px 10px;
  border-bottom: 1px solid var(--border);
  background: var(--card);
}

.mobile-nav-menu__header strong {
  color: var(--text-2);
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.mobile-nav-menu__close {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  min-height: 30px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--surface);
  color: var(--text-2);
}

.mobile-nav-menu__close .menu-icon {
  font-size: 16px;
}

.responsive-menu-nav {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr);
  min-height: 0;
  overflow: hidden;
  background: var(--card);
}

.responsive-menu-nav__sections {
  display: grid;
  align-content: start;
  gap: 2px;
  min-width: 0;
  overflow-y: auto;
  padding: 6px 5px 8px 0;
  border-right: 1px solid var(--border);
  background: var(--surface);
}

.responsive-menu-nav__section {
  position: relative;
  display: grid;
  place-items: center;
  gap: 4px;
  min-height: 50px;
  padding: 5px 4px;
  border: 0;
  border-radius: 0 9px 9px 0;
  background: transparent;
  color: var(--text-2);
  font: inherit;
  line-height: 1.1;
  text-align: center;
  cursor: pointer;
  transition: color 160ms ease, background-color 160ms ease;
}

.responsive-menu-nav__section::before {
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: 0;
  width: 3px;
  border-radius: 0 999px 999px 0;
  background: transparent;
  content: "";
}

.responsive-menu-nav__section-icon {
  color: currentColor;
  font-size: 16px;
  line-height: 1;
}

.responsive-menu-nav__section-label {
  max-width: 100%;
  overflow: hidden;
  font-size: 9.5px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.responsive-menu-nav__section:hover,
.responsive-menu-nav__section:focus-visible {
  background: var(--surface-hover);
  color: var(--text);
}

.responsive-menu-nav__section.is-active {
  background: var(--active-bg);
  color: var(--teal-dark);
}

.responsive-menu-nav__section.is-active::before {
  background: var(--gold);
}

.responsive-menu-nav__section:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: -2px;
}

.responsive-menu-nav__links {
  min-width: 0;
  min-height: 0;
}

.mobile-nav-menu__links {
  display: grid;
  align-content: start;
  gap: 0;
  overflow-y: auto;
  padding: 5px 8px;
  background: var(--card);
}

.mobile-nav-menu__links .nav-link {
  position: relative;
  width: 100%;
  min-height: 39px;
  padding: 7px 7px;
  border: 0;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  background: transparent;
  color: var(--text-2);
  box-shadow: none;
  text-align: left;
}

.mobile-nav-menu__links .nav-link:last-child {
  border-bottom: 0;
}

.mobile-nav-menu__links .nav-link:hover,
.mobile-nav-menu__links .nav-link:focus-visible {
  background: var(--surface-hover);
  color: var(--text);
}

.mobile-nav-menu__links .nav-link.is-active {
  background: var(--active-bg);
  color: var(--teal-dark);
}

.mobile-nav-menu__links .menu-icon {
  width: 20px;
  flex: 0 0 20px;
  color: currentColor;
  font-size: 17px;
  text-align: center;
}

.mobile-nav-menu__links .nav-link-label {
  font-size: 11.5px;
  font-weight: 620;
  line-height: 1.2;
}

.mobile-nav-menu__footer {
  display: grid;
  gap: 5px;
  padding: 7px 8px 8px;
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.mobile-nav-menu__footer .theme-toggle {
  min-height: 32px;
  padding: 3px;
}

.mobile-nav-menu__footer .theme-toggle__option {
  min-height: 24px;
  font-size: 9.5px;
}

.mobile-nav-menu__footer .theme-toggle__option .menu-icon {
  font-size: 13px;
}

.mobile-nav-menu__footer .pwa-install-button {
  min-height: 32px;
  padding: 6px 8px;
  border-radius: 9px;
  font-size: 10.5px;
}

.mobile-nav-menu__footer .pwa-install-button .menu-icon {
  font-size: 15px;
}

.mobile-nav-menu__user {
  min-height: 42px;
  padding: 6px 7px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--card);
}

.mobile-nav-menu__user .person-header {
  gap: 7px;
}

.mobile-nav-menu__user .avatar {
  width: 30px;
  height: 30px;
  font-size: 9.5px;
}

.mobile-nav-menu__user .person-title strong {
  font-size: 11px;
  font-weight: 680;
}

.mobile-nav-menu__user .person-title span {
  font-size: 9.5px;
}

.mobile-nav-menu__logout {
  width: 100%;
  min-height: 32px;
  padding: 6px 8px;
  border-radius: 9px;
  color: var(--danger-text);
  font-family: inherit;
  font-size: 10.5px;
  font-weight: 650;
  cursor: pointer;
}

.mobile-nav-menu__logout .menu-icon {
  font-size: 15px;
}

html[data-theme="dark"] .mobile-nav-menu {
  background: var(--card);
  box-shadow: 12px 0 34px rgb(0 0 0 / 36%);
}

html[data-theme="dark"] .mobile-nav-menu__header,
html[data-theme="dark"] .mobile-nav-menu__links {
  background: var(--card);
}

html[data-theme="dark"] .responsive-menu-nav__sections,
html[data-theme="dark"] .mobile-nav-menu__footer {
  background: var(--surface);
}

@media (min-width: 700px) {
  .grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1200px) {
  #app-root {
    --desktop-sidebar-width: 210px;
    --desktop-header-height: 56px;
    --desktop-chrome-bg: #007e7a;
    --desktop-chrome-border: rgb(255 255 255 / 14%);
    --desktop-content-bg: #edf2f1;
    --desktop-content-bg-top: #e7efed;
    --desktop-sidebar-shadow: 8px 0 22px rgb(20 55 54 / 12%);
    --desktop-header-shadow: 0 8px 20px rgb(20 55 54 / 9%);
    box-shadow: 0 0 0 1px rgb(15 23 42 / 4%), 0 18px 54px rgb(15 23 42 / 7%);
  }

  html[data-theme="dark"] #app-root {
    --desktop-chrome-bg: #171d26;
    --desktop-chrome-border: rgb(154 177 187 / 16%);
    --desktop-content-bg: #141821;
    --desktop-content-bg-top: #18202a;
    --desktop-sidebar-shadow: 8px 0 24px rgb(0 0 0 / 28%);
    --desktop-header-shadow: 0 8px 22px rgb(0 0 0 / 24%);
    box-shadow: 0 0 0 1px rgb(255 255 255 / 4%), 0 20px 58px rgb(0 0 0 / 26%);
  }

  .app-shell {
    grid-template-columns: var(--desktop-sidebar-width) minmax(0, 1fr);
    grid-template-rows: var(--desktop-header-height) minmax(0, 1fr);
    grid-template-areas:
      "sidebar desktop-header"
      "sidebar main";
  }

  .app-sidebar {
    grid-area: sidebar;
    position: sticky;
    top: 0;
    z-index: 24;
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: var(--desktop-sidebar-width);
    min-height: 100vh;
    max-height: 100vh;
    padding: 14px 10px 12px;
    overflow: hidden;
    border-right: 1px solid var(--desktop-chrome-border);
    background: var(--desktop-chrome-bg);
    color: #ffffff;
    box-shadow: var(--desktop-sidebar-shadow);
  }

  .desktop-shell-header {
    grid-area: desktop-header;
    position: sticky;
    top: 0;
    z-index: 22;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-width: 0;
    height: var(--desktop-header-height);
    padding: 0 18px;
    border-bottom: 1px solid var(--desktop-chrome-border);
    background: var(--desktop-chrome-bg);
    color: #ffffff;
    box-shadow: var(--desktop-header-shadow);
  }

  .desktop-shell-header__page {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
  }

  .desktop-shell-header__page--compact {
    gap: 0;
  }

  .desktop-shell-header__title {
    overflow: hidden;
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.15;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .desktop-shell-header__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    flex: 0 0 auto;
    border: 1px solid rgb(255 255 255 / 18%);
    border-radius: 8px;
    background: rgb(255 255 255 / 10%);
    color: #ffffff;
  }

  .desktop-shell-header__icon i {
    font-size: 16px;
  }

  .desktop-shell-header__copy {
    display: grid;
    gap: 1px;
    min-width: 0;
    line-height: 1.15;
  }

  .desktop-shell-header__copy strong {
    overflow: hidden;
    color: #ffffff;
    font-size: 13px;
    font-weight: 680;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .desktop-shell-header__copy span {
    color: rgb(255 255 255 / 68%);
    font-size: 10px;
    font-weight: 600;
  }

  .desktop-shell-header__logo {
    width: auto;
    height: 30px;
    flex: 0 0 auto;
    object-fit: contain;
  }

  .app-main {
    grid-area: main;
    min-height: calc(100vh - var(--desktop-header-height));
    padding-bottom: 0;
    background: linear-gradient(
      180deg,
      var(--desktop-content-bg-top) 0,
      var(--desktop-content-bg) 180px
    );
  }

  .topbar {
    display: none;
  }

  .page-container {
    width: calc(100% - 44px);
    padding: 18px 0 40px;
  }

  .app-footer {
    padding-inline: 22px;
  }

  .grid-3 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .bottom-nav {
    display: none;
  }
}
@media (max-width: 1199px) {
  body {
    background: radial-gradient(circle at 18% 8%, rgb(255 255 255 / 92%) 0%, rgb(246 249 248 / 72%) 28%, transparent 56%), linear-gradient(145deg, #f6f8f7 0%, #edf2f1 48%, #dde7e6 100%);
  }

  #app-root,
  .app-shell,
  .app-main {
    background: transparent;
  }

  .app-content {
    background: linear-gradient(180deg, rgb(255 255 255 / 18%), rgb(255 255 255 / 6%));
  }

  html[data-theme="dark"] .app-content {
    background: var(--bg);
  }

  .bottom-nav {
    right: 0;
    bottom: 0;
    left: 0;
    height: calc(54px + env(safe-area-inset-bottom));
    padding: 0 8px env(safe-area-inset-bottom);
    border: 0;
    border-top: 1px solid #e1e8e7;
    border-radius: 0;
    background: #ffffff;
    box-shadow: 0 -8px 24px rgb(31 46 48 / 10%);
    backdrop-filter: none;
  }

  html[data-theme="dark"] .bottom-nav {
    border-top-color: rgb(255 255 255 / 8%);
    background: #1b2029;
    box-shadow: 0 -8px 24px rgb(0 0 0 / 34%);
  }

  .bottom-nav__item {
    min-height: 54px;
    border-radius: 0;
  }

  .bottom-nav__item--add {
    width: 50px;
    height: 50px;
    min-height: 50px;
    border: 2px solid #C0305E;
    border-radius: 50%;
    background: #ffffff;
    color: #C0305E;
    box-shadow: 0 6px 16px rgb(31 46 48 / 12%);
  }

  .bottom-nav__item--add .menu-icon {
    font-size: 30px;
  }

  .bottom-nav__item::before {
    display: none;
  }

  .bottom-nav__item:hover,
  .bottom-nav__item:focus-visible,
  .bottom-nav__item.is-active {
    background: rgb(0 137 128 / 12%);
  }

  html[data-theme="dark"] .bottom-nav__item:hover,
  html[data-theme="dark"] .bottom-nav__item:focus-visible,
  html[data-theme="dark"] .bottom-nav__item.is-active {
    background: var(--active-bg);
  }
}
.mobile-dashboard-topbar {
  display: none;
}

@media (max-width: 1199px) {
  .mobile-dashboard-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: calc(100% - 24px);
    min-height: 54px;
    margin: 14px auto 0;
    padding: 8px 12px;
    border: 1px solid rgb(255 255 255 / 52%);
    border-radius: 20px;
    background: rgb(255 255 255 / 68%);
    box-shadow: 0 14px 34px rgb(15 23 42 / 12%), inset 0 1px 0 rgb(255 255 255 / 70%);
    backdrop-filter: none;
  }

  html[data-theme="dark"] .mobile-dashboard-topbar {
    border-color: rgb(255 255 255 / 14%);
    background: var(--card);
    box-shadow: 0 16px 36px rgb(0 0 0 / 32%), inset 0 1px 0 rgb(255 255 255 / 10%);
  }

  .mobile-dashboard-topbar__brand {
    display: flex;
    align-items: center;
    min-width: 0;
    gap: 10px;
  }

  .mobile-dashboard-topbar__logo {
    width: 28px;
    height: 28px;
    object-fit: contain;
    flex: 0 0 auto;
  }

  .mobile-dashboard-topbar__brand strong {
    overflow: hidden;
    color: var(--text);
    font-size: 17px;
    font-weight: 700;
    line-height: 1.1;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mobile-dashboard-topbar__profile {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border: 1px solid rgb(255 255 255 / 44%);
    border-radius: 50%;
    background: rgb(255 255 255 / 44%);
    color: var(--teal-dark);
    text-decoration: none;
    flex: 0 0 auto;
  }

  html[data-theme="dark"] .mobile-dashboard-topbar__profile {
    border-color: rgb(255 255 255 / 14%);
    background: var(--surface);
  }

  .mobile-dashboard-topbar__profile .avatar {
    width: 30px;
    height: 30px;
    font-size: 11px;
  }

  .page-container {
    padding-top: 12px;
  }
}
@media (max-width: 1199px) {
  .mobile-dashboard-topbar {
    min-height: 50px;
    padding: 7px 11px;
    background: rgb(255 255 255 / 46%);
    box-shadow: 0 12px 30px rgb(15 23 42 / 10%), inset 0 1px 0 rgb(255 255 255 / 54%);
  }

  .bottom-nav__item--add:hover,
  .bottom-nav__item--add:focus-visible,
  .bottom-nav__item--add.is-active {
    background: #ffffff;
    color: #C0305E;
  }

  html[data-theme="dark"] .mobile-dashboard-topbar {
    background: var(--card);
  }

  .mobile-dashboard-topbar__profile {
    background: rgb(255 255 255 / 30%);
  }
}
@media (max-width: 1199px) {
  .mobile-dashboard-topbar {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    min-height: 50px;
    padding: 7px 11px;
    background: rgb(255 255 255 / 42%);
  }

  html[data-theme="dark"] .mobile-dashboard-topbar {
    border-color: rgb(255 255 255 / 18%);
    background: var(--card);
    color: #eef7f7;
  }

  .mobile-dashboard-topbar__copy {
    display: grid;
    min-width: 0;
    gap: 3px;
  }

  .mobile-dashboard-topbar__line {
    display: flex;
    align-items: baseline;
    min-width: 0;
    gap: 5px;
    white-space: nowrap;
  }

  .mobile-dashboard-topbar__line strong {
    color: var(--text);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.05;
  }

  .mobile-dashboard-topbar__line span,
  .mobile-dashboard-topbar__copy p {
    margin: 0;
    overflow: hidden;
    color: var(--text-2);
    font-size: 10px;
    line-height: 1.1;
    text-overflow: ellipsis;
  }

  html[data-theme="dark"] .mobile-dashboard-topbar__line strong {
    color: #f2fbfb;
  }

  html[data-theme="dark"] .mobile-dashboard-topbar__line span,
  html[data-theme="dark"] .mobile-dashboard-topbar__copy p {
    color: rgb(222 236 238 / 88%);
  }
}
@media (max-width: 1199px) {
  .mobile-dashboard-topbar {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .mobile-dashboard-topbar__profile {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border: 1px solid rgb(255 255 255 / 34%);
    border-radius: 50%;
    background: rgb(255 255 255 / 26%);
    color: var(--teal-dark);
    text-decoration: none;
  }

  html[data-theme="dark"] .mobile-dashboard-topbar__profile {
    border-color: rgb(255 255 255 / 16%);
    background: var(--surface);
  }

  .mobile-dashboard-topbar__profile .avatar {
    width: 29px;
    height: 29px;
    font-size: 10.5px;
  }
}
@media (max-width: 1199px) {
  .page-container > .page-section > .mobile-dashboard-topbar {
    width: 100%;
    margin: 0;
    box-sizing: border-box;
  }
}
@media (max-width: 1199px) {
  html[data-theme="dark"] .mobile-dashboard-topbar__profile .avatar:not(img) {
    border-color: rgb(154 219 214 / 22%);
    background: var(--active-bg);
    color: #f3a3bd;
    box-shadow: inset 0 1px 0 rgb(255 255 255 / 8%);
  }
}
/* Rodapé e menu mobile no visual de vidro. */
@media (max-width: 1199px) {
  .app-main {
    padding-bottom: calc(82px + env(safe-area-inset-bottom));
  }

  .app-footer {
    width: calc(100% - 24px);
    margin: 8px auto calc(78px + env(safe-area-inset-bottom));
    padding: 8px 10px;
    border: 1px solid rgb(255 255 255 / 42%);
    border-radius: 999px;
    background: rgb(255 255 255 / 42%);
    box-shadow: 0 10px 24px rgb(15 23 42 / 10%), inset 0 1px 0 rgb(255 255 255 / 52%);
    color: rgb(42 58 65 / 82%);
    font-size: 9.5px;
    line-height: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    backdrop-filter: none;
  }

  html[data-theme="dark"] .app-footer {
    border-color: rgb(255 255 255 / 14%);
    background: var(--surface);
    color: rgb(222 236 238 / 76%);
    box-shadow: 0 12px 28px rgb(0 0 0 / 24%), inset 0 1px 0 rgb(255 255 255 / 8%);
  }

}
/* Correção: rodapé simples e menu sem atraso visual no mobile. */
@media (max-width: 1199px) {
  .app-footer {
    width: auto;
    margin: 0 12px calc(74px + env(safe-area-inset-bottom));
    padding: 0 0 8px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: rgb(42 58 65 / 76%);
    font-size: 10px;
    line-height: 1.25;
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
    backdrop-filter: none;
  }

  html[data-theme="dark"] .app-footer {
    border: 0;
    background: transparent;
    box-shadow: none;
    color: rgb(222 236 238 / 70%);
  }

}
/* Ajuste final do rodapé mobile claro. */
@media (max-width: 1199px) {
  .app-footer {
    margin: 0 12px 18px;
    padding: 0 0 4px;
    color: #ffffff;
  }
}
@media (max-width: 1199px) {
  .bottom-nav {
    height: calc(54px + env(safe-area-inset-bottom));
    padding: 0 8px env(safe-area-inset-bottom);
    border-color: #e1e8e7;
    border-radius: 0;
    background: #ffffff;
    box-shadow: 0 -8px 24px rgb(31 46 48 / 10%);
    backdrop-filter: none;
  }

  .bottom-nav__item {
    height: 54px;
    color: #40524f;
  }

  .bottom-nav__item:hover,
  .bottom-nav__item:focus-visible,
  .bottom-nav__item.is-active {
    background: rgb(0 115 129 / 11%);
    color: #C0305E;
  }

  .bottom-nav__item--add {
    width: 50px;
    height: 50px;
    min-height: 50px;
    border: 2px solid #C0305E;
    border-radius: 50%;
    background: #ffffff;
    color: #C0305E;
    box-shadow: 0 6px 16px rgb(31 46 48 / 12%);
    transform: translateY(-14px);
  }

  .bottom-nav__item--add:hover,
  .bottom-nav__item--add:focus-visible {
    background: #ffffff;
    color: #C0305E;
  }

  .bottom-nav__item--add .menu-icon {
    font-size: 30px;
  }

  .app-footer {
    color: rgb(50 67 70 / 78%);
    text-shadow: 0 1px 0 rgb(255 255 255 / 64%);
  }

  html[data-theme="dark"] body {
    background:
      radial-gradient(circle at 18% 8%, rgb(0 115 129 / 18%) 0%, transparent 42%),
      linear-gradient(145deg, #242b36 0%, #0b1117 54%, #05090d 100%);
  }

  html[data-theme="dark"] .bottom-nav {
    border-color: rgb(255 255 255 / 8%);
    background: #1b2029;
    box-shadow: 0 -8px 24px rgb(0 0 0 / 34%);
  }

  html[data-theme="dark"] .bottom-nav__item {
    color: rgb(222 236 238 / 82%);
  }

  html[data-theme="dark"] .bottom-nav__item:hover,
  html[data-theme="dark"] .bottom-nav__item:focus-visible,
  html[data-theme="dark"] .bottom-nav__item.is-active {
    background: var(--active-bg);
    color: #f2fbfb;
  }

  html[data-theme="dark"] .bottom-nav__item--add {
    border: 2px solid #f3a3bd;
    background: var(--surface);
    color: #f3a3bd;
    box-shadow: 0 8px 20px rgb(0 0 0 / 28%), inset 0 1px 0 rgb(255 255 255 / 8%);
  }

  html[data-theme="dark"] .bottom-nav__item--add:hover,
  html[data-theme="dark"] .bottom-nav__item--add:focus-visible {
    background: var(--surface);
    color: #f3a3bd;
  }

  html[data-theme="dark"] .app-footer {
    color: rgb(222 236 238 / 72%);
    text-shadow: none;
  }
}
@media (max-width: 1199px) {
  body::before,
  body::after {
    position: fixed;
    z-index: -1;
    pointer-events: none;
    content: "";
  }

  body::before {
    top: 78px;
    left: 50%;
    width: min(118vw, 520px);
    height: min(118vw, 520px);
    background: linear-gradient(145deg, rgb(255 255 255 / 38%), rgb(212 225 224 / 30%));
    clip-path: polygon(0 27%, 23% 14%, 43% 24%, 58% 54%, 93% 18%, 100% 21%, 47% 96%);
    filter: none;
    opacity: 0.72;
    transform: translateX(-50%) rotate(-7deg);
    box-shadow: inset 18px 18px 28px rgb(255 255 255 / 66%), inset -20px -24px 34px rgb(131 151 151 / 18%);
  }

  body::after {
    top: 70px;
    left: 52%;
    width: min(82vw, 360px);
    height: min(34vw, 150px);
    background: linear-gradient(145deg, rgb(255 255 255 / 46%), rgb(218 229 226 / 34%));
    clip-path: polygon(0 64%, 22% 38%, 56% 20%, 80% 0, 100% 18%, 83% 62%, 55% 84%, 25% 82%);
    filter: none;
    opacity: 0.68;
    transform: translateX(-50%) rotate(-7deg);
    box-shadow: inset 14px 14px 22px rgb(255 255 255 / 70%), inset -16px -18px 26px rgb(131 151 151 / 16%);
  }

  html[data-theme="dark"] body::before {
    background: linear-gradient(145deg, rgb(154 219 214 / 9%), rgb(255 255 255 / 4%));
    filter: none;
    opacity: 0.52;
    box-shadow: inset 18px 18px 28px rgb(255 255 255 / 5%), inset -20px -24px 34px rgb(0 0 0 / 24%);
  }

  html[data-theme="dark"] body::after {
    background: linear-gradient(145deg, rgb(154 219 214 / 10%), rgb(255 255 255 / 5%));
    filter: none;
    opacity: 0.48;
    box-shadow: inset 14px 14px 22px rgb(255 255 255 / 5%), inset -16px -18px 26px rgb(0 0 0 / 22%);
  }
}
@media (max-width: 1199px) {
  body {
    position: relative;
  }

  body::before,
  body::after {
    top: 48dvh;
    left: 50%;
    z-index: 0;
    width: 24px;
    height: 24px;
    transform-origin: center;
  }

  body::before {
    background: linear-gradient(145deg, rgb(255 255 255 / 76%) 0%, rgb(226 236 235 / 58%) 45%, rgb(156 181 180 / 34%) 100%);
    clip-path: path("M21.91 8.05C13.601 15.511 10.343 -2.138 0 4.541L11.655 21 21.91 8.05z");
    opacity: 0.86;
    transform: translateX(-50%) scale(7.75) rotate(-5deg);
    filter: none;
  }

  body::after {
    background: linear-gradient(145deg, rgb(255 255 255 / 82%) 0%, rgb(229 238 236 / 62%) 48%, rgb(165 188 185 / 38%) 100%);
    clip-path: path("M12.779 7.636c5.5 -2.092 8.397 -5.323 11.221 -2.552 0 0 -1.105 1.88 -2.09 2.966 -1.567 1.728 -2.582 2.45 -4.566 2.482s-4.565 -2.896 -4.565 -2.896z");
    opacity: 0.9;
    transform: translateX(-50%) scale(7.75) rotate(-5deg);
    filter: none;
  }

  #app-root {
    position: relative;
    z-index: 1;
  }

  html[data-theme="dark"] body::before {
    background: linear-gradient(145deg, rgb(154 219 214 / 13%), rgb(255 255 255 / 5%));
    opacity: 0.58;
    filter: none;
  }

  html[data-theme="dark"] body::after {
    background: linear-gradient(145deg, rgb(154 219 214 / 15%), rgb(255 255 255 / 6%));
    opacity: 0.62;
    filter: none;
  }
}
@media (max-width: 1199px) {
  body::before,
  body::after {
    width: 28px;
    height: 26px;
  }

  body::before {
    background:
      radial-gradient(circle at 28% 20%, rgb(255 255 255 / 72%) 0%, transparent 30%),
      linear-gradient(145deg, rgb(230 248 246 / 80%) 0%, rgb(151 210 205 / 58%) 42%, rgb(0 115 129 / 28%) 100%);
    opacity: 0.9;
    filter: none;
  }

  body::after {
    background:
      radial-gradient(circle at 24% 22%, rgb(255 255 255 / 78%) 0%, transparent 34%),
      linear-gradient(145deg, rgb(255 248 220 / 86%) 0%, rgb(244 218 128 / 54%) 48%, rgb(168 129 22 / 26%) 100%);
    opacity: 0.94;
    filter: none;
  }

  html[data-theme="dark"] body::before,
  html[data-theme="dark"] body::after {
    width: 24px;
    height: 24px;
  }
}
@media (max-width: 1199px) {
  .mobile-dashboard-topbar__meta {
    display: flex;
    align-items: center;
    min-width: 0;
    gap: 7px;
  }

  .mobile-dashboard-topbar__meta span:first-child {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mobile-dashboard-topbar__separator {
    color: rgb(0 115 129 / 62%);
    font-size: 14px;
    line-height: 1;
  }

  .mobile-dashboard-topbar__count {
    flex: 0 0 auto;
    color: rgb(39 74 76 / 82%);
    font-weight: 650;
  }

  html[data-theme="dark"] .mobile-dashboard-topbar__separator {
    color: rgb(154 219 214 / 62%);
  }

  html[data-theme="dark"] .mobile-dashboard-topbar__count {
    color: rgb(222 236 238 / 88%);
  }
}

@media (max-width: 1199px) {
  .page-header,
  .panel,
  .hero-card,
  .metric-card,
  .table-card,
  .empty-card,
  .central-toolbar,
  .central-filters,
  .central-summary,
  .central-composer,
  .central-directory,
  .central-scope,
  .central-role-card,
  .central-role-panel,
  .profile-hero,
  .profile-card,
  .profile-roster-card,
  .movements-table-wrap,
  .history-snapshot,
  .history-table-scroll {
    border: 1px solid rgb(255 255 255 / 54%);
    background: rgb(255 255 255 / 58%);
    box-shadow: 0 14px 34px rgb(31 46 48 / 11%), inset 0 1px 0 rgb(255 255 255 / 68%);
    backdrop-filter: none;
  }

  .central-summary,
  .central-directory,
  .history-snapshot,
  .history-table-scroll,
  .movements-table-wrap {
    overflow: hidden;
  }

  .central-row__main:hover,
  .history-table tbody tr:hover,
  .movements-table tbody tr:hover {
    background: rgb(255 255 255 / 34%);
  }

  .central-row__editor,
  .central-composer__body {
    background: rgb(255 255 255 / 32%);
  }

  html[data-theme="dark"] .page-header,
  html[data-theme="dark"] .panel,
  html[data-theme="dark"] .hero-card,
  html[data-theme="dark"] .metric-card,
  html[data-theme="dark"] .table-card,
  html[data-theme="dark"] .empty-card,
  html[data-theme="dark"] .central-toolbar,
  html[data-theme="dark"] .central-filters,
  html[data-theme="dark"] .central-summary,
  html[data-theme="dark"] .central-composer,
  html[data-theme="dark"] .central-directory,
  html[data-theme="dark"] .central-scope,
  html[data-theme="dark"] .central-role-card,
  html[data-theme="dark"] .central-role-panel,
  html[data-theme="dark"] .profile-hero,
  html[data-theme="dark"] .profile-card,
  html[data-theme="dark"] .profile-roster-card,
  html[data-theme="dark"] .movements-table-wrap,
  html[data-theme="dark"] .history-snapshot,
  html[data-theme="dark"] .history-table-scroll {
    border-color: var(--border);
    background: var(--card);
    box-shadow: 0 16px 36px rgb(0 0 0 / 30%), inset 0 1px 0 rgb(255 255 255 / 8%);
  }

  html[data-theme="dark"] .central-row__main:hover,
  html[data-theme="dark"] .history-table tbody tr:hover,
  html[data-theme="dark"] .movements-table tbody tr:hover {
    background: var(--active-bg);
  }

  html[data-theme="dark"] .central-row__editor,
  html[data-theme="dark"] .central-composer__body {
    background: var(--surface);
  }
}
@media (max-width: 1199px) {
  .bottom-nav__item::before {
    display: block;
    top: 3px;
    right: 28%;
    left: 28%;
    height: 3px;
    border-radius: 999px;
    background: transparent;
    content: "";
  }

  .bottom-nav__item:hover,
  .bottom-nav__item:focus-visible,
  .bottom-nav__item.is-active {
    background: transparent;
  }

  .bottom-nav__item.is-active {
    color: #C0305E;
  }

  .bottom-nav__item.is-active::before {
    background: #C0305E;
  }

  .bottom-nav__item:not(.is-active):hover,
  .bottom-nav__item:not(.is-active):focus-visible {
    color: #C0305E;
  }

  html[data-theme="dark"] .bottom-nav__item:hover,
  html[data-theme="dark"] .bottom-nav__item:focus-visible,
  html[data-theme="dark"] .bottom-nav__item.is-active {
    background: transparent;
  }

  html[data-theme="dark"] .bottom-nav__item.is-active {
    color: #f3a3bd;
  }

  html[data-theme="dark"] .bottom-nav__item.is-active::before {
    background: #C0305E;
  }

  html[data-theme="dark"] .bottom-nav__item:not(.is-active):hover,
  html[data-theme="dark"] .bottom-nav__item:not(.is-active):focus-visible {
    color: #f3a3bd;
  }
}

.mobile-dashboard-topbar__search,
.mobile-dashboard-topbar__user,
.mobile-dashboard-topbar__chevron {
  display: none;
}





















@media (max-width: 1199px) {
  .hamburger-icon {
    display: grid;
    gap: 5px;
    width: 24px;
    color: currentColor;
  }

  .hamburger-icon__line {
    display: block;
    width: 100%;
    height: 2.5px;
    border-radius: 999px;
    background: currentColor;
    transform-origin: center;
    transition: transform 150ms ease, opacity 110ms ease;
  }

  .bottom-nav__item[aria-expanded="true"] .hamburger-icon__line:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
  }

  .bottom-nav__item[aria-expanded="true"] .hamburger-icon__line:nth-child(2) {
    opacity: 0;
  }

  .bottom-nav__item[aria-expanded="true"] .hamburger-icon__line:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
  }
}








.app-footer {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

html[data-theme="dark"] .app-footer {
  border: 0;
  background: transparent;
  box-shadow: none;
}

@media (max-width: 1199px) {
  .app-footer {
    width: auto;
    margin: 4px 16px 16px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: rgb(50 67 70 / 76%);
    text-shadow: 0 1px 0 rgb(255 255 255 / 58%);
  }

  html[data-theme="dark"] .app-footer {
    color: rgb(222 236 238 / 70%);
    text-shadow: none;
  }
}









.pwa-install-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 36px;
  padding: 8px 10px;
  border: 1px solid rgb(0 126 123 / 18%);
  border-radius: 12px;
  background: rgb(0 126 123 / 8%);
  color: var(--teal-dark);
  font-family: inherit;
  font-size: 12px;
  font-weight: 760;
  line-height: 1;
  cursor: pointer;
  transition: border-color 160ms ease, background-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.pwa-install-button:hover,
.pwa-install-button:focus-visible {
  border-color: rgb(0 126 123 / 30%);
  background: rgb(0 126 123 / 12%);
  color: #035f5e;
  transform: translateY(-1px);
}

.pwa-install-button:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}

.pwa-install-button:disabled {
  cursor: default;
  opacity: 0.72;
  transform: none;
}

.pwa-install-button.is-installed {
  border-color: rgb(82 115 111 / 18%);
  background: rgb(82 115 111 / 8%);
  color: var(--text-2);
}

.pwa-install-button .menu-icon {
  flex: 0 0 auto;
  color: currentColor;
  font-size: 18px;
}


html[data-theme="dark"] .pwa-install-button {
  border-color: rgb(154 219 214 / 16%);
  background: rgb(154 219 214 / 9%);
  color: #eef6f5;
}

html[data-theme="dark"] .pwa-install-button:hover,
html[data-theme="dark"] .pwa-install-button:focus-visible {
  border-color: rgb(154 219 214 / 24%);
  background: rgb(154 219 214 / 13%);
  color: #f2fbfb;
}

html[data-theme="dark"] .pwa-install-button.is-installed {
  border-color: rgb(222 236 238 / 10%);
  background: rgb(255 255 255 / 5%);
  color: rgb(222 236 238 / 72%);
}

/* FAB central da navegacao mobile. */
@media (max-width: 1199px) {
  .bottom-nav {
    height: calc(50px + env(safe-area-inset-bottom));
    padding: 0 10px env(safe-area-inset-bottom);
  }

  .bottom-nav .bottom-nav__item {
    height: 50px;
    min-height: 50px;
  }

  .bottom-nav .bottom-nav__item--add {
    align-self: start;
    width: 46px;
    height: 46px;
    min-height: 46px;
    margin: 0 auto;
    padding: 0;
    border: 2px solid #C0305E;
    border-radius: 50%;
    background: #ffffff;
    color: #C0305E;
    box-shadow: 0 7px 16px rgb(31 46 48 / 12%);
    transform: translateY(-10px);
  }

  .bottom-nav .bottom-nav__item--add:hover,
  .bottom-nav .bottom-nav__item--add:focus-visible,
  .bottom-nav .bottom-nav__item--add.is-active {
    background: #ffffff;
    color: #C0305E;
  }

  .bottom-nav .bottom-nav__item--add::before {
    display: none;
  }

  .bottom-nav .bottom-nav__item--add .menu-icon {
    font-size: 28px;
    line-height: 1;
  }

  html[data-theme="dark"] .bottom-nav .bottom-nav__item--add {
    border-color: #f3a3bd;
    background: var(--surface);
    color: #f3a3bd;
  }

  html[data-theme="dark"] .bottom-nav .bottom-nav__item--add:hover,
  html[data-theme="dark"] .bottom-nav .bottom-nav__item--add:focus-visible,
  html[data-theme="dark"] .bottom-nav .bottom-nav__item--add.is-active {
    background: var(--surface);
    color: #f3a3bd;
  }
}

/* Botao adicionar mobile no estilo alvo. */
@media (max-width: 1199px) {
  .bottom-nav .bottom-nav__item--add {
    width: 54px;
    height: 54px;
    min-height: 54px;
    border: 3px solid #ffffff;
    border-radius: 50%;
    background: #C0305E;
    color: #C0305E;
    box-shadow: 0 8px 18px rgb(31 46 48 / 18%);
    transform: translateY(-15px);
  }

  .bottom-nav .bottom-nav__item--add:hover,
  .bottom-nav .bottom-nav__item--add:focus-visible,
  .bottom-nav .bottom-nav__item--add.is-active {
    background: #C0305E;
    color: #C0305E;
  }

  .bottom-nav .bottom-nav__item--add::after {
    position: absolute;
    inset: 13px;
    border-radius: 50%;
    background: #ffffff;
    content: "";
  }

  .bottom-nav .bottom-nav__item--add .menu-icon {
    position: relative;
    z-index: 1;
    color: #C0305E;
    font-size: 25px;
    font-weight: 700;
    line-height: 1;
  }

  html[data-theme="dark"] .bottom-nav .bottom-nav__item--add,
  html[data-theme="dark"] .bottom-nav .bottom-nav__item--add:hover,
  html[data-theme="dark"] .bottom-nav .bottom-nav__item--add:focus-visible,
  html[data-theme="dark"] .bottom-nav .bottom-nav__item--add.is-active {
    border-color: #ffffff;
    background: #C0305E;
    color: #C0305E;
  }
}



@media (max-width: 1199px) {
  .bottom-nav {
    border-color: #d9e7e3;
    background: #ffffff;
    box-shadow: 0 -8px 22px rgb(31 46 48 / 12%);
  }

  .bottom-nav__item.is-active::before {
    background: #c0305e;
  }

  .bottom-nav__item:not(.bottom-nav__item--add):hover,
  .bottom-nav__item:not(.bottom-nav__item--add):focus-visible,
  .bottom-nav__item:not(.bottom-nav__item--add).is-active {
    background: transparent;
    color: #c0305e;
  }

  html[data-theme="dark"] .bottom-nav {
    border-color: var(--border);
    background: var(--card);
    box-shadow: 0 -8px 24px rgb(0 0 0 / 38%);
  }

  html[data-theme="dark"] .bottom-nav__item:not(.bottom-nav__item--add):hover,
  html[data-theme="dark"] .bottom-nav__item:not(.bottom-nav__item--add):focus-visible,
  html[data-theme="dark"] .bottom-nav__item:not(.bottom-nav__item--add).is-active {
    background: transparent;
    color: #ff9fba;
  }

  html[data-theme="dark"] .bottom-nav .bottom-nav__item--add,
  html[data-theme="dark"] .bottom-nav .bottom-nav__item--add:hover,
  html[data-theme="dark"] .bottom-nav .bottom-nav__item--add:focus-visible,
  html[data-theme="dark"] .bottom-nav .bottom-nav__item--add.is-active {
    border-color: var(--card);
    background: #c0305e;
    color: #c0305e;
  }
}

/* Fundo mobile solido, sem desenho decorativo. */
@media (max-width: 1199px) {
  body {
    background: var(--outer-bg);
  }

  body::before,
  body::after {
    display: none;
    content: none;
  }

  .app-content {
    background: var(--bg);
  }
}

/* Tablet: mesma arquitetura visual do mobile, com mais espaço útil. */
@media (min-width: 700px) and (max-width: 1199px) {
  #app-root {
    width: 100%;
    max-width: none;
  }

  .app-main {
    padding-bottom: calc(62px + env(safe-area-inset-bottom));
  }

  .page-container {
    width: calc(100% - 32px);
    padding: 16px 0 34px;
  }

  .topbar {
    padding: 18px 16px 0;
  }

  .bottom-nav {
    position: fixed;
    top: auto;
    right: 0;
    bottom: 0;
    left: 0;
    display: grid;
    width: 100%;
    height: calc(60px + env(safe-area-inset-bottom));
    padding: 0 max(16px, env(safe-area-inset-left)) env(safe-area-inset-bottom) max(16px, env(safe-area-inset-right));
    border: 0;
    border-top: 1px solid #e1e8e7;
    border-radius: 0;
    background: #ffffff;
    box-shadow: 0 -8px 24px rgb(31 46 48 / 10%);
  }

  html[data-theme="dark"] .bottom-nav {
    border-top-color: rgb(255 255 255 / 8%);
    background: #1b2029;
    box-shadow: 0 -8px 24px rgb(0 0 0 / 34%);
  }

  .bottom-nav .bottom-nav__item:not(:last-child) {
    display: flex;
  }

  .bottom-nav .bottom-nav__item {
    width: auto;
    height: 60px;
    min-height: 60px;
    padding: 6px 4px 5px;
    border-radius: 0;
  }

  .bottom-nav .bottom-nav__item .menu-icon {
    font-size: 20px;
  }

  .bottom-nav .bottom-nav__label {
    display: block;
    font-size: 10px;
  }

  .bottom-nav .bottom-nav__item--add {
    align-self: start;
    width: 54px;
    height: 54px;
    min-height: 54px;
    margin-inline: auto;
    padding: 0;
    border: 2px solid #C0305E;
    border-radius: 50%;
    transform: translateY(-14px);
  }

  .bottom-nav .bottom-nav__item--add .menu-icon {
    font-size: 31px;
  }

  .bottom-nav .bottom-nav__item:last-child .hamburger-icon {
    width: 22px;
  }

  .app-footer {
    margin-bottom: 18px;
  }

}

/* Tablet: navegação própria em formato de drawer abaixo do header. */
@media (min-width: 600px) and (min-height: 600px) and (max-width: 1199px),
       (min-width: 800px) and (min-height: 480px) and (max-width: 1199px) and (orientation: landscape) and (max-aspect-ratio: 2/1) {
  #app-root {
    --tablet-header-height: 68px;
    --tablet-menu-width: clamp(316px, 34vw, 356px);
  }

  .app-main {
    padding-bottom: 0;
  }

  .topbar,
  .bottom-nav {
    display: none;
  }

  .tablet-shell-header {
    position: sticky;
    top: 0;
    z-index: 45;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    min-height: var(--tablet-header-height);
    padding: 8px 20px;
    border-bottom: 1px solid rgb(255 255 255 / 18%);
    background: #007e7a;
    color: #ffffff;
    box-shadow: 0 4px 14px rgb(20 55 54 / 13%);
  }

  .tablet-shell-header__menu {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid rgb(255 255 255 / 22%);
    border-radius: 10px;
    background: rgb(255 255 255 / 9%);
    color: #ffffff;
    cursor: pointer;
    transition: background-color 160ms ease, border-color 160ms ease;
  }

  .tablet-shell-header__menu:hover,
  .tablet-shell-header__menu:focus-visible,
  .tablet-shell-header__menu[aria-expanded="true"] {
    border-color: rgb(255 255 255 / 38%);
    background: rgb(255 255 255 / 17%);
  }

  .tablet-shell-header__menu:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
  }

  .tablet-shell-header__menu .hamburger-icon {
    display: grid;
    gap: 4px;
    width: 20px;
    color: currentColor;
  }

  .tablet-shell-header__menu .hamburger-icon__line {
    display: block;
    width: 100%;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    transform-origin: center;
    transition: transform 180ms cubic-bezier(.4, 0, .2, 1), opacity 130ms ease;
  }

  .tablet-shell-header__menu[aria-expanded="true"] .hamburger-icon__line:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }

  .tablet-shell-header__menu[aria-expanded="true"] .hamburger-icon__line:nth-child(2) {
    opacity: 0;
  }

  .tablet-shell-header__menu[aria-expanded="true"] .hamburger-icon__line:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }

  .tablet-shell-header__copy {
    display: grid;
    gap: 3px;
    min-width: 0;
  }

  .tablet-shell-header__copy strong {
    overflow: hidden;
    color: #ffffff;
    font-size: 19px;
    font-weight: 720;
    line-height: 1.05;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .tablet-shell-header__copy span {
    overflow: hidden;
    color: rgb(230 248 246 / 86%);
    font-size: 10.5px;
    font-weight: 600;
    line-height: 1.1;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .tablet-shell-header__logo {
    width: auto;
    height: 31px;
    object-fit: contain;
  }

  .tablet-nav-scrim:not([hidden]) {
    position: fixed;
    inset: var(--tablet-header-height) 0 0;
    z-index: 38;
    display: block;
    width: 100%;
    height: auto;
    padding: 0;
    border: 0;
    background: rgb(10 27 30 / 20%);
    cursor: default;
  }

  .tablet-nav-panel:not([hidden]) {
    position: fixed;
    top: var(--tablet-header-height);
    bottom: 0;
    left: 0;
    z-index: 40;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    width: min(var(--tablet-menu-width), calc(100vw - 40px));
    max-height: none;
    overflow: hidden;
    border: 0;
    border-right: 1px solid #dce5e4;
    border-radius: 0;
    background: #f8faf9;
    color: var(--text);
    box-shadow: 18px 0 42px rgb(15 23 42 / 18%);
    animation: tablet-menu-drawer-enter 200ms cubic-bezier(.2, .8, .2, 1) both;
  }

  .tablet-nav-panel__header {
    display: grid;
    align-content: center;
    min-height: 52px;
    padding: 10px 14px 9px;
    border-bottom: 1px solid #e1e8e7;
    background: #ffffff;
  }

  .tablet-nav-panel__header div {
    display: grid;
    gap: 4px;
  }

  .tablet-nav-panel__header strong {
    color: #203433;
    font-size: 11px;
    font-weight: 740;
    line-height: 1;
    letter-spacing: .08em;
    text-transform: uppercase;
  }

  .tablet-nav-panel__header span {
    color: #6d7f7d;
    font-size: 10.5px;
    font-weight: 520;
    line-height: 1.2;
  }

  .tablet-nav-panel .responsive-menu-nav {
    grid-template-columns: 108px minmax(0, 1fr);
  }

  .tablet-nav-panel .responsive-menu-nav__sections {
    padding: 7px 6px 10px 0;
  }

  .tablet-nav-panel .responsive-menu-nav__section {
    min-height: 52px;
    padding-inline: 4px;
    font-size: 11.5px;
  }

  .tablet-nav-panel .responsive-menu-nav__section-icon {
    font-size: 17px;
  }

  .tablet-nav-panel .responsive-menu-nav__section-label {
    font-size: 10px;
  }

  .tablet-nav-panel__links {
    display: grid;
    grid-template-columns: 1fr;
    align-content: start;
    gap: 0;
    overflow-y: auto;
    padding: 6px 9px 10px;
    scrollbar-gutter: stable;
  }

  .tablet-nav-panel__links .nav-link {
    position: relative;
    min-height: 42px;
    padding: 0 9px;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: #435755;
    box-shadow: none;
    text-decoration: none;
  }

  .tablet-nav-panel__links .nav-link::before {
    position: absolute;
    top: 8px;
    bottom: 8px;
    left: 0;
    width: 3px;
    border-radius: 0 999px 999px 0;
    background: transparent;
    content: "";
  }

  .tablet-nav-panel__links .nav-link:hover,
  .tablet-nav-panel__links .nav-link:focus-visible {
    background: #edf4f3;
    color: #173f3d;
  }

  .tablet-nav-panel__links .nav-link.is-active {
    background: #e5f1ef;
    color: #005f5c;
  }

  .tablet-nav-panel__links .nav-link.is-active::before {
    background: #007e7a;
  }

  .tablet-nav-panel__links .nav-link:focus-visible {
    outline: 2px solid rgb(0 126 122 / 34%);
    outline-offset: -2px;
  }

  .tablet-nav-panel__links .menu-icon {
    width: 20px;
    flex: 0 0 20px;
    color: #6b7d7b;
    font-size: 18px;
    text-align: center;
  }

  .tablet-nav-panel__links .nav-link:hover .menu-icon,
  .tablet-nav-panel__links .nav-link:focus-visible .menu-icon,
  .tablet-nav-panel__links .nav-link.is-active .menu-icon {
    color: #007e7a;
  }

  .tablet-nav-panel__links .nav-link-label {
    font-size: 12.5px;
    font-weight: 620;
    line-height: 1.2;
  }

  .tablet-nav-panel__footer {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "theme install"
      "user logout";
    gap: 6px 8px;
    padding: 9px 11px 10px;
    border-top: 1px solid #e1e8e7;
    background: #ffffff;
  }

  .tablet-nav-panel__footer > * {
    min-width: 0;
  }

  .tablet-nav-panel__footer .theme-toggle {
    grid-area: theme;
    min-height: 34px;
    padding: 3px;
    border-radius: 10px;
    background: #f2f6f5;
  }

  .tablet-nav-panel__footer .theme-toggle__option {
    min-height: 26px;
    border-radius: 7px;
    font-size: 10.5px;
    font-weight: 620;
  }

  .tablet-nav-panel__footer .pwa-install-button {
    grid-area: install;
    width: auto;
    min-height: 34px;
    padding-inline: 10px;
    border-radius: 9px;
    font-size: 10.5px;
    font-weight: 650;
    white-space: nowrap;
  }

  .tablet-nav-panel__user {
    grid-area: user;
    min-height: 42px;
    padding: 3px 2px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    box-shadow: none;
  }

  .tablet-nav-panel__user:hover,
  .tablet-nav-panel__user:focus-visible {
    background: #f2f6f5;
    box-shadow: none;
    transform: none;
  }

  .tablet-nav-panel__user .person-header {
    gap: 9px;
  }

  .tablet-nav-panel__user .avatar {
    width: 32px;
    height: 32px;
    font-size: 10px;
  }

  .tablet-nav-panel__user .person-title strong {
    font-size: 11.5px;
    font-weight: 680;
  }

  .tablet-nav-panel__user .person-title span {
    font-size: 10.5px;
  }

  .tablet-nav-panel__logout {
    grid-area: logout;
    align-self: center;
    width: auto;
    min-height: 34px;
    padding: 7px 9px;
    border-color: transparent;
    border-radius: 9px;
    background: transparent;
    font-size: 10.5px;
    white-space: nowrap;
  }

  html[data-theme="dark"] .tablet-shell-header {
    border-bottom-color: rgb(154 177 187 / 16%);
    background: #171d26;
    box-shadow: 0 5px 16px rgb(0 0 0 / 26%);
  }

  html[data-theme="dark"] .tablet-nav-scrim:not([hidden]) {
    background: rgb(0 0 0 / 34%);
  }

  html[data-theme="dark"] .tablet-nav-panel:not([hidden]) {
    border-right-color: #303844;
    background: #1b2029;
    box-shadow: 18px 0 44px rgb(0 0 0 / 40%);
  }

  html[data-theme="dark"] .tablet-nav-panel__header,
  html[data-theme="dark"] .tablet-nav-panel__footer {
    border-color: #303844;
    background: #171d26;
  }

  html[data-theme="dark"] .tablet-nav-panel__header strong {
    color: #9adbd6;
  }

  html[data-theme="dark"] .tablet-nav-panel__header span {
    color: rgb(222 236 238 / 72%);
  }

  html[data-theme="dark"] .tablet-nav-panel__links .nav-link {
    color: rgb(222 236 238 / 80%);
  }

  html[data-theme="dark"] .tablet-nav-panel__links .nav-link:hover,
  html[data-theme="dark"] .tablet-nav-panel__links .nav-link:focus-visible {
    background: #252c36;
    color: #f2fbfb;
  }

  html[data-theme="dark"] .tablet-nav-panel__links .nav-link.is-active {
    background: #243736;
    color: #bce9e5;
  }

  html[data-theme="dark"] .tablet-nav-panel__links .menu-icon {
    color: rgb(222 236 238 / 58%);
  }

  html[data-theme="dark"] .tablet-nav-panel__links .nav-link:hover .menu-icon,
  html[data-theme="dark"] .tablet-nav-panel__links .nav-link:focus-visible .menu-icon,
  html[data-theme="dark"] .tablet-nav-panel__links .nav-link.is-active .menu-icon {
    color: #9adbd6;
  }

  html[data-theme="dark"] .tablet-nav-panel__footer .theme-toggle {
    border-color: #303844;
    background: #202630;
  }

  html[data-theme="dark"] .tablet-nav-panel__footer .theme-toggle__option.is-active,
  html[data-theme="dark"] .tablet-nav-panel__user:hover,
  html[data-theme="dark"] .tablet-nav-panel__user:focus-visible {
    background: #2a323d;
  }

  html[data-theme="dark"] .tablet-nav-panel__user {
    color: #f2fbfb;
  }
}

@keyframes tablet-menu-drawer-enter {
  from {
    opacity: .72;
    transform: translateX(-18px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .tablet-shell-header__menu .hamburger-icon__line {
    transition: none;
  }

  .tablet-nav-panel:not([hidden]) {
    animation: none;
  }
}

