:root {
  --bg: #f7f2e8;
  --bg-deep: #efe6d6;
  --surface: #fffdf9;
  --surface-2: #f2ebdd;
  --ink: #26221b;
  --ink-soft: #3d382f;
  --muted: #766d5f;
  --line: #e4dac8;
  --line-strong: #d4c7b1;
  --accent: #d95340;
  --accent-dark: #b43b2b;
  --accent-soft: #f8e2dc;
  --teal: #25685f;
  --teal-dark: #1d5049;
  --teal-soft: #dfeee9;
  --gold: #bd8834;
  --gold-soft: #f6e8c9;
  --forest: #213a33;
  --forest-2: #2c4a41;
  --danger: #b4382b;
  --radius: 20px;
  --radius-sm: 13px;
  --shadow-sm: 0 1px 0 rgba(57, 45, 27, 0.04), 0 6px 18px rgba(57, 45, 27, 0.05);
  --shadow-md: 0 18px 44px rgba(57, 45, 27, 0.1);
  --serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
  --sans: "Avenir Next", Avenir, "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 8% -4%, rgba(246, 226, 185, 0.8), transparent 30rem),
    radial-gradient(circle at 96% 8%, rgba(223, 238, 233, 0.7), transparent 26rem),
    var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

img,
svg {
  display: block;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.015em;
}

h1 {
  font-size: clamp(2.2rem, 4vw, 3.55rem);
}

h2 {
  font-size: clamp(1.55rem, 2.2vw, 2.05rem);
}

h3 {
  font-size: 1.16rem;
  line-height: 1.25;
}

p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.icon {
  flex: none;
  vertical-align: middle;
}

.icon-xs {
  width: 13px;
  height: 13px;
  stroke-width: 2;
}

.icon-sm {
  width: 17px;
  height: 17px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 200;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--ink);
  color: #fff;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

/* ---------------------------------------------------------------- header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  border-bottom: 1px solid rgba(212, 199, 177, 0.5);
  background: rgba(247, 242, 232, 0.84);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  width: min(1160px, calc(100% - 40px));
  min-height: 74px;
  margin: 0 auto;
}

.header-inner.wide {
  width: min(1320px, calc(100% - 40px));
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: none;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 12px;
  background: var(--accent);
  color: #fff7ef;
  box-shadow: 0 4px 12px rgba(217, 83, 64, 0.28);
}

.brand-mark .icon {
  width: 21px;
  height: 21px;
}

.brand-text {
  font-family: var(--serif);
  font-size: 1.28rem;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.brand-text em {
  color: var(--accent);
  font-style: italic;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
}

.nav-link {
  padding: 8px 12px;
  border-radius: 10px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 550;
  white-space: nowrap;
  transition: background 160ms ease, color 160ms ease;
}

.nav-link:hover {
  background: rgba(255, 253, 249, 0.8);
  color: var(--ink);
}

.nav-link.is-active {
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}

.nav-account {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 8px;
  padding: 4px 9px 4px 4px;
  border: 1px solid transparent;
  border-radius: 999px;
  transition: border-color 160ms ease, background 160ms ease;
}

.nav-account:hover {
  border-color: var(--line);
  background: var(--surface);
}

.nav-account-name {
  max-width: 130px;
  overflow: hidden;
  font-size: 0.88rem;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ------------------------------------------------------------------ page */

.page {
  width: min(1160px, calc(100% - 40px));
  min-height: calc(100vh - 190px);
  margin: 0 auto;
  padding: 38px 0 70px;
}

.page-wide {
  width: min(1320px, calc(100% - 40px));
}

.eyebrow {
  margin-bottom: 8px;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 30px;
}

.page-head h1 {
  font-size: clamp(2.1rem, 3.4vw, 3rem);
}

.page-lead {
  max-width: 680px;
  margin-top: 11px;
  color: var(--muted);
  font-size: 1.02rem;
}

.page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-bottom: 4px;
}

.section {
  margin-top: 54px;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.section-head.compact {
  align-items: center;
  margin-bottom: 16px;
}

.section-head h2 {
  font-size: 1.72rem;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--teal);
  font-size: 0.9rem;
  font-weight: 650;
  white-space: nowrap;
}

.text-link:hover {
  color: var(--teal-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.text-link-small {
  font-size: 0.83rem;
}

.muted {
  color: var(--muted);
}

.center {
  justify-content: center;
}

.two-col {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 22px;
}

.narrow {
  max-width: 680px;
  margin: 0 auto;
}

.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  padding: 24px;
}

/* ----------------------------------------------------------------- hero */

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(310px, 0.85fr);
  align-items: center;
  gap: 28px;
  min-height: 390px;
  padding: 48px 50px;
  overflow: hidden;
  border-radius: 30px;
  background:
    radial-gradient(circle at 82% 10%, rgba(189, 136, 52, 0.26), transparent 18rem),
    linear-gradient(130deg, var(--forest) 0%, #27463d 58%, #35584c 100%);
  color: #fbf4e8;
  box-shadow: 0 26px 60px rgba(33, 58, 51, 0.2);
}

.hero::before {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 24px 24px;
  content: "";
  mask-image: linear-gradient(to right, black, transparent 70%);
  pointer-events: none;
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 620px;
}

.hero .eyebrow {
  color: #e9b968;
}

.hero h1 {
  max-width: 640px;
  font-size: clamp(3rem, 5.2vw, 4.8rem);
  letter-spacing: -0.035em;
}

.hero-lead {
  max-width: 560px;
  margin-top: 18px;
  color: #d8e3dc;
  font-size: 1.06rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero .btn-primary {
  background: var(--accent);
  color: #fff9f3;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.hero .btn-primary:hover {
  background: #e6614d;
}

.hero .btn-ghost {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.06);
  color: #fbf4e8;
}

.hero .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
}

.hero-art {
  position: relative;
  min-height: 290px;
}

.hero-orbit {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 270px;
  height: 270px;
  border: 1px dashed rgba(251, 244, 232, 0.22);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.hero-orbit::after {
  position: absolute;
  inset: 40px;
  border: 1px solid rgba(251, 244, 232, 0.1);
  border-radius: 50%;
  content: "";
}

.hero-gift {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 150px;
  height: 150px;
  transform: translate(-50%, -46%) rotate(-6deg);
  filter: drop-shadow(0 24px 30px rgba(0, 0, 0, 0.28));
}

.gift-box {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 105px;
  border-radius: 10px;
  background: linear-gradient(145deg, #e46a55, #c84836);
}

.gift-lid {
  position: absolute;
  top: 25px;
  right: -9px;
  left: -9px;
  z-index: 2;
  height: 36px;
  border-radius: 8px;
  background: linear-gradient(145deg, #f08069, #d4533f);
}

.gift-ribbon {
  position: absolute;
  top: 17px;
  bottom: 0;
  left: 50%;
  z-index: 3;
  width: 22px;
  transform: translateX(-50%);
  background: #f2cf8b;
}

.gift-ribbon::before,
.gift-ribbon::after {
  position: absolute;
  top: -19px;
  width: 42px;
  height: 27px;
  border: 8px solid #f2cf8b;
  border-radius: 50% 50% 8px 50%;
  content: "";
}

.gift-ribbon::before {
  right: 8px;
  transform: rotate(-18deg);
}

.gift-ribbon::after {
  left: 8px;
  transform: rotate(18deg) scaleX(-1);
}

.hero-float {
  position: absolute;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px 13px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 250, 240, 0.12);
  color: #fff7ea;
  font-size: 0.78rem;
  font-weight: 600;
  backdrop-filter: blur(8px);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.16);
}

.hero-float-a {
  top: 33px;
  left: 2px;
  transform: rotate(-3deg);
}

.hero-float-b {
  right: -3px;
  bottom: 33px;
  transform: rotate(3deg);
}

.hero-spark {
  position: absolute;
  color: #e9b968;
  opacity: 0.9;
}

.hero-spark-a {
  top: 12px;
  right: 30px;
}

.hero-spark-b {
  bottom: 8px;
  left: 50px;
  color: #f2a493;
}

/* ---------------------------------------------------------------- stats */

.stat-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
  box-shadow: var(--shadow-sm);
}

.stat {
  padding: 19px 24px;
  background: var(--surface);
}

.stat strong {
  display: block;
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 600;
  line-height: 1;
}

.stat span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.82rem;
}

.admin-stats {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-top: 0;
  margin-bottom: 22px;
}

/* ---------------------------------------------------------------- cards */

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

.group-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 196px;
  padding: 21px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.group-card::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 4px;
  background: var(--teal);
  content: "";
}

.group-card.kind-family::before {
  background: var(--accent);
}

.group-card.kind-event::before {
  background: var(--gold);
}

.group-card:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.group-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 18px;
}

.group-date {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 600;
}

.group-card h3 {
  margin-bottom: 8px;
  font-family: var(--serif);
  font-size: 1.38rem;
}

.group-card p {
  display: -webkit-box;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.88rem;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.group-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 20px;
  color: var(--muted);
  font-size: 0.8rem;
}

.group-card-foot > span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.arrow-link {
  color: var(--teal) !important;
  font-weight: 650;
}

.groups-grid {
  margin-top: 24px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--ink-soft);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.badge .icon {
  width: 12px;
  height: 12px;
}

.badge-family {
  background: var(--accent-soft);
  color: var(--accent-dark);
}

.badge-event {
  background: var(--gold-soft);
  color: #7c581d;
}

.badge-group {
  background: var(--teal-soft);
  color: var(--teal-dark);
}

.badge-admin {
  background: #e8e2f4;
  color: #55407d;
}

.badge-muted {
  background: #ede9e1;
  color: #7a7164;
}

.badge-ok {
  background: #dfeee5;
  color: #2d6246;
}

.person-card {
  display: flex;
  gap: 16px;
  min-height: 178px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.person-card:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.person-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
}

.person-card h3 {
  margin-top: 3px;
  font-family: var(--serif);
  font-size: 1.28rem;
}

.handle {
  color: var(--muted);
  font-size: 0.78rem;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 9px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  max-width: 100%;
  padding: 3px 8px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--ink-soft);
  font-size: 0.68rem;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chip-link:hover {
  background: var(--teal-soft);
  color: var(--teal-dark);
}

.chip-owner {
  background: var(--gold-soft);
  color: #7c581d;
}

.chip-muted {
  background: #ede9e1;
  color: #7a7164;
}

.chip-more {
  background: var(--teal-soft);
  color: var(--teal-dark);
}

.person-count {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: auto;
  padding-top: 14px;
  color: var(--teal);
  font-size: 0.8rem;
  font-weight: 650;
}

.avatar {
  display: inline-grid;
  flex: none;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 50%;
  font-family: var(--serif);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.avatar-sm {
  width: 32px;
  height: 32px;
  font-size: 0.74rem;
}

.avatar-lg {
  width: 54px;
  height: 54px;
  font-size: 1.14rem;
}

.avatar-xl {
  width: 82px;
  height: 82px;
  font-size: 1.7rem;
}

.avatar-c0 { background: #f3d8ce; color: #7f382d; }
.avatar-c1 { background: #d9ebe4; color: #24574d; }
.avatar-c2 { background: #f2e3bf; color: #72531a; }
.avatar-c3 { background: #dfe2f1; color: #3e4775; }
.avatar-c4 { background: #ecd9e7; color: #6d3761; }
.avatar-c5 { background: #dae8f2; color: #2e5871; }
.avatar-c6 { background: #e8dfd0; color: #5d4930; }
.avatar-c7 { background: #e2e9cf; color: #4c6030; }

.next-event {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
  padding: 15px 20px;
  border: 1px solid #ecd9b3;
  border-radius: var(--radius-sm);
  background: linear-gradient(100deg, #fbf1db, #fffaf0);
  transition: border-color 160ms ease, transform 160ms ease;
}

.next-event:hover {
  border-color: var(--gold);
  transform: translateY(-1px);
}

.next-event-icon {
  display: grid;
  width: 42px;
  height: 42px;
  flex: none;
  place-items: center;
  border-radius: 12px;
  background: var(--gold-soft);
  color: #8a611f;
}

.next-event .eyebrow {
  margin: 0 0 2px;
  color: #8a611f;
  font-size: 0.62rem;
}

.next-event strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.12rem;
}

.next-event-date {
  margin-left: auto;
  color: #7c581d;
  font-size: 0.82rem;
  font-weight: 650;
}

/* ----------------------------------------------------------- empty/quote */

.empty-state {
  padding: 53px 30px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  background: rgba(255, 253, 249, 0.55);
  text-align: center;
}

.empty-icon {
  display: grid;
  width: 62px;
  height: 62px;
  margin: 0 auto 17px;
  place-items: center;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
}

.empty-icon .icon {
  width: 28px;
  height: 28px;
}

.empty-state h3 {
  font-family: var(--serif);
  font-size: 1.45rem;
}

.empty-state p {
  max-width: 430px;
  margin: 8px auto 20px;
  color: var(--muted);
}

.quote-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 220px;
  background:
    radial-gradient(circle at 90% 10%, rgba(246, 232, 201, 0.65), transparent 12rem),
    var(--surface);
}

.quote-mark {
  height: 40px;
  color: var(--accent);
  font-family: var(--serif);
  font-size: 4.6rem;
  line-height: 0.8;
}

.quote-panel p {
  margin: 8px 0 16px;
  font-family: var(--serif);
  font-size: 1.45rem;
  line-height: 1.25;
}

.quote-author {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.mini-list {
  margin: 6px 0 16px;
}

.mini-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.92rem;
}

.mini-list li:last-child {
  border-bottom: 0;
}

.mini-list .icon {
  color: var(--teal);
}

.onboarding {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  margin-top: 22px;
  background:
    radial-gradient(circle at 100% 0%, rgba(223, 238, 233, 0.9), transparent 16rem),
    var(--surface);
}

.onboarding h2 {
  margin-bottom: 7px;
}

.onboarding p:not(.eyebrow) {
  max-width: 570px;
  color: var(--muted);
}

.onboarding-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  flex: none;
}

/* --------------------------------------------------------------- buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 43px;
  padding: 10px 17px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 650;
  line-height: 1.2;
  text-align: center;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--ink);
  color: #fffaf3;
  box-shadow: 0 6px 16px rgba(38, 34, 27, 0.14);
}

.btn-primary:hover {
  background: #3a3329;
}

.btn-soft {
  border-color: var(--teal-soft);
  background: var(--teal-soft);
  color: var(--teal-dark);
}

.btn-soft:hover {
  border-color: #c7e2d9;
  background: #d3e8e1;
}

.btn-ghost {
  border-color: var(--line-strong);
  background: transparent;
  color: var(--ink-soft);
}

.btn-ghost:hover {
  border-color: #bfae94;
  background: var(--surface);
}

.btn-danger {
  border-color: #e9c4bd;
  background: #f9e6e2;
  color: var(--danger);
}

.btn-danger:hover {
  border-color: #dba99f;
  background: #f5d8d2;
}

.btn-sm {
  min-height: 35px;
  padding: 7px 12px;
  border-radius: 9px;
  font-size: 0.8rem;
}

.btn-block {
  width: 100%;
}

.icon-btn {
  display: inline-grid;
  width: 35px;
  height: 35px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface);
  color: var(--muted);
  transition: border-color 160ms ease, color 160ms ease, background 160ms ease;
}

.icon-btn:hover {
  border-color: var(--line-strong);
  background: var(--surface-2);
  color: var(--ink);
}

.icon-btn-danger:hover {
  border-color: #e4b8b0;
  background: #faeae6;
  color: var(--danger);
}

/* ----------------------------------------------------------------- forms */

.form {
  display: flex;
  flex-direction: column;
  gap: 17px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.field > span {
  color: var(--ink-soft);
  font-size: 0.8rem;
  font-weight: 650;
}

.field > span em {
  color: var(--muted);
  font-style: normal;
  font-weight: 400;
}

.field small {
  color: var(--muted);
  font-size: 0.74rem;
}

.field input,
.field select,
.field textarea,
.input-with-button input {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  outline: 0;
  background: #fffdf9;
  color: var(--ink);
  font-size: 0.95rem;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.field input,
.field select,
.input-with-button input {
  height: 45px;
  padding: 0 12px;
}

.field textarea {
  min-height: 80px;
  padding: 11px 12px;
  resize: vertical;
}

.field input::placeholder,
.field textarea::placeholder {
  color: #aaa091;
}

.field input:focus,
.field select:focus,
.field textarea:focus,
.input-with-button input:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(37, 104, 95, 0.13);
}

.field input:disabled {
  background: #f1ece2;
  color: var(--muted);
}

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

.field-grow {
  min-width: 0;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding-top: 3px;
}

.form-footnote {
  margin-top: 17px;
  color: var(--muted);
  font-size: 0.84rem;
  text-align: center;
}

.form-footnote a {
  color: var(--teal);
  font-weight: 650;
}

.form-inline {
  flex-direction: row;
  align-items: flex-end;
  gap: 10px;
}

.form-inline .field {
  flex: 1;
}

.checkbox-field {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fffdf9;
  cursor: pointer;
}

.checkbox-field input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--teal);
}

.checkbox-field span {
  font-size: 0.85rem;
}

.checkbox-field small {
  color: var(--muted);
  font-size: 0.76rem;
}

.input-with-button {
  display: flex;
  gap: 8px;
}

.input-with-button input {
  flex: 1;
}

.alert,
.flash {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-bottom: 22px;
  padding: 13px 15px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-size: 0.88rem;
}

.flash {
  border-color: #cfe5db;
  background: #eaf5ef;
  color: #295c43;
}

.alert-error {
  border-color: #edc8c1;
  background: #fbebe7;
  color: #8d3327;
}

.alert-info {
  border-color: #cfdfe8;
  background: #eaf2f7;
  color: #2f586d;
}

.footer-inner,
.site-footer {
  border-top: 1px solid var(--line);
}

.site-footer {
  padding: 22px 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
  padding-top: 20px;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--ink-soft);
  font-family: var(--serif);
  font-size: 1rem;
}

/* -------------------------------------------------------------- wishlist */

.wishlist-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  align-items: start;
  gap: 24px;
}

.wishlist-main {
  min-width: 0;
}

.wishlist-aside {
  display: flex;
  flex-direction: column;
  gap: 17px;
}

.add-panel {
  margin-bottom: 21px;
  padding: 0;
  overflow: hidden;
}

.add-panel > summary {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 21px;
  color: var(--teal);
  font-size: 0.9rem;
  font-weight: 700;
  list-style: none;
  cursor: pointer;
  user-select: none;
}

.add-panel > summary::-webkit-details-marker {
  display: none;
}

.add-panel > summary::after {
  margin-left: auto;
  color: var(--muted);
  font-size: 1.2rem;
  content: "+";
}

.add-panel[open] > summary::after {
  content: "−";
}

.add-panel > summary:hover {
  background: #faf7f0;
}

.add-panel .form {
  padding: 0 21px 22px;
}

.wish-list {
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.wish-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.wish-card:hover {
  border-color: var(--line-strong);
  box-shadow: 0 8px 22px rgba(57, 45, 27, 0.07);
}

.wish-index {
  display: grid;
  width: 34px;
  height: 34px;
  flex: none;
  place-items: center;
  border-radius: 10px;
  background: var(--gold-soft);
  color: #8a611f;
}

.wish-body {
  flex: 1;
  min-width: 0;
}

.wish-body h3 {
  padding-top: 3px;
  font-family: var(--serif);
  font-size: 1.24rem;
  word-break: break-word;
}

.wish-note {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.86rem;
  word-break: break-word;
}

.wish-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  margin-top: 10px;
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbf8f2;
  color: var(--teal);
  font-size: 0.76rem;
  font-weight: 600;
}

.wish-link span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wish-link:hover {
  border-color: #b9d5cd;
  background: var(--teal-soft);
}

.wish-actions {
  display: flex;
  gap: 5px;
  flex: none;
}

.aside-note {
  background:
    radial-gradient(circle at 100% 0%, rgba(246, 232, 201, 0.8), transparent 12rem),
    var(--surface);
}

.aside-note-icon {
  display: grid;
  width: 40px;
  height: 40px;
  margin-bottom: 13px;
  place-items: center;
  border-radius: 12px;
  background: var(--teal-soft);
  color: var(--teal);
}

.aside-note h3 {
  font-size: 1.06rem;
}

.aside-note p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.84rem;
}

.plain-list li + li {
  margin-top: 8px;
}

.plain-list a {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--ink-soft);
  font-size: 0.85rem;
}

.plain-list a:hover {
  color: var(--teal);
}

.plain-list .icon {
  color: var(--teal);
}

/* ------------------------------------------------------------ people/view */

.person-hero {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    radial-gradient(circle at 92% 12%, rgba(246, 232, 201, 0.75), transparent 18rem),
    var(--surface);
  box-shadow: var(--shadow-sm);
}

.person-hero h1 {
  margin: 2px 0 0;
  font-size: clamp(2rem, 3.5vw, 2.8rem);
}

.person-hero .handle {
  margin-top: 2px;
}

.person-hero-back {
  margin-left: auto;
  align-self: flex-start;
}

.notice {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin: 20px 0 22px;
  padding: 12px 15px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(255, 253, 249, 0.65);
  color: var(--muted);
  font-size: 0.82rem;
}

.notice .icon {
  margin-top: 1px;
  color: var(--teal);
}

.gift-card {
  padding-bottom: 18px;
}

.gift-card.is-taken {
  background: #fbf8f1;
}

.reserve-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  padding-top: 13px;
  border-top: 1px solid var(--line);
}

.reserve-state {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 600;
}

.reserve-state.is-mine {
  color: var(--teal);
}

.reserve-state .icon {
  color: var(--gold);
}

/* ---------------------------------------------------------------- groups */

.groups-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.6fr);
  align-items: start;
  gap: 18px;
}

.create-panel {
  padding: 0;
  overflow: hidden;
}

.create-panel > summary {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 19px 23px;
  color: var(--teal);
  font-size: 0.93rem;
  font-weight: 700;
  list-style: none;
  cursor: pointer;
}

.create-panel > summary::-webkit-details-marker {
  display: none;
}

.create-panel > summary::after {
  margin-left: auto;
  color: var(--muted);
  content: "+";
}

.create-panel[open] > summary::after {
  content: "−";
}

.create-panel .form {
  padding: 0 23px 24px;
}

.join-panel {
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.join-panel .btn {
  width: 100%;
}

.group-hero {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 34px;
  overflow: hidden;
  border-radius: 26px;
  background:
    radial-gradient(circle at 95% 0%, rgba(246, 232, 201, 0.9), transparent 19rem),
    linear-gradient(120deg, #fffdf9, #fbf4e6);
  box-shadow: var(--shadow-sm);
}

.group-hero::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 5px;
  background: var(--teal);
  content: "";
}

.group-hero.kind-family::before {
  background: var(--accent);
}

.group-hero.kind-event::before {
  background: var(--gold);
}

.group-hero-main {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  min-width: 0;
}

.group-hero-icon {
  display: grid;
  width: 58px;
  height: 58px;
  flex: none;
  place-items: center;
  border-radius: 17px;
  background: var(--teal-soft);
  color: var(--teal);
}

.kind-family .group-hero-icon {
  background: var(--accent-soft);
  color: var(--accent);
}

.kind-event .group-hero-icon {
  background: var(--gold-soft);
  color: #8a611f;
}

.group-hero h1 {
  margin-top: 2px;
  font-size: clamp(2.1rem, 3.5vw, 2.9rem);
}

.group-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.82rem;
}

.group-meta > span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.group-hero-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
}

.invite-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  margin-top: 22px;
  background:
    radial-gradient(circle at 0% 100%, rgba(223, 238, 233, 0.8), transparent 16rem),
    var(--surface);
}

.invite-copy {
  max-width: 530px;
}

.invite-copy h2 {
  margin-bottom: 5px;
  font-size: 1.42rem;
}

.invite-copy p:not(.eyebrow) {
  color: var(--muted);
  font-size: 0.86rem;
}

.invite-tools {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 9px;
  flex: none;
}

.invite-code {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 6px 5px 15px;
  border: 1px dashed #b6cec5;
  border-radius: 11px;
  background: #f1f9f5;
}

.invite-code code {
  color: var(--teal-dark);
  font-family: var(--mono);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.invite-code .icon-btn {
  width: 31px;
  height: 31px;
  border-color: #c5ded5;
}

.invite-link {
  display: flex;
  gap: 5px;
  width: 310px;
  max-width: 100%;
}

.invite-link input {
  width: 100%;
  height: 34px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf9;
  color: var(--muted);
  font-size: 0.7rem;
}

.invite-link .icon-btn {
  width: 34px;
  height: 34px;
}

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

.member-card {
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

a.member-card:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

.member-card h3 {
  padding-right: 12px;
  font-family: var(--serif);
  font-size: 1.05rem;
}

.member-card .handle {
  margin: 1px 0 2px;
}

.member-card .chip-row {
  margin-top: 5px;
}

.member-card.is-static {
  opacity: 0.78;
}

.member-arrow {
  position: absolute;
  top: 16px;
  right: 14px;
  color: var(--teal);
}

.you {
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.64rem;
  font-weight: 500;
}

.stacked-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}

/* ----------------------------------------------------------- group edit */

.edit-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  align-items: start;
  gap: 22px;
}

.edit-main,
.edit-aside,
.account-layout {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.account-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  align-items: start;
}

.edit-aside .panel h3 {
  margin-bottom: 6px;
}

.manage-list {
  margin: 6px 0 16px;
}

.manage-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.manage-list li:last-child {
  border-bottom: 0;
}

.manage-list-body {
  flex: 1;
  min-width: 0;
}

.manage-list-body strong {
  display: block;
  font-size: 0.87rem;
}

.manage-list-body span {
  color: var(--muted);
  font-size: 0.73rem;
}

.add-member-form {
  padding-top: 15px;
  border-top: 1px solid var(--line);
}

.danger-panel {
  border-color: #ebcbc5;
  background: #fffaf8;
}

.danger-panel h3 {
  color: var(--danger);
}

.danger-panel p {
  margin: 6px 0 13px;
  color: var(--muted);
  font-size: 0.84rem;
}

.join-shell {
  max-width: 570px;
  padding-top: 25px;
}

.join-card {
  padding: 38px;
  text-align: center;
  background:
    radial-gradient(circle at 50% 0%, rgba(246, 232, 201, 0.9), transparent 17rem),
    var(--surface);
}

.join-icon {
  display: grid;
  width: 65px;
  height: 65px;
  margin: 0 auto 17px;
  place-items: center;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
}

.join-icon .icon {
  width: 30px;
  height: 30px;
}

.join-card h1 {
  margin-bottom: 10px;
  font-size: 2.55rem;
}

.join-card .group-meta {
  justify-content: center;
  margin: 16px 0;
}

.join-explain {
  margin: 17px 0 20px;
  color: var(--muted);
  font-size: 0.85rem;
}

.join-card .text-link {
  margin-top: 15px;
}

/* --------------------------------------------------------------- account */

.profile-summary {
  text-align: center;
}

.profile-summary .avatar {
  margin: 0 auto 13px;
}

.profile-summary h2 {
  font-size: 1.55rem;
}

.profile-summary .chip-row {
  justify-content: center;
}

.profile-summary .btn {
  margin-top: 10px;
}

.meta-list {
  margin: 19px 0;
  border-top: 1px solid var(--line);
}

.meta-list > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.8rem;
}

.meta-list dt {
  color: var(--muted);
}

.meta-list dd {
  margin: 0;
  font-weight: 650;
  text-align: right;
}

/* ----------------------------------------------------------------- admin */

.admin-tabs {
  display: flex;
  gap: 3px;
  margin-bottom: 24px;
  padding: 4px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 253, 249, 0.6);
  scrollbar-width: none;
}

.admin-tabs::-webkit-scrollbar {
  display: none;
}

.admin-tab {
  padding: 9px 15px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 600;
  white-space: nowrap;
}

.admin-tab:hover {
  color: var(--ink);
}

.admin-tab.is-active {
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}

.admin-help {
  margin-top: 22px;
}

.admin-help h3 {
  margin-bottom: 5px;
}

.admin-help p {
  color: var(--muted);
  font-size: 0.86rem;
}

.compact-list {
  display: flex;
  flex-direction: column;
}

.compact-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.compact-row:last-child {
  border-bottom: 0;
}

.compact-row > span:nth-child(2) {
  flex: 1;
  min-width: 0;
}

.compact-row strong {
  display: block;
  overflow: hidden;
  font-size: 0.84rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.compact-row small {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
}

.compact-row:hover strong {
  color: var(--teal);
}

.compact-icon {
  display: grid;
  width: 32px;
  height: 32px;
  flex: none;
  place-items: center;
  border-radius: 9px;
  background: var(--surface-2);
  color: var(--teal);
}

.search-form {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 14px;
}

.field-search {
  position: relative;
  flex: 0 1 380px;
}

.field-search .icon {
  position: absolute;
  bottom: 13px;
  left: 12px;
  color: var(--muted);
}

.field-search input {
  padding-left: 37px;
}

.table-wrap {
  padding: 0;
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}

.data-table th {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  background: #faf7f0;
  color: var(--muted);
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-align: left;
  text-transform: uppercase;
  white-space: nowrap;
}

.data-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}

.data-table tr:last-child td {
  border-bottom: 0;
}

.data-table tbody tr:hover {
  background: #fcfaf6;
}

.table-user {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 170px;
}

.table-user strong {
  display: block;
  font-size: 0.83rem;
}

.table-user small {
  display: block;
  color: var(--muted);
  font-size: 0.7rem;
}

.table-empty {
  padding: 30px;
  color: var(--muted);
  text-align: center;
}

.profile-line {
  display: flex;
  align-items: center;
  gap: 12px;
}

.profile-line h2 {
  font-size: 1.55rem;
}

/* ------------------------------------------------------------------ auth */

.auth-page .site-footer {
  display: none;
}

.auth-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(380px, 0.8fr);
  min-height: 640px;
  overflow: hidden;
  border-radius: 28px;
  box-shadow: 0 30px 70px rgba(57, 45, 27, 0.14);
}

.auth-aside {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 56px;
  overflow: hidden;
  background:
    radial-gradient(circle at 92% 8%, rgba(189, 136, 52, 0.32), transparent 21rem),
    radial-gradient(circle at 10% 100%, rgba(223, 238, 233, 0.16), transparent 18rem),
    var(--forest);
  color: #fbf4e8;
}

.auth-aside::after {
  position: absolute;
  right: -80px;
  bottom: -100px;
  width: 330px;
  height: 330px;
  border: 1px dashed rgba(251, 244, 232, 0.18);
  border-radius: 50%;
  content: "";
}

.auth-aside-mark {
  display: grid;
  width: 54px;
  height: 54px;
  margin-bottom: 30px;
  place-items: center;
  border-radius: 16px;
  background: var(--accent);
  color: #fff7ef;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.22);
}

.auth-aside-mark .icon {
  width: 27px;
  height: 27px;
}

.auth-aside .eyebrow {
  color: #e9b968;
}

.auth-aside h1 {
  max-width: 480px;
  font-size: clamp(2.6rem, 4vw, 3.9rem);
}

.auth-aside > p:not(.eyebrow) {
  max-width: 450px;
  margin-top: 18px;
  color: #cfddd6;
  font-size: 1rem;
}

.auth-points {
  display: flex;
  flex-direction: column;
  gap: 11px;
  margin-top: 30px;
}

.auth-points li {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #e8f0eb;
  font-size: 0.85rem;
}

.auth-points .icon {
  color: #e9b968;
}

.auth-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px;
  background: var(--surface);
}

.auth-card h2 {
  margin-bottom: 25px;
  font-size: 2.2rem;
}

.auth-card .form {
  gap: 15px;
}

.auth-card .btn-block {
  margin-top: 5px;
}

/* ----------------------------------------------------------------- error */

.error-shell {
  max-width: 560px;
  margin: 70px auto;
  padding: 46px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  text-align: center;
}

.error-code {
  color: var(--accent);
  font-family: var(--serif);
  font-size: 5rem;
  line-height: 1;
}

.error-shell h1 {
  margin: 10px 0;
  font-size: 2rem;
}

.error-shell p {
  margin-bottom: 22px;
  color: var(--muted);
}

/* -------------------------------------------------------------- responsive */

@media (max-width: 1100px) {
  .site-nav {
    gap: 1px;
  }

  .nav-link {
    padding: 8px 9px;
    font-size: 0.86rem;
  }

  .nav-account-name {
    display: none;
  }

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

  .hero {
    grid-template-columns: minmax(0, 1.25fr) minmax(260px, 0.75fr);
    padding: 42px 38px;
  }

  .hero-art {
    min-height: 250px;
    transform: scale(0.9);
  }
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
    padding: 40px 34px;
  }

  .hero-art {
    display: none;
  }

  .admin-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .wishlist-layout,
  .edit-layout,
  .account-layout,
  .groups-toolbar {
    grid-template-columns: 1fr;
  }

  .wishlist-aside {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .account-aside {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 17px;
  }

  .invite-panel {
    align-items: flex-start;
    flex-direction: column;
  }

  .invite-tools {
    align-items: flex-start;
    width: 100%;
  }

  .auth-shell {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .auth-aside {
    padding: 35px 34px;
  }

  .auth-aside h1 {
    font-size: 2.5rem;
  }

  .auth-aside > p:not(.eyebrow),
  .auth-points {
    display: none;
  }

  .auth-aside-mark {
    width: 44px;
    height: 44px;
    margin-bottom: 18px;
  }

  .auth-aside-mark .icon {
    width: 22px;
    height: 22px;
  }

  .auth-card {
    padding: 34px;
  }
}

@media (max-width: 760px) {
  .header-inner,
  .header-inner.wide,
  .page,
  .page-wide,
  .footer-inner {
    width: calc(100% - 28px);
  }

  .header-inner {
    flex-wrap: wrap;
    gap: 6px;
    padding: 9px 0 7px;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
  }

  .brand-text {
    font-size: 1.15rem;
  }

  .site-nav {
    width: 100%;
    padding-bottom: 2px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .site-nav::-webkit-scrollbar {
    display: none;
  }

  .nav-link {
    padding: 7px 10px;
    font-size: 0.8rem;
  }

  .nav-account {
    margin-left: auto;
  }

  .nav-account-name {
    display: inline;
  }

  .page {
    padding: 26px 0 50px;
  }

  .page-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 23px;
  }

  .page-head h1 {
    font-size: 2.25rem;
  }

  .hero {
    padding: 32px 24px;
    border-radius: 22px;
  }

  .hero h1 {
    font-size: 2.8rem;
  }

  .hero-lead {
    font-size: 0.96rem;
  }

  .stat-row {
    grid-template-columns: 1fr;
  }

  .stat {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 15px;
    padding: 14px 18px;
  }

  .stat strong {
    font-size: 1.65rem;
  }

  .stat span {
    margin-top: 0;
    text-align: right;
  }

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

  .admin-stats .stat {
    display: block;
  }

  .admin-stats .stat span {
    text-align: left;
  }

  .card-grid,
  .people-grid,
  .groups-grid,
  .member-grid,
  .two-col {
    grid-template-columns: 1fr;
  }

  .section {
    margin-top: 38px;
  }

  .section-head {
    align-items: flex-start;
  }

  .section-head h2 {
    font-size: 1.5rem;
  }

  .onboarding {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
  }

  .wishlist-aside,
  .account-aside {
    grid-template-columns: 1fr;
  }

  .wish-card {
    padding: 17px;
  }

  .wish-body h3 {
    font-size: 1.14rem;
  }

  .wish-actions {
    flex-direction: column;
  }

  .person-hero {
    align-items: flex-start;
    flex-wrap: wrap;
    padding: 22px;
  }

  .person-hero-back {
    width: 100%;
    margin-left: 0;
  }

  .group-hero {
    flex-direction: column;
    padding: 25px 22px;
  }

  .group-hero-actions {
    width: 100%;
    justify-content: space-between;
  }

  .group-hero-main {
    gap: 13px;
  }

  .group-hero-icon {
    width: 46px;
    height: 46px;
    border-radius: 13px;
  }

  .group-hero h1 {
    font-size: 2.1rem;
  }

  .invite-link {
    width: 100%;
  }

  .form-inline {
    align-items: stretch;
    flex-direction: column;
  }

  .field-row {
    grid-template-columns: 1fr;
  }

  .search-form {
    flex-wrap: wrap;
  }

  .field-search {
    flex-basis: 100%;
  }

  .data-table {
    min-width: 720px;
  }

  .auth-card {
    padding: 27px 23px;
  }

  .auth-aside {
    padding: 27px 24px;
  }

  .auth-aside h1 {
    font-size: 2.15rem;
  }

  .auth-card h2 {
    font-size: 1.9rem;
  }

  .join-card {
    padding: 28px 21px;
  }

  .join-card h1 {
    font-size: 2rem;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }
}

@media (max-width: 430px) {
  .hero h1 {
    font-size: 2.35rem;
  }

  .hero-actions .btn,
  .onboarding-actions .btn {
    width: 100%;
  }

  .next-event {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .next-event-date {
    width: 100%;
    margin-left: 56px;
  }

  .wishlist-aside {
    display: flex;
  }

  .nav-account-name {
    display: none;
  }
}

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

.icon-btn.is-copied {
  border-color: #bfe0d4;
  background: var(--teal-soft);
  color: var(--teal);
}

button.text-link,
.text-link:is(button) {
  padding: 0;
  border: 0;
  background: none;
  font-family: inherit;
  font-size: 0.83rem;
  font-weight: 650;
  line-height: inherit;
  text-align: left;
  cursor: pointer;
}

button.text-link:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}
