.notification-panel {
  --notification-pending: #965900;
  --notification-pending-soft: #fff5e2;
  --notification-paid: #166849;
  --notification-paid-soft: #eaf7f0;
  --notification-review: #285fa1;
  --notification-review-soft: #edf4ff;
  min-width: 0;
}
.notification-panel .notification-heading { align-items: center; gap: 20px; margin-bottom: 24px; }
.notification-heading-copy { display: flex; align-items: flex-start; gap: 14px; min-width: 0; }
.notification-heading-icon { display: grid; place-items: center; flex: 0 0 48px; height: 48px; border-radius: 15px; background: var(--brand-soft, #ede8fd); color: var(--mint-dark); }
.notification-panel svg { display: block; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.notification-heading-icon svg { width: 24px; height: 24px; }
.notification-panel .notification-heading h2 { font-size: 28px; line-height: 1.2; letter-spacing: -.8px; }
.notification-panel .notification-heading .form-note { margin: 7px 0 0; max-width: 52ch; font-size: 13px; line-height: 1.6; }
.notification-unread { flex-shrink: 0; border: 1px solid var(--line); border-radius: 99px; padding: 7px 11px; color: var(--mint-dark); background: var(--brand-soft, #ede8fd); font-size: 12px; font-weight: 700; }
.notification-panel .notification-tools { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0; padding: 0 0 16px; border: 0; }
.notification-panel .notification-tools .text-button { display: inline-flex; justify-content: center; align-items: center; flex: 0 0 auto; gap: 7px; min-height: 42px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); color: var(--muted); font-size: 12px; font-weight: 650; line-height: 1.4; white-space: nowrap; }
.notification-panel .notification-tools #refresh-notifications { color: var(--mint-dark); }
.notification-panel .text-button:hover:not(:disabled) { border-color: var(--mint); background: var(--brand-soft, #ede8fd); }
.notification-panel button:focus-visible { outline: 3px solid var(--mint); outline-offset: 3px; }
.notification-panel .text-button:disabled { opacity: 1; background: var(--paper); color: var(--muted); cursor: default; }
.notification-panel [hidden] { display: none !important; }
.notification-sync-row { display: flex; align-items: flex-start; gap: 7px; padding: 0 0 20px; margin-bottom: 22px; border-bottom: 1px solid var(--line); color: var(--muted); }
.notification-sync-row svg { margin-top: 1px; width: 14px; height: 14px; }
.notification-panel #notification-sync { margin: 0; font-size: 12px; line-height: 1.6; }
.notification-panel .notification-list { gap: 14px; }
.notification-panel .notification-item { --notification-tone: var(--notification-pending); --notification-tint: var(--notification-pending-soft); display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; gap: 16px; align-items: start; padding: 22px; border: 1px solid var(--line); border-left: 3px solid var(--notification-tone); border-radius: 15px; background: var(--card); text-align: left; }
.notification-panel .notification-item.paid { --notification-tone: var(--notification-paid); --notification-tint: var(--notification-paid-soft); }
.notification-panel .notification-item.review { --notification-tone: var(--notification-review); --notification-tint: var(--notification-review-soft); }
.notification-panel .notification-item.cancelled,
.notification-panel .notification-item.rescheduled { --notification-tone: var(--muted); --notification-tint: var(--paper); }
.notification-panel .notification-item.read { opacity: 1; }
.notification-panel .notification-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 13px; background: var(--notification-tint); color: var(--notification-tone); }
.notification-panel .notification-copy { display: grid; gap: 8px; min-width: 0; }
.notification-labels { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.notification-kind { color: var(--notification-tone); font-size: 11px; font-weight: 750; }
.notification-read-state { display: inline-flex; align-items: center; gap: 5px; padding: 2px 7px; border: 1px solid var(--line); border-radius: 6px; color: var(--mint-dark); font-size: 10px; font-weight: 650; }
.notification-read-state::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.notification-item.read .notification-read-state { color: var(--muted); }
.notification-item.read .notification-read-state::before { display: none; }
.notification-panel .notification-title { margin: 0; color: var(--ink); font-size: 16px; font-weight: 700; line-height: 1.4; letter-spacing: -.25px; overflow-wrap: anywhere; }
.notification-panel .notification-customer { color: var(--ink); font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; }
.notification-meta { display: flex; flex-wrap: wrap; gap: 7px 12px; align-items: center; color: var(--muted); font-size: 11px; }
.notification-meta span { overflow-wrap: anywhere; min-width: 0; }
.notification-code { padding: 3px 7px; border-radius: 5px; background: var(--paper); font-weight: 650; }
.notification-panel .notification-message { margin: 2px 0 0; color: var(--muted); font-size: 12px; line-height: 1.7; max-width: 65ch; overflow-wrap: anywhere; }
.notification-time { display: block; color: var(--muted); font-size: 11px; line-height: 1.6; }
.notification-amount { display: grid; gap: 4px; justify-items: end; padding-top: 2px; min-width: 0; }
.notification-amount span { color: var(--muted); font-size: 10px; }
.notification-amount b { color: var(--ink); font-size: 21px; font-weight: 750; line-height: 1.3; letter-spacing: -.5px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.notification-panel .notification-actions { grid-column: 2 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding-top: 16px; margin-top: 0; border-top: 1px solid var(--line); }
#owner-view .notification-panel .notification-actions .text-button { display: inline-flex; justify-content: center; align-items: center; min-height: 44px; padding: 10px 13px; border: 1px solid var(--line); border-radius: 9px; color: var(--muted); font-size: 12px; font-weight: 650; line-height: 1.4; }
#owner-view .notification-panel .notification-actions .notification-open { border-color: var(--mint-dark); background: var(--mint-dark); color: #fff; }
#owner-view .notification-panel .notification-actions .notification-open:hover { border-color: var(--ink); background: var(--ink); }
#owner-view .notification-panel .notification-actions .notification-payment { color: var(--mint-dark); }
.notification-panel .notification-empty { display: grid; justify-items: center; gap: 10px; padding: 42px 18px; border: 1px dashed var(--line); border-radius: 15px; background: var(--paper); text-align: center; }
.notification-empty .notification-heading-icon { width: 48px; }
.notification-panel .notification-empty h3 { margin: 6px 0 0; font-size: 17px; }
.notification-panel .notification-empty p { margin: 0; max-width: 40ch; color: var(--muted); font-size: 12px; line-height: 1.7; }
@media (max-width: 720px) {
  .notification-panel .notification-heading { align-items: flex-start; flex-direction: column; gap: 14px; }
}
@media (max-width: 600px) {
  .notification-panel { padding: 20px 16px; }
  .notification-panel .notification-heading h2 { font-size: 25px; }
  .notification-heading-copy { gap: 11px; }
  .notification-heading-icon { flex-basis: 42px; height: 42px; border-radius: 13px; }
  .notification-panel .notification-tools { gap: 7px; }
  .notification-panel .notification-tools .text-button { min-height: 44px; padding: 10px; }
  .notification-panel .notification-item { grid-template-columns: 34px minmax(0, 1fr); gap: 12px; padding: 16px 13px; border-radius: 12px; }
  .notification-panel .notification-icon { width: 34px; height: 34px; border-radius: 10px; }
  .notification-panel .notification-title { font-size: 15px; }
  .notification-amount { grid-column: 2; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; padding-top: 0; }
  .notification-amount b { font-size: 19px; }
  .notification-panel .notification-actions { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr); padding-top: 13px; }
  .notification-panel .notification-actions .text-button { min-height: 44px; width: 100%; }
  .notification-sync-row { margin-bottom: 18px; padding-bottom: 18px; }
}
