:root {
  color-scheme: light;
  --bg: #f8f7fb;
  --surface: #ffffff;
  --surface-soft: #fbfaff;
  --surface-tint: #f4efff;
  --text: #181625;
  --muted: #777389;
  --muted-strong: #57516c;
  --border: rgba(24, 22, 37, 0.08);
  --border-strong: rgba(24, 22, 37, 0.13);
  --brand: #6d42e8;
  --brand-strong: #5b32d6;
  --brand-soft: #eee8ff;
  --pink: #e95589;
  --green: #20b875;
  --mint: #eafaf2;
  --blue: #2f80ed;
  --blue-soft: #edf5ff;
  --amber: #d99118;
  --amber-soft: #fff7e8;
  --danger: #df4564;
  --danger-soft: #fff0f4;
  --shadow-sm: 0 6px 18px rgba(38, 30, 73, 0.06);
  --shadow-md: 0 12px 34px rgba(38, 30, 73, 0.1);
  --shadow-lg: 0 22px 70px rgba(38, 30, 73, 0.16);
  --radius-xl: 1.6rem;
  --radius-lg: 1.25rem;
  --radius-md: 1rem;
  --radius-sm: 0.75rem;
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --font-sans: "SF Pro Text", Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  min-height: 100%;
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  font-family: var(--font-sans);
  background:
    radial-gradient(circle at 50% -20%, rgba(109, 66, 232, 0.12), transparent 34rem),
    var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

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

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

button {
  cursor: pointer;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  outline: none;
  transition: border-color 120ms ease, box-shadow 120ms ease, background-color 120ms ease;
}

input::placeholder,
textarea::placeholder {
  color: #aaa5b8;
}

input:focus,
textarea:focus,
select:focus {
  border-color: rgba(109, 66, 232, 0.78);
  box-shadow: 0 0 0 0.22rem rgba(109, 66, 232, 0.12);
}

textarea {
  min-height: 7rem;
  resize: vertical;
}

input[type="file"] {
  padding: 0.8rem;
  background: #faf9ff;
}

input[type="checkbox"],
input[type="radio"] {
  width: auto;
}

.app-shell {
  display: grid;
  grid-template-columns: 17rem minmax(0, 1fr);
  min-height: 100vh;
  min-height: 100dvh;
}

.sidebar {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
  height: 100vh;
  height: 100dvh;
  padding: var(--space-6);
  border-right: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(24px);
}

.sidebar-brand,
.topbar,
.topbar-left,
.topbar-right,
.user-chip {
  display: flex;
  align-items: center;
}

.sidebar-brand,
.topbar {
  justify-content: space-between;
  gap: var(--space-4);
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  font-size: 1.15rem;
}

.brand-mark,
.spark-mark {
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(145deg, #7b55f2, #4d2bcf);
  box-shadow: var(--shadow-sm);
}

.brand-mark {
  width: 2.35rem;
  height: 2.35rem;
  font-weight: 800;
}

.spark-mark {
  width: 2rem;
  height: 2rem;
  font-size: 0.9rem;
}

.sidebar-nav {
  display: grid;
  gap: var(--space-2);
}

.nav-link,
.bottom-tab {
  color: var(--muted-strong);
  transition: color 120ms ease, background-color 120ms ease, transform 120ms ease;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  min-height: 2.75rem;
  padding: 0.78rem 0.95rem;
  border-radius: var(--radius-sm);
  font-weight: 650;
}

.nav-link-icon {
  display: grid;
  place-items: center;
  width: 1.35rem;
  height: 1.35rem;
  color: currentColor;
}

.nav-link-icon .inline-icon {
  width: 1.15rem;
  height: 1.15rem;
}

.nav-link:hover,
.nav-link:focus-visible,
.nav-link.active {
  color: var(--brand);
  background: var(--brand-soft);
}

.shell-content {
  min-width: 0;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  min-height: calc(4.75rem + env(safe-area-inset-top));
  padding:
    calc(var(--space-5) + env(safe-area-inset-top))
    calc(var(--space-8) + env(safe-area-inset-right))
    var(--space-5)
    calc(var(--space-8) + env(safe-area-inset-left));
  border-bottom: 1px solid var(--border);
  background: rgba(248, 247, 251, 0.72);
  backdrop-filter: blur(20px);
}

.topbar-left,
.topbar-right {
  gap: var(--space-3);
}

.page-heading {
  margin: 0;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
}

.page-content {
  width: min(100%, 63rem);
  margin: 0 auto;
  padding: var(--space-8);
}

.phone-page {
  width: min(100%, 26.5rem);
  margin: 0 auto;
}

.people-page {
  position: relative;
  width: min(100%, 26rem);
}

.phone-page-wide {
  width: min(100%, 32rem);
  margin: 0 auto;
}

.page-hero,
.mobile-titlebar,
.inline-titlebar,
.section-heading,
.item-row,
.list-item,
.profile-hero,
.profile-actions,
.action-row,
.app-action-row,
.meta-row,
.chip-row,
.bottom-tabs,
.quick-actions,
.person-row-main,
.person-row-header,
.calendar-tabs,
.week-strip,
.date-plan-header {
  display: flex;
}

.page-hero,
.mobile-titlebar,
.inline-titlebar,
.section-heading,
.item-row,
.list-item,
.profile-hero,
.person-row-header,
.date-plan-header {
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
}

.people-page .page-hero {
  margin-bottom: 0;
}

.people-page .page-title {
  font-size: clamp(1.7rem, 7vw, 2rem);
  letter-spacing: -0.07em;
}

.people-page .page-subtitle {
  margin-top: 0.2rem;
  font-size: 0.86rem;
}

.mobile-titlebar {
  margin-bottom: var(--space-5);
}

.mobile-titlebar-centered {
  display: grid;
  grid-template-columns: 2.75rem minmax(0, 1fr) 2.75rem;
  align-items: center;
  gap: var(--space-2);
  text-align: center;
}

.mobile-titlebar-title {
  margin: 0;
  font-size: 1.4rem;
  letter-spacing: -0.045em;
}

.mobile-titlebar-subtitle {
  margin: 0.25rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.brand-title {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  margin: 0;
  font-size: 2rem;
  line-height: 1;
  letter-spacing: -0.06em;
}

.brand-title::after,
.name-spark::after {
  content: "*";
  color: var(--brand);
  font-size: 0.85em;
  line-height: 1;
}

.page-title {
  margin: 0;
  font-size: clamp(1.75rem, 6vw, 2.2rem);
  line-height: 1.05;
  letter-spacing: -0.06em;
}

.page-subtitle {
  margin: 0.35rem 0 0;
  color: var(--muted);
}

.eyebrow {
  margin: 0 0 var(--space-2);
  color: var(--brand);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.72rem;
  font-weight: 800;
}

.section-heading {
  margin-bottom: var(--space-3);
}

.section-title,
.module-title {
  margin: 0;
  font-size: 1rem;
  letter-spacing: -0.02em;
}

.section-link {
  color: var(--brand);
  font-size: 0.82rem;
  font-weight: 700;
}

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

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

.text-small {
  font-size: 0.82rem;
}

.text-tiny {
  font-size: 0.74rem;
}

.stack-xs > * + * {
  margin-top: var(--space-1);
}

.stack-sm > * + * {
  margin-top: var(--space-3);
}

.stack-md > * + * {
  margin-top: var(--space-4);
}

.stack-lg > * + * {
  margin-top: var(--space-5);
}

.grid {
  display: grid;
  gap: var(--space-4);
}

.split {
  display: grid;
  gap: var(--space-6);
  grid-template-columns: minmax(0, 2fr) minmax(18rem, 1fr);
}

.card,
.module,
.panel,
.disclosure-section,
.search-pill,
.calendar-tabs {
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.card,
.module,
.panel {
  border-radius: var(--radius-lg);
  padding: var(--space-5);
}

.soft-card {
  background: var(--surface-soft);
}

.tinted-card {
  background: linear-gradient(135deg, #fbf8ff, #f8f4ff);
}

.update-existing-card-compact {
  padding: var(--space-3);
}

.update-existing-card-compact .meetup-person-card {
  min-height: 3.55rem;
  box-shadow: none;
}

.update-existing-card-compact .meetup-person-selected-card {
  min-height: 3.55rem;
}

.update-existing-card-compact .app-icon {
  flex: 0 0 auto;
}

.button,
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  text-align: center;
  transition: transform 120ms ease, box-shadow 120ms ease, background-color 120ms ease;
}

.button:hover,
.icon-button:hover {
  transform: translateY(-1px);
}

.button {
  min-height: 2.85rem;
  gap: var(--space-2);
  padding: 0.8rem 1.05rem;
  border-radius: var(--radius-sm);
  color: var(--text);
  background: #f5f3fa;
  font-weight: 750;
}

.button-primary {
  color: #fff;
  background: linear-gradient(145deg, #7b55f2, #4f2ed1);
  box-shadow: 0 12px 24px rgba(93, 54, 219, 0.24);
}

.button-secondary {
  color: var(--brand);
  background: var(--brand-soft);
}

.button-danger {
  color: var(--danger);
  background: var(--danger-soft);
}

.button-ghost {
  color: var(--brand);
  background: transparent;
}

.inline-form {
  display: inline-flex;
}

.button-small {
  min-height: 2.2rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.82rem;
}

.button-wide {
  width: 100%;
}

.icon-button {
  width: 2.55rem;
  height: 2.55rem;
  border-radius: 999px;
  color: var(--brand);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.icon-button-plain {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
  color: var(--text);
}

.user-chip {
  gap: var(--space-2);
  padding: var(--space-1);
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
}

.user-chip-label {
  max-width: 15rem;
  overflow: hidden;
  padding-inline: var(--space-3);
  color: var(--muted-strong);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mobile-only {
  display: none;
}

.desktop-only {
  display: block;
}

.quick-actions {
  gap: var(--space-2);
  overflow-x: auto;
  padding: 0.1rem 0.1rem var(--space-1);
  scrollbar-width: none;
}

.quick-actions-home {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  overflow: visible;
}

.quick-actions::-webkit-scrollbar,
.horizontal-rail::-webkit-scrollbar,
.chip-row::-webkit-scrollbar,
.week-strip::-webkit-scrollbar {
  display: none;
}

.quick-action {
  min-width: 8.55rem;
  display: grid;
  grid-template-columns: 2.35rem minmax(0, 1fr);
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.quick-actions-home .quick-action {
  min-width: 0;
}

.meetup-action-bar .quick-action {
  flex: 1 1 0;
  min-width: 0;
}

.quick-action-primary {
  border-color: rgba(109, 66, 232, 0.22);
  background: linear-gradient(145deg, #fff, #f8f4ff);
}

.quick-action strong {
  display: block;
  font-size: 0.82rem;
}

.quick-action span:last-child {
  display: block;
  margin-top: 0.15rem;
  color: var(--muted);
  font-size: 0.72rem;
}

.app-icon,
.avatar-placeholder,
.status-dot,
.calendar-date-badge {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
}

.app-icon {
  width: 2.45rem;
  height: 2.45rem;
  border-radius: 0.85rem;
  color: var(--brand);
  background: var(--brand-soft);
  font-weight: 850;
}

.app-icon-img,
.inline-icon {
  display: inline-block;
  width: 1em;
  height: 1em;
  flex: 0 0 auto;
  background: currentColor;
  -webkit-mask: var(--icon) center / contain no-repeat;
  mask: var(--icon) center / contain no-repeat;
}

.app-icon .app-icon-img {
  width: 58%;
  height: 58%;
}

.app-icon-lg .app-icon-img {
  width: 46%;
  height: 46%;
}

.icon-button .inline-icon,
.search-pill-symbol .inline-icon {
  width: 1.1rem;
  height: 1.1rem;
}

.app-icon-sm {
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 0.55rem;
  font-size: 0.78rem;
}

.app-icon-lg {
  width: 3.85rem;
  height: 3.85rem;
  border-radius: 1.2rem;
  font-size: 1.4rem;
}

.icon-green {
  color: var(--green);
  background: var(--mint);
}

.icon-blue {
  color: var(--blue);
  background: var(--blue-soft);
}

.icon-pink {
  color: var(--pink);
  background: #fff0f7;
}

.icon-amber {
  color: var(--amber);
  background: var(--amber-soft);
}

.icon-mono {
  color: var(--text);
  background: #f6f5f8;
}

.app-icon-letter {
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.list {
  display: grid;
  gap: var(--space-2);
}

.list-flush {
  gap: 0;
}

.list-flush > * + * {
  border-top: 1px solid var(--border);
}

.list-item,
.item-row {
  min-width: 0;
  padding: var(--space-3);
  border-radius: var(--radius-md);
}

.list-item {
  background: var(--surface);
}

.item-row {
  color: inherit;
}

.item-row:hover {
  background: #fbfaff;
}

.row-content {
  flex: 1;
  min-width: 0;
}

.row-title {
  margin: 0;
  font-weight: 800;
}

.row-subtitle {
  margin: 0.15rem 0 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.row-count {
  min-width: 1.5rem;
  color: var(--brand);
  font-weight: 800;
  text-align: right;
}

.chevron {
  color: #b9b4c4;
  font-size: 1.35rem;
}

.meta-row,
.action-row,
.app-action-row,
.chip-row,
.profile-actions {
  flex-wrap: wrap;
  gap: var(--space-2);
  align-items: center;
}

.meta-row {
  color: var(--muted);
  font-size: 0.82rem;
}

.meta-dot::before {
  content: "";
  display: inline-block;
  width: 0.22rem;
  height: 0.22rem;
  margin: 0 0.42rem 0.12rem;
  border-radius: 999px;
  background: currentColor;
  opacity: 0.55;
}

.badge,
.filter-chip,
.line-chip,
.context-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-1);
  border-radius: 999px;
  white-space: nowrap;
}

.badge {
  min-height: 1.55rem;
  padding: 0.3rem 0.58rem;
  color: var(--muted-strong);
  background: #f4f2f8;
  font-size: 0.72rem;
  font-weight: 750;
}

.person-row .badge {
  min-height: 1.35rem;
  padding: 0.22rem 0.48rem;
  font-size: 0.66rem;
}

.badge.status-New,
.badge.status-Planning,
.badge.intent-Casual,
.badge.intent-TravelFling {
  color: var(--brand);
  background: var(--brand-soft);
}

.badge.status-Chatting,
.badge.turn-YourTurn {
  color: var(--pink);
  background: #fff0f7;
}

.badge.status-Met,
.badge.status-HookedUp,
.badge.status-Ongoing,
.badge.turn-TheirTurn,
.badge.intent-Serious {
  color: var(--green);
  background: var(--mint);
}

.badge.status-Paused,
.badge.status-Ghosted,
.badge.status-DoNotContact,
.badge.turn-CoolingOff,
.badge.turn-MutualSilence {
  color: var(--amber);
  background: var(--amber-soft);
}

.badge.status-Archived,
.badge.turn-Unknown {
  color: var(--muted);
  background: #f1eff5;
}

.badge-outline {
  color: var(--brand);
  background: #fff;
  border: 1px solid var(--border);
}

.filter-chip {
  min-height: 2.35rem;
  padding: 0.55rem 0.85rem;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  font-size: 0.82rem;
  font-weight: 750;
}

.filter-chip span {
  color: currentColor;
  font-size: 0.72rem;
  opacity: 0.78;
}

.filter-chip.active {
  color: #fff;
  background: var(--brand);
  border-color: var(--brand);
  box-shadow: 0 0.85rem 1.5rem rgba(93, 54, 219, 0.24);
}

.people-filter-row {
  flex-wrap: nowrap;
  gap: 0.55rem;
  margin: 0.85rem calc(var(--space-4) * -1) 0;
  padding: 0 var(--space-4);
  overflow-x: auto;
  scrollbar-width: none;
}

.people-filter-row::-webkit-scrollbar {
  display: none;
}

.people-filter-row .filter-chip {
  flex: 0 0 auto;
  min-height: 2.05rem;
  padding: 0.5rem 0.76rem;
  border-color: rgba(24, 22, 37, 0.06);
  font-size: 0.76rem;
  box-shadow: 0 0.45rem 1rem rgba(38, 30, 73, 0.06);
}

.filter-chip-icon {
  width: 2.05rem;
  padding: 0;
  color: var(--brand);
}

.filter-chip-icon .inline-icon {
  width: 1.05rem;
  height: 1.05rem;
}

.search-pill {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  min-height: 3rem;
  padding: 0 var(--space-4);
  border-radius: 999px;
}

.people-page .search-pill {
  min-height: 2.55rem;
  padding: 0 0.95rem;
  border-color: rgba(24, 22, 37, 0.05);
  border-radius: 1.35rem;
  box-shadow: 0 0.7rem 1.6rem rgba(38, 30, 73, 0.055);
}

.people-page .search-pill input {
  font-size: 0.84rem;
}

.search-pill input {
  min-height: auto;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.search-pill-symbol {
  color: var(--muted);
}

.sort-control {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  width: auto;
  margin-top: 0;
  color: var(--text);
  font-size: 0.86rem;
  font-weight: 650;
}

.sort-control select {
  position: absolute;
  inset: 0;
  min-height: 0;
  padding: 0;
  border: 0;
  opacity: 0;
  cursor: pointer;
}

.sort-control .inline-icon {
  width: 0.95rem;
  height: 0.95rem;
}

.people-list-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  margin-top: 0.2rem;
}

.people-list-toolbar .icon-button-plain {
  width: 2rem;
  height: 2rem;
  color: var(--brand);
}

.roster-grid {
  display: grid;
  gap: 0.85rem;
}

.person-row {
  position: relative;
  display: block;
  padding: 0.9rem 0.68rem 0.68rem;
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  background: var(--surface);
  box-shadow: 0 0.55rem 1.35rem rgba(38, 30, 73, 0.055);
}

.person-row-main {
  gap: 0.78rem;
  align-items: flex-start;
}

.person-avatar-link {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 0.72rem;
}

.person-avatar {
  width: 5.15rem;
  height: 5.15rem;
  flex: 0 0 auto;
  border-radius: 0.72rem;
  object-fit: cover;
  background: #edeaf4;
}

.person-avatar-sm {
  width: 3.35rem;
  height: 3.35rem;
  border-radius: 999px;
}

.person-avatar-lg {
  width: 8.75rem;
  height: 8.75rem;
  border-radius: 1.35rem;
}

.avatar-placeholder {
  color: var(--brand);
  font-weight: 900;
}

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

.person-row-body.stack-sm > * + * {
  margin-top: 0.3rem;
}

.person-name-line {
  flex: 1 1 auto;
  display: flex;
  align-items: baseline;
  gap: 0.42rem;
  min-width: 0;
}

.person-name {
  margin: 0;
  overflow: hidden;
  min-width: 0;
  font-size: 1.03rem;
  letter-spacing: -0.04em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.person-card-name {
  margin: 0;
  font-size: 0.82rem;
  text-align: center;
}

.provider-row,
.horizontal-rail {
  display: flex;
  align-items: center;
}

.provider-row {
  gap: 0.36rem;
  overflow-x: auto;
  scrollbar-width: none;
}

.provider-row a.app-icon {
  transition: transform 120ms ease, box-shadow 120ms ease;
}

.provider-row a.app-icon:hover,
.provider-row a.app-icon:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 0.45rem 0.9rem rgba(38, 30, 73, 0.08);
}

.person-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  width: fit-content;
  min-height: 1.4rem;
  padding: 0.22rem 0.5rem;
  border-radius: 0.5rem;
  color: var(--brand);
  background: var(--brand-soft);
  font-size: 0.68rem;
  font-weight: 720;
}

.person-status-pill .inline-icon {
  width: 0.72rem;
  height: 0.72rem;
}

.person-status-pill.status-Met,
.person-status-pill.status-HookedUp,
.person-status-pill.status-Ongoing {
  color: var(--green);
  background: var(--mint);
}

.person-status-pill.status-Planning,
.person-status-pill.status-Chatting {
  color: var(--brand);
  background: var(--brand-soft);
}

.person-status-pill.status-Ghosted,
.person-status-pill.status-Paused,
.person-status-pill.status-DoNotContact {
  color: var(--amber);
  background: var(--amber-soft);
}

.person-row .meta-row {
  color: var(--muted);
  font-size: 0.72rem;
}

.person-location-meta {
  display: inline-flex;
  align-items: center;
  gap: 0.18rem;
  color: #8a8398;
}

.person-location-meta .inline-icon {
  width: 0.78rem;
  height: 0.78rem;
  opacity: 0.68;
}

.person-row .person-row-header .badge {
  margin-left: auto;
}

.person-row .chevron {
  flex: 0 0 auto;
  color: #b4aebe;
  font-size: 1.45rem;
  line-height: 1;
}

.person-row .app-icon-sm {
  width: 1.32rem;
  height: 1.32rem;
  border-radius: 0.4rem;
}

.provider-more {
  min-height: 1.35rem;
  padding: 0.28rem 0.5rem;
  background: #f7f5fa;
}

.status-dot {
  width: 0.48rem;
  height: 0.48rem;
  border-radius: 999px;
  background: var(--green);
}

.status-dot.warn {
  background: var(--amber);
}

.status-dot.cool {
  background: var(--blue);
}

.note-strip {
  margin-top: 0.3rem;
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  padding: 0.48rem 0.6rem;
  border-radius: 0.65rem;
  color: var(--amber);
  background: var(--amber-soft);
  font-size: 0.72rem;
  line-height: 1.25;
}

.note-strip .inline-icon {
  width: 0.8rem;
  height: 0.8rem;
  margin-top: 0.05rem;
}

.note-strip.blue {
  color: var(--blue);
  background: var(--blue-soft);
}

.note-strip.green {
  color: var(--green);
  background: var(--mint);
}

.mini-person-card {
  flex: 0 0 4.35rem;
  text-align: center;
}

.mini-person-card .person-avatar {
  width: 3.7rem;
  height: 3.7rem;
  margin: 0 auto var(--space-1);
  border-radius: 999px;
}

.plans-card,
.date-plan-card {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.swipe-action-row {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  touch-action: pan-y;
}

.swipe-action-row .date-plan-card {
  position: relative;
  z-index: 1;
}

.swipe-action-card {
  will-change: transform;
}

.swipe-action-row.is-open .swipe-action-card {
  transform: translateX(-5.5rem);
}

.swipe-action-form {
  position: absolute;
  inset: 0 0 0 auto;
  display: flex;
  width: 6rem;
  z-index: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 120ms ease;
}

.swipe-action-row.is-open .swipe-action-form {
  opacity: 1;
  pointer-events: auto;
}

.swipe-delete-button {
  width: 100%;
  border: 0;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  color: #fff;
  background: var(--danger);
  font-weight: 800;
}

.date-plan-card {
  color: inherit;
  transition: transform 120ms ease, border-color 120ms ease, box-shadow 120ms ease;
}

.date-plan-card:hover {
  transform: translateY(-1px);
  border-color: rgba(109, 66, 232, 0.22);
  box-shadow: 0 14px 28px rgba(49, 35, 85, 0.09);
}

.plans-card .row-content,
.date-plan-card .row-content {
  min-width: 0;
}

.today-plans-list {
  display: grid;
  gap: var(--space-2);
}

.today-plan-card {
  width: 100%;
  min-width: 0;
}

.today-plan-card .row-content strong,
.today-plan-card .row-subtitle {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.attention-page {
  padding-bottom: 1rem;
}

.attention-hero {
  align-items: flex-start;
}

.attention-hero .brand-title {
  margin-bottom: var(--space-3);
}

.attention-hero-actions {
  justify-content: flex-end;
}

.attention-count {
  padding: 0.55rem 0.78rem;
  border-radius: 0.8rem;
  color: var(--brand);
  background: var(--brand-soft);
  font-size: 0.78rem;
  font-weight: 800;
  white-space: nowrap;
}

.attention-section {
  display: grid;
  gap: var(--space-2);
}

.attention-section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-3);
}

.attention-section-heading h3,
.attention-later-summary strong {
  margin: 0;
  font-size: 1.05rem;
  letter-spacing: -0.035em;
}

.attention-section-heading p,
.attention-later-summary span > span:last-child {
  display: block;
  margin: 0.15rem 0 0;
  color: var(--muted);
  font-size: 0.8rem;
}

.attention-section-count {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 850;
}

.attention-list {
  display: grid;
  gap: var(--space-2);
}

.attention-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--space-3);
  align-items: center;
  padding: var(--space-3);
  border: 1px solid rgba(24, 22, 37, 0.06);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 8px 24px rgba(38, 30, 73, 0.055);
}

.attention-card-main {
  display: grid;
  grid-template-columns: 3.85rem minmax(0, 1fr) auto auto;
  gap: var(--space-3);
  align-items: center;
  min-width: 0;
}

.attention-avatar-wrap {
  position: relative;
  display: inline-grid;
  place-items: center;
}

.attention-avatar {
  width: 3.55rem;
  height: 3.55rem;
  border-radius: 0.85rem;
  object-fit: cover;
}

.attention-icon {
  border-radius: 1rem;
}

.attention-dot {
  position: absolute;
  right: -0.05rem;
  bottom: -0.05rem;
  width: 0.68rem;
  height: 0.68rem;
  border: 2px solid var(--surface);
  border-radius: 999px;
  background: var(--brand);
}

.attention-card-title,
.attention-card-label,
.attention-card-detail,
.attention-card-meta {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.attention-card-title {
  font-weight: 850;
  letter-spacing: -0.02em;
}

.attention-card-label {
  margin-top: 0.16rem;
  font-size: 0.82rem;
  font-weight: 750;
}

.attention-card-detail,
.attention-card-meta {
  margin-top: 0.16rem;
  color: var(--muted);
  font-size: 0.74rem;
}

.attention-card-meta {
  display: flex;
  gap: var(--space-2);
}

.attention-due {
  align-self: start;
  color: var(--muted-strong);
  font-size: 0.74rem;
  font-weight: 750;
  white-space: nowrap;
}

.attention-card-actions {
  display: grid;
  gap: var(--space-2);
  min-width: 5.9rem;
}

.attention-card-actions form {
  margin: 0;
}

.attention-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  width: 100%;
  min-height: 2.15rem;
  padding: 0.48rem 0.68rem;
  border: 1px solid transparent;
  border-radius: 0.65rem;
  font-size: 0.76rem;
  font-weight: 800;
  transition: transform 120ms ease, box-shadow 120ms ease;
}

.attention-action:hover {
  transform: translateY(-1px);
}

.attention-action-primary {
  color: #fff;
  box-shadow: 0 10px 20px rgba(38, 30, 73, 0.12);
}

.attention-action-secondary {
  color: var(--muted-strong);
  background: #fff;
  border-color: var(--border);
}

.attention-action .inline-icon {
  width: 0.95rem;
  height: 0.95rem;
}

.attention-later-section {
  border: 0;
}

.attention-later-summary {
  cursor: pointer;
  list-style: none;
}

.attention-later-summary::-webkit-details-marker {
  display: none;
}

.tone-purple {
  color: var(--brand);
}

.tone-pink {
  color: var(--pink);
}

.tone-amber {
  color: var(--amber);
}

.tone-green {
  color: var(--green);
}

.tone-blue {
  color: var(--blue);
}

.attention-dot.tone-purple,
.tone-bg-purple {
  background: linear-gradient(145deg, #7b55f2, #4f2ed1);
}

.attention-dot.tone-pink,
.tone-bg-pink {
  background: linear-gradient(145deg, #f16ca0, #c64275);
}

.attention-dot.tone-amber,
.tone-bg-amber {
  background: linear-gradient(145deg, #ffac2f, #df7f00);
}

.attention-dot.tone-green,
.tone-bg-green {
  background: linear-gradient(145deg, #22c78a, #139b72);
}

.attention-dot.tone-blue,
.tone-bg-blue {
  background: linear-gradient(145deg, #5fb4ff, #2f80ed);
}

.upload-dropzone {
  display: grid;
  place-items: center;
  min-height: 25rem;
  padding: var(--space-6);
  border: 1.5px dashed rgba(109, 66, 232, 0.32);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, #faf7ff, #fff);
  text-align: center;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.upload-dropzone.is-dragover {
  border-color: var(--purple);
  box-shadow: 0 0 0 4px rgba(109, 66, 232, 0.12), var(--shadow-md);
  transform: translateY(-1px);
}

.upload-dropzone-inner {
  width: 100%;
  display: grid;
  justify-items: center;
  gap: var(--space-4);
}

.upload-input {
  max-width: 16rem;
}

.upload-status {
  min-height: 1.1rem;
  color: var(--purple);
  font-size: 0.82rem;
  font-weight: 750;
}

.app-logo-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-2);
}

.form-card {
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  padding: var(--space-4);
}

.field {
  display: grid;
  gap: var(--space-2);
}

.field span,
.field-label {
  color: var(--muted-strong);
  font-size: 0.78rem;
  font-weight: 750;
}

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

.section-caption {
  margin: 0.2rem 0 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.35;
}

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

.detail-grid,
.stats-grid,
.dashboard-grid {
  display: grid;
  gap: var(--space-3);
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
}

.detail-pair,
.detail-panel,
.stat-card {
  padding: var(--space-3);
  border-radius: var(--radius-md);
  background: #faf9ff;
  border: 1px solid var(--border);
}

.detail-label {
  display: block;
  margin-bottom: var(--space-1);
  color: var(--muted);
  font-size: 0.76rem;
}

.checkbox-row {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--muted-strong);
}

.review-fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.review-diff-row {
  display: grid;
  gap: var(--space-2);
  padding: var(--space-3) 0;
  border-top: 1px solid var(--border);
}

.review-diff-row:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.review-diff-row h3 {
  margin: 0;
  font-size: 0.92rem;
  letter-spacing: -0.02em;
}

.review-choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-2);
}

.review-value-choice {
  position: relative;
  display: grid;
  align-content: start;
  gap: var(--space-1);
  min-width: 0;
  min-height: 4.4rem;
  padding: var(--space-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: #faf9ff;
  cursor: pointer;
}

.review-value-choice:has(input[type="radio"]:checked) {
  border-color: var(--brand);
  background: var(--brand-soft);
  box-shadow: 0 0 0 0.18rem rgba(109, 66, 232, 0.1);
}

.review-value-choice > input[type="radio"] {
  position: absolute;
  inset: var(--space-2) var(--space-2) auto auto;
  width: 1rem;
  height: 1rem;
  accent-color: var(--brand);
}

.review-value-label {
  display: block;
  color: var(--brand);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.64rem;
  font-weight: 850;
}

.review-value-text {
  padding-right: var(--space-4);
  color: var(--text);
  font-size: 0.9rem;
  line-height: 1.35;
}

.review-value-editor input:not([type="radio"]),
.review-value-editor textarea,
.review-value-editor select {
  min-height: 2.55rem;
  padding: 0.65rem 0.78rem;
  background: #fff;
}

.review-value-editor textarea {
  resize: vertical;
}

.review-value-choice-suggested .review-value-label {
  width: fit-content;
  cursor: pointer;
}

.review-existing-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-1);
}

.review-existing-label,
.review-existing-pill,
.review-include-toggle span {
  display: inline-flex;
  align-items: center;
  min-height: 1.55rem;
  padding: 0.24rem 0.52rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.04em;
}

.review-existing-label {
  color: var(--muted);
  text-transform: uppercase;
  background: #f1eff5;
}

.review-existing-pill,
.review-existing-channel {
  color: var(--muted-strong);
  background: #f7f5fb;
}

.review-existing-stack {
  display: grid;
  gap: var(--space-2);
}

.review-existing-channel {
  display: grid;
  grid-template-columns: auto minmax(0, 0.6fr) minmax(0, 1fr);
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2);
  border-radius: var(--radius-md);
}

.review-existing-channel strong,
.review-existing-channel span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.review-include-toggle {
  display: inline-flex;
  cursor: pointer;
}

.review-include-toggle input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.review-include-toggle span {
  color: var(--muted);
  background: #f1eff5;
}

.review-include-toggle:has(input[type="checkbox"]:checked) span {
  color: var(--brand);
  background: var(--brand-soft);
}

.share-destination-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-2);
}

.share-destination-card {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  min-width: 0;
  padding: var(--space-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: #faf9ff;
  cursor: pointer;
}

.share-destination-card:has(input:checked) {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.share-destination-card input {
  margin-top: 0.35rem;
}

.screenshot-picker {
  display: flex;
  gap: var(--space-2);
  overflow-x: auto;
  padding-bottom: var(--space-1);
}

.screenshot-choice {
  position: relative;
  flex: 0 0 auto;
  display: grid;
  justify-items: center;
  gap: var(--space-1);
  cursor: pointer;
}

.screenshot-choice input {
  position: absolute;
  inset: 0.4rem auto auto 0.4rem;
}

.screenshot-thumb {
  width: 5rem;
  height: 5rem;
  border-radius: 0.8rem;
  object-fit: cover;
}

.screenshot-choice-current .screenshot-thumb {
  border: 1px solid var(--border);
}

.review-photo {
  width: 9rem;
  height: 9rem;
  border-radius: 1.4rem;
  object-fit: cover;
}

.review-source-list {
  display: grid;
  gap: var(--space-2);
}

.review-source-row,
.review-channel-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--space-2);
}

.review-source-row:has(.app-icon),
.review-source-row:has(.review-include-toggle),
.review-channel-header:has(.app-icon),
.review-channel-header:has(.review-include-toggle) {
  grid-template-columns: auto minmax(0, 1fr) auto;
}

.review-source-row {
  padding: var(--space-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: #faf9ff;
}

.review-source-row input,
.review-channel-header input {
  min-height: 2.8rem;
  border-color: transparent;
  background: transparent;
  font-weight: 750;
}

.review-source-row input:focus,
.review-channel-header input:focus {
  border-color: rgba(109, 66, 232, 0.45);
  background: var(--surface);
}

.review-channel-card {
  display: grid;
  gap: var(--space-3);
  padding: var(--space-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: #faf9ff;
}

.review-channel-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-2);
}

.review-remove-button {
  color: var(--muted);
}

.review-remove-button:hover,
.review-remove-button:focus-visible {
  color: var(--danger);
  background: var(--danger-soft);
}

.profile-hero {
  align-items: flex-start;
  justify-content: flex-start;
  gap: var(--space-5);
}

.profile-photo-stack {
  display: grid;
  justify-items: center;
  gap: var(--space-3);
  flex: 0 0 auto;
}

.profile-photo-editor-current {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-4);
}

.profile-hero-content {
  flex: 1;
  min-width: 0;
  padding-top: var(--space-2);
}

.profile-title {
  margin: 0;
  font-size: clamp(1.95rem, 7.2vw, 2.3rem);
  line-height: 1.04;
  letter-spacing: -0.06em;
}

.name-spark::after {
  content: "✦";
  margin-left: 0.16em;
  font-size: 0.62em;
  vertical-align: 0.12em;
}

.last-seen-card {
  display: grid;
  justify-items: center;
  min-width: 8.75rem;
  padding: 0.72rem 0.8rem;
  border-radius: 0.8rem;
  color: var(--green);
  background: rgba(32, 184, 117, 0.08);
  font-size: 0.74rem;
  line-height: 1.2;
}

.last-seen-card strong {
  font-size: 0.78rem;
  font-weight: 850;
}

.last-seen-card span {
  margin-top: 0.25rem;
  color: var(--muted-strong);
}

.phase-pill {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-height: 2.45rem;
  padding: 0.58rem 0.78rem;
  border: 1px solid rgba(109, 66, 232, 0.18);
  border-radius: 0.7rem;
  color: var(--text);
  background: var(--brand-soft);
  font-size: 0.82rem;
  font-weight: 760;
  box-shadow: 0 8px 18px rgba(109, 66, 232, 0.08);
}

.phase-pill .inline-icon {
  width: 1rem;
  height: 1rem;
  color: var(--brand);
}

.phase-pill-chevron {
  opacity: 0.62;
  pointer-events: none;
}

.phase-select {
  width: auto;
  min-width: 0;
  max-width: 9.5rem;
  min-height: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  appearance: none;
  color: inherit;
  background: transparent;
  box-shadow: none;
  cursor: pointer;
  font-weight: inherit;
}

.phase-select:focus {
  border-color: transparent;
  box-shadow: none;
}

.phase-select option {
  color: var(--text);
  background: var(--surface);
}

.profile-actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-3);
  margin-top: var(--space-5);
}

.profile-action {
  display: grid;
  justify-items: center;
  align-content: start;
  gap: var(--space-2);
  color: var(--muted-strong);
  font-size: 0.74rem;
  line-height: 1.15;
  text-align: center;
  font-weight: 650;
}

.profile-action .app-icon {
  width: 3.2rem;
  height: 3.2rem;
  border-radius: 0.85rem;
  box-shadow: none;
}

.profile-action-empty {
  color: var(--muted);
}

.profile-action-empty .app-icon {
  opacity: 0.72;
}

.profile-card {
  border-color: rgba(24, 22, 37, 0.07);
  border-radius: 1rem;
  box-shadow: 0 8px 24px rgba(38, 30, 73, 0.045);
}

.profile-card > p:first-of-type,
.profile-note {
  margin: 0;
  font-size: 0.91rem;
  line-height: 1.48;
}

.profile-card .section-heading {
  margin-bottom: var(--space-4);
}

.profile-card .profile-subheading {
  margin-top: var(--space-4);
  margin-bottom: var(--space-3);
}

.profile-card .section-heading .meta-row {
  gap: var(--space-2);
  color: var(--brand);
}

.profile-card .section-heading .app-icon-sm {
  color: var(--brand);
  background: var(--brand-soft);
}

.profile-card .section-title {
  color: var(--brand);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.profile-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  min-height: 2rem;
  padding: 0.45rem 0.72rem;
  border-radius: 0.55rem;
  border: 1px solid transparent;
  font-size: 0.74rem;
  font-weight: 750;
}

.profile-tag[style*="--tag-hue"] {
  color: hsl(var(--tag-hue) var(--tag-saturation) 34%);
  background: hsl(var(--tag-hue) var(--tag-saturation) 94%);
}

.profile-tag-section {
  display: grid;
  gap: var(--space-2);
}

.profile-tag-row {
  gap: var(--space-2);
}

.profile-tag-form {
  margin: 0;
}

.profile-tag-form .profile-tag {
  cursor: pointer;
}

.profile-tag-form.is-pending {
  opacity: 0.68;
  pointer-events: none;
}

.profile-tag-remove {
  margin-left: var(--space-1);
  opacity: 0.58;
}

.profile-tag-emoji {
  line-height: 1;
}

.profile-tag.profile-tag-suggestion {
  border-color: currentColor;
  border-style: dotted;
  background: transparent;
  cursor: pointer;
  opacity: 0.54;
}

.profile-tag.profile-tag-suggestion:hover,
.profile-tag.profile-tag-suggestion:focus-visible {
  border-style: solid;
  background: currentColor;
  opacity: 1;
  transform: translateY(-1px);
}

.profile-tag.profile-tag-suggestion:hover span,
.profile-tag.profile-tag-suggestion:focus-visible span {
  color: #fff;
}

.profile-tag-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.15rem;
  height: 1.15rem;
  margin-left: var(--space-1);
  padding: 0 0.28rem;
  border-radius: 999px;
  color: inherit;
  background: rgba(255, 255, 255, 0.58);
  font-size: 0.62rem;
  line-height: 1;
}

.profile-tag-add-form {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  min-height: 2rem;
  margin: 0;
  padding: 0.18rem;
  border: 1px dashed rgba(109, 66, 232, 0.3);
  border-radius: 0.68rem;
  background: #fff;
}

.profile-tag-add-line {
  justify-self: start;
}

.profile-tag-add-form input {
  width: 5.6rem;
  min-height: 1.65rem;
  padding: 0 0.38rem;
  border: 0;
  border-radius: 0.45rem;
  background: transparent;
  box-shadow: none;
  font-size: 0.74rem;
}

.profile-tag-add-form input:focus {
  box-shadow: none;
}

.profile-tag-add-form .profile-tag-add {
  min-height: 1.65rem;
  padding: 0.32rem 0.55rem;
  border: 0;
  cursor: pointer;
}

.tag-tone-1 {
  color: #bd4f16;
  background: #fff0e8;
}

.tag-tone-2 {
  color: var(--brand);
  background: var(--brand-soft);
}

.tag-tone-3 {
  color: var(--green);
  background: var(--mint);
}

.tag-tone-4 {
  color: var(--blue);
  background: var(--blue-soft);
}

.tag-flag-row {
  display: inline-flex;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 0.34rem;
  min-width: 0;
}

.tag-flag {
  position: relative;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 1.62rem;
  height: 2.22rem;
  padding-bottom: 0.18rem;
  border-radius: 0 0 0.42rem 0.42rem;
  background: linear-gradient(
    180deg,
    hsl(var(--tag-hue, 260) var(--tag-saturation, 54%) 97%),
    hsl(var(--tag-hue, 260) var(--tag-saturation, 54%) 90%)
  );
  color: hsl(var(--tag-hue, 260) var(--tag-saturation, 54%) 34%);
  box-shadow: 0 0.22rem 0.6rem rgba(38, 30, 73, 0.08);
  font-size: 0.82rem;
  line-height: 1;
}

.meetup-person-card > .tag-flag-row {
  position: absolute;
  left: auto;
  right: 3.15rem;
  z-index: 1;
}

.person-card-tags {
  position: absolute;
  top: 0;
  right: 3.15rem;
  z-index: 1;
  max-width: calc(100% - 3.8rem);
  padding-bottom: 0.3rem;
}

.person-card-tags .tag-flag[hidden] {
  display: none;
}

.meetup-person-card > .tag-flag-row {
  top: 0;
}

.meetup-person-card > .meetup-person-tags {
  right: 0.82rem;
}

.meetup-person-selected-card > .meetup-person-tags {
  right: 3.2rem;
}

.profile-tag-add {
  color: var(--brand);
  background: #fff;
  border-color: rgba(109, 66, 232, 0.42);
  border-style: dashed;
}

.profile-channel-list,
.profile-timeline {
  display: grid;
}

.profile-channel-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: var(--space-3);
  min-height: 3.35rem;
  padding: 0.65rem 0.1rem;
  color: inherit;
}

.profile-channel-row + .profile-channel-row {
  border-top: 1px solid var(--border);
}

.profile-channel-row-empty {
  color: var(--muted-strong);
}

.profile-channel-name strong {
  font-size: 0.86rem;
  font-weight: 650;
}

.profile-channel-value {
  overflow: hidden;
  color: var(--muted-strong);
  font-size: 0.82rem;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-timeline {
  gap: 0;
}

.profile-timeline-row {
  position: relative;
  display: grid;
  grid-template-columns: 3.35rem 1rem minmax(0, 1fr);
  gap: var(--space-3);
  padding: 0 0 var(--space-3);
}

.profile-timeline-row + .profile-timeline-row {
  padding-top: var(--space-1);
}

.profile-timeline-row:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 0.78rem;
  bottom: -0.15rem;
  left: calc(3.35rem + 0.48rem);
  width: 1px;
  background: var(--border-strong);
}

.profile-timeline-date {
  color: var(--muted);
  font-size: 0.74rem;
  line-height: 1.4;
}

.profile-timeline-marker {
  position: relative;
  z-index: 1;
  width: 0.5rem;
  height: 0.5rem;
  margin-top: 0.34rem;
  border-radius: 999px;
  background: #aaa5b8;
}

.profile-timeline-content {
  display: grid;
  min-width: 0;
}

.profile-timeline-content strong {
  font-size: 0.9rem;
}

.profile-timeline-content .row-subtitle,
.profile-plan-card .row-subtitle,
.profile-next-card .row-subtitle {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
}

.profile-plan-card {
  background: #fbfbfd;
  box-shadow: none;
}

.profile-plan-card-empty {
  background: linear-gradient(135deg, #fbfbfd, #f8fbf9);
}

.profile-next-card {
  border-color: rgba(217, 145, 24, 0.12);
  background: var(--amber-soft);
  box-shadow: none;
}

.privacy-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  color: var(--muted);
  font-size: 0.76rem;
  text-align: center;
}

.privacy-note .inline-icon {
  width: 0.9rem;
  height: 0.9rem;
  color: var(--muted-strong);
}

.success-burst {
  text-align: center;
}

.success-check {
  display: inline-grid;
  place-items: center;
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 999px;
  color: #fff;
  background: #18b96d;
  font-size: 2.2rem;
  font-weight: 900;
  box-shadow: 0 16px 28px rgba(24, 185, 109, 0.22);
}

.success-check .inline-icon {
  width: 2.4rem;
  height: 2.4rem;
}

.disclosure-section {
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.phone-page > .disclosure-section {
  border-color: rgba(24, 22, 37, 0.06);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: none;
}

.disclosure-trigger {
  display: flex;
  align-items: center;
  padding: var(--space-4);
  cursor: pointer;
  color: var(--brand);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.04em;
  list-style: none;
  text-transform: uppercase;
}

.phone-page > .disclosure-section .disclosure-trigger {
  color: var(--muted-strong);
  font-size: 0.74rem;
  letter-spacing: 0.05em;
}

.disclosure-trigger::-webkit-details-marker {
  display: none;
}

.disclosure-trigger::before {
  content: "";
  width: 1rem;
  height: 1rem;
  margin-right: var(--space-2);
  background: currentColor;
  -webkit-mask: url("/lib/icons/24/outline/chevron-right.svg") center / contain no-repeat;
  mask: url("/lib/icons/24/outline/chevron-right.svg") center / contain no-repeat;
  transition: transform 150ms ease;
}

.disclosure-section[open] > .disclosure-trigger::before {
  transform: rotate(90deg);
}

.disclosure-body {
  padding: 0 var(--space-4) var(--space-4);
}

.inline-editor-form {
  margin-top: var(--space-4);
  padding-top: var(--space-4);
  border-top: 1px solid var(--border);
}

.identity-entry,
.repeatable-row,
.identity-row {
  display: grid;
  gap: var(--space-2);
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.identity-entry {
  padding: var(--space-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #faf9ff;
}

.identity-management-list {
  display: grid;
  gap: var(--space-3);
}

.identity-management-card {
  display: grid;
  gap: var(--space-3);
  padding: var(--space-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: #faf9ff;
}

.identity-entry-fields {
  display: grid;
  gap: var(--space-2);
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.checkbox-field {
  align-items: center;
  grid-template-columns: auto minmax(0, 1fr);
}

.checkbox-field input[type="checkbox"] {
  width: auto;
}

.line-preview,
.context-facts {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.line-chip,
.context-chip {
  padding: 0.3rem 0.65rem;
  color: var(--brand);
  background: var(--brand-soft);
  font-size: 0.76rem;
  font-weight: 700;
}

.status-panel {
  display: grid;
  gap: var(--space-2);
  padding: var(--space-3);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: #faf9ff;
}

.status-panel-warning {
  border-color: rgba(217, 145, 24, 0.22);
  background: var(--amber-soft);
}

.status-panel-ready {
  border-color: rgba(32, 184, 117, 0.2);
  background: var(--mint);
}

.calendar-tabs {
  overflow: hidden;
  border-radius: 0.65rem;
}

.calendar-tab {
  flex: 1;
  padding: 0.7rem;
  color: var(--muted-strong);
  text-align: center;
  font-size: 0.85rem;
  font-weight: 800;
}

.calendar-tab.active {
  color: var(--brand);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.week-strip {
  justify-content: space-between;
  gap: var(--space-2);
  overflow-x: auto;
  padding: var(--space-3) 0;
}

.week-day {
  min-width: 2.65rem;
  display: grid;
  justify-items: center;
  gap: var(--space-1);
  color: var(--muted);
  font-size: 0.7rem;
  text-transform: uppercase;
}

.week-day strong {
  display: grid;
  place-items: center;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 999px;
  color: var(--text);
  font-size: 1rem;
  text-transform: none;
}

.week-day.active strong {
  color: #fff;
  background: var(--brand);
}

.calendar-date-badge {
  width: 3rem;
  min-height: 3rem;
  border-radius: 0.85rem;
  color: var(--text);
  background: #f7f3ff;
  font-weight: 850;
}

.date-detail-hero {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: var(--space-3);
  align-items: start;
}

.date-detail-icon {
  width: 3.5rem;
  height: 3.5rem;
}

.date-detail-meta {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--muted-strong);
  font-size: 0.88rem;
}

.success-banner {
  padding: var(--space-3);
  border: 1px solid rgba(40, 177, 111, 0.22);
  border-radius: var(--radius-md);
  color: #117348;
  background: var(--mint);
  font-weight: 700;
}

.meetup-intent-card {
  box-shadow: none;
}

.meetup-intent-card .button {
  margin-left: auto;
  white-space: nowrap;
}

.meetup-person-picker {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.form-label {
  display: block;
  margin-bottom: var(--space-2);
  color: var(--muted-strong);
  font-size: 0.78rem;
  font-weight: 750;
}

.meetup-person-dropdown {
  position: relative;
}

.meetup-person-select {
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
}

.meetup-person-options {
  position: absolute;
  inset: calc(100% + 0.42rem) 0 auto;
  z-index: 25;
  display: grid;
  gap: var(--space-1);
  max-height: 18rem;
  overflow-y: auto;
  padding: var(--space-2);
  border: 1px solid rgba(109, 66, 232, 0.16);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(18px);
}

.meetup-person-options[hidden] {
  display: none;
}

.meetup-person-option {
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
}

.meetup-person-empty-shell {
  display: flex;
}

.meetup-empty-picker {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  min-height: 3.4rem;
  padding: 0.72rem 0.85rem;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-md);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.62);
  font-size: 0.78rem;
}

.meetup-empty-picker a {
  color: var(--brand);
  font-weight: 800;
  white-space: nowrap;
}

.meetup-toggle-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.meetup-person-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--space-3);
  min-height: 4.25rem;
  padding: 0.82rem 0.7rem 0.62rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: border-color 120ms ease, box-shadow 120ms ease, transform 120ms ease, background-color 120ms ease;
}

.meetup-person-selected-card {
  min-height: 4.6rem;
  border-color: rgba(109, 66, 232, 0.26);
  background: linear-gradient(145deg, #fff, #fbf8ff);
}

.meetup-person-card .person-avatar-sm {
  width: 3rem;
  height: 3rem;
}

.meetup-person-copy {
  display: grid;
  min-width: 0;
}

.meetup-person-copy strong,
.meetup-person-copy span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.meetup-person-copy strong {
  font-size: 0.92rem;
  letter-spacing: -0.02em;
}

.meetup-person-copy span {
  margin-top: 0.12rem;
  color: var(--muted);
  font-size: 0.74rem;
}

.meetup-person-chevron {
  width: 1rem;
  height: 1rem;
  margin-left: auto;
  color: var(--brand);
  transition: transform 140ms ease;
}

.meetup-person-select[aria-expanded="true"] .meetup-person-chevron {
  transform: rotate(180deg);
}

.meetup-person-option[aria-selected="true"] .meetup-person-card {
  border-color: rgba(109, 66, 232, 0.45);
  background: linear-gradient(145deg, #fff, #f6f1ff);
  box-shadow: 0 0 0 0.18rem rgba(109, 66, 232, 0.1), var(--shadow-sm);
}

.meetup-person-select:focus-visible .meetup-person-card,
.meetup-person-option:focus-visible .meetup-person-card {
  border-color: rgba(109, 66, 232, 0.78);
  box-shadow: 0 0 0 0.22rem rgba(109, 66, 232, 0.12);
}

.meetup-toggle-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.meetup-time-presets {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-2);
}

.meetup-time-preset {
  display: grid;
  gap: 0.05rem;
  min-height: 2.8rem;
  width: 100%;
  padding: 0.55rem 0.42rem;
  border: 1px solid rgba(109, 66, 232, 0.18);
  border-radius: 0.82rem;
  color: var(--brand);
  background: var(--brand-soft);
  text-align: center;
  transition: border-color 120ms ease, box-shadow 120ms ease, transform 120ms ease, background-color 120ms ease;
}

.meetup-time-preset strong {
  font-size: 0.76rem;
  line-height: 1.1;
}

.meetup-time-preset span {
  color: var(--muted-strong);
  font-size: 0.68rem;
  font-weight: 700;
}

.meetup-time-preset:hover,
.meetup-time-preset:focus-visible,
.meetup-time-preset.active {
  border-color: rgba(109, 66, 232, 0.42);
  background: #fff;
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}

.meetup-toggle {
  position: relative;
}

.meetup-toggle-pill {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0.45rem 0.72rem;
  border: 1px dashed currentColor;
  border-radius: 0.55rem;
  font-size: 0.74rem;
  font-weight: 750;
  opacity: 0.7;
  cursor: pointer;
  transition: border-color 120ms ease, box-shadow 120ms ease, opacity 120ms ease, transform 120ms ease;
}

.meetup-toggle-input:checked + .meetup-toggle-pill {
  border-style: solid;
  opacity: 1;
  box-shadow: var(--shadow-sm);
}

.meetup-toggle-input:focus-visible + .meetup-toggle-pill {
  box-shadow: 0 0 0 0.22rem rgba(109, 66, 232, 0.12);
}

@media (max-width: 25rem) {
  .meetup-time-presets {
    grid-template-columns: 1fr;
  }
}

.bottom-tabs {
  display: none;
}

.bottom-tab {
  flex: 1;
  display: grid;
  justify-items: center;
  gap: 0.18rem;
  font-size: 0.68rem;
  font-weight: 700;
}

.bottom-tab-icon {
  display: grid;
  place-items: center;
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 850;
}

.bottom-tab-icon .inline-icon {
  width: 1.15rem;
  height: 1.15rem;
}

.bottom-tab-add .bottom-tab-icon {
  width: 3.1rem;
  height: 3.1rem;
  margin-top: -1.2rem;
  color: #fff;
  background: linear-gradient(145deg, #7b55f2, #4f2ed1);
  box-shadow: 0 10px 24px rgba(93, 54, 219, 0.28);
  font-size: 1.65rem;
}

.bottom-tab-add .bottom-tab-icon .inline-icon {
  width: 1.6rem;
  height: 1.6rem;
}

.bottom-tab.active {
  color: var(--brand);
}

.empty-state,
.empty-state-action {
  display: grid;
  gap: var(--space-3);
  justify-items: center;
  padding: var(--space-6);
  color: var(--muted);
  text-align: center;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.7);
}

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

.validation-summary,
.field-validation {
  color: var(--danger);
  font-size: 0.9rem;
}

.auth-body {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding:
    calc(var(--space-8) + env(safe-area-inset-top))
    calc(var(--space-8) + env(safe-area-inset-right))
    calc(var(--space-8) + env(safe-area-inset-bottom))
    calc(var(--space-8) + env(safe-area-inset-left));
}

.auth-shell {
  width: min(100%, 32rem);
}

.auth-card {
  padding: var(--space-8);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
}

.auth-header,
.auth-footer,
.local-test-login {
  text-align: center;
}

.auth-action-group {
  display: grid;
  gap: var(--space-3);
}

.auth-action-group .button {
  min-height: 3.35rem;
}

.auth-action-group .auth-primary-action {
  box-shadow: 0 10px 22px rgba(93, 54, 219, 0.16);
}

.auth-action-group .auth-secondary-action {
  justify-self: center;
  min-height: 2.45rem;
  padding-inline: var(--space-5);
  box-shadow: none;
}

.local-test-login {
  margin-top: var(--space-6);
  padding-top: var(--space-5);
  border-top: 1px solid var(--border);
}

.local-test-login-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  justify-content: center;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 1rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--muted);
  font-weight: 700;
  font-size: 0.85rem;
}

.bar-chart,
.bar-row {
  display: grid;
  gap: var(--space-3);
}

.bar-track {
  overflow: hidden;
  border-radius: 999px;
  background: #ece8f5;
}

.bar-fill {
  height: 0.7rem;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand), #8b63ff);
}

@media (max-width: 1100px) {
  .split {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  body {
    background: var(--bg);
    overscroll-behavior-y: none;
  }

  .app-shell {
    display: block;
  }

  .sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 40;
    width: min(18rem, 85vw);
    padding-top: calc(var(--space-6) + env(safe-area-inset-top));
    padding-bottom: calc(var(--space-6) + env(safe-area-inset-bottom));
    transform: translateX(-100%);
    transition: transform 150ms ease;
    box-shadow: var(--shadow-lg);
  }

  .sidebar.is-open {
    transform: translateX(0);
  }

  .topbar {
    display: none;
  }

  .mobile-only {
    display: inline-flex;
  }

  .desktop-only {
    display: none;
  }

  .page-content {
    width: 100%;
    padding:
      calc(var(--space-5) + env(safe-area-inset-top))
      calc(var(--space-4) + env(safe-area-inset-right))
      calc(6.5rem + env(safe-area-inset-bottom))
      calc(var(--space-4) + env(safe-area-inset-left));
  }

  .bottom-tabs {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 30;
    display: flex;
    align-items: end;
    gap: var(--space-1);
    max-width: 30rem;
    margin: 0 auto;
    padding: 0.55rem 0.65rem calc(0.55rem + env(safe-area-inset-bottom));
    border: 1px solid var(--border);
    border-bottom: 0;
    border-radius: 1.25rem 1.25rem 0 0;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 -8px 28px rgba(38, 30, 73, 0.1);
    backdrop-filter: blur(18px);
  }

}

@media (max-width: 640px) {
  .card,
  .module,
  .panel {
    padding: var(--space-4);
  }

  .attention-card {
    grid-template-columns: 1fr;
  }

  .attention-card-main {
    grid-template-columns: 3.5rem minmax(0, 1fr) auto;
  }

  .attention-card-main > .chevron {
    display: none;
  }

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

  .field-grid,
  .review-diff-row,
  .identity-entry-fields {
    grid-template-columns: 1fr;
  }

  .list-item {
    align-items: flex-start;
  }

  .person-avatar-lg {
    width: 8rem;
    height: 8rem;
  }

  .profile-hero {
    gap: var(--space-4);
  }

  .review-photo {
    width: 8.5rem;
    height: 8.5rem;
  }

  .auth-card {
    padding: var(--space-6);
  }
}

@media (max-width: 340px) {
  .person-row-main {
    align-items: center;
    flex-direction: column;
    text-align: center;
  }

  .person-row-header,
  .person-name-line,
  .meta-row,
  .provider-row {
    justify-content: center;
  }

  .person-card-tags {
    max-width: 100%;
  }

  .quick-action {
    min-width: 8rem;
  }

  .profile-hero {
    gap: var(--space-3);
  }

  .profile-title {
    font-size: 1.95rem;
  }

  .profile-channel-row {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .profile-channel-value {
    display: none;
  }
}
