/* Harmony skin. Applies only when html[data-theme="harmony"]. Other skins keep main.css. */

html[data-theme="harmony"] body {
    background: #100b18;
    background-image: radial-gradient(ellipse at 18% 0%, rgba(183, 148, 246, 0.16), transparent 46%);
    background-size: auto;
    animation: none;
    color: #f7fafc;
}

html[data-theme="harmony"] .navbar:first-of-type {
    position: sticky;
    top: 0;
    z-index: 1040;
    padding-top: 0.3rem !important;
    padding-bottom: 0.3rem !important;
}

html[data-theme="harmony"] .navbar {
    background: rgba(13, 11, 20, 0.94) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: none;
}

html[data-theme="harmony"] .navbar-brand {
    background: none;
    -webkit-text-fill-color: #f7fafc;
    color: #f7fafc;
    font-family: "Playfair Display", Georgia, serif;
    font-size: 1.15rem;
}

html[data-theme="harmony"] .navbar-brand i {
    -webkit-text-fill-color: #f687b3;
    color: #f687b3;
}

html[data-theme="harmony"] .nav-link {
    padding: 0.35rem 0.5rem !important;
    font-size: 0.84rem;
    color: rgba(247, 250, 252, 0.78) !important;
}

html[data-theme="harmony"] .nav-link:hover,
html[data-theme="harmony"] .nav-link.active {
    background: rgba(183, 148, 246, 0.16);
    color: #f7fafc !important;
    transform: none;
}

html[data-theme="harmony"] #relationshipNavBar {
    position: sticky !important;
    top: var(--hc-nav-h, 52px) !important;
    z-index: 1030 !important;
    left: auto !important;
    right: auto !important;
    width: 100% !important;
    background: rgba(16, 11, 24, 0.98) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.06) !important;
}

html[data-theme="harmony"] .relationship-nav-items {
    flex-wrap: nowrap;
    overflow: hidden;
}

html[data-theme="harmony"] .relationship-nav-current {
    background: rgba(183, 148, 246, 0.22);
    border-color: rgba(183, 148, 246, 0.45);
    color: #f7fafc;
}

html[data-theme="harmony"] .relationship-nav-more-menu,
html[data-theme="harmony"] .relationship-nav-drawer-panel {
    background: rgba(16, 11, 24, 0.98);
    border-color: rgba(255, 255, 255, 0.1);
    color: #f7fafc;
}

html[data-theme="harmony"] .relationship-nav-drawer-head h2,
html[data-theme="harmony"] .relationship-nav-drawer-kicker {
    color: #f7fafc;
    font-family: "Source Sans 3", "Segoe UI", sans-serif;
}

html[data-theme="harmony"] .relationship-nav-drawer-head h2 {
    font-family: "Playfair Display", Georgia, serif;
    font-weight: 600;
}

html[data-theme="harmony"] .relationship-nav-drawer-kicker {
    color: rgba(247, 250, 252, 0.72);
}

html[data-theme="harmony"] .relationship-nav-more-menu .relationship-nav-btn,
html[data-theme="harmony"] .relationship-nav-drawer-links .relationship-nav-btn {
    border-radius: 12px;
}

html[data-theme="harmony"] .relationship-nav-drawer-close {
    color: #f7fafc;
    border-color: rgba(255, 255, 255, 0.16);
}

html[data-theme="harmony"] .relationship-nav-drawer-close:hover,
html[data-theme="harmony"] .relationship-nav-drawer-btn:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #f7fafc;
}

html[data-theme="harmony"] .relationship-nav-btn {
    padding: 0.22rem 0.6rem;
    font-size: 0.76rem;
    background: transparent;
    border-color: rgba(255, 255, 255, 0.12);
    color: rgba(247, 250, 252, 0.82);
    border-radius: 999px;
}

html[data-theme="harmony"] .relationship-nav-btn:hover {
    background: rgba(255, 255, 255, 0.06);
    transform: none;
    box-shadow: none;
    color: #f7fafc;
}

html[data-theme="harmony"] .relationship-nav-btn.active {
    background: rgba(183, 148, 246, 0.22) !important;
    border-color: rgba(183, 148, 246, 0.45) !important;
    box-shadow: none;
    color: #f7fafc;
}

html[data-theme="harmony"] h1,
html[data-theme="harmony"] .h1 {
    background: none;
    -webkit-text-fill-color: #f7fafc;
    color: #f7fafc;
    font-family: "Playfair Display", Georgia, serif;
    font-weight: 600;
}

html[data-theme="harmony"] h1 i {
    -webkit-text-fill-color: #f687b3;
}

/* main.css paints every heading near-black; on the night skin they are ivory. */
html[data-theme="harmony"] h2,
html[data-theme="harmony"] h3,
html[data-theme="harmony"] h4,
html[data-theme="harmony"] h5,
html[data-theme="harmony"] h6 {
    color: #f7fafc;
}

/* Relationship status pills */
html[data-theme="harmony"] .status-badge {
    border: 1px solid rgba(214, 188, 250, 0.45);
    font-weight: 600;
}

html[data-theme="harmony"] .status-active,
html[data-theme="harmony"] .status-pending,
html[data-theme="harmony"] .status-ended {
    background: rgba(183, 148, 246, 0.22);
    color: #f3e8ff;
}

html[data-theme="harmony"] .status-paused {
    background: rgba(251, 113, 133, 0.18);
    border-color: rgba(253, 164, 175, 0.5);
    color: #ffe4e6;
}

html[data-theme="harmony"] .status-ended {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.18);
    color: #cbd5e1;
}

html[data-theme="harmony"] .card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #f7fafc;
    box-shadow: none;
}

html[data-theme="harmony"] .stat-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-top: 3px solid #b794f6;
    box-shadow: none;
    color: #f7fafc;
}

html[data-theme="harmony"] .stat-card:hover {
    transform: none;
    box-shadow: none;
    border-color: rgba(183, 148, 246, 0.35);
}

html[data-theme="harmony"] .stat-label {
    color: #f687b3;
}

html[data-theme="harmony"] .card:hover {
    transform: none;
    box-shadow: none;
    border-color: rgba(183, 148, 246, 0.28);
}

html[data-theme="harmony"] .card-header,
html[data-theme="harmony"] .card-header.bg-primary,
html[data-theme="harmony"] .card-header.bg-secondary,
html[data-theme="harmony"] .card-header.bg-success,
html[data-theme="harmony"] .card-header.bg-danger,
html[data-theme="harmony"] .card-header.bg-warning,
html[data-theme="harmony"] .card-header.bg-info {
    background: transparent !important;
    color: #f7fafc !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-family: "Playfair Display", Georgia, serif;
}

html[data-theme="harmony"] .card-header h5,
html[data-theme="harmony"] .card-header h6 {
    color: #f7fafc !important;
    -webkit-text-fill-color: #f7fafc;
}

html[data-theme="harmony"] .hc-overview .card-title {
    color: #f687b3;
    font-size: 0.68rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 0.2rem;
}

html[data-theme="harmony"] .hc-overview .card {
    margin-bottom: 0.75rem;
}

html[data-theme="harmony"] .hc-overview .card-header {
    padding: 0.55rem 0.85rem;
}

html[data-theme="harmony"] .hc-overview .card-header h5 {
    font-size: 1rem;
}

html[data-theme="harmony"] .hc-overview .card-body {
    padding: 0.75rem 0.85rem;
}

html[data-theme="harmony"] .hc-overview .card-body h2,
html[data-theme="harmony"] .hc-overview .card-body h3 {
    font-size: 1.35rem;
    margin-bottom: 0.15rem;
}

html[data-theme="harmony"] .hc-overview .alert {
    padding: 0.65rem 0.85rem;
    margin-bottom: 0.75rem;
}

html[data-theme="harmony"] .hc-overview .alert h5 {
    font-size: 1rem;
    margin-bottom: 0.15rem;
}

html[data-theme="harmony"] .hc-overview .row.mb-4 {
    margin-bottom: 0.85rem !important;
}

html[data-theme="harmony"] .hc-auto-thresholds .card-body.p-4,
html[data-theme="harmony"] .hc-auto-thresholds .p-4 {
    padding: 0.7rem 0.75rem !important;
}

html[data-theme="harmony"] .hc-auto-thresholds .g-4 {
    --bs-gutter-y: 0.6rem;
    --bs-gutter-x: 0.6rem;
}

html[data-theme="harmony"] .hc-auto-thresholds .rounded-circle {
    width: 42px !important;
    height: 42px !important;
}

html[data-theme="harmony"] .hc-auto-thresholds .rounded-circle i {
    font-size: 1.15rem !important;
}

html[data-theme="harmony"] .hc-auto-thresholds h5 {
    font-size: 0.95rem;
    margin-bottom: 0.35rem !important;
}

html[data-theme="harmony"] .hc-auto-thresholds .badge {
    font-size: 0.72rem;
    padding: 0.2rem 0.55rem !important;
}

html[data-theme="harmony"] .hc-auto-thresholds .mb-3 {
    margin-bottom: 0.4rem !important;
}

html[data-theme="harmony"] .hc-auto-thresholds .alert {
    padding: 0.4rem 0.55rem;
    margin-bottom: 0;
}

html[data-theme="harmony"] .hc-overview .alert-light,
html[data-theme="harmony"] .hc-overview .alert-secondary,
html[data-theme="harmony"] .alert-light,
html[data-theme="harmony"] .alert-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: #f7fafc;
    border-color: rgba(255, 255, 255, 0.12);
}

/* ---------------------------------------------------------------------------
   Semantic palette remap. Bootstrap's red / yellow / green / cyan utilities are
   folded into the Harmony family: lavender for neutral and positive, rose for
   danger. Meaning survives through labels and icons; the page stops looking
   like a traffic light.
   --------------------------------------------------------------------------- */

/* Solid buttons */
html[data-theme="harmony"] .btn-info,
html[data-theme="harmony"] .btn-success,
html[data-theme="harmony"] .btn-warning,
html[data-theme="harmony"] .btn-secondary,
html[data-theme="harmony"] .btn-dark {
    background: rgba(183, 148, 246, 0.16);
    border: 1px solid rgba(183, 148, 246, 0.4);
    color: #f3e8ff;
    border-radius: 999px;
}

html[data-theme="harmony"] .btn-info:hover,
html[data-theme="harmony"] .btn-success:hover,
html[data-theme="harmony"] .btn-warning:hover,
html[data-theme="harmony"] .btn-secondary:hover,
html[data-theme="harmony"] .btn-dark:hover,
html[data-theme="harmony"] .btn-info:focus,
html[data-theme="harmony"] .btn-success:focus,
html[data-theme="harmony"] .btn-warning:focus,
html[data-theme="harmony"] .btn-secondary:focus,
html[data-theme="harmony"] .btn-dark:focus {
    background: rgba(183, 148, 246, 0.28);
    border-color: rgba(214, 188, 250, 0.7);
    color: #fff;
}

html[data-theme="harmony"] .btn-danger {
    background: rgba(251, 113, 133, 0.16);
    border: 1px solid rgba(251, 113, 133, 0.45);
    color: #ffe4e6;
    border-radius: 999px;
}

html[data-theme="harmony"] .btn-danger:hover,
html[data-theme="harmony"] .btn-danger:focus {
    background: rgba(251, 113, 133, 0.3);
    border-color: rgba(253, 164, 175, 0.8);
    color: #fff;
}

/* Outline buttons */
html[data-theme="harmony"] .btn-outline-info,
html[data-theme="harmony"] .btn-outline-success,
html[data-theme="harmony"] .btn-outline-warning,
html[data-theme="harmony"] .btn-outline-dark {
    color: #d6bcfa;
    border-color: rgba(183, 148, 246, 0.45);
    background: transparent;
    border-radius: 999px;
}

html[data-theme="harmony"] .btn-outline-info:hover,
html[data-theme="harmony"] .btn-outline-success:hover,
html[data-theme="harmony"] .btn-outline-warning:hover,
html[data-theme="harmony"] .btn-outline-dark:hover {
    background: rgba(183, 148, 246, 0.16);
    border-color: rgba(214, 188, 250, 0.7);
    color: #f7fafc;
}

html[data-theme="harmony"] .btn-outline-danger {
    color: #fda4af;
    border-color: rgba(251, 113, 133, 0.45);
    background: transparent;
    border-radius: 999px;
}

html[data-theme="harmony"] .btn-outline-danger:hover {
    background: rgba(251, 113, 133, 0.16);
    border-color: rgba(253, 164, 175, 0.8);
    color: #fff;
}

/* Text utilities */
html[data-theme="harmony"] .text-info,
html[data-theme="harmony"] .text-success,
html[data-theme="harmony"] .text-warning,
html[data-theme="harmony"] .text-primary {
    color: #d6bcfa !important;
}

html[data-theme="harmony"] .text-danger {
    color: #fda4af !important;
}

/* Stat numbers inside cards: the same ivory-to-lavender as the overview tiles */
html[data-theme="harmony"] .card-body > h2.text-primary,
html[data-theme="harmony"] .card-body > h2.text-danger,
html[data-theme="harmony"] .card-body > h2.text-success,
html[data-theme="harmony"] .card-body > h2.text-warning,
html[data-theme="harmony"] .card-body > h2.text-info,
html[data-theme="harmony"] .card-body > h3.text-primary,
html[data-theme="harmony"] .card-body > h3.text-danger,
html[data-theme="harmony"] .card-body > h3.text-success,
html[data-theme="harmony"] .card-body > h3.text-warning,
html[data-theme="harmony"] .card-body > h3.text-info {
    color: #f7fafc !important;
    background: linear-gradient(135deg, #f7fafc 0%, #d6bcfa 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-family: "Playfair Display", Georgia, serif;
    font-variant-numeric: lining-nums tabular-nums;
}

/* Card borders */
html[data-theme="harmony"] .card.border-primary,
html[data-theme="harmony"] .card.border-info,
html[data-theme="harmony"] .card.border-success,
html[data-theme="harmony"] .card.border-warning,
html[data-theme="harmony"] .card.border-secondary {
    border: 1px solid rgba(183, 148, 246, 0.32) !important;
}

html[data-theme="harmony"] .card.border-danger {
    border: 1px solid rgba(251, 113, 133, 0.4) !important;
}

/* Badges */
html[data-theme="harmony"] .badge.bg-primary,
html[data-theme="harmony"] .badge.bg-info,
html[data-theme="harmony"] .badge.bg-success,
html[data-theme="harmony"] .badge.bg-warning,
html[data-theme="harmony"] .badge.bg-secondary,
html[data-theme="harmony"] .badge.bg-dark {
    background: rgba(183, 148, 246, 0.22) !important;
    color: #f3e8ff !important;
    border: 1px solid rgba(214, 188, 250, 0.45);
}

html[data-theme="harmony"] .badge.bg-danger {
    background: rgba(251, 113, 133, 0.2) !important;
    color: #ffe4e6 !important;
    border: 1px solid rgba(253, 164, 175, 0.5);
}

/* Leather achievement belt. One silhouette at every rank. Hardware and dye change. */
.leather-belt {
    --leather: #f4ead8;
    --leather-deep: #e0d0b6;
    --leather-edge: #8d7356;
    --stitch: #5c4632;
    --metal: #c9c1b4;
    --metal-hi: #f7f4ee;
    --metal-lo: #6f675c;
    --inlay: #b08948;
    --inlay-hi: #f0e2c0;
    --inlay-lo: #6a4e28;
    min-width: 0;
    width: 100%;
}

.leather-belt[data-belt="white"] {
    --leather: #f6f0e4;
    --leather-deep: #e3d3b8;
    --leather-edge: #8f7658;
    --stitch: #5a4330;
    --metal: #d5cec2;
    --metal-hi: #fbf8f3;
    --metal-lo: #756d62;
    --inlay: #a67c42;
    --inlay-hi: #f3e4c4;
    --inlay-lo: #5c4120;
}

.leather-belt[data-belt="yellow"] {
    --leather: #c4a15a;
    --leather-deep: #9a7840;
    --leather-edge: #5c4318;
    --stitch: #3a2810;
    --metal: #cfc6b6;
    --metal-hi: #f6f1e6;
    --metal-lo: #6e6456;
    --inlay: #4a3010;
    --inlay-hi: #f6ead0;
    --inlay-lo: #2a1c08;
}

.leather-belt[data-belt="orange"] {
    --leather: #a85a32;
    --leather-deep: #7a3c1e;
    --leather-edge: #3d1c0e;
    --stitch: #f0d8c4;
    --metal: #d2c6b4;
    --metal-hi: #f7f1e6;
    --metal-lo: #6e6254;
    --inlay: #f6efe2;
    --inlay-hi: #fffaf2;
    --inlay-lo: #8d7356;
}

.leather-belt[data-belt="green"] {
    --leather: #3e4a32;
    --leather-deep: #2a3322;
    --leather-edge: #161c12;
    --stitch: #e6dcc8;
    --metal: #c9c3b4;
    --metal-hi: #f4f0e6;
    --metal-lo: #5e584c;
    --inlay: #f3ead8;
    --inlay-hi: #fffaf0;
    --inlay-lo: #8a7a60;
}

.leather-belt[data-belt="blue"] {
    --leather: #1a3f86;
    --leather-deep: #102656;
    --leather-edge: #071433;
    --stitch: #e7e0d0;
    --metal: #d5dbe6;
    --metal-hi: #ffffff;
    --metal-lo: #66707e;
    --inlay: #d4af62;
    --inlay-hi: #f8e7b5;
    --inlay-lo: #7a5820;
}

.leather-belt[data-belt="purple"] {
    --leather: #3b1764;
    --leather-deep: #240e40;
    --leather-edge: #120818;
    --stitch: #eadfc8;
    --metal: #d5dbe3;
    --metal-hi: #f7f9fc;
    --metal-lo: #66707c;
    --inlay: #f3ead7;
    --inlay-hi: #fffaf2;
    --inlay-lo: #8a7d68;
}

.leather-belt[data-belt="brown"] {
    --leather: #5c3a24;
    --leather-deep: #3a2416;
    --leather-edge: #24150d;
    --stitch: #f0e2c8;
    --metal: #c6a15a;
    --metal-hi: #f6e7c0;
    --metal-lo: #6d4e22;
    --inlay: #f4e7c8;
    --inlay-hi: #fff6e0;
    --inlay-lo: #8a6840;
}

.leather-belt[data-belt="black"] {
    --leather: #161616;
    --leather-deep: #0c0c0c;
    --leather-edge: #000000;
    --stitch: #c6a15a;
    --metal: #d4af62;
    --metal-hi: #f8e7b5;
    --metal-lo: #7a5820;
    --inlay: #e6c98a;
    --inlay-hi: #fff3d0;
    --inlay-lo: #8a6830;
}

.leather-belt[data-belt="coral"] {
    --leather: #8f1d2c;
    --leather-deep: #141414;
    --leather-edge: #1a0a0c;
    --stitch: #f0e2c8;
    --metal: #d9d0c4;
    --metal-hi: #fffaf3;
    --metal-lo: #6e655c;
    --inlay: #f4ead8;
    --inlay-hi: #fffaf2;
    --inlay-lo: #8a7a62;
}

.leather-belt[data-belt="coral"][data-coral="viii"] {
    --leather: #f3ead8;
    --leather-deep: #9f1239;
    --leather-edge: #3f1018;
    --stitch: #c6a15a;
    --metal: #d4af62;
    --metal-hi: #f8e7b5;
    --metal-lo: #7a5820;
    --inlay: #5c3a24;
    --inlay-hi: #e6d0a4;
    --inlay-lo: #2a1810;
}

.leather-belt[data-belt="red"] {
    --leather: #6e1218;
    --leather-deep: #3d070c;
    --leather-edge: #240608;
    --stitch: #f3e6c4;
    --metal: #e0c078;
    --metal-hi: #fff4d2;
    --metal-lo: #8a6230;
    --inlay: #f8efd8;
    --inlay-hi: #fffaf0;
    --inlay-lo: #a08050;
}

.leather-belt-label {
    color: #f8f5ff;
    font-size: 0.84rem;
    font-weight: 600;
    line-height: 1.35;
    margin: 0 0 0.35rem;
    text-shadow: 0 1px 1px rgba(8, 4, 16, 0.85);
}

.leather-belt-svg {
    aspect-ratio: 608 / 96;
    display: block;
    flex: 0 0 auto;
    height: auto;
    max-height: none;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
    width: 100%;
}

.chains-honors .leather-belt,
.chains-belt-compact .leather-belt {
    margin-inline: auto;
    max-width: min(100%, calc(4.5rem * 608 / 96));
}

.academy-rope-figure .leather-belt {
    margin-inline: auto;
    max-width: 100%;
    width: 100%;
}

.chains-honors .leather-belt-svg,
.chains-belt-compact .leather-belt-svg {
    height: auto;
    margin-inline: auto;
    max-height: none;
    width: min(100%, calc(4.5rem * 608 / 96));
}

.academy-rope-figure .leather-belt-svg {
    height: auto;
    margin-inline: auto;
    max-height: none;
    max-width: min(100%, calc(var(--academy-belt-cap, 8.92rem) * 608 / 96));
    width: 100%;
}

.leather-belt-legend {
    display: grid;
    gap: 0.3rem;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    list-style: none;
    margin: 0.4rem 0 0;
    padding: 0;
}

.leather-belt-legend li {
    color: #f8f5ff;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.25;
    overflow-wrap: anywhere;
    text-align: center;
    text-shadow: 0 1px 1px rgba(8, 4, 16, 0.85);
}

.leather-belt-legend li.is-open {
    font-weight: 500;
}

html[data-theme="minimal"] .leather-belt-label,
html[data-theme="minimal"] .leather-belt-legend li {
    color: #1c1428;
    text-shadow: none;
}

.ceremonial-ceremony-rope {
    margin: 0.85rem auto 0;
    max-width: 36rem;
    text-align: left;
}

.chains-ceremony .leather-belt-label {
    text-align: center;
}

.chains-honors .leather-belt,
.chains-belt-compact .leather-belt {
    flex: 1 1 100%;
    margin: 0.15rem 0 0.45rem;
    min-width: 0;
}

@media (max-width: 420px) {
    .leather-belt-label {
        font-size: 0.78rem;
    }

    .leather-belt-legend {
        gap: 0.2rem;
    }

    .leather-belt-legend li {
        font-size: 0.68rem;
    }
}

/* Academy honors. Named stripes sit under the rope. They are not rank bars. */

.chains-honors-kicker {
    color: #f3e8ff;
    letter-spacing: 0.04em;
}

.chains-honors-earned,
.chains-honors-disclaimer,
.chains-belt-foot {
    color: #ddd6fe;
    font-size: 0.8rem;
}

.chains-belt-card {
    background: #241833;
    border: 1px solid rgba(214, 188, 250, 0.5);
    border-radius: 0.75rem;
    color: #f7fafc;
    margin: 0 0 0.75rem;
    padding: 0.8rem 0.85rem 0.7rem;
}

.chains-belt-card.is-complete {
    background:
        radial-gradient(ellipse at 12% 0%, rgba(232, 200, 120, 0.16), transparent 46%),
        #161022;
    border: 1px solid rgba(232, 200, 120, 0.78);
    box-shadow: inset 0 0 0 1px rgba(255, 244, 214, 0.08);
}

.chains-belt-head {
    align-items: center;
    display: flex;
    gap: 0.5rem;
    justify-content: space-between;
}

.chains-belt-path {
    color: #e9d5ff;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    margin: 0;
    text-transform: uppercase;
}

.chains-belt-status {
    background: rgba(183, 148, 246, 0.28);
    border: 1px solid rgba(214, 188, 250, 0.6);
    border-radius: 999px;
    color: #f3e8ff;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.25;
    margin: 0;
    max-width: 11rem;
    overflow: visible;
    padding: 0.12rem 0.55rem;
    text-align: center;
    white-space: normal;
}

.chains-belt-status.is-complete {
    background: rgba(251, 191, 36, 0.22);
    border-color: rgba(252, 211, 77, 0.7);
    color: #fef3c7;
}

.chains-belt-title {
    -webkit-text-fill-color: #f7fafc;
    color: #f7fafc;
    font-size: 1.15rem;
    margin: 0.4rem 0 0.15rem;
}

.chains-belt-line,
.chains-belt-count {
    color: #f3e8ff;
    font-size: 0.92rem;
    margin: 0;
}

.chains-belt-line + .chains-belt-count {
    margin-top: 0.1rem;
}

.chains-belt-segs {
    display: grid;
    gap: 0.35rem;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    list-style: none;
    margin: 0.7rem 0 0.45rem;
    padding: 0;
}

.chains-belt-seg {
    align-items: center;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(214, 188, 250, 0.4);
    border-radius: 0;
    color: #f3e8ff;
    display: flex;
    font-size: 0.74rem;
    font-weight: 600;
    justify-content: center;
    line-height: 1.15;
    min-height: 2.7rem;
    overflow: visible;
    overflow-wrap: anywhere;
    padding: 0.35rem 0.2rem;
    text-align: center;
}

.chains-belt-seg.is-earned {
    background: transparent;
    border: none;
    border-bottom: 2px solid #c6b48a;
    box-shadow: none;
    color: #f7fafc;
}

.chains-belt-foot {
    margin: 0;
}

.chains-belt-compact {
    align-items: flex-start;
    background: rgba(183, 148, 246, 0.22);
    border: 1px solid rgba(214, 188, 250, 0.55);
    border-radius: 0.5rem;
    color: #f7fafc;
    display: flex;
    flex-wrap: wrap;
    font-size: 0.82rem;
    gap: 0.35rem 0.75rem;
    justify-content: space-between;
    margin: 0 0 0.35rem;
    padding: 0.45rem 0.65rem;
}

.chains-belt-compact:last-child {
    margin-bottom: 0;
}

.chains-belt-compact-state {
    align-items: flex-end;
    color: #fef3c7;
    display: flex;
    flex-direction: column;
    font-weight: 600;
    line-height: 1.25;
    overflow: visible;
    text-align: right;
    white-space: normal;
}

.chains-belt-compact-next {
    color: #fef3c7;
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    margin-top: 0.12rem;
}

.chains-belt-crest {
    align-items: flex-start;
    display: flex;
    gap: 0.85rem;
}

.chains-belt-copy {
    flex: 1 1 12rem;
    min-width: 0;
}

.chains-belt-next {
    color: #fef3c7;
    font-size: 0.92rem;
    font-weight: 600;
    margin: 0.35rem 0 0;
}

.chains-belt-honor-note {
    color: #ddd6fe;
    font-size: 0.8rem;
    margin: 0.3rem 0 0;
}

.chains-belt-actions {
    margin-top: 0.45rem;
}

.chains-belt-ceremony-link,
.chains-ceremony-ready,
.chains-ceremony-back {
    color: #fef3c7;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 0.16em;
}

.chains-belt-ceremony-link:hover,
.chains-ceremony-ready:hover,
.chains-ceremony-back:hover {
    color: #fff7d6;
}

.chains-belt-quote {
    color: #f3e8ff;
    flex: 0 1 13rem;
    font-size: 0.78rem;
    font-style: italic;
    line-height: 1.4;
    margin: 0.15rem 0 0;
}


.wb-emblem {
    flex: 0 0 auto;
    height: 5.4rem;
    position: relative;
    width: 4.4rem;
}

.wb-ring {
    border: 2px solid #e8c878;
    border-radius: 50%;
    box-shadow: inset 0 0 0 5px rgba(232, 200, 120, 0.2);
    inset: 0.15rem;
    position: absolute;
}

.wb-sash {
    background: linear-gradient(180deg, #fffaf2, #f4ecdf 55%, #e4d3b8);
    border-radius: 0.15rem;
    height: 0.72rem;
    left: 0.35rem;
    position: absolute;
    right: 0.35rem;
    top: 2.15rem;
    z-index: 1;
}

.wb-tail {
    background: linear-gradient(180deg, #f7f1e6, #e7d7bc);
    border-radius: 0 0 0.2rem 0.2rem;
    height: 1.55rem;
    position: absolute;
    top: 2.55rem;
    width: 0.72rem;
    z-index: 1;
}

.wb-tail-left {
    left: 1.15rem;
    transform: rotate(10deg);
}

.wb-tail-right {
    right: 1.15rem;
    transform: rotate(-10deg);
}

.wb-knot {
    background: #fffaf2;
    border: 2px solid #d7c4a4;
    height: 0.85rem;
    left: 50%;
    position: absolute;
    top: 2.05rem;
    transform: translateX(-50%) rotate(45deg);
    width: 0.85rem;
    z-index: 2;
}

.chains-ceremony {
    background:
        radial-gradient(ellipse at 50% 0%, rgba(232, 200, 120, 0.14), transparent 42%),
        #140e22;
    border: 1px solid rgba(232, 200, 120, 0.72);
    border-radius: 1rem;
    color: #f7fafc;
    margin: 0 auto;
    max-width: 40rem;
    padding: 1.6rem 1.2rem 1.4rem;
    text-align: center;
}

.chains-ceremony-kicker,
.chains-ceremony-foundation {
    color: #e8c878;
    font-size: 0.74rem;
    letter-spacing: 0.14em;
    margin: 0;
}

.chains-ceremony-foundation {
    margin-top: 0.85rem;
}

.wb-emblem-stage {
    height: 8.4rem;
    margin: 0.85rem auto 0;
    position: relative;
}

.wb-emblem-stage .wb-emblem {
    left: 50%;
    position: absolute;
    transform: translateX(-50%) scale(1.5);
    transform-origin: top center;
}

.chains-ceremony-title {
    color: #f7fafc;
    font-size: 1.85rem;
    margin: 0.45rem 0 0.35rem;
}

.chains-ceremony-lead,
.chains-ceremony-recognition {
    color: #f3e8ff;
    margin: 0.35rem auto 0;
    max-width: 36rem;
}

.chains-ceremony-segs {
    margin-top: 1rem;
}

.chains-ceremony-quote {
    color: #fef3c7;
    font-style: italic;
    margin: 0.9rem auto 0;
    max-width: 32rem;
}

.chains-ceremony-earned {
    color: #ddd6fe;
    font-size: 0.84rem;
    margin: 0.7rem auto 0;
    max-width: 34rem;
}

.chains-ceremony-reflect {
    margin: 1.1rem auto 0.8rem;
    max-width: 28rem;
    text-align: left;
}

.chains-ceremony-reflect label {
    color: #f3e8ff;
    display: block;
    font-size: 0.86rem;
    margin-bottom: 0.35rem;
}

.chains-ceremony-reflect input {
    background: #241833;
    border: 1px solid rgba(214, 188, 250, 0.55);
    border-radius: 0.4rem;
    color: #f7fafc;
    margin-bottom: 0.55rem;
    padding: 0.45rem 0.6rem;
    width: 100%;
}

.chains-ceremony-reflect input::placeholder {
    color: #ddd6fe;
}

.chains-ceremony-skip {
    color: #ddd6fe;
    font-size: 0.8rem;
    margin-top: 0.45rem;
}

.chains-ceremony .chains-belt-seg {
    animation: chains-ceremony-in 0.45s ease both;
}

.chains-ceremony .chains-belt-seg:nth-child(1) { animation-delay: 0.05s; }
.chains-ceremony .chains-belt-seg:nth-child(2) { animation-delay: 0.16s; }
.chains-ceremony .chains-belt-seg:nth-child(3) { animation-delay: 0.27s; }
.chains-ceremony .chains-belt-seg:nth-child(4) { animation-delay: 0.38s; }

.chains-ceremony .leather-belt {
    animation: chains-ceremony-in 0.7s ease 0.2s both;
}

@keyframes chains-ceremony-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
    .chains-ceremony .chains-belt-seg,
    .chains-ceremony .leather-belt {
        animation: none;
    }
}

@media (max-width: 640px) {
    .chains-belt-crest {
        flex-wrap: wrap;
    }

    .chains-belt-quote {
        flex-basis: 100%;
    }
}

/* Progress fills */
html[data-theme="harmony"] .progress-bar,
html[data-theme="harmony"] .progress-bar.bg-danger,
html[data-theme="harmony"] .progress-bar.bg-success,
html[data-theme="harmony"] .progress-bar.bg-warning,
html[data-theme="harmony"] .progress-bar.bg-info {
    background: linear-gradient(90deg, #b794f6 0%, #f687b3 100%) !important;
    color: #1a1028;
}

/* Thermometer gauges: position still shows the value, without the red-to-green rainbow */
html[data-theme="harmony"] .thermometer {
    background: linear-gradient(to right, #4c1d95 0%, #b794f6 55%, #f687b3 100%) !important;
    box-shadow: none !important;
}

html[data-theme="harmony"] .thermometer-fill {
    background: rgba(255, 255, 255, 0.3) !important;
}

html[data-theme="harmony"] .input-group-text {
    background: rgba(13, 11, 20, 0.55);
    color: #f7fafc;
    border-color: rgba(255, 255, 255, 0.14);
}

html[data-theme="harmony"] .hc-day-board {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    background: linear-gradient(135deg, rgba(183, 148, 246, 0.16) 0%, rgba(246, 135, 179, 0.07) 100%) !important;
    border: 1px solid rgba(183, 148, 246, 0.35) !important;
    border-radius: 14px !important;
    box-shadow: none !important;
    color: #f7fafc !important;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    padding: 0.7rem 1rem;
    transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

html[data-theme="harmony"] .hc-day-board i {
    color: #d6bcfa;
    font-size: 1.05rem;
    margin: 0 !important;
}

html[data-theme="harmony"] .hc-day-board::after {
    content: "\2192";
    color: #d6bcfa;
    opacity: 0.8;
    margin-left: 0.15rem;
    transition: transform 0.2s ease;
}

html[data-theme="harmony"] .hc-day-board:hover,
html[data-theme="harmony"] .hc-day-board:focus-visible {
    background: linear-gradient(135deg, rgba(183, 148, 246, 0.26) 0%, rgba(246, 135, 179, 0.12) 100%) !important;
    border-color: rgba(214, 188, 250, 0.7) !important;
    transform: translateY(-1px);
}

html[data-theme="harmony"] .hc-day-board:hover::after {
    transform: translateX(3px);
}

html[data-theme="harmony"] .hc-auto-thresholds,
html[data-theme="harmony"] .hc-auto-thresholds .card,
html[data-theme="harmony"] .hc-auto-thresholds .card-body,
html[data-theme="harmony"] .hc-auto-thresholds .bg-white {
    background: rgba(255, 255, 255, 0.04) !important;
    color: #f7fafc !important;
    box-shadow: none !important;
}

html[data-theme="harmony"] .hc-auto-thresholds {
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

html[data-theme="harmony"] .hc-auto-thresholds .card-header {
    background: transparent !important;
    color: #f7fafc !important;
}

html[data-theme="harmony"] .hc-auto-thresholds h5,
html[data-theme="harmony"] .hc-auto-thresholds .text-white {
    color: #f7fafc !important;
}

html[data-theme="harmony"] .hc-auto-thresholds .text-white-50 {
    color: rgba(247, 250, 252, 0.72) !important;
}

html[data-theme="harmony"] .hc-auto-thresholds .badge {
    background: rgba(183, 148, 246, 0.18) !important;
    color: #f7fafc !important;
    border-color: rgba(183, 148, 246, 0.45) !important;
}

html[data-theme="harmony"] .progress {
    background: rgba(255, 255, 255, 0.08);
}

html[data-theme="harmony"] .btn {
    box-shadow: none;
}

html[data-theme="harmony"] .btn:hover {
    transform: none;
}

html[data-theme="harmony"] .btn-primary {
    background: linear-gradient(135deg, #b794f6 0%, #805ad5 100%);
    border: none;
    color: #fff;
    border-radius: 999px;
}

html[data-theme="harmony"] .btn-outline-primary,
html[data-theme="harmony"] .btn-outline-secondary,
html[data-theme="harmony"] .btn-outline-light {
    color: #f7fafc;
    border-color: rgba(255, 255, 255, 0.2);
    background: transparent;
    border-radius: 999px;
}

html[data-theme="harmony"] .btn-outline-primary:hover,
html[data-theme="harmony"] .btn-outline-secondary:hover,
html[data-theme="harmony"] .btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #f7fafc;
}

html[data-theme="harmony"] .btn-check:checked + .btn-outline-primary,
html[data-theme="harmony"] .btn-check:checked + .btn-outline-secondary,
html[data-theme="harmony"] .btn-check:checked + .btn-outline-light {
    background: #805ad5 !important;
    background-color: #805ad5 !important;
    background-image: none !important;
    border-color: #b794f6 !important;
    color: #fff !important;
}

html[data-theme="harmony"] .form-label {
    color: #f687b3;
    font-size: 0.75rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

html[data-theme="harmony"] .form-control,
html[data-theme="harmony"] .form-select,
html[data-theme="harmony"] textarea.form-control {
    background-color: rgba(13, 11, 20, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #f7fafc;
}

html[data-theme="harmony"] .form-control:focus,
html[data-theme="harmony"] .form-select:focus {
    background-color: rgba(13, 11, 20, 0.72);
    border-color: #b794f6;
    box-shadow: 0 0 0 2px rgba(183, 148, 246, 0.28);
    color: #f7fafc;
    transform: none;
}

html[data-theme="harmony"] .form-text,
html[data-theme="harmony"] .text-muted {
    color: #cbd5e1 !important;
}

html[data-theme="harmony"] .dropdown-menu {
    background: #1a1528;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #f7fafc;
}

html[data-theme="harmony"] .dropdown-item {
    color: #f7fafc;
}

html[data-theme="harmony"] .dropdown-item:hover {
    background: rgba(183, 148, 246, 0.18);
    color: #f7fafc;
    transform: none;
}

html[data-theme="harmony"] .modal-content {
    background: #1a1528;
    color: #f7fafc;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

html[data-theme="harmony"] .modal-header,
html[data-theme="harmony"] .modal-footer {
    border-color: rgba(255, 255, 255, 0.08);
}

html[data-theme="harmony"] .modal-header.bg-primary {
    background: transparent !important;
    color: #f7fafc;
}

html[data-theme="harmony"] .btn-close {
    filter: invert(1);
}

html[data-theme="harmony"] .table {
    --bs-table-color: #f7fafc;
    --bs-table-bg: transparent;
    --bs-table-border-color: rgba(255, 255, 255, 0.1);
    --bs-table-striped-bg: rgba(255, 255, 255, 0.03);
    --bs-table-hover-bg: rgba(183, 148, 246, 0.08);
    color: #f7fafc;
}

html[data-theme="harmony"] .list-group-item {
    background: rgba(255, 255, 255, 0.04);
    color: #f7fafc;
    border-color: rgba(255, 255, 255, 0.1);
}

html[data-theme="harmony"] .alert-success,
html[data-theme="harmony"] .alert-danger,
html[data-theme="harmony"] .alert-info,
html[data-theme="harmony"] .alert-warning {
    color: #f7fafc;
    background: rgba(255, 255, 255, 0.05);
}

html[data-theme="harmony"] .alert h4,
html[data-theme="harmony"] .alert h5,
html[data-theme="harmony"] .alert h6 {
    color: #e9d5ff;
    -webkit-text-fill-color: #e9d5ff;
    font-weight: 600;
    letter-spacing: 0.01em;
}

html[data-theme="harmony"] .alert h4 i,
html[data-theme="harmony"] .alert h5 i,
html[data-theme="harmony"] .alert h6 i {
    color: #d6bcfa;
    -webkit-text-fill-color: #d6bcfa;
}

html[data-theme="harmony"] .task-item {
    background: rgba(255, 255, 255, 0.04);
    color: #f7fafc;
}

html[data-theme="harmony"] .task-item:hover {
    transform: none;
}

html[data-theme="harmony"] #chatMessages {
    background: #120e1a;
    color: #f7fafc;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

html[data-theme="harmony"] #chatMessages .message {
    background: rgba(255, 255, 255, 0.06);
    color: #f7fafc;
}

html[data-theme="harmony"] #chatMessages .message.own {
    background: rgba(183, 148, 246, 0.24);
    color: #f7fafc;
}

html[data-theme="harmony"] #chatMessages .message strong {
    color: #f687b3;
}

html[data-theme="harmony"] #chatMessages .message-time {
    color: rgba(247, 250, 252, 0.62);
}

html[data-theme="harmony"] .js-plotly-plot,
html[data-theme="harmony"] .health-chart-plot,
html[data-theme="harmony"] .health-waterfall-plot {
    background: transparent;
    border-radius: 12px;
}

html[data-theme="harmony"] #health-chart-card .hc-health-plots > .card-header {
    display: none;
}

html[data-theme="harmony"] #health-chart-card .hc-health-plots {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    border-radius: 0;
    margin: 0 !important;
}

html[data-theme="harmony"] #health-chart-card .hc-health-plots > .card-body {
    padding: 0 !important;
}

html[data-theme="harmony"] #health-chart-card .health-chart-plot,
html[data-theme="harmony"] #health-chart-card .health-waterfall-plot {
    height: auto;
    min-height: 0;
}

/* Snapshot tiles: the Bootstrap rows become one grid that matches the score tiles. */
html[data-theme="harmony"] .hc-snapshot {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.8rem;
    margin: 0.25rem 0 1rem;
}

/* The hierarchy pair is one full-width row. A loose heading here would
   take the first grid cell and push the submissive card into the stat row. */
html[data-theme="harmony"] .hc-snapshot > .hc-hierarchy {
    grid-column: 1 / -1;
}

html[data-theme="harmony"] .hc-hierarchy .card {
    background: linear-gradient(135deg, rgba(183, 148, 246, 0.14) 0%, rgba(255, 255, 255, 0.03) 60%);
    border-color: rgba(183, 148, 246, 0.28);
}

html[data-theme="harmony"] .hc-hierarchy .card .card-body h2 {
    background: linear-gradient(135deg, #e9d5ff 0%, #f9a8d4 100%);
    -webkit-background-clip: text;
    background-clip: text;
}

/* Level tiles lead the panel and carry more text, so they take two columns each. */
html[data-theme="harmony"] .hc-snapshot > .row:nth-of-type(1) .card {
    grid-column: span 2;
    background: linear-gradient(135deg, rgba(183, 148, 246, 0.14) 0%, rgba(255, 255, 255, 0.03) 60%);
    border-color: rgba(183, 148, 246, 0.28);
}

html[data-theme="harmony"] .hc-snapshot > .row,
html[data-theme="harmony"] .hc-snapshot > .row > [class*="col-"] {
    display: contents;
}

html[data-theme="harmony"] .hc-snapshot > .row > .hc-kpi-h7 {
    display: none !important;
}

html[data-theme="harmony"] .hc-snapshot .card {
    margin: 0;
    height: 100%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    box-shadow: none;
    text-align: left !important;
}

html[data-theme="harmony"] .hc-snapshot .card .card-header {
    background: transparent !important;
    border: 0;
    padding: 0.95rem 1.05rem 0;
    font-family: "Inter", "Segoe UI", sans-serif;
}

html[data-theme="harmony"] .hc-snapshot .card .card-header h5 {
    color: #f9a8d4 !important;
    -webkit-text-fill-color: #f9a8d4;
    font-family: "Inter", "Segoe UI", sans-serif;
    font-size: 0.78rem;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    font-weight: 700;
    margin: 0;
}

html[data-theme="harmony"] .hc-snapshot .card .card-header h5 i {
    display: none;
}

html[data-theme="harmony"] .hc-snapshot .card .card-body {
    padding: 0.95rem 1.05rem;
    text-align: left !important;
}

html[data-theme="harmony"] .hc-snapshot .card .card-header + .card-body {
    padding-top: 0.2rem;
}

html[data-theme="harmony"] .hc-snapshot .card .card-title {
    margin-bottom: 0;
    color: #f9a8d4;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.07em;
}

/* One voice for every value: ivory fading to lavender, no Bootstrap reds, greens, or blues. */
html[data-theme="harmony"] .hc-snapshot .card .card-body h2,
html[data-theme="harmony"] .hc-snapshot .card .card-body h3 {
    color: #f7fafc !important;
    background: linear-gradient(135deg, #f7fafc 0%, #d6bcfa 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent !important;
}

/* Level titles get the warmer lavender-to-rose version so identity reads differently from counts. */
html[data-theme="harmony"] .hc-snapshot > .row:nth-of-type(1) .card .card-body h2 {
    background: linear-gradient(135deg, #e9d5ff 0%, #f9a8d4 100%);
    -webkit-background-clip: text;
    background-clip: text;
}

html[data-theme="harmony"] .hc-snapshot .card .badge.bg-primary,
html[data-theme="harmony"] .hc-snapshot .card .badge.bg-success {
    background: rgba(183, 148, 246, 0.22) !important;
    color: #f3e8ff !important;
    border: 1px solid rgba(214, 188, 250, 0.5);
}

html[data-theme="harmony"] .hc-snapshot .card .progress-bar.bg-info {
    background: linear-gradient(90deg, #b794f6 0%, #f687b3 100%) !important;
}

html[data-theme="harmony"] .hc-snapshot .card .card-body h2,
html[data-theme="harmony"] .hc-snapshot .card .card-body h3 {
    font-family: "Playfair Display", Georgia, serif;
    font-size: 1.9rem;
    font-weight: 600;
    font-variant-numeric: lining-nums tabular-nums;
    margin: 0.2rem 0 0.2rem;
    line-height: 1.2;
}

html[data-theme="harmony"] .hc-snapshot .card .card-body h2 {
    font-size: 1.55rem;
}

html[data-theme="harmony"] .hc-snapshot .card .card-body p {
    font-size: 0.86rem;
    color: #cbd5e1 !important;
    margin-bottom: 0.15rem;
}

html[data-theme="harmony"] .hc-snapshot .card .card-body p strong {
    color: #f7fafc;
}

html[data-theme="harmony"] .hc-snapshot .card .card-body p small {
    color: #a7b0c0;
}

html[data-theme="harmony"] .hc-snapshot .card .badge {
    font-size: 0.74rem;
    padding: 0.25rem 0.65rem;
}

html[data-theme="harmony"] .hc-snapshot .card .progress {
    margin-top: 0.45rem;
    height: 8px !important;
}

html[data-theme="harmony"] .hc-snapshot .card .btn-sm {
    padding: 0.25rem 0.75rem;
    font-size: 0.78rem;
}

/* Threshold actions sit between the tiles and the graph. */
html[data-theme="harmony"] .hc-health-widgets {
    margin: 0 0 1.1rem;
    padding: 0.75rem 0 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

html[data-theme="harmony"] .hc-health-widgets:not(:has(.hc-auto-thresholds)) {
    display: none;
}

html[data-theme="harmony"] .hc-health-widgets .row.mb-4 {
    margin-bottom: 0 !important;
}

html[data-theme="harmony"] .hc-health-widgets .hc-auto-thresholds {
    background: transparent !important;
    border: 0 !important;
    border-radius: 0;
    margin-bottom: 0;
}

html[data-theme="harmony"] .hc-health-widgets .hc-auto-thresholds > .card-header {
    padding: 0 0 0.6rem !important;
}

html[data-theme="harmony"] .hc-health-widgets .hc-auto-thresholds > .card-header h5 {
    font-family: "Playfair Display", Georgia, serif;
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 0.15rem !important;
}

html[data-theme="harmony"] .hc-health-widgets .hc-auto-thresholds > .card-header h5 i {
    color: #f6c453;
}

html[data-theme="harmony"] .hc-health-widgets .hc-auto-thresholds > .card-header .small {
    font-family: "Inter", "Segoe UI", sans-serif;
    font-size: 0.8rem;
}

html[data-theme="harmony"] .hc-health-widgets .hc-auto-thresholds > .card-body {
    padding: 0 !important;
}

html[data-theme="harmony"] .hc-health-widgets .hc-auto-thresholds .row.g-4 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 0.65rem;
    margin: 0;
}

html[data-theme="harmony"] .hc-health-widgets .hc-auto-thresholds .row.g-4 > [class*="col-"] {
    width: auto;
    max-width: none;
    flex: none;
    padding: 0;
    margin: 0;
}

html[data-theme="harmony"] .hc-health-widgets .hc-auto-thresholds .card {
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 14px;
    height: 100%;
}

html[data-theme="harmony"] .hc-auto-thresholds .hc-threshold-armed {
    opacity: 0.78;
}

html[data-theme="harmony"] .hc-auto-thresholds .hc-threshold-armed .badge {
    background: rgba(255, 255, 255, 0.06) !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
    color: rgba(247, 250, 252, 0.8) !important;
}

@media (max-width: 767px) {
    html[data-theme="harmony"] .hc-snapshot {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.5rem;
    }

    html[data-theme="harmony"] .hc-snapshot .card .card-header,
    html[data-theme="harmony"] .hc-snapshot .card .card-body {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    html[data-theme="harmony"] .hc-snapshot .card .card-body h3 {
        font-size: 1.45rem;
    }

    html[data-theme="harmony"] .hc-snapshot .card .card-body h2 {
        font-size: 1.3rem;
    }
}

html[data-theme="harmony"] .hc-health-head {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-start;
    flex-wrap: wrap;
}

html[data-theme="harmony"] .hc-health-title {
    font-family: "Playfair Display", Georgia, serif;
    font-size: 1.65rem;
    font-weight: 600;
    margin: 0 0 0.25rem;
    color: #f7fafc;
}

html[data-theme="harmony"] .hc-health-section {
    font-family: "Playfair Display", Georgia, serif;
    font-size: 1.15rem;
    margin: 0.4rem 0 0.2rem;
    color: #f7fafc;
}

html[data-theme="harmony"] .hc-health-lead,
html[data-theme="harmony"] .hc-health-note {
    color: #cbd5e1;
    font-size: 0.88rem;
    margin: 0 0 0.75rem;
}

html[data-theme="harmony"] .hc-health-controls .hc-health-note {
    margin: 0;
    font-size: 0.75rem;
    flex-basis: 100%;
    text-align: right;
}

/* ---------------------------------------------------------------------------
   Board banners: the sample notice and the "no partner yet" notice sit quietly
   on the night glass instead of shouting in their own gradient.
   --------------------------------------------------------------------------- */
html[data-theme="harmony"] .hc-sample-banner,
html[data-theme="harmony"] .hc-board-banner {
    background: linear-gradient(135deg, rgba(183, 148, 246, 0.10) 0%, rgba(251, 113, 133, 0.05) 100%) !important;
    border: 1px solid rgba(183, 148, 246, 0.22) !important;
    border-left: 3px solid rgba(183, 148, 246, 0.6) !important;
    border-radius: 14px;
    color: #f7fafc !important;
    padding: 0.8rem 1rem;
    box-shadow: none;
}

html[data-theme="harmony"] .hc-sample-banner .fw-semibold,
html[data-theme="harmony"] .hc-board-banner .fw-semibold {
    color: #e9d5ff;
    font-size: 0.95rem;
}

html[data-theme="harmony"] .hc-sample-banner .fw-semibold i,
html[data-theme="harmony"] .hc-board-banner .fw-semibold i {
    color: #d6bcfa;
}

html[data-theme="harmony"] .hc-sample-banner .small,
html[data-theme="harmony"] .hc-board-banner p {
    color: #cbd5e1 !important;
    opacity: 1 !important;
    font-size: 0.86rem;
}

html[data-theme="harmony"] .hc-sample-banner .hc-sample-hint {
    color: #d6bcfa !important;
    opacity: 1 !important;
    font-size: 0.82rem;
}

html[data-theme="harmony"] .hc-sample-banner .badge {
    background: rgba(183, 148, 246, 0.16) !important;
    border: 1px solid rgba(183, 148, 246, 0.4);
    color: #f3e8ff !important;
    font-weight: 600;
    letter-spacing: 0.02em;
}

html[data-theme="harmony"] .hc-sample-banner .btn,
html[data-theme="harmony"] .hc-board-banner .btn {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.16) !important;
    color: #f7fafc !important;
    border-radius: 999px;
    box-shadow: none !important;
    font-weight: 500;
}

html[data-theme="harmony"] .hc-sample-banner .btn-light,
html[data-theme="harmony"] .hc-board-banner .btn-primary {
    background: rgba(183, 148, 246, 0.22) !important;
    border-color: rgba(183, 148, 246, 0.5) !important;
}

html[data-theme="harmony"] .hc-sample-banner .btn:hover,
html[data-theme="harmony"] .hc-board-banner .btn:hover {
    background: rgba(183, 148, 246, 0.3) !important;
    border-color: rgba(183, 148, 246, 0.6) !important;
}

/* ---------------------------------------------------------------------------
   Threshold cards: one palette. Lavender for the three lines, rose for Last
   Resort, instead of the purple, grey, blue, and red of the classic skin.
   --------------------------------------------------------------------------- */
html[data-theme="harmony"] .hc-auto-thresholds .card > .card-header[style*="height"] {
    background: linear-gradient(90deg, rgba(183, 148, 246, 0.9), rgba(246, 135, 179, 0.7)) !important;
    height: 3px !important;
}

html[data-theme="harmony"] .hc-auto-thresholds .card .rounded-circle {
    background: rgba(183, 148, 246, 0.18) !important;
    border: 1px solid rgba(183, 148, 246, 0.45);
    box-shadow: none !important;
}

html[data-theme="harmony"] .hc-auto-thresholds .card .rounded-circle i {
    color: #e9d5ff !important;
}

html[data-theme="harmony"] .hc-auto-thresholds .card .btn {
    background: rgba(183, 148, 246, 0.18) !important;
    border: 1px solid rgba(183, 148, 246, 0.45) !important;
    color: #f3e8ff !important;
    box-shadow: none !important;
}

html[data-theme="harmony"] .hc-auto-thresholds .card .btn:hover:not(:disabled) {
    background: rgba(183, 148, 246, 0.3) !important;
}

html[data-theme="harmony"] .hc-auto-thresholds .card .btn:disabled {
    opacity: 0.75;
}

html[data-theme="harmony"] .hc-auto-thresholds .card-body .card:has(.bi-exclamation-triangle-fill) > .card-header[style*="height"] {
    background: linear-gradient(90deg, rgba(251, 113, 133, 0.9), rgba(246, 135, 179, 0.6)) !important;
}

html[data-theme="harmony"] .hc-auto-thresholds .card-body .card:has(.bi-exclamation-triangle-fill) .rounded-circle {
    background: rgba(251, 113, 133, 0.18) !important;
    border-color: rgba(251, 113, 133, 0.5);
}

html[data-theme="harmony"] .hc-auto-thresholds .card-body .card:has(.bi-exclamation-triangle-fill) .rounded-circle i {
    color: #fecdd3 !important;
}

html[data-theme="harmony"] .hc-auto-thresholds .card-body .card:has(.bi-exclamation-triangle-fill) .btn {
    background: rgba(251, 113, 133, 0.18) !important;
    border-color: rgba(251, 113, 133, 0.5) !important;
    color: #ffe4e6 !important;
}

html[data-theme="harmony"] .hc-auto-thresholds .card-body .card:has(.bi-exclamation-triangle-fill) .badge {
    background: rgba(251, 113, 133, 0.16) !important;
    border-color: rgba(251, 113, 133, 0.45) !important;
}

html[data-theme="harmony"] .hc-auto-thresholds .card .text-muted,
html[data-theme="harmony"] .hc-auto-thresholds .card ul.text-muted li {
    color: #cbd5e1 !important;
}

/* Sample dynamic on Harmony: talkback time and critical reminders stay off the
   page. The coach introduces them when the person is ready. Other skins keep them. */
html[data-theme="harmony"] .hc-sample-talkback,
html[data-theme="harmony"] .hc-sample-reminders {
    display: none !important;
}

/* Sample dynamic: the story line above the chart reads like the panel lead. */
html[data-theme="harmony"] #health-chart-card .hc-sample-chart-note {
    color: #cbd5e1 !important;
    font-size: 0.88rem;
    margin: 0.25rem 0 0.75rem;
}

html[data-theme="harmony"] .hc-health-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    align-items: center;
    justify-content: flex-end;
}

html[data-theme="harmony"] .hc-health-ranges,
html[data-theme="harmony"] .hc-health-textbtn {
    display: inline-flex;
    gap: 0.3rem;
}

html[data-theme="harmony"] .hc-health-ranges button,
html[data-theme="harmony"] .hc-health-textbtn {
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.04);
    color: #f7fafc;
    border-radius: 999px;
    padding: 0.28rem 0.75rem;
    font-size: 0.75rem;
    letter-spacing: 0.03em;
}

html[data-theme="harmony"] .hc-health-ranges button[aria-pressed="true"] {
    background: linear-gradient(135deg, #b794f6 0%, #805ad5 100%);
    border-color: transparent;
    color: #fff;
}

html[data-theme="harmony"] .hc-health-ranges button:focus-visible,
html[data-theme="harmony"] .hc-health-textbtn:focus-visible {
    outline: 2px solid #b794f6;
    outline-offset: 2px;
}

html[data-theme="harmony"] .hc-health-stats {
    margin: 0 0 1rem;
}

html[data-theme="harmony"] .hc-health-stats .hc-health-section {
    margin-top: 0;
}

html[data-theme="harmony"] .hc-health-kpis {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.8rem;
    margin-bottom: 0.35rem;
}

html[data-theme="harmony"] .hc-health-tile {
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0.03) 100%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    padding: 0.95rem 1.05rem 0.9rem;
}

html[data-theme="harmony"] .hc-health-tile::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 3px;
    background: linear-gradient(90deg, #b794f6 0%, #f687b3 100%);
    opacity: 0.85;
}

html[data-theme="harmony"] .hc-health-tile span {
    display: block;
    color: #f9a8d4;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

html[data-theme="harmony"] .hc-health-tile strong {
    display: block;
    margin-top: 0.2rem;
    font-family: "Playfair Display", Georgia, serif;
    font-size: 2rem;
    font-weight: 600;
    font-variant-numeric: lining-nums tabular-nums;
    line-height: 1.15;
    color: #f7fafc;
    background: linear-gradient(135deg, #f7fafc 0%, #d6bcfa 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

html[data-theme="harmony"] .hc-health-delta {
    display: block;
    margin-top: 0.25rem;
    font-style: normal;
    font-size: 0.84rem;
    color: #cbd5e1;
}

html[data-theme="harmony"] .hc-health-delta.up { color: #d6bcfa; }
html[data-theme="harmony"] .hc-health-delta.down { color: #fda4af; }

html[data-theme="harmony"] #health-chart .modebar,
html[data-theme="harmony"] #health-waterfall .modebar {
    background: rgba(16, 11, 24, 0.85) !important;
    border-radius: 8px;
}

html[data-theme="harmony"] #health-chart .modebar-btn path,
html[data-theme="harmony"] #health-waterfall .modebar-btn path {
    fill: #f7fafc;
}

@media (max-width: 900px) {
    html[data-theme="harmony"] .hc-health-kpis {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    html[data-theme="harmony"] .hc-health-title {
        font-size: 1.35rem;
    }

    html[data-theme="harmony"] .hc-health-tile {
        padding: 0.75rem 0.75rem 0.7rem;
    }

    html[data-theme="harmony"] .hc-health-tile strong {
        font-size: 1.5rem;
    }

    html[data-theme="harmony"] .hc-health-controls {
        justify-content: flex-start;
    }

    html[data-theme="harmony"] .hc-health-controls .hc-health-note {
        text-align: left;
    }

    html[data-theme="harmony"] .hc-health-ranges button,
    html[data-theme="harmony"] .hc-health-textbtn {
        padding: 0.4rem 0.75rem;
        font-size: 0.8rem;
    }
}

html[data-theme="harmony"] footer {
    background: #0d0b14 !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

html[data-theme="harmony"] .bg-light {
    background-color: rgba(255, 255, 255, 0.05) !important;
    color: #f7fafc;
}

/* Interest capsules sit on dark cards. Dark text on the faint bg-light wash was unreadable. */
html[data-theme="harmony"] .badge.member-interest,
html[data-theme="harmony"] .badge.bg-light,
html[data-theme="harmony"] .badge.bg-light.text-dark {
    background: #f4ecff !important;
    border: 1px solid rgba(88, 28, 135, 0.28);
    color: #2a1838 !important;
    line-height: 1.3;
    max-width: 100%;
    overflow: visible;
    overflow-wrap: anywhere;
    text-align: center;
    white-space: normal;
}

@media (prefers-reduced-motion: reduce) {
    html[data-theme="harmony"] .card,
    html[data-theme="harmony"] .btn,
    html[data-theme="harmony"] .nav-link {
        transition: none;
    }
}

/* admin-portal-table-skin
   Bootstrap .table-light and .table-secondary set a white background and black
   text. On the admin portal those rows stay on the same deep purple surface
   as the nav, including when the skin is Ocean. Member and marketing pages
   are unchanged. The notification bell keeps its place but admin content
   clears it so it does not cover Filter or the table. */
body.hc-admin-portal .table {
    --bs-table-color: #f7fafc;
    --bs-table-bg: #161222;
    --bs-table-border-color: rgba(255, 255, 255, 0.1);
    --bs-table-accent-bg: transparent;
    --bs-table-striped-color: #f7fafc;
    --bs-table-striped-bg: #1b1628;
    --bs-table-active-color: #f7fafc;
    --bs-table-active-bg: #2a2340;
    --bs-table-hover-color: #f7fafc;
    --bs-table-hover-bg: #2a2340;
    color: #f7fafc;
    border-color: rgba(255, 255, 255, 0.1);
}

body.hc-admin-portal .table-light,
body.hc-admin-portal .table-secondary,
body.hc-admin-portal .table-success,
body.hc-admin-portal .table-warning,
body.hc-admin-portal .table-danger,
body.hc-admin-portal .table-info,
body.hc-admin-portal .table-primary,
body.hc-admin-portal .table-dark {
    --bs-table-color: #f7fafc;
    --bs-table-bg: #161222;
    --bs-table-border-color: rgba(255, 255, 255, 0.1);
    --bs-table-striped-color: #f7fafc;
    --bs-table-striped-bg: #1b1628;
    --bs-table-active-color: #f7fafc;
    --bs-table-active-bg: #2a2340;
    --bs-table-hover-color: #f7fafc;
    --bs-table-hover-bg: #2a2340;
    color: #f7fafc;
    border-color: rgba(255, 255, 255, 0.1);
}

body.hc-admin-portal .table > :not(caption) > * > * {
    background-color: #161222;
    color: #f7fafc;
    border-bottom-color: rgba(255, 255, 255, 0.1);
    box-shadow: none;
}

body.hc-admin-portal .table thead > tr > * {
    background-color: #1c1730;
    color: #f7fafc;
}

body.hc-admin-portal .table-hover > tbody > tr:hover > * {
    background-color: #2a2340;
    color: #f7fafc;
    box-shadow: none;
}

body.hc-admin-portal .table a:not(.btn) {
    color: #d6bcfa;
}

body.hc-admin-portal .table a:not(.btn):hover {
    color: #f7fafc;
}

body.hc-admin-portal .table .text-muted {
    color: rgba(247, 250, 252, 0.68) !important;
}

body.hc-admin-portal .card:has(.table) {
    background: #161222;
    color: #f7fafc;
    border-color: rgba(255, 255, 255, 0.1);
}

body.hc-admin-portal .card:has(.table) > .card-header {
    background: #1c1730;
    color: #f7fafc;
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

@media (min-width: 769px) {
    body.hc-admin-portal main.container-fluid {
        padding-right: 7rem;
    }
}

/* Phone coach and relationship chat. Wider screens keep the 460px dock. */
@media (max-width: 768px) {
    .harmony-guide.is-inline .harmony-guide-panel,
    .harmony-guide.is-docked .harmony-guide-panel {
        height: auto;
        max-height: none;
        overflow: visible;
    }

    .harmony-guide.is-inline .harmony-guide-line,
    .harmony-guide.is-docked .harmony-guide-line,
    .harmony-guide.is-inline .harmony-guide-waiting,
    .harmony-guide.is-docked .harmony-guide-waiting,
    .companion-bubble .harmony-guide-line,
    .companion-bubble .harmony-guide-waiting,
    #chatMessages .message p {
        flex: 0 0 auto;
        height: auto;
        max-height: none;
        overflow: visible;
        overflow-wrap: anywhere;
    }

    #chatMessages .message-time {
        flex: 0 0 auto;
        overflow-wrap: normal;
        white-space: nowrap;
    }

    .harmony-guide.is-inline .harmony-guide-form,
    .harmony-guide.is-docked .harmony-guide-form,
    .companion-bubble .harmony-guide-form,
    #messageForm {
        position: relative;
        z-index: 1035;
    }

    .notification-panel {
        box-sizing: border-box;
        height: 100dvh;
        max-height: 100dvh;
    }
}
