/* North Pole Nation back-office visual layer.
   Loaded after app.css so the redesign can be removed as one unit. */

:root {
  --console: #071a2c;
  --console-2: #0b2942;
  --console-3: #103754;
  --paper: #f3eee5;
  --paper-bright: #fffaf0;
  --paper-soft: #e9e2d7;
  --ink: #1b1714;
  --muted: #71675f;
  --red: #b91e2e;
  --red-deep: #851522;
  --green: #174f3c;
  --green-deep: #0a2a22;
  --gold: #d7aa51;
  --mint: #e0eee7;
  --line: rgba(47, 35, 28, 0.13);
  --line-strong: rgba(47, 35, 28, 0.22);
  --shadow-soft: 0 12px 32px rgba(43, 27, 20, 0.08);
  --shadow-lift: 0 22px 54px rgba(43, 27, 20, 0.14);
  --shadow-console: 0 28px 80px rgba(1, 10, 19, 0.28);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --spring-snappy: linear(
    0, 0.009, 0.035 2.1%, 0.141 4.4%, 0.723 12.9%,
    0.938 16.7%, 1.017 19.4%, 1.067 22.5%, 1.089 26%,
    1.079 30.3%, 1.049 36%, 1.024 42.6%, 1.011 50.3%,
    1.004 59.2%, 1.001 69.3%, 1
  );
  --spring-smooth: linear(
    0, 0.004, 0.016 2.3%, 0.063 4.7%, 0.141 7.2%,
    0.25 9.9%, 0.601 16.5%, 0.815 21%, 0.929 25.2%,
    0.987 29%, 1.025 33.5%, 1.042 38%, 1.04 43.5%,
    1.027 50%, 1.013 57.5%, 1.005 67%, 1.001 79%, 1
  );
  --spring-bouncy: linear(
    0, 0.014, 0.055 1.8%, 0.218 3.7%, 0.867 8.5%,
    1.085 10.7%, 1.212 12.9%, 1.264 15%, 1.262 17%,
    1.217 19.5%, 1.098 24%, 1.035 28.5%, 0.993 33%,
    0.981 38%, 0.988 45%, 0.998 55%, 1.001 68%, 1
  );
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-snap: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

@view-transition {
  navigation: auto;
}

::view-transition-old(root) {
  animation: npn-page-out 220ms var(--ease-in-out) both;
}

::view-transition-new(root) {
  animation: npn-page-in 420ms var(--spring-smooth) both;
}

html {
  background: var(--console);
  scroll-padding-top: 24px;
}

body {
  overflow-x: clip;
  background:
    radial-gradient(circle at 82% -8%, rgba(186, 30, 46, 0.13), transparent 30rem),
    radial-gradient(circle at 18% 4%, rgba(215, 170, 81, 0.09), transparent 24rem),
    var(--paper);
  font-feature-settings: "kern" 1, "liga" 1;
  text-rendering: optimizeLegibility;
}

body::before {
  z-index: 0;
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, 0.7) 0 0.8px, transparent 1.2px),
    radial-gradient(circle, rgba(215, 170, 81, 0.4) 0 0.7px, transparent 1.1px);
  background-size: 112px 112px, 183px 183px;
  opacity: 0.24;
  animation: npn-snow-map 42s linear infinite;
}

body::after {
  position: fixed;
  z-index: 100;
  inset: 0;
  content: "";
  pointer-events: none;
  opacity: 0.022;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.86' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.9'/%3E%3C/svg%3E");
}

::selection {
  background: rgba(185, 30, 46, 0.2);
  color: var(--ink);
}

h1,
h2,
h3 {
  text-wrap: balance;
}

h1,
h2 {
  letter-spacing: -0.045em;
}

h1 {
  max-width: 18ch;
  font-size: clamp(2.6rem, 4.4vw, 4.8rem);
  line-height: 0.96;
}

h2 {
  font-size: clamp(1.65rem, 2.6vw, 2.8rem);
  line-height: 1;
}

p {
  max-width: 68ch;
}

.sidebar {
  width: 276px;
  padding: 30px 24px 24px;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(circle at 22% 0%, rgba(215, 170, 81, 0.13), transparent 18rem),
    linear-gradient(180deg, rgba(11, 41, 66, 0.98), rgba(7, 26, 44, 0.99));
  box-shadow: 16px 0 50px rgba(1, 10, 19, 0.12);
}

.sidebar::after {
  position: absolute;
  right: -1px;
  bottom: 7%;
  width: 1px;
  height: 24%;
  content: "";
  background: linear-gradient(transparent, rgba(215, 170, 81, 0.7), transparent);
}

.brand {
  position: relative;
  display: grid;
  align-self: center;
  width: 88px;
  height: 88px;
  min-height: 88px;
  border-radius: 50%;
  place-items: center;
  isolation: isolate;
}

.brand span {
  display: none;
}

.brand::before {
  position: absolute;
  z-index: -1;
  inset: -7px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: inherit;
  content: "";
  background: conic-gradient(
    from 0deg,
    #6d1020,
    #d8a74b 14%,
    #fff3bf 22%,
    #d8a74b 31%,
    #15523f 47%,
    #d8a74b 64%,
    #fff7d7 72%,
    #b91e2e 84%,
    #6d1020
  );
  box-shadow:
    0 0 0 4px rgba(7, 26, 44, 0.82),
    0 0 0 5px rgba(215, 170, 81, 0.2),
    0 18px 38px rgba(0, 5, 12, 0.42),
    0 0 30px rgba(215, 170, 81, 0.13);
  animation: npn-logo-ring 10s linear infinite;
}

.brand::after {
  position: absolute;
  top: 2px;
  right: 3px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  content: "";
  background:
    linear-gradient(45deg, transparent 43%, rgba(255, 255, 255, 0.96) 48% 52%, transparent 57%),
    linear-gradient(-45deg, transparent 43%, rgba(255, 255, 255, 0.96) 48% 52%, transparent 57%);
  filter: drop-shadow(0 0 5px rgba(255, 243, 191, 0.95));
  animation: npn-logo-glint 4.6s var(--spring-smooth) infinite;
}

.brand img {
  width: 82px;
  height: 82px;
  border: 2px solid rgba(255, 248, 224, 0.78);
  background: var(--console);
  box-shadow:
    inset 0 0 0 2px rgba(7, 26, 44, 0.7),
    0 8px 24px rgba(1, 8, 15, 0.36);
  filter: saturate(1.08) contrast(1.03);
  transition: transform 420ms var(--spring-bouncy), filter 320ms var(--ease-snap);
}

.brand:hover img {
  transform: scale(1.045);
  filter: saturate(1.15) contrast(1.05) brightness(1.08);
}

.sidebar nav {
  gap: 7px;
  margin-top: 48px;
}

.sidebar nav::before {
  display: block;
  margin: 0 14px 12px;
  content: "Family workspace";
  color: rgba(255, 255, 255, 0.42);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.sidebar nav a {
  position: relative;
  min-height: 46px;
  padding: 13px 14px 13px 36px;
  border: 0;
  border-radius: var(--radius-sm);
  color: rgba(255, 255, 255, 0.64);
  font-size: 0.92rem;
  font-weight: 750;
  transition:
    transform 320ms var(--ease-snap),
    color 240ms var(--ease-snap),
    background-color 320ms var(--ease-snap);
}

.sidebar nav a::before {
  position: absolute;
  top: 50%;
  left: 15px;
  width: 7px;
  height: 7px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  content: "";
  transform: translateY(-50%);
  transition:
    transform 360ms var(--spring-bouncy),
    background-color 240ms var(--ease-snap),
    border-color 240ms var(--ease-snap);
}

.sidebar nav a:hover {
  border-color: transparent;
  background: rgba(255, 255, 255, 0.065);
  color: white;
  transform: translateX(3px);
}

.sidebar nav a.active {
  border-color: transparent;
  background:
    linear-gradient(90deg, rgba(215, 170, 81, 0.18), rgba(255, 255, 255, 0.055));
  color: #fff8e9;
}

.sidebar nav a.active::before {
  border-color: var(--gold);
  background: var(--gold);
  box-shadow: 0 0 0 5px rgba(215, 170, 81, 0.1);
  transform: translateY(-50%) scale(1.12);
}

.plan-box {
  display: none;
}

.sidebar-status {
  gap: 13px;
  padding: 15px;
  border-color: rgba(255, 255, 255, 0.09);
  border-radius: var(--radius-md);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.035));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.sidebar-metrics div {
  min-width: 0;
  min-height: 70px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-sm);
  background: rgba(1, 12, 22, 0.22);
}

.sidebar-metrics span {
  font-size: 1.7rem;
}

.sidebar-metrics small {
  font-size: 0.65rem;
  line-height: 1.4;
  overflow-wrap: normal;
  word-break: normal;
}

.sidebar-achievements-button,
.sidebar-logout {
  transition:
    transform 420ms var(--spring-snappy),
    background-color 240ms var(--ease-snap),
    box-shadow 320ms var(--ease-snap);
}

.sidebar-achievements-button:hover,
.sidebar-logout:hover {
  transform: translateY(-2px);
}

.sidebar-achievements-button:active,
.sidebar-logout:active {
  transform: scale(0.96);
  transition-duration: 90ms;
}

main {
  position: relative;
  z-index: 1;
  margin-left: 276px;
  padding: clamp(20px, 2.8vw, 42px);
}

.page-hero {
  gap: clamp(24px, 3.4vw, 52px);
  min-height: 282px;
  margin-bottom: 18px;
  padding: clamp(28px, 4vw, 48px);
  border-color: rgba(47, 35, 28, 0.12);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(128deg, rgba(255, 250, 240, 0.98), rgba(238, 232, 221, 0.92));
  box-shadow: var(--shadow-lift);
}

.page-hero::before {
  position: absolute;
  inset: 0;
  content: "";
  background:
    radial-gradient(circle at 18% 10%, rgba(215, 170, 81, 0.11), transparent 34%),
    linear-gradient(105deg, transparent 55%, rgba(11, 41, 66, 0.035));
  pointer-events: none;
}

.page-hero::after {
  opacity: 0.5;
  background: linear-gradient(112deg, transparent 0 38%, rgba(255, 255, 255, 0.35) 44%, transparent 50% 100%);
  animation: npn-light-pass 13s var(--ease-in-out) infinite;
}

.image-hero,
.split-hero {
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.72fr);
}

.page-hero p:not(.eyebrow) {
  max-width: 62ch;
  margin-top: 16px;
  color: var(--muted);
  font-size: clamp(0.94rem, 1.2vw, 1.02rem);
  line-height: 1.65;
}

.page-hero img {
  width: 100%;
  height: 250px;
  max-height: none;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--radius-md);
  box-shadow: 0 18px 44px rgba(25, 17, 12, 0.19);
  object-fit: cover;
  transition: transform 900ms var(--ease-out), filter 600ms var(--ease-out);
}

.page-hero:hover img {
  transform: scale(1.018);
  filter: saturate(1.04) contrast(1.02);
}

.split-hero img {
  aspect-ratio: auto;
  background: var(--paper-bright);
}

.page-hero .eyebrow,
.section-heading .eyebrow {
  margin-bottom: 10px;
  color: var(--red-deep);
}

.eyebrow {
  font-size: 0.66rem;
  letter-spacing: 0.16em;
}

.hero-actions {
  margin-top: 22px;
}

.primary-button,
.ghost-button {
  position: relative;
  overflow: hidden;
  min-height: 44px;
  padding: 11px 17px;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 800;
  isolation: isolate;
  transition:
    transform 480ms var(--spring-snappy),
    box-shadow 320ms var(--ease-snap),
    border-color 260ms var(--ease-snap),
    background-color 260ms var(--ease-snap),
    color 260ms var(--ease-snap);
}

.primary-button::before,
.ghost-button::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  background: rgba(255, 255, 255, 0.12);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 420ms var(--ease-snap);
}

.primary-button:hover::before,
.ghost-button:hover::before {
  transform: scaleX(1);
  transform-origin: left;
}

.primary-button:hover,
.ghost-button:hover {
  transform: translateY(-2px);
}

.primary-button:active,
.ghost-button:active {
  transform: scale(0.96);
  transition-duration: 90ms;
}

.primary-button {
  background: linear-gradient(135deg, #c42839, var(--red-deep));
  box-shadow: 0 11px 24px rgba(133, 21, 34, 0.22);
}

.primary-button:hover {
  box-shadow: 0 16px 34px rgba(133, 21, 34, 0.3);
}

.ghost-button {
  border-color: rgba(23, 79, 60, 0.2);
  background: rgba(255, 250, 240, 0.64);
}

.primary-button:focus-visible,
.ghost-button:focus-visible,
.wizard-dot:focus-visible,
.sidebar a:focus-visible,
.sidebar button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.stat-grid,
.dashboard-grid,
.workspace,
.two-column,
.template-grid,
.admin-grid,
.tool-grid,
.tier-grid,
.timeline,
.character-grid,
.flow-strip,
.parent-action-grid,
.home-support-grid,
.create-choice-grid,
.rewards-summary,
.achievement-grid {
  gap: 18px;
}

.panel,
.request-builder,
.queue-panel,
.template-card,
.admin-grid article,
.wizard-shell,
.wizard-card {
  border-color: var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 250, 240, 0.78);
  box-shadow: var(--shadow-soft);
}

.panel,
.request-builder,
.queue-panel,
.template-card,
.admin-grid article,
.wizard-shell,
.wizard-card {
  padding: clamp(20px, 2.4vw, 30px);
}

.flow-strip {
  margin-bottom: 18px;
}

.flow-strip article {
  min-height: 136px;
  padding: 18px;
  border-radius: var(--radius-md);
  background: rgba(255, 250, 240, 0.72);
  box-shadow: var(--shadow-soft);
}

.flow-strip article::before {
  position: absolute;
  right: 18px;
  bottom: 17px;
  width: 30%;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(215, 170, 81, 0.6));
  transform: scaleX(0.45);
  transform-origin: right;
  transition: transform 420ms var(--ease-snap);
}

.flow-strip article:hover::before {
  transform: scaleX(1);
}

.flow-strip span {
  width: 30px;
  height: 30px;
  background: var(--console-2);
  font-size: 0.76rem;
}

.parent-action-grid {
  margin-bottom: 18px;
}

.action-card {
  gap: 16px;
  min-height: 236px;
}

.primary-action {
  border-color: rgba(185, 30, 46, 0.18);
  background:
    linear-gradient(140deg, rgba(185, 30, 46, 0.07), rgba(224, 238, 231, 0.68)),
    var(--paper-bright);
}

.countdown-card {
  position: relative;
  overflow: hidden;
  display: flex;
  min-height: 352px;
  flex-direction: column;
  gap: 18px;
  background:
    radial-gradient(circle at 85% 12%, rgba(215, 170, 81, 0.22), transparent 42%),
    linear-gradient(145deg, var(--console-2), var(--console));
  box-shadow: var(--shadow-console);
}

.countdown-card::before {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  opacity: 0.26;
  background-image:
    radial-gradient(circle at 12% 18%, rgba(255, 255, 255, 0.8) 0 1px, transparent 1.5px),
    radial-gradient(circle at 78% 32%, rgba(255, 255, 255, 0.72) 0 1px, transparent 1.5px),
    radial-gradient(circle at 42% 74%, rgba(215, 170, 81, 0.75) 0 1px, transparent 1.5px);
  background-size: 61px 61px, 83px 83px, 97px 97px;
  mask-image: linear-gradient(to bottom, black, transparent 88%);
}

.countdown-card > * {
  position: relative;
  z-index: 1;
}

.countdown-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.countdown-card .eyebrow {
  margin-bottom: 8px;
  color: #f8cc72;
  font-size: 0.72rem;
  letter-spacing: 0.17em;
}

.countdown-card h2 {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 0;
  color: #f6ce78;
  font-size: clamp(3rem, 4vw, 4.6rem);
  line-height: 0.86;
  text-shadow: 0 6px 22px rgba(0, 0, 0, 0.28);
}

.countdown-days-label {
  font-family: var(--font-body);
  font-size: 0.32em;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.countdown-date {
  flex: 0 0 auto;
  padding: 8px 11px;
  border: 1px solid rgba(246, 206, 120, 0.34);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff7e7;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.christmas-activity {
  display: grid;
  gap: 9px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.045)),
    rgba(2, 20, 39, 0.22);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 14px 30px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(12px);
}

.christmas-activity-topline {
  display: flex;
  align-items: center;
  gap: 8px;
}

.christmas-activity-topline p {
  margin: 0;
  color: #f8cc72;
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  line-height: 1.2;
  text-transform: uppercase;
}

.christmas-activity-spark {
  color: #fff3c5;
  font-size: 1rem;
  text-shadow: 0 0 12px rgba(246, 206, 120, 0.9);
}

.christmas-activity h3 {
  margin: 0;
  color: #fffaf0;
  font-size: clamp(1.25rem, 1.65vw, 1.62rem);
  line-height: 1.08;
  letter-spacing: -0.025em;
}

.countdown-card .christmas-activity > p {
  margin: 0;
  max-width: 48ch;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.94rem;
  line-height: 1.55;
}

.christmas-activity-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 3px;
}

.christmas-activity-meta span {
  padding: 5px 9px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff7e7;
  font-size: 0.7rem;
  font-weight: 750;
}

.christmas-activity-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: auto;
}

.countdown-card .christmas-activity-footer > p {
  margin: 0;
  max-width: 40ch;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.72rem;
  line-height: 1.45;
}

.christmas-activity-controls {
  display: flex;
  flex: 0 0 auto;
  gap: 6px;
}

.christmas-activity-controls button {
  min-width: 44px;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid rgba(246, 206, 120, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff8e9;
  font: 800 0.76rem/1 var(--font-body);
  cursor: pointer;
  transition:
    transform 280ms var(--ease-snap),
    border-color 280ms var(--ease-snap),
    background-color 280ms var(--ease-snap);
}

.christmas-activity-controls button:hover:not(:disabled) {
  transform: translateY(-2px);
  border-color: rgba(246, 206, 120, 0.66);
  background: rgba(246, 206, 120, 0.14);
}

.christmas-activity-controls button:focus-visible {
  outline: 2px solid #f8cc72;
  outline-offset: 3px;
}

.christmas-activity-controls button:disabled {
  opacity: 0.42;
  cursor: default;
}

.home-support-grid {
  grid-template-columns: minmax(390px, 0.46fr) minmax(0, 1fr);
}

.choice-card {
  grid-template-rows: 190px auto auto auto;
  min-height: 388px;
  border-radius: var(--radius-md);
  background: rgba(255, 250, 240, 0.82);
  box-shadow: var(--shadow-soft);
  transition:
    transform 480ms var(--spring-snappy),
    box-shadow 360ms var(--ease-snap),
    border-color 320ms var(--ease-snap);
}

.choice-card:hover {
  transform: translateY(-5px);
  border-color: rgba(215, 170, 81, 0.5);
  box-shadow: var(--shadow-lift);
}

.choice-card img {
  transition: transform 760ms var(--ease-out), filter 520ms var(--ease-out);
}

.choice-card:hover img {
  transform: scale(1.045);
  filter: saturate(1.06);
}

.choice-card strong {
  font-size: 1.75rem;
}

.wizard-shell {
  gap: 14px;
  margin-bottom: 18px;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 92% 4%, rgba(215, 170, 81, 0.13), transparent 24rem),
    linear-gradient(135deg, rgba(255, 250, 240, 0.96), rgba(224, 238, 231, 0.52));
}

.wizard-shell::before {
  opacity: 0.12;
  animation: npn-festive-map 28s linear infinite;
}

.wizard-shell::after {
  opacity: 0.5;
  animation: npn-orbit 9s var(--ease-in-out) infinite alternate;
}

.wizard-progress {
  gap: 7px;
}

.wizard-dot {
  min-height: 44px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.58);
  font-size: 0.78rem;
  transition:
    transform 440ms var(--spring-snappy),
    background-color 280ms var(--ease-snap),
    border-color 280ms var(--ease-snap),
    box-shadow 280ms var(--ease-snap);
}

.wizard-dot:hover {
  transform: translateY(-2px);
}

.wizard-dot.active {
  background: linear-gradient(135deg, #c42839, var(--red-deep));
  transform: translateY(-2px);
}

.wizard-card {
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.7);
}

.wizard-step.active {
  animation: npn-wizard-in 520ms var(--spring-snappy) both;
}

.wizard-step-layout {
  grid-template-columns: minmax(0, 1fr) minmax(240px, 0.38fr);
}

.wizard-visual {
  min-height: 330px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lift);
}

.wizard-visual::before {
  opacity: 0.22;
  animation: npn-snow-map 34s linear infinite;
}

.wizard-visual::after {
  width: 48px;
  height: 48px;
  animation: npn-orbit 7s var(--ease-in-out) infinite alternate;
}

.wizard-visual img {
  animation: npn-image-breathe 13s var(--ease-in-out) infinite alternate;
}

.wizard-summary {
  border-radius: var(--radius-sm);
}

input,
select,
textarea {
  min-height: 46px;
  border-color: rgba(47, 35, 28, 0.17);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.82);
  transition:
    border-color 260ms var(--ease-snap),
    box-shadow 360ms var(--ease-snap),
    transform 360ms var(--spring-snappy),
    background-color 260ms var(--ease-snap);
}

input:hover,
select:hover,
textarea:hover {
  border-color: rgba(23, 79, 60, 0.32);
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--green);
  background: white;
  box-shadow: 0 0 0 4px rgba(23, 79, 60, 0.1);
  transform: translateY(-1px);
}

.request-item,
.child-item,
.library-item,
.empty-library,
.letter-item,
.referral-item,
.review-item,
.day-card {
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.58);
  transition:
    transform 440ms var(--spring-snappy),
    border-color 280ms var(--ease-snap),
    box-shadow 320ms var(--ease-snap),
    background-color 280ms var(--ease-snap);
}

.request-item:hover,
.child-item:hover,
.library-item:hover,
.letter-item:hover,
.referral-item:hover,
.review-item:hover,
.day-card:hover {
  border-color: rgba(215, 170, 81, 0.44);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 14px 34px rgba(43, 27, 20, 0.08);
  transform: translateY(-3px);
}

.request-timeline li::after {
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 620ms var(--spring-snappy);
}

.is-visible .request-timeline li::after,
.review-item:hover .request-timeline li::after,
.library-item:hover .request-timeline li::after {
  transform: scaleX(1);
}

.request-timeline li:nth-child(2)::after {
  transition-delay: 80ms;
}

.request-timeline li:nth-child(3)::after {
  transition-delay: 160ms;
}

.status,
.connection-pill,
.step-label {
  transition:
    transform 420ms var(--spring-bouncy),
    background-color 280ms var(--ease-snap),
    color 280ms var(--ease-snap);
}

.status:hover,
.connection-pill:hover,
.step-label:hover {
  transform: translateY(-2px) scale(1.02);
}

.template-card,
.admin-grid article {
  min-height: 180px;
  transition:
    transform 480ms var(--spring-snappy),
    border-color 300ms var(--ease-snap),
    box-shadow 360ms var(--ease-snap);
}

.template-card:hover,
.template-card.selected,
.admin-grid article:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
}

.admin-status-grid {
  gap: 14px;
  margin-bottom: 18px;
}

.admin-status-grid article {
  position: relative;
  overflow: hidden;
  min-height: 154px;
  padding: 20px;
  border-radius: var(--radius-md);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.74), rgba(255, 250, 240, 0.62));
  box-shadow: var(--shadow-soft);
  transition:
    transform 480ms var(--spring-snappy),
    box-shadow 320ms var(--ease-snap),
    border-color 280ms var(--ease-snap);
}

.admin-status-grid article::after {
  position: absolute;
  right: -22px;
  bottom: -22px;
  width: 74px;
  height: 74px;
  border: 1px solid rgba(215, 170, 81, 0.24);
  border-radius: 50%;
  content: "";
  transition: transform 560ms var(--spring-smooth);
}

.admin-status-grid article:hover {
  border-color: rgba(215, 170, 81, 0.45);
  box-shadow: var(--shadow-lift);
  transform: translateY(-4px);
}

.admin-status-grid article:hover::after {
  transform: translate(-7px, -7px) scale(1.12);
}

.admin-status-grid span {
  margin-bottom: 15px;
  color: var(--console-2);
  font-size: 2.8rem;
}

.metric-updated {
  animation: npn-metric-pop 520ms var(--spring-bouncy);
}

.membership-console {
  gap: 18px;
}

.plan-console-heading h2,
.account-safety h2 {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
}

.plan-price-row strong {
  color: var(--console-2);
}

.environment-banner {
  position: static;
  inset: auto;
  width: auto;
  min-height: 0;
  max-width: 100%;
  margin-top: 24px;
  border-color: rgba(215, 170, 81, 0.26);
  border-radius: var(--radius-sm);
  background: rgba(7, 26, 44, 0.95);
  box-shadow: var(--shadow-console);
  cursor: auto;
}

.environment-banner span {
  display: block;
  color: inherit;
  overflow: visible;
  max-height: none;
  margin-top: 3px;
  opacity: 1;
}

.toast {
  border: 1px solid rgba(215, 170, 81, 0.24);
  border-radius: var(--radius-sm);
  background: rgba(7, 26, 44, 0.97);
  animation: npn-toast-in 540ms var(--spring-smooth) both;
}

body[data-page="admin"] .page-hero img {
  object-position: 50% 27%;
}

body[data-page="new-video"] .page-hero img,
body[data-page="create"] .choice-card:first-child img {
  object-position: 50% 23%;
}

body.motion-ready .sidebar {
  animation: npn-sidebar-in 620ms var(--spring-smooth) both;
}

body.motion-ready .page-hero > div {
  animation: npn-enter-up 620ms var(--spring-snappy) 80ms both;
}

body.motion-ready .page-hero > img {
  animation: npn-enter-image 720ms var(--spring-smooth) 150ms both;
}

[data-motion-reveal] {
  opacity: 0;
  transform: translateY(22px);
  filter: blur(4px);
  transition:
    opacity 620ms var(--spring-snappy),
    transform 620ms var(--spring-snappy),
    filter 620ms var(--spring-snappy);
  transition-delay: var(--motion-delay, 0ms);
}

[data-motion-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

@keyframes npn-page-out {
  to {
    opacity: 0;
    transform: scale(0.992);
  }
}

@keyframes npn-page-in {
  from {
    opacity: 0;
    transform: scale(1.008);
  }
}

@keyframes npn-sidebar-in {
  from {
    opacity: 0;
    transform: translateX(-22px);
  }
}

@keyframes npn-enter-up {
  from {
    opacity: 0;
    transform: translateY(24px);
    filter: blur(6px);
  }
}

@keyframes npn-enter-image {
  from {
    opacity: 0;
    transform: scale(1.045);
    filter: blur(5px) saturate(0.9);
  }
}

@keyframes npn-wizard-in {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.995);
    filter: blur(3px);
  }
}

@keyframes npn-toast-in {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.96);
  }
}

@keyframes npn-metric-pop {
  45% {
    transform: translateY(-3px) scale(1.06);
    color: var(--red);
  }
}

@keyframes npn-light-pass {
  0%,
  56% {
    transform: translateX(-74%);
  }
  100% {
    transform: translateX(74%);
  }
}

@keyframes npn-snow-map {
  to {
    background-position: 54px 390px, -84px 520px;
  }
}

@keyframes npn-festive-map {
  to {
    background-position: 86px 330px, -70px 410px, 190px 350px;
  }
}

@keyframes npn-orbit {
  to {
    opacity: 0.8;
    transform: translate(-10px, 7px) scale(1.045);
  }
}

@keyframes npn-image-breathe {
  from {
    transform: scale(1.025) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.065) translate3d(-3px, -2px, 0);
  }
}

@keyframes npn-logo-ring {
  to {
    transform: rotate(1turn);
  }
}

@keyframes npn-logo-glint {
  0%,
  56%,
  100% {
    opacity: 0.25;
    transform: scale(0.72) rotate(0deg);
  }
  64% {
    opacity: 1;
    transform: scale(1.2) rotate(16deg);
  }
  74% {
    opacity: 0.45;
    transform: scale(0.86) rotate(28deg);
  }
}

@media (max-width: 1050px) {
  .sidebar {
    position: sticky;
    top: 0;
    width: auto;
    padding: 14px 18px;
  }

  .sidebar::after {
    display: none;
  }

  .sidebar .brand {
    align-self: flex-start;
    width: 54px;
    height: 54px;
    min-height: 54px;
  }

  .sidebar .brand::before {
    inset: -4px;
  }

  .sidebar .brand::after {
    top: 0;
    right: 0;
    width: 10px;
    height: 10px;
  }

  .sidebar .brand img {
    width: 50px;
    height: 50px;
  }

  .sidebar nav {
    display: flex;
    gap: 5px;
    margin-top: 16px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .sidebar nav::before {
    display: none;
  }

  .sidebar nav a {
    flex: 0 0 auto;
    min-height: 38px;
    padding: 9px 12px 9px 27px;
    font-size: 0.84rem;
    white-space: nowrap;
  }

  .sidebar nav a::before {
    left: 11px;
  }

  .sidebar-status {
    position: absolute;
    top: 14px;
    right: 18px;
    width: auto;
    margin: 0;
    padding: 6px;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .sidebar-account,
  .sidebar-metrics,
  .sidebar-logout {
    display: none;
  }

  .sidebar-achievements-button {
    min-height: 34px;
    padding: 8px 12px;
  }

  main {
    margin-left: 0;
  }

  .image-hero,
  .split-hero,
  .wizard-step-layout {
    grid-template-columns: minmax(0, 1fr) minmax(240px, 0.55fr);
  }
}

@media (max-width: 760px) {
  body::after {
    display: none;
  }

  main {
    padding: 14px;
  }

  .sidebar {
    padding: 12px 14px;
  }

  .sidebar .brand {
    width: 50px;
    height: 50px;
    min-height: 50px;
    max-width: 50px;
  }

  .sidebar .brand img {
    width: 46px;
    height: 46px;
  }

  .sidebar-status {
    top: 12px;
    right: 14px;
  }

  .image-hero,
  .split-hero,
  .wizard-step-layout {
    grid-template-columns: 1fr;
  }

  .page-hero {
    min-height: auto;
    padding: 24px;
    border-radius: 19px;
  }

  .page-hero img {
    height: 210px;
  }

  h1 {
    font-size: clamp(2.35rem, 12vw, 3.7rem);
  }

  .primary-button,
  .ghost-button {
    min-height: 46px;
  }

  .wizard-visual {
    min-height: 250px;
  }

  .admin-status-grid {
    grid-template-columns: 1fr 1fr;
  }

  .admin-status-grid article {
    min-height: 142px;
    padding: 17px;
  }

  .admin-status-grid span {
    font-size: 2.25rem;
  }

  .home-support-grid {
    grid-template-columns: 1fr;
  }

  .countdown-card {
    min-height: 0;
  }

  .christmas-activity-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .christmas-activity-controls {
    width: 100%;
  }

  .christmas-activity-controls button {
    flex: 1;
  }
}

@media (max-width: 480px) {
  .brand span {
    max-width: 110px;
    line-height: 1.05;
  }

  .admin-status-grid {
    grid-template-columns: 1fr;
  }

  .environment-banner {
    right: 10px;
    bottom: 10px;
    max-width: calc(100vw - 20px);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 120ms !important;
    transition-delay: 0ms !important;
  }

  body.motion-ready .sidebar,
  body.motion-ready .page-hero > div,
  body.motion-ready .page-hero > img,
  [data-motion-reveal] {
    opacity: 1;
    transform: none;
    filter: none;
  }

  .page-hero:hover img,
  .choice-card:hover img,
  input:focus,
  select:focus,
  textarea:focus {
    transform: none;
  }

  ::view-transition-old(root),
  ::view-transition-new(root) {
    animation: none;
  }
}

/* Distinct gold navigation icons. No scripts, fonts or remote icon service. */
.sidebar nav a[href="/app/"] { --nav-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22white%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22m3%2010%209-7%209%207v10H3Z%22%2F%3E%3Cpath%20d%3D%22M9%2020v-7h6v7%22%2F%3E%3C%2Fsvg%3E"); }
.sidebar nav a[href="/app/create/"] { --nav-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22white%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22m3%2018%2012-12%203%203L6%2021ZM13%208l3%203M5%203v4M3%205h4M19%202v4M17%204h4M21%2016v4M19%2018h4%22%2F%3E%3C%2Fsvg%3E"); }
.sidebar nav a[href="/app/children/"] { --nav-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22white%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Ccircle%20cx%3D%229%22%20cy%3D%227%22%20r%3D%223%22%2F%3E%3Cpath%20d%3D%22M3%2020v-2a6%206%200%200%201%2012%200v2M16%204a3%203%200%200%201%200%206m2%203a5%205%200%200%201%203%205v2%22%2F%3E%3C%2Fsvg%3E"); }
.sidebar nav a[href="/app/library/"] { --nav-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22white%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M3%206h7l2%203h9v11H3Z%22%2F%3E%3Cpath%20d%3D%22M8%2013h8m-8%203h5%22%2F%3E%3C%2Fsvg%3E"); }
.sidebar nav a[href="/app/magic-mail/"] { --nav-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22white%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Crect%20x%3D%223%22%20y%3D%225%22%20width%3D%2218%22%20height%3D%2214%22%20rx%3D%222%22%2F%3E%3Cpath%20d%3D%22m3%207%209%206%209-6%22%2F%3E%3C%2Fsvg%3E"); }
.sidebar nav a[href="/app/coloring/"] { --nav-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22white%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22m4%2016%2012-12%204%204L8%2020l-5%201Zm10-10%204%204M4%2016l4%204%22%2F%3E%3C%2Fsvg%3E"); }
.sidebar nav a[href="/app/storybooks/"] { --nav-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22white%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M12%206C8%203%204%204%202%205v15c4-2%207-1%2010%201%203-2%206-3%2010-1V5c-4-2-7-1-10%201Zm0%200v15%22%2F%3E%3C%2Fsvg%3E"); }
.sidebar nav a[href="/app/quests/"] { --nav-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22white%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M20%205c-3-3-6-1-8%201-2-2-5-4-8-1-4%204%202%209%208%2015%206-6%2012-11%208-15Z%22%2F%3E%3C%2Fsvg%3E"); }
.sidebar nav a[href="/app/countdown/"] { --nav-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22white%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Crect%20x%3D%223%22%20y%3D%225%22%20width%3D%2218%22%20height%3D%2216%22%20rx%3D%222%22%2F%3E%3Cpath%20d%3D%22M7%202v6m10-6v6M3%2011h18m-13%204h3m2%203h3%22%2F%3E%3C%2Fsvg%3E"); }
.sidebar nav a[href="/app/membership/"] { --nav-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22white%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22m9%203-1%203-3%201-2%204%202%202v3l4%202%201%203h4l1-3%203-1%203-4-2-2V8l-4-2-1-3Z%22%2F%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%2212%22%20r%3D%223%22%2F%3E%3C%2Fsvg%3E"); }
.sidebar nav a[href="/app/admin/"] { --nav-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22white%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M4%207h16M4%2017h16%22%2F%3E%3Ccircle%20cx%3D%229%22%20cy%3D%227%22%20r%3D%223%22%2F%3E%3Ccircle%20cx%3D%2216%22%20cy%3D%2217%22%20r%3D%223%22%2F%3E%3C%2Fsvg%3E"); }
.sidebar nav a[href="/app/new-video/"] { --nav-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22white%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Crect%20x%3D%223%22%20y%3D%225%22%20width%3D%2218%22%20height%3D%2214%22%20rx%3D%223%22%2F%3E%3Cpath%20d%3D%22m10%209%205%203-5%203Z%22%2F%3E%3C%2Fsvg%3E"); }
.sidebar nav a[href="/app/templates/"] { --nav-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22white%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Crect%20x%3D%223%22%20y%3D%223%22%20width%3D%227%22%20height%3D%227%22%20rx%3D%221%22%2F%3E%3Crect%20x%3D%2214%22%20y%3D%223%22%20width%3D%227%22%20height%3D%227%22%20rx%3D%221%22%2F%3E%3Crect%20x%3D%223%22%20y%3D%2214%22%20width%3D%227%22%20height%3D%227%22%20rx%3D%221%22%2F%3E%3Crect%20x%3D%2214%22%20y%3D%2214%22%20width%3D%227%22%20height%3D%227%22%20rx%3D%221%22%2F%3E%3C%2Fsvg%3E"); }
.sidebar nav a[href="/app/achievements/"] { --nav-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22white%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M7%203h10v5c0%207-10%207-10%200ZM7%205H3v3c0%204%204%204%205%204m9-7h4v3c0%204-4%204-5%204M12%2014v6m-4%201h8%22%2F%3E%3C%2Fsvg%3E"); }
.sidebar nav a[href="/app/character/"] { --nav-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22white%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%228%22%20r%3D%225%22%2F%3E%3Cpath%20d%3D%22M3%2022v-2a9%209%200%200%201%2018%200v2M8%208h1m6%200h1m-6%203h4%22%2F%3E%3C%2Fsvg%3E"); }
.sidebar nav a[href="/app/referrals/"] { --nav-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22white%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Ccircle%20cx%3D%226%22%20cy%3D%2212%22%20r%3D%223%22%2F%3E%3Ccircle%20cx%3D%2218%22%20cy%3D%225%22%20r%3D%223%22%2F%3E%3Ccircle%20cx%3D%2218%22%20cy%3D%2219%22%20r%3D%223%22%2F%3E%3Cpath%20d%3D%22m9%2010%206-3M9%2014l6%203%22%2F%3E%3C%2Fsvg%3E"); }
.sidebar nav a[href="/app/onboarding/"] { --nav-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22white%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22m5%2012%204%204L20%205M4%204h8M4%2020h16%22%2F%3E%3C%2Fsvg%3E"); }
.sidebar nav a { padding-left: 43px; }
.sidebar nav a::before,
.sidebar nav a.active::before {
  left: 15px; width: 18px; height: 18px; border: 0; border-radius: 0;
  background: #ffd66a; box-shadow: none;
  -webkit-mask: var(--nav-icon) center / contain no-repeat;
  mask: var(--nav-icon) center / contain no-repeat;
  filter: drop-shadow(0 0 3px #ffd66a9c);
  transform: translateY(-50%);
  transition: filter 180ms ease, background-color 180ms ease;
}
.sidebar nav a:is(:hover, :focus-visible, .active)::before {
  background: #ffe49a;
  filter: drop-shadow(0 0 3px #ffd66ae0) drop-shadow(0 0 7px #ffd66a70);
}
@media (max-width: 1100px) {
  .sidebar nav a { min-height: 44px; padding-left: 36px; }
  .sidebar nav a::before, .sidebar nav a.active::before { left: 11px; width: 16px; height: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .sidebar nav a::before { transition: none; }
}
