/* Dance Bag — personal planner look built on Bootstrap 5.3.
   Brand colors follow dancebag.co (pink #ff4fb8, purple #6c3cff, mint #43dfd4)
   softened into blush, lavender and cream, with text colors tuned for WCAG AA contrast. */

:root {
  --db-pink: #ff4fb8;
  --db-purple: #6c3cff;
  --db-mint: #43dfd4;
  --db-ink: #272238;
  --db-dark: #171126;
  --db-muted: #625a72;
  --db-magenta: #b8237c;           /* accessible pink for text & buttons (5.3:1 on white) */
  --db-violet: #5a2fe0;            /* accessible purple (6.6:1 on white) */
  --db-cream: #fffaf6;
  --db-blush: #fff1f8;
  --db-lavender: #f3efff;
  --db-mint-soft: #e8fbf9;
  --db-card: #ffffff;
  --db-border: #efe6f2;
  --db-shadow: 0 6px 24px rgba(108, 60, 255, 0.08);
  --db-gradient: linear-gradient(135deg, #c2297f 0%, #6c3cff 100%);
  --db-bg: radial-gradient(circle at 0% 0%, rgba(255, 79, 184, 0.10), transparent 35%),
           radial-gradient(circle at 100% 0%, rgba(67, 223, 212, 0.12), transparent 35%),
           linear-gradient(180deg, #fffaf6 0%, #faf7ff 100%);
  --db-sidebar-w: 248px;
  --db-sidebar-collapsed-w: 78px;
  --db-radius: 1.1rem;
  --db-bottom-nav-h: 68px;

  --bs-body-font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --bs-body-color: var(--db-ink);
  --bs-body-bg: var(--db-cream);
  --bs-primary: #b8237c;
  --bs-primary-rgb: 184, 35, 124;
  --bs-link-color: #8f1d61;
  --bs-link-color-rgb: 143, 29, 97;
  --bs-link-hover-color: #5a2fe0;
  --bs-border-radius: 0.75rem;
  --bs-border-radius-lg: 1rem;
  --bs-border-color: #e9dfee;
  --bs-secondary-color: #625a72;
  --bs-focus-ring-color: rgba(108, 60, 255, 0.35);
}

[data-bs-theme="dark"] {
  --db-ink: #f2eefb;
  --db-muted: #b7aecb;
  --db-magenta: #ff7cc8;
  --db-violet: #b9a2ff;
  --db-cream: #15111f;
  --db-blush: #2a1a2a;
  --db-lavender: #221b37;
  --db-mint-soft: #133331;
  --db-card: #1e1830;
  --db-border: #342b4a;
  --db-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
  --db-bg: radial-gradient(circle at 0% 0%, rgba(255, 79, 184, 0.10), transparent 35%),
           radial-gradient(circle at 100% 0%, rgba(67, 223, 212, 0.08), transparent 35%),
           linear-gradient(180deg, #15111f 0%, #120f1b 100%);
  --bs-body-color: var(--db-ink);
  --bs-body-bg: #15111f;
  --bs-primary: #ff7cc8;
  --bs-primary-rgb: 255, 124, 200;
  --bs-link-color: #ff9ad4;
  --bs-link-color-rgb: 255, 154, 212;
  --bs-link-hover-color: #c9b6ff;
  --bs-border-color: #342b4a;
  --bs-secondary-color: #b7aecb;
  --bs-tertiary-bg: #221b37;
}

html, body { min-height: 100%; }
body {
  background: var(--db-bg);
  background-attachment: fixed;
  color: var(--db-ink);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

h1, h2, h3, h4, .h1, .h2, .h3, .h4 { font-weight: 800; letter-spacing: -0.02em; color: var(--db-ink); }
.text-muted, .text-body-secondary { color: var(--db-muted) !important; }
a { text-underline-offset: 2px; }
:focus-visible { outline: 3px solid rgba(108, 60, 255, 0.45); outline-offset: 2px; }
.visually-hidden-focusable:focus { position: fixed !important; top: .5rem; left: .5rem; z-index: 2000; background: var(--db-card); padding: .5rem 1rem; border-radius: .5rem; }

/* ---------- Buttons ---------- */
.btn { border-radius: 999px; font-weight: 650; padding: .6rem 1.15rem; min-height: 44px; }
.btn-sm { min-height: 36px; padding: .35rem .85rem; }
.btn-lg { min-height: 52px; }
.btn-primary {
  --bs-btn-bg: #b8237c; --bs-btn-border-color: transparent; --bs-btn-hover-bg: #9b1d68; --bs-btn-hover-border-color: transparent;
  --bs-btn-active-bg: #861a5a; --bs-btn-disabled-bg: #b8237c; --bs-btn-disabled-border-color: transparent;
  background-image: var(--db-gradient); border: none; color: #fff; box-shadow: 0 8px 22px rgba(108, 60, 255, 0.22);
}
.btn-primary:hover, .btn-primary:focus-visible { color: #fff; filter: brightness(0.95); transform: translateY(-1px); }
.btn-outline-primary {
  --bs-btn-color: var(--db-magenta); --bs-btn-border-color: rgba(184, 35, 124, 0.45);
  --bs-btn-hover-bg: var(--db-blush); --bs-btn-hover-color: var(--db-magenta); --bs-btn-hover-border-color: var(--db-magenta);
  --bs-btn-active-bg: var(--db-blush); --bs-btn-active-color: var(--db-magenta);
}
.btn-soft {
  background: var(--db-lavender); color: var(--db-violet); border: 1px solid transparent;
}
.btn-soft:hover, .btn-soft:focus-visible { background: color-mix(in srgb, var(--db-lavender) 80%, var(--db-purple)); color: var(--db-violet); }
.btn-ghost { background: transparent; border: none; color: var(--db-muted); }
.btn-ghost:hover { background: var(--db-lavender); color: var(--db-ink); }
.btn-icon { width: 44px; height: 44px; padding: 0; display: inline-grid; place-items: center; border-radius: 50%; }
.btn-icon.btn-sm { width: 36px; height: 36px; min-height: 36px; }

/* ---------- Forms ---------- */
.form-control, .form-select { border-radius: .8rem; min-height: 46px; border-color: var(--bs-border-color); background-color: var(--db-card); color: var(--db-ink); }
textarea.form-control { min-height: 90px; }
.form-control:focus, .form-select:focus { border-color: #a585ff; box-shadow: 0 0 0 .2rem rgba(108, 60, 255, 0.18); }
.form-label { font-weight: 650; font-size: .92rem; margin-bottom: .3rem; }
.form-check-input { width: 1.35em; height: 1.35em; margin-top: .1em; cursor: pointer; }
.form-check-input:checked { background-color: #b8237c; border-color: #b8237c; }
.form-switch .form-check-input { width: 2.4em; }
.form-text { color: var(--db-muted); }
.invalid-feedback { font-weight: 600; }

/* ---------- Cards ---------- */
.card, .db-card {
  background: var(--db-card); border: 1px solid var(--db-border); border-radius: var(--db-radius);
  box-shadow: var(--db-shadow); color: var(--db-ink);
}
.card-header { background: transparent; border-bottom-color: var(--db-border); font-weight: 750; }
.db-card { padding: 1.15rem 1.25rem; }
.db-card-title { display: flex; align-items: center; gap: .55rem; font-weight: 800; font-size: 1.02rem; margin-bottom: .85rem; }
.db-card-title .bi { width: 34px; height: 34px; border-radius: 11px; display: inline-grid; place-items: center; background: var(--db-blush); color: var(--db-magenta); font-size: 1.05rem; flex: none; }
.db-card-title .ms-auto { font-weight: 650; font-size: .88rem; }
.tint-lavender .bi { background: var(--db-lavender); color: var(--db-violet); }
.tint-mint .bi { background: var(--db-mint-soft); color: #0f6f68; }
[data-bs-theme="dark"] .tint-mint .bi { color: var(--db-mint); }

.list-row {
  display: flex; align-items: center; gap: .75rem; padding: .7rem .2rem; border-bottom: 1px solid var(--db-border);
  color: inherit; text-decoration: none; min-height: 52px;
}
.list-row:last-child { border-bottom: none; }
a.list-row:hover, button.list-row:hover { background: color-mix(in srgb, var(--db-lavender) 60%, transparent); border-radius: .7rem; }
button.list-row { width: 100%; background: none; border: none; border-bottom: 1px solid var(--db-border); text-align: left; }
.list-row .meta { color: var(--db-muted); font-size: .86rem; }
.list-row .grow { flex: 1; min-width: 0; }
.truncate { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.dot { width: .7rem; height: .7rem; border-radius: 50%; display: inline-block; flex: none; }
.avatar {
  width: 44px; height: 44px; border-radius: 50%; display: inline-grid; place-items: center; font-weight: 800; color: #fff;
  flex: none; overflow: hidden; background: var(--db-gradient); font-size: 1.05rem;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-lg { width: 84px; height: 84px; font-size: 2rem; }
.chip {
  display: inline-flex; align-items: center; gap: .35rem; padding: .2rem .65rem; border-radius: 999px; font-size: .8rem; font-weight: 650;
  background: var(--db-lavender); color: var(--db-violet); white-space: nowrap;
}
.chip .dot { width: .55rem; height: .55rem; }

/* Status badges (text colors meet 4.5:1 on their tints) */
.badge-status { padding: .3rem .65rem; border-radius: 999px; font-weight: 700; font-size: .75rem; white-space: nowrap; }
.st-unpaid, .st-not_ordered { background: #f1eef6; color: #4f4761; }
.st-partial, .st-ordered { background: #fff3d6; color: #7a4f00; }
.st-paid, .st-ready, .st-packed { background: #dcf7f2; color: #0b5d55; }
.st-overdue, .st-needs_alterations { background: #ffe3ec; color: #9c1745; }
.st-received { background: #e7e0ff; color: #4523b8; }
[data-bs-theme="dark"] .st-unpaid, [data-bs-theme="dark"] .st-not_ordered { background: #2e2840; color: #d9d2ea; }
[data-bs-theme="dark"] .st-partial, [data-bs-theme="dark"] .st-ordered { background: #3a2e10; color: #ffd98a; }
[data-bs-theme="dark"] .st-paid, [data-bs-theme="dark"] .st-ready, [data-bs-theme="dark"] .st-packed { background: #0f3532; color: #8ff0e3; }
[data-bs-theme="dark"] .st-overdue, [data-bs-theme="dark"] .st-needs_alterations { background: #3e1525; color: #ffb3cb; }
[data-bs-theme="dark"] .st-received { background: #2a2150; color: #cfc2ff; }

.progress { height: .7rem; border-radius: 999px; background: var(--db-lavender); }
.progress-bar { background: var(--db-gradient); border-radius: 999px; }
.progress-ring { --p: 0; width: 74px; height: 74px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: conic-gradient(var(--db-magenta) calc(var(--p) * 1%), var(--db-lavender) 0); }
.progress-ring span { width: 58px; height: 58px; border-radius: 50%; background: var(--db-card); display: grid; place-items: center; font-weight: 800; font-size: .95rem; }

/* ---------- App shell ---------- */
.app-shell { min-height: 100vh; }
.sidebar {
  position: fixed; inset: 0 auto 0 0; width: var(--db-sidebar-w); z-index: 1030; padding: 1rem .8rem;
  background: color-mix(in srgb, var(--db-card) 88%, transparent); backdrop-filter: blur(12px);
  border-right: 1px solid var(--db-border); display: flex; flex-direction: column; gap: .25rem; transition: width .2s ease;
  overflow-y: auto;
}
.brand { display: flex; align-items: center; gap: .6rem; font-weight: 900; letter-spacing: -.04em; font-size: 1.25rem; color: var(--db-ink); text-decoration: none; padding: .35rem .5rem 1rem; }
.brand-badge { width: 38px; height: 38px; border-radius: 12px; display: inline-grid; place-items: center; background: linear-gradient(135deg, var(--db-pink), var(--db-purple)); color: #fff; box-shadow: 0 8px 24px rgba(108, 60, 255, .25); flex: none; font-size: 1.1rem; }
.nav-item-link {
  display: flex; align-items: center; gap: .85rem; padding: .7rem .85rem; border-radius: .9rem; color: var(--db-muted);
  text-decoration: none; font-weight: 650; min-height: 46px; white-space: nowrap;
}
.nav-item-link .bi { font-size: 1.2rem; width: 1.4rem; text-align: center; flex: none; }
.nav-item-link:hover { background: var(--db-lavender); color: var(--db-ink); }
.nav-item-link.active { background: var(--db-blush); color: var(--db-magenta); }
.nav-section { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--db-muted); font-weight: 750; padding: .9rem .85rem .3rem; }
.sidebar-footer { margin-top: auto; padding-top: .6rem; }

body.sidebar-collapsed .sidebar { width: var(--db-sidebar-collapsed-w); }
body.sidebar-collapsed .sidebar .label, body.sidebar-collapsed .sidebar .nav-section, body.sidebar-collapsed .brand .label { display: none; }
body.sidebar-collapsed .nav-item-link { justify-content: center; padding: .7rem; }
body.sidebar-collapsed .main { margin-left: var(--db-sidebar-collapsed-w); }

.main { margin-left: var(--db-sidebar-w); min-height: 100vh; transition: margin-left .2s ease; display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: 0; z-index: 1020; display: flex; align-items: center; gap: .6rem; padding: .75rem 1.5rem;
  background: color-mix(in srgb, var(--db-cream) 82%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid transparent;
}
.topbar.scrolled { border-bottom-color: var(--db-border); }
.topbar h1 { font-size: 1.35rem; margin: 0; }
.content { padding: 1.25rem 1.5rem 3rem; width: 100%; max-width: 1280px; }
.page-header { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; margin-bottom: 1.1rem; }
.page-header h2 { margin: 0; font-size: 1.5rem; }
.page-header .actions { margin-left: auto; display: flex; flex-wrap: wrap; gap: .5rem; }

.bell-count { position: absolute; top: 4px; right: 4px; min-width: 18px; height: 18px; border-radius: 9px; background: #c2185b; color: #fff; font-size: .7rem; font-weight: 800; display: grid; place-items: center; padding: 0 4px; }

.bottom-nav {
  display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 1030; height: calc(var(--db-bottom-nav-h) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom); background: color-mix(in srgb, var(--db-card) 94%, transparent); backdrop-filter: blur(14px);
  border-top: 1px solid var(--db-border);
}
.bottom-nav a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; text-decoration: none;
  color: var(--db-muted); font-size: .72rem; font-weight: 700; min-width: 0; }
.bottom-nav a .bi { font-size: 1.35rem; }
.bottom-nav a.active { color: var(--db-magenta); }

.fab {
  position: fixed; right: 1.5rem; bottom: 1.5rem; z-index: 1035; width: 60px; height: 60px; border-radius: 50%; border: none;
  background: var(--db-gradient); color: #fff; font-size: 1.8rem; box-shadow: 0 12px 30px rgba(108, 60, 255, .35); display: grid; place-items: center;
}
.fab:hover { filter: brightness(1.05); transform: translateY(-1px); }

@media (max-width: 991.98px) {
  .sidebar { display: none; }
  .main, body.sidebar-collapsed .main { margin-left: 0; }
  .bottom-nav { display: flex; }
  .content { padding: 1rem 1rem calc(var(--db-bottom-nav-h) + 6rem + env(safe-area-inset-bottom)); }
  .topbar { padding: .6rem 1rem; padding-top: calc(.6rem + env(safe-area-inset-top)); }
  .topbar h1 { font-size: 1.15rem; }
  .fab { bottom: calc(var(--db-bottom-nav-h) + 1rem + env(safe-area-inset-bottom)); right: 1rem; width: 56px; height: 56px; }
  .page-header h2 { font-size: 1.3rem; }
  .page-header .actions { margin-left: 0; width: 100%; }
}

/* ---------- Quick add sheet ---------- */
.quick-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .65rem; }
.quick-grid button { border: 1px solid var(--db-border); background: var(--db-card); border-radius: 1rem; padding: 1rem .5rem; display: flex; flex-direction: column;
  align-items: center; gap: .4rem; font-weight: 700; color: var(--db-ink); min-height: 92px; }
.quick-grid button .bi { font-size: 1.5rem; color: var(--db-magenta); }
.quick-grid button:hover { background: var(--db-blush); }
@media (max-width: 400px) { .quick-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Modals & toasts ---------- */
.modal-content { border-radius: 1.4rem; border: none; background: var(--db-card); color: var(--db-ink); }
.modal-header { border-bottom-color: var(--db-border); }
.modal-footer { border-top-color: var(--db-border); }
.modal-title { font-weight: 800; }
@media (max-width: 575.98px) {
  .modal-dialog.modal-sheet { margin: 0; position: fixed; bottom: 0; left: 0; right: 0; max-width: none; }
  .modal-sheet .modal-content { border-radius: 1.4rem 1.4rem 0 0; max-height: 92vh; padding-bottom: env(safe-area-inset-bottom); }
  .modal-sheet .modal-body { overflow-y: auto; }
  .modal.fade .modal-dialog.modal-sheet { transform: translateY(40px); }
}
.toast-container { z-index: 2000; }
.toast { border-radius: 1rem; border: none; box-shadow: 0 12px 30px rgba(0, 0, 0, .16); background: var(--db-card); color: var(--db-ink); }
.toast .bi { font-size: 1.2rem; }
@media (max-width: 991.98px) { .toast-container { bottom: calc(var(--db-bottom-nav-h) + .5rem) !important; } }

/* ---------- Empty states & loaders ---------- */
.empty-state { text-align: center; padding: 2rem 1rem; color: var(--db-muted); }
.empty-state .bi { font-size: 2.4rem; color: var(--db-magenta); background: var(--db-blush); width: 72px; height: 72px; border-radius: 22px; display: inline-grid; place-items: center; margin-bottom: .8rem; }
.empty-state h3 { font-size: 1.1rem; color: var(--db-ink); }
.empty-state.compact { padding: 1rem .5rem; }
.empty-state.compact .bi { width: 48px; height: 48px; font-size: 1.4rem; border-radius: 15px; }
.page-loader { display: grid; place-items: center; padding: 4rem 1rem; color: var(--db-muted); }
.skeleton { background: linear-gradient(90deg, var(--db-lavender), var(--db-blush), var(--db-lavender)); background-size: 200% 100%; animation: shimmer 1.3s infinite; border-radius: .7rem; }
@keyframes shimmer { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* ---------- Connectivity banner ---------- */
.net-banner { position: fixed; top: 0; left: 0; right: 0; z-index: 2100; text-align: center; padding: .45rem 1rem; font-weight: 700; font-size: .9rem;
  background: #3b2a5c; color: #fff; padding-top: calc(.45rem + env(safe-area-inset-top)); }
.net-banner.online { background: #0b5d55; }

/* ---------- Dashboard ---------- */
.hero-card { background: linear-gradient(135deg, rgba(255, 79, 184, .14), rgba(108, 60, 255, .12) 60%, rgba(67, 223, 212, .14)); border: 1px solid var(--db-border); }
.countdown { display: flex; gap: .6rem; }
.countdown div { background: var(--db-card); border-radius: .9rem; padding: .45rem .7rem; text-align: center; min-width: 64px; border: 1px solid var(--db-border); }
.countdown strong { display: block; font-size: 1.4rem; line-height: 1.1; }
.countdown small { color: var(--db-muted); font-weight: 650; font-size: .72rem; text-transform: uppercase; }
.time-col { width: 74px; flex: none; font-weight: 750; font-size: .88rem; }
.dancer-filter { display: flex; gap: .5rem; overflow-x: auto; padding-bottom: .25rem; scrollbar-width: none; }
.dancer-filter::-webkit-scrollbar { display: none; }
.dancer-filter .btn { white-space: nowrap; }
.dancer-filter .btn.active { background: var(--db-ink); color: var(--db-card); border-color: var(--db-ink); }

/* ---------- Checklists ---------- */
.check-item { display: flex; align-items: flex-start; gap: .75rem; padding: .7rem .5rem; border-bottom: 1px solid var(--db-border); min-height: 54px; }
.check-item .form-check-input { width: 1.6em; height: 1.6em; flex: none; margin: .05rem 0 0; border-radius: .5em; }
.check-item.done .label { text-decoration: line-through; color: var(--db-muted); }
.check-item .label { font-weight: 600; }
.check-item .tools { margin-left: auto; display: flex; gap: .15rem; flex: none; }
.check-cat { font-size: .78rem; text-transform: uppercase; letter-spacing: .07em; font-weight: 800; color: var(--db-muted); padding: 1rem .5rem .25rem; }

/* ---------- Calendar ---------- */
.fc { --fc-border-color: var(--db-border); --fc-page-bg-color: var(--db-card); --fc-neutral-bg-color: var(--db-lavender);
  --fc-today-bg-color: color-mix(in srgb, var(--db-blush) 75%, transparent); --fc-event-border-color: transparent;
  --fc-button-bg-color: var(--db-lavender); --fc-button-border-color: transparent; --fc-button-text-color: var(--db-violet);
  --fc-button-hover-bg-color: #e3dafe; --fc-button-hover-border-color: transparent; --fc-button-active-bg-color: #5a2fe0;
  --fc-button-active-border-color: transparent; --fc-list-event-hover-bg-color: var(--db-lavender); }
.fc .fc-button { border-radius: 999px !important; font-weight: 700; text-transform: capitalize; padding: .45rem .85rem; margin: 0 .12rem !important; }
.fc .fc-button-primary:not(:disabled).fc-button-active { color: #fff; }
.fc .fc-toolbar-title { font-weight: 800; font-size: 1.2rem; }
.fc .fc-event { border-radius: .45rem; padding: 1px 3px; font-weight: 650; cursor: pointer; }
.fc .fc-daygrid-day-number, .fc .fc-col-header-cell-cushion { color: var(--db-ink); text-decoration: none; }
.fc-theme-standard td, .fc-theme-standard th { border-color: var(--db-border); }
@media (max-width: 575.98px) {
  .fc .fc-toolbar { flex-direction: column; gap: .5rem; }
  .fc .fc-toolbar-title { font-size: 1.05rem; }
  .fc .fc-button { padding: .4rem .6rem; font-size: .85rem; }
}
.cat-legend { display: flex; flex-wrap: wrap; gap: .4rem; }
.cat-legend .btn { font-size: .8rem; min-height: 34px; padding: .25rem .7rem; }
.cat-legend .btn[aria-pressed="false"] { opacity: .45; }

/* ---------- Auth ---------- */
.auth-wrap { min-height: 100vh; display: grid; place-items: center; padding: 1.5rem 1rem; }
.auth-card { width: 100%; max-width: 440px; padding: 2rem 1.75rem; }
.auth-card .brand { justify-content: center; font-size: 1.5rem; padding-bottom: .5rem; }
.auth-tag { text-align: center; color: var(--db-muted); margin-bottom: 1.5rem; }
.stepper { display: flex; gap: .4rem; margin-bottom: 1.25rem; }
.stepper span { flex: 1; height: 6px; border-radius: 3px; background: var(--db-lavender); }
.stepper span.on { background: var(--db-gradient); }

/* ---------- Misc ---------- */
.stat { padding: 1rem 1.1rem; }
.stat .label { color: var(--db-muted); font-weight: 650; font-size: .85rem; }
.stat .value { font-size: 1.6rem; font-weight: 850; letter-spacing: -.02em; }
.bar-chart { display: flex; align-items: flex-end; gap: 6px; height: 140px; }
.bar-chart .bar { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 4px; min-width: 0; }
.bar-chart .bar div { width: 100%; max-width: 34px; border-radius: 8px 8px 3px 3px; background: var(--db-gradient); min-height: 3px; }
.bar-chart .bar small { font-size: .68rem; color: var(--db-muted); font-weight: 700; }
.hbar { height: .6rem; border-radius: 999px; background: var(--db-lavender); overflow: hidden; }
.hbar div { height: 100%; background: var(--db-gradient); border-radius: 999px; }
.article-body { line-height: 1.7; font-size: 1.05rem; max-width: 720px; }
.article-body h2 { font-size: 1.3rem; margin-top: 1.5rem; }
.photo-thumb { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: .9rem; background: var(--db-lavender); }
.photo-placeholder { width: 100%; aspect-ratio: 4 / 3; border-radius: .9rem; background: var(--db-lavender); display: grid; place-items: center; color: var(--db-violet); font-size: 2rem; }
.kv { display: grid; grid-template-columns: minmax(120px, 40%) 1fr; gap: .35rem 1rem; }
.kv dt { color: var(--db-muted); font-weight: 650; font-size: .9rem; }
.kv dd { margin: 0; font-weight: 600; word-break: break-word; }
.routine-card { border-left: 5px solid var(--db-magenta); }
.nav-pills .nav-link { border-radius: 999px; font-weight: 700; color: var(--db-muted); min-height: 40px; }
.nav-pills .nav-link.active { background: var(--db-ink); color: var(--db-card); }
.tabs-scroll { overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; }
.tabs-scroll::-webkit-scrollbar { display: none; }
.tabs-scroll .nav-link { white-space: nowrap; }
.drag-handle { cursor: grab; color: var(--db-muted); }
.sortable-ghost { opacity: .4; }
.install-steps li { margin-bottom: .6rem; }
.table { --bs-table-bg: transparent; color: var(--db-ink); }
.dropdown-menu { border-radius: 1rem; border-color: var(--db-border); box-shadow: var(--db-shadow); background: var(--db-card); }
.dropdown-item { padding: .55rem 1rem; font-weight: 600; color: var(--db-ink); }
.dropdown-item:hover { background: var(--db-lavender); }
.min-w-0 { min-width: 0; }
.icon-tile { width: 2.75rem; height: 2.75rem; flex: none; border-radius: .9rem; display: grid; place-items: center; background: var(--db-lavender); color: var(--db-magenta); font-size: 1.25rem; }
.list-row.unread { background: var(--db-blush); border-radius: .75rem; }
.db-card.border-primary { border-color: var(--db-magenta) !important; border-width: 2px; }
.onboard-wrap { min-height: 100vh; display: grid; place-items: start center; padding: 2rem 1rem 4rem; }
.onboard-card { width: 100%; max-width: 620px; padding: 2rem 1.75rem; }
.onboard-card .step-label { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--db-muted); }
.choice-card { display: block; border: 1px solid var(--db-border); border-radius: 1rem; padding: .85rem 1rem; cursor: pointer; background: var(--db-card); }
.btn-check:checked + .choice-card, .choice-card:has(input:checked) { border-color: var(--db-magenta); box-shadow: 0 0 0 2px rgba(194, 41, 127, .25); background: var(--db-blush); }
@media print {
  .sidebar, .bottom-nav, .topbar, .fab, .page-header .actions, .btn { display: none !important; }
  .main { margin: 0 !important; padding: 0 !important; }
  .db-card { box-shadow: none !important; border: 1px solid #ccc !important; break-inside: avoid; }
}
.chip { max-width: 100%; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
