#app { min-height: 100vh; }
.shell { min-height: 100vh; padding-bottom: calc(var(--nav-height) + env(safe-area-inset-bottom) + 18px); }
.topbar { position: sticky; z-index: 20; top: 0; display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); min-height: 68px; padding: calc(10px + env(safe-area-inset-top)) max(18px, env(safe-area-inset-left)) 10px max(18px, env(safe-area-inset-right)); background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: blur(18px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: .75rem; font: 700 1.18rem/1 Georgia, serif; }
.brand-mark { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50% 50% 48% 52% / 58% 45% 55% 42%; color: #fff; background: var(--brand); box-shadow: inset 0 0 0 1px rgba(255,255,255,.25); font: 700 1.15rem/1 Georgia, serif; transform: rotate(-4deg); }
.top-actions { display: flex; align-items: center; gap: .4rem; }
.content { width: min(100%, var(--content-max)); margin: 0 auto; padding: 22px max(18px, env(safe-area-inset-left)) 40px max(18px, env(safe-area-inset-right)); }
.bottom-nav { position: fixed; z-index: 30; left: max(10px, env(safe-area-inset-left)); right: max(10px, env(safe-area-inset-right)); bottom: max(8px, env(safe-area-inset-bottom)); display: grid; grid-template-columns: repeat(5, 1fr); align-items: end; min-height: var(--nav-height); padding: 8px 6px; border: 1px solid var(--line); border-radius: 25px; background: color-mix(in srgb, var(--paper-strong) 94%, transparent); backdrop-filter: blur(24px); box-shadow: var(--shadow); }
.nav-item { display: flex; min-width: 0; min-height: 54px; align-items: center; justify-content: center; flex-direction: column; gap: 4px; border: 0; border-radius: 17px; background: transparent; color: var(--ink-soft); font-size: .66rem; }
.nav-item .nav-icon { font-size: 1.15rem; line-height: 1; }
.nav-item[aria-current="page"] { color: var(--brand); background: var(--brand-soft); }
.nav-create { width: 54px; height: 54px; justify-self: center; align-self: center; margin-top: -22px; border: 0; border-radius: 50%; color: #fff; background: var(--brand); box-shadow: 0 9px 22px rgba(164,71,45,.35); font-size: 1.8rem; }
.page-head { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin: 4px 0 26px; }
.page-head p { color: var(--ink-soft); margin: .65rem 0 0; }
.grid { display: grid; gap: 16px; }
.grid.two { grid-template-columns: repeat(2, minmax(0,1fr)); }
.grid.four { grid-template-columns: repeat(4, minmax(0,1fr)); }
.section { margin-top: 34px; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 14px; }
.section-head h2, .section-head h3 { margin: 0; }
.auth-shell { display: grid; min-height: 100vh; place-items: center; padding: max(28px, env(safe-area-inset-top)) 18px max(28px, env(safe-area-inset-bottom)); background: radial-gradient(circle at 88% 8%, var(--brand-soft), transparent 38%), var(--paper); }
.auth-card { width: min(100%, 480px); padding: clamp(24px,6vw,46px); border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--paper-strong); box-shadow: var(--shadow); }
.auth-card .brand-mark { width: 54px; height: 54px; margin-bottom: 26px; font-size: 1.5rem; }
.auth-card h1 { font-size: 2.6rem; }
.splash { display: grid; min-height: 100vh; place-content: center; justify-items: center; gap: 12px; color: var(--ink-soft); }
.splash .brand-mark { width: 58px; height: 58px; animation: breathe 1.6s ease-in-out infinite alternate; }
@keyframes breathe { to { transform: rotate(3deg) scale(1.06); } }
@media (min-width: 820px) {
  .shell { padding: 0 0 0 96px; }
  .bottom-nav { top: 18px; bottom: 18px; left: 16px; right: auto; width: 70px; grid-template-columns: 1fr; grid-template-rows: repeat(5,1fr); }
  .nav-create { margin: 0; order: 3; }
  .topbar { padding-left: 30px; }
  .content { padding-top: 36px; }
}
@media (max-width: 600px) { .grid.four { grid-template-columns: repeat(2,minmax(0,1fr)); } .grid.two { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { *,*::before,*::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; } }

