@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;500;600&family=Cormorant+Garamond:ital,wght@0,500;0,600;1,500&family=Jost:wght@300;400;500;600&display=swap');

:root {
  --void: #05090f;
  --abyss: #0b1e2f;
  --dusk: #123049;
  --bio: #7af0d6;
  --moon: #9fe0ee;
  --gold: #f2c14e;
  --mist: #f2f8f9;
  --mist-dim: rgba(242, 248, 249, 0.66);
  --line: rgba(159, 224, 238, 0.18);
  --card-surface-start: rgba(6, 29, 39, 0.62);
  --card-surface-end: rgba(7, 25, 37, 0.32);
  --card-border: rgba(159, 224, 238, 0.27);
  --card-inset: rgba(243, 248, 242, 0.04);
  --background-scrim: rgba(5, 9, 15, 0.48);
}

html[data-portal-pending="true"] .portal-content,
html[data-portal-pending="true"] .portal-header { visibility: hidden; }

* { box-sizing: border-box; }

body.portal-body {
  --sidebar-width: 288px;
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  isolation: isolate;
  background: var(--void);
  color: var(--mist);
  font-family: 'Jost', sans-serif;
}

body.portal-body.sidebar-collapsed { --sidebar-width: 84px; }

/* Cabinet-only ice-blue pointer and scrollbars. */
html:has(body.portal-body) {
  scrollbar-gutter: stable;
}
html:has(body.portal-body),
body.portal-body,
body.portal-body * {
  scrollbar-color: var(--moon) var(--abyss);
  scrollbar-width: thin;
}
html:has(body.portal-body)::-webkit-scrollbar,
body.portal-body ::-webkit-scrollbar { width: 10px; height: 10px; }
html:has(body.portal-body)::-webkit-scrollbar-track,
body.portal-body ::-webkit-scrollbar-track { background: var(--abyss); }
html:has(body.portal-body)::-webkit-scrollbar-thumb,
body.portal-body ::-webkit-scrollbar-thumb {
  border: 2px solid var(--abyss);
  border-radius: 999px;
  background: var(--moon);
  box-shadow: inset 0 0 5px #edfaff;
}
html:has(body.portal-body)::-webkit-scrollbar-thumb:hover,
body.portal-body ::-webkit-scrollbar-thumb:hover { background: #d4f5ff; }
@media (forced-colors: active) {
  html:has(body.portal-body),
  body.portal-body,
  body.portal-body * { scrollbar-color: auto; cursor: auto; }
}

button, a { font: inherit; }
button { cursor: pointer; }
button:focus-visible, a:focus-visible { outline: 2px solid var(--bio); outline-offset: 3px; }

/* Спільне зоряне небо головної сторінки. */
.portal-background,
.portal-spotlight {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.portal-background {
  z-index: 0;
  background: url('https://lcsrkggtvlkyjuowtidm.supabase.co/storage/v1/object/public/soulspace-images/backgrounds/background0.png') no-repeat center top fixed;
  background-size: cover;
  transform: translateZ(0);
}


.portal-spotlight {
  z-index: 2;
  background: var(--background-scrim);
}

body.portal-body .stars,
body.portal-body .shooting-stars { z-index: 1; }

.portal-shell {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
  min-height: 100vh;
  transition: grid-template-columns 0.32s cubic-bezier(.2, .8, .2, 1);
}

.sidebar {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  width: var(--sidebar-width);
  height: 100vh;
  padding: 1.35rem 0.9rem 1.1rem;
  overflow: visible;
  border-right: 1px solid rgba(159, 224, 238, 0.2);
  background: linear-gradient(165deg, rgba(18, 48, 73, 0.64), rgba(5, 9, 15, 0.76));
  box-shadow: 18px 0 55px rgba(0, 0, 0, 0.15), inset -1px 0 rgba(242, 248, 249, 0.03);
  backdrop-filter: blur(20px) saturate(120%);
  -webkit-backdrop-filter: blur(20px) saturate(120%);
  transition: width 0.32s cubic-bezier(.2, .8, .2, 1), padding 0.32s ease;
}

.sidebar-top {
  display: flex;
  align-items: center;
  min-width: 0;
  margin: 0 0.25rem 2rem;
}

.sidebar-brand {
  display: flex;
  flex: 1 1 auto;
  min-width: 0;
  align-items: center;
  gap: 0.55rem;
  color: var(--mist);
  font-family: 'Cinzel', serif;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-decoration: none;
  white-space: nowrap;
}

.sidebar-brand img {
  display: block;
  flex: 0 0 auto;
  width: 35px;
  height: 42px;
  filter: drop-shadow(0 0 12px rgba(242, 193, 78, 0.25));
}

.sidebar-toggle {
  display: grid;
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  margin-left: 0.25rem;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(159, 224, 238, 0.24);
  border-radius: 50%;
  background: rgba(5, 9, 15, 0.32);
  color: var(--moon);
  line-height: 1;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.sidebar-toggle span { display: block; margin-top: -0.13rem; font-size: 1.55rem; transition: transform 0.3s ease; }
.sidebar-toggle:hover { border-color: rgba(122, 240, 214, 0.55); background: rgba(122, 240, 214, 0.1); color: var(--bio); }

.sidebar-user {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 0.7rem;
  margin: 0 0.3rem 1.35rem;
  padding: 0.78rem;
  overflow: hidden;
  border: 1px solid rgba(159, 224, 238, 0.17);
  border-radius: 14px;
  background: rgba(242, 248, 249, 0.055);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.04);
  transition: margin 0.32s ease, padding 0.32s ease, background 0.2s ease;
}

.user-avatar {
  display: grid;
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid rgba(122, 240, 214, 0.5);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 28%, rgba(122, 240, 214, 0.18), rgba(122, 240, 214, 0.02));
  color: var(--bio);
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem;
  line-height: 1;
  box-shadow: 0 0 18px rgba(122, 240, 214, 0.1);
}

.sidebar-user > div { min-width: 0; transition: opacity 0.18s ease, transform 0.24s ease; }
.sidebar-user strong,
.sidebar-user > div > span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-user strong { font-size: 0.82rem; font-weight: 500; }
.sidebar-user > div > span { margin-top: 0.12rem; color: var(--mist-dim); font-size: 0.68rem; }

.portal-nav { display: grid; gap: 0.26rem; }
.portal-nav-label { margin: 0.35rem 0.7rem 0.55rem; color: rgba(242, 248, 249, 0.46); font-size: 0.62rem; letter-spacing: 0.17em; text-transform: uppercase; white-space: nowrap; transition: opacity 0.18s ease; }

.nav-tab {
  display: flex;
  align-items: center;
  gap: 0.78rem;
  width: 100%;
  min-height: 42px;
  padding: 0.7rem 0.78rem;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: var(--mist-dim);
  font-size: 0.8rem;
  line-height: 1.2;
  text-align: left;
  white-space: nowrap;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease, transform 0.2s ease, padding 0.32s ease;
}

.nav-tab:hover { color: var(--mist); transform: translateX(3px); }
.nav-tab.active { border-color: rgba(122, 240, 214, 0.24); background: linear-gradient(90deg, rgba(122, 240, 214, 0.12), rgba(122, 240, 214, 0.035)); color: var(--bio); box-shadow: inset 0 1px rgba(255, 255, 255, 0.035); }
.nav-icon { display: inline-grid; flex: 0 0 1.25rem; width: 1.25rem; place-items: center; color: var(--moon); font-size: 1.05rem; text-align: center; }
.nav-tab.active .nav-icon { color: var(--bio); }

.sidebar-bottom { margin-top: auto; padding-top: 1rem; border-top: 1px solid rgba(159, 224, 238, 0.12); }
.logout-button { color: rgba(242, 248, 249, 0.58); }
.logout-button:hover { color: #ffb7aa; }

/* Згорнута панель лишає навігаційні піктограми доступними. */
body.sidebar-collapsed .sidebar { padding-right: 0.75rem; padding-left: 0.75rem; }
body.sidebar-collapsed .sidebar-top { margin-right: 0; margin-left: 0; justify-content: center; }
body.sidebar-collapsed .sidebar-brand { flex: 0 0 35px; overflow: hidden; }
body.sidebar-collapsed .sidebar-brand > span,
body.sidebar-collapsed .portal-nav-label { width: 0; opacity: 0; }
body.sidebar-collapsed .sidebar-toggle { position: absolute; top: 1.58rem; right: -14px; z-index: 2; background: rgba(8, 19, 29, 0.88); }
body.sidebar-collapsed .sidebar-toggle span { transform: rotate(180deg); }
body.sidebar-collapsed .sidebar-user { justify-content: center; margin-right: 0; margin-left: 0; padding: 0.58rem; }
body.sidebar-collapsed .sidebar-user > div { width: 0; opacity: 0; transform: translateX(-8px); pointer-events: none; }
body.sidebar-collapsed .nav-tab { justify-content: center; gap: 0; padding-right: 0; padding-left: 0; font-size: 0; }
body.sidebar-collapsed .nav-tab:hover { transform: none; }
body.sidebar-collapsed .nav-icon { font-size: 1.1rem; }

.portal-main { min-width: 0; padding: clamp(1.35rem, 4vw, 3.6rem); }
.portal-header { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; max-width: 1180px; margin: 0 auto 2.2rem; padding-bottom: 0.95rem; border-bottom: 1px solid var(--line); }
.portal-header::after { position: absolute; bottom: -2px; left: 0; width: min(420px, 60vw); height: 3px; background: linear-gradient(90deg, var(--gold), rgba(242, 193, 78, 0.2), transparent); box-shadow: 0 0 18px rgba(242, 193, 78, 0.38); content: ''; }
.portal-header p { margin: 0; color: rgba(242, 248, 249, 0.62); font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; }
.portal-header h1 { margin: 0.36rem 0 0; color: var(--mist); font-family: 'Cormorant Garamond', serif; font-size: clamp(2.1rem, 4vw, 3.15rem); font-style: italic; font-weight: 500; line-height: 1; text-shadow: 0 4px 26px rgba(0, 0, 0, 0.32); }
.role-chip { padding: 0.45rem 0.8rem; border: 1px solid rgba(242, 193, 78, 0.42); border-radius: 999px; background: rgba(5, 9, 15, 0.28); box-shadow: inset 0 1px rgba(255, 255, 255, 0.04); color: var(--gold); font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase; backdrop-filter: blur(8px); }

.portal-content { max-width: 1180px; margin: 0 auto; }
.tab-panel { display: none; animation: panel-in 0.35s ease both; }
.tab-panel.active { display: block; }
@keyframes panel-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }


.development-summary,
.development-skills { display: grid; gap: 1rem; margin-top: 1rem; }
.development-summary { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); }
.development-skills { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.development-eyebrow { margin: 0 0 0.36rem !important; color: var(--bio) !important; font-size: 0.66rem !important; letter-spacing: 0.14em; text-transform: uppercase; }
.development-progress-heading,
.development-skill-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 0.8rem; }
.development-progress-heading strong { color: var(--gold); font-family: 'Cormorant Garamond', serif; font-size: clamp(2.7rem, 5vw, 4.3rem); font-weight: 500; line-height: 0.85; text-shadow: 0 0 20px rgba(242, 193, 78, 0.18); }
.development-progress-heading span,
.development-skill-heading > span { color: var(--mist-dim); font-size: 0.75rem; }
.development-progress-track { height: 0.62rem; margin: 1.2rem 0 0.95rem; overflow: hidden; border: 1px solid rgba(159, 224, 238, 0.28); border-radius: 999px; background: rgba(5, 9, 15, 0.45); box-shadow: inset 0 1px 5px rgba(0, 0, 0, 0.48); }
.development-progress-track span { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #347fa0, #69b8d2 65%, #a5e4e5); box-shadow: 0 0 14px rgba(122, 240, 214, 0.5); transition: width 0.35s ease; }
.development-goal-form { margin-top: 0.9rem; }
.development-goal-list { display: grid; gap: 0.52rem; margin: 1rem 0 0; padding: 0; list-style: none; }
.development-goal-item { display: flex; align-items: flex-start; gap: 0.56rem; padding: 0.6rem 0; border-bottom: 1px solid rgba(159, 224, 238, 0.12); color: var(--mist-dim); font-size: 0.78rem; line-height: 1.45; }
.development-goal-item:last-child { border-bottom: 0; }
.development-goal-item input { flex: 0 0 auto; width: 1rem; height: 1rem; margin: 0.11rem 0 0; accent-color: var(--bio); }
.development-goal-item span { min-width: 0; }
.development-goal-item time { display: block; margin-top: 0.12rem; color: rgba(242, 248, 249, 0.46); font-size: 0.67rem; }
.development-goal-item.is-complete span { color: rgba(242, 248, 249, 0.42); text-decoration: line-through; }
.development-goal-empty { padding: 0.7rem 0; color: rgba(242, 248, 249, 0.5); font-size: 0.78rem; }
.development-skill-card { display: grid; gap: 0.82rem; }
.development-skill-heading { align-items: flex-start; }
.development-skill-heading h3 { margin: 0; }
.development-skill-heading > span { flex: 0 0 auto; padding: 0.28rem 0.5rem; border: 1px solid rgba(122, 240, 214, 0.23); border-radius: 999px; background: rgba(122, 240, 214, 0.08); color: var(--bio); }
.development-task { display: flex; align-items: flex-start; gap: 0.55rem; color: var(--mist-dim); cursor: pointer; font-size: 0.78rem; line-height: 1.45; }
.development-task input { flex: 0 0 auto; width: 1rem; height: 1rem; margin: 0.06rem 0 0; accent-color: var(--bio); }
.development-task:has(input:checked) span { color: rgba(242, 248, 249, 0.48); text-decoration: line-through; }

body.development-onboarding-open { overflow: hidden; }
.development-onboarding[hidden] { display: none; }
.development-onboarding { position: fixed; z-index: 100; inset: 0; display: grid; place-items: center; padding: 1.2rem; background: rgba(0, 6, 13, 0.82); backdrop-filter: blur(14px) saturate(0.72); -webkit-backdrop-filter: blur(14px) saturate(0.72); }
.development-onboarding-card { width: min(31rem, 100%); padding: clamp(1.7rem, 5vw, 3rem); border: 1px solid rgba(159, 224, 238, 0.3); border-radius: 1.15rem; background: linear-gradient(145deg, rgba(14, 29, 40, 0.98), rgba(5, 9, 15, 0.98)); box-shadow: 0 26px 70px rgba(0, 0, 0, 0.56), 0 0 42px rgba(89, 176, 217, 0.1); color: var(--mist); text-align: center; animation: development-onboarding-in 0.42s cubic-bezier(.2, .8, .2, 1) both; }
.development-onboarding-card h2 { margin: 0; font-family: 'Cormorant Garamond', serif; font-size: clamp(2rem, 5vw, 2.75rem); font-style: italic; font-weight: 500; line-height: 1.05; }
.development-onboarding-card > p:not(.development-eyebrow) { margin: 1rem auto 1.65rem; color: var(--mist-dim); font-size: 0.95rem; line-height: 1.65; }
.development-onboarding-card .solid-button { min-width: 9.5rem; }
@keyframes development-onboarding-in { from { opacity: 0; transform: translateY(16px) scale(0.96); } to { opacity: 1; transform: none; } }

.hero-card, .content-card, .metric-card, .action-card {
  border: 1px solid var(--card-border);
  background: linear-gradient(145deg, var(--card-surface-start), var(--card-surface-end));
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.19), inset 0 1px var(--card-inset);
  backdrop-filter: blur(16px) saturate(115%);
  -webkit-backdrop-filter: blur(16px) saturate(115%);
}

.hero-card { position: relative; overflow: hidden; padding: clamp(1.6rem, 4vw, 3.2rem); border-radius: 20px; }
.hero-card::after { position: absolute; top: -85%; right: -9%; width: 22rem; height: 22rem; border: 1px solid rgba(122, 240, 214, 0.2); border-radius: 50%; box-shadow: 0 0 0 32px rgba(122, 240, 214, 0.035), 0 0 0 70px rgba(122, 240, 214, 0.02); content: ''; pointer-events: none; }
.hero-kicker { position: relative; z-index: 1; margin: 0 0 0.7rem; color: var(--bio); font-size: 0.73rem; letter-spacing: 0.15em; text-transform: uppercase; }
.hero-card h2 { position: relative; z-index: 1; max-width: 650px; margin: 0; font-family: 'Cormorant Garamond', serif; font-size: clamp(1.9rem, 3.8vw, 2.9rem); font-style: italic; font-weight: 500; line-height: 1.05; text-shadow: 0 3px 16px rgba(0, 0, 0, 0.24); }
.hero-card > p:not(.hero-kicker) { position: relative; z-index: 1; max-width: 510px; margin: 1rem 0 1.6rem; color: var(--mist-dim); font-size: 0.95rem; line-height: 1.65; }

.practice-intro { margin: 0 0 1.4rem; padding: 0 0 1.2rem; border-bottom: 1px solid rgba(159, 224, 238, 0.14); }
.practice-intro h2 { margin: 0; font-family: 'Cormorant Garamond', serif; font-size: clamp(1.55rem, 2.8vw, 2.05rem); font-style: italic; font-weight: 500; line-height: 1.04; }
.practice-intro > p { max-width: 42rem; margin: 0.72rem 0 0; color: var(--mist-dim); font-size: 0.86rem; line-height: 1.55; text-transform: none; }
.practice-date { display: block; margin-top: 1.1rem; color: var(--bio); font-family: 'Jost', sans-serif; font-size: 0.72rem; font-weight: 500; letter-spacing: 0.04em; text-transform: none; }
.practice-overview { display: grid; grid-template-columns: minmax(0, 1.22fr) minmax(19rem, 0.78fr); gap: 1rem; align-items: start; }
.today-schedule-card, .sessions-page-card, .sessions-goal-card, .practice-statistics, .affirmation-card, .favorite-decks-card { border: 1px solid var(--card-border); background: linear-gradient(145deg, var(--card-surface-start), var(--card-surface-end)); box-shadow: 0 22px 50px rgba(0, 0, 0, 0.19), inset 0 1px var(--card-inset); backdrop-filter: blur(16px) saturate(115%); -webkit-backdrop-filter: blur(16px) saturate(115%); }
.today-schedule-card, .sessions-page-card { padding: clamp(1.3rem, 3vw, 2rem); border-radius: 1.35rem; }
.today-schedule-card { padding: clamp(1.45rem, 3.2vw, 2.2rem); border-radius: 16px 80px 16px 96px; background: linear-gradient(106deg, rgba(6, 29, 39, 0.62), rgba(7, 25, 37, 0.32) 58%, transparent); }
.schedule-heading p, .sessions-goal-card > p { margin: 0; color: var(--bio); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.65rem; letter-spacing: 0.14em; text-transform: uppercase; }
.schedule-heading h2, .schedule-heading h3 { margin: 0.38rem 0 0; color: var(--mist); font-family: 'Cormorant Garamond', serif; font-size: clamp(1.75rem, 3.2vw, 2.45rem); font-weight: 600; line-height: 0.98; }
.schedule-heading h3 { font-size: clamp(1.7rem, 3vw, 2.25rem); }
.schedule-heading > span { display: block; margin-top: 0.45rem; color: rgba(206, 216, 244, 0.67); font-family: 'Cormorant Garamond', serif; font-size: 1rem; line-height: 1.4; }
.today-schedule-card .schedule-heading h2 + p { margin-top: 0.5rem; }
.session-timeline { display: grid; gap: 0; margin: 1.45rem 0 1.15rem; padding: 0; list-style: none; }
.session-entry { position: relative; min-height: 4.9rem; padding: 0 0 1rem 2rem; }
.session-entry::before { position: absolute; top: 8px; left: 2px; width: 8px; height: 8px; border: 0; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px rgba(242, 193, 78, 0.13), 0 0 13px rgba(242, 193, 78, 0.7); content: ''; }
.session-entry:not(:last-child)::after { position: absolute; top: 16px; bottom: 0.05rem; left: 5px; width: 1px; background: linear-gradient(var(--gold), rgba(122, 240, 214, 0.2)); content: ''; }
.session-entry time { display: block; margin-bottom: 0.17rem; color: var(--gold); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.7rem; letter-spacing: 0.11em; }
.session-entry strong { display: block; color: var(--mist); font-family: 'Cormorant Garamond', serif; font-size: 1.32rem; font-weight: 600; line-height: 0.98; }
.session-entry p { margin: 0.2rem 0 0; color: rgba(206, 216, 244, 0.72); font-family: 'Cormorant Garamond', serif; font-size: 0.98rem; line-height: 1.28; }
.sessions-link-button { margin-top: 0.15rem; }
.sessions-link-button span { margin-left: 0.25rem; }
.practice-side-column { display: grid; grid-template-rows: auto auto auto minmax(min-content, 1fr); gap: 0.75rem; min-width: 0; }
.practice-overview { align-items: stretch; }
.practice-side-column .sessions-goal-card { padding: 1.15rem 1.3rem; }
.practice-side-column .favorite-decks-card { padding: 1.15rem 1.3rem; }
.practice-side-column .favorite-decks-heading { flex-wrap: wrap; gap: 0.35rem 0.75rem; }
.practice-side-column .favorite-decks-heading h2 { font-size: 1.45rem; }
.practice-side-column .favorite-decks-list { gap: 0.55rem; margin-top: 0.85rem; }
.practice-side-column .favorite-decks-list li { grid-template-columns: 1rem minmax(0, 1fr) minmax(2rem, 1fr) 2rem; gap: 0.55rem; }
.practice-trend-card { display: flex; flex-direction: column; justify-content: center; min-width: 0; padding: 1.15rem 1.3rem; border: 1px solid var(--card-border); border-radius: 1.3rem; background: linear-gradient(90deg, rgba(5, 24, 34, 0.45), transparent); box-shadow: 0 22px 50px rgba(0, 0, 0, 0.19), inset 0 1px var(--card-inset); backdrop-filter: blur(16px) saturate(115%); -webkit-backdrop-filter: blur(16px) saturate(115%); }
.practice-trend-eyebrow { margin: 0; color: var(--bio); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.6rem; letter-spacing: 0.14em; text-transform: uppercase; }
.practice-trend-card h2 { margin: 0.45rem 0 0; color: var(--mist); font-family: 'Cormorant Garamond', serif; font-size: 1.45rem; font-weight: 600; line-height: 1.1; }
.practice-trend-chart { display: block; width: 100%; height: 4rem; margin: 0.6rem 0; overflow: visible; }
.practice-trend-area { fill: var(--bio); fill-opacity: 0.1; }
.practice-trend-line { fill: none; stroke: var(--bio); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.practice-trend-points { fill: var(--bio); }
.practice-trend-summary { margin: 0; color: var(--mist-dim); font-size: 0.78rem; line-height: 1.45; }
.sessions-goal-card { padding: 1.55rem; border-color: rgba(159, 224, 238, 0.27); border-top-color: rgba(242, 193, 78, 0.56); border-radius: 1.3rem; background: radial-gradient(ellipse at 10% 0%, rgba(242, 193, 78, 0.16), transparent 55%), linear-gradient(100deg, rgba(6, 27, 36, 0.53), transparent); }
.sessions-goal-card > p { color: var(--gold); }
.sessions-goal-card h2 { margin: 0.55rem 0 0; color: var(--mist); font-family: 'Cormorant Garamond', serif; font-size: clamp(2rem, 3.6vw, 2.75rem); font-weight: 600; line-height: 0.95; }
.sessions-goal-card > span { display: block; margin-top: 0.72rem; color: rgba(206, 216, 244, 0.74); font-family: 'Cormorant Garamond', serif; font-size: 0.96rem; line-height: 1.4; }
.sessions-goal-track { height: 0.74rem; margin-top: 1.35rem; overflow: hidden; border-radius: 999px; background: rgba(3, 12, 30, 0.84); }
.sessions-goal-track span { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--gold), #ffdc81 68%, #f7f4eb); box-shadow: 0 0 16px rgba(242, 193, 78, 0.35); transition: width 0.55s cubic-bezier(.2, .8, .2, 1); }
.practice-statistics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin: 0; overflow: hidden; border-radius: 1.3rem; background: linear-gradient(90deg, rgba(5, 24, 34, 0.46), transparent); }
.practice-statistics div { min-width: 0; padding: 1.05rem 0.95rem 1.15rem; }
.practice-statistics div + div { border-left: 1px solid rgba(159, 224, 238, 0.14); }
.practice-statistics dt { color: var(--gold); font-family: 'Cormorant Garamond', serif; font-size: clamp(1.65rem, 2.8vw, 2.25rem); font-weight: 600; line-height: 0.95; }
.practice-statistics dd { margin: 0.38rem 0 0; color: rgba(206, 216, 244, 0.65); font-size: 0.65rem; line-height: 1.35; }
.practice-resources-grid { display: grid; grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr); gap: 1rem; margin-top: 1rem; padding: 1rem; overflow: hidden; border: 1px solid var(--card-border); border-radius: 80px 16px 96px 16px; background: linear-gradient(102deg, rgba(5, 28, 36, 0.46), transparent 72%); box-shadow: 0 22px 50px rgba(0, 0, 0, 0.19), inset 0 1px var(--card-inset); backdrop-filter: blur(16px) saturate(115%); -webkit-backdrop-filter: blur(16px) saturate(115%); align-items: stretch; }
.practice-resources-grid .affirmation-card { height: 100%; align-content: center; }
.affirmation-card { display: grid; grid-template-columns: minmax(8.4rem, 0.7fr) minmax(0, 1fr); gap: 1.25rem; align-items: center; padding: 1.15rem; border-radius: 1.35rem; }
.practice-resources-grid > .affirmation-card { border: 0; border-radius: 0; background: transparent; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
.affirmation-card-face { position: relative; display: flex; flex-direction: column; justify-content: space-between; min-height: 14.2rem; padding: 1rem; overflow: hidden; border: 1px solid rgba(242, 193, 78, 0.58); border-radius: 0.9rem; background: radial-gradient(circle at 73% 12%, #fff6c7 0 1px, transparent 2px), radial-gradient(circle at 16% 24%, rgba(122, 240, 214, 0.32), transparent 37%), linear-gradient(145deg, #173b49, #0b1425 73%); box-shadow: inset 0 0 0 6px rgba(242, 193, 78, 0.05), 0 13px 28px rgba(0, 0, 0, 0.22); }
.affirmation-card-face::before { position: absolute; inset: -40% -15%; border: 1px solid rgba(122, 240, 214, 0.3); border-radius: 50%; box-shadow: 0 0 0 2.2rem rgba(122, 240, 214, 0.03), 0 0 0 4.5rem rgba(122, 240, 214, 0.02); content: ''; transform: rotate(-22deg); }
.affirmation-card-face span, .affirmation-card-face strong, .affirmation-card-face i { position: relative; z-index: 1; }
.affirmation-card-face span { color: var(--gold); font-size: 0.56rem; letter-spacing: 0.13em; text-transform: uppercase; }
.affirmation-card-face strong { color: var(--mist); font-family: 'Cormorant Garamond', serif; font-size: clamp(1.25rem, 2.2vw, 1.7rem); font-style: italic; font-weight: 500; line-height: 1.02; }
.affirmation-card-face i { align-self: flex-end; color: var(--bio); font-size: 1.35rem; font-style: normal; text-shadow: 0 0 12px rgba(122, 240, 214, 0.8); }
.affirmation-card-copy h2, .favorite-decks-heading h2 { margin: 0; color: var(--mist); font-family: 'Cormorant Garamond', serif; font-size: 1.7rem; font-style: italic; font-weight: 600; line-height: 1; }
.affirmation-card-copy p { margin: 0.68rem 0 1.15rem; color: var(--mist-dim); font-size: 0.84rem; line-height: 1.5; }
/* Profile affirmation: the home oracle's question face, without flipping. */
.practice-resources-grid .affirmation-card { display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 1.15rem; padding: clamp(1.35rem, 3vw, 2.15rem); }
.affirmation-card-copy { width: 100%; padding-top: calc(0.63rem * 1.5 + 0.28rem); text-align: center; }
.affirmation-card-copy h2 { font-family: 'Cormorant Garamond', serif; font-size: clamp(1.75rem, 3.2vw, 2.45rem); font-style: normal; font-weight: 600; line-height: 0.98; }
.affirmation-card-copy p { margin: 0.65rem 0 0; }
.affirmation-card-face { isolation: isolate; flex: 0 0 auto; align-items: center; justify-content: center; width: clamp(12.5rem, 29vw, 13.75rem); max-width: 100%; min-height: 0; aspect-ratio: 2 / 3; padding: 1.6rem; border: 1px solid rgba(159, 224, 238, 0.48); border-radius: 14px; background: radial-gradient(circle at 50% 19%, rgba(159, 224, 238, 0.24), transparent 26%), radial-gradient(circle at 82% 90%, rgba(242, 193, 78, 0.15), transparent 31%), linear-gradient(155deg, #123049, #08111c 56%, #111627); box-shadow: 0 30px 70px rgba(0, 0, 0, 0.58), inset 0 0 46px rgba(159, 224, 238, 0.1); }
.affirmation-card-face::before { inset: 10px; border: 1px solid rgba(159, 224, 238, 0.25); border-radius: 9px; box-shadow: none; transform: none; background-image: radial-gradient(circle at 18% 21%, rgba(242, 248, 249, 0.72) 0 1px, transparent 1.5px), radial-gradient(circle at 77% 27%, rgba(242, 193, 78, 0.58) 0 1px, transparent 1.5px), radial-gradient(circle at 28% 77%, rgba(159, 224, 238, 0.55) 0 1px, transparent 1.5px), radial-gradient(circle at 76% 72%, rgba(242, 248, 249, 0.5) 0 1px, transparent 1.5px); }
.affirmation-card-face > span:first-child { position: absolute; top: 1.5rem; color: var(--moon); text-align: center; }
.affirmation-card-face strong { z-index: 2; max-width: 10.5rem; font-size: clamp(1.1rem, 2.3vw, 1.28rem); font-weight: 400; line-height: 1.45; text-align: center; text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7); text-wrap: balance; }
.affirmation-card-face .affirmation-orbit { position: absolute; z-index: 1; border: 1px solid rgba(242, 193, 78, 0.3); border-radius: 50%; }
.affirmation-card-face .orbit-one { width: 14rem; height: 5rem; transform: rotate(-31deg); opacity: 0.16; }
.affirmation-card-face .orbit-two { width: 11rem; height: 8rem; transform: rotate(47deg); border-color: rgba(159, 224, 238, 0.26); opacity: 0.12; }
.affirmation-card-face i { position: absolute; bottom: 1.25rem; align-self: center; color: var(--gold); font-size: 1rem; text-shadow: 0 0 15px rgba(242, 193, 78, 0.65); }
.affirmation-card > .solid-button { flex: 0 0 auto; }
@media (prefers-reduced-motion: no-preference) {
  .affirmation-card-face { transform-origin: 50% 55%; animation: affirmation-breathe 6.5s ease-in-out infinite; }
}
@keyframes affirmation-breathe {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-6px) scale(1.015); }
}
.favorite-decks-card { padding: clamp(1.25rem, 2.6vw, 1.75rem); border-radius: 1.35rem; background: linear-gradient(90deg, rgba(5, 24, 34, 0.45), transparent); }
.favorite-decks-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.favorite-decks-heading span { color: rgba(206, 216, 244, 0.64); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.58rem; letter-spacing: 0.09em; white-space: nowrap; }
.favorite-decks-list { display: grid; gap: 0.82rem; margin: 1.25rem 0 0; padding: 0; list-style: none; }
.favorite-decks-list li { display: grid; grid-template-columns: 1.25rem minmax(5.7rem, 1fr) minmax(6.8rem, 1.5fr) 2rem; align-items: center; gap: 0.72rem; }
.favorite-decks-list strong { color: var(--gold); font-family: 'Cormorant Garamond', serif; font-size: 1.25rem; font-weight: 600; }
.favorite-decks-list > li > span { color: var(--mist); font-family: 'Cormorant Garamond', serif; font-size: 1.05rem; font-weight: 600; }
.favorite-decks-list i { display: block; height: 0.52rem; overflow: hidden; border-radius: 999px; background: rgba(3, 12, 30, 0.84); }
.favorite-decks-list i b { display: block; width: var(--deck-share); height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--gold), var(--bio)); }
.favorite-decks-list em { color: rgba(206, 216, 244, 0.7); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.64rem; font-style: normal; text-align: right; }
.constellation-section { width: 100%; min-width: 0; }
.constellation-card { position: relative; display: flex; flex-direction: column; min-width: 0; padding: clamp(1.35rem, 3vw, 2.15rem); overflow: hidden; border: 0; border-radius: 0; background: radial-gradient(ellipse at 50% 47%, rgba(16, 94, 106, 0.18), transparent 61%); box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
.constellation-card::before { position: absolute; inset: 0; background-image: radial-gradient(rgba(242, 248, 249, 0.38) 0.72px, transparent 0.9px); background-position: 10px 16px; background-size: 26px 26px; content: ''; opacity: 0.2; pointer-events: none; mask-image: linear-gradient(180deg, #000, transparent 94%); }
.constellation-heading, .constellation-help, .constellation-status, .constellation-development-button { position: relative; z-index: 1; }
.constellation-heading { text-align: center; }
.constellation-heading p { margin: 0; color: var(--bio); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.63rem; letter-spacing: 0.14em; text-transform: uppercase; }
.constellation-heading h2 { margin: 0.28rem 0 0; font-family: 'Cormorant Garamond', serif; font-size: clamp(1.75rem, 3.2vw, 2.45rem); font-style: normal; font-weight: 600; line-height: 0.98; }
.constellation-stage { position: relative; z-index: 1; width: min(100%, 45rem); height: clamp(23rem, 37vw, 28rem); margin: 0.4rem auto -0.2rem; }
.constellation-lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.constellation-lines path { fill: none; stroke: rgba(203, 230, 239, 0.58); stroke-linecap: round; stroke-width: 1.15; filter: drop-shadow(0 0 2px rgba(159, 224, 238, 0.32)); animation: constellation-line-glow 4.8s ease-in-out infinite; }
.constellation-lines path:nth-child(2n) { animation-delay: -1.6s; }
.constellation-lines path:nth-child(3n) { animation-delay: -3.2s; }
.constellation-core { position: absolute; top: 58%; left: 51%; width: 0.58rem; height: 0.58rem; border-radius: 50%; background: var(--moon); box-shadow: 0 0 0 3px rgba(159, 224, 238, 0.12), 0 0 18px rgba(159, 224, 238, 0.86); transform: translate(-50%, -50%); }
.constellation-node { position: absolute; top: var(--node-y); left: var(--node-x); display: grid; justify-items: center; width: max-content; max-width: 8.3rem; padding: 0; border: 0; background: transparent; color: var(--moon); font: inherit; opacity: 0.42; text-align: center; transform: translate(-50%, -50%); transition: opacity 0.28s ease, transform 0.28s ease, color 0.28s ease, filter 0.28s ease; }
.constellation-star { display: block; color: currentColor; font-size: 1.4rem; line-height: 0.88; text-shadow: 0 0 10px currentColor; animation: constellation-twinkle 3.6s ease-in-out var(--delay) infinite; }
.constellation-label { display: block; margin-top: 0.34rem; color: var(--mist); font-size: 0.68rem; line-height: 1.17; text-wrap: balance; }
.constellation-node:is(:hover, :focus-visible, .is-selected) { color: var(--gold); opacity: 1; filter: drop-shadow(0 0 8px rgba(242, 193, 78, 0.4)); transform: translate(-50%, -50%) scale(1.08); }
.constellation-node.is-current { color: var(--gold); opacity: 1; filter: drop-shadow(0 0 9px rgba(242, 193, 78, 0.52)); }
.constellation-node.is-current .constellation-star { font-size: 2rem; animation-duration: 2.6s; }
.constellation-node:focus-visible { outline: 0; }
.constellation-node:focus-visible .constellation-label { outline: 2px solid var(--bio); outline-offset: 3px; border-radius: 2px; }
.constellation-help { margin: 0.1rem 0 0; color: rgba(242, 248, 249, 0.58); font-size: 0.72rem; line-height: 1.35; text-align: center; }
.constellation-status { min-height: 1.1rem; margin: 0.2rem 0 0; color: var(--bio); font-size: 0.73rem; text-align: center; }
.constellation-development-button { align-self: center; margin-top: 0.55rem; font-size: 0.78rem; }
.constellation-development-button span { margin-left: 0.28rem; }
@keyframes constellation-twinkle { 0%, 100% { opacity: 0.64; transform: scale(0.84) rotate(0deg); } 48% { opacity: 1; transform: scale(1.15) rotate(12deg); } }
@keyframes constellation-line-glow { 0%, 100% { opacity: 0.46; } 50% { opacity: 0.9; } }

.solid-button, .ghost-button { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 0.68rem 1rem; border-radius: 999px; text-decoration: none; transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease; }
.solid-button { position: relative; z-index: 1; border: 1px solid var(--gold); background: rgba(242, 193, 78, 0.13); color: var(--gold); }
.solid-button:hover { background: var(--gold); box-shadow: 0 0 24px rgba(242, 193, 78, 0.3); color: var(--void); transform: translateY(-2px); }
.ghost-button { border: 1px solid rgba(159, 224, 238, 0.35); background: rgba(5, 9, 15, 0.2); color: var(--moon); }
.ghost-button:hover { background: rgba(159, 224, 238, 0.13); box-shadow: 0 0 20px rgba(159, 224, 238, 0.22); transform: translateY(-2px); }
.danger-button { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 0.68rem 1rem; border: 1px solid rgba(255, 183, 170, 0.62); border-radius: 999px; background: rgba(235, 87, 87, 0.12); color: #ffb7aa; transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease; }
.danger-button:hover { background: #c95757; box-shadow: 0 0 24px rgba(232, 91, 84, 0.32); color: #fff; transform: translateY(-2px); }
.danger-button:disabled, .solid-button:disabled, .ghost-button:disabled { cursor: wait; opacity: 0.65; transform: none; }

.metrics-grid, .action-grid, .content-grid { display: grid; gap: 1rem; margin-top: 1rem; }
.metrics-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.action-grid, .content-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.metric-card, .action-card, .content-card { border-radius: 15px; }
.metric-card { padding: 1.15rem; }
.metric-card span { display: block; color: var(--mist-dim); font-size: 0.76rem; }
.metric-card strong { display: block; margin-top: 0.45rem; color: var(--moon); font-family: 'Cormorant Garamond', serif; font-size: 2rem; font-weight: 500; }
.metric-card.gold strong { color: var(--gold); }
.metric-card.bio strong { color: var(--bio); }

.action-card, .content-card { padding: 1.35rem; }
.action-card h3, .content-card h3 { margin: 0; font-family: 'Cormorant Garamond', serif; font-size: 1.45rem; font-style: italic; font-weight: 500; }
.action-card p, .content-card p { margin: 0.55rem 0 1rem; color: var(--mist-dim); font-size: 0.85rem; line-height: 1.6; }
.panel-title { margin: 0 0 0.85rem; font-family: 'Cormorant Garamond', serif; font-size: 1.9rem; font-style: italic; font-weight: 500; }

.portal-form { display: grid; gap: 0.78rem; }
.portal-form label { display: grid; gap: 0.36rem; color: var(--mist-dim); font-size: 0.74rem; }
.portal-form label strong { color: var(--gold); font-weight: 500; }
.portal-form input:not([type="checkbox"]) { width: 100%; min-height: 42px; padding: 0.62rem 0.75rem; border: 1px solid rgba(159, 224, 238, 0.25); border-radius: 9px; outline: none; background: rgba(5, 9, 15, 0.27); color: var(--mist); font: inherit; font-size: 0.84rem; transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease; }
.portal-form input:not([type="checkbox"]):focus { border-color: rgba(122, 240, 214, 0.72); background: rgba(5, 9, 15, 0.4); box-shadow: 0 0 0 3px rgba(122, 240, 214, 0.1); }
.portal-form input::placeholder { color: rgba(242, 248, 249, 0.38); }
.portal-form .solid-button, .portal-form .ghost-button, .portal-form .danger-button { justify-self: start; }
.portal-form-feedback { min-height: 1.2rem; margin: 0 !important; color: var(--mist-dim); font-size: 0.75rem !important; }
.portal-form-feedback.is-success { color: var(--bio); }
.portal-form-feedback.is-error { color: #ffb7aa; }
.danger-card { margin-top: 1rem; border-color: rgba(255, 183, 170, 0.38); background: linear-gradient(145deg, rgba(101, 42, 51, 0.48), rgba(35, 16, 27, 0.32)); }
.danger-card h3 { color: #ffd2ca; }
.portal-check { display: flex !important; align-items: flex-start; gap: 0.52rem; cursor: pointer; line-height: 1.45; }
.portal-check input { flex: 0 0 auto; width: 1rem; height: 1rem; margin: 0.06rem 0 0; accent-color: var(--bio); }

.profile-list { display: grid; gap: 0.8rem; margin: 0; }
.profile-row { display: flex; justify-content: space-between; gap: 1rem; padding: 0.8rem 0; border-bottom: 1px solid rgba(159, 224, 238, 0.13); }
.profile-row:last-child { border-bottom: 0; }
.profile-row dt { color: var(--mist-dim); font-size: 0.8rem; }
.profile-row dd { margin: 0; color: var(--mist); font-size: 0.85rem; text-align: right; }

.empty-state { padding: 1.2rem; border: 1px dashed rgba(159, 224, 238, 0.32); border-radius: 12px; background: rgba(5, 9, 15, 0.15); color: var(--mist-dim); font-size: 0.86rem; line-height: 1.6; }
.empty-state a { color: var(--bio); }
.users-table-wrap { overflow-x: auto; }
.users-table { width: 100%; border-collapse: collapse; font-size: 0.82rem; }
.users-table th, .users-table td { padding: 0.85rem 0.6rem; border-bottom: 1px solid rgba(159, 224, 238, 0.13); text-align: left; white-space: nowrap; }
.users-table th { color: rgba(242, 248, 249, 0.5); font-size: 0.66rem; letter-spacing: 0.11em; text-transform: uppercase; }
.users-table td { color: var(--mist-dim); }
.users-table td:first-child { color: var(--mist); }
.table-role { padding: 0.23rem 0.5rem; border-radius: 999px; background: rgba(122, 240, 214, 0.11); color: var(--bio); font-size: 0.66rem; text-transform: uppercase; }
.table-role.admin { background: rgba(242, 193, 78, 0.13); color: var(--gold); }

.portal-toast { position: fixed; z-index: 20; right: 1.5rem; bottom: 1.5rem; max-width: 360px; padding: 1rem 1.1rem; border: 1px solid rgba(122, 240, 214, 0.34); border-radius: 12px; background: rgba(10, 33, 42, 0.88); box-shadow: 0 18px 42px rgba(0, 0, 0, 0.35); color: var(--mist); font-size: 0.85rem; line-height: 1.5; backdrop-filter: blur(16px); transform: translateY(14px); opacity: 0; pointer-events: none; transition: opacity 0.3s ease, transform 0.3s ease; }
.portal-toast.show { opacity: 1; transform: translateY(0); }
.portal-toast strong { display: block; margin-bottom: 0.15rem; color: var(--bio); }
.portal-error { max-width: 620px; margin: 10vh auto; padding: 1.5rem; border: 1px solid rgba(255, 183, 170, 0.38); border-radius: 16px; background: rgba(64, 21, 29, 0.62); box-shadow: 0 22px 50px rgba(0, 0, 0, 0.2); color: #ffe2de; line-height: 1.6; backdrop-filter: blur(14px); }
.portal-error code { color: var(--bio); }

@media (max-width: 900px) {
  body.portal-body, body.portal-body.sidebar-collapsed { --sidebar-width: 1fr; }
  .portal-shell { grid-template-columns: 1fr; }
  .sidebar { position: relative; width: 100%; height: auto; padding: 1rem; border-right: 0; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, rgba(18, 48, 73, 0.64), rgba(5, 9, 15, 0.48)); }
  .sidebar-top { margin: 0 0.35rem 0.95rem; }
  body.sidebar-collapsed .sidebar { padding: 1rem; }
  body.sidebar-collapsed .sidebar-top { margin: 0 0.35rem 0.95rem; justify-content: flex-start; }
  body.sidebar-collapsed .sidebar-brand { flex: 1 1 auto; overflow: visible; }
  body.sidebar-collapsed .sidebar-brand > span { width: auto; opacity: 1; }
  .sidebar-user { display: none; }
  .sidebar-toggle { display: none; }
  .portal-nav { display: flex; gap: 0.35rem; overflow-x: auto; padding-bottom: 0.2rem; }
  .portal-nav-label, .sidebar-bottom { display: none; }
  .nav-tab, body.sidebar-collapsed .nav-tab { flex: 0 0 auto; width: auto; min-height: 36px; padding: 0.55rem 0.68rem; gap: 0.42rem; font-size: 0.72rem; }
  .nav-tab:hover { transform: none; }
  .nav-icon, body.sidebar-collapsed .nav-icon { flex-basis: auto; width: auto; font-size: 0.9rem; }
  .portal-main { padding: 1.4rem 1rem 2rem; }
  .development-skills { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .practice-overview, .practice-resources-grid { grid-template-columns: 1fr; }
  .constellation-stage { width: min(100%, 46rem); }
}

@media (max-width: 600px) {
  .portal-header { align-items: flex-start; flex-direction: column; gap: 0.75rem; margin-bottom: 1.3rem; }
  .metrics-grid, .action-grid, .content-grid { grid-template-columns: 1fr; }
  .development-summary, .development-skills { grid-template-columns: 1fr; }
  .practice-intro { margin-bottom: 1rem; }
  .practice-intro h2 { font-size: 1.7rem; }
  .today-schedule-card, .sessions-page-card { padding: 1.25rem; }
  .session-entry { min-height: 4.7rem; padding-left: 1.8rem; }
  .session-entry strong { font-size: 1.2rem; }
  .practice-statistics { grid-template-columns: 1fr; }
  .practice-statistics div { display: grid; grid-template-columns: 4.7rem 1fr; align-items: baseline; gap: 0.4rem; padding: 0.9rem 1rem; }
  .practice-statistics div + div { border-top: 1px solid rgba(159, 224, 238, 0.14); border-left: 0; }
  .practice-statistics dd { margin: 0; }
  .affirmation-card { grid-template-columns: 1fr; }
  .affirmation-card-face { min-height: 0; }
  .favorite-decks-list li { grid-template-columns: 1rem minmax(4.6rem, 1fr) minmax(5rem, 1.15fr) 1.7rem; gap: 0.45rem; }
  .favorite-decks-list > li > span { font-size: 0.94rem; }
  .constellation-card { padding-right: 0.8rem; padding-left: 0.8rem; }
  .constellation-stage { width: 100%; height: 23rem; }
  .constellation-node { max-width: 6.7rem; }
  .constellation-label { font-size: 0.57rem; }
  .hero-card { padding: 1.5rem; }
  .portal-toast { right: 1rem; bottom: 1rem; left: 1rem; max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}
