:root {
  font-family:
    Inter,
    system-ui,
    -apple-system,
    "Segoe UI",
    sans-serif;
  background: #f5f3f9;
  color: #241b39;
  line-height: 1.55;
  color-scheme: light;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
a {
  color: #32175f;
}
button,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 10px 16px;
  background: #32175f;
  color: white;
  cursor: pointer;
  text-decoration: none;
  font-weight: 650;
  max-width: 100%;
  white-space: normal;
  overflow-wrap: normal;
}
button.secondary,
.button.secondary {
  background: #ede7f6;
  color: #32175f;
}
button:disabled {
  opacity: 0.55;
  cursor: default;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #c08809;
  outline-offset: 3px;
}
[hidden] {
  display: none !important;
}
.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 100;
  background: white;
  padding: 12px;
}
.skip-link:focus {
  top: 10px;
}
.nav-group {
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #6c627d;
  padding: 14px 10px 4px;
}
.lp-nav-collapsed .nav-group {
  font-size: 0;
  padding: 6px 0;
  border-top: 1px solid #ece8f2;
  margin-top: 5px;
}
.connect-app #side-nav a {
  color: #40354f;
  min-height: 44px;
}
.connect-app #side-nav a[aria-current="page"] {
  background: #ede7f6;
  color: #32175f;
  font-weight: 700;
}
.connect-app .lp-context-selectors {
  display: flex;
  gap: 20px;
  justify-content: center;
  align-items: center;
  min-width: 0;
}
.connect-app .lp-context-selectors label {
  display: grid;
  gap: 4px;
  font-size: 0.75rem;
  min-width: 0;
  max-width: 300px;
}
.lp-context-selectors select {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  min-height: 40px;
}
.page-head .eyebrow {
  color: #75628a;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.72rem;
  font-weight: 750;
  margin: 0;
}
.page-head h1 {
  font-size: clamp(1.6rem, 4vw, 2.3rem);
  margin: 6px 0;
}
.page-head p {
  color: #6a6078;
  max-width: 60ch;
}
.card {
  background: white;
  border: 1px solid #e4deec;
  border-radius: 16px;
  padding: clamp(16px, 2.6vw, 26px);
  min-width: 0;
  margin-bottom: 18px;
  box-shadow: 0 8px 25px #29115106;
  overflow-wrap: anywhere;
}
.card h2,
.card h3 {
  margin: 0 0 10px;
  line-height: 1.3;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 18px;
}
.grid > .card {
  margin: 0;
}
.muted,
footer {
  color: #6a6078;
}
.muted {
  font-size: 0.93rem;
}
.actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 16px;
}
.metric-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(135px, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}
.metric {
  background: white;
  border: 1px solid #e4deec;
  border-radius: 14px;
  padding: 18px;
  display: grid;
  gap: 5px;
}
.metric strong {
  font-size: 1.8rem;
  color: #32175f;
}
.metric span {
  color: #6a6078;
  font-size: 0.85rem;
}
.badge {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 20px;
  background: #eeeaf4;
  color: #584c68;
  margin: 3px 4px 3px 0;
}
.badge.paid,
.badge.complete,
.badge.going {
  background: #dcfce7;
  color: #166534;
}
.badge.covered {
  background: #f3e8ff;
  color: #6b21a8;
}
.badge.pending,
.badge.unsure {
  background: #fff4ca;
  color: #854a0e;
}
.badge.unpaid,
.badge.cancelled,
.badge.not_going {
  background: #fee2e2;
  color: #991b1b;
}
.checklist {
  padding-left: 22px;
}
.checklist li {
  margin: 6px 0;
}
.document-row,
.person-row,
.request-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid #eee8f4;
}
.document-row > div,
.person-row > div {
  min-width: 0;
  flex: 1 1 200px;
}
.document-row:last-child,
.person-row:last-child {
  border: 0;
}
label.field {
  display: grid;
  gap: 6px;
  min-width: 0;
  font-weight: 600;
}
input,
select,
textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid #b9afc9;
  border-radius: 8px;
  padding: 11px;
  background: #fff;
  color: #241b39;
  min-height: 44px;
}
textarea {
  resize: vertical;
  min-height: 120px;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
  gap: 18px;
}
.form-grid .wide {
  grid-column: 1/-1;
}
form > button {
  margin-top: 18px;
}
fieldset {
  min-width: 0;
  border: 0;
  padding: 0;
  margin: 18px 0;
}
legend {
  font-weight: 750;
  margin-bottom: 14px;
}
.event time {
  font-weight: 700;
}
.event.cancelled {
  border-left: 5px solid #b91c1c;
}
.event.postponed {
  border-left: 5px solid #b7790b;
}
.rsvp {
  margin-top: 16px;
  border-top: 1px solid #eee8f4;
  padding-top: 12px;
}
.rsvp label {
  display: grid;
  gap: 6px;
  margin-bottom: 12px;
}
.update-body,
.message-body {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.message {
  max-width: 90%;
  background: #f0ebf7;
  border-radius: 12px;
  padding: 14px;
  margin: 14px 0;
}
.message.mine {
  margin-left: auto;
  background: #32175f;
  color: white;
}
.message small {
  display: block;
  opacity: 0.8;
  margin-bottom: 4px;
}
.messages-layout {
  display: grid;
  grid-template-columns: minmax(190px, 1fr) minmax(0, 2fr);
  gap: 18px;
}
.thread-list {
  display: grid;
  gap: 10px;
  align-content: start;
}
.thread-list button {
  justify-content: flex-start;
  text-align: left;
  background: white;
  color: #32175f;
  border-color: #ddd3e9;
}
.thread-list button[aria-pressed="true"] {
  background: #ede7f6;
  border-color: #6a458f;
}
.chat-log {
  max-height: 50vh;
  overflow-y: auto;
  padding: 3px;
}
.connect-app #notice:not(:empty) {
  padding: 14px;
  background: #dcfce7;
  color: #166534;
  border-radius: 10px;
  margin-bottom: 18px;
}
.connect-app #error:not(:empty),
#form-error:not(:empty) {
  padding: 14px;
  color: #991b1b;
  background: #fee2e2;
  border-radius: 10px;
  margin-bottom: 18px;
}
footer {
  font-size: 0.82rem;
  margin-top: 35px;
}
dialog {
  border: 1px solid #e0d8ea;
  border-radius: 16px;
  padding: 22px;
  width: min(780px, calc(100% - 28px));
  max-height: calc(100dvh - 28px);
  overflow: auto;
  color: #241b39;
}
dialog::backdrop {
  background: #160b2cbb;
}
.dialog-head,
.dialog-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.dialog-head h2 {
  margin: 0;
  flex: 1 1 180px;
}
#document-dialog {
  width: min(1100px, calc(100% - 24px));
}
#document-frame {
  width: 100%;
  height: 65dvh;
  border: 1px solid #ddd3e9;
  margin: 16px 0;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
.connect-app .lp-brand img {
  object-fit: contain;
  background: white;
  border-radius: 12px;
}
.empty {
  padding: 16px 0;
}
@media (max-width: 650px) {
  .messages-layout {
    grid-template-columns: 1fr;
  }
  .thread-list {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr));
  }
  .connect-app .lp-header {
    gap: 12px;
    padding: 12px;
  }
  .connect-app .lp-context-selectors {
    gap: 10px;
  }
  .connect-app .lp-context-selectors label {
    max-width: 180px;
  }
  .metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .connect-app main[data-shell-main] {
    padding: 16px 12px 32px;
  }
  .card {
    padding: 16px;
  }
  .dialog-actions > * {
    flex: 1 1 auto;
  }
  .document-row .actions {
    margin: 0;
  }
  .page-head {
    margin-bottom: 20px !important;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
  }
}
