:root {
  --paper: #fffaf2;
  --paper-2: #fff5eb;
  --surface: rgba(255, 253, 249, 0.92);
  --surface-strong: #fffdf8;
  --ink: #171514;
  --muted: #706b64;
  --soft: #d9cec0;
  --line: rgba(54, 43, 33, 0.12);
  --coral: #ff6048;
  --coral-soft: #ffe6df;
  --green: #44a86b;
  --green-soft: #e7f4e8;
  --yellow: #f2bd54;
  --yellow-soft: #fff0c9;
  --blue-soft: #e7f3f7;
  --shadow: 0 18px 46px rgba(37, 27, 17, 0.14);
  --card-shadow: 0 6px 18px rgba(42, 31, 19, 0.07);
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 18% 8%, rgba(255, 226, 209, 0.62), transparent 26rem),
    radial-gradient(circle at 92% 16%, rgba(231, 244, 232, 0.72), transparent 24rem),
    var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  letter-spacing: 0;
}

button,
input,
textarea {
  font: inherit;
  letter-spacing: 0;
}

button {
  cursor: pointer;
}

button {
  -webkit-appearance: none;
  appearance: none;
}

.prototype-stage {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(390px, 480px) minmax(280px, 380px);
  gap: 44px;
  align-items: center;
  justify-content: center;
  padding: 32px;
}

.phone {
  width: 100%;
  aspect-ratio: 430 / 880;
  max-height: calc(100vh - 64px);
  border: 10px solid #191817;
  border-radius: 48px;
  padding: 7px;
  background: #0e0d0c;
  box-shadow: var(--shadow);
}

.phone-shell {
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 37px;
  background: linear-gradient(180deg, #fffdf9 0%, #fff8ef 100%);
  position: relative;
}

.status-bar {
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  font-size: 13px;
  font-weight: 700;
  flex: 0 0 auto;
}

.status-icons {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.status-icons span {
  display: block;
  background: #111;
  border-radius: 3px;
}

.status-icons span:nth-child(1) {
  width: 15px;
  height: 9px;
}

.status-icons span:nth-child(2) {
  width: 12px;
  height: 9px;
}

.status-icons span:nth-child(3) {
  width: 20px;
  height: 10px;
  border-radius: 6px;
}

.app {
  position: relative;
  min-height: 0;
  flex: 1;
  overflow: hidden;
}

.screen {
  height: 100%;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, rgba(255, 253, 249, 0.98), rgba(255, 248, 239, 0.98));
}

.screen-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 8px 22px 112px;
  scrollbar-width: none;
}

.screen-scroll::-webkit-scrollbar {
  display: none;
}

.screen.no-tabs .screen-scroll {
  padding-bottom: 104px;
}

.screen.no-tabs.make-plan-screen .screen-scroll {
  padding-bottom: 154px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 42px;
  padding: 0 4px;
  gap: 12px;
}

.topbar-leading,
.topbar-actions {
  display: flex;
  align-items: center;
  min-width: 0;
}

.topbar-leading {
  gap: 8px;
}

.topbar-actions {
  gap: 6px;
  margin-left: auto;
}

.brand-header {
  min-width: 0;
  border: 0;
  background: transparent;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0;
  color: var(--ink);
  font-size: 17px;
  font-weight: 850;
}

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

.brand-mark {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.brand-mark.large {
  width: 48px;
  height: 48px;
}

.brand-mark img,
.brand-mark svg {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #fff;
  box-shadow: 0 2px 8px rgba(30, 21, 14, 0.16);
  background: var(--paper-2);
}

.avatar.sm {
  width: 26px;
  height: 26px;
}

.avatar.lg {
  width: 58px;
  height: 58px;
}

.avatar.xl {
  width: 96px;
  height: 96px;
}

.avatar-stack {
  display: flex;
  align-items: center;
}

.avatar-stack .avatar {
  margin-left: -8px;
}

.avatar-stack .avatar:first-child {
  margin-left: 0;
}

.icon-button {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  background: transparent;
  position: relative;
}

.profile-button {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  padding: 0;
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.add-friends-button {
  color: var(--ink);
}

.icon-button svg,
.button-icon {
  width: 19px;
  height: 19px;
}

.notification-dot {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 8px;
  height: 8px;
  background: var(--coral);
  border-radius: 50%;
  box-shadow: 0 0 0 2px var(--surface-strong);
}

.top-action {
  border: 0;
  background: transparent;
  color: var(--coral);
  font-weight: 750;
}

.page-title {
  margin: 8px 0 0;
  font-family: var(--serif);
  font-size: 38px;
  line-height: 0.94;
  font-weight: 700;
}

.page-title.center {
  text-align: center;
}

.subtitle {
  margin: 7px 0 18px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 20px 0 10px;
}

.section-header h2 {
  margin: 0;
  font-size: 16px;
  line-height: 1.2;
}

.section-header a,
.mini-link {
  color: #307849;
  font-size: 12px;
  font-weight: 750;
  text-decoration: none;
}

.card {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--card-shadow);
}

button.card {
  width: 100%;
  color: inherit;
  text-align: left;
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 28px;
  padding: 6px 12px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--ink);
  background: #fff;
  font-size: 12px;
  font-weight: 750;
}

.pill.green {
  color: #1d703d;
  background: var(--green-soft);
}

.pill.yellow {
  color: #7e5a0f;
  background: var(--yellow-soft);
}

.pill.coral {
  color: #c83d28;
  background: var(--coral-soft);
}

.pill.selected {
  color: #fff;
  background: var(--coral);
}

.primary-button,
.secondary-button {
  min-height: 48px;
  border-radius: 14px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 800;
}

.primary-button {
  border: 1px solid var(--coral);
  color: #fff;
  background: var(--coral);
  box-shadow: 0 10px 22px rgba(255, 96, 72, 0.22);
}

.secondary-button {
  border: 1px solid rgba(255, 96, 72, 0.55);
  color: #bd3b28;
  background: rgba(255, 255, 255, 0.72);
}

.login-screen {
  padding: 18px 28px 14px;
  align-items: stretch;
  overflow-y: auto;
  scrollbar-width: none;
}

.login-screen::-webkit-scrollbar {
  display: none;
}

.login-screen .brand-lockup {
  text-align: center;
}

.brand-name {
  margin-top: -4px;
  font-size: 18px;
  font-weight: 850;
}

.login-copy {
  text-align: center;
  margin: 12px 0 12px;
}

.login-copy h1 {
  margin: 0 0 8px;
  font-family: var(--serif);
  font-size: 26px;
  line-height: 1.05;
}

.login-copy p {
  margin: 0;
  color: #4d4741;
  font-size: 13px;
  line-height: 1.45;
}

.memory-collage {
  height: 164px;
  flex: 0 0 164px;
  position: relative;
  margin: 0 0 14px;
}

.memory-collage img {
  position: absolute;
  object-fit: cover;
  border-radius: 13px;
  box-shadow: 0 10px 24px rgba(42, 31, 19, 0.12);
}

.memory-collage img:nth-child(1) {
  width: 132px;
  height: 88px;
  left: 0;
  top: 20px;
  transform: rotate(1.5deg);
}

.memory-collage img:nth-child(2) {
  width: 136px;
  height: 92px;
  right: 2px;
  top: 2px;
  transform: rotate(-3deg);
}

.memory-collage img:nth-child(3) {
  width: 136px;
  height: 90px;
  left: 8px;
  bottom: 0;
  transform: rotate(-2deg);
}

.memory-collage img:nth-child(4) {
  width: 122px;
  height: 122px;
  right: 18px;
  bottom: 2px;
  transform: rotate(3deg);
}

.login-actions {
  display: grid;
  gap: 10px;
  margin-top: auto;
}

.apple-button,
.phone-button {
  min-height: 44px;
  border-radius: 11px;
  border: 1px solid var(--line);
  font-weight: 780;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.apple-button {
  color: #fff;
  background: #080808;
}

.phone-button {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.72);
}

.login-link {
  margin-top: 6px;
  color: var(--ink);
  text-align: center;
  text-decoration: none;
  font-weight: 800;
}

button svg,
.meta-line svg,
.helper-line svg,
.receipt-icon svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.terms {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.35;
  text-align: center;
}

.terms a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 750;
}

.week-strip {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  margin: 18px 0 10px;
}

.day-cell {
  min-height: 72px;
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 6px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 750;
}

.day-number {
  width: 33px;
  height: 33px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--ink);
  font-size: 14px;
}

.day-cell.active .day-number {
  color: #fff;
  background: var(--coral);
}

.day-markers {
  min-height: 22px;
  display: flex;
  align-items: center;
  gap: 3px;
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
  background: var(--green);
}

.dot.yellow {
  background: var(--yellow);
}

.dot.coral {
  background: var(--coral);
}

.plan-card {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) minmax(118px, 34%);
  gap: 12px;
  width: 100%;
  padding: 12px;
  margin-bottom: 12px;
  min-height: 128px;
  color: inherit;
  text-align: left;
}

.date-tile {
  width: 54px;
  min-height: 64px;
  display: grid;
  place-items: center;
  align-self: start;
  padding: 7px 3px;
  border-radius: 12px;
  background: var(--paper-2);
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  text-align: center;
  line-height: 1.05;
}

.date-tile strong {
  color: var(--ink);
  font-size: 23px;
  line-height: 1;
}

.date-tile.green {
  background: var(--green-soft);
}

.date-tile.blue {
  background: var(--blue-soft);
}

.event-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.event-time {
  color: var(--muted);
  font-size: 12px;
}

.event-copy h3 {
  margin: 3px 0 5px;
  font-size: 16px;
  line-height: 1.15;
}

.meta-line {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.25;
}

.event-copy .avatar-stack {
  margin-top: auto;
}

.event-media {
  position: relative;
  min-height: 104px;
  overflow: hidden;
  border-radius: 10px;
}

.event-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.event-media .pill {
  position: absolute;
  right: 8px;
  bottom: 8px;
}

.mini-video {
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 5px 12px rgba(32, 22, 12, 0.12);
}

.floating-plan {
  position: absolute;
  right: 24px;
  bottom: 86px;
  height: 54px;
  border: 0;
  border-radius: 999px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #fff;
  background: var(--coral);
  font-size: 15px;
  font-weight: 850;
  box-shadow: 0 12px 28px rgba(255, 96, 72, 0.32);
}

.tabbar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  height: 72px;
  padding: 8px 14px 12px;
  border-top: 1px solid var(--line);
  background: rgba(255, 251, 245, 0.94);
  backdrop-filter: blur(16px);
}

.tab-button {
  border: 0;
  background: transparent;
  color: var(--muted);
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 750;
}

.tab-button svg {
  width: 22px;
  height: 22px;
  stroke-width: 1.8;
}

.tab-button.active {
  color: var(--coral);
}

.form-card {
  padding: 13px;
  margin: 14px 0;
}

.availability-card {
  margin: 14px 0;
  padding: 13px;
  border: 1px solid rgba(68, 168, 107, 0.22);
  border-radius: 14px;
  background: linear-gradient(90deg, rgba(231, 244, 232, 0.88), rgba(255, 248, 230, 0.72));
  box-shadow: var(--card-shadow);
}

.availability-card-top {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.availability-card strong {
  display: block;
  margin-bottom: 4px;
  font-size: 14px;
}

.availability-card p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.availability-icon {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  color: #1d703d;
  background: rgba(255, 255, 255, 0.72);
}

.availability-slots,
.preference-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 10px;
}

.slot-chip {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 5px 10px;
  color: #6d551d;
  background: rgba(255, 255, 255, 0.78);
  font-size: 11px;
  font-weight: 800;
}

.slot-chip.best {
  color: #176c3c;
  background: var(--green-soft);
}

.field-label {
  display: block;
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 850;
}

.text-input,
.text-area {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  outline: 0;
}

.text-input {
  min-height: 48px;
  padding: 0 42px 0 12px;
  font-size: 16px;
}

.field-with-icon {
  position: relative;
}

.field-with-icon .right-icon {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
}

.text-area {
  min-height: 76px;
  padding: 12px;
  resize: none;
  line-height: 1.35;
}

.count {
  color: var(--muted);
  font-size: 11px;
  text-align: right;
  margin-top: -22px;
  padding-right: 12px;
}

.person-row,
.time-row,
.segmented,
.action-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.person-row {
  overflow-x: auto;
  padding-bottom: 4px;
}

.person-chip {
  display: grid;
  justify-items: center;
  gap: 5px;
  flex: 0 0 52px;
  color: var(--ink);
  font-size: 11px;
}

.add-person {
  width: 50px;
  height: 50px;
  border: 1px dashed var(--soft);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  color: var(--ink);
  display: grid;
  place-items: center;
}

.time-chip,
.segment {
  min-height: 42px;
  flex: 1;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.6);
  font-weight: 750;
}

.date-choice-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 9px;
}

.date-choice {
  min-height: 76px;
  border: 1px solid var(--line);
  border-radius: 12px;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 3px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.62);
}

.date-choice span,
.date-choice em {
  font-size: 10px;
  font-style: normal;
  font-weight: 850;
  text-transform: uppercase;
}

.date-choice strong {
  color: var(--ink);
  font-size: 23px;
  line-height: 1;
}

.date-choice.active {
  border-color: rgba(255, 96, 72, 0.35);
  color: #8b341e;
  background: var(--coral-soft);
}

.date-choice.active strong {
  color: var(--coral);
}

.time-chip.active {
  color: var(--coral);
  border-color: rgba(255, 96, 72, 0.35);
  background: var(--coral-soft);
}

.helper-line {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 8px 0 0;
  color: #327d4c;
  font-size: 12px;
}

.segmented {
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.62);
}

.segment {
  border: 0;
  border-right: 1px solid var(--line);
  border-radius: 0;
}

.segment:last-child {
  border-right: 0;
}

.segment.active {
  color: #176c3c;
  background: var(--green-soft);
}

.bottom-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 12px 22px 20px;
}

.bottom-actions.single {
  grid-template-columns: 1fr;
}

.bottom-actions.plan-actions {
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding-top: 10px;
}

.bottom-actions.plan-actions .draft-button {
  grid-column: 1 / -1;
  min-height: 40px;
}

.filter-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 20px 0 18px;
}

.filter-tabs {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.filter-chip {
  min-width: 56px;
  height: 34px;
  border: 0;
  border-radius: 10px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.55);
  font-weight: 760;
}

.filter-chip.active {
  color: #8b341e;
  background: var(--coral-soft);
}

.chat-compose-button {
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.68);
  box-shadow: 0 6px 16px rgba(42, 31, 19, 0.08);
}

.chat-list {
  display: grid;
  gap: 0;
}

.chat-item {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  gap: 12px;
  width: 100%;
  padding: 14px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  color: inherit;
  background: transparent;
  text-align: left;
}

.chat-item:last-child {
  border-bottom: 0;
}

.chat-copy h3 {
  margin: 0 0 4px;
  font-size: 16px;
  line-height: 1.15;
}

.chat-copy p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.25;
}

.chat-meta {
  display: grid;
  justify-items: end;
  align-content: start;
  gap: 14px;
  color: var(--muted);
  font-size: 11px;
}

.soft-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #f2b099;
}

.soft-dot.yellow {
  background: #eccb79;
}

.context-tags {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 7px;
}

.context-tag {
  border-radius: 999px;
  padding: 5px 9px;
  color: #7b5611;
  background: var(--yellow-soft);
  font-size: 11px;
  font-weight: 760;
}

.context-tag.green {
  color: #176c3c;
  background: var(--green-soft);
}

.moments-hero {
  padding: 12px;
  width: 100%;
  color: inherit;
  text-align: left;
}

.hero-top {
  display: grid;
  grid-template-columns: 1fr 124px;
  gap: 10px;
  align-items: start;
}

.hero-top h2 {
  margin: 9px 0 9px;
  font-family: var(--serif);
  font-size: 25px;
  line-height: 1;
}

.hero-photo {
  width: 124px;
  height: 112px;
  object-fit: cover;
  border-radius: 10px;
}

.eyebrow {
  color: #316b40;
  font-size: 10px;
  font-weight: 850;
  text-transform: uppercase;
}

.photo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 5px;
  margin: 12px 0;
}

.photo-grid img {
  width: 100%;
  height: 86px;
  border-radius: 9px;
  object-fit: cover;
}

.keen-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.keen-button {
  min-width: 96px;
  min-height: 42px;
  border: 0;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: #fff;
  background: var(--green);
  font-weight: 850;
}

.suggestion-card {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  margin-top: 11px;
  border-radius: 14px;
  min-height: 76px;
}

.suggestion-card.yellow {
  background: linear-gradient(90deg, #fff4d8, #fff8e9);
}

.suggestion-card.green {
  background: linear-gradient(90deg, #eaf5e8, #f6fbf2);
}

.suggestion-card.blue {
  grid-template-columns: minmax(0, 1fr) 68px;
  background: linear-gradient(90deg, #e8f5f8, #f8fbfc);
}

.suggestion-card.blue .small-button {
  grid-column: 1;
  grid-row: 2;
  justify-self: start;
  min-width: 96px;
}

.suggestion-card.blue img {
  grid-column: 2;
  grid-row: 1 / span 2;
  justify-self: end;
}

.suggestion-card h3 {
  margin: 0 0 4px;
  font-size: 14px;
  line-height: 1.15;
}

.suggestion-card p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.25;
}

.small-button {
  min-height: 30px;
  border: 0;
  border-radius: 999px;
  padding: 0 12px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.75);
  font-size: 12px;
  font-weight: 800;
}

.people-section {
  margin-top: 20px;
}

.people-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  align-items: stretch;
}

.person-card {
  min-width: 0;
  min-height: 162px;
  padding: 12px;
  display: flex;
  flex-direction: column;
}

.person-card-top {
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr);
  gap: 9px;
  align-items: start;
  margin-bottom: 12px;
}

.person-card .avatar.lg {
  width: 50px;
  height: 50px;
}

.person-card-top > div {
  min-width: 0;
}

.person-card h3 {
  margin: 0 0 3px;
  font-size: 15px;
  line-height: 1.1;
}

.person-card p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.32;
  overflow-wrap: break-word;
}

.person-card .small-button {
  width: 100%;
  border: 1px solid var(--line);
  margin-top: auto;
}

.friend-search {
  min-height: 52px;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 0 14px;
  margin: 16px 0 12px;
}

.friend-search span {
  color: var(--muted);
  display: grid;
  place-items: center;
}

.friend-search input {
  width: 100%;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
  font-size: 14px;
}

.friend-search input::placeholder {
  color: var(--muted);
}

.invite-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}

.invite-method {
  min-height: 128px;
  padding: 13px;
  display: grid;
  align-content: start;
  gap: 8px;
  color: inherit;
  text-align: left;
}

.invite-icon {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  color: #8b341e;
  background: var(--coral-soft);
}

.invite-method strong {
  font-size: 15px;
}

.invite-method p,
.friend-code-card p,
.friend-row p,
.friend-row span {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.friend-code-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 14px;
}

.friend-code-card h2 {
  margin: 5px 0;
  font-size: 24px;
  letter-spacing: 0;
}

.suggested-friends {
  display: grid;
  gap: 10px;
}

.friend-row {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 11px;
}

.friend-row h3 {
  margin: 0 0 3px;
  font-size: 15px;
  line-height: 1.15;
}

.page-heading-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
}

.page-heading-row .small-button {
  margin-top: 12px;
  border: 1px solid var(--line);
}

.notification-summary {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 13px;
  margin: 12px 0 16px;
  background: linear-gradient(90deg, rgba(255, 230, 223, 0.72), rgba(255, 248, 230, 0.7));
}

.notification-summary strong {
  display: block;
  margin-bottom: 3px;
  font-size: 14px;
}

.notification-summary p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.notification-section .section-header {
  margin-top: 18px;
}

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

.notification-item {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 12px;
  color: inherit;
  text-align: left;
}

.notification-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
}

.notification-icon.coral {
  color: #a93d2a;
  background: var(--coral-soft);
}

.notification-icon.green {
  color: #1d703d;
  background: var(--green-soft);
}

.notification-icon.yellow {
  color: #7e5a0f;
  background: var(--yellow-soft);
}

.notification-icon.blue {
  color: #356b76;
  background: var(--blue-soft);
}

.notification-title-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: start;
}

.notification-title-row h3 {
  margin: 0;
  font-size: 15px;
  line-height: 1.15;
}

.notification-title-row span {
  color: var(--muted);
  font-size: 11px;
  white-space: nowrap;
}

.notification-item p {
  margin: 5px 0 9px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.notification-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.notification-actions span {
  min-height: 27px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0 10px;
  color: #8b341e;
  background: rgba(255, 230, 223, 0.72);
  font-size: 11px;
  font-weight: 850;
}

.notification-settings {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  padding: 14px;
  margin-top: 16px;
}

.notification-settings h2 {
  margin: 5px 0;
  font-size: 18px;
}

.notification-settings p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.profile-hero {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 14px;
  margin: 16px 0 12px;
}

.profile-photo-uploader {
  display: grid;
  justify-items: center;
  gap: 8px;
}

.photo-upload-button {
  min-height: 30px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  color: #8b341e;
  background: var(--coral-soft);
  font-size: 11px;
  font-weight: 850;
  white-space: nowrap;
}

.profile-hero h2 {
  margin: 0 0 5px;
  font-size: 20px;
  line-height: 1.08;
}

.profile-hero p {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.profile-fields {
  display: grid;
  gap: 11px;
  padding: 14px;
  margin-bottom: 14px;
}

.profile-fields .text-input {
  min-height: 42px;
}

.availability-editor {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 14px;
  margin-bottom: 12px;
}

.availability-editor h2 {
  margin: 5px 0 5px;
  font-size: 18px;
}

.availability-editor p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.availability-mode {
  width: 132px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
}

.availability-mode .segment {
  min-height: 32px;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.schedule-list {
  display: grid;
  gap: 8px;
  margin: 14px 0;
}

.schedule-row {
  display: grid;
  grid-template-columns: 36px minmax(76px, 1fr) auto minmax(76px, 1fr) 68px;
  gap: 7px;
  align-items: center;
  min-height: 42px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.58);
}

.schedule-row strong {
  font-size: 13px;
}

.time-select {
  min-height: 32px;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 0 8px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.78);
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.time-dash {
  color: var(--ink);
  font-size: 11px;
  font-weight: 750;
  text-align: center;
}

.schedule-row em {
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  text-align: right;
}

.event-detail .screen-scroll {
  padding: 0 14px 18px;
}

.detail-hero {
  position: relative;
  min-height: 318px;
  padding: 16px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid var(--line);
}

.detail-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 250, 242, 0.97) 0%, rgba(255, 250, 242, 0.74) 44%, rgba(255, 250, 242, 0.1) 100%),
    url("assets/photos/event-hero.png") right center / cover no-repeat;
}

.detail-hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
}

.detail-hero h1 {
  width: 58%;
  margin: 0 0 12px;
  font-family: var(--serif);
  font-size: 29px;
  line-height: 0.98;
}

.attendee-panel {
  display: inline-flex;
  gap: 13px;
  padding: 10px;
  margin-top: 12px;
  border-radius: 13px;
  background: rgba(255, 253, 249, 0.88);
  box-shadow: var(--card-shadow);
}

.attendee {
  display: grid;
  justify-items: center;
  gap: 4px;
  color: var(--ink);
  font-size: 11px;
}

.rsvp-row {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 9px;
  margin: 12px 0;
}

.rsvp-row button {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  font-weight: 800;
}

.rsvp-row button.active {
  border-color: var(--green);
  color: #fff;
  background: var(--green);
}

.detail-stat-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 8px 0 12px;
  color: var(--muted);
  font-size: 12px;
}

.detail-card {
  display: grid;
  grid-template-columns: 54px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  margin-bottom: 10px;
}

.detail-card h3 {
  margin: 0 0 4px;
  font-size: 14px;
}

.detail-card p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.receipt-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: #1b743e;
  background: var(--green-soft);
}

.detail-actions {
  display: grid;
  grid-template-columns: 1.05fr 1fr 1fr;
  gap: 8px;
  padding: 10px 14px 18px;
  background: rgba(255, 250, 242, 0.92);
}

.detail-actions button {
  min-height: 42px;
  border-radius: 11px;
  border: 1px solid rgba(255, 96, 72, 0.5);
  color: #bc3e29;
  background: rgba(255, 255, 255, 0.76);
  font-size: 12px;
  font-weight: 800;
}

.prototype-notes {
  display: block;
}

.notes-card {
  max-width: 360px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 253, 249, 0.72);
  box-shadow: var(--card-shadow);
}

.notes-card h1 {
  margin: 8px 0 12px;
  font-family: var(--serif);
  font-size: 40px;
  line-height: 1;
}

.notes-card p {
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.5;
}

.note-actions {
  display: flex;
  gap: 10px;
}

.text-link {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  padding: 9px 14px;
  color: var(--ink);
  font-weight: 800;
}

@media (max-width: 900px) {
  .prototype-stage {
    grid-template-columns: minmax(360px, 480px);
    padding: 18px;
  }

  .prototype-notes {
    display: none;
  }
}

@media (max-width: 460px) {
  .prototype-stage {
    min-height: 100svh;
    padding: 0;
  }

  .phone {
    max-height: none;
    height: 100svh;
    width: 100%;
    border: 0;
    border-radius: 0;
    padding: 0;
  }

  .phone-shell {
    border-radius: 0;
  }
}
