/* Decoration follows the selected palette; business risk retains its meaning. */
:root {
  --sidebar-bg:#f6f1ea; --header-ink:#f6ead8; --button-ink:#f6ead8;
  --tone-rose:#f8e8e8; --tone-mint:#e5efe6; --tone-blue:#e5edf5;
  --tone-lilac:#ece7f1; --tone-amber:#f6ecd9;
}
body { background:var(--bg); color:var(--ink); }
button, input, select, textarea { color:inherit; }
input, select, textarea { background:var(--paper); color:var(--ink); }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible,
a:focus-visible, summary:focus-visible { outline:3px solid var(--navy); outline-offset:3px; }
.appbar { color:var(--header-ink); }
.topbar-tag { color:var(--header-ink); opacity:.82; }
.sidebar { background:var(--sidebar-bg); }
.primary, .bubble.hotel { color:var(--button-ink); }
.queue-filters .filter.on, .view-switch .filter.on { color:var(--button-ink); }
.page-arc path:first-child, .page-arc-low path:first-child { stroke:var(--accent); }
.page-arc path:nth-child(2), .page-arc-low path:nth-child(2) { stroke:var(--forest); }
.page-arc circle, .page-arc-low circle { fill:var(--forest); }
table.list tbody tr:hover, tr.sel { background:var(--wash); }
.beo-item-content:focus, .calendar-day.other-month { background:var(--paper); }
.overview-facts { background:var(--tone-rose); border-radius:16px; padding:22px 24px; }
#event-functions { margin-top:28px; }
#event-functions > .block-head { padding-left:14px; border-left:4px solid var(--forest); }
#event-functions .list thead { background:var(--tone-mint); }
.dashboard-metrics button { border-color:var(--line); }
.dashboard-metrics button[data-metric=weddings] { background:var(--tone-rose); }
.dashboard-metrics button[data-metric=mice] { background:var(--tone-blue); }
.dashboard-metrics button[data-metric=needs_today] { background:var(--tone-amber); }
.dashboard-metrics button[data-metric=awaiting] { background:var(--tone-lilac); }
.pipeline-column[data-stage=presale] { background:var(--tone-rose); }
.pipeline-column[data-stage=planning] { background:var(--tone-mint); }
.pipeline-column[data-stage=operations] { background:var(--tone-blue); }
.pipeline-column[data-stage=event] { background:var(--tone-amber); }
.pipeline-column[data-stage=post_event] { background:var(--tone-lilac); }
.preparation-task[data-work-kind=planning] { background:var(--tone-mint); }
.preparation-task[data-work-kind=operations] { background:var(--tone-blue); }
.preparation-task[data-work-kind=commercial] { background:var(--tone-lilac); }
.preparation-payment { background:var(--tone-lilac); }
.payment-record > .block-head { margin:-18px -20px 18px; padding:18px 20px; background:var(--tone-lilac); }
.preparation-risk { color:var(--drop); }
.preparation-overdue { border-left-color:var(--drop); }
.preparation-task-actions .textbtn { color:var(--navy); }
.identity-warning { color:var(--drop); background:var(--drop-bg); }
.appearance-picker { border:0; padding:0; margin:24px 0; min-width:0; }
.appearance-picker legend { font-size:16px; font-weight:600; color:var(--ink); }
.appearance-help, .appearance-description, .appearance-preview { font-size:12px; line-height:1.6; color:var(--muted); }
.appearance-help { margin:8px 0 16px; }
.appearance-options { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; }
.appearance-choice { position:relative; display:flex; flex-direction:column; align-items:stretch; gap:7px; min-width:0; padding:10px; border:1px solid var(--line); border-radius:12px; background:var(--paper); cursor:pointer; color:var(--ink); letter-spacing:0; text-align:left; }
.appearance-choice.selected { outline:2px solid var(--navy); outline-offset:0; }
.appearance-choice input { position:absolute; right:16px; top:16px; width:16px; height:16px; margin:0; accent-color:var(--navy); z-index:1; }
.appearance-choice strong { font-size:13px; font-weight:600; }
.appearance-description { font-weight:400; }
.appearance-mini { position:relative; display:block; height:74px; background:var(--preview-bg); border-radius:7px; overflow:hidden; }
.appearance-mini-header { display:block; height:23px; background:var(--preview-main); }
.appearance-mini-body { display:grid; grid-template-columns:repeat(3,1fr); gap:5px; padding:9px; height:51px; }
.appearance-mini-body i { display:block; border-radius:4px; background:var(--preview-one); }
.appearance-mini-body i:nth-child(2) { background:var(--preview-two); }
.appearance-mini-body i:nth-child(3) { background:var(--preview-three); }
.appearance-preview { min-height:19px; margin:12px 0 0; }
#theme-form, #profile-form { grid-column:1 / -1; }
.account-theme-disclosure > summary { display:flex; align-items:center; gap:12px; cursor:pointer; list-style:none; }
.account-theme-disclosure > summary::-webkit-details-marker, .account-theme-disclosure > summary::marker { display:none; }
.account-theme-disclosure > summary::before { content:""; width:8px; height:8px; flex:none; border-right:2px solid var(--muted); border-bottom:2px solid var(--muted); transform:rotate(-45deg); }
.account-theme-disclosure[open] > summary::before { transform:rotate(45deg); }
.account-theme-disclosure > summary span { display:grid; gap:4px; }
.account-theme-disclosure > summary strong { font-family:Georgia,serif; font-size:22px; font-weight:600; color:var(--ink); }
.account-theme-disclosure > summary small { color:var(--muted); font-size:13px; }
.account-theme-disclosure[open] .appearance-picker { margin-top:20px; }
.theme-garden .appearance-mini::after { content:""; pointer-events:none; background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180' viewBox='0 0 180 180' fill='none' stroke='%237fa38a' stroke-opacity='.22' stroke-width='1.5'%3E%3Cpath d='M12 68c30-10 44-2 58 18 9 13 22 18 39 15M70 86c-5-18 1-31 17-38 3 16-2 28-17 38Zm15-5c2-19 13-29 31-30-1 16-12 26-31 30Zm16 19c7-17 20-23 37-18-6 15-19 21-37 18ZM27 135c13-13 28-17 46-12m-36 4c-1-12 4-20 15-24 2 11-3 19-15 24Zm13 3c6-11 15-14 27-10-5 10-14 14-27 10Z'/%3E%3Ccircle cx='137' cy='48' r='7'/%3E%3Cpath d='M137 36v5m0 14v5m-12-12h5m14 0h5m-20-8 4 4m12 12 4 4m0-20-4 4m-12 12-4 4'/%3E%3Ccircle cx='137' cy='48' r='2' fill='%237fa38a'/%3E%3C/svg%3E"); background-repeat:repeat; }
.theme-garden .appearance-mini::after { position:absolute; inset:23px 0 0; opacity:.5; }
html[data-theme="garden"] #app { background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='190' viewBox='0 0 240 190' fill='none'%3E%3Cg stroke='%2381a78b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 174C45 130 64 111 103 93c37-18 57-38 78-77M52 133c-3-23 8-39 32-46 4 22-6 38-32 46Zm32-27c5-24 21-36 47-33-3 22-19 34-47 33Zm23-15c1-21 13-33 35-35 0 20-12 32-35 35ZM21 158c-1-18 8-30 27-34 2 17-7 29-27 34Zm114-71c3-19 15-29 36-28-2 18-14 28-36 28Z'/%3E%3C/g%3E%3Cg stroke='%23d894a6' stroke-width='2' fill='%23f8dbe3'%3E%3Cpath d='M192 32c-9-13 4-22 12-12 8-10 21-1 12 12 13-2 16 13 2 16 6 12-8 20-16 9-8 11-22 3-16-9-14-3-11-18 2-16Z'/%3E%3Cpath d='M122 139c-7-10 3-17 9-9 7-8 16-1 9 9 10-1 12 10 2 12 4 9-6 14-12 6-6 8-16 2-12-6-10-2-8-13 2-12Z'/%3E%3C/g%3E%3Cg fill='%23d894a6'%3E%3Ccircle cx='204' cy='38' r='3'/%3E%3Ccircle cx='134' cy='145' r='2.5'/%3E%3C/g%3E%3C/svg%3E"),url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='190' viewBox='0 0 240 190' fill='none'%3E%3Cg stroke='%2381a78b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 174C45 130 64 111 103 93c37-18 57-38 78-77M52 133c-3-23 8-39 32-46 4 22-6 38-32 46Zm32-27c5-24 21-36 47-33-3 22-19 34-47 33Zm23-15c1-21 13-33 35-35 0 20-12 32-35 35ZM21 158c-1-18 8-30 27-34 2 17-7 29-27 34Zm114-71c3-19 15-29 36-28-2 18-14 28-36 28Z'/%3E%3C/g%3E%3Cg stroke='%23d894a6' stroke-width='2' fill='%23f8dbe3'%3E%3Cpath d='M192 32c-9-13 4-22 12-12 8-10 21-1 12 12 13-2 16 13 2 16 6 12-8 20-16 9-8 11-22 3-16-9-14-3-11-18 2-16Z'/%3E%3Cpath d='M122 139c-7-10 3-17 9-9 7-8 16-1 9 9 10-1 12 10 2 12 4 9-6 14-12 6-6 8-16 2-12-6-10-2-8-13 2-12Z'/%3E%3C/g%3E%3Cg fill='%23d894a6'%3E%3Ccircle cx='204' cy='38' r='3'/%3E%3Ccircle cx='134' cy='145' r='2.5'/%3E%3C/g%3E%3C/svg%3E"); background-position:top right,bottom left; background-repeat:no-repeat; background-size:240px 190px; }
.theme-lavender .appearance-mini-header { background-image:radial-gradient(circle at 22px 12px,rgba(255,255,255,.38) 0 3px,transparent 3.5px),radial-gradient(circle at 51px 12px,rgba(255,255,255,.3) 0 3px,transparent 3.5px); background-size:64px 23px; }
.profile-details { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; }
.profile-details .note { grid-column:1 / -1; margin:0; }
.customer-profile { max-width:1050px; }
.customer-profile h1 { font-family:Georgia,serif; font-size:30px; font-weight:500; }
.customer-profile h2 { font-size:18px; }
.customer-profile .saved { color:var(--ok); background:var(--ok-bg); padding:12px; border-radius:8px; }
/* The couple portal shares the same palettes and section colour roles. */
.portal-header { background:var(--wine); color:var(--header-ink); border-color:var(--line); }
.portal-label, .account .text-button { color:var(--header-ink); }
.portal-nav { background:var(--sidebar-bg); }
.portal-nav button[aria-current=page] { background:var(--celadon); color:var(--forest); }
.hero { background:var(--wine); color:var(--header-ink); }
.card, .login, .secondary, .wedding-selector select { background:var(--paper); color:var(--ink); }
.card[data-tone=rose] { background:var(--tone-rose); }
.card[data-tone=mint] { background:var(--tone-mint); }
.card[data-tone=blue] { background:var(--tone-blue); }
.card[data-tone=lilac] { background:var(--tone-lilac); }
.portal-header ~ #portal .primary { background:var(--navy); color:var(--button-ink); }
.login input { border-color:var(--line); background:var(--paper); }
.time-block { color:var(--accent); }
.badge.confirmed, .badge.paid { background:var(--ok-bg); color:var(--ok); }
.badge.overdue { background:var(--drop-bg); color:var(--drop); }
.badge.cancelled, .badge.waived { background:var(--wash); color:var(--muted); }
.badge { background:var(--warn-bg); color:var(--warn); }
@media(max-width:600px) {
  .appearance-options { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .appearance-choice { padding:8px; }
  .overview-facts { padding:16px; }
  .customer-profile .page-head { flex-wrap:wrap; }
  .account { gap:10px; }
  .profile-details { grid-template-columns:1fr; }
}
@media print {
  :root { --bg:#fff!important; --paper:#fff!important; --ink:#000!important; --muted:#444!important; --line:#ccc!important; --navy:#000!important; }
  .appearance-picker { display:none; }
}

/* Profile sign-in confirmation uses one compact modal across all themes. */
.profile-login-dialog { width:min(480px,calc(100vw - 32px)); max-height:calc(100dvh - 40px); box-sizing:border-box; overflow:auto; border:1px solid var(--line); border-radius:16px; background:var(--paper); color:var(--ink); padding:24px; }
.profile-login-dialog::backdrop { background:rgba(0,0,0,.4); }
.profile-login-dialog form { display:grid; gap:16px; }
.profile-login-dialog h2, .profile-login-dialog p { margin:0; }
.profile-login-dialog p { line-height:1.5; }
.profile-login-dialog .note { font-size:13px; }
.profile-login-dialog [hidden], .profile-login-dialog .error:empty { display:none !important; }
.profile-login-dialog .actions { display:flex; justify-content:flex-end; flex-wrap:wrap; gap:12px; }
.profile-login-dialog input { min-width:0; }

.customer-source-options { flex:1; align-items:center; }
.customer-source-options .customer-source-existing { margin-left:auto; border:0; background:transparent; box-shadow:none; color:var(--muted); padding:6px 0; }
.customer-source-options .customer-source-existing:hover, .customer-source-options .customer-source-existing[aria-pressed="true"] { color:var(--ink); text-decoration:underline; }
