/* ============================================================
   PROTOTYPER — klikkbare app-prototyper
   Bruker app-koden sine design-tokens
   ============================================================ */

/* App-tokens (default theme) — matcher faktisk app */
:root {
  --proto-primary: #F2B894;          /* peach button/active */
  --proto-primary-dark: #E5A37A;     /* darker peach for time/labels */
  --proto-accent: #845138;           /* espresso for strong text */
  --proto-bg: #FBE9D6;               /* page background — soft peach cream */
  --proto-bg-soft: #FCF1E4;          /* lighter peach for hero areas */
  --proto-surface: #FFF6EC;           /* card surface — slightly warmer than white */
  --proto-card-soft: #FCEFE2;        /* alternate warm card surface */
  --proto-white: #FFFAF4;             /* white-ish card (e.g. total budget) */
  --proto-border: #EBD9C5;           /* peach-tinted border */
  --proto-border-soft: rgba(132, 81, 56, 0.10);
  --proto-fg: #2D2426;               /* deep brown text */
  --proto-fg-muted: #8A776B;         /* muted warm gray */
  --proto-placeholder: #C8B5A5;
  --proto-success: #7CC47D;
  --proto-danger: #E57373;
  --proto-soft: #FBEEE5;
}

/* ============================================================
   HERO
   ============================================================ */
.proto-hero {
  padding-block: var(--wm-section-y);
  text-align: center;
  max-width: 820px;
  margin: 0 auto;
  padding-inline: var(--wm-gutter);
}
.proto-hero__title {
  font-family: var(--wm-font-display);
  font-size: clamp(40px, 5.5vw, 72px);
  line-height: 1.05;
  font-weight: 400;
  margin: 16px 0 24px;
  color: var(--wm-fg);
  letter-spacing: -0.5px;
}
.proto-hero__title em {
  font-family: var(--wm-font-editorial);
  font-style: italic;
  color: var(--wm-rose);
}
.proto-hero__lead {
  font-size: 19px;
  line-height: 1.5;
  color: var(--wm-fg-muted);
  margin-bottom: 28px;
}
.proto-hero__hint {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border-radius: var(--wm-radius-pill);
  background: var(--wm-bone);
  font-family: var(--wm-font-body);
  font-size: 14px;
  color: var(--wm-fg);
}
.proto-hero__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--wm-rose);
  box-shadow: 0 0 0 0 rgba(168, 106, 105, 0.4);
  animation: protoDot 2s infinite;
}
@keyframes protoDot {
  0% { box-shadow: 0 0 0 0 rgba(168, 106, 105, 0.5); }
  70% { box-shadow: 0 0 0 12px rgba(168, 106, 105, 0); }
  100% { box-shadow: 0 0 0 0 rgba(168, 106, 105, 0); }
}

/* ============================================================
   PROTO SECTION LAYOUT
   ============================================================ */
.proto {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--wm-section-y) var(--wm-gutter);
}
.proto--reverse {
  direction: rtl;
}
.proto--reverse > * {
  direction: ltr;
}

.proto__copy h2 {
  font-family: var(--wm-font-display);
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.1;
  font-weight: 400;
  margin: 12px 0 20px;
  color: var(--wm-fg);
  letter-spacing: -0.3px;
}
.proto__copy h2 em {
  font-family: var(--wm-font-editorial);
  font-style: italic;
  color: var(--wm-rose);
}
.proto__copy .lead {
  font-size: 18px;
  line-height: 1.55;
  color: var(--wm-fg-muted);
  margin-bottom: 24px;
}
.proto-features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.proto-features li {
  padding: 12px 0;
  border-bottom: 1px solid var(--wm-border-soft);
  font-family: var(--wm-font-body);
  font-size: 15px;
  color: var(--wm-fg);
  line-height: 1.5;
}
.proto-features li strong {
  color: var(--wm-rose);
  font-weight: 600;
  font-family: var(--wm-font-body);
  margin-right: 6px;
}

/* ============================================================
   DEVICE FRAME (iPhone-mockup)
   ============================================================ */
.proto__device {
  display: flex;
  justify-content: center;
}
.device-frame {
  width: 360px;
  height: 740px;
  background: #1a1416;
  border-radius: 48px;
  padding: 14px;
  box-shadow:
    0 30px 80px rgba(50, 44, 46, 0.25),
    0 10px 30px rgba(50, 44, 46, 0.12),
    inset 0 0 0 2px rgba(255, 255, 255, 0.05);
  position: relative;
  overflow: hidden;
}
.device-notch {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 28px;
  background: #1a1416;
  border-radius: 0 0 18px 18px;
  z-index: 2;
}
.device-screen {
  width: 100%;
  height: 100%;
  background: var(--proto-bg);
  border-radius: 36px;
  overflow: hidden;
  position: relative;
  padding-top: 44px; /* room for notch (overridden in checklist) */
  display: flex;
  flex-direction: column;
}

/* ============================================================
   HEADER (felles for alle prototyper)
   ============================================================ */
.proto-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--proto-border);
  background: var(--proto-surface);
}
.proto-header__back,
.proto-header__action {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: var(--proto-accent);
  font-size: 22px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 150ms ease;
}
.proto-header__back:hover,
.proto-header__action:hover {
  background: var(--proto-soft);
}
.proto-header__title {
  font-family: var(--wm-font-display);
  font-size: 18px;
  font-weight: 500;
  margin: 0;
  color: var(--proto-fg);
}

/* Checklist-prototypen styrer egen status-bar — override frame */
.device-screen[data-checklist-view] {
  padding-top: 44px;
}

/* ============================================================
   IOS STATUS BAR + APP HEADER (felles for alle prototyper)
   ============================================================ */
.ios-statusbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  height: 44px;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--proto-fg);
  z-index: 5;
  pointer-events: none;
}
.ios-statusbar__time {
  margin-left: 8px;
}
.ios-statusbar__icons {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
}
.ios-statusbar__battery {
  width: 22px;
  height: 11px;
  border: 1.2px solid var(--proto-fg);
  border-radius: 3px;
  position: relative;
  background: linear-gradient(to right, #f0c948 0 65%, transparent 65%);
}
.ios-statusbar__battery::after {
  content: "";
  position: absolute;
  right: -3px;
  top: 3px;
  width: 2px;
  height: 5px;
  background: var(--proto-fg);
  border-radius: 0 1px 1px 0;
}

.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px 4px;
  background: var(--proto-bg);
  border-bottom: none;
}
.app-header__back,
.app-header__edit {
  background: transparent;
  border: none;
  font-family: var(--wm-font-display);
  font-size: 17px;
  font-weight: 500;
  color: var(--proto-fg);
  cursor: pointer;
  padding: 6px 0;
  display: inline-flex;
  align-items: center;
  gap: 2px;
}
.app-header__back span {
  font-size: 22px;
  margin-right: 2px;
}

.app-content {
  flex: 1;
  overflow-y: auto;
  background: var(--proto-bg);
  padding: 0 16px 80px;
  -webkit-overflow-scrolling: touch;
}
.app-content::-webkit-scrollbar { display: none; }
.app-content { scrollbar-width: none; }

.app-title {
  font-family: var(--wm-font-display);
  font-size: 36px;
  font-weight: 500;
  color: var(--proto-fg);
  margin: 8px 0 16px;
  letter-spacing: -0.5px;
}

/* ============================================================
   CHECKLIST — matcher app-skjermbildene
   ============================================================ */

/* Planning progress card */
.cl-progress-card {
  background: var(--proto-white);
  border-radius: 16px;
  padding: 14px 16px;
  margin-bottom: 14px;
}
.cl-progress-card__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 10px;
}
.cl-progress-card__label {
  font-family: var(--wm-font-display);
  font-size: 14px;
  font-weight: 400;
  color: var(--proto-fg);
}
.cl-progress-card__pct {
  font-family: var(--wm-font-display);
  font-size: 16px;
  font-weight: 600;
  color: var(--proto-fg);
}
.cl-progress-card__bar {
  height: 3px;
  background: rgba(132, 81, 56, 0.08);
  border-radius: 2px;
  overflow: hidden;
}
.cl-progress-card__fill {
  height: 100%;
  background: var(--proto-primary);
  border-radius: 2px;
  transition: width 400ms ease;
}

/* Our checklist / Suggested tabs (pill toggle) */
.cl-tabs {
  display: flex;
  background: var(--proto-white);
  border-radius: 100px;
  padding: 4px;
  margin-bottom: 14px;
}
.cl-tab {
  flex: 1;
  padding: 10px 16px;
  background: transparent;
  border: none;
  border-radius: 100px;
  font-family: var(--wm-font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--proto-fg);
  cursor: pointer;
  transition: all 200ms ease;
}
.cl-tab.is-active {
  background: var(--proto-primary);
  color: var(--proto-fg);
  font-weight: 600;
}

/* Person filter pills */
.cl-filter {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
  overflow-x: auto;
  scrollbar-width: none;
}
.cl-filter::-webkit-scrollbar { display: none; }
.cl-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px 5px 6px;
  background: transparent;
  border: 1px solid var(--proto-border);
  border-radius: 100px;
  font-family: var(--wm-font-display);
  font-size: 13px;
  font-weight: 400;
  color: var(--proto-fg);
  cursor: pointer;
  white-space: nowrap;
  transition: all 200ms ease;
}
.cl-pill[data-cl-filter="all"] {
  padding: 5px 14px;
}
.cl-pill.is-active {
  background: var(--proto-primary);
  border-color: var(--proto-primary);
}
.cl-avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--wm-font-display);
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  flex: 0 0 auto;
}
.cl-avatar--me { background: #E8A57C; }
.cl-avatar--fredrik { background: #87B0CC; }

/* Phase card (collapsible) */
.cl-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cl-phase {
  background: var(--proto-white);
  border-radius: 16px;
  overflow: hidden;
  transition: box-shadow 200ms ease;
}
.cl-phase[open] {
  box-shadow: 0 1px 4px rgba(50, 44, 46, 0.04);
}
.cl-phase__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 14px 16px 12px;
  cursor: pointer;
  list-style: none;
  gap: 10px;
}
.cl-phase__head::-webkit-details-marker { display: none; }
.cl-phase__info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.cl-phase__title {
  font-family: var(--wm-font-display);
  font-size: 15px;
  font-weight: 400;
  color: var(--proto-fg);
  line-height: 1.3;
}
.cl-phase__meta {
  font-family: var(--wm-font-display);
  font-size: 12px;
  font-weight: 400;
  color: var(--proto-fg-muted);
}
.cl-phase__bar {
  height: 3px;
  background: rgba(132, 81, 56, 0.08);
  border-radius: 2px;
  overflow: hidden;
  margin-top: 6px;
}
.cl-phase__fill {
  height: 100%;
  background: var(--proto-primary);
  border-radius: 2px;
  transition: width 400ms ease;
}
.cl-phase__chev {
  width: 16px;
  height: 16px;
  display: inline-block;
  flex: 0 0 auto;
  margin-top: 2px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M4 6L8 10L12 6' stroke='%238A776B' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  transition: transform 200ms ease;
}
.cl-phase[open] .cl-phase__chev {
  transform: rotate(180deg);
}

/* Tasks inside phase */
.cl-tasks {
  list-style: none;
  margin: 0;
  padding: 0 0 4px;
}
.cl-task {
  /* No row borders — items just stack within the card */
}
.cl-task.is-hidden-by-filter {
  display: none;
}
.cl-task label {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 10px 16px;
  cursor: pointer;
  transition: background 150ms ease;
}
.cl-task label:hover {
  background: rgba(242, 184, 148, 0.08);
}
.cl-task input[type="checkbox"] {
  appearance: none;
  width: 22px;
  height: 22px;
  border: 1.5px solid #C8B5A5;
  border-radius: 50%;
  cursor: pointer;
  flex: 0 0 auto;
  position: relative;
  background: transparent;
  margin-top: 1px;
  transition: all 200ms ease;
}
.cl-task input[type="checkbox"]:hover {
  border-color: var(--proto-primary);
}
.cl-task input[type="checkbox"]:checked {
  background: var(--proto-primary);
  border-color: var(--proto-primary);
}
.cl-task input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 1px;
  width: 6px;
  height: 11px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.cl-task__body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}
.cl-task__name {
  font-family: var(--wm-font-display);
  font-size: 16px;
  color: var(--proto-fg);
  line-height: 1.3;
  font-weight: 400;
  transition: opacity 200ms ease, text-decoration 200ms ease;
}
.cl-task input[type="checkbox"]:checked ~ .cl-task__body .cl-task__name {
  text-decoration: line-through;
  opacity: 0.5;
}
.cl-task__meta {
  font-family: var(--wm-font-display);
  font-size: 13px;
  font-weight: 400;
  color: var(--proto-fg-muted);
}

/* Suggested view */
.cl-list--suggested {
  background: var(--proto-surface);
  border-radius: 18px;
  padding: 0;
  box-shadow: 0 1px 3px rgba(50, 44, 46, 0.04);
}
.cl-suggested {
  list-style: none;
  margin: 0;
  padding: 0;
}
.cl-suggested__item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--proto-border);
  animation: clFadeIn 200ms ease;
}
.cl-suggested__item:last-child {
  border-bottom: none;
}
.cl-suggested__item.is-added {
  opacity: 0.4;
  pointer-events: none;
}
.cl-suggested__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.cl-suggested__name {
  font-family: var(--wm-font-display);
  font-size: 15px;
  color: var(--proto-fg);
  line-height: 1.3;
  font-weight: 400;
}
.cl-suggested__meta {
  font-family: var(--wm-font-body);
  font-size: 12px;
  color: var(--proto-fg-muted);
}
.cl-suggested__add {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1.5px solid var(--proto-border);
  background: transparent;
  color: var(--proto-accent);
  font-size: 20px;
  font-weight: 400;
  cursor: pointer;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  padding: 0;
  transition: all 200ms ease;
}
.cl-suggested__add:hover {
  background: var(--proto-primary);
  border-color: var(--proto-primary);
  color: var(--proto-fg);
  transform: scale(1.08);
}
.cl-suggested__add.is-loading {
  background: var(--proto-success);
  border-color: var(--proto-success);
  color: #fff;
}

.cl-suggested__added {
  padding: 16px;
  text-align: center;
  font-family: var(--wm-font-body);
  font-size: 13px;
  font-weight: 600;
  color: var(--proto-success);
  background: rgba(124, 196, 125, 0.08);
  border-radius: 12px;
  margin: 12px;
  animation: clFadeIn 300ms ease;
}

@keyframes clFadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Add task button (overlay above tab bar) */
.cl-add-task {
  position: absolute;
  bottom: 64px;
  left: 14px;
  right: 14px;
  padding: 14px 24px;
  background: var(--proto-primary);
  border: none;
  border-radius: 100px;
  font-family: var(--wm-font-display);
  font-size: 16px;
  font-weight: 500;
  color: var(--proto-fg);
  cursor: pointer;
  z-index: 4;
  box-shadow: 0 4px 14px rgba(50, 44, 46, 0.10);
  transition: transform 150ms ease, box-shadow 150ms ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.cl-add-task::before {
  content: "+";
  font-size: 22px;
  font-weight: 400;
  line-height: 1;
  margin-right: 2px;
}
.cl-add-task:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(50, 44, 46, 0.14);
}

/* Weddy FAB (cute chick) */
.weddy-fab {
  position: absolute;
  bottom: 64px;
  right: 14px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 2px solid #fff;
  background: var(--proto-primary);
  cursor: pointer;
  z-index: 5;
  box-shadow: 0 4px 14px rgba(50, 44, 46, 0.18);
  overflow: hidden;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 150ms ease;
}
.weddy-fab:hover {
  transform: scale(1.05);
}
.weddy-fab img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

/* Bottom tab bar */
.app-tabbar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  background: var(--proto-bg);
  border-top: 1px solid var(--proto-border-soft);
  padding: 8px 0 12px;
  z-index: 3;
}
.app-tabbar__item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  text-decoration: none;
  color: rgba(45, 36, 38, 0.35);
  cursor: pointer;
  padding: 4px 0;
  transition: color 150ms ease;
}
.app-tabbar__item.is-active {
  color: var(--proto-primary-dark);
}
.app-tabbar__icon {
  font-size: 18px;
  line-height: 1;
}
.app-tabbar__label {
  font-family: var(--wm-font-display);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 1.2px;
}

/* ============================================================
   BUDGET — matches real app (Budget/Costs toggle, categories, modal)
   ============================================================ */

.device-screen[data-budget-view] {
  padding-top: 44px;
}
.app-content--budget {
  padding: 0 16px 90px;
}

/* Total budget card */
.bg-total {
  background: var(--proto-white);
  border-radius: 16px;
  padding: 14px 16px;
  margin: 6px 0 14px;
}
.bg-total__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 8px;
}
.bg-total__label {
  font-family: var(--wm-font-display);
  font-size: 14px;
  color: var(--proto-fg);
}
.bg-total__amount {
  font-family: var(--wm-font-display);
  font-size: 16px;
  font-weight: 600;
  color: var(--proto-fg);
}
.bg-total__bar {
  height: 3px;
  background: rgba(132, 81, 56, 0.08);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 12px;
}
.bg-total__fill {
  height: 100%;
  background: var(--proto-primary);
  border-radius: 2px;
  transition: width 400ms ease;
}
.bg-total__stats {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 4px;
}
.bg-total__stats > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
  align-items: center;
  text-align: center;
}
.bg-total__stat-label {
  font-family: var(--wm-font-display);
  font-size: 12px;
  color: var(--proto-fg-muted);
}
.bg-total__stat-value {
  font-family: var(--wm-font-display);
  font-size: 14px;
  font-weight: 500;
  color: var(--proto-fg);
}

/* Budget / Costs toggle (pill row) */
.bg-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 12px;
}
.bg-tab {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  background: var(--proto-white);
  border: none;
  border-radius: 14px;
  font-family: var(--wm-font-display);
  font-size: 15px;
  font-weight: 500;
  color: var(--proto-fg);
  cursor: pointer;
  transition: all 200ms ease;
}
.bg-tab.is-active {
  background: var(--proto-primary);
}
.bg-tab__icon {
  font-size: 16px;
}

/* Status filter row */
.bg-filter {
  display: flex;
  margin-bottom: 14px;
}
.bg-filter__group {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  width: 100%;
}
.bg-filter__group::-webkit-scrollbar { display: none; }
.bg-pill {
  flex: 0 0 auto;
  padding: 6px 14px;
  background: transparent;
  border: 1px solid var(--proto-border);
  border-radius: 100px;
  font-family: var(--wm-font-display);
  font-size: 13px;
  font-weight: 400;
  color: var(--proto-fg);
  cursor: pointer;
  white-space: nowrap;
  transition: all 200ms ease;
}
.bg-pill.is-active {
  background: var(--proto-primary);
  border-color: var(--proto-primary);
  color: var(--proto-fg);
}

/* Category card */
.bg-categories {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.bg-cat {
  background: var(--proto-white);
  border-radius: 16px;
  padding: 14px 16px 6px;
}
.bg-cat__head {
  display: grid;
  grid-template-columns: 26px 1fr auto auto;
  gap: 10px;
  align-items: center;
  margin-bottom: 6px;
}
.bg-cat__emoji {
  font-size: 20px;
  line-height: 1;
}
.bg-cat__name {
  font-family: var(--wm-font-display);
  font-size: 16px;
  font-weight: 600;
  color: var(--proto-fg);
}
.bg-cat__amount {
  font-family: var(--wm-font-display);
  font-size: 15px;
  font-weight: 600;
  color: var(--proto-fg);
}
.bg-cat__add {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 12px;
  background: transparent;
  border: 1px solid var(--proto-border);
  border-radius: 100px;
  font-family: var(--wm-font-display);
  font-size: 12px;
  color: var(--proto-fg);
  cursor: pointer;
  transition: all 200ms ease;
  white-space: nowrap;
}
.bg-cat__add:hover {
  background: var(--proto-soft);
  border-color: var(--proto-primary);
}
.bg-cat__add-plus {
  font-size: 13px;
  line-height: 1;
}
.bg-cat__sub {
  font-family: var(--wm-font-display);
  font-size: 12px;
  color: var(--proto-fg-muted);
  display: block;
  margin-bottom: 6px;
}
.bg-cat__bar {
  height: 3px;
  background: rgba(132, 81, 56, 0.08);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 4px;
}
.bg-cat__fill {
  height: 100%;
  background: var(--proto-primary);
  border-radius: 2px;
  transition: width 400ms ease;
}

/* Show items toggle */
.bg-cat__details {
  border-top: 1px solid transparent;
}
.bg-cat__toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 0 4px;
  cursor: pointer;
  list-style: none;
  font-family: var(--wm-font-display);
  font-size: 13px;
  color: var(--proto-fg-muted);
  transition: color 150ms ease;
}
.bg-cat__toggle::-webkit-details-marker { display: none; }
.bg-cat__toggle:hover {
  color: var(--proto-fg);
}
.bg-cat__chev {
  font-size: 14px;
  transition: transform 200ms ease;
  line-height: 1;
}
.bg-cat__details[open] .bg-cat__chev {
  transform: rotate(180deg);
}
.bg-cat__details[open] .bg-cat__toggle > span:last-child::after {
  content: "Hide";
}
.bg-cat__details[open] .bg-cat__toggle > span:last-child > span {
  display: none;
}

/* Items inside category */
.bg-items {
  list-style: none;
  margin: 4px 0 6px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.bg-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: rgba(254, 252, 252, 0.6);
  border-radius: 10px;
  border: 1px solid rgba(132, 81, 56, 0.08);
  transition: opacity 200ms ease;
}
.bg-item.is-hidden-by-filter {
  display: none;
}
.bg-item__body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}
.bg-item__name {
  font-family: var(--wm-font-display);
  font-size: 14px;
  color: var(--proto-fg);
}
.bg-item__sub {
  font-family: var(--wm-font-display);
  font-size: 11px;
  color: var(--proto-fg-muted);
}
.bg-item__right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  flex: 0 0 auto;
}
.bg-item__amount {
  font-family: var(--wm-font-display);
  font-size: 14px;
  font-weight: 500;
  color: var(--proto-fg);
}
.bg-item__badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 100px;
  font-family: var(--wm-font-display);
  font-size: 11px;
  font-weight: 500;
}
.bg-item__badge--paid {
  background: rgba(124, 196, 125, 0.18);
  color: #4a8a4b;
}
.bg-item__badge--partial {
  background: rgba(242, 179, 127, 0.25);
  color: #B36A2E;
}
.bg-item__badge--booked {
  background: rgba(124, 196, 125, 0.18);
  color: #4a8a4b;
}
.bg-item__badge--planned {
  background: rgba(132, 81, 56, 0.12);
  color: var(--proto-accent);
}
.bg-item__badge--considered {
  background: rgba(242, 179, 127, 0.25);
  color: #B36A2E;
}
.bg-item__badge[hidden] {
  display: none !important;
}

/* Empty state */
.bg-empty {
  padding: 32px 16px;
  text-align: center;
  font-family: var(--wm-font-display);
  font-size: 14px;
  color: var(--proto-fg-muted);
  background: transparent;
}
.bg-empty p {
  margin: 0;
  line-height: 1.5;
}

/* + Category button */
.bg-add-cat {
  padding: 14px 20px;
  background: transparent;
  border: 1.5px dashed var(--proto-primary);
  border-radius: 100px;
  font-family: var(--wm-font-display);
  font-size: 15px;
  font-weight: 500;
  color: var(--proto-fg);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 200ms ease;
}
.bg-add-cat:hover {
  background: rgba(246, 190, 163, 0.12);
  border-style: solid;
}

/* ===== New Category modal ===== */
.bg-modal {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: flex;
  align-items: flex-end;
}
.bg-modal[hidden] {
  display: none;
}
.bg-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(50, 44, 46, 0.35);
  backdrop-filter: blur(2px);
  animation: schedBackdropIn 220ms ease;
}
.bg-modal__sheet {
  position: relative;
  width: 100%;
  height: 92%;
  background: var(--proto-bg);
  border-radius: 24px 24px 0 0;
  padding: 14px 22px 22px;
  overflow-y: auto;
  animation: schedSheetIn 260ms cubic-bezier(0.32, 0.72, 0, 1);
}
.bg-modal__top {
  display: flex;
  margin-bottom: 6px;
}
.bg-modal__cancel {
  background: transparent;
  border: none;
  font-family: var(--wm-font-display);
  font-size: 17px;
  font-weight: 600;
  color: var(--proto-fg);
  cursor: pointer;
  padding: 6px 0;
  display: inline-flex;
  align-items: center;
  gap: 2px;
}
.bg-modal__title {
  font-family: var(--wm-font-display);
  font-size: 32px;
  font-weight: 500;
  color: var(--proto-fg);
  margin: 4px 0 18px;
  letter-spacing: -0.4px;
}
.bg-modal__label {
  display: block;
  font-family: var(--wm-font-display);
  font-size: 14px;
  color: var(--proto-fg);
  margin: 10px 0 8px;
}

/* Emoji picker grid */
.bg-emoji-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  margin-bottom: 8px;
}
.bg-emoji {
  width: 100%;
  aspect-ratio: 1;
  background: var(--proto-surface);
  border: 1.5px solid transparent;
  border-radius: 12px;
  font-size: 22px;
  cursor: pointer;
  transition: all 150ms ease;
  display: flex;
  align-items: center;
  justify-content: center;
}
.bg-emoji:hover {
  background: var(--proto-soft);
}
.bg-emoji.is-selected {
  border-color: var(--proto-primary);
  background: rgba(246, 190, 163, 0.15);
}

/* Inputs */
.bg-modal__input {
  width: 100%;
  padding: 12px 14px;
  background: var(--proto-surface);
  border: 1px solid var(--proto-border);
  border-radius: 12px;
  font-family: var(--wm-font-display);
  font-size: 15px;
  color: var(--proto-fg);
  outline: none;
  margin-bottom: 6px;
  transition: border-color 200ms ease;
}
.bg-modal__input::placeholder {
  color: var(--proto-placeholder);
}
.bg-modal__input:focus {
  border-color: var(--proto-primary);
}

/* Submit button */
.bg-modal__submit {
  width: 100%;
  padding: 14px 24px;
  background: var(--proto-primary);
  border: none;
  border-radius: 100px;
  font-family: var(--wm-font-display);
  font-size: 16px;
  font-weight: 500;
  color: var(--proto-fg);
  cursor: pointer;
  margin-top: 18px;
  transition: all 200ms ease;
}
.bg-modal__submit:hover {
  background: var(--proto-primary-dark);
}

/* Old proto-budget styles kept harmless (not referenced) */
.proto-budget__total {
  padding: 22px 18px;
  background: linear-gradient(135deg, var(--proto-soft), var(--proto-surface));
  border-bottom: 1px solid var(--proto-border);
  text-align: center;
}
.proto-budget__label {
  display: block;
  font-family: var(--wm-font-body);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--proto-fg-muted);
  margin-bottom: 8px;
}
.proto-budget__amount {
  font-family: var(--wm-font-display);
  font-size: 40px;
  font-weight: 500;
  color: var(--proto-accent);
  margin-bottom: 14px;
}
.proto-budget__currency {
  font-size: 18px;
  color: var(--proto-fg-muted);
  margin-left: 4px;
  font-weight: 400;
}
.proto-budget__slider {
  appearance: none;
  width: 100%;
  height: 4px;
  border-radius: 2px;
  background: rgba(132, 81, 56, 0.2);
  outline: none;
  cursor: pointer;
}
.proto-budget__slider::-webkit-slider-thumb {
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--proto-accent);
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(132, 81, 56, 0.35);
}
.proto-budget__slider::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--proto-accent);
  cursor: pointer;
  border: none;
  box-shadow: 0 2px 6px rgba(132, 81, 56, 0.35);
}
.proto-budget__minmax {
  display: flex;
  justify-content: space-between;
  font-family: var(--wm-font-body);
  font-size: 11px;
  color: var(--proto-fg-muted);
  margin-top: 6px;
}

.proto-budget__summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid var(--proto-border);
  background: var(--proto-surface);
}
.proto-budget__summary > div {
  padding: 14px 18px;
  text-align: center;
  border-right: 1px solid var(--proto-border);
}
.proto-budget__summary > div:last-child {
  border-right: none;
}
.proto-budget__sum-label {
  display: block;
  font-family: var(--wm-font-body);
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--proto-fg-muted);
  margin-bottom: 4px;
}
.proto-budget__sum-value {
  font-family: var(--wm-font-display);
  font-size: 17px;
  font-weight: 500;
  color: var(--proto-fg);
}
.proto-budget__sum-value--good {
  color: var(--proto-success);
}
.proto-budget__sum-value--bad {
  color: var(--proto-danger);
}

.proto-budget__cats {
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1;
  overflow-y: auto;
  background: var(--proto-bg);
}
.proto-budget__cats li {
  padding: 12px 18px;
  border-bottom: 1px solid var(--proto-border);
}
.proto-budget__cat-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 6px;
}
.proto-budget__cat-name {
  font-family: var(--wm-font-body);
  font-size: 14px;
  font-weight: 600;
  color: var(--proto-fg);
}
.proto-budget__cat-amount {
  font-family: var(--wm-font-body);
  font-size: 14px;
  font-weight: 600;
  color: var(--proto-accent);
}
.proto-budget__cat-bar {
  height: 6px;
  background: rgba(132, 81, 56, 0.12);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 4px;
}
.proto-budget__cat-fill {
  height: 100%;
  background: var(--proto-primary);
  border-radius: 3px;
  transition: width 300ms ease, background 300ms ease;
}
.proto-budget__cat-fill.is-over {
  background: var(--proto-danger);
}
.proto-budget__cat-status {
  font-family: var(--wm-font-body);
  font-size: 11px;
  color: var(--proto-fg-muted);
}

/* ============================================================
   SCHEDULE — Wedding Schedule (matches real app)
   ============================================================ */

/* Override the frame padding for schedule view */
.device-screen[data-schedule-view] {
  padding-top: 44px;
}
.app-content--schedule {
  padding: 0 0 90px;
}
.app-content--schedule .app-title {
  padding: 0 20px;
}

/* Schedule list */
.sched-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.sched-item {
  border-top: 1px solid rgba(132, 81, 56, 0.12);
}
.sched-item:last-child {
  border-bottom: 1px solid rgba(132, 81, 56, 0.12);
}
.sched-item__btn {
  width: 100%;
  display: grid;
  grid-template-columns: 64px 1fr 28px;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  transition: background 150ms ease;
}
.sched-item__btn:hover {
  background: rgba(242, 184, 148, 0.10);
}
.sched-item__time {
  font-family: var(--wm-font-display);
  font-size: 16px;
  font-weight: 400;
  color: var(--proto-primary-dark);
  letter-spacing: 0;
}
.sched-item__name {
  font-family: var(--wm-font-display);
  font-size: 17px;
  font-weight: 600;
  color: var(--proto-fg);
  letter-spacing: -0.2px;
  line-height: 1.3;
}
.sched-item__visicon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--proto-fg);
  opacity: 1;
  transition: opacity 200ms ease;
}
.sched-item[data-visible="false"] .sched-item__visicon {
  opacity: 0;
}
.sched-item[data-visible="false"] .sched-item__name {
  opacity: 0.55;
}

/* Add event button (overlay above tab bar) */
.sched-add {
  position: absolute;
  bottom: 64px;
  left: 14px;
  right: 14px;
  padding: 14px 24px;
  background: var(--proto-primary);
  border: none;
  border-radius: 100px;
  font-family: var(--wm-font-display);
  font-size: 16px;
  font-weight: 500;
  color: var(--proto-fg);
  cursor: pointer;
  z-index: 4;
  box-shadow: 0 4px 14px rgba(50, 44, 46, 0.10);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform 150ms ease;
}
.sched-add:hover {
  transform: translateY(-1px);
}
.sched-add__plus {
  font-size: 20px;
  font-weight: 400;
  line-height: 1;
}

/* ===== Event detail modal (slide-up sheet) ===== */
.sched-modal {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: flex;
  align-items: flex-end;
}
.sched-modal[hidden] {
  display: none;
}
.sched-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(50, 44, 46, 0.35);
  backdrop-filter: blur(2px);
  animation: schedBackdropIn 220ms ease;
}
.sched-modal__sheet {
  position: relative;
  width: 100%;
  height: 88%;
  background: var(--proto-bg);
  border-radius: 24px 24px 0 0;
  padding: 22px 24px 24px;
  overflow-y: auto;
  animation: schedSheetIn 260ms cubic-bezier(0.32, 0.72, 0, 1);
  display: flex;
  flex-direction: column;
}
@keyframes schedBackdropIn {
  from { opacity: 0; } to { opacity: 1; }
}
@keyframes schedSheetIn {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.sched-modal__topbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
}
.sched-modal__time-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.sched-modal__label {
  font-family: var(--wm-font-display);
  font-size: 13px;
  color: var(--proto-fg-muted);
}
.sched-modal__time {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--wm-font-display);
  font-size: 16px;
  color: var(--proto-fg);
}
.sched-modal__tap {
  font-size: 13px;
  color: var(--proto-primary-dark);
  margin-left: 4px;
}
.sched-modal__vis-flag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--wm-font-display);
  font-size: 13px;
  color: var(--proto-fg);
  transition: opacity 200ms ease;
}
.sched-modal__vis-flag-icon {
  display: inline-flex;
}
.sched-modal__vis-flag[data-flag-state="hidden"] {
  color: var(--proto-fg-muted);
  opacity: 0.55;
}

/* Title with peach left accent */
.sched-modal__title {
  font-family: var(--wm-font-display);
  font-size: 30px;
  font-weight: 500;
  color: var(--proto-fg);
  margin: 6px 0 18px;
  padding-left: 14px;
  border-left: 3px solid var(--proto-primary);
  line-height: 1.15;
  letter-spacing: -0.4px;
}

/* Description card */
.sched-modal__section {
  margin-bottom: 18px;
}
.sched-modal__section-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--wm-font-display);
  font-size: 12px;
  letter-spacing: 1.5px;
  color: var(--proto-fg-muted);
  margin-bottom: 8px;
  text-transform: uppercase;
}
.sched-modal__desc-card {
  background: var(--proto-surface);
  border-radius: 14px;
  padding: 14px 16px;
  font-family: var(--wm-font-display);
  font-size: 15px;
  color: var(--proto-fg);
  line-height: 1.4;
  min-height: 56px;
}

/* Visible-to-guests toggle card */
.sched-modal__toggle-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  background: var(--proto-surface);
  border-radius: 14px;
  margin-bottom: 14px;
}
.sched-modal__toggle-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.sched-modal__toggle-title {
  font-family: var(--wm-font-display);
  font-size: 15px;
  font-weight: 500;
  color: var(--proto-fg);
}
.sched-modal__toggle-sub {
  font-family: var(--wm-font-display);
  font-size: 12px;
  color: var(--proto-fg-muted);
  line-height: 1.4;
}

/* iOS-style toggle */
.ios-toggle {
  width: 50px;
  height: 30px;
  border-radius: 100px;
  border: none;
  background: rgba(120, 120, 128, 0.16);
  cursor: pointer;
  padding: 0;
  position: relative;
  transition: background 220ms ease;
  flex: 0 0 auto;
}
.ios-toggle__thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #fff;
  box-shadow:
    0 3px 1px rgba(0, 0, 0, 0.06),
    0 3px 8px rgba(0, 0, 0, 0.15);
  transition: transform 220ms cubic-bezier(0.4, 0, 0.2, 1);
}
.ios-toggle[aria-checked="true"] {
  background: var(--proto-primary);
}
.ios-toggle[aria-checked="true"] .ios-toggle__thumb {
  transform: translateX(20px);
}

/* Caption + actions */
.sched-modal__caption {
  font-family: var(--wm-font-display);
  font-size: 12px;
  color: var(--proto-fg-muted);
  text-align: center;
  margin: 18px 0 14px;
}
.sched-modal__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: auto;
  padding-top: 8px;
}
.sched-modal__delete {
  padding: 14px 24px;
  background: transparent;
  border: 1.5px solid var(--proto-primary);
  border-radius: 100px;
  font-family: var(--wm-font-display);
  font-size: 16px;
  font-weight: 500;
  color: var(--proto-primary-dark);
  cursor: pointer;
  transition: all 200ms ease;
}
.sched-modal__delete:hover {
  background: rgba(246, 190, 163, 0.15);
}
.sched-modal__close {
  padding: 14px 24px;
  background: var(--proto-primary);
  border: none;
  border-radius: 100px;
  font-family: var(--wm-font-display);
  font-size: 16px;
  font-weight: 500;
  color: var(--proto-fg);
  cursor: pointer;
  transition: all 200ms ease;
}
.sched-modal__close:hover {
  background: var(--proto-primary-dark);
}

/* Old proto-schedule styles still referenced by old code — keep harmless */
.proto-view-toggle {
  display: flex;
  gap: 4px;
  padding: 12px;
  background: var(--proto-surface);
  border-bottom: 1px solid var(--proto-border);
}
.proto-view-toggle__btn {
  flex: 1;
  padding: 10px;
  background: transparent;
  border: 1px solid var(--proto-border);
  border-radius: 10px;
  font-family: var(--wm-font-body);
  font-size: 13px;
  font-weight: 500;
  color: var(--proto-fg-muted);
  cursor: pointer;
  transition: all 150ms ease;
}
.proto-view-toggle__btn.is-active {
  background: var(--proto-accent);
  color: #fff;
  border-color: var(--proto-accent);
}

.proto-schedule {
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1;
  overflow-y: auto;
  background: var(--proto-bg);
}
.proto-schedule__item {
  display: grid;
  grid-template-columns: 56px 1fr 36px;
  gap: 12px;
  align-items: start;
  padding: 14px 16px;
  border-bottom: 1px solid var(--proto-border);
  position: relative;
  transition: opacity 300ms ease, max-height 300ms ease;
}
.proto-schedule__item.is-hidden-by-view {
  opacity: 0.35;
  background: rgba(228, 220, 210, 0.4);
}
.proto-schedule__time {
  font-family: var(--wm-font-display);
  font-size: 18px;
  font-weight: 500;
  color: var(--proto-accent);
  padding-top: 2px;
}
.proto-schedule__body {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.proto-schedule__title {
  font-family: var(--wm-font-body);
  font-size: 14px;
  font-weight: 600;
  color: var(--proto-fg);
  line-height: 1.3;
}
.proto-schedule__desc {
  font-family: var(--wm-font-body);
  font-size: 12px;
  color: var(--proto-fg-muted);
  line-height: 1.4;
}
.proto-schedule__vis {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--proto-border);
  background: var(--proto-surface);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: all 150ms ease;
  padding: 0;
}
.proto-schedule__vis:hover {
  background: var(--proto-soft);
  transform: scale(1.05);
}
.proto-schedule__item[data-visibility="private"] .proto-schedule__vis {
  background: var(--proto-soft);
  border-color: var(--proto-primary);
}
.proto-schedule__hint {
  padding: 10px 16px;
  margin: 0;
  background: var(--proto-surface);
  border-top: 1px solid var(--proto-border);
  font-family: var(--wm-font-body);
  font-size: 11px;
  color: var(--proto-fg-muted);
  text-align: center;
}

/* When viewing as guest — hide private items */
.device-screen[data-view-mode="guest"] .proto-schedule__item[data-visibility="private"] {
  display: none;
}

/* ============================================================
   INVITATION — Admin builder + Guest website (toggle views)
   ============================================================ */

/* Container that holds both views inside the device frame */
.device-screen[data-invite-view] {
  padding-top: 0;
  position: relative;
}
.invite-view {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  background: var(--proto-bg);
  transition: opacity 250ms ease;
}
.invite-view[hidden] {
  display: none;
}

/* ========== ADMIN BUILDER ========== */
.invite-view--admin {
  padding-top: 0;
}
.app-content--invite {
  padding: 0 20px 90px;
}
.app-subtitle {
  font-family: var(--wm-font-display);
  font-size: 14px;
  font-weight: 400;
  color: var(--proto-fg-muted);
  margin: -8px 0 16px;
  line-height: 1.4;
}

/* "Preview Invitation" button */
.invite-preview-btn {
  width: 100%;
  padding: 12px;
  background: transparent;
  border: 1px solid var(--proto-primary);
  border-radius: 100px;
  font-family: var(--wm-font-display);
  font-size: 15px;
  font-weight: 400;
  color: var(--proto-fg);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 20px;
  transition: all 200ms ease;
}
.invite-preview-btn:hover {
  background: var(--proto-soft);
}
.invite-preview-btn__icon {
  font-size: 16px;
  opacity: 0.7;
}

/* Section headers */
.invite-section-title {
  font-family: var(--wm-font-display);
  font-size: 22px;
  font-weight: 500;
  color: var(--proto-fg);
  margin: 4px 0 4px;
  line-height: 1.2;
  letter-spacing: -0.3px;
}
.invite-section-sub {
  font-family: var(--wm-font-display);
  font-size: 13px;
  color: var(--proto-fg-muted);
  margin: 0 0 10px;
  line-height: 1.4;
}
.invite-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
  margin-bottom: 2px;
  gap: 12px;
}
.invite-section-head .invite-section-title {
  margin: 0;
}

/* Add button (peach circle with +) */
.invite-add-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: none;
  background: var(--proto-primary);
  color: var(--proto-fg);
  font-size: 20px;
  font-weight: 400;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  padding: 0;
  flex: 0 0 auto;
  transition: transform 150ms ease, box-shadow 150ms ease;
}
.invite-add-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 4px 10px rgba(242, 184, 148, 0.4);
}

/* Textarea */
.invite-textarea {
  width: 100%;
  padding: 14px 16px;
  background: var(--proto-white);
  border: 1px solid var(--proto-border);
  border-radius: 12px;
  font-family: var(--wm-font-display);
  font-size: 15px;
  color: var(--proto-fg);
  resize: none;
  margin-bottom: 14px;
  outline: none;
  transition: border-color 200ms ease;
}
.invite-textarea:focus {
  border-color: var(--proto-primary);
}
.invite-textarea::placeholder {
  color: var(--proto-placeholder);
}

/* Date row (DD/MM/YYYY pickers) */
.invite-date-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  margin-bottom: 14px;
}
.invite-date-field {
  position: relative;
}
.invite-date-field select {
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  padding: 10px 30px 10px 14px;
  background: var(--proto-white);
  border: 1px solid var(--proto-border);
  border-radius: 12px;
  font-family: var(--wm-font-display);
  font-size: 14px;
  color: var(--proto-placeholder);
  cursor: pointer;
  outline: none;
  transition: border-color 200ms ease;
}
.invite-date-field select:focus {
  border-color: var(--proto-primary);
  color: var(--proto-fg);
}
.invite-date-field select:not(:invalid):not([data-placeholder]) {
  color: var(--proto-fg);
}
.invite-date-chev {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-55%);
  font-size: 14px;
  color: var(--proto-fg-muted);
  pointer-events: none;
}

/* Empty state list */
.invite-list {
  margin-bottom: 8px;
}
.invite-empty {
  padding: 14px;
  text-align: center;
  border: 1px dashed var(--proto-border);
  border-radius: 12px;
  font-family: var(--wm-font-display);
  font-size: 14px;
  color: var(--proto-fg-muted);
  margin: 0 0 14px;
  background: var(--proto-white);
}
.invite-item {
  background: var(--proto-white);
  border-radius: 12px;
  padding: 8px;
  margin-bottom: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  animation: clFadeIn 200ms ease;
}
.invite-item input {
  width: 100%;
  padding: 10px 14px;
  background: transparent;
  border: 1px solid var(--proto-border);
  border-radius: 10px;
  font-family: var(--wm-font-display);
  font-size: 14px;
  color: var(--proto-fg);
  outline: none;
}
.invite-item input::placeholder {
  color: var(--proto-placeholder);
}
.invite-item input:focus {
  border-color: var(--proto-primary);
}
.invite-item__head {
  display: flex;
  align-items: center;
  gap: 8px;
}
.invite-item__head input {
  flex: 1;
}
.invite-item__delete {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: var(--proto-danger);
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  transition: background 150ms ease;
}
.invite-item__delete:hover {
  background: rgba(229, 115, 115, 0.1);
}

/* Confirm changes button (floating above tab bar) */
.invite-confirm {
  position: absolute;
  bottom: 68px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 80px);
  padding: 14px 24px;
  background: var(--proto-primary);
  border: none;
  border-radius: 100px;
  font-family: var(--wm-font-display);
  font-size: 16px;
  font-weight: 500;
  color: var(--proto-fg);
  cursor: pointer;
  z-index: 4;
  box-shadow: 0 4px 14px rgba(50, 44, 46, 0.10);
  transition: transform 150ms ease;
}
.invite-confirm:hover {
  transform: translateX(-50%) translateY(-1px);
}
.invite-confirm-toast {
  position: absolute;
  bottom: 130px;
  left: 50%;
  transform: translateX(-50%);
  padding: 10px 18px;
  background: var(--proto-fg);
  color: #fff;
  border-radius: 100px;
  font-family: var(--wm-font-body);
  font-size: 13px;
  font-weight: 600;
  z-index: 5;
  animation: clFadeIn 200ms ease;
}

/* ========== GUEST WEBSITE VIEW ========== */
.invite-view--guest {
  background: #F2EBDF; /* cream */
  padding-top: 0;
  overflow: hidden;
}
.ios-statusbar--guest {
  background: #F2EBDF;
}
.ios-statusbar__back {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--proto-fg);
}
.guest-invite {
  position: absolute;
  top: 44px;
  left: 0;
  right: 0;
  bottom: 56px; /* room for safari bar */
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: #F2EBDF;
  padding: 0 0 40px;
}
.guest-invite::-webkit-scrollbar { display: none; }

.guest-invite__hero {
  padding: 36px 28px 24px;
  text-align: center;
}
.guest-invite__datebar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 24px;
}
.guest-invite__date-day,
.guest-invite__date-year {
  font-family: var(--wm-font-display);
  font-size: 13px;
  font-weight: 500;
  color: #6B5A47;
  letter-spacing: 3px;
}
.guest-invite__floral {
  width: 34px;
  height: 34px;
}
.guest-invite__names {
  font-family: var(--wm-font-display);
  font-size: 38px;
  font-weight: 400;
  color: #3a2e21;
  letter-spacing: 6px;
  line-height: 1.25;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.guest-invite__names--small {
  font-size: 28px;
  letter-spacing: 4px;
}
.guest-invite__amp {
  font-family: var(--wm-font-editorial);
  font-style: italic;
  font-weight: 400;
  font-size: 28px;
  letter-spacing: 0;
  color: #8B6B4A;
  margin: 2px 0;
}
.guest-invite__names--small .guest-invite__amp {
  font-size: 22px;
}
.guest-invite__divider {
  height: 1px;
  background: #C9B59B;
  margin: 18px auto;
  width: 70%;
}
.guest-invite__divider--soft {
  background: #D4C5AD;
  width: 80%;
  margin: 30px auto 22px;
}
.guest-invite__location {
  font-family: var(--wm-font-display);
  font-size: 11px;
  letter-spacing: 3px;
  color: #6B5A47;
  margin: 0;
  text-align: center;
}
.guest-invite__message {
  font-family: var(--wm-font-editorial);
  font-style: italic;
  font-size: 16px;
  line-height: 1.6;
  color: #3a2e21;
  margin: 24px 8px 0;
  text-align: center;
}

/* Photo block */
.guest-invite__photo {
  padding: 0 16px;
  margin-bottom: 0;
}
.guest-invite__photo-placeholder {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(232, 166, 137, 0.4), rgba(168, 138, 108, 0.4)),
    radial-gradient(circle at 30% 30%, #E8D5BF 0%, #C9A480 60%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.guest-invite__photo-placeholder::before,
.guest-invite__photo-placeholder::after {
  content: "";
  position: absolute;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
}
.guest-invite__photo-placeholder::before {
  width: 60%;
  height: 50%;
  top: 20%;
  left: 20%;
}
.guest-invite__photo-text {
  font-family: var(--wm-font-editorial);
  font-style: italic;
  color: #5A4530;
  font-size: 13px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  position: relative;
  z-index: 1;
  background: rgba(242, 235, 223, 0.8);
  padding: 4px 12px;
  border-radius: 100px;
}

/* RSVP block */
.guest-invite__rsvp-block {
  padding: 30px 28px 24px;
  text-align: center;
}
.guest-invite__greeting {
  font-family: var(--wm-font-editorial);
  font-style: italic;
  font-size: 13px;
  color: #6B5A47;
  margin: 0 0 14px;
  letter-spacing: 1px;
}
.guest-invite__rsvp {
  display: flex;
  gap: 10px;
  margin: 22px 0 12px;
  justify-content: center;
}
.guest-invite__btn {
  flex: 1;
  padding: 14px 8px;
  border-radius: 100px;
  font-family: var(--wm-font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  cursor: pointer;
  transition: all 200ms ease;
  border: 1px solid #C9B59B;
}
.guest-invite__btn--no {
  background: transparent;
  color: #3a2e21;
}
.guest-invite__btn--no:hover {
  background: #fff;
}
.guest-invite__btn--yes {
  background: var(--proto-primary);
  border-color: var(--proto-primary);
  color: #3a2e21;
}
.guest-invite__btn--yes:hover {
  background: var(--proto-primary-dark);
  border-color: var(--proto-primary-dark);
}
.guest-invite__deadline {
  font-family: var(--wm-font-display);
  font-size: 11px;
  letter-spacing: 2px;
  color: #6B5A47;
  margin: 14px 0 0;
}
.guest-invite__rsvp-result {
  padding: 16px;
  background: rgba(246, 190, 163, 0.3);
  border-radius: 12px;
  margin: 22px 0 12px;
}
.guest-invite__rsvp-icon {
  font-size: 28px;
  color: var(--proto-success);
  margin: 0 0 4px;
  line-height: 1;
}
.guest-invite__rsvp-text {
  font-family: var(--wm-font-editorial);
  font-style: italic;
  font-size: 14px;
  color: #3a2e21;
  margin: 0 0 8px;
}
.guest-invite__rsvp-reset {
  background: transparent;
  border: none;
  color: #8B6B4A;
  font-family: var(--wm-font-display);
  font-size: 12px;
  letter-spacing: 1px;
  cursor: pointer;
  text-decoration: underline;
}

/* App download block */
.guest-invite__app-block {
  padding: 0 28px 30px;
  text-align: center;
}
.guest-invite__app-title {
  font-family: var(--wm-font-display);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 3px;
  color: #3a2e21;
  margin: 0 0 4px;
  line-height: 1.4;
}
.guest-invite__app-subtitle {
  font-family: var(--wm-font-display);
  font-size: 11px;
  letter-spacing: 2.5px;
  color: #6B5A47;
  margin: 0 0 18px;
}
.guest-invite__app-text {
  font-family: var(--wm-font-editorial);
  font-style: italic;
  font-size: 13px;
  line-height: 1.6;
  color: #3a2e21;
  margin: 0 0 12px;
}
.guest-invite__app-cta {
  padding: 14px 36px;
  background: var(--proto-primary);
  border: none;
  border-radius: 100px;
  font-family: var(--wm-font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
  color: #3a2e21;
  cursor: pointer;
  margin-top: 14px;
  transition: all 200ms ease;
}
.guest-invite__app-cta:hover {
  background: var(--proto-primary-dark);
  transform: translateY(-1px);
}

/* Back-to-builder floating button (only visible in guest view) */
.invite-back-to-admin {
  position: absolute;
  top: 8px;
  right: 12px;
  padding: 6px 12px;
  background: rgba(50, 44, 46, 0.9);
  color: #fff;
  border: none;
  border-radius: 100px;
  font-family: var(--wm-font-body);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  z-index: 10;
  backdrop-filter: blur(8px);
  transition: background 200ms;
}
.invite-back-to-admin:hover {
  background: rgba(50, 44, 46, 1);
}

/* Safari bottom bar */
.invite-safari-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px 16px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}
.invite-safari-bar__btn {
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  color: var(--proto-fg);
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}
.invite-safari-bar__url {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 14px;
  background: rgba(0, 0, 0, 0.05);
  border-radius: 12px;
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 13px;
  color: var(--proto-fg);
}
.invite-safari-bar__icon {
  font-size: 11px;
  opacity: 0.6;
}
.invite-safari-bar__reload {
  font-size: 12px;
  opacity: 0.6;
  margin-left: 4px;
}

.proto-features__hint {
  margin-top: 14px;
  font-family: var(--wm-font-body);
  font-size: 13px;
  color: var(--proto-fg-muted);
  line-height: 1.5;
  padding: 12px 14px;
  background: var(--wm-bone);
  border-radius: 10px;
  border-left: 3px solid var(--wm-rose);
}
.proto-features__hint strong {
  color: var(--wm-rose);
}
.proto-invite {
  padding: 32px 24px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.proto-invite__intro {
  font-family: var(--wm-font-body);
  font-size: 11px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--proto-fg-muted);
  margin: 0;
}
.proto-invite__names {
  font-family: var(--wm-font-display);
  font-size: 44px;
  font-weight: 400;
  line-height: 1.05;
  margin: 0;
  color: var(--proto-accent);
}
.proto-invite__amp {
  font-family: var(--wm-font-editorial);
  font-style: italic;
  font-size: 38px;
  color: var(--wm-rose);
  font-weight: 400;
}
.proto-invite__date {
  font-family: var(--wm-font-display);
  font-size: 18px;
  color: var(--proto-fg);
  margin: 4px 0 0;
  letter-spacing: 1px;
}
.proto-invite__venue {
  font-family: var(--wm-font-body);
  font-size: 13px;
  color: var(--proto-fg-muted);
  margin: 0 0 8px;
  line-height: 1.5;
}
.proto-invite__message {
  font-family: var(--wm-font-editorial);
  font-style: italic;
  font-size: 15px;
  line-height: 1.55;
  color: var(--proto-fg);
  margin: 12px 12px 14px;
  padding: 14px 12px;
  border-top: 1px solid var(--proto-border);
  border-bottom: 1px solid var(--proto-border);
}
.proto-invite__rsvp {
  margin-top: 6px;
}
.proto-invite__rsvp-title {
  font-family: var(--wm-font-body);
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--proto-fg-muted);
  margin: 0 0 12px;
}
.proto-invite__rsvp-btns {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.proto-invite__btn {
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid var(--proto-border);
  background: var(--proto-surface);
  font-family: var(--wm-font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--proto-fg);
  cursor: pointer;
  transition: all 150ms ease;
}
.proto-invite__btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(50, 44, 46, 0.08);
}
.proto-invite__btn--yes:hover {
  border-color: var(--proto-success);
  color: var(--proto-success);
}
.proto-invite__btn--maybe:hover {
  border-color: var(--proto-primary);
  color: var(--proto-accent);
}
.proto-invite__btn--no:hover {
  border-color: var(--proto-danger);
  color: var(--proto-danger);
}
.proto-invite__deadline {
  font-family: var(--wm-font-body);
  font-size: 11px;
  color: var(--proto-fg-muted);
  margin: 12px 0 0;
}
.proto-invite__success {
  padding: 14px;
  text-align: center;
  background: var(--proto-soft);
  border-radius: 12px;
  margin: 4px 0;
}
.proto-invite__success-icon {
  font-size: 32px;
  color: var(--proto-success);
  margin: 0 0 6px;
  font-weight: 600;
  line-height: 1;
}
.proto-invite__success-text {
  font-family: var(--wm-font-body);
  font-size: 14px;
  color: var(--proto-fg);
  margin: 0 0 10px;
  font-weight: 500;
}
.proto-invite__reset {
  background: transparent;
  border: 1px solid var(--proto-accent);
  color: var(--proto-accent);
  padding: 6px 14px;
  border-radius: 8px;
  font-family: var(--wm-font-body);
  font-size: 12px;
  cursor: pointer;
}
.proto-invite__faq {
  text-align: left;
  margin-top: 12px;
  padding: 0 4px;
}
.proto-invite__faq summary {
  font-family: var(--wm-font-body);
  font-size: 13px;
  font-weight: 600;
  color: var(--proto-accent);
  cursor: pointer;
  padding: 10px 0;
  border-top: 1px solid var(--proto-border);
  list-style: none;
}
.proto-invite__faq summary::-webkit-details-marker {
  display: none;
}
.proto-invite__faq summary::after {
  content: "+";
  float: right;
  font-size: 18px;
  color: var(--proto-fg-muted);
  transition: transform 200ms;
}
.proto-invite__faq[open] summary::after {
  content: "−";
}
.proto-invite__faq-body p {
  font-family: var(--wm-font-body);
  font-size: 13px;
  color: var(--proto-fg);
  line-height: 1.5;
  margin: 8px 0;
}
.proto-invite__faq-body strong {
  color: var(--proto-accent);
}

/* ============================================================
   CTA
   ============================================================ */
.proto-cta {
  text-align: center;
  padding-block: var(--wm-section-y);
  max-width: 760px;
  margin: 0 auto;
  padding-inline: var(--wm-gutter);
}
.proto-cta__title {
  font-family: var(--wm-font-display);
  font-size: clamp(36px, 4.5vw, 56px);
  line-height: 1.1;
  font-weight: 400;
  margin: 0 0 18px;
  color: var(--wm-fg);
}
.proto-cta__title em {
  font-family: var(--wm-font-editorial);
  font-style: italic;
  color: var(--wm-rose);
}
.proto-cta__btns {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 28px;
}
.proto-cta__microcopy {
  margin-top: 18px;
  font-family: var(--wm-font-body);
  font-size: 13px;
  color: var(--wm-fg-muted);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  .proto {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  .proto--reverse {
    direction: ltr;
  }
  .proto__copy {
    max-width: 600px;
    margin: 0 auto;
  }
  .proto-features {
    text-align: left;
  }
  .device-frame {
    transform: scale(0.95);
    transform-origin: center top;
  }
}
@media (max-width: 480px) {
  .device-frame {
    width: 320px;
    height: 660px;
    transform: scale(1);
  }
  .proto-invite__names { font-size: 38px; }
  .proto-invite__date { font-size: 16px; }
}
