/* Account tools use the same warm cream palette as the invitation storefront. */
.account-pages, .account-auth-overlay {
  --bg: #fbf6ee; --surface: #f5e9e1; --ink: #342a26; --ink-soft: #6f5e56;
  --accent: #765050; --gold: #856b43; --radius: 8px;
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Inter Tight', Arial, sans-serif;
  color: var(--ink); font-family: var(--font-sans); line-height: 1.55;
}
.account-pages { background: #fbf6ee; min-height: calc(100svh - 72px); }
.account-pages :is(button, input, select, textarea), .account-auth-overlay :is(button, input, select) { font: inherit; }
.account-pages :is(button, a, input, select, textarea, [tabindex]):focus-visible,
.account-auth-overlay :is(button, a, input, select):focus-visible { outline: 2px solid #765050; outline-offset: 3px; }
.account-pages button:disabled, .account-auth-overlay button:disabled { opacity: .5; cursor: not-allowed; }
.account-pages .btn { min-height: 44px; padding: 11px 17px; justify-content: center; text-align: center; white-space: normal; line-height: 1.4; }
.account-pages .btn-primary { background: #765050; color: #fbf6ee; border-color: #765050; }
.account-pages .btn-primary:hover:not(:disabled) { background: #634141; }
.account-pages .btn-ghost { border-color: #dfd0be; }
.account-pages .eyebrow { font-size: 12px !important; font-weight: 500; letter-spacing: 0; text-transform: none; color: #6f5e56; }
.account-pages h1.serif { font-size: clamp(32px, 3.6vw, 46px) !important; line-height: 1.08; font-weight: 500; letter-spacing: -.025em; margin-bottom: 12px; }
.account-pages p { max-width: 65ch; }
.account-text-button { display: block; min-height: 44px; padding: 10px 4px; margin: 8px auto 0; border: 0; background: transparent; color: #342a26; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.account-monogram { display: inline-grid; place-items: center; width: 60px; height: 72px; border: 1px solid #bda58d; border-radius: 50% 50% 8px 8px; color: #342a26; font: 42px/1 'Cormorant Garamond', Georgia, serif; margin-bottom: 24px; }
.account-welcome { display: grid; place-items: center; padding: 48px 24px; background: #f5e9e1; }
.account-welcome-card { width: min(100%, 560px); padding: 48px; border: 1px solid #e3d2c6; background: #fbf6ee; text-align: center; }
.account-welcome-card h1 { margin-bottom: 18px !important; }
.account-empty { max-width: 620px; margin: 48px auto; padding: 40px 28px; text-align: center; }
.account-empty p { font-size: 16px; color: #6f5e56; margin: 18px auto 28px; }
.account-state { margin: 24px 0; padding: 32px; background: #f5e9e1; border: 1px solid #e3d2c6; border-radius: 8px; color: #6f5e56; }
.account-state h2 { font-size: 30px; color: #342a26; margin-bottom: 10px; line-height: 1.15; }
.account-alert { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; margin-bottom: 22px; padding: 16px 20px; border: 1px solid #dec1bc; border-radius: 8px; background: #fff4ef; color: #813b31; font-size: 14px; overflow-wrap: anywhere; }
.account-feedback { margin-top: 12px; color: #466348; font-size: 14px; }
.dashboard-layout { display: grid; grid-template-columns: 236px minmax(0, 1fr); max-width: 1600px; margin: auto; min-height: calc(100svh - 72px); }
.dashboard-content { min-width: 0; padding: 40px clamp(24px, 3vw, 48px) 64px; }
.account-pages .dash-sidebar { min-width: 0; padding: 28px 18px; background: #f5e9e1; border-color: #e3d2c6; }
.account-pages .dash-user-card { padding: 0 4px 24px; margin-bottom: 18px; }
.account-pages .dash-user-avatar { background: #342a26; width: 38px; height: 44px; border-radius: 50% 50% 6px 6px; }
.account-pages .dash-nav-item { min-height: 46px; font-size: 14px; padding: 11px 12px; gap: 10px; }
.account-pages .dash-nav-item.active { background: #ead8cf; color: #593737; box-shadow: inset 3px 0 #765050; }
.account-pages .dash-sidebar-foot { padding: 20px 4px 0; margin-top: 32px; overflow-wrap: anywhere; }
.account-pages .dash-sign-out { min-height: 44px; font-size: 14px; }
.dashboard-mobile-switch { display: none; }
.account-pages .dash-header { gap: 20px; margin-bottom: 30px; align-items: center; }
.account-pages .dash-header > div { min-width: 0; }
.account-pages .dash-header > div:last-child:not(:first-child) { flex-wrap: wrap; }
.account-pages .dash-stats, .account-pages .analytics-score-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.account-pages .dash-stat-card { padding: 24px; border-color: #e3d2c6; border-radius: 8px; background: #fbf6ee; }
.account-pages .dash-panel, .account-pages .analytics-card { min-width: 0; border-color: #e3d2c6; padding: 24px; box-shadow: none; border-radius: 8px; background: #fbf6ee; }
.account-pages .dash-panel-hdr { gap: 12px; flex-wrap: wrap; }
.account-pages .dash-panel-hdr h3 { font-size: 25px !important; line-height: 1.15; }
.account-pages .dash-link { min-height: 44px; padding: 10px 4px; font-size: 13px; }
.dashboard-overview-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 20px; }
.dashboard-template-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(190px, 100%), 1fr)); gap: 10px; }
.account-pages .dashboard-next-action { width: 100%; color: inherit; text-align: left; background: transparent; border: 0; border-top: 1px solid #e3d2c6; cursor: pointer; font: inherit; }
.account-pages .dashboard-next-action:hover { background: #fbf6ee; }
.account-pages .dash-checkbox { display: inline-grid; place-items: center; width: 20px; height: 20px; font-size: 12px; border-color: #bda58d; color: #342a26; }
.account-pages .dash-table-row, .account-pages .dash-table-head { gap: 12px; }
.account-pages .dash-table-row > span { min-width: 0; overflow-wrap: anywhere; }
.account-pages .dash-table-head { letter-spacing: 0; text-transform: none; font-size: 12px; }
.account-pages .dash-table-row { font-size: 14px; }
.dashboard-row-actions { flex-wrap: wrap; }
.account-pages .dash-status-select { max-width: 100%; min-height: 44px; font-size: 13px; border: 1px solid #e3d2c6; padding: 8px; }
.account-pages .dash-icon-btn { width: 44px; height: 44px; font-size: 19px; }
.account-pages .dash-filter { min-height: 44px; font-size: 13px; padding: 9px 14px; }
.account-pages .dash-rsvp-item { min-width: 0; padding: 20px; }
.account-pages .dash-rsvp-item > div { min-width: 0; overflow-wrap: anywhere; }
.account-pages .dash-domain-bar { min-width: 0; flex-wrap: wrap; gap: 6px; overflow-wrap: anywhere; user-select: text; }
.account-pages .dash-domain-host { white-space: normal; }
.account-pages .dash-design-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.dashboard-design-caption { gap: 16px; flex-wrap: wrap; }
.account-pages .dash-design-preview-wrap { background: #f5e9e1; min-height: 560px; }
.account-pages .dash-new-design-panel { min-width: 0; }
.account-pages .analytics-grid-main { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); }
.account-pages .analytics-score-card { background: #fbf6ee; min-width: 0; }
.account-pages .analytics-score-card:hover, .account-pages .analytics-score-card.active { transform: none; box-shadow: none; }
.account-pages .analytics-range { flex-wrap: wrap; }
.account-pages .analytics-range button { min-height: 44px; }
.dashboard-billing > p, .dashboard-settings > p { margin: 0 0 28px; overflow-wrap: anywhere; }
.dashboard-payment { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; margin-top: 16px; }
.dashboard-payment > small { grid-column: 1 / -1; color: #6f5e56; overflow-wrap: anywhere; }
.dashboard-payment-amount { display: grid; gap: 8px; justify-items: end; }
.dashboard-payment-amount > strong { font-size: 22px; font-weight: 500; }
.dashboard-payment-amount .dash-rsvp-badge { text-transform: capitalize; }
.dashboard-settings .signin-field input, .account-pages .dash-field input, .account-pages .dash-field select { min-height: 48px; font-size: 16px; background: #fbf6ee; border-color: #d8c7b6; }
.dashboard-settings .signin-field > span, .account-pages .dash-field > span { font-size: 14px; text-transform: none; letter-spacing: 0; color: #6f5e56; margin-bottom: 8px; }
.dashboard-settings .dash-panel h2 { font-size: 28px; margin-bottom: 12px; }
.dashboard-settings .dash-panel p { margin-bottom: 12px; }
.dashboard-share button, .dashboard-share a { min-height: 44px; }
.dashboard-share .dashboard-share-card { background: #fbf6ee !important; border-color: #e3d2c6 !important; border-radius: 8px !important; box-shadow: none !important; }
.dashboard-share-link input { flex: 1; min-width: 0; padding: 10px 12px; min-height: 46px; border: 1px solid #d8c7b6; border-radius: 6px; background: #f5e9e1; color: #342a26; font-size: 14px; }
.account-auth-overlay { padding: 24px; background: rgba(41, 35, 41, .55); backdrop-filter: none; -webkit-backdrop-filter: none; overflow-y: auto; z-index: 500; }
.account-auth-overlay .account-auth-modal { width: min(100%, 480px); max-height: calc(100dvh - 48px); overflow-y: auto; overscroll-behavior: contain; background: #fbf6ee; border: 1px solid #e8d5c4; border-radius: 12px; padding: 36px; box-shadow: 0 24px 80px #342a2633; animation: none; }
.account-auth-modal .signin-close { top: 16px; right: 16px; min-width: 44px; min-height: 44px; background: transparent; color: #6f5e56; font-size: 28px; }
.account-auth-modal .signin-logo { color: #342a26; margin-bottom: 32px; padding-right: 36px; }
.account-auth-modal .signin-logo > span:last-child { font: 24px/1.1 'Cormorant Garamond', Georgia, serif; }
.account-auth-modal .signin-logo small { margin-top: 5px; font: 10px/1.4 'Inter Tight', Arial, sans-serif; color: #6f5e56; }
.account-auth-modal #signin-title { font-size: 36px !important; line-height: 1.1; margin-bottom: 12px !important; }
.account-auth-modal #signin-description { line-height: 1.65; font-size: 15px !important; color: #6f5e56; }
.account-auth-modal .signin-step { animation: none; }
.account-auth-modal .signin-mode-switch { padding: 4px; background: #f5e9e1; border: 0; margin-bottom: 24px; }
.account-auth-modal .signin-mode-switch button { min-height: 44px; font-size: 14px; color: #6f5e56; }
.account-auth-modal .signin-mode-switch button.active { background: #fbf6ee; color: #342a26; box-shadow: none; }
.account-auth-modal .signin-field > span { font-size: 14px; font-weight: 500; text-transform: none; letter-spacing: 0; color: #342a26; margin-bottom: 8px; }
.account-auth-modal .signin-field input, .account-auth-modal .dash-field input, .account-auth-modal .dash-field select { min-height: 48px; font-size: 16px; width: 100%; background: #fbf6ee; border: 1px solid #d8c7b6; color: #342a26; border-radius: 6px; }
.account-auth-modal .dash-field > span { font-size: 13px; letter-spacing: 0; text-transform: none; }
.account-auth-modal .signin-otp-input { font-size: 26px !important; letter-spacing: .25em; text-align: center; }
.account-auth-modal .signin-btn-primary { min-height: 48px; background: #765050; color: #fbf6ee; font-size: 15px; letter-spacing: 0; text-transform: none; border-radius: 6px; }
.account-auth-modal .signin-inline-action { min-height: 44px; padding: 8px 4px; color: #342a26; font-size: 13px; }
.account-auth-modal .signin-code-target { gap: 8px; flex-wrap: wrap; background: #f5e9e1; padding: 8px 12px; }
.account-auth-modal .signin-code-target > span { min-width: 0; flex: 1 1 160px; overflow-wrap: anywhere; white-space: normal; }
.account-auth-modal .signin-notice, .account-auth-modal .signin-error { overflow-wrap: anywhere; font-size: 14px; line-height: 1.55; }
.account-auth-modal .signin-fineprint { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 2px 5px; margin-top: 16px; font-size: 13px; }
.signin-security-note { margin-top: 14px; font-size: 12px; text-align: center; color: #6f5e56; }
.account-auth-modal .btn { min-height: 44px; }
.account-auth-modal .btn-primary { background: #765050; color: #fbf6ee; }
.account-pages .dash-user-card .serif { overflow-wrap: anywhere; }
.account-pages .dash-design-phone { width: min(300px, 100%); padding: 3px; border-radius: 36px; background: #34312e; box-shadow: 0 10px 22px #342a261a; }
.account-pages .dash-design-phone-screen { border-radius: 33px; }
.account-pages .dash-design-phone-screen iframe { width: 100%; }
.account-pages .dash-design-phone-btn { display: none; }
.account-pages .dash-design-island { width: 26%; height: 15px; top: 9px; }
.dashboard-whatsapp { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 11px 16px; border: 1px solid #bed2bf; border-radius: 8px; background: #e3efe4; color: #24543a; font-size: 14px; font-weight: 600; cursor: pointer; }
.dashboard-whatsapp:hover { background: #d5e7d8; }
.dashboard-share-link + .dashboard-whatsapp { width: 100%; }
.dashboard-guest-share { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 12px 14px; border-radius: 8px; background: #f5e9e1; }
.admin-page { padding: 40px 0 64px; }
.admin-page .wrap { max-width: 1320px; }
.admin-page .signin-field :is(select,textarea) { display: block; width: 100%; min-height: 48px; padding: 12px; border: 1px solid #d8c7b6; border-radius: 6px; background: #fbf6ee; color: #342a26; font-size: 16px; }
.admin-table-scroll { max-width: 100%; overflow-x: auto; border: 1px solid #e3d2c6; border-radius: 8px; }
.admin-table { width: 100%; border-collapse: collapse; text-align: left; font-size: 14px; }
.admin-table caption { text-align: left; padding: 12px 16px; text-transform: capitalize; background: #f5e9e1; font-weight: 600; }
.admin-table th, .admin-table td { padding: 14px 16px; border-bottom: 1px solid #e3d2c6; vertical-align: top; overflow-wrap: anywhere; min-width: 100px; }
.admin-table th { background: #f5e9e1; font-weight: 600; }
.admin-table td:first-child { min-width: 180px; }
.admin-table tr:last-child td { border-bottom: 0; }
.admin-pagination { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
@media (min-width: 1350px) {
  .account-pages .dash-stats, .account-pages .analytics-score-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 1100px) {
  .dashboard-overview-grid, .account-pages .analytics-grid-main, .account-pages .dash-design-grid { grid-template-columns: minmax(0, 1fr); }
  .account-pages .dashboard-row-actions { justify-content: flex-start !important; }
  .account-pages .dash-table-head { display: none; }
  .account-pages .dash-table-row { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 16px; padding: 20px !important; }
  .account-pages .dash-table-row > span:first-child, .account-pages .dashboard-row-actions { grid-column: 1 / -1; }
  .account-pages .dash-table-row [data-label]::before { content: attr(data-label); display: block; margin-bottom: 5px; color: #6f5e56; font-size: 12px; }
}
@media (max-width: 820px) {
  .dashboard-layout { display: block; }
  .account-pages .dash-sidebar { display: block; padding: 20px 24px; border-right: 0; border-bottom: 1px solid #e3d2c6; }
  .account-pages .dash-user-card, .account-pages .dash-nav, .account-pages .dash-sidebar-foot { display: none; }
  .dashboard-mobile-switch { display: grid; grid-template-columns: 1fr minmax(180px, 1fr); align-items: center; gap: 16px; color: #342a26; font-size: 14px; }
  .dashboard-mobile-switch select { width: 100%; min-width: 0; min-height: 48px; padding: 10px 12px; border: 1px solid #cdbba9; border-radius: 6px; background: #fbf6ee; color: #342a26; font-size: 16px; }
  .dashboard-content { padding: 28px 24px 48px; }
  .account-pages .dash-new-design-panel { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 480px) {
  .account-welcome { padding: 24px 16px; }
  .account-welcome-card { padding: 32px 20px; }
  .account-welcome-card .btn { width: 100%; }
  .account-empty { padding: 20px 0; margin: 12px 0; }
  .account-empty .btn { width: 100%; }
  .account-pages .dash-sidebar { padding: 16px; }
  .dashboard-mobile-switch { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .dashboard-content { padding: 24px 16px 40px; }
  .account-pages .dash-header > div:last-child:not(:first-child) { width: 100%; gap: 8px; justify-content: flex-start !important; }
  .account-pages .dash-header .btn { flex: 1 1 140px; }
  .account-pages .dash-stats, .account-pages .analytics-score-grid { gap: 10px; }
  .account-pages .dash-stat-card { padding: 18px 14px; }
  .account-pages .dash-panel, .account-pages .analytics-card { padding: 20px 16px; }
  .account-pages .dash-row { gap: 9px; }
  .account-pages .dash-rsvp-item { padding: 16px 12px; gap: 9px; }
  .account-pages .dash-rsvp-avatar { width: 28px; height: 28px; }
  .account-pages .dash-new-design-copy { padding: 24px 16px; }
  .account-pages .dash-design-preview-wrap { min-height: 460px; padding: 24px 16px; }
  .account-pages .dash-design-phone { width: min(240px, 100%); }
  .account-pages .dashboard-design-caption { padding: 20px 16px !important; }
  .dashboard-payment { grid-template-columns: minmax(0, 1fr); }
  .dashboard-payment-amount { justify-items: start; }
  .dashboard-share .dashboard-share-card { padding: 20px 16px !important; }
  .dashboard-share-link { flex-wrap: wrap; }
  .dashboard-share-link input { flex-basis: 100%; }
  .account-state { padding: 24px 18px; }
  .account-auth-overlay { padding: 12px; align-items: center; }
  .account-auth-overlay .account-auth-modal { padding: 30px 20px 24px; max-height: calc(100dvh - 24px); border-radius: 10px; }
  .account-auth-modal .signin-logo { margin-bottom: 28px; }
  .account-auth-modal #signin-title { font-size: 32px !important; }
  .account-auth-modal .dash-form-grid { grid-template-columns: minmax(0, 1fr); }
  .account-pages .dash-confirm-modal { max-height: calc(100dvh - 24px); overflow-y: auto; padding: 28px 20px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .account-pages *, .account-auth-overlay * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
