.app-shell > #cabecalho-app { position: sticky; top: 0; z-index: 20; padding-top: env(safe-area-inset-top, 0px); background: var(--ep-color-canvas); }
.topbar { min-height: 60px; display: flex; align-items: center; justify-content: space-between; gap: var(--ep-space-3); padding: 0 var(--ep-space-4); border-bottom: 1px solid var(--ep-color-border); background: var(--ep-color-surface); }
.brand { color: var(--ep-color-action-primary); font-size: 1.25rem; font-weight: 800; text-decoration: none; letter-spacing: -.04em; }
.brand span { color: var(--ep-color-text-primary); }
.topbar--app { min-height: 60px; padding-inline: var(--ep-space-5); border-bottom-color: transparent; background: var(--ep-color-canvas); }
.topbar--detail { justify-content: space-between; }
.topbar__back-title { min-width: 0; display: flex; align-items: center; gap: var(--ep-space-3); }
.topbar__brand { display: inline-flex; align-items: center; gap: 9px; color: var(--ep-color-text-primary); letter-spacing: 0; text-decoration: none; }
.topbar__brand-logo { display: block; width: 150px; height: auto; border-radius: var(--ep-radius-md); }
html[data-theme="dark"] .topbar__brand-logo { box-sizing: content-box; padding: 1px; background: #fff; }
.topbar__brand-mark { width: 36px; height: 36px; display: grid; flex: 0 0 36px; place-items: center; border: 1px solid var(--ep-color-border); border-radius: var(--ep-radius-md); background: var(--ep-purple-900); color: var(--ep-color-on-brand); box-shadow: var(--ep-shadow-soft); }
.topbar__brand .topbar__brand-mark { color: var(--ep-color-on-brand); }
.topbar__brand-mark svg { width: 20px; height: 20px; fill: currentColor; }
.topbar__brand-copy { display: grid; gap: 3px; }
.topbar__wordmark { display: flex; align-items: center; color: var(--ep-color-text-primary); font-size: 18px; font-weight: 800; line-height: 1; letter-spacing: -.045em; }
.topbar__wordmark span { margin-left: 2px; color: var(--ep-color-action-primary); }
.topbar__app-label { color: var(--ep-color-text-secondary); font-size: var(--ep-type-micro); font-weight: 700; line-height: 1; letter-spacing: .09em; text-transform: uppercase; }
.topbar__actions { display: flex; align-items: center; gap: var(--ep-space-2); }
.topbar-credit-balance { min-height: 36px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid var(--ep-color-border); border-radius: var(--ep-radius-full); padding: 0 10px; background: var(--ep-color-highlight-soft); color: var(--ep-color-action-primary); font-size: var(--ep-type-micro); font-weight: 750; white-space: nowrap; }
.topbar--app .topbar-credit-balance { min-height: 36px; gap: 5px; padding: 3px 9px 3px 5px; font-size: var(--ep-type-micro); }
.topbar-credit-balance__coin { width: 22px; height: 22px; display: grid; flex: 0 0 22px; place-items: center; border-radius: 50%; background: var(--ep-color-action-primary); color: var(--ep-color-on-action); }
.topbar-credit-balance__coin svg { width: 14px; height: 14px; }
.topbar-credit-balance__value { color: var(--ep-color-text-primary); font-size: var(--ep-type-micro); font-weight: 800; font-variant-numeric: tabular-nums; }
.topbar-credit-balance__plus { margin-left: -3px; color: var(--ep-color-action-primary); font-size: .9rem; font-weight: 900; line-height: 1; }
.topbar--app .topbar-profile { position: relative; width: 44px; height: 44px; flex: 0 0 44px; display: grid; place-items: center; border-radius: 50%; background: var(--ep-color-surface); }
.topbar--app .topbar-profile .bottom-nav__avatar { width: 32px; height: 32px; border: 0; background: var(--ep-color-surface-soft); }
.topbar-profile__presence { position: absolute; right: -1px; bottom: -1px; width: 8px; height: 8px; border: 1.5px solid var(--ep-color-surface); border-radius: 50%; background: var(--ep-color-success); }
.topbar--login { min-height: 60px; justify-content: flex-start; gap: 12px; border-bottom-color: transparent; background: var(--ep-color-canvas); }
.topbar__route-title { overflow: hidden; margin: 0; color: var(--ep-color-text-primary); font-size: var(--ep-type-label); font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.topbar-back { display: grid; width: 44px; height: 44px; place-items: center; border: 1px solid var(--ep-color-border); border-radius: 50%; background: var(--ep-color-surface); color: var(--ep-purple-800); }
.topbar-back svg { width: 20px; height: 20px; }
.topbar-back:focus-visible { outline: 3px solid var(--ep-color-focus); outline-offset: 3px; }
.topbar-back:active { transform: scale(.98); background: var(--ep-color-highlight-soft); }
.topbar-profile, .home-profile { display: grid; width: 48px; height: 48px; flex: 0 0 48px; place-items: center; border-radius: 50%; background: var(--ep-color-highlight-soft); color: var(--ep-purple-800); text-decoration: none; }
.topbar-profile svg, .home-profile svg { width: 23px; height: 23px; }
.topbar-profile:focus-visible, .home-profile:focus-visible { outline: 3px solid var(--ep-color-focus); outline-offset: 2px; }
.bottom-nav { position: fixed; z-index: 20; left: 50%; bottom: calc(8px + env(safe-area-inset-bottom, 16px)); display: grid; width: min(calc(100% - 24px), 520px); grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; padding: 6px; transform: translateX(-50%); border: 1px solid var(--ep-color-border); border-radius: var(--ep-radius-lg); background: var(--ep-color-surface); box-shadow: var(--ep-shadow-soft); }
.bottom-nav__item { min-width: 0; min-height: 56px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; border: 0; border-radius: var(--ep-radius-sm); padding: 3px 2px; background: transparent; color: var(--ep-color-text-secondary); font: inherit; text-decoration: none; cursor: pointer; }
.bottom-nav__item[aria-current="page"] { background: var(--ep-color-highlight-soft); color: var(--ep-color-action-primary); }
html[data-theme="dark"] .bottom-nav__item[aria-current="page"] .bottom-nav__label { color: var(--ep-color-text-primary); }
.bottom-nav__icon { position: relative; display: grid; place-items: center; }
.bottom-nav__icon svg { width: 20px; height: 20px; }
.bottom-nav__item[data-notice-link][data-count]:not([data-count="0"]) .bottom-nav__icon::after { content: attr(data-count); position: absolute; top: -5px; right: -8px; display: grid; min-width: 18px; min-height: 18px; place-items: center; border: 2px solid var(--ep-color-surface); border-radius: var(--ep-radius-full); padding: 0 3px; background: var(--ep-color-error); color: var(--ep-color-on-brand); font-size: var(--ep-type-micro); font-weight: 750; line-height: 1; }
.bottom-nav__item[aria-disabled="true"] { color: var(--ep-color-text-secondary); cursor: not-allowed; }
.bottom-nav__label { max-width: 100%; overflow: hidden; font-size: var(--ep-type-micro); line-height: 1.2; text-overflow: ellipsis; white-space: nowrap; }
.bottom-nav__avatar { position: relative; isolation: isolate; display: grid; width: 38px; height: 38px; overflow: hidden; place-items: center; border: 1.5px solid currentColor; border-radius: 50%; background: var(--ep-color-highlight-soft); }
.bottom-nav__avatar > svg { position: absolute; inset: 0; width: 20px; height: 20px; margin: auto; }
.bottom-nav__avatar > img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; border-radius: inherit; }
.bottom-nav__avatar-fallback { font-size: var(--ep-type-micro); font-weight: 800; }
.bottom-nav__item:focus-visible { outline: 3px solid var(--ep-color-focus); outline-offset: 2px; }
@media (max-width: 380px) { .topbar { min-height: 56px; padding-inline: 12px; } .topbar--app { min-height: 56px; } .topbar__brand { gap: 7px; } .topbar__brand-logo { width: 110px; } .topbar__brand-mark { width: 34px; height: 34px; flex-basis: 34px; } .topbar__brand-mark svg { width: 19px; height: 19px; } .topbar__wordmark { font-size: 16px; } .topbar__actions { gap: 7px; } .topbar--app .topbar-credit-balance { min-height: 34px; padding: 2px 7px 2px 4px; } .topbar--app .topbar-profile .bottom-nav__avatar { width: 30px; height: 30px; } }
@media (min-width: 381px) and (max-width: 640px) { .topbar__brand-logo { width: 130px; } }
@media (max-width: 340px) { .topbar__app-label { display: none; } .topbar__wordmark { font-size: 15px; } .topbar--app { padding-inline: 10px; } .topbar__actions { gap: 5px; } }
