#app { max-width: 640px; margin: 0 auto; min-height: 100vh; padding-bottom: calc(var(--nav-h) + var(--safe-b) + 16px); }
body.has-dock #app { padding-bottom: calc(var(--nav-h) + var(--safe-b) + 360px); }
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 12px; padding: calc(10px + var(--safe-t)) 16px 10px; background: rgba(14,14,16,.94); border-bottom: 1px solid var(--linha); backdrop-filter: blur(6px); }
.topbar .brand { flex: 1; min-width: 0; }
.topbar h1 { font-size: 1.15rem; color: var(--ouro); letter-spacing: .14em; line-height: 1.1; }
.topbar .sub { font-size: .78rem; color: var(--osso-dim); }
.back { min-width: 48px; min-height: 48px; border: 1px solid var(--linha); background: var(--aco); border-radius: var(--radius); font-size: 1.3rem; cursor: pointer; }
main { padding: 14px 16px 8px; outline: none; }
.section-title { font-size: 1.05rem; margin: 22px 0 10px; color: var(--osso); border-bottom: 1px solid var(--linha); padding-bottom: 6px; }
.bottomnav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: grid; grid-template-columns: repeat(4, 1fr); max-width: 640px; margin: 0 auto; height: calc(var(--nav-h) + var(--safe-b)); padding-bottom: var(--safe-b); background: rgba(18,18,21,.97); border-top: 1px solid var(--linha); }
.bottomnav a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; text-decoration: none; color: var(--osso-dim); font-size: .74rem; min-height: 56px; }
.bottomnav a svg { width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.bottomnav a[aria-current="page"] { color: var(--ouro); }
.dock { position: fixed; left: 0; right: 0; bottom: calc(var(--nav-h) + var(--safe-b)); z-index: 25; max-width: 640px; margin: 0 auto; padding: 14px 16px 16px; background: linear-gradient(180deg, #1c1d22, #121316); border-top: 3px solid var(--bronze); box-shadow: 0 -12px 28px rgba(0,0,0,.55); }
.dock.ph-run { border-top-color: var(--ouro); } .dock.ph-rest { border-top-color: var(--gelo); } .dock.ph-done, .dock.ph-restDone { border-top-color: var(--musgo); }
