#app { position: fixed; inset: 0; display: flex; flex-direction: column; }

#view {
  flex: 1; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; outline: none;
  padding-bottom: calc(var(--nav-h) + var(--safe-bottom) + 24px);
}
#view.full { overflow: hidden; padding-bottom: calc(var(--nav-h) + var(--safe-bottom)); display: flex; flex-direction: column; }

.page { display: flex; flex-direction: column; gap: 16px; padding: calc(var(--safe-top) + 16px) 18px 0; max-width: 560px; margin: 0 auto; }
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; }
.page-title { font-size: 28px; font-weight: 800; letter-spacing: -.5px; }
.row { display: flex; align-items: center; gap: 12px; }
.col { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.grow { flex: 1; min-width: 0; }
.section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: -6px; }
.section-head h2 { font-size: 16px; font-weight: 700; }
.section-head a, .section-head button { font-size: 13px; font-weight: 600; color: var(--violet-soft); }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }

/* Barre de navigation */
#navbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  height: calc(var(--nav-h) + var(--safe-bottom)); padding: 6px 6px var(--safe-bottom);
  background: rgba(13, 13, 19, .92); border-top: 1px solid var(--line-soft);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
}
