/* Functional dashboard components; the theme supplies the site’s visual treatment. */
.pnwx-dashboard [hidden] { display: none !important; }
.pnwx-dashboard-header { display: flex; align-items: center; gap: 24px; padding: 32px; background: var(--pnwx-forest); color: var(--pnwx-cream); }
.pnwx-dashboard-header h1 { font: 700 2rem/1.2 var(--pnwx-heading); margin: 8px 0; overflow-wrap: anywhere; }
.pnwx-dashboard-header p { margin: 0; }
.pnwx-dashboard-welcome { min-width: 0; }
.pnwx-dashboard-explore { margin-left: auto; color: inherit; }
.pnwx-avatar-trigger { position: relative; padding: 0; border: 0; background: transparent; color: inherit; cursor: pointer; flex: 0 0 88px; }
.pnwx-avatar-trigger img { display: block; width: 88px; height: 88px; object-fit: cover; border-radius: 50%; }
.pnwx-avatar-trigger > span { display: block; font: 700 0.875rem/1.4 var(--pnwx-body); margin-top: 8px; }
.pnwx-dashboard-layout { display: grid; grid-template-columns: minmax(0,1fr) minmax(280px,.46fr); align-items: start; gap: 24px; }
.pnwx-dashboard-main,.pnwx-dashboard-aside { min-width: 0; }
.pnwx-rsvp-events { display: grid; gap: 28px; }
.pnwx-rsvp-event { min-width: 0; padding-top: 24px; border-top: 1px solid var(--pnwx-line); }
.pnwx-rsvp-event-heading p { margin: 8px 0 0; }
.pnwx-rsvp-event-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 24px; margin-block: 16px 24px; }
.pnwx-rsvp-event-actions [data-rsvp-message] { flex-basis: 100%; margin: 0; }
.pnwx-rsvp-event-actions [data-rsvp-message]:empty { display: none; }
.pnwx-event-matches--dashboard { padding: 20px; }
.pnwx-dashboard-notice { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px; margin-block: 24px; border: 1px solid var(--pnwx-line); }
.pnwx-dashboard-notice p { margin: 6px 0 0; }
.pnwx-dashboard .pnwx-panel-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.pnwx-dashboard .pnwx-profile-form { display: grid; gap: 24px; }
.pnwx-dashboard .pnwx-profile-form label:not(.pnwx-interest-chip):not(.pnwx-email-switch):not(.pnwx-detail-share) { display: grid; gap: 9px; margin: 0; }
.pnwx-dashboard .pnwx-profile-form input:not([type=checkbox]),.pnwx-dashboard .pnwx-profile-form select,.pnwx-dashboard .pnwx-profile-form textarea { width: 100%; min-width: 0; margin: 0; box-sizing: border-box; }
.pnwx-dashboard .pnwx-interests-field { margin: 0; padding: 0; min-width: 0; }
.pnwx-email-switch > input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.pnwx-email-switch > input:focus-visible + span { outline: 3px solid var(--pnwx-gold); outline-offset: 3px; }
.pnwx-dashboard .pnwx-interest-options { gap: 9px; }
.pnwx-dashboard .pnwx-interest-count { margin: 10px 0 0; }
.pnwx-email-preference { padding: 20px; border: 1px solid var(--pnwx-line); }
.pnwx-email-switch { display: flex !important; align-items: center; gap: 14px; position: relative; margin: 0 !important; cursor: pointer; }
.pnwx-email-switch strong,.pnwx-email-switch [data-email-preference-state] { display: block; }
.pnwx-email-switch [data-email-preference-state] { font-weight: 400; font-size: 0.875rem; margin-top: 5px; line-height: 1.5; }
.pnwx-switch-track { width: 48px; height: 28px; background: #9c9184; border-radius: 20px; padding: 3px; box-sizing: border-box; flex: 0 0 48px; transition: background .15s; }
.pnwx-switch-track::after { content: ''; display: block; height: 22px; width: 22px; border-radius: 50%; background: white; box-shadow: 0 1px 3px #0003; transition: transform .15s; }
.pnwx-email-switch input:checked + .pnwx-switch-track { background: var(--pnwx-forest); }
.pnwx-email-switch input:checked + .pnwx-switch-track::after { transform: translateX(20px); }
.pnwx-email-preference > p { margin: 12px 0 0; }
.pnwx-profile-save { display: flex; align-items: center; gap: 18px; }
.pnwx-dashboard .pnwx-message:empty { display: none; }
.pnwx-account-action { width: 100%; min-height: 50px; padding: 14px 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; text-align: left; border: 0; border-top: 1px solid var(--pnwx-line); background: transparent; color: inherit; cursor: pointer; font: 700 0.875rem var(--pnwx-body); }
.pnwx-delete-trigger { color: #9b4534; }
.pnwx-account-dialog.pnwx-dialog { width: min(540px,calc(100% - 32px)); max-height: calc(100dvh - 40px); overflow: auto; box-sizing: border-box; }
.pnwx-account-dialog.pnwx-dialog h2 { font-size: 2rem; margin: 12px 24px 20px 0; }
.pnwx-account-dialog.pnwx-dialog p { font-size: 0.875rem; line-height: 1.65; }
.pnwx-account-dialog.pnwx-dialog .pnwx-small { font-size: 0.875rem; }
.pnwx-account-dialog .pnwx-avatar { display: block; margin: 0 auto 22px; }
.pnwx-account-dialog .pnwx-dialog-actions { display: grid; gap: 10px; }
.pnwx-account-dialog .pnwx-dialog-actions .pnwx-btn { margin: 0; }
.pnwx-account-dialog .pnwx-text-link { margin: 20px 0 0; }
.pnwx-deletion-policy { padding: 16px; border: 1px solid var(--pnwx-line); }
.pnwx-deletion-policy p:last-child { margin-bottom: 0; }
@media (max-width: 900px) {
  .pnwx-dashboard-layout { grid-template-columns: 1fr; }
  .pnwx-dashboard-aside { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 20px; }
  .pnwx-dashboard-explore { display: none; }
}
@media (max-width: 600px) {
  .pnwx-dashboard-aside { display: block; }
  .pnwx-dashboard-header { padding: 24px 20px; gap: 18px; }
  .pnwx-dashboard-header h1 { font-size: 1.75rem; }
  .pnwx-avatar-trigger { flex-basis: 70px; }
  .pnwx-avatar-trigger img { width: 70px; height: 70px; }
  .pnwx-dashboard-notice { align-items: stretch; flex-direction: column; gap: 14px; }
  .pnwx-profile-save { flex-direction: column; align-items: stretch; gap: 10px; }
  .pnwx-dashboard .pnwx-panel-heading { flex-wrap: wrap; }
  .pnwx-account-dialog.pnwx-dialog { padding: 28px 22px; }
}

/* Hosted-event structure and owner actions. */
.pnwx-hosted-heading{display:flex;justify-content:space-between;align-items:start;gap:20px}.pnwx-hosted-heading>div,.pnwx-hosted-copy{min-width:0}.pnwx-hosted-heading>a{flex-shrink:0}.pnwx-hosted-filters,.pnwx-hosted-labels,.pnwx-hosted-actions{display:flex;align-items:center;flex-wrap:wrap;gap:10px 16px}[data-hosted-list]{display:grid;gap:20px}.pnwx-hosted-event{display:grid;grid-template-columns:128px minmax(0,1fr);gap:20px}.pnwx-hosted-event:not(:has(.pnwx-hosted-photo)){grid-template-columns:minmax(0,1fr)}.pnwx-hosted-photo img{display:block;width:100%;height:100%;object-fit:cover}.pnwx-hosted-photo{display:block;height:100px;overflow:hidden}.pnwx-hosted-copy h3,.pnwx-host-dialog-name{overflow-wrap:anywhere}.pnwx-hosted-dialog .pnwx-dialog-actions{display:flex;flex-wrap:wrap;gap:12px}.pnwx-hosted-dialog .pnwx-feedback:empty,[data-hosted-feedback]:empty{display:none}.pnwx-hosted-dialog [data-host-close]:disabled{opacity:.5}.pnwx-hosted-event h3:focus{outline:2px solid currentColor;outline-offset:4px}@media(max-width:600px){.pnwx-hosted-heading{flex-direction:column;align-items:stretch}.pnwx-hosted-event{grid-template-columns:minmax(0,1fr)}.pnwx-hosted-photo{height:170px}.pnwx-hosted-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 12px}.pnwx-hosted-dialog .pnwx-dialog-actions{flex-direction:column}}
/* Keep the first dashboard actions visible and use native disclosures for longer sections. */
.pnwx-dashboard-priority:not(:has(> *)) { display: none; }
.pnwx-dashboard-priority { display: grid; gap: 16px; margin-bottom: 24px; }
.pnwx-dashboard .pnwx-dashboard-priority > .pnwx-dashboard-billing {
  width: 100%;
  min-height: 48px;
  font-size: 1rem;
}
.pnwx-dashboard-disclosure {
  min-width: 0;
  margin: 0 0 20px;
  border: 1px solid var(--pnwx-line);
  border-radius: 12px;
  background: #fffcf6;
}
.pnwx-dashboard-priority > .pnwx-dashboard-disclosure { margin: 0; }
.pnwx-dashboard-disclosure > summary {
  min-height: 48px;
  padding: 12px 18px;
  cursor: pointer;
  font: 700 1rem/1.5 var(--pnwx-body);
}
.pnwx-dashboard-disclosure[open] > summary { border-bottom: 1px solid var(--pnwx-line); }
.pnwx-dashboard-disclosure:not([open]) > :not(summary) { display: none; }
.pnwx-dashboard .pnwx-dashboard-disclosure > .pnwx-panel {
  margin: 0;
  border: 0;
  border-radius: 0 0 12px 12px;
}
.pnwx-dashboard .pnwx-rsvps-panel > .pnwx-panel > [data-rsvps-empty] { margin: 0; }
.pnwx-rsvp-events:empty { display: none; }
