#app { min-height: 100dvh; }
.app-shell { min-height: 100dvh; padding: 0 max(1rem, env(safe-area-inset-right)) calc(5.8rem + env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-left)); }
.page { width: min(100%, 1240px); margin: 0 auto; }
.topbar, .studio-topbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 68px; position: relative; z-index: 5; }
.topbar--overlay { margin-bottom: -68px; }
.topbar--solid { border-bottom: 1px solid var(--line); margin-bottom: 1.5rem; }
.brand { display: inline-flex; align-items: center; gap: .65rem; font-weight: 900; letter-spacing: -.035em; }
.brand-logo { height: 28px; width: auto; max-width: min(42vw, 180px); }
.brand-logo--login { height: 42px; max-width: min(80vw, 260px); }
.brand-logo--kicker { height: 16px; max-width: 96px; }
.brand-logo--card { height: 14px; max-width: 72px; filter: drop-shadow(0 1px 5px rgba(0,0,0,.75)); }
.studio-badge { padding-left: .65rem; border-left: 1px solid #555; color: #eee; font-size: .73rem; letter-spacing: .15em; font-weight: 800; }
.studio-brand { display: inline-flex; align-items: center; gap: .65rem; min-width: 0; }
.avatar-button { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 7px; color: #fff; background: linear-gradient(145deg, #6254e8, #282078); }
.bottom-nav { position: fixed; z-index: 30; left: 0; right: 0; bottom: 0; height: calc(64px + env(safe-area-inset-bottom)); padding: 0 max(.5rem, env(safe-area-inset-right)) env(safe-area-inset-bottom) max(.5rem, env(safe-area-inset-left)); display: grid; background: rgba(8,8,8,.94); border-top: 1px solid rgba(255,255,255,.1); backdrop-filter: blur(20px); }
.bottom-nav--2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.bottom-nav--3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.bottom-nav a { min-height: 62px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .2rem; color: #888; font-size: .67rem; font-weight: 700; }
.bottom-nav a[aria-current="page"] { color: #fff; }
.bottom-nav .nav-icon { height: 25px; display: grid; place-items: center; font-size: 1.15rem; }
.bottom-nav a[aria-current="page"] .nav-icon { transform: scale(1.05); }
.login-page { min-height: 100dvh; display: grid; align-items: center; padding: max(1.25rem, env(safe-area-inset-top)) max(1.25rem, env(safe-area-inset-right)) max(1.25rem, env(safe-area-inset-bottom)) max(1.25rem, env(safe-area-inset-left)); background: linear-gradient(180deg, rgba(0,0,0,.35), #080808), radial-gradient(circle at 50% 0%, #3d070b, transparent 48%), var(--bg); }
.login-card { width: min(100%, 450px); margin: auto; border: 1px solid var(--line); border-radius: 10px; background: rgba(12,12,12,.94); padding: clamp(1.6rem, 6vw, 3rem); box-shadow: var(--shadow); }
.login-card > .brand-logo--login { margin-bottom: clamp(2rem, 8vh, 3.5rem); }
.brand--login { margin-bottom: clamp(3rem, 10vh, 5.5rem); }
.login-copy { margin-bottom: 1.6rem; }
.login-copy h1 { font-size: clamp(2rem, 8vw, 3rem); }
.stack { display: grid; gap: 1rem; }
.cluster { display: flex; flex-wrap: wrap; align-items: center; gap: .65rem; }
.loading-page { min-height: 70dvh; display: grid; place-items: center; color: var(--muted); }
.spinner { width: 38px; height: 38px; border: 3px solid var(--line); border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; }
.account-hero { min-height: 220px; display: flex; align-items: center; gap: 1.25rem; padding: 2rem 0; }
.account-hero h1 { margin-bottom: .45rem; }
.account-hero p { margin-bottom: 0; }
.profile-avatar { width: 86px; height: 86px; display: grid; place-items: center; border-radius: 14px; background: linear-gradient(145deg, #6254e8, #21195f); font-size: 2.2rem; }
.profile-avatar svg { stroke-width: 1.2; }
.role-pill { color: #aaa; font-size: .76rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 800; }
.settings-card { border-top: 1px solid var(--line); }
.settings-row { min-height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; border-bottom: 1px solid var(--line); }
.settings-row p { margin: .25rem 0 0; font-size: .84rem; }
.settings-row--link > span { color: #777; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (min-width: 760px) { .app-shell { padding-inline: 2.5rem; } }
@media (min-width: 980px) {
  .app-shell { padding-bottom: 2rem; }
  .page { padding-bottom: 3rem; }
  .bottom-nav { left: 50%; right: auto; bottom: 1rem; transform: translateX(-50%); width: auto; min-width: 310px; height: 54px; padding: 0 .35rem; border: 1px solid var(--line); border-radius: 999px; box-shadow: var(--shadow); }
  .bottom-nav a { min-height: 52px; padding: 0 1.25rem; flex-direction: row; gap: .45rem; font-size: .75rem; }
  .bottom-nav .nav-icon { height: auto; }
}
