:root {
  --paper: #fbfaf7;
  --card: #fffefa;
  --ink: #20231f;
  --muted: #777b73;
  --line: rgba(82, 107, 95, 0.12);
  --green: #7d9487;
  --deep: #526b5f;
  --soft: #e8efe9;
  --gold: #b68a4b;
  --danger: #b97870;
  --shadow: 0 28px 76px rgba(82, 107, 95, 0.12);
  --soft-shadow: 0 14px 36px rgba(82, 107, 95, 0.07);
  --glass: rgba(255, 254, 250, 0.68);
  font-family: Onest, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; overflow-x: hidden; }

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 8%, rgba(186, 204, 193, 0.28), transparent 27%),
    radial-gradient(circle at 88% 16%, rgba(182, 138, 75, 0.10), transparent 31%),
    linear-gradient(135deg, #f5f2ec 0%, #fffefa 46%, #eef4ef 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255, 254, 250, .34), transparent 26%, transparent 74%, rgba(255, 254, 250, .42)),
    radial-gradient(circle at 50% 0%, rgba(255, 254, 250, .42), transparent 42%);
}

button, input, textarea, select { font: inherit; }
button { border: 0; cursor: pointer; color: inherit; }
input, textarea, select {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: inherit;
}

.shell {
  min-height: 100dvh;
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr) 286px;
  gap: 16px;
  width: min(1880px, 100%);
  margin: 0 auto;
  padding: 16px;
}

.rail,
.workspace,
.side-panel,
.card,
.side-card,
.field,
.wish,
.idea,
.profile-card {
  border: 1px solid var(--line);
  background: var(--glass);
  box-shadow: var(--soft-shadow);
  backdrop-filter: blur(22px);
}

.rail {
  position: sticky;
  top: 16px;
  height: calc(100dvh - 32px);
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 14px;
  padding: 15px;
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255, 254, 250, .78), rgba(255, 254, 250, .56));
}

.workspace {
  min-width: 0;
  min-height: calc(100dvh - 32px);
  padding: clamp(22px, 2vw, 32px);
  border-radius: 32px;
  background:
    radial-gradient(circle at 82% 8%, rgba(182, 138, 75, .08), transparent 34%),
    rgba(255, 254, 250, .54);
}

.side-panel {
  position: sticky;
  top: 16px;
  height: calc(100dvh - 32px);
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 16px;
  border-radius: 28px;
  overflow-y: auto;
  background:
    linear-gradient(180deg, rgba(255, 254, 250, .78), rgba(255, 254, 250, .52));
}

.brand {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 21px;
  font-weight: 760;
  letter-spacing: 0;
}

.spark {
  width: 36px;
  height: 36px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: var(--deep);
  color: #fffefa;
  box-shadow: 0 14px 28px rgba(82, 107, 95, 0.20);
}

.nav {
  display: grid;
  align-content: start;
  gap: 7px;
}

.nav button,
.profile-mini {
  width: 100%;
  min-height: 46px;
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 10px;
  align-items: center;
  padding: 0 12px;
  border-radius: 18px;
  background: transparent;
  color: var(--muted);
  text-align: left;
  font-size: 13px;
  font-weight: 700;
}

.nav button > span:first-child,
.service-link {
  font-size: 20px;
}

.nav svg,
.service-link svg,
.mobile-nav svg,
.mobile-admin-button svg {
  width: 24px;
  height: 24px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.05;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nav button.active {
  background:
    radial-gradient(circle at 12% 18%, rgba(255, 254, 250, .88), transparent 34%),
    rgba(232, 239, 233, .84);
  color: var(--deep);
  box-shadow:
    inset 0 0 0 1px rgba(82, 107, 95, 0.05),
    0 12px 26px rgba(82, 107, 95, .08);
}

.service-link {
  width: 100%;
  min-height: 40px;
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 10px;
  align-items: center;
  padding: 0 12px;
  border-radius: 16px;
  background: transparent;
  color: rgba(82, 107, 95, 0.7);
  text-align: left;
  font-size: 13px;
  font-weight: 580;
}

.profile-mini {
  grid-template-columns: 48px 1fr;
  min-height: 70px;
  padding: 9px;
  background:
    radial-gradient(circle at 12% 10%, rgba(255, 254, 250, .9), transparent 38%),
    rgba(232, 239, 233, 0.62);
}

.avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background:
    linear-gradient(180deg, rgba(255, 254, 250, 0.04), rgba(30, 38, 34, 0.16)),
    var(--avatar, url("icon-192.png"));
  background-position: center;
  background-size: cover;
}

.top {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-start;
  margin-bottom: 18px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--deep);
  font-size: 11px;
  font-weight: 760;
  letter-spacing: .08em;
  text-transform: uppercase;
}

h1, h2, h3, p { margin: 0; }
h1 {
  max-width: 760px;
  font-size: clamp(32px, 4vw, 54px);
  line-height: 1.01;
  font-weight: 760;
}
h2 { font-size: 28px; line-height: 1.08; }

.muted,
.profile-mini span,
.card span,
.wish small,
.idea span,
.metric span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.42;
  font-weight: 560;
}

.actions,
.chips,
.auth-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.chips {
  gap: 18px;
  margin-bottom: 16px;
}

.chips button {
  min-height: 34px;
  padding: 0 0 7px;
  border: 0;
  border-bottom: 3px solid transparent;
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  font-weight: 820;
}

.chips button.secondary {
  border-color: var(--deep);
  background: transparent;
  color: var(--deep);
}

.primary,
.secondary,
.ghost,
.file-action {
  min-height: 46px;
  display: inline-grid;
  place-items: center;
  padding: 0 17px;
  border-radius: 999px;
  font-weight: 720;
}

.primary { background: var(--deep); color: #fffefa; }
.secondary { background: var(--soft); color: var(--deep); }
.ghost { background: rgba(255, 254, 250, 0.84); border: 1px solid var(--line); }
.file-action {
  background: rgba(255, 254, 250, 0.84);
  border: 1px solid var(--line);
  cursor: pointer;
}

.danger { color: #fffefa; background: var(--danger); }

.metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.metric,
.card {
  display: grid;
  gap: 8px;
  padding: 15px;
  border-radius: 20px;
}

.side-card {
  display: grid;
  gap: 10px;
  padding: 16px;
  border-radius: 22px;
  background:
    linear-gradient(145deg, rgba(255, 254, 250, .82), rgba(255, 254, 250, .55));
}

.side-card strong {
  font-size: 18px;
  line-height: 1.08;
}

.side-card span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.42;
  font-weight: 620;
}

.side-card-accent {
  background:
    radial-gradient(circle at 82% 12%, rgba(182, 138, 75, .17), transparent 36%),
    linear-gradient(145deg, rgba(255, 254, 250, .88), rgba(232, 239, 233, .62));
}

.board-hero {
  position: relative;
  margin-bottom: 14px;
  padding: 22px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 28px;
  background:
    radial-gradient(circle at 86% 8%, rgba(182, 138, 75, .16), transparent 34%),
    radial-gradient(circle at 12% 18%, rgba(125, 148, 135, .18), transparent 38%),
    linear-gradient(135deg, rgba(255, 254, 250, .78), rgba(232, 239, 233, .50));
  box-shadow: var(--soft-shadow);
}

.board-hero h1 {
  max-width: 660px;
}

.hero-add {
  grid-auto-flow: column;
  gap: 8px;
  align-self: end;
  box-shadow: 0 18px 34px rgba(82, 107, 95, .18);
}

.hero-add svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
}

.metric {
  min-height: 112px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(82, 107, 95, .13);
  background:
    linear-gradient(145deg, rgba(255, 254, 250, .82), rgba(255, 254, 250, .56));
  text-align: left;
}

.metric::after {
  content: "";
  position: absolute;
  inset: auto -18px -42px auto;
  width: 94px;
  height: 94px;
  border-radius: 50%;
  background: rgba(232, 239, 233, .72);
}

.metric-fulfilled::after {
  background: rgba(182, 138, 75, .16);
}

.metric-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: rgba(232, 239, 233, .76);
  color: var(--deep);
}

.metric-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.metric strong {
  color: var(--deep);
  font-size: 30px;
  line-height: 1;
  font-weight: 740;
}

.board-title-row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: end;
  margin: 4px 0 12px;
}

.board-title-row span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 620;
}

.board {
  display: grid;
  grid-template-columns: 1.1fr .9fr .85fr;
  grid-auto-rows: minmax(160px, 1fr);
  gap: 14px;
}

.wish,
.idea {
  min-height: 160px;
  position: relative;
  display: grid;
  align-content: end;
  overflow: hidden;
  padding: 18px;
  border-radius: 28px;
  background-image:
    linear-gradient(180deg, rgba(20, 24, 22, 0.02), rgba(20, 24, 22, 0.64)),
    var(--photo);
  background-position: center;
  background-size: cover;
  color: #fffefa;
  text-align: left;
  isolation: isolate;
  transition: transform .18s ease, box-shadow .18s ease;
}

.wish:hover,
.idea:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 54px rgba(31, 39, 34, .14);
}

.wish::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(20, 24, 22, 0), rgba(20, 24, 22, .52)),
    radial-gradient(circle at 18% 12%, rgba(255, 254, 250, .30), transparent 30%);
}

.wish.large { grid-row: span 2; }
.wish.wide { grid-column: span 2; }
.wish.done { outline: 3px solid rgba(182, 138, 75, 0.36); }

.wish-label {
  width: 100%;
  display: grid;
  gap: 8px;
  justify-items: start;
}

.wish strong,
.idea strong {
  max-width: 360px;
  display: block;
  font-size: 23px;
  line-height: 1.06;
  text-shadow: 0 2px 18px rgba(0, 0, 0, .32);
}

.wish small,
.idea span {
  width: fit-content;
  margin-top: 9px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 254, 250, 0.86);
  color: var(--deep);
  font-weight: 850;
}

.wish small {
  max-width: 100%;
  white-space: normal;
  box-shadow: 0 8px 22px rgba(20, 24, 22, .16);
}

.done-mark {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 254, 250, 0.92);
  color: var(--gold);
  box-shadow: 0 10px 24px rgba(20, 24, 22, 0.18);
}

.wish-detail-layout {
  align-items: stretch;
}

.wish-detail-photo {
  min-height: 520px;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.wish-detail-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(20, 24, 22, 0), rgba(20, 24, 22, .28)),
    radial-gradient(circle at 82% 16%, rgba(255, 254, 250, .24), transparent 30%);
}

.detail-photo-badge {
  position: absolute;
  left: 18px;
  bottom: 18px;
  z-index: 1;
  padding: 9px 13px;
  border-radius: 999px;
  background: rgba(255, 254, 250, .86);
  color: var(--deep);
  font-size: 13px;
  font-weight: 820;
  box-shadow: 0 12px 28px rgba(20, 24, 22, .15);
}

.wish-detail-card {
  align-content: start;
  gap: 14px;
  padding: 18px;
  background:
    radial-gradient(circle at 88% 8%, rgba(182, 138, 75, .13), transparent 32%),
    rgba(255, 254, 250, .72);
}

.detail-state-pill {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 4px 12px;
  align-items: center;
  padding: 14px;
  border-radius: 22px;
  background: rgba(232, 239, 233, .70);
  color: var(--deep);
}

.detail-state-pill svg {
  grid-row: span 2;
  width: 42px;
  height: 42px;
  padding: 9px;
  border-radius: 50%;
  background: var(--deep);
  color: #fffefa;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.detail-state-pill span,
.detail-row span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 780;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.detail-state-pill strong {
  font-size: 22px;
}

.detail-list {
  display: grid;
  gap: 10px;
}

.detail-row {
  display: grid;
  gap: 6px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 254, 250, .56);
}

.detail-row strong {
  font-size: 16px;
  line-height: 1.24;
}

.detail-actions {
  display: grid;
  grid-template-columns: 1fr;
  margin-top: 4px;
}

.form {
  max-width: 900px;
  display: grid;
  gap: 14px;
}

.wish-builder {
  display: grid;
  grid-template-columns: minmax(280px, .72fr) minmax(0, 1.28fr);
  gap: 16px;
  align-items: start;
}

.wish-preview-panel,
.builder-step {
  border: 1px solid var(--line);
  background: var(--glass);
  box-shadow: var(--soft-shadow);
  backdrop-filter: blur(22px);
}

.wish-preview-panel {
  position: sticky;
  top: 24px;
  display: grid;
  gap: 14px;
  padding: 18px;
  border-radius: 28px;
}

.wish-preview-card {
  min-height: 420px;
  display: grid;
  align-content: end;
  gap: 10px;
  padding: 20px;
  border-radius: 30px;
  overflow: hidden;
  background-image:
    linear-gradient(180deg, rgba(20, 24, 22, .02), rgba(20, 24, 22, .60)),
    var(--photo);
  background-position: center;
  background-size: cover;
  color: #fffefa;
  box-shadow: var(--shadow);
}

.wish-preview-card span,
.wish-preview-card small {
  width: fit-content;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(255, 254, 250, .88);
  color: var(--deep);
  font-size: 12px;
  font-weight: 760;
}

.wish-preview-card strong {
  max-width: 320px;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1;
  font-weight: 760;
}

.wish-steps {
  display: grid;
  gap: 14px;
}

.builder-step {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 14px;
  padding: 18px;
  border-radius: 28px;
}

.builder-step h2 {
  margin-bottom: 14px;
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 740;
}

.step-index {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--soft);
  color: var(--deep);
  font-size: 13px;
  font-weight: 780;
}

.grid-2,
.grid-3 {
  display: grid;
  gap: 14px;
}
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.field {
  display: grid;
  gap: 7px;
  padding: 14px;
  border-radius: 20px;
}

.field label {
  color: var(--deep);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.field input,
.field textarea,
.field select {
  min-height: 38px;
  font-weight: 720;
}

.field textarea { min-height: 104px; resize: vertical; }

.preview {
  min-height: 260px;
  border-radius: 28px;
  background-image:
    linear-gradient(180deg, rgba(20, 24, 22, 0.05), rgba(20, 24, 22, 0.58)),
    var(--photo, linear-gradient(135deg, #dfe7df, #fffefa));
  background-position: center;
  background-size: cover;
}

.idea-grid,
.people-grid,
.admin-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.idea { min-height: 230px; }

.idea-hero {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: end;
  margin-bottom: 14px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background:
    radial-gradient(circle at 84% 18%, rgba(182, 138, 75, .16), transparent 32%),
    linear-gradient(135deg, rgba(255, 254, 250, .76), rgba(232, 239, 233, .58));
  box-shadow: var(--soft-shadow);
}

.idea-hero h1 {
  max-width: 620px;
}

.idea-filters {
  display: flex;
  gap: 18px;
  align-items: center;
  margin: 0 0 16px;
  overflow-x: auto;
  scrollbar-width: none;
}

.idea-filters::-webkit-scrollbar { display: none; }

.idea-filters button {
  min-height: 34px;
  flex: 0 0 auto;
  padding: 0 0 7px;
  border-bottom: 3px solid transparent;
  background: transparent;
  color: var(--muted);
  font-weight: 820;
}

.idea-filters button.active {
  border-color: var(--deep);
  color: var(--deep);
}

.idea-feed {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.idea-card {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(150px, .86fr) minmax(0, 1fr);
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 254, 250, .76);
  box-shadow: var(--soft-shadow);
  text-align: left;
}

.idea-photo {
  min-height: 238px;
  background-image:
    linear-gradient(180deg, rgba(20, 24, 22, .02), rgba(20, 24, 22, .28)),
    var(--photo);
  background-position: center;
  background-size: cover;
}

.idea-content {
  min-width: 0;
  display: grid;
  align-content: end;
  gap: 10px;
  padding: 18px;
}

.idea-content strong {
  font-size: 25px;
  line-height: 1.05;
}

.idea-content small {
  color: var(--deep);
  font-size: 12px;
  font-weight: 820;
}

.idea-author,
.author-strip {
  display: flex;
  gap: 10px;
  align-items: center;
}

.idea-author .avatar {
  width: 34px;
  height: 34px;
}

.idea-author span:last-child {
  color: var(--muted);
  font-size: 13px;
  font-weight: 760;
}

.idea-detail-card {
  align-content: start;
}

.author-strip {
  width: 100%;
  padding: 10px;
  border-radius: 20px;
  background: var(--soft);
  text-align: left;
}

.author-strip .avatar {
  width: 54px;
  height: 54px;
}

.author-strip strong,
.author-strip small {
  display: block;
}

.author-strip small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.public-profile-hero {
  display: grid;
  grid-template-columns: minmax(240px, .42fr) minmax(0, 1fr);
  gap: 16px;
}

.profile-card-large {
  align-content: start;
}

.profile-card-large .avatar {
  width: 128px;
  height: 128px;
  box-shadow: 0 18px 36px rgba(82, 107, 95, 0.16);
}

.profile-wish-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 14px;
  align-content: start;
}

.profile-wish-card {
  min-width: 0;
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 254, 250, .76);
  box-shadow: var(--soft-shadow);
  text-align: left;
}

.profile-wish-photo {
  display: block;
  aspect-ratio: 1.32 / 1;
  background-image:
    linear-gradient(180deg, rgba(20, 24, 22, .02), rgba(20, 24, 22, .24)),
    var(--photo);
  background-position: center;
  background-size: cover;
}

.profile-wish-copy {
  display: grid;
  gap: 8px;
  align-content: start;
  padding: 14px 15px 16px;
}

.profile-wish-copy strong {
  color: var(--ink);
  font-size: clamp(20px, 1.6vw, 24px);
  line-height: 1.08;
  overflow-wrap: anywhere;
}

.profile-wish-copy small {
  color: var(--deep);
  font-size: 12px;
  font-weight: 820;
}

.profile-card {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 16px;
  border-radius: 24px;
}

.profile-card .avatar { width: 64px; height: 64px; }

.profile-hero {
  display: grid;
  grid-template-columns: 132px 1fr;
  gap: 18px;
  align-items: center;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 254, 250, 0.78);
  box-shadow: var(--soft-shadow);
}

.profile-hero .avatar {
  width: 132px;
  height: 132px;
  box-shadow: 0 18px 36px rgba(82, 107, 95, 0.16);
}

.profile-hero strong {
  display: block;
  margin-bottom: 6px;
  font-size: 34px;
  line-height: 1;
}

.profile-hero span {
  display: block;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
}

.privacy-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(320px, .88fr);
  gap: 16px;
}

.hero-photo {
  min-height: 520px;
  border-radius: 32px;
  background-image:
    linear-gradient(180deg, rgba(20, 24, 22, 0.03), rgba(20, 24, 22, 0.56)),
    var(--photo);
  background-position: center;
  background-size: cover;
  box-shadow: var(--shadow);
}

.celebration {
  position: relative;
  min-height: calc(100dvh - 84px);
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 30px;
}

.celebration-card {
  position: relative;
  z-index: 2;
  width: min(760px, 100%);
  display: grid;
  gap: 16px;
  padding: clamp(22px, 4vw, 38px);
  border: 1px solid var(--line);
  border-radius: 34px;
  background: rgba(255, 254, 250, .82);
  box-shadow: var(--shadow);
  backdrop-filter: blur(24px);
}

.celebration-mark {
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 24%, rgba(255,255,255,.95), transparent 32%),
    linear-gradient(135deg, var(--deep), #8ba092);
  color: #fffefa;
  font-size: 46px;
  box-shadow:
    0 18px 42px rgba(82, 107, 95, .24),
    0 0 0 12px rgba(232, 239, 233, .68);
}

.celebration-photo {
  min-height: 240px;
  border-radius: 28px;
  background-image:
    linear-gradient(180deg, rgba(20, 24, 22, 0.02), rgba(20, 24, 22, 0.38)),
    var(--photo);
  background-position: center;
  background-size: cover;
  box-shadow: var(--soft-shadow);
}

.celebration-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.celebration-bg::before {
  content: "";
  position: absolute;
  inset: 12%;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255,255,255,.86), transparent 42%),
    conic-gradient(from 20deg, rgba(182,138,75,.18), rgba(125,148,135,.24), rgba(255,255,255,.4), rgba(182,138,75,.18));
  filter: blur(18px);
  animation: celebrationGlow 5.5s ease-in-out infinite alternate;
}

.celebration-bg span {
  position: absolute;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(182, 138, 75, .72);
  box-shadow: 0 0 22px rgba(182, 138, 75, .55);
  animation: celebrationSpark 3.8s ease-in-out infinite;
}

.celebration-bg span:nth-child(1) { left: 14%; top: 22%; animation-delay: .1s; }
.celebration-bg span:nth-child(2) { left: 78%; top: 16%; animation-delay: .5s; }
.celebration-bg span:nth-child(3) { left: 84%; top: 64%; animation-delay: .9s; }
.celebration-bg span:nth-child(4) { left: 22%; top: 72%; animation-delay: 1.3s; }
.celebration-bg span:nth-child(5) { left: 52%; top: 12%; animation-delay: 1.8s; }

@keyframes celebrationGlow {
  from { transform: scale(.96) rotate(-4deg); opacity: .62; }
  to { transform: scale(1.05) rotate(5deg); opacity: .96; }
}

@keyframes celebrationSpark {
  0%, 100% { transform: translate3d(0, 0, 0) scale(.7); opacity: .28; }
  45% { transform: translate3d(18px, -24px, 0) scale(1.35); opacity: .95; }
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 20;
  transform: translate(-50%, 140%);
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--deep);
  color: #fffefa;
  box-shadow: var(--shadow);
  font-weight: 780;
  transition: transform .22s ease;
}

.toast.active { transform: translate(-50%, 0); }

.mobile-nav,
.mobile-top {
  display: none;
}

.auth-shell {
  min-height: 100dvh;
  display: grid;
  grid-template-columns: minmax(0, .96fr) minmax(420px, 520px);
  gap: clamp(24px, 6vw, 72px);
  align-items: center;
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 28px 0;
}

.auth-card {
  width: 100%;
  display: grid;
  gap: 15px;
  padding: clamp(24px, 4vw, 36px);
  border: 1px solid var(--line);
  border-radius: 34px;
  background: rgba(255, 254, 250, 0.74);
  box-shadow: var(--shadow);
  backdrop-filter: blur(24px);
}

.auth-brand {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 22px;
  font-weight: 760;
}

.auth-card h1 {
  font-size: clamp(36px, 5vw, 62px);
}

.auth-visual {
  position: relative;
  min-height: 560px;
  isolation: isolate;
}

.auth-visual::before {
  content: "";
  position: absolute;
  inset: 9% 3% 5%;
  border-radius: 44px;
  background:
    radial-gradient(circle at 28% 18%, rgba(255, 254, 250, .9), transparent 27%),
    linear-gradient(135deg, rgba(255, 254, 250, .66), rgba(232, 239, 233, .52));
  border: 1px solid rgba(82, 107, 95, .09);
  box-shadow: var(--shadow);
  z-index: -2;
}

.visual-path {
  position: absolute;
  inset: 24px 0 0;
  width: 100%;
  height: calc(100% - 24px);
  z-index: -1;
}

.visual-card {
  position: absolute;
  display: grid;
  align-content: end;
  padding: 16px;
  border: 7px solid rgba(255, 254, 250, .9);
  border-radius: 26px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0), rgba(22,28,25,.46)),
    linear-gradient(135deg, #dce6df, #fffefa);
  box-shadow: 0 18px 42px rgba(82, 107, 95, .18);
  color: #fffefa;
  font-weight: 760;
}

.visual-card span {
  width: fit-content;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(255, 254, 250, .88);
  color: var(--deep);
  font-size: 13px;
}

.visual-card-main {
  left: 7%;
  top: 28%;
  width: 180px;
  height: 230px;
  transform: rotate(-8deg);
}

.visual-card-photo {
  right: 7%;
  top: 16%;
  width: 230px;
  height: 150px;
  transform: rotate(6deg);
  background-image:
    linear-gradient(180deg, rgba(255,255,255,0), rgba(22,28,25,.52)),
    url("https://images.unsplash.com/photo-1500530855697-b586d89ba3ee?auto=format&fit=crop&w=800&q=82");
  background-size: cover;
  background-position: center;
}

.visual-card-soft {
  left: 44%;
  top: 48%;
  width: 128px;
  height: 132px;
  transform: rotate(2deg);
  background:
    linear-gradient(180deg, rgba(255,255,255,0), rgba(82,107,95,.26)),
    linear-gradient(135deg, #edf2ee, #fffefa);
}

.hidden { display: none !important; }

@media (max-width: 1180px) {
  .shell { grid-template-columns: 230px minmax(0, 1fr); }
  .side-panel { display: none; }
  .board, .idea-grid, .people-grid, .admin-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .auth-shell {
    grid-template-columns: 1fr;
    width: min(620px, calc(100% - 28px));
  }
  .auth-visual {
    min-height: 320px;
    order: -1;
  }
  .auth-visual::before { inset: 0; border-radius: 34px; }
  .visual-card-main {
    left: 8%;
    top: 20%;
    width: 142px;
    height: 178px;
  }
  .visual-card-photo {
    right: 8%;
    top: 13%;
    width: 188px;
    height: 122px;
  }
  .visual-card-soft {
    left: 43%;
    top: 52%;
    width: 104px;
    height: 104px;
  }
}

@media (max-width: 840px) {
  .shell { display: block; padding: 0; }
  .rail, .side-panel { display: none; }
  .workspace {
    width: 100%;
    min-height: 100dvh;
    padding: calc(88px + env(safe-area-inset-top)) 16px calc(104px + env(safe-area-inset-bottom));
    border: 0;
    border-radius: 0;
    overflow-x: hidden;
  }
  .top { display: grid; }
  .board-hero {
    gap: 16px;
    padding: 18px;
    border-radius: 24px;
  }
  .board-hero h1 {
    font-size: 32px;
  }
  .board-hero .muted {
    max-width: 94%;
  }
  .hero-add {
    width: auto;
    justify-self: start;
    min-height: 42px;
    padding: 0 16px;
  }
  .metrics, .board, .grid-2, .grid-3, .idea-grid, .people-grid, .admin-grid, .detail-layout { grid-template-columns: 1fr; }
  .idea-hero {
    display: grid;
    padding: 18px;
    border-radius: 24px;
  }
  .idea-hero .primary { width: 100%; }
  .idea-filters {
    gap: 16px;
    margin: 0 -16px 14px;
    padding: 0 16px 3px;
  }
  .idea-card {
    grid-template-columns: 1fr;
    border-radius: 24px;
  }
  .idea-photo {
    min-height: 210px;
  }
  .idea-content {
    padding: 15px;
  }
  .idea-content strong {
    font-size: 24px;
  }
  .public-profile-hero {
    grid-template-columns: 1fr;
  }
  .profile-wish-grid {
    grid-template-columns: 1fr;
  }
  .profile-wish-card {
    border-radius: 24px;
  }
  .profile-wish-photo {
    aspect-ratio: 1.45 / 1;
  }
  .profile-card-large .avatar {
    width: 104px;
    height: 104px;
  }
  .wish-builder { grid-template-columns: 1fr; }
  .wish-preview-panel {
    position: static;
    padding: 14px;
    border-radius: 24px;
  }
  .wish-preview-card {
    min-height: 260px;
    border-radius: 24px;
  }
  .wish-preview-card strong {
    font-size: 30px;
  }
  .builder-step {
    grid-template-columns: 1fr;
    padding: 15px;
    border-radius: 24px;
  }
  .builder-step h2 {
    font-size: 24px;
  }
  .privacy-grid { grid-template-columns: 1fr; }
  .wish.large, .wish.wide { grid-row: auto; grid-column: auto; }
  h1 { font-size: 34px; }
  .top .primary { width: 100%; }
  .metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
  }
  .metric {
    min-height: 82px;
    gap: 5px;
    padding: 10px;
    border-radius: 18px;
  }
  .metric-icon {
    width: 28px;
    height: 28px;
    border-radius: 11px;
  }
  .metric-icon svg {
    width: 17px;
    height: 17px;
  }
  .metric strong { font-size: 25px; }
  .metric span:not(.metric-icon) {
    font-size: 11px;
    line-height: 1.15;
  }
  .board-title-row {
    align-items: center;
    margin-top: 2px;
  }
  .board-title-row h2 {
    font-size: 26px;
  }
  .board-title-row span {
    max-width: 126px;
    text-align: right;
    font-size: 11px;
  }
  .chips {
    flex-wrap: nowrap;
    margin: 0 -16px 14px;
    padding: 0 16px 4px;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .chips::-webkit-scrollbar { display: none; }
  .board { grid-auto-rows: minmax(190px, auto); }
  .wish, .idea { min-height: 190px; border-radius: 24px; }
  .wish-label {
    gap: 7px;
  }
  .wish strong,
  .idea strong {
    font-size: 22px;
  }
  .wish small,
  .idea span {
    font-size: 11px;
    padding: 6px 9px;
  }
  .hero-photo { min-height: 340px; border-radius: 26px; }
  .wish-detail-photo {
    min-height: 360px;
  }
  .wish-detail-card {
    padding: 15px;
    border-radius: 24px;
  }
  .detail-state-pill {
    border-radius: 20px;
  }
  .detail-actions .primary,
  .detail-actions .secondary,
  .detail-actions .ghost {
    width: 100%;
  }
  .celebration {
    min-height: calc(100dvh - 190px);
    border-radius: 0;
  }
  .celebration-card {
    padding: 20px;
    border-radius: 28px;
  }
  .celebration-card h1 {
    font-size: 32px;
  }
  .celebration-mark {
    width: 64px;
    height: 64px;
    font-size: 38px;
  }
  .celebration-photo {
    min-height: 190px;
    border-radius: 24px;
  }
  .profile-card { grid-template-columns: 58px 1fr; }
  .profile-card button { grid-column: 1 / -1; }
  .profile-hero {
    grid-template-columns: 92px 1fr;
    padding: 14px;
    border-radius: 24px;
  }
  .profile-hero .avatar {
    width: 92px;
    height: 92px;
  }
  .profile-hero strong { font-size: 26px; }
  .auth-actions .primary,
  .auth-actions .secondary,
  .auth-actions .ghost {
    flex: 1 1 160px;
  }
  .auth-shell {
    width: min(100% - 24px, 520px);
    gap: 14px;
    padding: 12px 0;
  }
  .auth-visual {
    min-height: 270px;
  }
  .auth-card {
    padding: 22px;
    border-radius: 28px;
  }
  .auth-card h1 {
    font-size: 36px;
  }
  .visual-path {
    inset: 8px 0 0;
  }
  .visual-card {
    border-width: 5px;
    border-radius: 22px;
    padding: 11px;
  }
  .visual-card span {
    font-size: 11px;
  }
  .mobile-nav {
    position: fixed;
    left: max(16px, env(safe-area-inset-left));
    right: max(16px, env(safe-area-inset-right));
    bottom: max(14px, env(safe-area-inset-bottom));
    z-index: 15;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 5px;
    padding: 9px;
    border: 1px solid rgba(255, 254, 250, .72);
    border-radius: 32px;
    background:
      radial-gradient(circle at 18% 24%, rgba(255, 255, 255, .92), transparent 34%),
      radial-gradient(circle at 78% 22%, rgba(237, 205, 166, .36), transparent 36%),
      linear-gradient(100deg, rgba(255, 254, 250, .68), rgba(232, 239, 233, .44), rgba(255, 246, 232, .58));
    box-shadow:
      0 20px 54px rgba(82, 107, 95, 0.22),
      inset 0 1px 0 rgba(255, 255, 255, .72);
    backdrop-filter: blur(26px) saturate(1.35);
    -webkit-backdrop-filter: blur(26px) saturate(1.35);
  }
  .mobile-top {
    position: fixed;
    left: max(12px, env(safe-area-inset-left));
    right: max(12px, env(safe-area-inset-right));
    top: max(10px, env(safe-area-inset-top));
    z-index: 16;
    display: grid;
    grid-template-columns: 54px 1fr 54px;
    gap: 8px;
    align-items: center;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 28px;
    background: rgba(255, 254, 250, 0.92);
    box-shadow: 0 16px 42px rgba(82, 107, 95, 0.16);
    backdrop-filter: blur(18px);
  }
  .mobile-top .brand {
    justify-content: center;
    font-size: 19px;
  }
  .mobile-top .spark {
    width: 28px;
    height: 28px;
  }
  .mobile-avatar-button,
  .mobile-admin-button {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--soft);
    color: var(--deep);
    font-size: 24px;
    font-weight: 850;
  }
  .mobile-avatar-button .avatar {
    width: 42px;
    height: 42px;
  }
  .mobile-nav button {
    min-width: 0;
    min-height: 60px;
    display: grid;
    place-items: center;
    gap: 3px;
    border-radius: 24px;
    background: transparent;
    color: var(--muted);
    font-weight: 850;
  }
  .mobile-nav button > span {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    line-height: 1;
  }
  .mobile-nav svg {
    width: 28px;
    height: 28px;
    stroke-width: 1.95;
  }
  .mobile-nav small {
    display: none;
  }
  .mobile-nav button.active {
    background: rgba(255, 254, 250, .52);
    color: var(--deep);
    box-shadow:
      inset 0 0 0 1px rgba(82, 107, 95, .08),
      0 10px 22px rgba(82, 107, 95, .10);
  }
  .mobile-nav button[data-route="create"] {
    color: #fffefa;
    background:
      radial-gradient(circle at 35% 22%, rgba(255, 255, 255, .34), transparent 32%),
      var(--deep);
    box-shadow: 0 12px 28px rgba(82, 107, 95, 0.24);
  }
}
