@font-face {
  font-family: 'Family Bash DM Sans';
  src: url('fonts/dm-sans-latin.woff2') format('woff2');
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}

.family-bash-site-header { box-shadow: 0 1px 2px #24204708; }
.elementor-heading-title a[href="#family-bash-home"] {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  white-space: nowrap;
}
.elementor-heading-title a[href="#family-bash-home"]::before {
  content: '';
  flex: none;
  width: 36px;
  height: 36px;
  background: url('favicon.svg') center / contain no-repeat;
}
.family-bash-page-shell .elementor-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  white-space: nowrap;
}
.family-bash-page-shell a:focus-visible { outline: 3px solid #6f59ed; outline-offset: 4px; }
.family-bash-dashboard-toolbar a[href="#family-bash-new"] {
  box-shadow: 0 2px 2px #291b861c, 0 5px 12px #5139cd30;
}

.family-bash-app {
  min-width: 0;
  color-scheme: light;
  color: var(--ink);
  font: 15px/1.5 var(--sans);
  --panel: #fff;
  --ink: #1e1d2c;
  --muted: #58596f;
  --accent: #5139cd;
  --accent-soft: #eeebff;
  --accent-ink: #4833ad;
  --line: #e5e3ef;
  --rose: #fae7e9;
  --shadow: 0 2px 3px #24204707, 0 10px 26px #24204708;
  --sans: 'Family Bash DM Sans', system-ui, -apple-system, sans-serif;
}
.family-bash-app * { box-sizing: border-box; }
.family-bash-app button, .family-bash-app input, .family-bash-app select, .family-bash-app textarea { font: inherit; }
.family-bash-app a { color: inherit; text-decoration: none; }
.family-bash-app button, .family-bash-app a, .family-bash-app input, .family-bash-app select, .family-bash-app textarea { -webkit-tap-highlight-color: transparent; }
.family-bash-app button { cursor: pointer; }
.family-bash-app button:disabled { cursor: wait; opacity: .58; }
.family-bash-app :focus-visible { outline: 3px solid #6f59ed; outline-offset: 4px; }
.family-bash-app h1, .family-bash-app h2, .family-bash-app h3, .family-bash-app h4, .family-bash-app p { margin: 0; }
.family-bash-app [hidden] { display: none !important; }
.family-bash-app .icon { display: block; width: 20px; height: 20px; flex: 0 0 auto; }
.family-bash-app #family-bash-view:focus { outline: none; }
.family-bash-dashboard-toolbar[hidden] { display: none !important; }
.family-bash-app .headline { font-size: clamp(29px, 5.3vw, 37px); font-weight: 700; line-height: 1.15; letter-spacing: -.05em; overflow-wrap: anywhere; }
.family-bash-app .button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; flex-shrink: 0; min-height: 46px; border: 1px solid transparent; border-radius: 11px; padding: 10px 15px; background: transparent; color: var(--ink); font-weight: 700; line-height: 1.2; text-align: center; }
.family-bash-app .button .icon { width: 18px; height: 18px; }
.family-bash-app .button-primary { background: var(--accent); color: #fff; }
.family-bash-app .button-primary:hover { background: #412db6; }
.family-bash-app .button-outline { background: var(--panel); border-color: var(--line); }
.family-bash-app .button-outline:hover { background: var(--accent-soft); border-color: #d7ccff; }
.family-bash-app .button-small { min-height: 44px; padding: 8px 12px; font-size: 14px; }
.family-bash-app .button-danger { background: #9b3c34; color: white; }
.family-bash-app .button-danger:hover { background: #7e2d27; }

.family-bash-app .section-title { font-size: 21px; font-weight: 700; line-height: 1.25; letter-spacing: -.035em; }
.family-bash-app .icon-box { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 12px; color: var(--accent-ink); background: var(--accent-soft); flex: 0 0 auto; }
.family-bash-app .empty-state {
  display: grid;
  align-content: center;
  min-height: 132px;
  padding: clamp(18px, 4vw, 30px);
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(115deg, #fff, #fbfaff);
  box-shadow: var(--shadow);
}
.family-bash-app .empty-state:has(.empty-state-copy) {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 16px;
}
.family-bash-app .empty-state .icon-box { width: 54px; height: 54px; border-radius: 16px; }
.family-bash-app .empty-state .icon { width: 25px; height: 25px; }
.family-bash-app .empty-state h2 { font-size: 20px; font-weight: 700; line-height: 1.25; letter-spacing: -.034em; }
.family-bash-app .empty-state p { margin-top: 5px; max-width: 48ch; color: var(--muted); }
.family-bash-app .parties-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.family-bash-app .party-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  min-height: 92px;
  border: 1px solid var(--line);
  border-radius: 17px;
  padding: 16px;
  background: var(--panel);
  box-shadow: var(--shadow);
  overflow-wrap: anywhere;
  transition: background .16s ease, border-color .16s ease;
}
.family-bash-app .party-card:hover { background: #fcfaff; border-color: #cec4f5; }
.family-bash-app .party-card h2 { margin: 0 0 4px; font-size: 19px; font-weight: 700; line-height: 1.25; letter-spacing: -.028em; }
.family-bash-app .party-card p { color: var(--muted); font-size: 14px; }
.family-bash-app .party-card-arrow { color: var(--accent-ink); }
.family-bash-app .breadcrumb { display: inline-flex; gap: 7px; align-items: center; color: var(--accent-ink); font-weight: 700; min-height: 44px; }
.family-bash-app .breadcrumb .icon { width: 17px; height: 17px; }
.family-bash-app .event-hero { padding: clamp(18px, 4vw, 30px); border-radius: 19px; border: 1px solid #e2dafb; background: linear-gradient(120deg, #f0ebff, #fbfaff); box-shadow: var(--shadow); }
.family-bash-app .breadcrumb + article { margin-top: 4px; }
.family-bash-app .event-role { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; color: var(--accent-ink); font-size: 13px; font-weight: 700; }
.family-bash-app .event-role .icon { width: 15px; height: 15px; }
.family-bash-app .event-meta { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 13px; color: var(--muted); }
.family-bash-app .event-meta span { display: inline-flex; gap: 7px; align-items: center; min-width: 0; max-width: 100%; padding: 6px 10px; background: #ffffffc9; border: 1px solid #e7e0f8; border-radius: 11px; font-size: 14px; overflow-wrap: anywhere; }
.family-bash-app .event-meta .icon { width: 18px; height: 18px; color: var(--accent-ink); }
.family-bash-app .event-description { margin-top: 13px; color: var(--ink); max-width: 65ch; white-space: pre-wrap; overflow-wrap: anywhere; }
.family-bash-app .event-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 17px; }
.family-bash-app .party-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  width: min(100%, 380px);
  margin-block: 14px 12px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--accent-soft);
}
.family-bash-app .party-tabs button {
  min-width: 0;
  min-height: 44px;
  padding: 6px;
  border: 1px solid transparent;
  border-radius: 10px;
  color: var(--muted);
  background: transparent;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  white-space: normal;
  overflow-wrap: anywhere;
}
.family-bash-app .party-tabs button:hover { color: var(--accent-ink); }
.family-bash-app .party-tabs button[aria-selected="true"] {
  border-color: var(--line);
  background: var(--panel);
  color: var(--accent-ink);
  box-shadow: 0 1px 3px #24204712;
}
.family-bash-app .party-tabs button:focus-visible { outline-offset: 1px; }
.family-bash-app .party-tab-panel { min-width: 0; }
.family-bash-app .panel { border: 1px solid var(--line); background: var(--panel); border-radius: 17px; padding: 20px; min-width: 0; box-shadow: var(--shadow); }
.family-bash-app .panel-heading { display: flex; justify-content: space-between; flex-wrap: wrap; align-items: center; gap: 8px; }
.family-bash-app .progress-info { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px; color: var(--muted); font-size: 14px; margin-top: 12px; }
.family-bash-app progress { display: block; width: 100%; height: 7px; margin-top: 8px; appearance: none; border: 0; background: #ece9f6; border-radius: 6px; overflow: hidden; }
.family-bash-app progress::-webkit-progress-bar { background: #ece9f6; }
.family-bash-app progress::-webkit-progress-value { background: var(--accent); }
.family-bash-app progress::-moz-progress-bar { background: var(--accent); }
.family-bash-app :is(.food-table, .attendee-table) {
  width: 100%;
  margin: 14px 0 0;
  table-layout: fixed;
  border-collapse: collapse;
}
.family-bash-app :is(.food-table, .attendee-table) :is(th, td) {
  padding: 10px;
  border: 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  overflow-wrap: anywhere;
}
.family-bash-app :is(.food-table, .attendee-table) thead th {
  color: var(--accent-ink);
  background: #f7f4ff;
  font-size: 13px;
  font-weight: 700;
}
.family-bash-app :is(.food-table, .attendee-table) thead th:first-child { border-top-left-radius: 9px; }
.family-bash-app :is(.food-table, .attendee-table) thead th:last-child { border-top-right-radius: 9px; }
.family-bash-app .food-table thead th:nth-child(2) { width: 170px; }
.family-bash-app .food-table thead th:last-child { width: 112px; text-align: right; }
.family-bash-app .attendee-table thead th:first-child { width: 84px; }
.family-bash-app :is(.food-table, .attendee-table) tbody :is(th, td) { background: var(--panel); }
.family-bash-app :is(.food-table, .attendee-table) tbody tr:last-child :is(th, td) { border-bottom: 0; }
.family-bash-app :is(.food-name-cell, .attendee-name-cell) { font-weight: 400; }
.family-bash-app .food-table .food-action-cell { text-align: right; vertical-align: middle; }
.family-bash-app .food-action-cell .button { white-space: nowrap; }
.family-bash-app .remove-row-button { color: #862e48; }
.family-bash-app .remove-row-button:hover { background: var(--rose); }
.family-bash-app .food-action-cell .remove-row-button { display: flex; margin: 2px 0 0 auto; }
.family-bash-app .food-name, .family-bash-app .food-detail { display: block; }
.family-bash-app .food-name { font-weight: 700; line-height: 1.3; }
.family-bash-app .food-detail { margin-top: 4px; color: var(--muted); font-size: 13px; line-height: 1.35; }
.family-bash-app .food-guests { display: flex; flex-wrap: wrap; gap: 5px 9px; margin: 0; padding: 0; list-style: none; }
.family-bash-app .food-guests li { display: flex; flex-wrap: wrap; align-items: center; gap: 1px 4px; max-width: 100%; }
.family-bash-app .food-quantity { color: var(--muted); font-size: 12px; white-space: nowrap; }
.family-bash-app .initials-badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 27px;
  min-height: 27px;
  padding-inline: 5px;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}
.family-bash-app .initials-a11y {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.family-bash-app :is(.food-unassigned, .food-action-unavailable) { color: var(--muted); font-size: 13px; }
.family-bash-app .icon-button { display: inline-flex; align-items: center; justify-content: center; border: 0; background: transparent; width: 44px; min-height: 44px; border-radius: 10px; color: var(--muted); }
.family-bash-app .icon-button:hover { background: var(--rose); color: #812b24; }
.family-bash-app .empty-text { color: var(--muted); margin-top: 11px; }
.family-bash-app .attendee-rsvp { margin-top: 14px; padding: 13px; border: 1px solid var(--line); border-radius: 13px; background: #fbfaff; }
.family-bash-app .attendee-rsvp h3 { font-size: 16px; font-weight: 700; }
.family-bash-app .attendee-rsvp .rsvp-help { margin-top: 5px; color: var(--muted); }
.family-bash-app .rsvp-actions { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 10px; }
.family-bash-app .rsvp-actions .active { background: var(--accent-soft); border-color: #c9baff; color: var(--accent-ink); }
.family-bash-app .attendee-table tbody :is(.attendee-initials-cell, .attendee-name-cell) { vertical-align: middle; }
.family-bash-app .attendee-entry { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 4px; }
.family-bash-app .attendee-entry-info { flex: 1 1 126px; min-width: 0; }
.family-bash-app .attendee-name { margin-inline-end: 7px; font-weight: 700; }
.family-bash-app .attendee-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 9px;
  border-radius: 999px;
  color: var(--accent-ink);
  background: var(--accent-soft);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.family-bash-app .attendee-status[data-status="yes"] { color: #215638; background: #e3f4e9; }
.family-bash-app .attendee-status[data-status="maybe"] { color: #754c14; background: #fff0d4; }
.family-bash-app .attendee-status[data-status="no"] { color: #862e48; background: var(--rose); }
.family-bash-app .waiting { color: var(--muted); padding: 25px 0; }
.family-bash-app .problem { max-width: 440px; }
.family-bash-app .problem p { margin: 12px 0 16px; }

.family-bash-app dialog { position: fixed; inset: 0; margin: auto; padding: 0; width: min(100% - 28px, 525px); max-height: calc(100dvh - 32px); color: var(--ink); background: var(--panel); border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 24px 80px #231b5340; }
.family-bash-app dialog::backdrop { background: #19152a8c; }
.family-bash-app .dialog-body { padding: 24px; }
.family-bash-app .dialog-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; gap: 8px; }
.family-bash-app .dialog-header h2 { font-size: 25px; font-weight: 700; line-height: 1.2; letter-spacing: -.04em; }
.family-bash-app .dialog-header .icon-button { margin: -7px -8px -7px 0; }
.family-bash-app .dialog-body p { color: var(--muted); margin-bottom: 13px; overflow-wrap: anywhere; }
.family-bash-app .dialog-form, .family-bash-app .field, .family-bash-app .share-fields { display: grid; gap: 7px; }
.family-bash-app .dialog-form, .family-bash-app .share-fields { gap: 13px; }
.family-bash-app .field { min-width: 0; }
.family-bash-app .field > span, .family-bash-app .field > label, .family-bash-app .field-label { font-weight: 700; font-size: 14px; }
.family-bash-app .field small { color: var(--muted); }
.family-bash-app .field > .field-error { color: #8b283f; font-size: 13px; font-weight: 600; }
.family-bash-app .field [aria-invalid="true"] { border-color: #b54761; }
.family-bash-app input:not([type=checkbox]), .family-bash-app textarea, .family-bash-app select { display: block; width: 100%; min-width: 0; min-height: 46px; border: 1px solid #d5d1e6; border-radius: 9px; color: var(--ink); background: white; padding: 9px 10px; font-size: 16px; }
.family-bash-app input[type=date], .family-bash-app input[type=time] { height: 46px; }
.family-bash-app textarea { resize: vertical; }
.family-bash-app .field-row { display: grid; grid-template-columns: 1fr 1fr; align-items: start; gap: 10px; }
.family-bash-app .dialog-body .assignment-limit { margin: 0; font-size: 14px; }
.family-bash-app .dialog-footer { display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; margin-top: 3px; }
.family-bash-app .assignment-tools { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; padding-top: 6px; border-top: 1px solid var(--line); }
.family-bash-app .assignment-tools .button { min-height: 44px; padding-inline: 8px; background: transparent; color: var(--accent-ink); }
.family-bash-app .assignment-tools .button:hover { background: var(--accent-soft); }
.family-bash-app .assignment-tools .assignment-remove { color: #862e48; }
.family-bash-app .assignment-tools .assignment-remove:hover { background: var(--rose); }
.family-bash-app .form-error { border-radius: 9px; background: var(--rose); padding: 9px 10px; color: #762c24 !important; margin: 0 !important; }
.family-bash-app .copy-feedback { background: var(--accent-soft); color: var(--accent-ink) !important; }
.family-bash-app .share-group { padding-block: 4px 11px; border-bottom: 1px solid var(--line); }
.family-bash-app .share-group:last-child { border: 0; padding-bottom: 0; }
.family-bash-app .share-group p { font-size: 14px; margin: 5px 0 9px; }
.family-bash-app .share-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.family-bash-app .toast { position: fixed; right: max(14px, env(safe-area-inset-right)); bottom: max(14px, env(safe-area-inset-bottom)); z-index: 10000; max-width: min(340px, calc(100vw - 28px)); color: #fffdf2; background: var(--accent); border-radius: 12px; padding: 12px 16px; box-shadow: 0 6px 25px #231b5333; pointer-events: none; }

@media (max-width: 530px) {
  .elementor-heading-title a[href="#family-bash-home"] { gap: 8px; }
  .elementor-heading-title a[href="#family-bash-home"]::before { width: 32px; height: 32px; }
  .family-bash-app .empty-state { min-height: 128px; }
  .family-bash-app .empty-state:has(.empty-state-copy) { gap: 13px; }
  .family-bash-app .empty-state .icon-box { width: 44px; height: 44px; border-radius: 13px; }
  .family-bash-app .empty-state .icon { width: 22px; height: 22px; }
  .family-bash-app .parties-grid { grid-template-columns: 1fr; gap: 9px; }
  .family-bash-app .panel { padding: 15px; }
  .family-bash-app :is(.food-table, .attendee-table) :is(th, td) { padding-inline: 6px; }
  .family-bash-app .food-table thead th:nth-child(2),
  .family-bash-app .attendee-table thead th:first-child { width: 64px; }
  .family-bash-app .food-table thead th:last-child { width: 78px; }
  .family-bash-app .food-action-cell .button { padding-inline: 8px; }
  .family-bash-app .food-guests { display: grid; gap: 4px; }
  .family-bash-app dialog {
    inset: auto 0 0;
    margin: 0 auto;
    width: min(100%, 470px);
    max-height: calc(100dvh - 16px);
    border-radius: 23px 23px 0 0;
  }
  .family-bash-app .dialog-body { padding: 20px 17px max(20px, env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion: reduce) {
  .family-bash-app *, .family-bash-app *::before, .family-bash-app *::after { transition: none !important; }
}
