/* ===== Global layout: stage > shell(profile + content), floating nav, theme toggle ===== */
/* .stage { position: relative; z-index: 1; height: 100dvh; display: flex; align-items: center; justify-content: center; padding: 0 96px 0 24px; } */
/* .shell {
  display: flex; width: min(1280px, 100%); height: min(calc(100dvh - 96px), 760px); min-height: 480px;
  border-radius: var(--radius-xl); box-shadow: var(--shadow);
} */

.stage {
  position: relative;
  z-index: 1;
  height: 100dvh;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;

  padding: 0 24px;
}

.shell {
  display: flex;
  flex: 0 1 1280px;
  width: 100%;
  min-width: 0;

  height: min(calc(100dvh - 96px), 760px);
  min-height: 480px;

  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}

.profile {
  flex: 0 0 400px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .9rem;
  padding: 2rem 2rem 2rem 1.5rem; text-align: center; color: var(--panel-text);
  background: linear-gradient(160deg, var(--panel-from), var(--panel-to));
  border-radius: var(--radius-xl) 0 0 var(--radius-xl);
}
.content {
  flex: 1; min-width: 0; margin-left: -28px; position: relative; z-index: 1;
  background: var(--surface); border-radius: var(--radius-xl);
  overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; scroll-behavior: auto;
  padding: 3.25rem 3.5rem 3rem;
}
.content::-webkit-scrollbar { width: 8px; }
.content::-webkit-scrollbar-track {
  margin-block: 30px;
}
.content::-webkit-scrollbar-thumb { background: var(--border); border-radius: 8px; }

/* .nav {
  position: fixed; right: 20px; top: calc(50% - min(calc(50dvh - 48px), 380px)); z-index: 5;
  display: flex; flex-direction: column; gap: .35rem; padding: .85rem .55rem;
  background: var(--nav-bg); border-radius: var(--radius-pill); box-shadow: var(--shadow-sm);
} */

/* .nav {
  position: relative;
  flex: 0 0 auto;

  right: auto;
  bottom: 262px;

  z-index: 5;

  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .35rem;

  padding: .85rem .55rem;

  background: var(--nav-bg);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-sm);
} */

.nav {
  position: relative;
  flex: 0 0 auto;

  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .35rem;

  padding: .85rem .55rem;

  background: var(--nav-bg);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-sm);

  z-index: 5;
}



.nav__item {
  display: grid; place-items: center; width: 48px; height: 48px; border: 0; background: none; border-radius: 50%;
  color: var(--nav-icon-inactive); transition: background var(--ease), color var(--ease);
}
.nav__item .icon { font-size: 30px; filter: grayscale(1) opacity(.55); transition: filter var(--ease), transform var(--ease); }
.nav__label { display: none; }
.nav__item[aria-current="page"] { color: var(--accent); }
.nav__item[aria-current="page"] .icon { filter: none; transform: scale(1.1); }
.nav__item:hover:not([aria-current="page"]) { background: var(--accent-soft); }

/* .theme-toggle {
  position: fixed; right: 26px; bottom: 7vh; z-index: 5; width: 56px; height: 56px; border-radius: 50%; border: 0;
  display: grid; place-items: center; font-size: 1.5rem; background: var(--nav-bg); box-shadow: var(--shadow-sm);
  transition: transform var(--ease);
} */

.theme-toggle {
  position: relative;
  flex: 0 0 auto;

  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 0;

  display: grid;
  place-items: center;

  font-size: 1.5rem;
  background: var(--nav-bg);
  box-shadow: var(--shadow-sm);

  z-index: 5;
  transition: transform var(--ease);
}

.theme-toggle:hover { transform: scale(1.06); }

.theme-toggle {
  color: var(--accent);
}

/* sections: one visible at a time */
.section.is-entering { animation: section-in .24s ease both; }
@keyframes section-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.side-controls {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;

  align-self: center;
  flex: 0 0 auto;

  height: min(calc(100dvh - 96px), 760px);
  min-height: 480px;
}
