:root {
    color-scheme: only light;
    --dh-primary: #f1bc16;
    --dh-primary-dark: #c99500;
    --dh-primary-soft: #fff2bf;
    --dh-ink: #15202b;
    --dh-ink-soft: #5d6773;
    --dh-ink-muted: #6a7380;
    --dh-surface: #ffffff;
    --dh-surface-alt: #f6f1e7;
    --dh-surface-soft: #eef3f7;
    --dh-border: #d8e0e8;
    --dh-border-strong: #bbc5d1;
    --dh-success: #1f7a54;
    --dh-warning: #996607;
    --dh-danger: #bc4431;
    --dh-sidebar: #16202a;
    --dh-sidebar-soft: #20303f;
    --dh-radius-xs: 12px;
    --dh-radius-sm: 18px;
    --dh-radius: 24px;
    --dh-radius-md: 28px;
    --dh-radius-lg: 32px;
    --dh-shadow-xs: 0 4px 12px rgba(15, 23, 42, 0.05);
    --dh-shadow-sm: 0 16px 35px rgba(15, 23, 42, 0.08);
    --dh-shadow: 0 30px 70px rgba(15, 23, 42, 0.12);
    --dh-shadow-lg: 0 40px 90px rgba(15, 23, 42, 0.18);
    --dh-space-xs: 0.25rem;
    --dh-space-sm: 0.5rem;
    --dh-space-md: 1rem;
    --dh-space-lg: 1.5rem;
    --dh-space-xl: 2.5rem;
    --dh-transition: 0.2s ease;
}

/* COLLABORATORS — multilingual premium operations workspace */
.dh-collab-premium-hero,
.dh-collab-form-hero {
    overflow: hidden;
    background:
        radial-gradient(circle at 92% 8%, rgba(255, 255, 255, 0.92), transparent 24%),
        radial-gradient(circle at 10% 115%, rgba(241, 188, 22, 0.22), transparent 36%),
        linear-gradient(135deg, #fffdf6 0%, #f7fbff 55%, #eef5ff 100%);
}

.dh-collab-premium-hero::before,
.dh-collab-form-hero::before {
    content: "";
    position: absolute;
    inset: auto 2rem 1.2rem auto;
    width: 7rem;
    height: 7rem;
    border: 1px solid rgba(241, 188, 22, 0.22);
    border-radius: 50%;
    box-shadow:
        -1.8rem -1.4rem 0 -1px rgba(255, 255, 255, 0.42),
        -3.7rem 0.6rem 0 -1px rgba(35, 97, 206, 0.06);
    pointer-events: none;
}

.dh-collab-summary .dh-kpi {
    min-height: 10rem;
}

.dh-collab-section {
    border-color: rgba(20, 39, 67, 0.075);
    box-shadow: 0 20px 52px rgba(15, 34, 62, 0.065);
}

.dh-collab-section > .d-flex:first-child {
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(20, 39, 67, 0.07);
}

.dh-collab-liquidation-card,
.dh-collab-row-card,
.dh-preset-summary-card {
    transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.dh-collab-liquidation-card:hover,
.dh-collab-row-card:hover,
.dh-preset-summary-card:hover {
    transform: translateY(-2px);
    border-color: rgba(241, 188, 22, 0.28);
    box-shadow: 0 18px 40px rgba(15, 34, 62, 0.085);
}

.dh-collab-access-panel {
    padding: 1rem;
    border: 1px solid rgba(241, 188, 22, 0.22);
    border-radius: 22px;
    background:
        radial-gradient(circle at 100% 0%, rgba(241, 188, 22, 0.12), transparent 36%),
        linear-gradient(180deg, rgba(255, 251, 235, 0.78), rgba(255, 255, 255, 0.96));
}

.dh-collab-access-panel.is-linked {
    border-color: rgba(32, 104, 214, 0.15);
    background:
        radial-gradient(circle at 100% 0%, rgba(32, 104, 214, 0.09), transparent 38%),
        linear-gradient(180deg, rgba(245, 249, 255, 0.92), rgba(255, 255, 255, 0.98));
}

.dh-collab-editor-layout > [class*="col-"] {
    min-width: 0;
}

.dh-collab-guide {
    position: sticky;
    top: 1rem;
    border-color: rgba(241, 188, 22, 0.18);
    background:
        radial-gradient(circle at 100% 0%, rgba(241, 188, 22, 0.1), transparent 34%),
        rgba(255, 255, 255, 0.96);
}

.dh-collab-guide__list {
    display: grid;
    gap: 1rem;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: collab-guide;
}

.dh-collab-guide__list li {
    position: relative;
    min-height: 2.25rem;
    padding-left: 3rem;
    color: var(--dh-ink-soft);
    font-size: 0.9rem;
    line-height: 1.55;
    counter-increment: collab-guide;
}

.dh-collab-guide__list li::before {
    content: counter(collab-guide);
    position: absolute;
    top: 0;
    left: 0;
    display: grid;
    width: 2.15rem;
    height: 2.15rem;
    place-items: center;
    border-radius: 14px;
    background: rgba(241, 188, 22, 0.16);
    color: #9c6800;
    font-size: 0.78rem;
    font-weight: 900;
}

@media (max-width: 1199px) {
    .dh-collab-guide {
        position: static;
    }
}

@media (max-width: 767px) {
    .dh-collab-premium-hero::before,
    .dh-collab-form-hero::before {
        display: none;
    }

    .dh-collab-summary {
        --bs-gutter-x: 0.75rem;
    }

    .dh-collab-summary .dh-kpi {
        min-height: 8.75rem;
    }

    .dh-collab-summary .dh-kpi-note {
        font-size: 0.72rem;
        line-height: 1.35;
    }

    .dh-collab-access-panel {
        border-radius: 18px;
    }
}

/* ASSISTANCE — premium support and roadmap workspace */
.dh-feedback-hero {
    overflow: hidden;
    background:
        radial-gradient(circle at 92% 10%, rgba(255, 255, 255, 0.94), transparent 24%),
        radial-gradient(circle at 12% 120%, rgba(241, 188, 22, 0.24), transparent 38%),
        linear-gradient(135deg, #fffdf7 0%, #f6fbff 56%, #edf4ff 100%);
}

.dh-feedback-hero::before {
    content: "";
    position: absolute;
    right: 2.2rem;
    bottom: 1.25rem;
    width: 7rem;
    height: 7rem;
    border: 1px solid rgba(241, 188, 22, 0.24);
    border-radius: 50%;
    box-shadow:
        -1.8rem -1.3rem 0 -1px rgba(255, 255, 255, 0.5),
        -3.8rem 0.6rem 0 -1px rgba(35, 97, 206, 0.07);
    pointer-events: none;
}

.dh-feedback-jump-nav {
    display: flex;
    gap: 0.5rem;
    padding: 0.35rem;
    overflow-x: auto;
    border: 1px solid rgba(20, 39, 67, 0.08);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 10px 28px rgba(15, 34, 62, 0.05);
    scrollbar-width: none;
}

.dh-feedback-jump-nav::-webkit-scrollbar {
    display: none;
}

.dh-feedback-jump-nav a {
    min-width: max-content;
    padding: 0.62rem 1rem;
    border-radius: 999px;
    color: var(--dh-ink-soft);
    font-size: 0.82rem;
    font-weight: 800;
    text-decoration: none;
    transition: color 160ms ease, background 160ms ease, transform 160ms ease;
}

.dh-feedback-jump-nav a:hover,
.dh-feedback-jump-nav a:focus-visible {
    color: var(--dh-ink);
    background: rgba(241, 188, 22, 0.16);
    transform: translateY(-1px);
}

.dh-feedback-summary .dh-kpi {
    min-height: 9.8rem;
}

.dh-feedback-support-section,
.dh-feedback-roadmap-section,
#nuovo-ticket,
#novita-doggiehub {
    scroll-margin-top: 1rem;
}

.dh-support-grid {
    display: grid;
    grid-template-columns: minmax(19rem, 0.82fr) minmax(0, 1.55fr);
    gap: 1.25rem;
    align-items: stretch;
}

.dh-support-sidebar {
    display: grid;
    gap: 1.25rem;
    align-content: start;
}

.dh-support-sidebar > .dh-card,
.dh-support-thread,
.dh-feedback-proposal,
.dh-feedback-roadmap-grid > div > .dh-card {
    border-color: rgba(20, 39, 67, 0.075);
    box-shadow: 0 20px 52px rgba(15, 34, 62, 0.065);
}

.dh-support-ticket-list {
    display: grid;
    gap: 0.65rem;
}

.dh-support-ticket {
    display: flex;
    gap: 0.8rem;
    align-items: flex-start;
    justify-content: space-between;
    padding: 0.9rem;
    border: 1px solid rgba(20, 39, 67, 0.08);
    border-radius: 18px;
    color: var(--dh-ink);
    background: rgba(248, 250, 253, 0.82);
    text-decoration: none;
    transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.dh-support-ticket:hover,
.dh-support-ticket:focus-visible {
    color: var(--dh-ink);
    border-color: rgba(241, 188, 22, 0.34);
    background: #fffefa;
    box-shadow: 0 12px 28px rgba(15, 34, 62, 0.07);
    transform: translateY(-1px);
}

.dh-support-ticket.is-selected {
    border-color: rgba(241, 188, 22, 0.55);
    background:
        radial-gradient(circle at 100% 0%, rgba(241, 188, 22, 0.16), transparent 42%),
        #fffdf6;
    box-shadow: inset 3px 0 0 var(--dh-primary);
}

.dh-support-ticket__main {
    display: grid;
    min-width: 0;
    gap: 0.2rem;
}

.dh-support-ticket__subject {
    overflow: hidden;
    font-size: 0.9rem;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dh-support-ticket__meta,
.dh-support-ticket__date {
    color: var(--dh-ink-muted);
    font-size: 0.75rem;
    line-height: 1.45;
}

.dh-support-thread {
    min-width: 0;
    min-height: 42rem;
}

.dh-support-thread__header {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 1.3rem;
    padding-bottom: 1.1rem;
    border-bottom: 1px solid rgba(20, 39, 67, 0.08);
}

.dh-support-thread__meta {
    color: var(--dh-ink-muted);
    font-size: 0.82rem;
}

.dh-support-thread__empty {
    display: grid;
    min-height: 34rem;
    place-content: center;
    justify-items: center;
    gap: 1rem;
    color: var(--dh-ink-soft);
    text-align: center;
}

.dh-support-thread__empty-mark {
    display: grid;
    width: 4.25rem;
    height: 4.25rem;
    place-items: center;
    border: 1px solid rgba(241, 188, 22, 0.3);
    border-radius: 22px;
    color: #916000;
    background: rgba(241, 188, 22, 0.13);
    font-size: 1.55rem;
    font-weight: 900;
}

.dh-support-message-list {
    display: grid;
    gap: 0.85rem;
    margin-bottom: 1.4rem;
}

.dh-support-message {
    width: min(90%, 46rem);
    padding: 1rem 1.05rem;
    border: 1px solid rgba(20, 39, 67, 0.08);
    border-radius: 22px 22px 22px 8px;
    background: #f7f9fc;
}

.dh-support-message.is-centre {
    margin-left: auto;
    border-color: rgba(241, 188, 22, 0.24);
    border-radius: 22px 22px 8px 22px;
    background: #fffaf0;
}

.dh-support-message.is-platform {
    box-shadow: inset 3px 0 0 rgba(35, 97, 206, 0.38);
}

.dh-support-message__header {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    justify-content: space-between;
}

.dh-support-message__author {
    font-size: 0.86rem;
    font-weight: 850;
}

.dh-support-message__role,
.dh-support-message__date {
    color: var(--dh-ink-muted);
    font-size: 0.71rem;
}

.dh-support-message__body {
    margin-top: 0.8rem;
    color: var(--dh-ink);
    font-size: 0.9rem;
    line-height: 1.65;
    overflow-wrap: anywhere;
}

.dh-support-reply {
    margin-top: auto;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(20, 39, 67, 0.08);
}

.dh-feedback-roadmap-grid {
    display: grid;
    grid-template-columns: minmax(17rem, 0.62fr) minmax(0, 1.38fr);
    gap: 1.25rem;
    align-items: start;
}

.dh-feedback-proposal {
    position: sticky;
    top: 1rem;
}

.dh-roadmap-list,
.dh-changelog-list {
    display: grid;
    gap: 0.9rem;
}

.dh-roadmap-card {
    padding: 1.1rem;
    border: 1px solid rgba(20, 39, 67, 0.08);
    border-radius: 22px;
    background:
        radial-gradient(circle at 100% 0%, rgba(241, 188, 22, 0.07), transparent 34%),
        #fff;
    transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.dh-roadmap-card:hover {
    border-color: rgba(241, 188, 22, 0.27);
    box-shadow: 0 16px 34px rgba(15, 34, 62, 0.07);
    transform: translateY(-1px);
}

.dh-roadmap-card__top {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    justify-content: space-between;
}

.dh-roadmap-card__content {
    min-width: 0;
}

.dh-roadmap-card__labels {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-bottom: 0.65rem;
}

.dh-roadmap-card__labels span {
    padding: 0.28rem 0.58rem;
    border-radius: 999px;
    color: var(--dh-ink-soft);
    background: #eef2f6;
    font-size: 0.67rem;
    font-weight: 850;
    letter-spacing: 0.025em;
}

.dh-roadmap-card__labels .is-status {
    color: #795a00;
    background: #fff1c6;
}

.dh-roadmap-card__title {
    margin: 0;
    color: var(--dh-ink);
    font-size: 1rem;
    font-weight: 850;
    line-height: 1.35;
}

.dh-roadmap-card__target {
    margin-top: 0.28rem;
    color: var(--dh-ink-muted);
    font-size: 0.72rem;
    font-weight: 750;
}

.dh-roadmap-card__description {
    margin-top: 0.75rem;
    color: var(--dh-ink-soft);
    font-size: 0.84rem;
    line-height: 1.62;
    overflow-wrap: anywhere;
}

.dh-roadmap-vote {
    display: grid;
    min-width: 8.5rem;
    gap: 0.55rem;
    justify-items: end;
}

.dh-roadmap-vote__count {
    color: var(--dh-ink);
    font-size: 0.78rem;
    font-weight: 850;
}

.dh-roadmap-thread,
.dh-roadmap-comment-form {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(20, 39, 67, 0.08);
}

.dh-roadmap-thread__title {
    margin-bottom: 0.75rem;
    color: var(--dh-ink-muted);
    font-size: 0.72rem;
    font-weight: 850;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.dh-roadmap-comment + .dh-roadmap-comment {
    margin-top: 0.9rem;
}

.dh-roadmap-comment header {
    display: flex;
    gap: 0.75rem;
    justify-content: space-between;
    color: var(--dh-ink-muted);
    font-size: 0.72rem;
}

.dh-roadmap-comment > div {
    margin-top: 0.35rem;
    color: var(--dh-ink-soft);
    font-size: 0.8rem;
    line-height: 1.55;
    overflow-wrap: anywhere;
}

.dh-roadmap-comment-form summary {
    list-style: none;
    cursor: pointer;
}

.dh-roadmap-comment-form summary::-webkit-details-marker {
    display: none;
}

.dh-roadmap-comment-form summary::after {
    content: " +";
}

.dh-roadmap-comment-form[open] summary::after {
    content: " −";
}

.dh-changelog-card {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    justify-content: space-between;
    padding: 1rem 1.05rem;
    border: 1px solid rgba(20, 39, 67, 0.08);
    border-radius: 20px;
    background: rgba(248, 250, 253, 0.78);
}

.dh-changelog-card h3 {
    margin: 0;
    color: var(--dh-ink);
    font-size: 0.94rem;
    font-weight: 850;
}

.dh-changelog-card__meta {
    margin-top: 0.22rem;
    color: var(--dh-ink-muted);
    font-size: 0.72rem;
}

.dh-changelog-card p {
    margin: 0.55rem 0 0;
    color: var(--dh-ink-soft);
    font-size: 0.82rem;
    line-height: 1.55;
}

@media (max-width: 1199.98px) {
    .dh-support-grid,
    .dh-feedback-roadmap-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .dh-feedback-proposal {
        position: static;
    }

    .dh-support-sidebar {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767.98px) {
    .dh-feedback-hero::before {
        display: none;
    }

    .dh-feedback-summary {
        --bs-gutter-x: 0.75rem;
    }

    .dh-feedback-summary .dh-kpi {
        min-height: 8.6rem;
    }

    .dh-feedback-summary .dh-kpi-note {
        font-size: 0.72rem;
        line-height: 1.35;
    }

    .dh-support-sidebar {
        grid-template-columns: minmax(0, 1fr);
    }

    .dh-support-thread {
        min-height: 28rem;
    }

    .dh-support-thread__empty {
        min-height: 20rem;
    }

    .dh-support-message {
        width: 96%;
    }

    .dh-roadmap-card__top,
    .dh-support-thread__header {
        flex-direction: column;
    }

    .dh-roadmap-vote {
        display: flex;
        width: 100%;
        align-items: center;
        justify-content: space-between;
    }
}

/* Multi-turn WhatsApp simulator: session-only conversation and diagnostics. */
.dh-wa-simulator__hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .65rem;
}

.dh-wa-simulator__hero-actions form {
    margin: 0;
}

.dh-wa-simulator__safety small {
    margin-left: auto;
    color: #39705f;
    font-weight: 800;
    letter-spacing: .06em;
}

.dh-wa-simulator__chat-card,
.dh-wa-simulator__diagnostics {
    padding: clamp(1rem, 2vw, 1.5rem);
    border: 1px solid rgba(13, 27, 61, .09);
}

.dh-wa-simulator__form-card {
    position: sticky;
    top: 1rem;
}

.dh-wa-simulator__settings {
    display: grid;
    gap: .85rem;
}

.dh-wa-simulator__memory {
    margin-top: 1.25rem;
    padding-top: 1.1rem;
    border-top: 1px solid #e6eaf1;
}

.dh-wa-simulator__memory h3 {
    margin: 0 0 .7rem;
    color: var(--wa-lab-navy);
    font-size: .94rem;
    font-weight: 800;
}

.dh-wa-simulator__memory p {
    margin: 0;
    color: #687386;
    font-size: .82rem;
}

.dh-wa-simulator__memory-chips {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem;
}

.dh-wa-simulator__memory-chips span {
    display: inline-flex;
    flex-direction: column;
    gap: .05rem;
    padding: .48rem .62rem;
    border: 1px solid #dfe5ef;
    border-radius: .75rem;
    background: #f7f9fc;
    color: #182746;
    font-size: .78rem;
    font-weight: 750;
}

.dh-wa-simulator__memory-chips small {
    color: #738096;
    font-size: .62rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.dh-wa-simulator__conversation {
    display: flex;
    min-height: 23rem;
    max-height: 36rem;
    flex-direction: column;
    gap: .8rem;
    padding: clamp(.85rem, 2vw, 1.3rem);
    border: 1px solid #e2e7f0;
    border-radius: 1.2rem;
    background:
        radial-gradient(circle at 8% 12%, rgba(255, 201, 40, .09), transparent 24%),
        #f4f6fa;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.dh-wa-simulator__bubble {
    width: min(82%, 38rem);
    padding: .78rem .92rem;
    border-radius: 1rem;
    box-shadow: 0 7px 22px rgba(21, 36, 67, .07);
}

.dh-wa-simulator__bubble small {
    display: block;
    margin-bottom: .25rem;
    font-size: .68rem;
    font-weight: 850;
    letter-spacing: .04em;
    opacity: .72;
    text-transform: uppercase;
}

.dh-wa-simulator__bubble p {
    margin: 0;
    line-height: 1.55;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.dh-wa-simulator__bubble:focus-visible {
    outline: 3px solid rgba(255, 201, 40, .72);
    outline-offset: 3px;
}

.dh-wa-simulator__bubble > span {
    display: inline-flex;
    margin-top: .55rem;
    padding: .23rem .5rem;
    border-radius: 999px;
    background: #fff1b8;
    color: #6c5200;
    font-size: .7rem;
    font-weight: 800;
}

.dh-wa-simulator__bubble.is-user {
    align-self: flex-end;
    border-bottom-right-radius: .3rem;
    background: #142648;
    color: #fff;
}

.dh-wa-simulator__bubble.is-assistant {
    align-self: flex-start;
    border: 1px solid #e1e6ef;
    border-bottom-left-radius: .3rem;
    background: #fff;
    color: #172541;
}

.dh-wa-simulator__composer {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: .7rem;
    margin-top: .85rem;
    align-items: end;
}

.dh-wa-simulator__composer textarea {
    min-height: 5.4rem;
    max-height: 12rem;
    border-radius: 1rem;
}

.dh-wa-simulator__composer .btn {
    min-height: 3.25rem;
    border-radius: 1rem;
}

.dh-wa-simulator__diagnostics {
    margin-top: 1rem;
}

.dh-wa-simulator__diagnostic-columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.dh-wa-simulator__compact-list {
    display: grid;
    gap: .5rem;
}

.dh-wa-simulator__compact-list > div {
    display: flex;
    justify-content: space-between;
    gap: .75rem;
    padding: .66rem .72rem;
    border-radius: .8rem;
    background: #f5f7fb;
    color: #25324c;
    font-size: .76rem;
}

.dh-wa-simulator__compact-list span {
    color: #637087;
    text-align: right;
}

@media (max-width: 991.98px) {
    .dh-wa-simulator__form-card {
        position: static;
    }

    .dh-wa-simulator__diagnostic-columns {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 575.98px) {
    .dh-wa-simulator__hero-actions,
    .dh-wa-simulator__hero-actions form,
    .dh-wa-simulator__hero-actions .btn {
        width: 100%;
    }

    .dh-wa-simulator__composer {
        grid-template-columns: 1fr;
    }

    .dh-wa-simulator__bubble {
        width: 92%;
    }
}

@media (max-width: 575.98px) {
    .dh-feedback-jump-nav {
        border-radius: 20px;
    }

    .dh-support-message__header,
    .dh-roadmap-comment header,
    .dh-changelog-card {
        flex-direction: column;
    }

    .dh-support-message__date {
        margin-top: 0.2rem;
    }
}

/* SHOP — premium, multilingual and first-party showcase */
.dh-shop-hero {
    overflow: hidden;
    background:
        radial-gradient(circle at 90% 8%, rgba(255, 255, 255, 0.95), transparent 23%),
        radial-gradient(circle at 9% 115%, rgba(241, 188, 22, 0.25), transparent 38%),
        linear-gradient(135deg, #fffdf6 0%, #f8fbff 54%, #eef5ff 100%);
}

.dh-shop-hero::before {
    content: "";
    position: absolute;
    right: 2rem;
    bottom: 1rem;
    width: 7rem;
    height: 7rem;
    border: 1px solid rgba(241, 188, 22, 0.25);
    border-radius: 28px;
    box-shadow:
        -1.7rem -1.25rem 0 -1px rgba(255, 255, 255, 0.5),
        -3.5rem 0.7rem 0 -1px rgba(35, 97, 206, 0.07);
    transform: rotate(12deg);
    pointer-events: none;
}

.dh-shop-public-disabled {
    display: inline-flex;
    align-items: center;
    min-height: 2.75rem;
    padding: 0.65rem 1rem;
    border: 1px solid rgba(20, 39, 67, 0.1);
    border-radius: 999px;
    color: var(--dh-ink-soft);
    background: rgba(255, 255, 255, 0.72);
    font-size: 0.8rem;
    font-weight: 800;
}

.dh-shop-jump-nav {
    display: flex;
    gap: 0.5rem;
    padding: 0.35rem;
    overflow-x: auto;
    border: 1px solid rgba(20, 39, 67, 0.08);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 10px 28px rgba(15, 34, 62, 0.05);
    scrollbar-width: none;
}

.dh-shop-jump-nav::-webkit-scrollbar {
    display: none;
}

.dh-shop-jump-nav a {
    min-width: max-content;
    padding: 0.62rem 1rem;
    border-radius: 999px;
    color: var(--dh-ink-soft);
    font-size: 0.82rem;
    font-weight: 800;
    text-decoration: none;
    transition: color 160ms ease, background 160ms ease, transform 160ms ease;
}

.dh-shop-jump-nav a:hover,
.dh-shop-jump-nav a:focus-visible {
    color: var(--dh-ink);
    background: rgba(241, 188, 22, 0.16);
    transform: translateY(-1px);
}

.dh-shop-summary .dh-kpi {
    min-height: 9.8rem;
}

.dh-shop-visibility-value {
    font-size: clamp(1.15rem, 2vw, 1.7rem) !important;
}

.dh-shop-section {
    scroll-margin-top: 1rem;
    border-color: rgba(20, 39, 67, 0.075);
    box-shadow: 0 20px 52px rgba(15, 34, 62, 0.065);
}

.dh-shop-section__header {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    justify-content: space-between;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(20, 39, 67, 0.07);
}

.dh-shop-settings-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    align-items: start;
}

.dh-shop-settings-grid__wide {
    grid-column: 1 / -1;
}

.dh-shop-switch-card {
    display: flex;
    gap: 1rem;
    min-height: 6.5rem;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    border: 1px solid rgba(20, 39, 67, 0.08);
    border-radius: 20px;
    background:
        radial-gradient(circle at 100% 0%, rgba(241, 188, 22, 0.08), transparent 44%),
        #fbfcfe;
    cursor: pointer;
}

.dh-shop-switch-card__title,
.dh-shop-switch-card__copy {
    display: block;
}

.dh-shop-switch-card__title {
    color: var(--dh-ink);
    font-size: 0.9rem;
    font-weight: 850;
}

.dh-shop-switch-card__copy {
    margin-top: 0.3rem;
    color: var(--dh-ink-muted);
    font-size: 0.76rem;
    line-height: 1.5;
}

.dh-shop-switch-card .form-check-input {
    width: 2.6rem;
    height: 1.35rem;
    margin: 0;
    cursor: pointer;
}

.dh-shop-import-bar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.75rem;
    align-items: end;
    padding: 1rem;
    border: 1px solid rgba(241, 188, 22, 0.2);
    border-radius: 22px;
    background:
        radial-gradient(circle at 100% 0%, rgba(241, 188, 22, 0.12), transparent 38%),
        #fffdf7;
}

.dh-shop-import-bar__field {
    min-width: 0;
}

.dh-shop-analyse-button {
    display: inline-flex;
    min-height: 3rem;
    align-items: center;
    gap: 0.5rem;
}

.dh-shop-product-editor {
    padding: 1.15rem;
    border: 1px solid rgba(35, 97, 206, 0.12);
    border-radius: 24px;
    background:
        radial-gradient(circle at 100% 0%, rgba(35, 97, 206, 0.065), transparent 38%),
        rgba(250, 252, 255, 0.94);
}

.dh-shop-image-editor {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 1rem;
    align-items: end;
}

.dh-shop-image-preview {
    width: 7.5rem;
    height: 6rem;
    overflow: hidden;
    border: 1px solid rgba(20, 39, 67, 0.08);
    border-radius: 18px;
    background: #f2f5f8;
}

.dh-shop-image-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dh-shop-price-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 5.6rem;
    gap: 0.55rem;
}

.dh-shop-empty {
    display: grid;
    min-height: 22rem;
    place-content: center;
    justify-items: center;
    padding: 2rem;
    color: var(--dh-ink-soft);
    text-align: center;
}

.dh-shop-empty__icon {
    display: grid;
    width: 4.6rem;
    height: 4.6rem;
    place-items: center;
    border: 1px solid rgba(241, 188, 22, 0.28);
    border-radius: 24px;
    color: #916000;
    background: rgba(241, 188, 22, 0.13);
}

.dh-shop-empty__glyph {
    width: 2rem;
    height: 2rem;
}

.dh-shop-empty h3 {
    margin: 1rem 0 0;
    color: var(--dh-ink);
    font-size: 1.05rem;
    font-weight: 850;
}

.dh-shop-empty p {
    max-width: 32rem;
    margin: 0.45rem 0 1rem;
    font-size: 0.86rem;
    line-height: 1.6;
}

.dh-shop-store-list {
    display: grid;
    gap: 1rem;
}

.dh-shop-store {
    overflow: hidden;
    border: 1px solid rgba(20, 39, 67, 0.08);
    border-radius: 24px;
    background: #fff;
}

.dh-shop-store__header {
    display: flex;
    gap: 0.8rem;
    align-items: center;
    padding: 1rem 1.1rem;
    border-bottom: 1px solid rgba(20, 39, 67, 0.07);
    background:
        radial-gradient(circle at 100% 0%, rgba(241, 188, 22, 0.09), transparent 30%),
        #fafbfd;
}

.dh-shop-store__mark,
.dh-public-shop-store__mark,
.dh-public-shop-modal__store-mark {
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 14px;
    color: #7c5500;
    background: rgba(241, 188, 22, 0.16);
    font-weight: 900;
}

.dh-shop-store__mark {
    width: 2.6rem;
    height: 2.6rem;
}

.dh-shop-store__identity {
    display: grid;
    min-width: 0;
    margin-right: auto;
}

.dh-shop-store__name {
    color: var(--dh-ink);
    font-size: 0.92rem;
    font-weight: 850;
}

.dh-shop-store__domain {
    overflow: hidden;
    color: var(--dh-ink-muted);
    font-size: 0.72rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dh-shop-admin-products {
    display: grid;
}

.dh-shop-admin-product {
    display: grid;
    grid-template-columns: 4.3rem minmax(0, 1fr) auto;
    gap: 0.9rem;
    align-items: center;
    padding: 0.9rem 1.1rem;
}

.dh-shop-admin-product + .dh-shop-admin-product {
    border-top: 1px solid rgba(20, 39, 67, 0.065);
}

.dh-shop-admin-product__media {
    display: grid;
    width: 4.3rem;
    height: 4.3rem;
    overflow: hidden;
    place-items: center;
    border-radius: 17px;
    background: #f1f4f7;
}

.dh-shop-admin-product__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dh-shop-product-fallback {
    display: grid;
    width: 100%;
    height: 100%;
    place-items: center;
    color: #7a8490;
    background:
        radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.85), transparent 38%),
        #edf1f5;
}

.dh-shop-product-fallback__glyph {
    width: 1.55rem;
    height: 1.55rem;
}

.dh-shop-admin-product__body {
    min-width: 0;
}

.dh-shop-admin-product__category {
    display: inline-flex;
    margin-bottom: 0.25rem;
    padding: 0.2rem 0.5rem;
    border-radius: 999px;
    color: var(--dh-ink-soft);
    background: #eef2f6;
    font-size: 0.65rem;
    font-weight: 800;
}

.dh-shop-admin-product__body h3 {
    margin: 0;
    overflow: hidden;
    color: var(--dh-ink);
    font-size: 0.9rem;
    font-weight: 850;
    line-height: 1.4;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dh-shop-admin-product__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    margin-top: 0.35rem;
    color: var(--dh-ink-muted);
    font-size: 0.75rem;
}

.dh-shop-admin-product__actions {
    display: flex;
    gap: 0.45rem;
    align-items: center;
}

.dh-shop-admin-product__actions .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.38rem;
}

.dh-shop-modal .modal-content,
.dh-public-shop-modal .modal-content {
    overflow: hidden;
    border: 0;
    border-radius: 26px;
    box-shadow: 0 30px 80px rgba(15, 34, 62, 0.2);
}

/* Public tenant shop */
.dh-public-shop-page {
    min-height: 70vh;
    background:
        radial-gradient(circle at 0 0, rgba(241, 188, 22, 0.11), transparent 28%),
        linear-gradient(180deg, #fbfcfe 0%, #f3f6f9 100%);
}

.dh-public-shop-hero {
    position: relative;
    overflow: hidden;
    padding: clamp(2rem, 6vw, 4.4rem) clamp(1.25rem, 6vw, 4.5rem);
    border: 1px solid rgba(20, 39, 67, 0.07);
    border-radius: 34px;
    background:
        radial-gradient(circle at 88% 10%, rgba(255, 255, 255, 0.96), transparent 25%),
        radial-gradient(circle at 8% 110%, rgba(241, 188, 22, 0.22), transparent 38%),
        linear-gradient(135deg, #fffdf6 0%, #f6faff 54%, #eef5ff 100%);
    box-shadow: 0 28px 70px rgba(15, 34, 62, 0.09);
    text-align: center;
}

.dh-public-shop-hero__mark {
    display: grid;
    width: 4.2rem;
    height: 4.2rem;
    margin: 0 auto 1.1rem;
    place-items: center;
    border: 1px solid rgba(241, 188, 22, 0.28);
    border-radius: 22px;
    color: #8b5e00;
    background: rgba(255, 255, 255, 0.72);
    box-shadow: 0 14px 32px rgba(15, 34, 62, 0.08);
}

.dh-public-shop-hero__glyph {
    width: 1.85rem;
    height: 1.85rem;
}

.dh-public-shop-hero__eyebrow {
    color: #946200;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.dh-public-shop-hero h1 {
    max-width: 48rem;
    margin: 0.65rem auto 0;
    color: var(--dh-ink);
    font-size: clamp(1.8rem, 4.5vw, 3.4rem);
    font-weight: 900;
    letter-spacing: -0.045em;
    line-height: 1.06;
}

.dh-public-shop-hero p {
    max-width: 42rem;
    margin: 1rem auto 0;
    color: var(--dh-ink-soft);
    font-size: clamp(0.92rem, 1.7vw, 1.08rem);
    line-height: 1.7;
}

.dh-public-shop-hero__badge {
    display: inline-flex;
    max-width: 100%;
    margin-top: 1.3rem;
    padding: 0.62rem 0.9rem;
    border: 1px solid rgba(20, 39, 67, 0.09);
    border-radius: 999px;
    color: var(--dh-ink-soft);
    background: rgba(255, 255, 255, 0.78);
    font-size: 0.76rem;
    font-weight: 800;
    line-height: 1.45;
}

.dh-public-shop-disclosure {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 1rem;
    max-width: 62rem;
    margin: 1.25rem auto 2rem;
    padding: 1rem 1.15rem;
    border: 1px solid rgba(35, 97, 206, 0.13);
    border-radius: 22px;
    color: var(--dh-ink-soft);
    background: rgba(245, 249, 255, 0.92);
}

.dh-public-shop-disclosure__icon {
    display: grid;
    width: 2.7rem;
    height: 2.7rem;
    place-items: center;
    border-radius: 14px;
    color: #285cae;
    background: rgba(35, 97, 206, 0.1);
}

.dh-public-shop-disclosure__glyph {
    width: 1.25rem;
    height: 1.25rem;
}

.dh-public-shop-disclosure h2 {
    margin: 0;
    color: var(--dh-ink);
    font-size: 0.9rem;
    font-weight: 850;
}

.dh-public-shop-disclosure p {
    margin: 0.3rem 0 0;
    font-size: 0.8rem;
    line-height: 1.58;
}

.dh-public-shop-empty {
    display: grid;
    min-height: 26rem;
    place-content: center;
    justify-items: center;
    text-align: center;
}

.dh-public-shop-empty__mark {
    display: grid;
    width: 5rem;
    height: 5rem;
    place-items: center;
    border-radius: 26px;
    color: #8b5e00;
    background: rgba(241, 188, 22, 0.13);
}

.dh-public-shop-empty__glyph {
    width: 2rem;
    height: 2rem;
}

.dh-public-shop-empty h2 {
    margin: 1.1rem 0 0;
    color: var(--dh-ink);
    font-size: 1.2rem;
    font-weight: 850;
}

.dh-public-shop-empty p {
    margin: 0.45rem 0 0;
    color: var(--dh-ink-muted);
    font-size: 0.88rem;
}

.dh-public-shop-stores {
    display: grid;
    gap: 2.2rem;
}

.dh-public-shop-store {
    padding: 1.15rem;
    border: 1px solid rgba(20, 39, 67, 0.07);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 20px 52px rgba(15, 34, 62, 0.06);
}

.dh-public-shop-store__header {
    display: flex;
    gap: 0.8rem;
    align-items: center;
    margin-bottom: 1.1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(20, 39, 67, 0.07);
}

.dh-public-shop-store__mark {
    width: 2.8rem;
    height: 2.8rem;
}

.dh-public-shop-store__header > div {
    display: grid;
    min-width: 0;
    margin-right: auto;
}

.dh-public-shop-store__header h2 {
    margin: 0;
    color: var(--dh-ink);
    font-size: 1rem;
    font-weight: 850;
}

.dh-public-shop-store__header > div span {
    overflow: hidden;
    color: var(--dh-ink-muted);
    font-size: 0.72rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dh-public-shop-store__count {
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    color: var(--dh-ink-soft);
    background: #eef2f6;
    font-size: 0.7rem;
    font-weight: 800;
}

.dh-public-shop-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.dh-public-shop-category {
    grid-column: 1 / -1;
    margin: 0.2rem 0 -0.2rem;
    padding-bottom: 0.55rem;
    border-bottom: 1px solid rgba(20, 39, 67, 0.07);
    color: var(--dh-ink-soft);
    font-size: 0.76rem;
    font-weight: 850;
}

.dh-public-shop-product {
    display: flex;
    min-width: 0;
    overflow: hidden;
    flex-direction: column;
    border: 1px solid rgba(20, 39, 67, 0.08);
    border-radius: 22px;
    background: #fff;
    transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.dh-public-shop-product:hover {
    border-color: rgba(241, 188, 22, 0.3);
    box-shadow: 0 18px 38px rgba(15, 34, 62, 0.09);
    transform: translateY(-3px);
}

.dh-public-shop-product__media {
    display: grid;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    place-items: center;
    background: #f1f4f7;
}

.dh-public-shop-product__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dh-public-shop-product__fallback {
    display: grid;
    width: 100%;
    height: 100%;
    place-items: center;
    color: #818b96;
    background:
        radial-gradient(circle at 28% 20%, rgba(255, 255, 255, 0.9), transparent 38%),
        #edf1f5;
}

.dh-public-shop-product__fallback-glyph {
    width: 2rem;
    height: 2rem;
}

.dh-public-shop-product__body {
    display: flex;
    min-width: 0;
    flex: 1;
    flex-direction: column;
    padding: 0.95rem;
}

.dh-public-shop-product__category {
    align-self: flex-start;
    margin-bottom: 0.4rem;
    padding: 0.22rem 0.5rem;
    border-radius: 999px;
    color: var(--dh-ink-soft);
    background: #eef2f6;
    font-size: 0.62rem;
    font-weight: 800;
}

.dh-public-shop-product__body h3 {
    display: -webkit-box;
    margin: 0;
    overflow: hidden;
    color: var(--dh-ink);
    font-size: 0.9rem;
    font-weight: 850;
    line-height: 1.42;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.dh-public-shop-product__body p {
    display: -webkit-box;
    margin: 0.55rem 0 0;
    overflow: hidden;
    color: var(--dh-ink-muted);
    font-size: 0.75rem;
    line-height: 1.5;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.dh-public-shop-product__price {
    margin-top: auto;
    padding-top: 0.8rem;
    color: #8c5d00;
    font-size: 0.98rem;
    font-weight: 900;
}

.dh-public-shop-product__footer {
    padding: 0 0.95rem 0.95rem;
}

.dh-public-shop-product__footer .btn {
    display: inline-flex;
    min-height: 2.8rem;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    font-size: 0.78rem;
}

.dh-public-shop-modal .modal-dialog {
    max-width: 31rem;
}

.dh-public-shop-modal .modal-header {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 0.75rem;
    align-items: center;
    border: 0;
    background: #f8fafc;
}

.dh-public-shop-modal__store-mark {
    width: 2.4rem;
    height: 2.4rem;
}

.dh-public-shop-modal__product {
    display: grid;
    grid-template-columns: 4.2rem minmax(0, 1fr);
    gap: 0.85rem;
    align-items: center;
    padding: 0.85rem;
    border: 1px solid rgba(20, 39, 67, 0.08);
    border-radius: 18px;
    background: #fbfcfe;
}

.dh-public-shop-modal__image-wrap {
    display: grid;
    width: 4.2rem;
    height: 4.2rem;
    overflow: hidden;
    place-items: center;
    border-radius: 15px;
    background: #edf1f5;
}

.dh-public-shop-modal__image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dh-public-shop-modal__product-title {
    overflow: hidden;
    color: var(--dh-ink);
    font-size: 0.86rem;
    font-weight: 850;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dh-public-shop-modal__product-price {
    margin-top: 0.28rem;
    color: #8c5d00;
    font-size: 0.9rem;
    font-weight: 900;
}

.dh-public-shop-modal__copy {
    margin: 1rem 0 0;
    color: var(--dh-ink-soft);
    font-size: 0.82rem;
    line-height: 1.62;
}

.dh-public-shop-modal .modal-footer {
    border-color: rgba(20, 39, 67, 0.07);
}

@media (max-width: 1199.98px) {
    .dh-public-shop-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 991.98px) {
    .dh-public-shop-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767.98px) {
    .dh-shop-hero::before {
        display: none;
    }

    .dh-shop-summary {
        --bs-gutter-x: 0.75rem;
    }

    .dh-shop-summary .dh-kpi {
        min-height: 8.6rem;
    }

    .dh-shop-summary .dh-kpi-note {
        font-size: 0.72rem;
        line-height: 1.35;
    }

    .dh-shop-settings-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .dh-shop-settings-grid__wide {
        grid-column: auto;
    }

    .dh-shop-import-bar {
        grid-template-columns: minmax(0, 1fr);
    }

    .dh-shop-analyse-button {
        justify-content: center;
    }

    .dh-shop-admin-product {
        grid-template-columns: 3.8rem minmax(0, 1fr);
    }

    .dh-shop-admin-product__media {
        width: 3.8rem;
        height: 3.8rem;
    }

    .dh-shop-admin-product__actions {
        grid-column: 1 / -1;
        justify-content: flex-end;
    }

    .dh-public-shop-hero {
        border-radius: 26px;
    }
}

@media (max-width: 575.98px) {
    .dh-shop-jump-nav {
        border-radius: 20px;
    }

    .dh-shop-section__header,
    .dh-shop-image-editor,
    .dh-shop-store__header {
        align-items: stretch;
        flex-direction: column;
    }

    .dh-shop-image-editor {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
    }

    .dh-shop-image-preview {
        width: 100%;
        height: 10rem;
    }

    .dh-shop-admin-product__actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .dh-shop-admin-product__actions .btn,
    .dh-shop-admin-product__actions form {
        width: 100%;
    }

    .dh-shop-admin-product__actions .btn {
        justify-content: center;
    }

    .dh-public-shop-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .dh-public-shop-store {
        padding: 0.85rem;
        border-radius: 22px;
    }

    .dh-public-shop-store__header {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .dh-public-shop-store__count {
        margin-left: 3.6rem;
    }

    .dh-public-shop-disclosure {
        grid-template-columns: minmax(0, 1fr);
    }
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    color-scheme: only light;
}

body {
    margin: 0;
    color: var(--dh-ink);
    font-family: "Manrope", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    overflow-x: hidden;
    background:
        radial-gradient(circle at top left, rgba(241, 188, 22, 0.22), transparent 36%),
        radial-gradient(circle at top right, rgba(33, 150, 243, 0.08), transparent 28%),
        linear-gradient(180deg, #fcfaf4 0%, #f2f5f8 100%);
    color-scheme: only light;
}

@media (prefers-color-scheme: dark) {
    :root,
    html,
    body,
    .form-control,
    .form-select,
    .btn,
    .card,
    .alert,
    .table {
        color-scheme: only light;
    }

    body {
        background:
            radial-gradient(circle at top left, rgba(241, 188, 22, 0.22), transparent 36%),
            radial-gradient(circle at top right, rgba(33, 150, 243, 0.08), transparent 28%),
            linear-gradient(180deg, #fcfaf4 0%, #f2f5f8 100%);
    }
}

img,
svg,
iframe {
    max-width: 100%;
}

.leaflet-container {
    background: #eef3f7;
}

.leaflet-container img,
.leaflet-container svg,
.leaflet-container .leaflet-tile,
.leaflet-container .leaflet-marker-icon,
.leaflet-container .leaflet-marker-shadow {
    max-width: none !important;
    max-height: none !important;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--dh-ink);
    font-weight: 800;
    letter-spacing: -0.03em;
}

a {
    color: inherit;
}

.text-muted {
    color: var(--dh-ink-soft) !important;
}

.dh-billing-lock {
    position: fixed;
    inset: 0;
    z-index: 1085;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.dh-billing-lock__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(8px);
}

.dh-billing-lock__card {
    position: relative;
    width: min(640px, calc(100vw - 2rem));
    padding: 2rem;
    border-radius: var(--dh-radius-md);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 249, 232, 0.96));
    border: 1px solid rgba(21, 32, 43, 0.08);
    box-shadow: 0 34px 80px rgba(15, 23, 42, 0.22);
    text-align: center;
}

.btn,
.btn-dark,
.btn-outline-dark,
.dh-primary-btn,
.dh-outline-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    text-align: center;
    vertical-align: middle;
    border-radius: 999px !important;
    font-weight: 700;
}

.btn-sm {
    border-radius: 999px !important;
}

.btn-outline-dark {
    border-color: rgba(21, 32, 43, 0.18);
    color: var(--dh-ink);
}

.btn-outline-dark:hover,
.btn-outline-dark:focus {
    background: var(--dh-ink);
    border-color: var(--dh-ink);
    color: #ffffff;
}

.form-control,
.form-select {
    min-height: 54px;
    border-radius: 16px;
    border: 1px solid var(--dh-border);
    background: rgba(255, 255, 255, 0.95);
    box-shadow: none;
}

.form-control:focus,
.form-select:focus {
    border-color: rgba(241, 188, 22, 0.9);
    box-shadow: 0 0 0 0.25rem rgba(241, 188, 22, 0.18);
}

.form-control.form-control-sm,
.form-select.form-select-sm {
    min-height: 42px;
    border-radius: 14px;
}

.form-control[type="file"] {
    min-height: auto;
    padding: 0.78rem 1rem;
    line-height: 1.35;
    overflow: hidden;
    text-overflow: ellipsis;
}

.form-control[type="file"]::file-selector-button {
    margin: -0.78rem 0.9rem -0.78rem -1rem;
    padding: 0.78rem 1rem;
    border: 0;
    border-right: 1px solid var(--dh-border);
    background: rgba(21, 32, 43, 0.045);
    color: var(--dh-ink);
    font-weight: 700;
}

.form-check-input[type="checkbox"] {
    width: 1.12rem;
    height: 1.12rem;
    margin-top: 0.2rem;
    border-radius: 0.4rem;
    border-color: rgba(21, 32, 43, 0.3);
    background-color: #ffffff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, transform 0.16s ease;
}

.form-check-input[type="checkbox"]:focus {
    border-color: rgba(241, 188, 22, 0.95);
    box-shadow: 0 0 0 0.2rem rgba(241, 188, 22, 0.2);
}

.form-check-input[type="checkbox"]:checked {
    background-color: var(--dh-primary);
    border-color: var(--dh-primary);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2.1' d='M3.2 8.2 6.5 11.4 12.8 4.8'/%3E%3C/svg%3E");
    background-size: 0.74rem 0.74rem;
    box-shadow: 0 0 0 0.15rem rgba(241, 188, 22, 0.16);
    transform: translateY(-0.5px);
}

.form-check-input[type="checkbox"]:indeterminate {
    background-color: var(--dh-primary);
    border-color: var(--dh-primary);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-width='2.2' d='M3 8h10'/%3E%3C/svg%3E");
    background-size: 0.74rem 0.74rem;
    box-shadow: 0 0 0 0.15rem rgba(241, 188, 22, 0.16);
}

.form-check-input[type="checkbox"]:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.dh-copilot-hero {
    background:
        radial-gradient(circle at 84% 12%, rgba(241, 188, 22, 0.24), transparent 32%),
        linear-gradient(135deg, #fffef9 0%, #f5f9f7 100%);
}

.dh-copilot-safety {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.2rem;
    border: 1px solid rgba(31, 122, 84, 0.2);
    border-radius: 1rem;
    background: rgba(31, 122, 84, 0.07);
}

.dh-copilot-safety > div:first-child {
    display: grid;
    gap: 0.2rem;
}

.dh-copilot-safety__meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.45rem;
}

.dh-copilot-safety__meta span {
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    background: #fff;
    color: #345048;
    font-size: 0.76rem;
    font-weight: 700;
}

.dh-copilot-assistant {
    overflow: hidden;
    border: 1px solid rgba(21, 32, 43, 0.1);
    background:
        radial-gradient(circle at 92% 8%, rgba(241, 188, 22, 0.18), transparent 34%),
        linear-gradient(135deg, #ffffff 0%, #f8fbf9 100%);
}

.dh-copilot-examples {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.dh-copilot-examples span {
    padding: 0.36rem 0.62rem;
    border: 1px solid rgba(21, 32, 43, 0.09);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.78);
    color: #52615d;
    font-size: 0.76rem;
    font-weight: 650;
}

.dh-copilot-prompt {
    padding: 1rem;
    border: 1px solid rgba(31, 122, 84, 0.16);
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 16px 38px rgba(15, 23, 42, 0.06);
}

.dh-copilot-prompt__field {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.65rem;
}

.dh-copilot-prompt small {
    display: block;
    margin-top: 0.55rem;
    color: #6b7280;
}

.dh-copilot-answer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.2rem;
    border: 1px solid rgba(241, 188, 22, 0.44);
    border-radius: 1rem;
    background: #fffdf5;
    box-shadow: 0 14px 35px rgba(56, 48, 20, 0.07);
}

.dh-copilot-answer > div {
    display: grid;
    gap: 0.16rem;
}

.dh-copilot-answer span {
    color: #806818;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.dh-copilot-answer p {
    margin: 0;
    color: #53605c;
}

.dh-copilot-chat {
    overflow: hidden;
    border: 1px solid rgba(16, 42, 35, 0.13);
    border-radius: 1.25rem;
    background: #f7faf8;
    box-shadow: 0 24px 65px rgba(15, 31, 26, 0.09);
}

.dh-copilot-chat__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem 1.35rem;
    border-bottom: 1px solid rgba(16, 42, 35, 0.09);
    background:
        radial-gradient(circle at 90% 0%, rgba(241, 188, 22, 0.22), transparent 35%),
        #fff;
}

.dh-copilot-chat__header p {
    max-width: 52rem;
    margin: 0;
    color: #60706a;
}

.dh-copilot-chat__actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.35rem;
}

.dh-copilot-chat__timeline {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    min-height: 20rem;
    max-height: 36rem;
    overflow-y: auto;
    padding: 1.25rem;
    scroll-behavior: smooth;
}

.dh-copilot-bubble {
    display: flex;
    align-items: flex-end;
    gap: 0.55rem;
    max-width: min(48rem, 88%);
    line-height: 1.58;
}

.dh-copilot-bubble > div {
    padding: 0.85rem 1rem;
    border-radius: 1rem 1rem 1rem 0.28rem;
    background: #fff;
    color: #263b35;
    box-shadow: 0 8px 24px rgba(17, 38, 31, 0.07);
}

.dh-copilot-bubble.is-user {
    align-self: flex-end;
}

.dh-copilot-bubble.is-user > div {
    border-radius: 1rem 1rem 0.28rem 1rem;
    background: #173e32;
    color: #fff;
}

.dh-copilot-bubble__avatar {
    display: grid;
    flex: 0 0 2rem;
    width: 2rem;
    height: 2rem;
    place-items: center;
    border: 2px solid #fff;
    border-radius: 50%;
    background: var(--dh-primary, #f1bc16);
    color: #12251f;
    box-shadow: 0 5px 15px rgba(17, 38, 31, 0.13);
    font-size: 0.78rem;
    font-weight: 900;
}

.dh-copilot-chat__quick-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0 1.25rem 0.85rem;
}

.dh-copilot-quick {
    padding: 0.45rem 0.72rem;
    border: 1px solid rgba(23, 62, 50, 0.15);
    border-radius: 999px;
    background: #fff;
    color: #3e554e;
    font-size: 0.78rem;
    font-weight: 700;
    transition: border-color 160ms ease, transform 160ms ease, background 160ms ease;
}

.dh-copilot-quick:hover {
    transform: translateY(-1px);
    border-color: rgba(23, 62, 50, 0.38);
    background: #fffdf3;
}

.dh-copilot-chat__composer {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.7rem;
    margin: 0 1.25rem;
    padding: 0.65rem;
    border: 1px solid rgba(23, 62, 50, 0.18);
    border-radius: 1rem;
    background: #fff;
    box-shadow: 0 12px 30px rgba(17, 38, 31, 0.07);
}

.dh-copilot-chat__composer textarea {
    width: 100%;
    min-height: 3rem;
    max-height: 9rem;
    resize: vertical;
    border: 0;
    outline: 0;
    padding: 0.55rem 0.6rem;
    background: transparent;
    color: #20372f;
}

.dh-copilot-chat__composer .btn {
    align-self: end;
}

.dh-copilot-chat__privacy {
    padding: 0.65rem 1.35rem 1.15rem;
    color: #71817b;
    font-size: 0.76rem;
}

.dh-copilot-confirm {
    border: 1px solid rgba(241, 188, 22, 0.48);
    box-shadow: 0 18px 45px rgba(56, 48, 20, 0.09);
}

.dh-copilot-change-grid {
    display: grid;
    grid-template-columns: 1.25fr 1fr 1fr;
    gap: 0.8rem;
}

.dh-copilot-change-grid > div,
.dh-copilot-preview-block {
    display: grid;
    gap: 0.3rem;
    min-width: 0;
    padding: 1rem;
    border: 1px solid rgba(21, 32, 43, 0.1);
    border-radius: 0.9rem;
    background: #fff;
}

.dh-copilot-change-grid > div > span,
.dh-copilot-preview-block > span {
    color: #6b7280;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.dh-copilot-change-grid > div > small,
.dh-copilot-preview-block > small,
.dh-copilot-preview-block div small {
    color: #6b7280;
}

.dh-copilot-change-grid > .is-after {
    border-color: rgba(31, 122, 84, 0.25);
    background: rgba(31, 122, 84, 0.06);
}

.dh-copilot-row {
    display: grid;
    grid-template-columns: 4.2rem minmax(0, 1fr);
    gap: 1rem;
    padding: 1rem;
    border: 1px solid rgba(21, 32, 43, 0.1);
    border-radius: 1rem;
    background: #fff;
}

.dh-copilot-row__time {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--dh-primary-dark, #755900);
}

.dh-copilot-next {
    padding: 0.7rem 0.8rem;
    border-left: 3px solid var(--dh-primary);
    border-radius: 0 0.65rem 0.65rem 0;
    background: rgba(241, 188, 22, 0.08);
    font-size: 0.87rem;
}

.dh-copilot-next span {
    display: block;
    margin-bottom: 0.15rem;
    color: #6b7280;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.dh-copilot-details {
    position: relative;
}

.dh-copilot-details > summary {
    list-style: none;
    cursor: pointer;
}

.dh-copilot-details > summary::-webkit-details-marker {
    display: none;
}

.dh-copilot-inline-form {
    position: absolute;
    z-index: 5;
    top: calc(100% + 0.5rem);
    left: 0;
    width: min(22rem, 80vw);
    padding: 1rem;
    border: 1px solid rgba(21, 32, 43, 0.14);
    border-radius: 0.9rem;
    background: #fff;
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.18);
}

.dh-copilot-report {
    padding: 1rem;
    border: 1px solid rgba(21, 32, 43, 0.1);
    border-radius: 1rem;
    background: #fff;
}

.dh-copilot-report > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    list-style: none;
    cursor: pointer;
}

.dh-copilot-report > summary::-webkit-details-marker {
    display: none;
}

.dh-copilot-report > summary span:first-child {
    display: grid;
    gap: 0.2rem;
}

.dh-copilot-report > summary small {
    color: #6b7280;
}

.dh-copilot-history {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(21, 32, 43, 0.08);
    color: inherit;
    text-decoration: none;
}

.dh-copilot-history:last-child {
    border-bottom: 0;
}

.dh-copilot-history > span:first-child {
    display: grid;
    gap: 0.12rem;
}

.dh-copilot-history small {
    color: #6b7280;
}

@media (max-width: 767.98px) {
    .dh-copilot-safety {
        align-items: flex-start;
        flex-direction: column;
    }

    .dh-copilot-safety__meta {
        justify-content: flex-start;
    }

    .dh-copilot-prompt__field {
        grid-template-columns: 1fr;
    }

    .dh-copilot-prompt__field .btn {
        width: 100%;
    }

    .dh-copilot-answer {
        align-items: stretch;
        flex-direction: column;
    }

    .dh-copilot-answer .btn {
        width: 100%;
    }

    .dh-copilot-change-grid {
        grid-template-columns: 1fr;
    }

    .dh-copilot-row {
        grid-template-columns: 3.5rem minmax(0, 1fr);
        padding: 0.85rem;
    }

    .dh-copilot-report > summary {
        align-items: flex-start;
        flex-direction: column;
    }

    .dh-copilot-chat__header {
        flex-direction: column;
    }

    .dh-copilot-chat__actions {
        justify-content: flex-start;
    }

    .dh-copilot-chat__timeline {
        min-height: 17rem;
        max-height: 30rem;
        padding: 1rem;
    }

    .dh-copilot-bubble {
        max-width: 96%;
    }

    .dh-copilot-chat__composer {
        grid-template-columns: 1fr;
        margin: 0 1rem;
    }

    .dh-copilot-chat__composer .btn {
        width: 100%;
    }
}

.form-switch {
    padding-left: 3.15rem;
}

.form-switch .form-check-input {
    appearance: none;
    -webkit-appearance: none;
    width: 2.8rem;
    height: 1.58rem;
    margin-left: -3.15rem;
    border-radius: 999px;
    border-color: rgba(21, 32, 43, 0.14);
    background-color: rgba(21, 32, 43, 0.12);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='26' height='26' viewBox='0 0 26 26'%3E%3Ccircle cx='13' cy='13' r='10' fill='white'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 2px center;
    background-size: 1.18rem 1.18rem;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
    cursor: pointer;
    transition: background-color 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease, background-position 0.28s cubic-bezier(0.22, 1, 0.36, 1), transform 0.18s ease;
    will-change: background-position, transform;
}

.form-switch .form-check-input:focus {
    box-shadow: 0 0 0 0.25rem rgba(241, 188, 22, 0.16);
}

.form-switch .form-check-input:checked {
    background-color: var(--dh-primary);
    border-color: var(--dh-primary);
    background-position: right 2px center;
    box-shadow: 0 0 0 0.15rem rgba(241, 188, 22, 0.14);
    animation: dh-toggle-pop 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.form-switch .form-check-input:active {
    transform: scale(0.98);
}

.form-switch .form-check-input:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.form-switch .form-check-label {
    display: inline-flex;
    align-items: center;
    min-height: 1.58rem;
    color: var(--dh-ink);
    transition: color 0.2s ease, transform 0.2s ease;
}

.form-switch .form-check-input:checked + .form-check-label,
.form-switch .form-check-input:checked ~ .form-check-label {
    color: var(--dh-ink);
    transform: translateX(1px);
}

.dh-toggle-row {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 1rem;
    border: 1px solid rgba(21, 32, 43, 0.08);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.04);
    cursor: pointer;
}

.dh-toggle-row input[type="checkbox"] {
    flex: 0 0 auto;
    margin-top: 0.16rem;
}

.dh-toggle-row span {
    display: grid;
    gap: 0.18rem;
}

.dh-toggle-row strong {
    color: var(--dh-ink);
    font-size: 0.94rem;
    line-height: 1.28;
}

.dh-toggle-row small {
    color: var(--dh-ink-soft);
    line-height: 1.45;
}

.dh-toggle-row:has(input:checked) {
    border-color: rgba(241, 188, 22, 0.28);
    background: linear-gradient(180deg, rgba(255, 251, 239, 0.96), rgba(255, 255, 255, 0.94));
}

@keyframes dh-toggle-pop {
    0% {
        transform: scale(0.94);
    }
    65% {
        transform: scale(1.03);
    }
    100% {
        transform: scale(1);
    }
}

.dh-form-section-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    padding: 1rem;
    border-radius: var(--dh-radius);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.82), rgba(255, 250, 234, 0.72));
    border: 1px solid rgba(21, 32, 43, 0.08);
    box-shadow: var(--dh-shadow-sm);
}

.dh-form-section-link {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.18rem;
    min-height: 56px;
    padding: 0.8rem 1.15rem;
    border-radius: 18px;
    text-decoration: none;
    font-weight: 700;
    color: var(--dh-ink-soft);
    background: rgba(255, 255, 255, 0.76);
    border: 1px solid rgba(21, 32, 43, 0.08);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
    transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}

.dh-form-section-link:hover,
.dh-form-section-link:focus {
    color: var(--dh-ink);
    background: rgba(241, 188, 22, 0.14);
    border-color: rgba(241, 188, 22, 0.32);
    box-shadow: 0 12px 24px rgba(241, 188, 22, 0.16);
    transform: translateY(-1px);
}

.dh-page-section-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-bottom: 1.5rem;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding: 0.45rem;
    border-radius: var(--dh-radius-md);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 249, 235, 0.76));
    border: 1px solid rgba(21, 32, 43, 0.06);
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.05);
}

[data-section-tab-scope] {
    display: grid;
    gap: 1.5rem;
    min-width: 0;
    width: 100%;
    max-width: 100%;
}

[data-section-tab-scope] > * {
    min-width: 0;
}

[data-section-tab-row] {
    min-width: 0;
    max-width: 100%;
}

[data-section-tab-column] {
    min-width: 0;
    max-width: 100%;
}

.dh-page-section-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.28rem;
    flex: 1 1 180px;
    min-width: 0;
    padding: 0.95rem 1rem;
    border-radius: 18px;
    text-decoration: none;
    color: var(--dh-ink);
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(21, 32, 43, 0.08);
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.045);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease, background 0.22s ease, color 0.22s ease;
    will-change: transform;
    overflow: hidden;
}

.dh-page-section-card::after {
    content: "";
    position: absolute;
    left: 1rem;
    right: 1rem;
    bottom: 0.68rem;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(241, 188, 22, 0.92), rgba(241, 188, 22, 0.16));
    transform: scaleX(0.18);
    transform-origin: left center;
    opacity: 0;
    transition: transform 0.22s ease, opacity 0.22s ease;
}

.dh-page-section-card strong {
    font-size: 0.96rem;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

.dh-page-section-card span {
    color: var(--dh-ink-soft);
    font-size: 0.78rem;
    line-height: 1.35;
}

.dh-page-section-card:hover,
.dh-page-section-card:focus {
    transform: translateY(-1px);
    color: var(--dh-ink);
    border-color: rgba(241, 188, 22, 0.3);
    box-shadow: 0 16px 30px rgba(241, 188, 22, 0.12);
}

.dh-page-section-card:hover::after,
.dh-page-section-card:focus::after {
    opacity: 0.75;
    transform: scaleX(0.62);
}

.dh-page-section-card.is-current {
    border-color: rgba(241, 188, 22, 0.42);
    background: linear-gradient(180deg, rgba(255, 248, 221, 0.92), rgba(255, 255, 255, 0.98));
    box-shadow: 0 18px 34px rgba(241, 188, 22, 0.14);
    transform: translateY(-1px);
}

.dh-page-section-card.is-current::after {
    opacity: 1;
    transform: scaleX(1);
}

.dh-page-section-card.is-current strong,
.dh-page-section-card.is-current span {
    color: var(--dh-ink);
}

.dh-page-section-nav[data-section-tabs="true"] .dh-page-section-card {
    min-height: 100%;
}

.dh-page-section-nav[data-section-tabs="true"] .dh-page-section-card.is-current {
    border-color: rgba(241, 188, 22, 0.48);
    box-shadow: 0 22px 38px rgba(241, 188, 22, 0.18);
}

.dh-page-section-nav[data-section-tabs="true"] .dh-page-section-card.is-current::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(circle at top right, rgba(241, 188, 22, 0.18), transparent 38%);
    pointer-events: none;
}

.dh-meeting-url-group .form-control,
.dh-coupon-group .form-control {
    min-width: 0;
}

.dh-meeting-url-group .btn,
.dh-coupon-group .btn {
    white-space: nowrap;
}

.dh-course-pricing-card {
    display: flex;
    flex-direction: column;
    gap: .45rem;
    min-height: 100%;
    padding: 1rem 1.05rem;
    border: 1px solid rgba(15, 23, 42, 0.1);
    border-radius: 1.25rem;
    background: #fff;
    box-shadow: 0 18px 44px rgba(15, 23, 42, 0.06);
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background-color .18s ease;
}

.dh-course-pricing-card:hover {
    transform: translateY(-1px);
    border-color: rgba(241, 188, 22, 0.45);
    box-shadow: 0 20px 48px rgba(15, 23, 42, 0.1);
}

.dh-course-pricing-card.is-active {
    border-color: rgba(241, 188, 22, 0.55);
    background: linear-gradient(180deg, rgba(255, 248, 221, 0.95), rgba(255, 255, 255, 0.98));
    box-shadow: 0 20px 48px rgba(241, 188, 22, 0.18);
}

.dh-course-pricing-card input[type="radio"] {
    margin: 0 0 .25rem;
}

.dh-course-pricing-card strong {
    font-size: 1rem;
    color: #111827;
}

.dh-course-pricing-card span {
    font-size: .93rem;
    line-height: 1.5;
    color: #6b7280;
}

.dh-form-tip {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: .45rem;
    min-height: 100%;
    padding: 1rem 1.1rem;
    border: 1px solid rgba(241, 188, 22, 0.25);
    border-radius: 1.1rem;
    background: linear-gradient(180deg, rgba(255, 248, 221, 0.78), rgba(255, 255, 255, 0.96));
}

.dh-form-tip strong {
    color: #111827;
}

.dh-form-tip span {
    color: #6b7280;
    line-height: 1.55;
}

.dh-section-search {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
}

.dh-section-search-copy {
    min-width: 0;
}

.dh-section-search-copy strong {
    display: block;
    margin-bottom: 0.2rem;
    font-size: 1rem;
}

.dh-section-search-copy span {
    color: var(--dh-ink-soft);
    font-size: 0.92rem;
    line-height: 1.6;
}

.dh-section-search-field {
    flex: 1 1 320px;
    min-width: min(100%, 280px);
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.dh-section-search-field input {
    min-height: 50px;
    border-radius: 18px;
    border: 1px solid rgba(21, 32, 43, 0.1);
    background: rgba(248, 250, 252, 0.95);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.dh-section-search-meta {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    color: var(--dh-ink-soft);
    font-size: 0.84rem;
}

.dh-section-search--compact {
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
}

.dh-section-search--compact .dh-section-search-field {
    gap: 0.35rem;
}

.dh-section-search--compact .dh-section-search-field input {
    min-height: 46px;
    border-radius: 16px;
}

.dh-multi-picker {
    display: grid;
    gap: 0.95rem;
    padding: 1.08rem 1.12rem;
    border-radius: var(--dh-radius);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 250, 239, 0.9));
    border: 1px solid rgba(21, 32, 43, 0.08);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.05);
}

.dh-multi-picker-native {
    display: none;
}

.dh-multi-picker-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.dh-multi-picker-copy {
    min-width: 0;
    flex: 1 1 280px;
}

.dh-multi-picker-copy strong {
    display: block;
    margin-bottom: 0.16rem;
    font-size: 0.97rem;
}

.dh-multi-picker-copy span {
    color: var(--dh-ink-soft);
    font-size: 0.9rem;
    line-height: 1.55;
}

.dh-multi-picker-selected {
    display: flex;
    flex-wrap: wrap;
    gap: 0.78rem;
}

.dh-multi-picker-empty-selection {
    width: 100%;
    padding: 0.9rem 1rem;
    border-radius: 18px;
    background: rgba(248, 250, 252, 0.9);
    border: 1px dashed rgba(21, 32, 43, 0.12);
    color: var(--dh-ink-soft);
    font-size: 0.9rem;
}

.dh-multi-picker-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.7rem 0.95rem;
    border-radius: 999px;
    border: 1px solid rgba(241, 188, 22, 0.28);
    background: rgba(255, 248, 221, 0.95);
    color: var(--dh-ink);
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.dh-multi-picker-chip:hover,
.dh-multi-picker-chip:focus {
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(241, 188, 22, 0.16);
    border-color: rgba(241, 188, 22, 0.4);
}

.dh-multi-picker-search input {
    min-height: 50px;
    border-radius: 18px;
}

.dh-multi-picker-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(235px, 1fr));
    gap: 0.95rem;
}

.dh-multi-picker-option {
    width: 100%;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    text-align: left;
    padding: 1.08rem 1.1rem;
    border-radius: 20px;
    border: 1px solid rgba(21, 32, 43, 0.09);
    background: rgba(255, 255, 255, 0.94);
    color: var(--dh-ink);
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.04);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.dh-multi-picker-option:hover,
.dh-multi-picker-option:focus {
    transform: translateY(-2px);
    border-color: rgba(241, 188, 22, 0.26);
    box-shadow: 0 16px 28px rgba(241, 188, 22, 0.12);
}

.dh-multi-picker-option.is-selected {
    border-color: rgba(241, 188, 22, 0.42);
    background: linear-gradient(180deg, rgba(255, 248, 221, 0.96), rgba(255, 255, 255, 0.98));
    box-shadow: 0 18px 34px rgba(241, 188, 22, 0.16);
}

.dh-multi-picker-option__content {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 0;
}

.dh-multi-picker-option__title {
    font-weight: 800;
    line-height: 1.35;
}

.dh-multi-picker-option__meta {
    color: var(--dh-ink-soft);
    font-size: 0.84rem;
    line-height: 1.45;
}

.dh-multi-picker-option__state {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 96px;
    padding: 0.55rem 0.8rem;
    border-radius: 999px;
    background: rgba(21, 32, 43, 0.06);
    color: var(--dh-ink-soft);
    font-size: 0.78rem;
    font-weight: 800;
    align-self: center;
}

.dh-multi-picker-option.is-selected .dh-multi-picker-option__state {
    background: rgba(241, 188, 22, 0.18);
    color: var(--dh-ink);
}

.dh-compensation-preset-card {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    padding: 1rem 1.05rem;
    text-align: left;
    border-radius: 22px;
    border: 1px solid rgba(21, 32, 43, 0.08);
    background: rgba(255, 255, 255, 0.96);
    color: var(--dh-ink);
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.05);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.dh-compensation-preset-card:hover,
.dh-compensation-preset-card:focus {
    transform: translateY(-2px);
    border-color: rgba(241, 188, 22, 0.3);
    box-shadow: 0 18px 32px rgba(241, 188, 22, 0.14);
}

.dh-compensation-preset-card.is-selected {
    border-color: rgba(241, 188, 22, 0.42);
    background: linear-gradient(180deg, rgba(255, 248, 221, 0.96), rgba(255, 255, 255, 0.98));
}

.dh-compensation-preset-card__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.dh-compensation-preset-card__top strong {
    font-size: 0.96rem;
}

.dh-compensation-preset-card__top span,
.dh-compensation-preset-card__meta {
    color: var(--dh-ink-soft);
    font-size: 0.84rem;
    line-height: 1.45;
}

.dh-compensation-preset-card__body {
    font-weight: 700;
    line-height: 1.45;
}

.dh-preset-summary-card {
    height: 100%;
    padding: 1rem 1.05rem;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(21, 32, 43, 0.08);
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.05);
}

.dh-collab-page {
    display: grid;
    gap: 0;
}

.dh-collab-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem;
    border-radius: var(--dh-radius);
    border: 1px solid rgba(21, 32, 43, 0.08);
    background:
        radial-gradient(circle at top left, rgba(241, 188, 22, 0.13), transparent 34%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.94));
    box-shadow: var(--dh-shadow-sm);
}

.dh-collab-hero__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.65rem;
}

.dh-collab-jump-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    padding: 0.55rem;
    border-radius: 999px;
    border: 1px solid rgba(21, 32, 43, 0.07);
    background: rgba(255, 255, 255, 0.72);
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.04);
}

.dh-collab-jump-nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.35rem;
    padding: 0.48rem 0.9rem;
    border-radius: 999px;
    color: var(--dh-ink-soft);
    font-size: 0.86rem;
    font-weight: 800;
    text-decoration: none;
    transition: background 0.16s ease, color 0.16s ease, transform 0.16s ease;
}

.dh-collab-jump-nav a:hover,
.dh-collab-jump-nav a:focus {
    color: var(--dh-ink);
    background: rgba(241, 188, 22, 0.16);
    transform: translateY(-1px);
}

.dh-collab-section {
    scroll-margin-top: 1rem;
}

.dh-collab-liquidation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr));
    gap: 1rem;
}

.dh-collab-liquidation-card {
    display: grid;
    align-content: start;
    gap: 0.1rem;
    border-color: rgba(241, 188, 22, 0.18);
    background:
        radial-gradient(circle at top right, rgba(241, 188, 22, 0.1), transparent 28%),
        rgba(255, 255, 255, 0.92);
}

.dh-collab-money-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
}

.dh-collab-money-grid > div {
    min-width: 0;
    padding: 0.75rem 0.8rem;
    border-radius: 18px;
    border: 1px solid rgba(21, 32, 43, 0.07);
    background: rgba(255, 255, 255, 0.72);
}

.dh-collab-liquidation-form {
    display: grid;
    grid-template-columns: minmax(90px, 0.8fr) minmax(80px, 0.7fr) minmax(120px, 1fr) auto;
    gap: 0.75rem;
    align-items: end;
}

.dh-collab-liquidation-form > div {
    min-width: 0;
}

.dh-collab-liquidation-form__action {
    display: grid;
}

.dh-collab-row-card {
    padding: 1.05rem 1.15rem;
}

.dh-collab-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) minmax(220px, auto);
    gap: 0.9rem;
    align-items: start;
}

.dh-collab-row--without-check {
    grid-template-columns: minmax(0, 1fr) minmax(220px, auto);
}

.dh-collab-credit-chip {
    display: inline-flex;
    align-items: center;
    min-height: 1.75rem;
    padding: 0.28rem 0.65rem;
    border: 1px solid rgba(32, 104, 214, 0.13);
    border-radius: 999px;
    background: rgba(32, 104, 214, 0.07);
    color: #174f9f;
    font-size: 0.75rem;
    font-weight: 850;
}

.dh-collab-credit-card {
    overflow: hidden;
    border-color: rgba(32, 104, 214, 0.16);
    background:
        radial-gradient(circle at 110% -10%, rgba(64, 131, 236, 0.18), transparent 42%),
        linear-gradient(160deg, #f8fbff 0%, #ffffff 68%);
    box-shadow: 0 22px 55px rgba(20, 70, 140, 0.09);
}

.dh-collab-credit-card__head,
.dh-collab-credit-movement {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.dh-collab-credit-card__balance {
    margin-top: 0.15rem;
    color: var(--dh-ink);
    font-size: clamp(1.65rem, 3vw, 2.25rem);
    font-weight: 900;
    letter-spacing: -0.045em;
}

.dh-collab-credit-card__notice {
    padding: 0.85rem 0.95rem;
    border: 1px solid rgba(241, 188, 22, 0.23);
    border-radius: 16px;
    background: rgba(255, 248, 220, 0.72);
    color: #75520a;
    font-size: 0.78rem;
    line-height: 1.45;
}

.dh-collab-credit-movement {
    padding: 0.75rem 0;
    border-top: 1px solid rgba(20, 39, 67, 0.07);
}

.dh-collab-danger-zone {
    border-color: rgba(188, 68, 49, 0.2);
    background:
        radial-gradient(circle at 100% 0%, rgba(188, 68, 49, 0.08), transparent 35%),
        rgba(255, 255, 255, 0.98);
}

.dh-collab-row__check {
    margin-bottom: 0;
}

.dh-collab-row__body {
    min-width: 0;
}

.dh-collab-row__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.55rem;
    min-width: 0;
}

.dh-collab-row__actions form {
    margin: 0;
}

.dh-collab-row__actions .btn,
.dh-collab-row__actions form {
    max-width: 100%;
}

.dh-collab-due-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2rem;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    background: rgba(241, 188, 22, 0.16);
    color: #9f6a00;
    font-size: 0.78rem;
    font-weight: 850;
    white-space: nowrap;
}

@media (max-width: 1199px) {
    .dh-collab-row {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .dh-collab-row--without-check {
        grid-template-columns: minmax(0, 1fr);
    }

    .dh-collab-row__actions {
        grid-column: 2;
        justify-content: flex-start;
    }

    .dh-collab-row--without-check .dh-collab-row__actions {
        grid-column: 1;
    }

    .dh-collab-liquidation-form {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    .dh-collab-hero {
        align-items: stretch;
        flex-direction: column;
    }

    .dh-collab-hero__actions,
    .dh-collab-hero__actions .btn {
        width: 100%;
    }

    .dh-collab-jump-nav {
        border-radius: 22px;
    }

    .dh-collab-jump-nav a {
        flex: 1 1 140px;
    }

    .dh-collab-money-grid,
    .dh-collab-liquidation-form {
        grid-template-columns: 1fr;
    }

    .dh-collab-row {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .dh-collab-row__actions {
        grid-column: 1 / -1;
    }

    .dh-collab-row__actions .btn,
    .dh-collab-row__actions form,
    .dh-collab-row__actions form .btn {
        width: 100%;
    }

    .dh-collab-row__actions .dh-row-actions--mobile .btn,
    .dh-collab-row__actions .dh-row-actions--mobile form {
        width: auto;
    }

    .dh-collab-row__actions .dh-mobile-action-menu__panel .btn,
    .dh-collab-row__actions .dh-mobile-action-menu__panel form {
        width: 100%;
    }
}

.dh-inline-editor-section {
    padding: 1.15rem;
    border-radius: var(--dh-radius);
    background: linear-gradient(180deg, rgba(255, 248, 221, 0.54), rgba(255, 255, 255, 0.96));
    border: 1px solid rgba(241, 188, 22, 0.18);
}

.dh-settings-google-flow {
    display: grid;
    gap: 1rem;
}

.dh-settings-google-step {
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
    padding: 1rem 1.05rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(21, 32, 43, 0.08);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.05);
}

.dh-settings-google-step-number {
    flex: 0 0 2rem;
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(241, 188, 22, 0.18);
    color: var(--dh-ink);
    font-size: 0.88rem;
    font-weight: 900;
}

.dh-settings-google-step strong {
    display: block;
    margin-bottom: 0.2rem;
    font-size: 0.95rem;
}

.dh-settings-google-step span {
    display: block;
    color: var(--dh-ink-soft);
    font-size: 0.88rem;
    line-height: 1.55;
}

.dh-google-status-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 0.9rem;
}

.dh-google-status-card {
    padding: 1rem 1.05rem;
    border-radius: 22px;
    border: 1px solid rgba(21, 32, 43, 0.08);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(250, 248, 240, 0.94));
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.05);
    display: grid;
    gap: 0.38rem;
}

.dh-google-status-card small {
    color: var(--dh-ink-soft);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.dh-google-status-card strong {
    color: var(--dh-ink);
    font-size: 1.02rem;
    line-height: 1.25;
}

.dh-google-status-card span {
    color: var(--dh-ink-soft);
    font-size: 0.88rem;
    line-height: 1.55;
}

.dh-google-connection-bar {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.9rem;
    padding: 1rem 1.05rem;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(21, 32, 43, 0.08);
    box-shadow: 0 14px 26px rgba(15, 23, 42, 0.05);
}

.dh-google-connection-bar strong,
.dh-google-connection-bar span {
    display: block;
}

.dh-google-connection-bar strong {
    color: var(--dh-ink);
}

.dh-google-connection-bar span {
    color: var(--dh-ink-soft);
    font-size: 0.88rem;
    line-height: 1.5;
    margin-top: 0.18rem;
}

.dh-calendar-shell {
    align-items: stretch;
}

.dh-calendar-main-card,
.dh-calendar-side-card,
.dh-planner-main-card {
    border-radius: var(--dh-radius-lg);
    border-color: rgba(21, 32, 43, 0.08);
    background:
        radial-gradient(circle at top right, rgba(241, 188, 22, 0.08), transparent 28%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 249, 252, 0.95));
    box-shadow: 0 20px 44px rgba(15, 23, 42, 0.07);
}

.dh-calendar-upcoming-card {
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(21, 32, 43, 0.06);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.05);
}

.dh-planner-metric-strip .dh-metric-card {
    background:
        radial-gradient(circle at top right, rgba(241, 188, 22, 0.09), transparent 36%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(248, 250, 252, 0.94));
}

.dh-section-panel {
    animation: dh-section-fade 0.22s ease;
    transform-origin: top center;
}

.dh-tab-column-hidden,
[data-section-tab-row][hidden] {
    display: none !important;
}

.dh-tab-column-full {
    width: 100%;
}

.dh-section-panel.is-active.mt-4 {
    margin-top: 0 !important;
}

.dh-section-panel[hidden] {
    display: none !important;
}

.dh-side-editor-panel {
    position: sticky;
    top: 4rem;
}

@media (max-width: 1199px) {
    .dh-side-editor-panel {
        position: static;
    }
}

@keyframes dh-section-fade {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.btn-group > .btn {
    border-radius: 999px !important;
    padding-inline: 1rem;
}

.btn-group > .btn + .btn,
.btn-group > .btn-group:not(:first-child) > .btn {
    margin-left: 0.45rem;
}

.dh-home-visit-mode-toggle {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.dh-home-visit-mode-toggle > .btn,
.dh-home-visit-mode-toggle > .btn + .btn {
    margin-left: 0 !important;
}

.dh-home-visit-mode-toggle > .btn {
    min-width: 8rem;
}

.btn-check:checked + .btn-outline-dark,
.btn-check:active + .btn-outline-dark,
.btn-outline-dark:active,
.btn-outline-dark.active,
.btn-outline-dark.dropdown-toggle.show {
    background: linear-gradient(180deg, rgba(241, 188, 22, 0.18), rgba(241, 188, 22, 0.28));
    border-color: rgba(241, 188, 22, 0.48);
    color: var(--dh-ink);
    box-shadow: 0 12px 24px rgba(241, 188, 22, 0.14);
}

.alert {
    border: 0;
    box-shadow: var(--dh-shadow-sm);
}

.dh-public-body {
    position: relative;
}

.dh-public-body::before {
    content: "";
    position: fixed;
    inset: 0 0 auto;
    height: 560px;
    background:
        radial-gradient(circle at 18% 12%, rgba(241, 188, 22, 0.24), transparent 34%),
        radial-gradient(circle at 82% 2%, rgba(36, 52, 71, 0.09), transparent 28%);
    pointer-events: none;
    z-index: -1;
}

.dh-app-body {
    background:
        radial-gradient(circle at top left, rgba(241, 188, 22, 0.18), transparent 20%),
        linear-gradient(180deg, #edf2f7 0%, #f7f8fb 100%);
}

.dh-shell {
    min-height: 100vh;
}

.dh-shell > .row {
    --bs-gutter-x: 0;
    --bs-gutter-y: 0;
}

.dh-shell-main {
    min-height: 100vh;
    min-width: 0;
}

.dh-shell-content {
    position: relative;
}

.dh-card {
    background: var(--dh-surface);
    border: 1px solid rgba(21, 32, 43, 0.07);
    border-radius: var(--dh-radius);
    box-shadow: var(--dh-shadow-sm);
}

.dh-card-muted {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.94) 0%, rgba(248, 250, 252, 0.94) 100%);
}

.dh-brand-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.48rem 0.9rem;
    border-radius: 999px;
    background: rgba(241, 188, 22, 0.16);
    border: 1px solid rgba(241, 188, 22, 0.28);
    color: var(--dh-ink);
    font-size: 0.92rem;
    font-weight: 800;
}

.dh-brand-pill::before {
    content: "";
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: var(--dh-primary);
    box-shadow: 0 0 0 5px rgba(241, 188, 22, 0.2);
}

.dh-primary-btn {
    background: var(--dh-primary);
    border-color: var(--dh-primary);
    color: #111827;
}

.dh-primary-btn.btn-sm,
.btn-sm.dh-primary-btn {
    box-shadow: 0 6px 14px rgba(241, 188, 22, 0.16);
}

.dh-primary-btn:hover,
.dh-primary-btn:focus {
    background: var(--dh-primary-dark);
    border-color: var(--dh-primary-dark);
    color: #111827;
}

.dh-outline-btn {
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(21, 32, 43, 0.12);
    color: var(--dh-ink);
}

.dh-outline-btn:hover,
.dh-outline-btn:focus {
    background: #ffffff;
    border-color: rgba(21, 32, 43, 0.18);
    color: var(--dh-ink);
}

.dh-billing-status-card {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    justify-content: space-between;
    gap: 1rem 1.25rem;
    padding: 1.25rem;
    border-radius: var(--dh-radius);
    border: 1px solid rgba(21, 32, 43, 0.08);
    box-shadow: 0 18px 34px rgba(15, 23, 42, 0.08);
}

.dh-billing-status-card--danger {
    background: linear-gradient(180deg, rgba(255, 244, 241, 0.98), rgba(255, 250, 248, 0.98));
    border-color: rgba(188, 68, 49, 0.16);
}

.dh-billing-status-card--warning {
    background: linear-gradient(180deg, rgba(255, 249, 232, 0.98), rgba(255, 253, 246, 0.98));
    border-color: rgba(241, 188, 22, 0.2);
}

.dh-billing-status-card--info {
    background: linear-gradient(180deg, rgba(237, 247, 255, 0.98), rgba(248, 252, 255, 0.98));
    border-color: rgba(59, 130, 246, 0.16);
}

.dh-billing-status-card--success {
    background: linear-gradient(180deg, rgba(240, 253, 247, 0.98), rgba(248, 255, 251, 0.98));
    border-color: rgba(31, 122, 84, 0.16);
}

.dh-billing-status-card__copy {
    flex: 1 1 360px;
    min-width: 0;
}

.dh-billing-status-card__actions {
    display: flex;
    flex: 0 1 300px;
    min-width: min(100%, 280px);
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 0.65rem;
}

.dh-billing-status-card__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: min(100%, 260px);
    min-height: 52px;
    padding: 0.95rem 1.35rem;
    border-radius: 18px;
    border: 1px solid rgba(201, 149, 0, 0.2);
    background: linear-gradient(180deg, #f6c63a 0%, #efb317 100%);
    font-weight: 800;
    letter-spacing: -0.01em;
    text-decoration: none;
    box-shadow: 0 16px 28px rgba(241, 188, 22, 0.18);
}

.dh-billing-status-card__button:hover,
.dh-billing-status-card__button:focus {
    background: linear-gradient(180deg, #f4be25 0%, #e3a40a 100%);
    border-color: rgba(191, 137, 0, 0.28);
    color: #111827;
    box-shadow: 0 18px 30px rgba(201, 149, 0, 0.2);
}

.dh-section-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    color: var(--dh-ink-soft);
    font-size: 0.9rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.dh-section-eyebrow::before {
    content: "";
    width: 38px;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--dh-primary), rgba(241, 188, 22, 0));
}

.dh-section-title {
    font-size: clamp(2rem, 4vw, 3.35rem);
    line-height: 1.02;
    margin-bottom: 0;
}

.dh-section-copy {
    font-size: 1.05rem;
    line-height: 1.75;
    color: var(--dh-ink-soft);
}

.dh-public-navbar {
    padding: 1.15rem 0;
}

.dh-public-navbar .container {
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.dh-public-navbar .navbar-collapse {
    background: transparent;
}

.dh-brand-lockup {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
    padding: 0;
}

.dh-wordmark {
    display: inline-flex;
    align-items: baseline;
    gap: 0;
    font-size: 1.78rem;
    font-weight: 900;
    letter-spacing: -0.08em;
    line-height: 1;
}

.dh-wordmark-dark {
    color: var(--dh-ink);
}

.dh-wordmark-accent {
    color: var(--dh-primary-dark);
}

.dh-wordmark-inverse .dh-wordmark-dark {
    color: #ffffff;
}

.dh-product-logo {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    flex: 0 0 auto;
    object-fit: contain;
}

.dh-product-logo--sidebar {
    width: 11.875rem;
    max-height: 4rem;
}

.dh-product-logo--topbar {
    width: 7rem;
    max-height: 2.35rem;
}

.dh-product-logo--public {
    width: 10.75rem;
    max-height: 3.6rem;
}

.dh-product-logo--footer {
    width: 12rem;
}

.dh-brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 16px;
    background: linear-gradient(145deg, #ffd64e 0%, #e9aa00 100%);
    color: #17212b;
    font-weight: 900;
    letter-spacing: -0.04em;
    box-shadow: 0 16px 34px rgba(233, 170, 0, 0.28);
}

.dh-brand-text {
    display: flex;
    flex-direction: column;
    gap: 0.62rem;
    line-height: 1.1;
    min-width: 0;
}

.dh-brand-title {
    font-size: 1.08rem;
    font-weight: 900;
    letter-spacing: -0.03em;
}

.dh-brand-subtitle {
    display: block;
    color: var(--dh-ink-soft);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    line-height: 1.35;
    max-width: 18rem;
}

.dh-center-wordmark {
    font-size: 1.35rem;
    font-weight: 900;
    letter-spacing: -0.04em;
    color: var(--dh-ink);
}

.dh-center-logo {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    object-fit: cover;
    border: 1px solid rgba(21, 32, 43, 0.08);
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.12);
}

.dh-public-navbar .nav-link {
    padding: 0.72rem 1rem;
    border-radius: 999px;
    color: var(--dh-ink-soft);
    font-weight: 700;
}

.dh-public-navbar .nav-link.active,
.dh-public-navbar .nav-link:hover {
    color: var(--dh-ink);
    background: rgba(255, 255, 255, 0.74);
}

.dh-public-toggler {
    flex: 0 0 auto;
    border: 1px solid rgba(21, 32, 43, 0.12);
    border-radius: 18px;
    padding: 0.62rem 0.8rem;
    background: rgba(255, 255, 255, 0.72);
}

.dh-public-main {
    position: relative;
}

.dh-public-flow-section {
    position: relative;
    overflow: clip; /* contiene sticky card dentro la section, non invade il footer */
}

.dh-public-flow-section::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 260px;
    background:
        radial-gradient(ellipse 55% 100% at 8% 0%, rgba(241, 188, 22, 0.11), transparent),
        radial-gradient(ellipse 40% 80% at 96% 0%, rgba(14, 165, 233, 0.07), transparent);
    pointer-events: none;
    z-index: 0;
}

.dh-public-flow-card,
.dh-public-page-head,
.dh-public-checkout-card {
    position: relative;
}

.dh-public-flow-card,
.dh-public-checkout-card {
    border-color: rgba(15, 23, 42, 0.09);
    box-shadow:
        0 1px 2px rgba(15, 23, 42, 0.05),
        0 6px 22px rgba(15, 23, 42, 0.07);
}

.dh-public-flow-card::after,
.dh-public-checkout-card::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    background: linear-gradient(148deg, rgba(241, 188, 22, 0.06) 0%, transparent 40%);
}

.dh-public-flow-card > *,
.dh-public-checkout-card > * {
    position: relative;
    z-index: 1;
}

.dh-public-page-head {
    padding: 1.15rem 1.25rem;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06), 0 4px 14px rgba(15, 23, 42, 0.05);
    backdrop-filter: blur(14px);
}

.dh-public-page-head > * {
    min-width: 0;
}

.dh-public-page-head__copy {
    flex: 1 1 34rem;
    min-width: 0;
}

.dh-public-page-head .dh-section-title {
    max-width: 100%;
    margin-bottom: 0;
    overflow-wrap: anywhere;
    line-height: 1.12;
    letter-spacing: 0.005em;
    word-spacing: 0.08em;
    text-wrap: balance;
}

.dh-public-page-head__intro {
    max-width: 52rem;
    margin-top: 0.75rem;
    overflow-wrap: anywhere;
    line-height: 1.6;
}

.dh-public-page-head__cta {
    flex: 0 0 auto;
    max-width: 100%;
    white-space: normal;
}

.dh-public-services-grid > [class*="col-"] {
    min-width: 0;
}

.dh-public-offer-card {
    width: 100%;
    min-height: 100%;
    overflow: hidden;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.dh-public-offer-card__title,
.dh-public-offer-card__copy {
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: normal;
}

.dh-public-offer-card__title {
    line-height: 1.28;
    letter-spacing: 0.004em;
    word-spacing: 0.045em;
    text-wrap: balance;
}

.dh-public-offer-card__copy {
    line-height: 1.6 !important;
}

.dh-public-offer-card:hover {
    transform: translateY(-3px);
    border-color: rgba(241, 188, 22, 0.26) !important;
    box-shadow: 0 24px 58px rgba(15, 23, 42, 0.1);
}

.dh-public-course-card {
    overflow: hidden;
}

.dh-public-course-card::before {
    content: "";
    display: block;
    width: 56px;
    height: 4px;
    border-radius: 999px;
    margin-bottom: 1rem;
    background: linear-gradient(90deg, var(--dh-primary), rgba(241, 188, 22, 0.15));
}

.dh-public-checkout-card {
    background:
        radial-gradient(circle at top right, rgba(241, 188, 22, 0.14), transparent 28%),
        #ffffff;
}

.dh-public-checkout-card .form-control,
.dh-public-checkout-card .form-select,
.dh-public-flow-card .form-control,
.dh-public-flow-card .form-select {
    min-height: 48px;
    border-radius: 16px;
    border-color: rgba(15, 23, 42, 0.12);
    background-color: rgba(255, 255, 255, 0.94);
}

.dh-public-checkout-card textarea.form-control,
.dh-public-flow-card textarea.form-control {
    min-height: auto;
}

.dh-public-checkout-card .form-control:focus,
.dh-public-checkout-card .form-select:focus,
.dh-public-flow-card .form-control:focus,
.dh-public-flow-card .form-select:focus {
    border-color: rgba(241, 188, 22, 0.75);
    box-shadow: 0 0 0 0.22rem rgba(241, 188, 22, 0.16);
}

.dh-public-membership-card {
    overflow: hidden;
    background:
        radial-gradient(circle at 8% 4%, rgba(241, 188, 22, 0.12), transparent 28%),
        radial-gradient(circle at 94% 96%, rgba(37, 99, 235, 0.055), transparent 32%),
        #fff;
}

.dh-public-membership-choice {
    min-height: 100%;
    margin: 0;
    border: 1px solid rgba(15, 23, 42, 0.1);
    border-radius: 16px;
    padding: 0.9rem 1rem 0.9rem 2.55rem;
    background: rgba(255, 255, 255, 0.78);
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.dh-public-membership-choice:has(.form-check-input:checked) {
    border-color: rgba(217, 119, 6, 0.46);
    background: rgba(255, 251, 235, 0.92);
    box-shadow: 0 0 0 3px rgba(241, 188, 22, 0.1);
}

.dh-public-membership-choice .form-check-input {
    margin-top: 0.18rem;
}

.dh-public-membership-choice .form-check-label {
    width: 100%;
    color: var(--dh-ink);
    font-weight: 720;
    cursor: pointer;
}

.dh-public-membership-consent {
    border-radius: 16px;
    padding: 0.85rem 1rem 0.85rem 2.55rem;
    background: rgba(248, 250, 252, 0.84);
}

.dh-public-membership-consent .form-check-label {
    color: var(--dh-ink-soft);
    font-size: 0.9rem;
    line-height: 1.5;
}

.dh-public-membership-checklist .d-grid > div {
    position: relative;
    padding-left: 1.35rem;
}

.dh-public-membership-checklist .d-grid > div::before {
    content: "";
    position: absolute;
    top: 0.42rem;
    left: 0;
    width: 0.48rem;
    height: 0.48rem;
    border-radius: 50%;
    background: var(--dh-primary);
    box-shadow: 0 0 0 4px rgba(241, 188, 22, 0.13);
}

@media (hover: hover) {
    .dh-public-membership-choice:hover {
        transform: translateY(-1px);
        border-color: rgba(217, 119, 6, 0.34);
    }
}

@media (hover: none) {
    .dh-public-offer-card:hover {
        transform: none;
    }
}

@media (max-width: 767.98px) {
    .dh-public-flow-section::before {
        height: 200px;
    }

    .dh-public-page-head {
        padding: 1rem;
        border-radius: 18px;
    }

    .dh-public-page-head__copy {
        flex-basis: auto;
    }

    .dh-public-page-head__cta {
        width: 100%;
    }

    .dh-public-flow-card,
    .dh-public-checkout-card {
        border-radius: 24px;
        box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 4px 16px rgba(15, 23, 42, 0.06);
    }

    .dh-public-page-head .dh-section-title {
        font-size: clamp(2rem, 10vw, 2.55rem);
    }
}

.dh-hero {
    padding: 4.5rem 0 2.75rem;
}

.dh-hero-copy {
    max-width: 640px;
}

.dh-hero-copy .display-3,
.dh-hero-copy .display-4 {
    line-height: 0.98;
    font-size: clamp(2.65rem, 5vw, 4.9rem);
    letter-spacing: -0.05em;
}

.dh-hero-copy .lead {
    font-size: 1.14rem;
    line-height: 1.85;
}

.dh-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.95rem;
    margin-top: 2rem;
}

.dh-public-stat {
    height: 100%;
    padding: 1.25rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.76);
    border: 1px solid rgba(21, 32, 43, 0.08);
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
}

.dh-public-stat-value {
    display: block;
    font-size: 1.75rem;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.dh-public-stat-label {
    display: block;
    margin-top: 0.15rem;
    font-size: 0.9rem;
    color: var(--dh-ink-soft);
    font-weight: 700;
}

.dh-showcase {
    position: relative;
    padding: 1.5rem;
    border-radius: var(--dh-radius-lg);
    background:
        radial-gradient(circle at top left, rgba(241, 188, 22, 0.22), transparent 34%),
        linear-gradient(145deg, rgba(255, 255, 255, 0.98) 0%, rgba(243, 246, 249, 0.98) 100%);
    border: 1px solid rgba(21, 32, 43, 0.08);
    box-shadow: var(--dh-shadow);
}

.dh-showcase-header {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-start;
    margin-bottom: 1.25rem;
}

.dh-showcase-title {
    margin-bottom: 0.2rem;
    font-size: 1.35rem;
}

.dh-showcase-chip {
    display: inline-flex;
    padding: 0.4rem 0.8rem;
    border-radius: 999px;
    background: rgba(21, 32, 43, 0.08);
    color: var(--dh-ink);
    font-size: 0.8rem;
    font-weight: 800;
}

.dh-showcase-panel {
    padding: 1.15rem;
    border-radius: var(--dh-radius);
    background: rgba(21, 32, 43, 0.04);
    border: 1px solid rgba(21, 32, 43, 0.08);
}

.dh-showcase-panel strong {
    display: block;
    font-size: 1rem;
    margin-bottom: 0.3rem;
}

.dh-showcase-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.dh-mini-card {
    padding: 1.1rem;
    border-radius: 22px;
    background: #ffffff;
    border: 1px solid rgba(21, 32, 43, 0.07);
    box-shadow: 0 18px 34px rgba(15, 23, 42, 0.08);
}

.dh-mini-card-label {
    display: block;
    margin-bottom: 0.45rem;
    color: var(--dh-ink-soft);
    font-size: 0.82rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.dh-mini-card-value {
    display: block;
    margin-bottom: 0.35rem;
    font-size: 1.2rem;
    font-weight: 900;
    letter-spacing: -0.03em;
}

.dh-check-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 0.85rem;
}

.dh-check-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    line-height: 1.55;
    color: var(--dh-ink-soft);
}

.dh-check-list li::before {
    content: "";
    flex: 0 0 12px;
    width: 12px;
    height: 12px;
    margin-top: 0.45rem;
    border-radius: 999px;
    background: var(--dh-primary);
    box-shadow: 0 0 0 6px rgba(241, 188, 22, 0.18);
}

.dh-feature-card {
    height: 100%;
    padding: 1.75rem;
    border-radius: var(--dh-radius-md);
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(21, 32, 43, 0.07);
    box-shadow: var(--dh-shadow-sm);
}

.dh-feature-card h3 {
    margin-bottom: 0.7rem;
    font-size: 1.25rem;
}

.dh-feature-card p {
    margin-bottom: 0;
    color: var(--dh-ink-soft);
    line-height: 1.75;
}

.dh-cta-card {
    padding: 2.2rem;
    border-radius: var(--dh-radius-lg);
    background:
        linear-gradient(145deg, rgba(21, 32, 43, 0.97) 0%, rgba(31, 46, 61, 0.96) 100%);
    color: #ffffff;
    box-shadow: var(--dh-shadow);
}

.dh-cta-card h2,
.dh-cta-card p {
    color: #ffffff;
}

.dh-cta-card p {
    opacity: 0.82;
}

.dh-tenant-public-hero {
    padding: 4rem 0 2.75rem;
}

.dh-public-grooming-logo {
    display: block;
    width: min(26rem, 92%);
    height: auto;
    filter: drop-shadow(0 16px 28px rgba(15, 23, 42, 0.13));
}

.dh-chip-soft {
    display: inline-flex;
    align-items: center;
    padding: 0.72rem 1rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(21, 32, 43, 0.08);
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.08);
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--dh-ink);
}

.dh-public-showcase-card {
    padding: 1.25rem;
    border-radius: var(--dh-radius-lg);
    background:
        radial-gradient(circle at top left, rgba(241, 188, 22, 0.18), transparent 36%),
        linear-gradient(145deg, rgba(255, 255, 255, 0.98) 0%, rgba(244, 247, 251, 0.96) 100%);
    border: 1px solid rgba(21, 32, 43, 0.08);
    box-shadow: var(--dh-shadow);
}

.dh-public-hero-image {
    width: 100%;
    height: 340px;
    object-fit: cover;
    display: block;
    border-radius: var(--dh-radius);
    margin-bottom: 1rem;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.14);
}

.dh-public-showcase-fallback {
    min-height: 260px;
    padding: 1.8rem;
    border-radius: var(--dh-radius);
    margin-bottom: 1rem;
    background:
        linear-gradient(150deg, rgba(21, 32, 43, 0.94) 0%, rgba(38, 50, 65, 0.96) 100%);
    color: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: end;
}

.dh-public-showcase-kicker {
    display: inline-flex;
    align-self: flex-start;
    margin-bottom: 1rem;
    padding: 0.48rem 0.8rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.dh-public-showcase-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 900;
    letter-spacing: -0.05em;
    line-height: 1;
    margin-bottom: 0.8rem;
}

.dh-public-showcase-fallback .text-muted {
    color: rgba(255, 255, 255, 0.72) !important;
}

.dh-public-stat-card {
    background: rgba(255, 255, 255, 0.85);
}

.dh-contact-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.1rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(21, 32, 43, 0.08);
    text-decoration: none;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08);
}

.dh-contact-line:hover {
    transform: translateY(-1px);
    border-color: rgba(21, 32, 43, 0.14);
}

.dh-contact-label {
    color: var(--dh-ink-soft);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.dh-contact-value {
    font-weight: 800;
    color: var(--dh-ink);
}

.dh-location-panel {
    padding: 1.4rem;
    border-radius: var(--dh-radius);
    background: rgba(241, 188, 22, 0.1);
    border: 1px solid rgba(241, 188, 22, 0.22);
}

.dh-location-copy {
    font-size: 1.08rem;
    line-height: 1.75;
    color: var(--dh-ink);
}

.dh-public-footer {
    margin-top: 4rem;
    padding: 3rem 0 3.5rem;
    border-top: 1px solid rgba(21, 32, 43, 0.08);
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(8px);
}

.dh-footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 2rem;
}

.dh-footer-links {
    display: grid;
    gap: 0.7rem;
}

.dh-footer-links a {
    text-decoration: none;
    color: var(--dh-ink-soft);
    font-weight: 700;
}

.dh-footer-links a:hover {
    color: var(--dh-ink);
}

.dh-sidebar {
    background: transparent;
    min-height: 100vh;
}

.dh-sidebar.offcanvas-xl {
    --bs-offcanvas-width: 338px;
    --bs-offcanvas-border-width: 0;
    background: transparent;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.dh-sidebar.offcanvas-xl .offcanvas-body {
    padding: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
}

.dh-sidebar-panel {
    position: sticky;
    top: 1rem;
    padding: 1.15rem;
    height: calc(100vh - 2rem);
    min-height: calc(100vh - 2rem);
    max-height: calc(100vh - 2rem);
    overflow-y: auto;
    overflow-x: hidden;
    border-radius: var(--dh-radius-lg);
    background:
        linear-gradient(180deg, rgba(22, 32, 42, 0.98) 0%, rgba(19, 28, 37, 0.98) 100%);
    color: #f7fafc;
    box-shadow: 0 26px 52px rgba(15, 23, 42, 0.2);
}

@media (min-width: 1200px) {
    .dh-sidebar.offcanvas-xl .offcanvas-body {
        overflow-y: auto;
        overflow-x: hidden;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
        touch-action: pan-y;
        max-height: 100vh;
    }

    .dh-sidebar-panel {
        overflow-y: auto;
        overflow-x: hidden;
    }
}

.dh-sidebar-header {
    padding: 0.9rem 0.6rem 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 1rem;
}

.dh-sidebar-header > .d-flex > :first-child {
    min-width: 0;
    flex: 1 1 auto;
}

.dh-sidebar-header .dh-wordmark {
    max-width: 100%;
    white-space: nowrap;
    font-size: clamp(1.56rem, 1.24rem + 0.45vw, 1.78rem);
}

.dh-sidebar-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: rgba(255, 255, 255, 0.76);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.dh-sidebar-kicker::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--dh-primary);
}

.dh-sidebar-title {
    margin-top: 0.6rem;
    margin-bottom: 0.35rem;
    font-size: 1.35rem;
    font-weight: 900;
    letter-spacing: -0.03em;
}

.dh-sidebar-subtitle {
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.92rem;
    line-height: 1.6;
}

.dh-sidebar .nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.35rem;
    padding: 0.9rem 1rem;
    border-radius: 16px;
    color: rgba(255, 255, 255, 0.76);
    font-weight: 700;
    transition: all 0.2s ease;
    min-width: 0;
    overflow-wrap: anywhere;
}

.dh-sidebar .nav-link.active,
.dh-sidebar .nav-link:hover {
    background: linear-gradient(90deg, rgba(241, 188, 22, 0.22) 0%, rgba(241, 188, 22, 0.08) 100%);
    color: #ffffff;
    transform: translateX(2px);
}

.dh-sidebar-note {
    margin-top: auto;
    padding: 1rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.88rem;
    line-height: 1.6;
}

.dh-topbar {
    position: sticky;
    top: 0;
    z-index: 10;
    padding: 0.85rem 1.25rem;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(21, 32, 43, 0.09);
    min-width: 0;
    max-width: 100%;
}

.dh-topbar-title {
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: -0.025em;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dh-topbar-subtitle {
    color: var(--dh-ink-soft);
    font-size: 0.85rem;
}

.dh-sidebar-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.45rem 0.9rem;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    border-radius: 999px;
    border-color: rgba(21, 32, 43, 0.18);
    white-space: nowrap;
    flex-shrink: 0;
}

.dh-topbar-primary {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
}

.dh-topbar-copy {
    min-width: 0;
    overflow: hidden;
}

.dh-topbar-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 0;
    overflow: hidden;
}

.dh-topbar-brand-wordmark {
    font-size: 1.05rem;
    font-weight: 900;
    letter-spacing: -0.06em;
    line-height: 1;
    white-space: nowrap;
    flex-shrink: 0;
}

.dh-topbar-brand-sep {
    width: 1px;
    height: 1.1em;
    background: rgba(21, 32, 43, 0.18);
    flex-shrink: 0;
}

.dh-topbar-actions {
    flex: 0 0 auto;
}

.dh-topbar-actions > * {
    min-width: 0;
}

.dh-action-cluster {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.dh-action-cluster > * {
    min-width: 0;
}

.dh-action-cluster .btn {
    border-radius: 999px;
}

.dh-user-chip {
    padding: 0.8rem 1rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.84);
    border: 1px solid rgba(21, 32, 43, 0.08);
    line-height: 1.35;
    min-width: 0;
}

.dh-token-break {
    overflow-wrap: anywhere;
    word-break: break-word;
}

.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.table-responsive > .table,
.table-responsive > .dh-table {
    width: max-content;
    min-width: 100%;
}

.dh-table-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    align-items: center;
}

.dh-table-actions--end {
    justify-content: flex-end;
}

.dh-table-actions form {
    margin: 0;
}

.dh-table-actions .btn {
    border-radius: 999px;
}

.dh-bulk-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.9rem;
    padding: 1rem 1.05rem;
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.96));
    border: 1px solid rgba(21, 32, 43, 0.1);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
    max-width: 100%;
    overflow-x: hidden;
}

.dh-bulk-toolbar__copy {
    display: flex;
    flex-direction: column;
    gap: 0.18rem;
    min-width: 0;
}

.dh-bulk-toolbar__copy strong {
    font-size: 0.96rem;
}

.dh-bulk-toolbar__copy span {
    color: var(--dh-ink-soft);
    font-size: 0.88rem;
}

.dh-bulk-toolbar__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0.75rem;
}

.dh-bulk-toolbar__actions .form-select {
    min-width: 190px;
    border-radius: 16px;
}

.dh-bulk-toolbar__actions .form-control:not(input[type="number"]) {
    min-width: 140px;
    border-radius: 16px;
}

.dh-bulk-toolbar__actions input[type="number"].form-control {
    border-radius: 16px;
}

.dh-bulk-toolbar__actions .dh-bulk-number-field {
    width: 5.2rem;
}

.dh-bulk-toolbar__actions .dh-bulk-buffer-select {
    width: 12rem;
}

.dh-bulk-toolbar__actions .btn {
    border-radius: 999px;
}

.dh-bulk-toolbar__actions > .d-flex {
    max-width: 100%;
    min-width: 0;
}

@media (max-width: 767px) {
    .dh-bulk-toolbar__actions {
        width: 100%;
        justify-content: flex-start;
    }

    .dh-bulk-toolbar__actions > .d-flex {
        width: 100%;
        flex-wrap: wrap;
        row-gap: 0.5rem;
    }

    .dh-bulk-toolbar__actions .form-control,
    .dh-bulk-toolbar__actions .form-select {
        max-width: 100%;
    }

    .dh-bulk-toolbar__actions .dh-bulk-number-field {
        width: 6.25rem;
    }

    .dh-bulk-toolbar__actions .dh-bulk-buffer-select {
        width: 100%;
    }
}

.dh-sort-order-field {
    width: 4rem;
}

code,
.alert,
.dh-empty,
.dh-list-card,
.dh-panel-copy,
.dh-sidebar-subtitle,
.dh-topbar-subtitle,
.form-text {
    overflow-wrap: anywhere;
    word-break: break-word;
}

/* Prevent horizontal overflow in grid/flex contexts */
.d-grid > .dh-list-card,
.d-grid > a.dh-list-card {
    min-width: 0;
}

/* Inner flex rows inside list cards must constrain children for text-truncate to work */
.dh-list-card .dh-list-card-row {
    overflow: hidden;
}

.table-responsive td,
.table-responsive th {
    overflow-wrap: break-word;
    word-break: normal;
    white-space: normal;
}

.dh-billing-actions {
    max-width: 100%;
    min-width: 0;
}

.dh-billing-actions .btn,
.dh-billing-actions form {
    max-width: 100%;
}

.dh-billing-actions .btn {
    white-space: nowrap;
}

@media (max-width: 767px) {
    .dh-billing-actions {
        width: 100%;
    }

    .dh-billing-actions .btn,
    .dh-billing-actions form {
        width: 100%;
    }
}

.table-responsive code {
    white-space: nowrap;
}

/* UX polish: cards, actions and dense admin areas */
.dh-card,
.dh-list-card {
    min-width: 0;
}

.dh-card > .d-flex,
.dh-list-card > .d-flex,
.dh-panel-head,
.dh-kpi {
    min-width: 0;
}

.dh-card .form-control,
.dh-card .form-select,
.dh-list-card .form-control,
.dh-list-card .form-select {
    min-width: 0;
}

.dh-card .btn,
.dh-list-card .btn {
    max-width: 100%;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.dh-list-card .fw-semibold,
.dh-panel-title,
.dh-kpi-value {
    overflow-wrap: anywhere;
}

.dh-list-card .small,
.dh-card .small {
    line-height: 1.45;
}

.dh-list-card .btn-sm {
    align-items: center;
    justify-content: center;
    box-shadow: none;
}

.dh-card .table-responsive,
.dh-list-card .table-responsive {
    border-radius: 18px;
    border: 1px solid rgba(21, 32, 43, 0.06);
}

@media (max-width: 575px) {
    .dh-card.p-4,
    .dh-card.p-lg-5 {
        padding: 1rem !important;
    }

    .dh-list-card {
        padding: 0.95rem;
        border-radius: 18px;
    }

    .dh-list-card form.d-inline {
        display: block !important;
        width: 100%;
    }

    .dh-list-card form.d-inline .btn,
    .dh-list-card .btn {
        white-space: normal;
    }

    .dh-list-card .btn-sm,
    .dh-card .btn-sm {
        min-height: 36px;
        padding: 0.36rem 0.72rem;
        font-size: 0.84rem;
        line-height: 1.15;
    }

    .dh-list-card .d-flex.flex-wrap.gap-2,
    .dh-card .d-flex.flex-wrap.gap-2,
    .dh-table-actions,
    .dh-action-cluster {
        gap: 0.45rem !important;
    }

    .form-control[type="file"] {
        padding: 0.7rem 0.82rem;
        font-size: 0.9rem;
    }

    .form-control[type="file"]::file-selector-button {
        margin: -0.7rem 0.72rem -0.7rem -0.82rem;
        padding: 0.7rem 0.82rem;
    }

    .dh-quick-bar {
        align-items: flex-start;
        padding: 0.78rem;
    }

    .dh-quick-bar-label {
        width: 100%;
        margin-right: 0;
    }

    .dh-quick-chip {
        justify-content: center;
        min-height: 40px;
    }
}

.dh-context-hero {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    gap: 1.15rem;
    padding: 1.25rem;
    border-radius: 28px;
    border: 1px solid rgba(21, 32, 43, 0.08);
    background:
        radial-gradient(circle at top right, rgba(241, 188, 22, 0.18), transparent 34%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.94));
    box-shadow: 0 22px 46px rgba(15, 23, 42, 0.07);
    min-width: 0;
}

.dh-context-hero__content {
    min-width: 0;
    max-width: 780px;
}

.dh-context-hero__eyebrow {
    color: var(--dh-primary-dark);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    margin-bottom: 0.35rem;
}

.dh-context-hero__title {
    color: var(--dh-ink);
    font-size: clamp(1.35rem, 2.5vw, 2rem);
    font-weight: 850;
    letter-spacing: -0.04em;
    margin: 0;
}

.dh-context-hero__copy {
    color: var(--dh-ink-soft);
    font-size: 0.98rem;
    line-height: 1.55;
    margin: 0.45rem 0 0;
}

.dh-context-hero__actions {
    display: flex;
    flex-wrap: wrap;
    align-content: center;
    justify-content: flex-end;
    gap: 0.55rem;
    min-width: min(100%, 280px);
}

.dh-context-hero__actions .btn {
    min-height: 42px;
}

.dh-action-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.75rem;
}

.dh-action-card {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 0;
    padding: 0.95rem 1rem;
    border-radius: 22px;
    border: 1px solid rgba(21, 32, 43, 0.08);
    background: rgba(255, 255, 255, 0.86);
    color: var(--dh-ink);
    text-decoration: none;
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.05);
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.dh-action-card__button {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    text-align: left;
    cursor: pointer;
}

.dh-action-card__button:focus-visible {
    outline: 3px solid rgba(241, 188, 22, 0.38);
    outline-offset: 4px;
    border-radius: var(--dh-radius-xs);
}

.dh-action-card:hover {
    color: var(--dh-ink);
    border-color: rgba(241, 188, 22, 0.42);
    box-shadow: 0 18px 34px rgba(15, 23, 42, 0.08);
    transform: translateY(-1px);
}

.dh-action-card strong {
    font-size: 0.95rem;
    line-height: 1.25;
}

.dh-action-card span {
    color: var(--dh-ink-soft);
    font-size: 0.82rem;
    line-height: 1.35;
}

.dh-soft-panel {
    border-radius: 24px;
    border: 1px dashed rgba(21, 32, 43, 0.16);
    background:
        radial-gradient(circle at top left, rgba(241, 188, 22, 0.12), transparent 32%),
        rgba(255, 255, 255, 0.8);
}

.dh-status-pill-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    min-width: 0;
}

.dh-section-kicker {
    color: var(--dh-ink-muted);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.dh-sticky-panel {
    position: sticky;
    top: 1.25rem;
}

@media (max-width: 991px) {
    .dh-context-hero {
        flex-direction: column;
    }

    .dh-context-hero__actions {
        justify-content: flex-start;
        min-width: 0;
    }

    .dh-sticky-panel {
        position: static;
    }
}

@media (max-width: 575px) {
    .dh-context-hero {
        padding: 1rem;
        border-radius: 22px;
    }

    .dh-context-hero__actions,
    .dh-context-hero__actions .btn {
        width: 100%;
    }

    .dh-action-grid {
        grid-template-columns: 1fr;
    }
}

.dh-slot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.85rem;
}

.dh-slot-day {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    padding: 0.95rem;
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(248, 250, 252, 0.98) 0%, rgba(255, 255, 255, 0.98) 100%);
    border: 1px solid rgba(21, 32, 43, 0.07);
}

.dh-slot-day > .fw-semibold {
    padding-bottom: 0.3rem;
    border-bottom: 1px solid rgba(21, 32, 43, 0.08);
    color: var(--dh-ink);
}

.dh-slot-day .dh-slot-option + .dh-slot-option {
    margin-top: 0.1rem;
}

.dh-booking-summary-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
}

.dh-booking-summary-item {
    padding: 1rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(21, 32, 43, 0.07);
}

.dh-booking-summary-label {
    display: block;
    margin-bottom: 0.35rem;
    color: var(--dh-ink-soft);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.dh-booking-engine-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 1.1rem;
    border-radius: 20px;
    background: rgba(241, 188, 22, 0.1);
    border: 1px solid rgba(241, 188, 22, 0.22);
}

.dh-rate-card {
    position: relative;
    overflow: hidden;
}

.dh-rate-price {
    font-size: 1.7rem;
    font-weight: 900;
    letter-spacing: -0.04em;
    color: var(--dh-ink);
}

.dh-booking-side .dh-list-card {
    background: rgba(255, 255, 255, 0.9);
}

.dh-booking-side .btn {
    border-radius: 999px;
}

.dh-service-picker {
    display: grid;
    gap: 0;
    overflow: hidden;
    border-radius: var(--dh-radius);
    border: 1px solid rgba(21, 32, 43, 0.09);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.06);
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.dh-service-picker.is-expanded {
    border-color: rgba(241, 188, 22, 0.28);
    box-shadow: 0 22px 44px rgba(241, 188, 22, 0.12);
}

.dh-service-picker__search {
    position: relative;
    padding: 0.35rem 0.35rem 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.99) 0%, rgba(249, 250, 251, 0.98) 100%);
}

.dh-service-picker__search .form-control {
    min-height: 3.35rem;
    padding-right: 12.25rem;
    border: 0;
    border-radius: 18px 18px 10px 10px;
    background: transparent;
    box-shadow: none;
}

.dh-service-picker__search .form-control:focus {
    box-shadow: none;
}

.dh-service-picker__meta {
    position: absolute;
    right: 1.35rem;
    top: 50%;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    min-height: 1.9rem;
    margin-left: 0.35rem;
    padding-left: 1.05rem;
    border-left: 1px solid rgba(21, 32, 43, 0.08);
    background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.96) 24%);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--dh-ink-soft);
    pointer-events: none;
    white-space: nowrap;
}

.dh-service-picker__select {
    min-height: 3.55rem;
    padding-left: 1.15rem;
    padding-right: 3rem;
    border: 0;
    border-top: 1px solid rgba(21, 32, 43, 0.08);
    border-radius: 0 0 24px 24px;
    background: rgba(255, 255, 255, 0.99);
    box-shadow: none;
    transition: min-height 0.18s ease;
}

.dh-service-picker__select:focus {
    border-top-color: rgba(21, 32, 43, 0.08);
    box-shadow: none;
}

.dh-service-picker__select[size]:not([size="1"]) {
    min-height: auto;
    height: auto;
    padding-top: 0.45rem;
    padding-bottom: 0.45rem;
    background-image: none;
}

.dh-booking-calendar-shell,
.dh-day-slot-panel {
    padding: 1rem;
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(248, 250, 252, 0.98) 0%, rgba(255, 255, 255, 0.98) 100%);
    border: 1px solid rgba(21, 32, 43, 0.07);
}

.dh-booking-calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 0.45rem;
    margin-bottom: 0.6rem;
    color: var(--dh-ink-soft);
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.dh-booking-calendar-weekdays span {
    display: flex;
    justify-content: center;
}

.dh-booking-calendar {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 0.45rem;
}

.dh-month-day {
    min-height: 78px;
    padding: 0.7rem 0.45rem;
    border: 1px solid rgba(21, 32, 43, 0.08);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.92);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.18rem;
    text-align: center;
    transition: all 0.18s ease;
}

.dh-month-day.is-empty {
    min-height: 0;
    padding: 0;
    border: 0;
    background: transparent;
}

.dh-month-day.is-available {
    color: var(--dh-ink);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.dh-month-day.is-available:hover,
.dh-month-day.is-available:focus {
    border-color: rgba(241, 188, 22, 0.55);
    transform: translateY(-1px);
}

.dh-month-day.is-selected {
    border-color: rgba(241, 188, 22, 0.92);
    background: linear-gradient(180deg, rgba(255, 248, 220, 0.98) 0%, rgba(255, 255, 255, 0.98) 100%);
    box-shadow: 0 14px 30px rgba(241, 188, 22, 0.2);
}

.dh-month-day.is-unavailable {
    color: rgba(21, 32, 43, 0.42);
    background: rgba(226, 232, 240, 0.78);
    border-style: dashed;
    cursor: not-allowed;
}

.dh-month-day-number {
    font-size: 1.05rem;
    font-weight: 800;
    line-height: 1;
}

.dh-month-day-note {
    font-size: 0.7rem;
    font-weight: 700;
    line-height: 1.2;
}

.dh-day-slot-panel {
    min-height: 100%;
}

.dh-time-slot-list {
    display: grid;
    gap: 0.7rem;
}

.dh-slot-option {
    position: relative;
    display: block;
    margin: 0;
}

.dh-slot-option-input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.dh-slot-option-label {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    min-height: 100%;
    padding: 1rem 1.1rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(21, 32, 43, 0.08);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
    cursor: pointer;
    transition: all 0.18s ease;
}

.dh-slot-option-label:hover {
    border-color: rgba(241, 188, 22, 0.44);
    transform: translateY(-1px);
}

.dh-slot-option-input:checked + .dh-slot-option-label {
    border-color: rgba(241, 188, 22, 0.88);
    background: linear-gradient(180deg, rgba(255, 248, 220, 0.98) 0%, rgba(255, 255, 255, 0.98) 100%);
    box-shadow: 0 16px 34px rgba(241, 188, 22, 0.18);
}

.dh-slot-option-title {
    font-weight: 800;
    color: var(--dh-ink);
}

.dh-slot-option-meta,
.dh-slot-option-note {
    color: var(--dh-ink-soft);
    font-size: 0.92rem;
}

.dh-kpi {
    min-height: 148px;
    padding: 1.5rem;
    overflow: hidden;
    position: relative;
}

.dh-kpi::after {
    content: "";
    position: absolute;
    inset: auto -18px -28px auto;
    width: 110px;
    height: 110px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(241, 188, 22, 0.18) 0%, rgba(241, 188, 22, 0) 68%);
}

.dh-kpi-label {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: var(--dh-ink-soft);
    font-size: 0.84rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.dh-kpi-value {
    position: relative;
    z-index: 1;
    margin-top: 0.9rem;
    font-size: clamp(2rem, 3vw, 2.5rem);
    font-weight: 900;
    letter-spacing: -0.05em;
}

.dh-kpi-note {
    position: relative;
    z-index: 1;
    margin-top: 0.35rem;
    color: var(--dh-ink-soft);
    font-size: 0.94rem;
}

.dh-panel-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.2rem;
}

.dh-panel-title {
    margin-bottom: 0.25rem;
    font-size: 1.2rem;
}

.dh-panel-copy {
    color: var(--dh-ink-soft);
    font-size: 0.94rem;
}

.dh-highlight-card {
    padding: 1.6rem;
    border-radius: var(--dh-radius-lg);
    background:
        radial-gradient(circle at top left, rgba(241, 188, 22, 0.18), transparent 28%),
        linear-gradient(145deg, #ffffff 0%, #f6f8fb 100%);
    border: 1px solid rgba(21, 32, 43, 0.07);
    box-shadow: var(--dh-shadow-sm);
}

.dh-highlight-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1.2rem;
}

.dh-highlight-item {
    padding: 1rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(21, 32, 43, 0.07);
}

.dh-ops-card {
    position: relative;
    overflow: hidden;
    border-color: rgba(21, 32, 43, 0.08);
    background:
        radial-gradient(circle at top right, rgba(246, 190, 0, 0.12), transparent 30%),
        linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.94));
}

.dh-ops-card::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    background: linear-gradient(180deg, var(--dh-primary-dark), rgba(246, 190, 0, 0.18));
    opacity: 0.8;
}

.dh-center-metric {
    position: relative;
    overflow: hidden;
    box-shadow: 0 16px 38px rgba(15, 23, 42, 0.06);
}

.dh-center-metric::after {
    content: none;
}

.dh-center-metric__icon {
    position: absolute;
    right: 0.8rem;
    bottom: 0.7rem;
    width: 2.8rem;
    height: 2.8rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid currentColor;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.66);
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.07);
    opacity: 0.72;
}

.dh-center-metric__glyph {
    width: 1.45rem;
    height: 1.45rem;
}

.dh-center-metric.is-primary .dh-center-metric__icon {
    color: #a86f00;
}

.dh-center-metric.is-success .dh-center-metric__icon {
    color: var(--dh-success);
}

.dh-center-metric.is-warning .dh-center-metric__icon {
    color: var(--dh-warning);
}

.dh-center-metric.is-primary {
    border-color: rgba(241, 188, 22, 0.34);
    background: linear-gradient(135deg, #ffffff 0%, rgba(255, 248, 224, 0.86) 100%);
}

.dh-center-metric.is-success {
    border-color: rgba(31, 122, 84, 0.18);
    background: linear-gradient(135deg, #ffffff 0%, rgba(231, 246, 238, 0.86) 100%);
}

.dh-center-metric.is-warning {
    border-color: rgba(153, 102, 7, 0.18);
    background: linear-gradient(135deg, #ffffff 0%, rgba(253, 246, 232, 0.9) 100%);
}

.dh-vertical-hero {
    position: relative;
    overflow: hidden;
    padding: clamp(1rem, 2vw, 1.35rem);
    border: 1px solid rgba(21, 32, 43, 0.08);
    border-radius: 26px;
    background:
        radial-gradient(circle at right top, rgba(241, 188, 22, 0.16), transparent 30%),
        linear-gradient(135deg, #ffffff 0%, rgba(248, 250, 252, 0.96) 100%);
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.07);
}

.dh-vertical-hero::after {
    content: attr(data-icon);
    position: absolute;
    right: 1.2rem;
    bottom: 0.75rem;
    font-size: clamp(2.4rem, 7vw, 4.8rem);
    line-height: 1;
    opacity: 0.08;
    pointer-events: none;
}

.dh-vertical-hero-vet {
    border-color: rgba(31, 122, 84, 0.16);
    background:
        radial-gradient(circle at right top, rgba(31, 122, 84, 0.12), transparent 32%),
        linear-gradient(135deg, #ffffff 0%, rgba(239, 250, 245, 0.92) 100%);
}

.dh-vertical-hero-groom {
    border-color: rgba(241, 188, 22, 0.22);
    background:
        radial-gradient(circle at right top, rgba(241, 188, 22, 0.18), transparent 32%),
        linear-gradient(135deg, #ffffff 0%, rgba(255, 249, 230, 0.92) 100%);
}

.dh-vertical-hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-bottom: 0.35rem;
    padding: 0.18rem 0.58rem;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.055);
    color: var(--dh-ink-soft);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.dh-vertical-hero .btn {
    min-height: 42px;
}

.dh-vertical-hero > div {
    min-width: 0;
}

@media (max-width: 575px) {
    .dh-vertical-hero {
        border-radius: 22px;
    }

    .dh-vertical-hero .btn {
        width: 100%;
        justify-content: center;
    }
}

.dh-launch-strip {
    border-style: dashed;
    border-color: rgba(241, 188, 22, 0.34);
    background:
        radial-gradient(circle at right top, rgba(241, 188, 22, 0.14), transparent 28%),
        linear-gradient(135deg, #ffffff 0%, #fffaf0 100%);
}

.dh-launch-strip .dh-panel-head {
    margin-bottom: 0;
}

.dh-launch-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.55rem;
}

@media (max-width: 767.98px) {
    .dh-launch-strip .dh-panel-head {
        align-items: stretch;
    }

    .dh-launch-actions {
        justify-content: flex-start;
    }
}

.dh-highlight-item strong {
    display: block;
    margin-bottom: 0.3rem;
    font-size: 1.2rem;
}

.dh-table {
    margin-bottom: 0;
}

.dh-table thead th {
    padding: 0 0 0.9rem;
    color: var(--dh-ink-soft);
    font-size: 0.84rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border-bottom: 1px solid rgba(21, 32, 43, 0.08);
}

.dh-table tbody td {
    padding: 1rem 0;
    border-color: rgba(21, 32, 43, 0.06);
    vertical-align: middle;
}

.dh-table tbody tr:last-child td {
    border-bottom: 0;
}

.dh-table th.text-center:first-child,
.dh-table td.text-center:first-child {
    width: 2.8rem;
    min-width: 2.8rem;
    padding-left: 0.25rem;
    padding-right: 0.75rem;
}

.dh-table tbody tr:hover {
    background: rgba(241, 188, 22, 0.05);
}

.dh-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.42rem 0.72rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
    overflow-wrap: normal;
    word-break: keep-all;
    hyphens: none;
    margin: 0.14rem 0;
    vertical-align: middle;
}

.dh-badge + .dh-badge,
.dh-badge + .badge,
.badge + .dh-badge {
    margin-left: 0.42rem;
}

.badge + .badge {
    margin-left: 0.38rem;
}

.dh-table .dh-badge,
.dh-table .badge {
    margin-top: 0;
    margin-bottom: 0;
}

.dh-badge.success {
    background: rgba(31, 122, 84, 0.12);
    color: var(--dh-success);
}

.dh-badge.warning {
    background: rgba(153, 102, 7, 0.12);
    color: var(--dh-warning);
}

.dh-badge.danger {
    background: rgba(188, 68, 49, 0.12);
    color: var(--dh-danger);
}

.dh-badge.secondary {
    background: rgba(21, 32, 43, 0.07);
    color: var(--dh-ink-soft);
}

.dh-badge.info {
    background: rgba(14, 165, 233, 0.1);
    color: #0369a1;
}

.dh-list-card {
    padding: 1rem 1.15rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(21, 32, 43, 0.07);
    position: relative;
}

/* When a dropdown is open inside a card, elevate it above sibling cards.
   Needed because animation fill-mode leaves a transform on the element,
   which creates a stacking context — later sibling cards would otherwise
   paint over the open dropdown menu. */
.dh-list-card:has(.dropdown.show) {
    z-index: 5;
}

.dh-inline-action {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.dh-copy-field {
    display: flex;
    gap: 0.75rem;
    align-items: stretch;
}

.dh-copy-field .form-control {
    min-width: 0;
}

.dh-membership-card {
    position: relative;
    overflow: hidden;
    padding: 1.55rem;
    border-radius: var(--dh-radius-md);
    background:
        radial-gradient(circle at top right, rgba(241, 188, 22, 0.22), transparent 30%),
        linear-gradient(145deg, rgba(255, 255, 255, 0.98) 0%, rgba(246, 248, 251, 0.96) 100%);
    border: 1px solid rgba(21, 32, 43, 0.08);
    box-shadow: 0 24px 48px rgba(15, 23, 42, 0.1);
}

.dh-membership-card::after {
    content: "";
    position: absolute;
    right: -26px;
    bottom: -26px;
    width: 130px;
    height: 130px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(241, 188, 22, 0.22) 0%, rgba(241, 188, 22, 0) 72%);
}

.dh-membership-card-logo {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 18px;
    border: 1px solid rgba(21, 32, 43, 0.08);
    background: rgba(255, 255, 255, 0.94);
}

.dh-membership-card-kicker {
    color: var(--dh-ink-soft);
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.dh-membership-card-number {
    font-size: clamp(1.55rem, 4vw, 2.35rem);
    font-weight: 900;
    letter-spacing: -0.05em;
}

.dh-membership-card-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
    margin-top: 1.1rem;
}

.dh-membership-card-meta {
    padding: 0.9rem 1rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(21, 32, 43, 0.07);
}

.dh-availability-board {
    min-height: 320px;
    border-radius: var(--dh-radius);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.9));
    border: 1px solid rgba(21, 32, 43, 0.08);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
    padding: 0.85rem;
}

.dh-availability-page {
    min-width: 0;
}

.dh-availability-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 390px);
    gap: 1.25rem;
    align-items: start;
}

.dh-availability-main,
.dh-availability-sidebar {
    min-width: 0;
}

.dh-availability-sidebar .dh-side-editor-panel {
    top: 4rem;
}

.dh-planner-main-card {
    overflow: hidden;
}

.dh-planner-main-card > .d-flex:first-child > div:last-child {
    max-width: 100%;
}

#availabilityCalendarFilter {
    width: min(100%, 260px);
    min-width: 190px;
}

.dh-availability-sidebar #availabilityRules form {
    background: rgba(255, 255, 255, 0.72);
    border-color: rgba(21, 32, 43, 0.08) !important;
}

@media (max-width: 1199px) {
    .dh-availability-layout {
        grid-template-columns: 1fr;
    }

    .dh-availability-sidebar .dh-side-editor-panel {
        position: static;
    }
}

@media (max-width: 767px) {
    #availabilityCalendarFilter {
        width: 100%;
        min-width: 0;
    }

    .dh-planner-main-card > .d-flex:first-child > div:last-child,
    .dh-planner-main-card > .d-flex:first-child > div:last-child form,
    .dh-planner-main-card > .d-flex:first-child > div:last-child .btn,
    .dh-planner-main-card > .d-flex:first-child > div:last-child .form-select {
        width: 100%;
    }

    .dh-availability-board {
        padding: 0.35rem;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .dh-availability-board .fc {
        min-width: 560px;
    }
    .dh-availability-board .fc .fc-timegrid-slot {
        height: 2rem;
    }
    .dh-availability-board .fc .fc-col-header-cell-cushion {
        padding: 0.5rem 0.2rem;
        font-size: 0.72rem;
    }
    .dh-availability-board .fc .fc-timegrid-axis-cushion,
    .dh-availability-board .fc .fc-timegrid-slot-label-cushion {
        font-size: 0.68rem;
        padding: 0 0.2rem;
    }
    .dh-planner-week-strip {
        gap: 0.3rem;
    }
    .dh-planner-day-card {
        padding: 0.5rem 0.5rem;
        min-width: 70px;
    }
}

.dh-availability-board .fc {
    --fc-border-color: rgba(21, 32, 43, 0.08);
    --fc-neutral-bg-color: rgba(248, 250, 252, 0.76);
    --fc-page-bg-color: transparent;
    --fc-now-indicator-color: #f1bc16;
}

.dh-availability-board .fc .fc-col-header-cell-cushion {
    padding: 0.85rem 0.35rem;
    font-size: 0.8rem;
    letter-spacing: 0.04em;
}

.dh-availability-board .fc .fc-timegrid-axis-cushion,
.dh-availability-board .fc .fc-timegrid-slot-label-cushion {
    font-size: 0.78rem;
}

.dh-availability-board .fc .fc-timegrid-axis {
    background: rgba(248, 250, 252, 0.88);
}

.dh-availability-board .fc .fc-timegrid-slot {
    height: 2.9rem;
}

.dh-availability-board .fc .fc-event {
    border-radius: 16px;
    padding: 0.38rem 0.48rem;
    box-shadow: 0 14px 24px rgba(15, 23, 42, 0.1);
}

.dh-availability-board .fc .fc-now-indicator-line {
    border-color: rgba(241, 188, 22, 0.9);
    border-width: 2px;
}

.dh-availability-helper {
    padding: 1rem 1.1rem;
    border-radius: 18px;
    background: rgba(241, 188, 22, 0.12);
    border: 1px solid rgba(241, 188, 22, 0.22);
    color: var(--dh-ink);
}

.dh-planner-presets {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.dh-planner-presets-wrapper {
    display: grid;
    gap: 0.85rem;
}

.dh-planner-preset-editor {
    border-radius: 20px;
    border: 1px solid rgba(21, 32, 43, 0.08);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.94));
    box-shadow: 0 14px 26px rgba(15, 23, 42, 0.05);
    overflow: hidden;
}

.dh-planner-preset-editor summary {
    list-style: none;
    cursor: pointer;
    padding: 0.95rem 1rem;
    font-weight: 800;
    color: var(--dh-ink);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.dh-planner-preset-editor summary::-webkit-details-marker {
    display: none;
}

.dh-planner-preset-editor-body {
    padding: 0 1rem 1rem;
}

.dh-planner-preset-grid {
    display: grid;
    gap: 0.85rem;
}

.dh-planner-preset-row {
    padding: 0.95rem;
    border-radius: 18px;
    border: 1px solid rgba(21, 32, 43, 0.08);
    background: rgba(255, 255, 255, 0.92);
}

.dh-planner-preset-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
}

.dh-planner-quick-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.85rem;
    margin-bottom: 1rem;
}

.dh-planner-quick-card {
    padding: 1rem 1.05rem;
    border-radius: 20px;
    border: 1px solid rgba(21, 32, 43, 0.08);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.94));
    box-shadow: 0 14px 26px rgba(15, 23, 42, 0.05);
}

.dh-planner-quick-card strong {
    display: block;
    font-size: 0.95rem;
    color: var(--dh-ink);
}

.dh-planner-quick-card span {
    display: block;
    margin-top: 0.32rem;
    color: var(--dh-ink-soft);
    font-size: 0.83rem;
    line-height: 1.45;
}

.dh-availability-flow-card {
    border-color: rgba(241, 188, 22, 0.2);
    background:
        radial-gradient(circle at top left, rgba(241, 188, 22, 0.12), transparent 34%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.94));
}

.dh-ticket-board-card {
    overflow: hidden;
}

.dh-ticket-type-board {
    display: grid;
    gap: 1rem;
}

.dh-ticket-type-board__item {
    border: 1px solid rgba(21, 32, 43, 0.08);
    border-radius: 24px;
    background:
        radial-gradient(circle at top left, rgba(241, 188, 22, 0.1), transparent 34%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.94));
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.06);
    overflow: hidden;
}

.dh-ticket-type-board__head {
    width: 100%;
    border: 0;
    background: transparent;
    color: var(--dh-ink);
    padding: 1.05rem 1.1rem;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, auto) auto;
    gap: 1rem;
    align-items: center;
    text-align: left;
}

.dh-ticket-type-board__head:hover {
    background: rgba(255, 255, 255, 0.74);
}

.dh-ticket-type-board__title {
    min-width: 0;
    display: grid;
    gap: 0.2rem;
}

.dh-ticket-type-board__title strong {
    font-size: 1rem;
    line-height: 1.25;
}

.dh-ticket-type-board__title small {
    color: var(--dh-ink-soft);
    line-height: 1.4;
}

.dh-ticket-type-board__stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(76px, 1fr));
    gap: 0.5rem;
}

.dh-ticket-type-board__stats span {
    padding: 0.58rem 0.65rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(21, 32, 43, 0.08);
    color: var(--dh-ink-soft);
    font-size: 0.76rem;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
}

.dh-ticket-type-board__stats strong {
    display: block;
    color: var(--dh-ink);
    font-size: 1rem;
}

.dh-ticket-type-board__chevron {
    justify-self: end;
    padding: 0.5rem 0.75rem;
    border-radius: 999px;
    border: 1px solid rgba(21, 32, 43, 0.12);
    background: rgba(255, 255, 255, 0.86);
    color: var(--dh-ink);
    font-size: 0.78rem;
    font-weight: 800;
    white-space: nowrap;
}

.dh-ticket-type-board__head[aria-expanded="true"] .dh-ticket-type-board__chevron {
    background: rgba(241, 188, 22, 0.18);
    border-color: rgba(241, 188, 22, 0.35);
}

.dh-ticket-type-board__chevron .is-close-label {
    display: none;
}

.dh-ticket-type-board__head[aria-expanded="true"] .dh-ticket-type-board__chevron .is-open-label {
    display: none;
}

.dh-ticket-type-board__head[aria-expanded="true"] .dh-ticket-type-board__chevron .is-close-label {
    display: inline;
}

.dh-ticket-type-board__body {
    padding: 0 1.1rem 1.1rem;
    display: grid;
    gap: 0.9rem;
}

.dh-ticket-type-board__toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    padding-top: 0.15rem;
}

.dh-ticket-empty-state {
    padding: 1rem;
    border-radius: 18px;
    border: 1px dashed rgba(21, 32, 43, 0.14);
    background: rgba(255, 255, 255, 0.72);
    color: var(--dh-ink-soft);
    display: grid;
    gap: 0.18rem;
}

.dh-ticket-empty-state strong {
    color: var(--dh-ink);
}

.dh-ticket-empty-state.is-compact {
    padding: 0.85rem 0.95rem;
    font-size: 0.88rem;
}

.dh-ticket-order-stack {
    display: grid;
    gap: 0.85rem;
}

.dh-ticket-order-card {
    padding: 1rem;
    border-radius: 20px;
    border: 1px solid rgba(21, 32, 43, 0.08);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.04);
}

.dh-ticket-order-card__head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1rem;
    align-items: start;
}

.dh-ticket-pass-list {
    display: grid;
    gap: 0.65rem;
    margin-top: 0.85rem;
}

.dh-ticket-pass-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.85rem;
    align-items: center;
    padding: 0.78rem 0.85rem;
    border-radius: 16px;
    border: 1px solid rgba(21, 32, 43, 0.08);
    background: rgba(248, 250, 252, 0.86);
}

.dh-ticket-pass-row__code {
    min-width: 0;
    display: grid;
    gap: 0.2rem;
}

.dh-ticket-pass-row__code span {
    font-weight: 800;
    color: var(--dh-ink);
}

.dh-ticket-pass-row__code code {
    width: fit-content;
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
    color: #475569;
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(21, 32, 43, 0.08);
    border-radius: 10px;
    padding: 0.18rem 0.42rem;
}

.dh-ticket-pass-row__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem;
}

@media (max-width: 991px) {
    .dh-ticket-type-board__head,
    .dh-ticket-order-card__head,
    .dh-ticket-pass-row {
        grid-template-columns: 1fr;
    }

    .dh-ticket-type-board__stats {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .dh-ticket-type-board__chevron {
        justify-self: start;
    }

    .dh-ticket-type-board__toolbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .dh-ticket-pass-row__actions {
        justify-content: flex-start;
    }
}

@media (max-width: 575px) {
    .dh-ticket-type-board__head {
        padding: 0.9rem;
    }

    .dh-ticket-type-board__body {
        padding: 0 0.9rem 0.9rem;
    }

    .dh-ticket-type-board__stats {
        grid-template-columns: 1fr;
    }

    .dh-ticket-order-card {
        padding: 0.85rem;
    }

    .dh-ticket-pass-row__actions .btn {
        width: 100%;
    }
}

.dh-planner-week-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(124px, 1fr));
    gap: 0.75rem;
}

.dh-planner-day-card {
    padding: 0.95rem 0.95rem 0.9rem;
    border-radius: 20px;
    border: 1px solid rgba(21, 32, 43, 0.08);
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 14px 24px rgba(15, 23, 42, 0.04);
    display: grid;
    gap: 0.38rem;
}

.dh-planner-day-card.is-active {
    background: linear-gradient(180deg, rgba(255, 251, 239, 0.96), rgba(255, 255, 255, 0.94));
    border-color: rgba(241, 188, 22, 0.2);
}

.dh-planner-day-card strong {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.94rem;
    color: var(--dh-ink);
}

.dh-planner-day-card strong span {
    color: var(--dh-ink-soft);
    font-size: 0.82rem;
    font-weight: 700;
}

.dh-planner-day-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.6rem;
    color: var(--dh-ink-soft);
    font-size: 0.81rem;
}

.dh-planner-day-row b {
    color: var(--dh-ink);
    font-weight: 800;
}

.dh-planner-selection {
    display: grid;
    gap: 0.35rem;
    padding: 1rem 1.1rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(21, 32, 43, 0.08);
    box-shadow: var(--dh-shadow-sm);
    color: var(--dh-ink-soft);
}

.dh-planner-selection strong {
    color: var(--dh-ink);
    font-size: 0.96rem;
}

.dh-recurrence-card {
    padding: 1rem 1.05rem;
    border-radius: 20px;
    border: 1px solid rgba(21, 32, 43, 0.08);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(250, 247, 236, 0.94));
    box-shadow: 0 14px 26px rgba(15, 23, 42, 0.05);
}

.dh-weekday-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.dh-weekday-pill {
    min-width: 58px;
    padding-inline: 0.95rem;
}

.dh-metric-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.9rem;
    margin-bottom: 1.25rem;
}

.dh-metric-card {
    padding: 1rem 1.05rem;
    border-radius: 22px;
    border: 1px solid rgba(21, 32, 43, 0.08);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.92));
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.05);
}

.dh-metric-card strong {
    display: block;
    font-size: 1.35rem;
    line-height: 1.1;
    color: var(--dh-ink);
}

.dh-metric-card span {
    display: block;
    margin-top: 0.35rem;
    color: var(--dh-ink-soft);
    font-size: 0.86rem;
}

.dh-progress-stack {
    display: grid;
    gap: 0.7rem;
}

.dh-progress-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.88rem;
    color: var(--dh-ink-soft);
}

.dh-progress-track {
    position: relative;
    width: 100%;
    height: 0.72rem;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(21, 32, 43, 0.08);
}

.dh-progress-fill {
    position: absolute;
    inset: 0 auto 0 0;
    width: 0;
    border-radius: inherit;
    background: linear-gradient(90deg, rgba(241, 188, 22, 0.95), rgba(248, 197, 57, 0.88));
    box-shadow: 0 10px 20px rgba(241, 188, 22, 0.18);
}

.dh-course-material-status {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.85rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(21, 32, 43, 0.08);
}

.dh-course-material-status-copy {
    display: grid;
    gap: 0.2rem;
}

.dh-course-material-status-copy strong {
    font-size: 0.92rem;
    color: var(--dh-ink);
}

.dh-course-material-status-copy span {
    font-size: 0.82rem;
    color: var(--dh-ink-soft);
}

.dh-course-hero {
    background:
        radial-gradient(circle at top right, rgba(241, 188, 22, 0.14), transparent 26%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(247, 249, 252, 0.96) 100%);
}

.dh-course-card {
    padding: 1.2rem 1.25rem;
    border-radius: var(--dh-radius);
    border: 1px solid rgba(21, 32, 43, 0.08);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--dh-shadow-sm);
}

.dh-course-meta-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem;
}

.dh-course-focus-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.9rem;
}

.dh-course-focus-card {
    padding: 1rem 1.05rem;
    border-radius: 22px;
    border: 1px solid rgba(21, 32, 43, 0.08);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(249, 250, 252, 0.94));
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

.dh-course-focus-card strong {
    display: block;
    color: var(--dh-ink);
    font-size: 0.96rem;
}

.dh-course-focus-card span {
    display: block;
    margin-top: 0.32rem;
    color: var(--dh-ink-soft);
    font-size: 0.83rem;
    line-height: 1.5;
}

.dh-course-meta-card {
    display: grid;
    gap: 0.2rem;
    padding: 0.95rem 1rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(21, 32, 43, 0.07);
}

.dh-course-meta-card strong {
    color: var(--dh-ink);
    font-size: 1.35rem;
    font-weight: 900;
    line-height: 1;
}

.dh-course-meta-card span {
    color: var(--dh-ink-soft);
    font-size: 0.84rem;
}

.dh-course-outline {
    position: sticky;
    top: 1.25rem;
}

.dh-course-section-card,
.dh-course-session-card,
.dh-course-material-card {
    border-radius: var(--dh-radius);
    border: 1px solid rgba(21, 32, 43, 0.08);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--dh-shadow-sm);
}

.dh-course-section-card {
    padding: 1.25rem;
}

.dh-course-session-card {
    padding: 1rem 1.05rem;
}

.dh-course-session-card.is-upcoming {
    border-color: rgba(241, 188, 22, 0.35);
    box-shadow: 0 14px 30px rgba(241, 188, 22, 0.12);
}

.dh-course-material-card {
    padding: 1rem 1.05rem;
    background: rgba(247, 249, 252, 0.9);
}

.dh-course-disclosure {
    border-radius: var(--dh-radius);
    border: 1px solid rgba(21, 32, 43, 0.08);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--dh-shadow-sm);
    overflow: hidden;
}

.dh-course-disclosure + .dh-course-disclosure {
    margin-top: 1rem;
}

.dh-course-disclosure-summary {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.2rem 1.25rem;
    cursor: pointer;
    list-style: none;
}

.dh-course-disclosure-summary::-webkit-details-marker {
    display: none;
}

.dh-course-disclosure-summary::after {
    content: '+';
    align-self: center;
    color: var(--dh-ink-soft);
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1;
}

.dh-course-disclosure[open] .dh-course-disclosure-summary::after {
    content: '−';
}

.dh-course-disclosure-body {
    padding: 0 1.25rem 1.25rem;
}

.dh-invoice-card {
    padding: 1rem 1.1rem;
    border-radius: 20px;
    border: 1px solid rgba(21, 32, 43, 0.08);
    background: rgba(255, 255, 255, 0.92);
}

.dh-list-card + .dh-list-card {
    margin-top: 0.85rem;
}

.dh-empty {
    padding: 1.75rem;
    border: 1px dashed rgba(21, 32, 43, 0.18);
    border-radius: var(--dh-radius);
    background: rgba(255, 255, 255, 0.72);
    color: var(--dh-ink-soft);
}

/* ——— Auth pages: dark sidebar login design ——— */

@keyframes dh-auth-card-in {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.dh-auth-shell {
    min-height: 80vh;
    display: flex;
    align-items: center;
    background-color: transparent;
    padding: 4rem 0;
}

.dh-auth-card {
    background: #ffffff;
    border-radius: 1.5rem;
    box-shadow: 0 25px 50px -12px rgba(17, 24, 39, 0.15), 0 0 0 1px rgba(17, 24, 39, 0.05);
    overflow: hidden;
    border: none;
    animation: dh-auth-card-in 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.dh-auth-side {
    background: linear-gradient(135deg, #111827 0%, #1f2937 100%);
    color: white;
    height: 100%;
    padding: 4rem 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.dh-auth-side::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 6px;
    background: var(--dh-primary);
}

.dh-auth-side h1 {
    font-size: 2.25rem;
    font-weight: 800;
    line-height: 1.2;
    color: white;
    margin-top: 0;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.dh-auth-side p {
    color: #9ca3af;
    font-size: 1.05rem;
    margin-bottom: 0;
    line-height: 1.6;
}

.dh-auth-list {
    list-style: none;
    padding-left: 0;
    margin-top: 2.5rem;
    margin-bottom: 0;
}

.dh-auth-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    margin-bottom: 1.25rem;
    color: #d1d5db;
    font-size: 0.95rem;
    line-height: 1.5;
    background: transparent;
    border: none;
    text-align: left;
    padding-left: 0;
    border-radius: 0;
}

.dh-auth-list li::before {
    content: '\2714';
    flex-shrink: 0;
    margin-top: 0.15rem;
    color: #111827;
    background: var(--dh-primary);
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 900;
}

.dh-auth-form-wrapper {
    padding: 4.5rem 4rem;
    background: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
}

.dh-auth-form-wrapper .dh-brand-pill {
    padding: 0.4rem 1rem;
    background-color: #f9fafb;
    color: #6b7280;
    font-size: 0.75rem;
    margin-bottom: 1.5rem;
    border: 1px solid #e5e7eb;
    gap: 0;
}

.dh-auth-form-wrapper .dh-brand-pill::before {
    display: none;
}

.dh-auth-form-wrapper h2 {
    font-size: 1.75rem;
    font-weight: 800;
    color: #111827;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.dh-auth-form-wrapper > p {
    color: #6b7280;
    font-size: 1rem;
    margin-bottom: 2.5rem;
}

.dh-auth-form-wrapper .form-label {
    font-weight: 600;
    color: #111827;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    display: block;
}

.dh-auth-form-wrapper .form-control {
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    padding: 0.85rem 1rem;
    font-size: 1rem;
    background-color: #f9fafb;
    color: #111827;
    transition: all 0.3s ease;
    box-shadow: none;
    width: 100%;
}

.dh-auth-form-wrapper .form-control:focus {
    border-color: var(--dh-primary);
    background-color: white;
    box-shadow: 0 0 0 4px rgba(241, 188, 22, 0.15);
    outline: none;
}

.dh-auth-form-wrapper .dh-primary-btn {
    padding: 0.9rem;
    border-radius: 9999px;
    font-size: 1.05rem;
    width: 100%;
    margin-top: 0.5rem;
}

.dh-link-muted {
    color: #6b7280;
    font-weight: 500;
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.dh-link-muted:hover {
    color: var(--dh-primary);
}

@media (max-width: 991.98px) {
    .dh-auth-form-wrapper {
        padding: 3rem 2rem;
    }

    .dh-auth-side {
        padding: 2.5rem 2rem;
    }
}

.dh-login-grid {
    display: grid;
    gap: 1.25rem;
}

.dh-login-card {
    height: 100%;
    padding: 1.75rem;
    border-radius: var(--dh-radius-md);
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(21, 32, 43, 0.08);
    box-shadow: var(--dh-shadow-sm);
}

.dh-login-card .dh-badge {
    margin-bottom: 1rem;
}

.fc .fc-toolbar-title {
    font-size: 1.28rem;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.fc .fc-scrollgrid,
.fc .fc-theme-standard td,
.fc .fc-theme-standard th {
    border-color: rgba(21, 32, 43, 0.08);
}

.fc .fc-scrollgrid {
    border-radius: 22px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--dh-shadow-xs);
}

.fc .fc-col-header-cell {
    background: linear-gradient(180deg, rgba(248, 250, 252, 0.96), rgba(255, 249, 235, 0.8));
}

.fc .fc-col-header-cell-cushion,
.fc .fc-timegrid-axis-cushion,
.fc .fc-timegrid-slot-label-cushion {
    color: var(--dh-ink-soft);
    font-weight: 800;
}

.fc .fc-timegrid-slot,
.fc .fc-daygrid-day-frame {
    background: rgba(255, 255, 255, 0.88);
}

.fc .fc-daygrid-day-number {
    color: var(--dh-ink);
    font-weight: 700;
    padding: 0.65rem 0.75rem 0;
}

.fc .fc-list-day-cushion {
    background: rgba(250, 248, 240, 0.92);
}

.fc .fc-day-today {
    background: rgba(241, 188, 22, 0.08) !important;
}

.fc .fc-button-primary {
    background: var(--dh-primary);
    border-color: var(--dh-primary);
    color: #111827;
}

.fc .fc-button-primary:not(:disabled).fc-button-active,
.fc .fc-button-primary:not(:disabled):active,
.fc .fc-button-primary:hover {
    background: var(--dh-primary-dark);
    border-color: var(--dh-primary-dark);
    color: #111827;
}

.fc .fc-button {
    border-radius: 999px;
    font-weight: 800;
    box-shadow: none !important;
    min-height: 42px;
    padding-inline: 1rem;
}

.fc .fc-button .fc-icon,
.fc .fc-button .fc-icon::before {
    color: currentColor !important;
    opacity: 1 !important;
}

.fc .fc-prev-button .fc-icon,
.fc .fc-next-button .fc-icon {
    display: none !important;
}

.fc .fc-prev-button::after,
.fc .fc-next-button::after {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1rem;
    font-size: 1.25rem;
    line-height: 1;
    font-weight: 700;
}

.fc .fc-prev-button::after {
    content: "‹";
}

.fc .fc-next-button::after {
    content: "›";
}

.fc .fc-prev-button,
.fc .fc-next-button {
    min-width: 46px;
}

.fc .fc-toolbar.fc-header-toolbar {
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    padding: 0.4rem 0.1rem;
}

.fc .fc-toolbar-chunk {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    align-items: center;
}

.fc .fc-event {
    border: 0;
    border-radius: 18px;
    padding: 0.28rem 0.42rem;
    box-shadow: 0 12px 22px rgba(15, 23, 42, 0.1);
}

.fc .fc-event-main {
    white-space: normal;
}

.fc .fc-timegrid-event .fc-event-time,
.fc .fc-timegrid-event .fc-event-title,
.fc .fc-daygrid-event .fc-event-title {
    font-size: 0.95rem;
    line-height: 1.35;
    font-weight: 800;
}

.fc .fc-timegrid-event .fc-event-time {
    opacity: 0.92;
}

.fc .fc-list-event-time,
.fc .fc-list-event-title {
    font-size: 0.95rem;
}

.fc .fc-timegrid-slot-minor {
    border-top-style: dotted;
}

.fc .fc-highlight {
    background: rgba(241, 188, 22, 0.14);
}

/* ── input-group corner fix: input rounded-start, button rounded-end ── */
.input-group > .form-control:first-child,
.input-group > .form-select:first-child {
    border-top-left-radius: 16px !important;
    border-bottom-left-radius: 16px !important;
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
}
.input-group > .btn:last-child,
.input-group > .input-group-text:last-child {
    border-top-right-radius: 16px !important;
    border-bottom-right-radius: 16px !important;
    border-top-left-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
}
.input-group > .form-control:not(:first-child):not(:last-child),
.input-group > .btn:not(:first-child):not(:last-child) {
    border-radius: 0 !important;
}

/* ── dh-admin-tabs: unified tab navigation ── */
.dh-admin-tabs {
    gap: 0;
    border-bottom: 2px solid var(--dh-border);
    flex-wrap: wrap;
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
}
.dh-admin-tabs .nav-item { list-style: none; }
.dh-admin-tabs .nav-link,
.dh-admin-tabs a.nav-link {
    color: var(--dh-ink-muted);
    font-size: 0.82rem;
    font-weight: 600;
    padding: 0.55rem 1rem;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    border-radius: 0;
    background: none;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 4px;
    text-decoration: none;
    transition: color .15s;
    cursor: pointer;
}
.dh-admin-tabs .nav-link:hover { color: var(--dh-ink); }
.dh-admin-tabs .nav-link.active,
.dh-admin-tabs .nav-link.is-current {
    color: var(--dh-primary-dark);
    border-bottom-color: var(--dh-primary-dark);
    background: none;
}
@media (max-width: 575px) {
    .dh-admin-tabs .nav-link { padding: 0.45rem 0.65rem; font-size: 0.78rem; }
}

/* ── Calendar appointments list ── */
.dh-calendar-upcoming-card {
    transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.dh-calendar-upcoming-card:hover {
    box-shadow: 0 16px 36px rgba(15,23,42,0.1);
    transform: translateY(-1px);
}
.dh-cal-appt-time {
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    color: var(--dh-primary-dark);
    white-space: nowrap;
}
.dh-cal-appt-title {
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1.3;
}
.dh-cal-appt-meta {
    font-size: 0.78rem;
    color: var(--dh-ink-soft);
    margin-top: 0.15rem;
    line-height: 1.4;
}
.dh-cal-open-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.3rem 0.7rem;
    font-size: 0.78rem;
    font-weight: 700;
    border-radius: 999px;
    border: 1.5px solid rgba(21,32,43,0.18);
    color: var(--dh-ink);
    background: transparent;
    text-decoration: none;
    transition: background 0.15s ease, border-color 0.15s ease;
    white-space: nowrap;
    flex-shrink: 0;
}
.dh-cal-open-btn:hover {
    background: rgba(21,32,43,0.06);
    border-color: rgba(21,32,43,0.32);
    color: var(--dh-ink);
}

/* ── FullCalendar responsive ── */
@media (max-width: 767px) {
    .fc .fc-toolbar.fc-header-toolbar {
        flex-direction: column;
        align-items: stretch;
        gap: 0.6rem;
    }
    .fc .fc-toolbar-chunk {
        justify-content: center;
    }
    .fc .fc-toolbar-title {
        font-size: 1rem;
        text-align: center;
    }
    .fc .fc-button {
        font-size: 0.78rem;
        min-height: 36px;
        padding-inline: 0.6rem;
    }
    .fc .fc-prev-button,
    .fc .fc-next-button {
        min-width: 36px;
    }
    .dh-calendar-shell .col-xl-8,
    .dh-calendar-shell .col-xl-4 {
        order: 0;
    }
    .dh-calendar-shell .col-xl-4 {
        order: -1;
    }
}

@media (max-width: 575px) {
    .fc .fc-timegrid-event .fc-event-time,
    .fc .fc-timegrid-event .fc-event-title,
    .fc .fc-daygrid-event .fc-event-title {
        font-size: 0.78rem;
    }
}

.dh-client-calendar {
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(252, 250, 244, 0.9));
    border: 1px solid rgba(21, 32, 43, 0.08);
    padding: 1rem;
}

.dh-booking-highlight {
    animation: dh-booking-highlight 1.6s ease;
}

@keyframes dh-booking-highlight {
    0% {
        box-shadow: 0 0 0 0 rgba(241, 188, 22, 0.26);
    }
    55% {
        box-shadow: 0 0 0 10px rgba(241, 188, 22, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(241, 188, 22, 0);
    }
}

.dh-inline-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem 1.2rem;
}

.dh-inline-links a {
    color: var(--dh-ink-soft);
    font-size: 0.94rem;
    font-weight: 700;
    text-decoration: none;
}

.dh-inline-links a:hover,
.dh-inline-links a:focus {
    color: var(--dh-ink);
}

.dh-legal-document {
    color: var(--dh-ink);
    line-height: 1.9;
    white-space: pre-line;
}

.dh-cookie-banner {
    position: fixed;
    inset: 0;
    /* Il consenso deve restare sopra qualunque assistente o widget esterno. */
    z-index: 2147483600;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 1rem 1rem calc(max(env(safe-area-inset-bottom), 0px) + 1.2rem);
    max-height: 100dvh;
    pointer-events: none;
}

.dh-cookie-banner.is-hidden {
    display: none;
}

.dh-cookie-banner.is-visible {
    display: flex;
}

/* DoggieAI non deve coprire né intercettare la scelta dei cookie. */
.dh-cookie-consent-active .doggieai-widget-root,
.dh-cookie-consent-active .doggieai-widget-backdrop {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

@media (min-width: 641px) {
    .dh-public-body:not(.dh-cookie-consent-active) .doggieai-widget-root {
        bottom: calc(env(safe-area-inset-bottom, 0px) + 5.25rem) !important;
    }
}

@media (max-width: 640px) {
    .dh-public-body:not(.dh-cookie-consent-active) .doggieai-widget-root {
        /* Il badge cookie mobile occupa i primi 8,125rem dal fondo. */
        bottom: calc(env(safe-area-inset-bottom, 0px) + 9.25rem) !important;
    }
}

.dh-cookie-panel {
    position: relative;
    width: min(100%, 1120px);
    max-width: calc(100vw - 2rem);
    margin: 0;
    padding: 1.3rem 1.45rem;
    background: var(--dh-cookie-bg, #ffffff);
    color: var(--dh-cookie-text, var(--dh-ink));
    border: 1px solid rgba(15, 23, 42, 0.1);
    border-radius: var(--dh-radius);
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.14);
    pointer-events: auto;
    max-height: calc(100dvh - 2rem);
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.dh-cookie-panel::before {
    content: "";
    position: absolute;
    inset: 0 auto auto 0;
    width: 100%;
    height: 1px;
    border-radius: 24px 24px 0 0;
    background: rgba(15, 23, 42, 0.08);
}

.dh-cookie-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(0, 430px);
    gap: 1.65rem;
    align-items: center;
}

.dh-cookie-copy {
    min-width: 0;
}

.dh-cookie-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.4rem 0.7rem;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.05);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(21, 32, 43, 0.72);
    margin-bottom: 0.75rem;
}

.dh-cookie-kicker__icon {
    display: inline-flex;
    width: 16px;
    height: 16px;
    color: var(--dh-cookie-button-bg, #0073ce);
}

.dh-cookie-kicker__icon svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.dh-cookie-title {
    font-size: 1.18rem;
    font-weight: 800;
    line-height: 1.2;
    color: var(--dh-cookie-text, var(--dh-ink));
    margin-bottom: 0.45rem;
}

.dh-cookie-text,
.dh-cookie-footnote {
    font-size: 0.93rem;
    line-height: 1.6;
    color: rgba(21, 32, 43, 0.8);
    overflow-wrap: anywhere;
}

.dh-cookie-caption {
    font-size: 0.85rem;
    line-height: 1.55;
    color: rgba(21, 32, 43, 0.68);
    margin-top: 0.5rem;
    overflow-wrap: anywhere;
}

.dh-cookie-footnote {
    margin-top: 0.55rem;
}

.dh-cookie-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem;
    min-width: 0;
}

.dh-cookie-links a {
    font-size: 0.87rem;
    font-weight: 700;
    color: var(--dh-cookie-text, var(--dh-ink));
    text-decoration: underline;
    text-underline-offset: 0.16em;
}

.dh-cookie-policy-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    text-decoration: underline !important;
    text-underline-offset: 0.18em;
    max-width: 100%;
    white-space: normal;
}

.dh-cookie-policy-link::before {
    content: none;
}

.dh-cookie-form {
    width: 100%;
    max-width: 430px;
    min-width: 0;
}

.dh-cookie-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: stretch;
    gap: 0.75rem;
    min-width: 0;
}

.dh-cookie-actions .btn,
.dh-cookie-customize-actions .btn {
    display: inline-flex;
    min-height: 46px;
    padding: 0.76rem 1.15rem !important;
    border-radius: 999px !important;
    font-size: 0.9rem;
    font-weight: 800 !important;
    max-width: 100%;
    white-space: normal !important;
    text-align: center;
    justify-content: center;
    align-items: center;
}

.dh-cookie-primary-btn {
    background: var(--dh-cookie-button-bg, #0073ce) !important;
    color: var(--dh-cookie-button-text, #ffffff) !important;
    border: 1px solid var(--dh-cookie-button-bg, #0073ce) !important;
    box-shadow: 0 14px 28px rgba(0, 115, 206, 0.2) !important;
}

.dh-cookie-primary-btn:hover,
.dh-cookie-primary-btn:focus {
    background: var(--dh-cookie-button-bg, #0073ce) !important;
    color: var(--dh-cookie-button-text, #ffffff) !important;
    border-color: var(--dh-cookie-button-bg, #0073ce) !important;
    opacity: 0.96;
    transform: translateY(-1px);
}

.dh-cookie-secondary-btn {
    background: rgba(243, 245, 248, 0.92) !important;
    color: #203040 !important;
    border: 1px solid rgba(21, 32, 43, 0.12) !important;
}

.dh-cookie-secondary-btn:hover,
.dh-cookie-secondary-btn:focus {
    background: #e9edf2 !important;
    color: #15202b !important;
    border-color: rgba(21, 32, 43, 0.18) !important;
}

.dh-cookie-customize {
    display: none;
    margin-top: 1.05rem;
    padding: 1.1rem 1.05rem 1rem;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 22px;
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 14px 28px rgba(15, 23, 42, 0.04);
}

.dh-cookie-customize.is-open {
    display: block;
}

.dh-cookie-customize-head {
    font-size: 0.98rem;
    font-weight: 800;
    color: var(--dh-cookie-text, var(--dh-ink));
    margin-bottom: 0.45rem;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.dh-cookie-customize-head::before {
    content: "";
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 999px;
    background: var(--dh-cookie-button-bg, #0073ce);
    box-shadow: 0 0 0 5px rgba(15, 23, 42, 0.06);
}

.dh-cookie-customize-copy {
    font-size: 0.86rem;
    line-height: 1.6;
    color: rgba(21, 32, 43, 0.68);
    margin-bottom: 0.9rem;
}

.dh-cookie-purpose-list {
    display: grid;
    gap: 0.75rem;
}

.dh-cookie-purpose {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.05rem;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.03);
}

.dh-cookie-purpose-copy {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 0;
}

.dh-cookie-purpose-title {
    font-size: 0.92rem;
    font-weight: 800;
    color: var(--dh-cookie-text, var(--dh-ink));
}

.dh-cookie-purpose-text {
    font-size: 0.84rem;
    line-height: 1.45;
    color: rgba(21, 32, 43, 0.76);
    overflow-wrap: anywhere;
}

.dh-cookie-purpose .form-check-input {
    width: 2.6rem;
    height: 1.45rem;
    margin-top: 0.1rem;
    border-color: rgba(21, 32, 43, 0.18);
    background-color: rgba(148, 163, 184, 0.16);
}

.dh-cookie-purpose .form-check-input:checked {
    background-color: var(--dh-cookie-button-bg, #0073ce);
    border-color: var(--dh-cookie-button-bg, #0073ce);
}

.dh-cookie-customize-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 0.9rem;
}

.dh-cookie-customize-links {
    margin-top: 0.95rem;
}

.dh-cookie-customize-links .dh-cookie-policy-link {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--dh-cookie-text, var(--dh-ink));
    font-size: 0.87rem;
    font-weight: 700;
    text-decoration: underline !important;
    text-underline-offset: 0.18em;
}

.dh-cookie-customize-actions .dh-cookie-primary-btn {
    background: var(--dh-cookie-button-bg, #0073ce) !important;
    border-color: var(--dh-cookie-button-bg, #0073ce) !important;
    color: var(--dh-cookie-button-text, #ffffff) !important;
    box-shadow: 0 16px 28px rgba(15, 23, 42, 0.12) !important;
}

.dh-cookie-panel.is-expanded .dh-cookie-layout {
    grid-template-columns: 1fr;
    gap: 1.1rem;
}

.dh-cookie-panel.is-expanded .dh-cookie-form {
    max-width: none;
}

.dh-cookie-panel.is-expanded .dh-cookie-actions {
    justify-content: flex-start;
}

@media (max-width: 1279px) {
    .dh-cookie-panel {
        padding: 1.15rem 1.2rem;
    }

    .dh-cookie-layout {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .dh-cookie-form {
        max-width: none;
    }

    .dh-cookie-actions {
        justify-content: flex-start;
    }
}

.dh-cookie-reopen {
    position: fixed;
    right: 1rem;
    left: auto;
    top: auto;
    bottom: calc(env(safe-area-inset-bottom, 0px) + 1rem);
    transform: none;
    z-index: 1070;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    padding: 0;
    border-radius: 999px;
    box-shadow: 0 18px 38px rgba(15, 23, 42, 0.24);
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.14);
}

.dh-cookie-reopen__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
}

.dh-cookie-reopen__icon svg {
    display: block;
    width: 22px;
    height: 22px;
    fill: currentColor;
}

.dh-cookie-reopen:hover,
.dh-cookie-reopen:focus {
    color: inherit;
    transform: translateY(-2px);
}

.dh-eps-sidebar-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.98) 100%);
}

.dh-eps-entity-list {
    display: grid;
    gap: 0.95rem;
}

.dh-eps-entity-card {
    display: grid;
    gap: 0.85rem;
    padding: 1rem 1.05rem;
    border-radius: 22px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.05);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.dh-eps-entity-card:hover,
.dh-eps-entity-card:focus {
    transform: translateY(-1px);
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.08);
    border-color: rgba(245, 178, 0, 0.35);
}

.dh-eps-entity-card.is-selected {
    border-color: rgba(245, 178, 0, 0.5);
    box-shadow: 0 18px 36px rgba(217, 163, 20, 0.14);
    background: linear-gradient(180deg, #fffdf6 0%, #fff7da 100%);
}

.dh-eps-entity-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.85rem;
}

.dh-eps-entity-copy {
    min-width: 0;
}

.dh-eps-entity-name {
    font-weight: 800;
    font-size: 1rem;
    color: var(--dh-ink);
}

.dh-eps-entity-code {
    margin-top: 0.2rem;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(21, 32, 43, 0.52);
}

.dh-eps-entity-summary {
    font-size: 0.88rem;
    line-height: 1.55;
    color: rgba(21, 32, 43, 0.7);
}

.dh-eps-entity-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.dh-eps-mini-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.6rem;
}

.dh-eps-mini-stat {
    display: grid;
    gap: 0.22rem;
    padding: 0.72rem 0.8rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(15, 23, 42, 0.06);
}

.dh-eps-mini-label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgba(21, 32, 43, 0.48);
}

.dh-eps-mini-stat strong {
    font-size: 0.92rem;
    color: var(--dh-ink);
}

.dh-eps-metric-card {
    position: relative;
    overflow: hidden;
    border-color: rgba(15, 23, 42, 0.08);
    background: linear-gradient(180deg, #ffffff 0%, #fbfcfe 100%);
}

.dh-eps-metric-card::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    background: linear-gradient(180deg, #f5b200 0%, #d89900 100%);
}

.dh-eps-convention-empty {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
    gap: 1rem;
    padding: 1.1rem;
    border-radius: 26px;
    border: 1px solid rgba(245, 178, 0, 0.2);
    background: linear-gradient(180deg, rgba(255, 250, 229, 0.85) 0%, rgba(255, 255, 255, 0.96) 100%);
}

.dh-eps-convention-empty-copy {
    min-width: 0;
}

.dh-eps-sample-card {
    display: grid;
    gap: 0.85rem;
    padding: 1rem 1.05rem;
    border-radius: 22px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: #fff;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.05);
}

.dh-eps-sample-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
}

.dh-eps-sample-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
}

.dh-eps-sample-grid div {
    display: grid;
    gap: 0.2rem;
    padding: 0.8rem 0.85rem;
    border-radius: 18px;
    background: rgba(248, 250, 252, 0.92);
    border: 1px solid rgba(15, 23, 42, 0.06);
}

.dh-eps-sample-grid span {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgba(21, 32, 43, 0.48);
}

.dh-eps-sample-grid strong {
    font-size: 1rem;
    color: var(--dh-ink);
}

.dh-eps-document-box {
    padding: 1rem;
    border-radius: 22px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: linear-gradient(180deg, rgba(248, 250, 252, 0.92) 0%, rgba(255, 255, 255, 0.98) 100%);
}

@media (max-width: 1199px) {
    .dh-shell > .row {
        display: block;
    }

    .dh-shell > .row > .dh-shell-main {
        width: 100%;
        max-width: 100%;
        flex: 0 0 100%;
    }

    .dh-sidebar-panel {
        position: static;
        height: auto;
        min-height: auto;
        max-height: none;
    }

    .dh-sidebar.offcanvas-xl {
        width: min(100vw, 338px);
        max-width: calc(100vw - 1rem);
        z-index: 1047;
        border-right: 0;
    }

    .dh-sidebar.offcanvas-xl .offcanvas-body {
        height: 100%;
        max-height: 100%;
        overflow-y: auto;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
        touch-action: pan-y;
    }

    .dh-sidebar.offcanvas-xl .dh-sidebar-panel {
        min-height: 100%;
        max-height: none;
        border-radius: 0 30px 30px 0;
        overflow-y: auto;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
        touch-action: pan-y;
    }
}

@media (max-width: 991px) {
    .dh-footer-grid,
    .dh-highlight-grid,
    .dh-showcase-grid {
        grid-template-columns: 1fr;
    }

    .dh-sidebar {
        min-height: auto;
    }

    .dh-topbar {
        position: static;
        padding: 1rem 1rem 1.15rem;
    }

    .dh-hero {
        padding-top: 2.75rem;
    }

    .dh-public-navbar .navbar-collapse {
        flex-basis: 100%;
        width: 100%;
        margin-top: 1rem;
        padding: 1rem;
        border-radius: 22px;
        background: rgba(255, 255, 255, 0.84);
        box-shadow: var(--dh-shadow-sm);
        border: 1px solid rgba(21, 32, 43, 0.07);
    }

    .dh-public-navbar .container {
        flex-wrap: wrap;
        align-items: center;
    }

    .dh-brand-lockup {
        flex: 1 1 calc(100% - 74px);
        max-width: calc(100% - 74px);
    }

    .dh-public-toggler {
        min-width: 50px;
        min-height: 50px;
        border: 1px solid rgba(21, 32, 43, 0.08) !important;
        background: rgba(255, 255, 255, 0.9);
        box-shadow: 0 12px 24px rgba(15, 23, 42, 0.06);
    }

    .dh-public-nav-list {
        width: 100%;
        align-items: stretch !important;
        gap: 0.5rem;
    }

    .dh-public-nav-list .nav-item {
        width: 100%;
    }

    .dh-public-navbar .nav-link {
        padding-left: 0.85rem;
        padding-right: 0.85rem;
        width: 100%;
    }

    .dh-public-hero-image {
        height: 280px;
    }

    .dh-contact-line {
        align-items: flex-start;
        flex-direction: column;
    }

    .dh-cookie-banner {
        inset: 0;
        align-items: flex-end;
        padding: 0.75rem 0.75rem calc(max(env(safe-area-inset-bottom), 0px) + 0.95rem);
    }

    .dh-cookie-reopen {
        right: 0.75rem;
        left: auto;
        bottom: calc(env(safe-area-inset-bottom, 0px) + 4.75rem);
        transform: none;
    }

    .dh-cookie-reopen:hover,
    .dh-cookie-reopen:focus {
        transform: translateY(-1px);
    }

    .dh-sidebar.offcanvas-xl {
        width: min(100vw, 338px);
        max-width: calc(100vw - 0.75rem);
    }

    .dh-eps-convention-empty {
        grid-template-columns: 1fr;
    }

    .dh-multi-picker {
        padding: 0.95rem;
    }

    .dh-multi-picker-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .dh-multi-picker-toolbar .btn {
        width: 100%;
    }

    .dh-multi-picker-options {
        grid-template-columns: 1fr;
    }

    .dh-multi-picker-option {
        align-items: flex-start;
        flex-direction: column;
    }

    .dh-multi-picker-option__state {
        min-width: 0;
    }
}

@media (max-width: 767px) {
    .dh-page-section-nav {
        position: relative;
        isolation: isolate;
        display: flex;
        flex-wrap: nowrap;
        gap: 0.7rem;
        margin-inline: 0;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        padding: 0.14rem 0.25rem 0.45rem;
        border-radius: 0;
        background: transparent;
        border: 0;
        box-shadow: none;
        overflow-x: auto;
        overflow-y: hidden;
        overscroll-behavior-x: contain;
        -webkit-overflow-scrolling: touch;
        touch-action: pan-x;
        scroll-snap-type: x proximity;
        scroll-padding-inline: 0.25rem;
        scrollbar-width: none;
    }

    .dh-page-section-nav::before {
        display: none;
    }

    .dh-page-section-nav > * {
        position: relative;
        z-index: 1;
    }

    .dh-page-section-nav::-webkit-scrollbar {
        display: none;
    }

    .dh-page-section-card {
        min-width: clamp(164px, 56vw, 190px);
        max-width: clamp(164px, 56vw, 190px);
        flex: 0 0 clamp(164px, 56vw, 190px);
        width: clamp(164px, 56vw, 190px);
        padding: 0.84rem 0.92rem;
        border-radius: 22px;
        background: rgba(255, 255, 255, 0.9);
        border-color: rgba(21, 32, 43, 0.06);
        box-shadow: 0 8px 18px rgba(15, 23, 42, 0.05);
        scroll-snap-align: start;
    }

    .dh-page-section-card strong {
        font-size: 0.92rem;
        line-height: 1.25;
        white-space: normal;
    }

    .dh-page-section-card span {
        display: block;
        margin-top: 0.15rem;
        font-size: 0.74rem;
        line-height: 1.35;
        white-space: normal;
    }

    .dh-page-section-card.is-current {
        box-shadow: 0 12px 24px rgba(241, 188, 22, 0.14);
    }

    .dh-meeting-url-group,
    .dh-coupon-group {
        flex-wrap: wrap;
        gap: 0.45rem;
    }

    .dh-meeting-url-group .form-control,
    .dh-coupon-group .form-control {
        flex: 1 1 100%;
        width: 100%;
        border-radius: 0.9rem !important;
    }

    .dh-meeting-url-group .btn,
    .dh-coupon-group .btn {
        flex: 1 1 auto;
        border-radius: 0.9rem !important;
    }

    [data-section-tab-scope] {
        gap: 1.1rem;
        overflow-x: clip;
    }

    [data-section-tab-row] {
        margin-left: 0;
        margin-right: 0;
    }

    [data-section-tab-column] {
        padding-left: 0;
        padding-right: 0;
    }

    .dh-planner-preset-grid {
        grid-template-columns: 1fr;
    }

    .dh-section-search {
        align-items: stretch;
    }

    .dh-section-search-field {
        flex-basis: 100%;
    }

    .dh-section-search-meta {
        flex-direction: column;
        gap: 0.35rem;
    }

    .dh-planner-preset-actions {
        align-items: flex-start;
    }

    .dh-section-title {
        font-size: 2.2rem;
    }

    .dh-card,
    .dh-showcase,
    .dh-auth-card,
    .dh-cta-card {
        border-radius: var(--dh-radius);
    }

    .dh-auth-side,
    .dh-auth-form {
        padding: 1.5rem;
    }

    .dh-center-logo {
        width: 44px;
        height: 44px;
        border-radius: 14px;
    }

    .dh-center-wordmark {
        font-size: 1.1rem;
    }

    .dh-wordmark {
        font-size: 1.58rem;
    }

    .dh-brand-subtitle {
        font-size: 0.76rem;
        max-width: 11.5rem;
        line-height: 1.4;
    }

    .dh-public-navbar {
        padding: 0.9rem 0;
    }

    .dh-public-navbar .container {
        gap: 0.75rem;
        align-items: center;
    }

    .dh-public-toggler {
        margin-top: 0;
        align-self: center;
    }

    .dh-topbar-title {
        font-size: 1.18rem;
    }

    .dh-topbar-subtitle {
        font-size: 0.9rem;
        line-height: 1.5;
    }

    .dh-sidebar-toggle {
        min-width: auto;
    }

    .dh-user-chip {
        flex: 1 1 100%;
        width: 100%;
        text-align: left !important;
    }

    .dh-action-cluster > * {
        flex: 1 1 calc(50% - 0.75rem);
    }

    .dh-action-cluster > *:first-child {
        flex-basis: 100%;
    }

    .dh-tenant-public-hero {
        padding-top: 2.8rem;
    }

    .dh-public-showcase-card {
        padding: 1rem;
    }

    .dh-public-hero-image {
        height: 220px;
    }

    .dh-cookie-panel {
        width: 100%;
        max-height: calc(100dvh - 1.5rem);
        overflow-y: auto;
        padding: 1rem;
        border-radius: 22px;
        max-width: 100%;
    }

    .dh-cookie-layout {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .dh-cookie-actions {
        justify-content: stretch;
    }

    .dh-cookie-actions .btn,
    .dh-cookie-customize-actions .btn {
        width: 100%;
    }

    .dh-cookie-purpose {
        flex-direction: column;
    }

    .dh-cookie-purpose .form-check {
        align-self: flex-end;
    }

    .dh-eps-mini-stats {
        grid-template-columns: 1fr;
    }

    .dh-eps-convention-empty,
    .dh-eps-sample-grid {
        grid-template-columns: 1fr;
    }

    .dh-sidebar.offcanvas-xl .offcanvas-body {
        overflow-y: auto;
    }

    .dh-sidebar.offcanvas-xl .dh-sidebar-panel {
        min-height: 100%;
    }

    .dh-slot-grid {
        grid-template-columns: 1fr;
    }

    .dh-booking-summary-grid {
        grid-template-columns: 1fr;
    }

    .dh-booking-calendar {
        gap: 0.25rem;
    }

    .dh-service-picker__search .form-control {
        min-height: 3.15rem;
        padding-right: 1rem;
    }

    .dh-service-picker__meta {
        position: static;
        transform: none;
        display: block;
        margin: 0.1rem 0 0.6rem;
        padding: 0 0.7rem;
        border-left: 0;
    }

    .dh-month-day {
        min-height: 58px;
        border-radius: 16px;
        padding: 0.4rem 0.15rem;
        gap: 0;
    }

    .dh-month-day-number {
        font-size: 0.95rem;
    }

    .dh-month-day-note {
        display: none;
    }

    .dh-table-actions--end {
        justify-content: flex-start;
    }

    .dh-booking-engine-head {
        flex-direction: column;
    }

    .dh-membership-card-grid {
        grid-template-columns: 1fr;
    }

    .dh-copy-field {
        flex-direction: column;
    }

    .dh-course-meta-grid {
        grid-template-columns: 1fr;
    }

    .dh-course-disclosure-summary {
        flex-wrap: wrap;
    }

    .fc .fc-toolbar.fc-header-toolbar {
        align-items: stretch;
    }

    .fc .fc-toolbar {
        flex-direction: column;
    }

    .fc .fc-toolbar-chunk {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.45rem;
    }

    .fc .fc-timegrid-event .fc-event-time,
    .fc .fc-timegrid-event .fc-event-title,
    .fc .fc-daygrid-event .fc-event-title {
        font-size: 0.88rem;
    }
}

@media (max-width: 575px) {
    .dh-brand-subtitle {
        max-width: 10rem;
    }

    .dh-cookie-reopen {
        width: 50px;
        height: 50px;
        bottom: calc(env(safe-area-inset-bottom, 0px) + 5rem);
    }

    .dh-booking-calendar-weekdays {
        gap: 0.2rem;
        font-size: 0.68rem;
    }

    .dh-planner-presets {
        flex-direction: column;
    }

    .dh-month-day {
        min-height: 54px;
        border-radius: 14px;
    }
}

.dh-journey-step {
    padding: 1rem 1.1rem;
    border: 1px solid rgba(15, 23, 42, 0.1);
    border-radius: 1rem;
    background: #fff;
}

.dh-journey-step.is-complete {
    border-color: rgba(25, 135, 84, 0.22);
    background: rgba(25, 135, 84, 0.06);
}

/* ============================
   Form validation feedback
   ============================ */

.form-control.is-invalid,
.form-select.is-invalid {
    border-color: var(--dh-danger);
    box-shadow: 0 0 0 0.2rem rgba(188, 68, 49, 0.12);
}

.form-control.is-invalid:focus,
.form-select.is-invalid:focus {
    border-color: var(--dh-danger);
    box-shadow: 0 0 0 0.25rem rgba(188, 68, 49, 0.2);
}

.invalid-feedback {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--dh-danger);
    margin-top: 0.35rem;
    padding-left: 0.25rem;
}

.form-label .dh-required {
    color: var(--dh-danger);
    font-weight: 700;
    margin-left: 0.15rem;
}

.form-control.is-valid,
.form-select.is-valid {
    border-color: var(--dh-success);
    box-shadow: 0 0 0 0.2rem rgba(31, 122, 84, 0.1);
}

/* ============================
   Loading button state
   ============================ */

.btn.is-loading,
.btn[disabled].is-loading {
    pointer-events: none;
    opacity: 0.72;
    position: relative;
}

.btn.is-loading .btn-label {
    visibility: hidden;
}

.btn.is-loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 1.15em;
    height: 1.15em;
    margin: -0.575em 0 0 -0.575em;
    border: 2.5px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: dh-spin 0.6s linear infinite;
}

@keyframes dh-spin {
    to { transform: rotate(360deg); }
}

/* ============================
   Branded alerts (flash)
   ============================ */

.dh-alert {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    border-radius: var(--dh-radius-sm);
    border: 1px solid;
    font-size: 0.92rem;
    line-height: 1.5;
}

.dh-alert-icon {
    flex-shrink: 0;
    width: 1.35rem;
    height: 1.35rem;
    margin-top: 0.1rem;
}

.dh-alert-body {
    flex: 1;
    min-width: 0;
}

.dh-alert-title {
    font-weight: 700;
    font-size: 0.88rem;
    margin-bottom: 0.15rem;
}

.dh-alert-text {
    font-weight: 500;
}

.dh-alert.success {
    background: rgba(31, 122, 84, 0.06);
    border-color: rgba(31, 122, 84, 0.18);
    color: var(--dh-success);
}

.dh-alert.danger {
    background: rgba(188, 68, 49, 0.06);
    border-color: rgba(188, 68, 49, 0.18);
    color: var(--dh-danger);
}

.dh-alert.warning {
    background: rgba(153, 102, 7, 0.06);
    border-color: rgba(153, 102, 7, 0.18);
    color: var(--dh-warning);
}

/* ============================
   Empty states — enhanced
   ============================ */

.dh-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2.5rem 1.5rem;
    border: 1px dashed rgba(21, 32, 43, 0.14);
    border-radius: var(--dh-radius);
    background: rgba(255, 255, 255, 0.6);
}

.dh-empty-state-icon {
    width: 3rem;
    height: 3rem;
    margin-bottom: 0.75rem;
    opacity: 0.35;
}

.dh-empty-state-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--dh-ink);
    margin-bottom: 0.25rem;
}

.dh-empty-state-text {
    font-size: 0.88rem;
    color: var(--dh-ink-soft);
    max-width: 360px;
    margin-bottom: 1rem;
}

/* ============================
   Table striping and polish
   ============================ */

.dh-table tbody tr:nth-child(even) {
    background: rgba(246, 248, 251, 0.5);
}

.dh-table tbody tr:hover {
    background: rgba(241, 188, 22, 0.06);
}

.dh-table thead th {
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--dh-ink-soft);
    padding-top: 0.9rem;
    padding-bottom: 0.9rem;
}

.dh-table tbody td {
    padding-top: 0.85rem;
    padding-bottom: 0.85rem;
    vertical-align: middle;
}

/* ============================
   Subtle entrance animation
   ============================ */

@keyframes dh-fade-up {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        /* no transform: the browser interpolates to translateY(0) = none;
           omitting it prevents fill-mode:both from leaving a persistent
           transform on the element, which would otherwise create a
           stacking context that traps the dropdown z-index */
    }
}

.dh-card,
.dh-highlight-card,
.dh-list-card {
    animation: dh-fade-up 0.35s ease both;
}

.dh-list-card:nth-child(2) { animation-delay: 0.04s; }
.dh-list-card:nth-child(3) { animation-delay: 0.08s; }
.dh-list-card:nth-child(4) { animation-delay: 0.12s; }
.dh-list-card:nth-child(5) { animation-delay: 0.16s; }

@media (prefers-reduced-motion: reduce) {
    .dh-card,
    .dh-highlight-card,
    .dh-list-card {
        animation: none;
    }
}


/* ============================
   Compact form controls in app shell
   ============================ */

.dh-app-body .form-control,
.dh-app-body .form-select {
    min-height: 46px;
}

.dh-app-body .form-control.form-control-sm,
.dh-app-body .form-select.form-select-sm {
    min-height: 38px;
}

/* ── HTML Mail Editor (CodeMirror) ─────────────────────────── */
.dh-html-editor-wrap {
    position: relative;
}

.dh-html-editor-toggle {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    z-index: 10;
    font-size: 0.75rem;
}

.CodeMirror {
    height: auto;
    min-height: 120px;
    border-radius: 0.5rem;
    border: 1px solid var(--dh-border);
    font-size: 0.82rem;
}

.CodeMirror-scroll {
    min-height: 120px;
}

/* ============================================================
   MAJOR UI/UX UPDATE
   ============================================================ */

/* ── 1. Body background — più raffinato, gradiente attenuato ── */
.dh-app-body {
    background:
        radial-gradient(ellipse at top left, rgba(241, 188, 22, 0.09), transparent 26%),
        linear-gradient(180deg, #edf1f7 0%, #f5f7fa 100%);
}

/* ── 2. Sidebar section labels — gerarchia visiva più forte ── */
.dh-sidebar-section {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin: 1.5rem 0.5rem 0.3rem;
    padding: 0;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.26);
    user-select: none;
    pointer-events: none;
    white-space: nowrap;
}

.dh-sidebar-section::after {
    content: "";
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.07);
    min-width: 12px;
}

/* ── 3. Sidebar nav-link — accento bordo sinistro sull'attivo ── */
.dh-sidebar .nav-link {
    position: relative;
    overflow: hidden;
}

.dh-sidebar .nav-link.active {
    background: linear-gradient(90deg, rgba(241, 188, 22, 0.20) 0%, rgba(241, 188, 22, 0.05) 100%);
    color: #ffffff;
    transform: translateX(2px);
}

/* Invoice pending badge in sidebar nav */
.dh-nav-invoice-badge {
    margin-left: auto;
    background: var(--dh-primary);
    color: var(--dh-ink);
    font-size: 0.7rem;
    font-weight: 800;
    line-height: 1;
    padding: 0.22em 0.52em;
    border-radius: 999px;
    min-width: 1.4em;
    text-align: center;
    flex-shrink: 0;
}

.dh-sidebar-link-with-badge {
    justify-content: space-between;
}

.dh-sidebar-link-with-badge > span:first-child {
    min-width: 0;
}

.dh-sidebar-count {
    margin-left: auto;
    min-width: 1.55rem;
    height: 1.55rem;
    padding: 0 0.45rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--dh-primary);
    color: var(--dh-ink);
    font-size: 0.72rem;
    font-weight: 900;
    line-height: 1;
    box-shadow: 0 8px 18px rgba(241, 188, 22, 0.24);
    flex-shrink: 0;
}

.dh-sidebar .nav-link.active::before {
    content: "";
    position: absolute;
    left: 0;
    top: 18%;
    bottom: 18%;
    width: 3px;
    border-radius: 0 3px 3px 0;
    background: var(--dh-primary);
    box-shadow: 0 0 8px rgba(241, 188, 22, 0.6);
}

/* ── 4. Sidebar footer — visibile su tutti gli schermi ── */
.dh-sidebar-footer {
    margin-top: auto;
    padding: 1rem 0.75rem 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: grid;
    gap: 0.62rem;
}

.dh-sidebar-footer .dh-sidebar-user-block {
    margin-bottom: 0;
}

.dh-sidebar-user-block {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    margin-bottom: 0.65rem;
    padding: 0.72rem 0.75rem;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.07);
    min-width: 0;
}

.dh-sidebar-user-avatar {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--dh-primary) 0%, var(--dh-primary-dark) 100%);
    color: var(--dh-ink);
    font-size: 0.75rem;
    font-weight: 900;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    letter-spacing: -0.01em;
}

.dh-sidebar-user-info {
    flex: 1;
    min-width: 0;
}

/* override precedente rule float */
.dh-sidebar-footer .dh-sidebar-user-name,
.dh-sidebar-user-name {
    font-size: 0.84rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.92);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 0;
}

.dh-sidebar-footer .dh-sidebar-user-email,
.dh-sidebar-user-email {
    font-size: 0.73rem;
    color: rgba(255, 255, 255, 0.38);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 0;
}

/* ── 5. Topbar avatar — dropdown compatto ── */
.dh-topbar-avatar-wrap {
    position: relative;
}

.dh-topbar-avatar {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--dh-primary) 0%, var(--dh-primary-dark) 100%);
    color: var(--dh-ink);
    font-size: 0.76rem;
    font-weight: 900;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    letter-spacing: -0.01em;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.dh-topbar-avatar:hover,
.dh-topbar-avatar:focus {
    transform: scale(1.07);
    box-shadow: 0 8px 18px rgba(241, 188, 22, 0.32);
    outline: none;
}

/* Nascondi caret Bootstrap */
.dh-topbar-avatar.dropdown-toggle::after {
    display: none;
}

.dh-topbar-avatar-wrap .dropdown-menu {
    right: 0;
    left: auto;
    min-width: 210px;
    border-radius: 18px;
    border: 1px solid rgba(21, 32, 43, 0.09);
    box-shadow: 0 24px 50px rgba(15, 23, 42, 0.14);
    padding: 0.45rem;
    margin-top: 0.5rem;
    background: rgba(255, 255, 255, 0.99);
}

.dh-topbar-user-meta {
    padding: 0.55rem 0.85rem 0.7rem;
    border-bottom: 1px solid rgba(21, 32, 43, 0.07);
    margin-bottom: 0.35rem;
}

.dh-topbar-user-meta strong {
    display: block;
    font-size: 0.88rem;
    font-weight: 800;
    color: var(--dh-ink);
    line-height: 1.3;
}

.dh-topbar-user-meta span {
    display: block;
    font-size: 0.76rem;
    color: var(--dh-ink-soft);
    margin-top: 0.1rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 190px;
}

.dh-topbar-avatar-wrap .dropdown-item {
    border-radius: 11px;
    padding: 0.58rem 0.85rem;
    font-size: 0.86rem;
    font-weight: 700;
    color: var(--dh-ink);
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    cursor: pointer;
    display: block;
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease;
}

.dh-topbar-avatar-wrap .dropdown-item:hover,
.dh-topbar-avatar-wrap .dropdown-item:focus {
    background: rgba(241, 188, 22, 0.09);
    color: var(--dh-ink);
}

.dh-topbar-avatar-wrap .dropdown-item.text-danger {
    color: var(--dh-danger);
}

.dh-topbar-avatar-wrap .dropdown-item.text-danger:hover,
.dh-topbar-avatar-wrap .dropdown-item.text-danger:focus {
    background: rgba(188, 68, 49, 0.07);
    color: var(--dh-danger);
}

/* ── 6. Flash alerts — animazione entrata + icona ── */
@keyframes dh-alert-slide-in {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dh-alert {
    animation: dh-alert-slide-in 0.26s ease both;
    margin-bottom: 1rem;
}

@media (prefers-reduced-motion: reduce) {
    .dh-alert { animation: none; }
}

/* ── 7. In-app notification — design coerente con il sistema ── */
.dh-notification-alert {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    padding: 1rem 1.25rem;
    border-radius: var(--dh-radius-sm);
    border: 1px solid rgba(59, 130, 246, 0.16);
    background: linear-gradient(135deg, rgba(239, 246, 255, 0.9), rgba(255, 255, 255, 0.95));
    margin-bottom: 1rem;
    animation: dh-alert-slide-in 0.26s ease both;
}

@media (min-width: 992px) {
    .dh-notification-alert {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

.dh-notification-alert-copy { min-width: 0; }

.dh-notification-alert-title {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--dh-ink);
    margin-bottom: 0.2rem;
}

.dh-notification-alert-body {
    font-size: 0.83rem;
    color: var(--dh-ink-soft);
    line-height: 1.5;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.dh-notification-alert-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    flex-shrink: 0;
}

.dh-notification-tools {
    display: flex;
    justify-content: flex-end;
    margin: -0.35rem 0 1rem;
}

.dh-notification-tools a {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.42rem 0.8rem;
    border: 1px solid var(--dh-border);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.86);
    color: var(--dh-ink);
    font-weight: 700;
    font-size: 0.84rem;
    text-decoration: none;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.dh-notification-tools a:hover {
    border-color: var(--dh-primary-dark);
    background: var(--dh-primary-soft);
}

.dh-notification-inbox {
    display: grid;
    gap: 0.85rem;
}

.dh-notification-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.dh-notification-filterbar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.dh-notification-search {
    flex: 1 1 260px;
    max-width: 420px;
    margin: 0;
}

.dh-notification-search span {
    display: block;
    margin-bottom: 0.35rem;
    font-size: 0.78rem;
    font-weight: 800;
    color: var(--dh-ink-soft);
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.dh-notification-search .form-control {
    border-radius: 999px;
    min-height: 42px;
}

.dh-notification-filter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-height: 40px;
    padding: 0.48rem 0.85rem;
    border: 1px solid var(--dh-border);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--dh-ink);
    font-weight: 800;
    line-height: 1.1;
    transition: border-color var(--dh-transition), background var(--dh-transition), box-shadow var(--dh-transition), transform var(--dh-transition);
}

.dh-notification-filter:hover,
.dh-notification-filter:focus {
    border-color: rgba(21, 32, 43, 0.28);
    box-shadow: var(--dh-shadow-xs);
    transform: translateY(-1px);
}

.dh-notification-filter.is-active {
    border-color: rgba(241, 188, 22, 0.72);
    background: linear-gradient(180deg, rgba(255, 249, 226, 0.98), rgba(255, 255, 255, 0.96));
    box-shadow: 0 12px 24px rgba(241, 188, 22, 0.13);
}

.dh-notification-filter span {
    min-width: 1.55rem;
    padding: 0.16rem 0.42rem;
    border-radius: 999px;
    background: rgba(21, 32, 43, 0.08);
    color: var(--dh-ink-soft);
    font-size: 0.78rem;
    font-weight: 900;
}

.dh-notification-filter.is-active span {
    background: var(--dh-primary);
    color: var(--dh-ink);
}

.dh-notification-inbox-item {
    display: grid;
    grid-template-columns: 0.55rem minmax(0, 1fr);
    gap: 1rem;
    padding: 1rem;
    border: 1px solid var(--dh-border);
    border-radius: var(--dh-radius-sm);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(248, 250, 252, 0.9));
}

.dh-notification-inbox-item.is-unread {
    border-color: rgba(246, 190, 0, 0.42);
    background: linear-gradient(135deg, rgba(255, 248, 221, 0.9), rgba(255, 255, 255, 0.94));
    box-shadow: 0 18px 36px rgba(246, 190, 0, 0.1);
}

.dh-notification-inbox-marker {
    width: 0.55rem;
    border-radius: 999px;
    background: var(--dh-border-strong);
}

.dh-notification-inbox-item.is-unread .dh-notification-inbox-marker {
    background: var(--dh-primary-dark);
}

.dh-notification-inbox-title {
    font-weight: 800;
    color: var(--dh-ink);
}

.dh-notification-inbox-date {
    margin-top: 0.15rem;
    color: var(--dh-ink-soft);
    font-size: 0.86rem;
}

.dh-notification-inbox-body {
    margin-top: 0.75rem;
    color: var(--dh-ink-soft);
    line-height: 1.55;
}

@media (max-width: 575px) {
    .dh-notification-tools {
        justify-content: flex-start;
    }

    .dh-notification-filterbar {
        display: grid;
        grid-template-columns: 1fr;
    }

    .dh-notification-toolbar {
        display: grid;
        grid-template-columns: 1fr;
    }

    .dh-notification-search {
        max-width: none;
    }

    .dh-notification-filter {
        width: 100%;
        justify-content: space-between;
    }

    .dh-notification-inbox-item {
        grid-template-columns: 0.35rem minmax(0, 1fr);
        gap: 0.75rem;
        padding: 0.85rem;
    }

    .dh-notification-inbox-marker {
        width: 0.35rem;
    }
}

/* ── 8. Standard page header ── */
.dh-page-header {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    margin-bottom: 2rem;
}

@media (min-width: 640px) {
    .dh-page-header {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
        gap: 1.25rem;
    }
}

.dh-page-header-copy { min-width: 0; }

.dh-page-header-title {
    font-size: clamp(1.4rem, 2.5vw, 1.85rem);
    font-weight: 900;
    letter-spacing: -0.04em;
    line-height: 1.1;
    margin: 0 0 0.3rem;
    color: var(--dh-ink);
}

.dh-page-header-sub {
    font-size: 0.9rem;
    color: var(--dh-ink-soft);
    line-height: 1.55;
    margin: 0;
}

.dh-page-header-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    align-items: flex-start;
    flex-shrink: 0;
}

/* ── 9. Section label (usato in shop e altre pagine) ── */
.dh-cal-section-label {
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--dh-ink-soft);
}

/* ── 10. Icon action buttons — sostituiscono i pulsanti emoji ── */
.dh-btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border-radius: 10px;
    border: 1px solid rgba(21, 32, 43, 0.12);
    background: rgba(255, 255, 255, 0.84);
    color: var(--dh-ink-soft);
    cursor: pointer;
    transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease;
    flex-shrink: 0;
    text-decoration: none;
}

.dh-btn-icon:hover,
.dh-btn-icon:focus {
    background: #ffffff;
    border-color: rgba(21, 32, 43, 0.22);
    color: var(--dh-ink);
    outline: none;
}

.dh-btn-icon.is-danger:hover,
.dh-btn-icon.is-danger:focus {
    background: rgba(188, 68, 49, 0.07);
    border-color: rgba(188, 68, 49, 0.22);
    color: var(--dh-danger);
}

.dh-btn-icon svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* ── 11. Tabelle — hover più percettibile ── */
.dh-table tbody tr:hover td,
.dh-table tbody tr:hover {
    background: rgba(241, 188, 22, 0.07) !important;
}

/* ── 12. Impersonation banner — con stile dh-alert ── */
.dh-impersonation-banner {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    padding: 1rem 1.25rem;
    border-radius: var(--dh-radius-sm);
    border: 1px solid rgba(153, 102, 7, 0.2);
    background: linear-gradient(135deg, rgba(255, 249, 232, 0.9), rgba(255, 255, 255, 0.96));
    margin-bottom: 1rem;
}

@media (min-width: 992px) {
    .dh-impersonation-banner {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

.dh-impersonation-banner-copy { min-width: 0; }

.dh-impersonation-banner-title {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--dh-warning);
    margin-bottom: 0.15rem;
}

.dh-impersonation-banner-text {
    font-size: 0.82rem;
    color: var(--dh-ink-soft);
}

/* ── 13. Scroll sidebar — scrollbar sottile ── */
.dh-sidebar-panel {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.12) transparent;
}

.dh-sidebar-panel::-webkit-scrollbar {
    width: 4px;
}

.dh-sidebar-panel::-webkit-scrollbar-track {
    background: transparent;
}

.dh-sidebar-panel::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.12);
    border-radius: 999px;
}

/* ── 14. Topbar — altezza più contenuta su desktop ── */
@media (min-width: 1200px) {
    .dh-topbar {
        padding: 0.7rem 1.5rem;
    }
}

/* ── 15. Content area — max-width per leggibilità su schermi grandi ── */
@media (min-width: 1600px) {
    .dh-shell-content {
        max-width: 1400px;
    }
}


/* ============================================================
   SIDEBAR FIX — scroll naturale con la pagina + niente tagli
   ============================================================ */
@media (min-width: 1200px) {
    .dh-sidebar.offcanvas-xl {
        overflow: visible !important;
    }

    .dh-sidebar.offcanvas-xl .offcanvas-body {
        overflow: visible !important;
        max-height: none !important;
        height: auto !important;
        overscroll-behavior: auto !important;
        -webkit-overflow-scrolling: auto !important;
        touch-action: auto !important;
    }

    .dh-sidebar-panel {
        position: relative !important;
        top: 0 !important;
        height: auto !important;
        max-height: none !important;
        min-height: calc(100vh - 2rem) !important;
        overflow: visible !important;
        overflow-x: visible !important;
        overflow-y: visible !important;
        width: 100%;
        max-width: 100%;
    }
}

.dh-sidebar,
.dh-sidebar .offcanvas-body,
.dh-sidebar-panel,
.dh-sidebar-header,
.dh-sidebar-header > .d-flex,
.dh-sidebar-header > .d-flex > :first-child,
.dh-sidebar .nav,
.dh-sidebar .nav-link,
.dh-sidebar-footer,
.dh-sidebar-user-block,
.dh-sidebar-user-info {
    min-width: 0;
}

.dh-sidebar-header .dh-wordmark {
    display: inline-flex;
    max-width: 100%;
    white-space: nowrap;
    font-size: clamp(1.46rem, 1.18rem + 0.35vw, 1.72rem);
    letter-spacing: -0.06em;
}

.dh-sidebar .nav-link {
    overflow: visible !important;
    white-space: normal;
    word-break: normal;
    overflow-wrap: normal;
    line-height: 1.35;
    align-items: flex-start;
}

/* ============================================================
   FINAL UX/UI POLISH PASS — APRILE 2026
   ============================================================ */

.dh-shell-content {
    width: 100%;
}

.dh-topbar-title {
    font-weight: 800;
    letter-spacing: -0.02em;
}

.form-label {
    margin-bottom: 0.38rem;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--dh-ink);
    letter-spacing: -0.01em;
}

.form-text {
    margin-top: 0.32rem;
    font-size: 0.8rem;
    line-height: 1.45;
}

.form-check {
    margin-bottom: 0.15rem;
}

.form-check-label {
    line-height: 1.42;
}

textarea.form-control {
    min-height: 108px;
    resize: vertical;
}

.dh-card,
.dh-list-card {
    border-color: rgba(21, 32, 43, 0.08);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.06);
    transition: box-shadow 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.dh-list-card:hover {
    border-color: rgba(241, 188, 22, 0.22);
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.08);
    transform: translateY(-1px);
}

.dh-card:focus-within,
.dh-list-card:focus-within {
    border-color: rgba(241, 188, 22, 0.28);
    box-shadow: 0 0 0 0.22rem rgba(241, 188, 22, 0.12);
}

.btn,
.btn-sm {
    letter-spacing: -0.01em;
}

.btn-outline-dark {
    border-width: 1px;
}

.btn-outline-dark:hover,
.btn-outline-dark:focus {
    box-shadow: 0 10px 20px rgba(21, 32, 43, 0.14);
}

.dh-primary-btn {
    box-shadow: 0 10px 20px rgba(241, 188, 22, 0.22);
}

.dh-primary-btn:hover,
.dh-primary-btn:focus {
    box-shadow: 0 12px 24px rgba(201, 149, 0, 0.24);
}

.dh-mobile-menu-btn {
    min-height: 40px;
    min-width: 84px;
    font-weight: 700;
}

.dh-sidebar [data-sidebar-close] {
    min-height: 34px;
    min-width: 72px;
    font-weight: 700;
}

.dh-admin-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    border-bottom: 0;
    border-radius: 18px;
    padding: 0.3rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(249, 252, 255, 0.9));
    border: 1px solid rgba(21, 32, 43, 0.08);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

.dh-admin-tabs::-webkit-scrollbar {
    display: none;
}

.dh-admin-tabs .nav-link,
.dh-admin-tabs a.nav-link {
    display: inline-flex;
    align-items: center;
    gap: 0.42rem;
    border-radius: 12px;
    border: 1px solid transparent;
    margin-bottom: 0;
    min-height: 38px;
    padding: 0.45rem 0.78rem;
    color: var(--dh-ink-soft);
}

.dh-admin-tabs .nav-link:hover,
.dh-admin-tabs a.nav-link:hover {
    background: rgba(21, 32, 43, 0.04);
    color: var(--dh-ink);
}

.dh-admin-tabs .nav-link.active,
.dh-admin-tabs .nav-link.is-current {
    color: var(--dh-ink);
    border-color: rgba(241, 188, 22, 0.34);
    background: linear-gradient(180deg, rgba(255, 249, 230, 0.94), rgba(255, 255, 255, 0.98));
    box-shadow: 0 8px 18px rgba(241, 188, 22, 0.14);
}

.dh-admin-tabs .dh-badge {
    margin: 0;
}

.dh-page-section-nav {
    gap: 0.72rem;
    border-color: rgba(21, 32, 43, 0.08);
}

.dh-page-section-nav[data-section-tabs="true"] {
    overflow-x: auto;
    scrollbar-width: none;
    align-items: stretch;
}

.dh-page-section-nav[data-section-tabs="true"]::-webkit-scrollbar {
    display: none;
}

.dh-page-section-card {
    border-color: rgba(21, 32, 43, 0.09);
}

.dh-page-section-nav[data-section-tabs="true"] .dh-page-section-card {
    min-height: 94px;
    justify-content: space-between;
}

.dh-page-section-card.is-current {
    border-color: rgba(241, 188, 22, 0.34);
    box-shadow: 0 14px 30px rgba(241, 188, 22, 0.14);
}

.dh-page-section-card.is-current::after {
    opacity: 1;
    transform: scaleX(0.88);
}

.dh-tab-badge {
    font-size: 0.66rem;
    line-height: 1.1;
    padding: 0.16rem 0.44rem;
}

.dh-badge-cluster {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem;
}

.dh-badge-cluster .dh-badge,
.dh-badge-cluster .badge {
    margin: 0 !important;
}

.dh-service-picker__search {
    gap: 0.7rem;
}

.dh-service-picker__meta {
    padding-left: 0.35rem;
    letter-spacing: 0.01em;
}

.dh-table td .dh-badge,
.dh-table th .dh-badge {
    display: inline-flex;
    max-width: 100%;
}

.dh-package-purchases-table {
    min-width: 1240px;
}

.dh-package-purchases-table th,
.dh-package-purchases-table td {
    vertical-align: top;
    padding-top: 0.95rem;
    padding-bottom: 0.95rem;
}

.dh-package-purchases-table th:first-child,
.dh-package-purchases-table td:first-child {
    width: 52px;
    min-width: 52px;
}

.dh-package-purchases-table th:nth-child(2),
.dh-package-purchases-table td:nth-child(2) {
    min-width: 220px;
}

.dh-package-purchases-table th:nth-child(3),
.dh-package-purchases-table td:nth-child(3) {
    min-width: 220px;
}

.dh-package-purchases-table th:nth-child(4),
.dh-package-purchases-table td:nth-child(4) {
    min-width: 170px;
}

.dh-package-purchases-table th:nth-child(5),
.dh-package-purchases-table td:nth-child(5) {
    min-width: 200px;
}

.dh-package-purchases-table th:nth-child(6),
.dh-package-purchases-table td:nth-child(6) {
    min-width: 170px;
}

.dh-package-purchases-table th:nth-child(7),
.dh-package-purchases-table td:nth-child(7) {
    min-width: 300px;
}

.dh-package-purchase-meta {
    display: grid;
    gap: 0.38rem;
    min-width: 0;
}

.dh-package-purchase-meta .fw-semibold,
.dh-package-purchase-meta .small,
.dh-package-purchase-meta div,
.dh-package-purchase-meta span {
    overflow-wrap: anywhere;
}

.dh-package-purchase-actions {
    display: grid;
    gap: 0.65rem;
    justify-items: end;
    min-width: 235px;
}

.dh-package-purchase-actions__row {
    display: inline-flex;
    gap: 0.65rem;
    align-items: center;
    justify-content: flex-end;
}

.dh-package-purchase-actions .form-control-sm[type="text"] {
    min-width: 220px;
}

.dh-package-purchase-actions-wrap {
    display: grid;
    gap: 0.72rem;
    justify-items: end;
    align-content: start;
    min-width: 300px;
}

.dh-package-purchase-followup-form {
    display: inline-flex;
    justify-content: flex-end;
}

.dh-package-purchase-followup-form .btn {
    white-space: nowrap;
}

.dh-package-purchase-inline-actions {
    grid-template-columns: repeat(auto-fit, minmax(220px, max-content));
    align-items: start;
}

.dh-package-purchase-inline-actions > * {
    max-width: 100%;
}

.dh-package-purchase-inline-actions details {
    max-width: 100%;
}

.dh-package-purchase-inline-actions details form {
    width: min(420px, 100%);
}

.dh-gift-card-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.dh-gift-card-summary-card {
    display: grid;
    gap: 0.3rem;
    padding: 1rem 1.1rem;
    border-radius: 20px;
    border: 1px solid rgba(21, 32, 43, 0.08);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.96));
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.05);
}

.dh-gift-card-summary-card strong {
    font-size: 1.5rem;
    line-height: 1;
    letter-spacing: -0.03em;
    color: var(--dh-ink);
}

.dh-gift-card-summary-label {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--dh-ink-soft);
}

.dh-gift-card-table {
    min-width: 980px;
}

.dh-gift-card-table th,
.dh-gift-card-table td {
    vertical-align: top;
    padding-top: 0.9rem;
    padding-bottom: 0.9rem;
}

.dh-gift-card-meta {
    display: grid;
    gap: 0.38rem;
    min-width: 0;
}

.dh-gift-card-table th:nth-child(1),
.dh-gift-card-table td:nth-child(1) {
    min-width: 190px;
}

.dh-gift-card-table th:nth-child(2),
.dh-gift-card-table td:nth-child(2) {
    min-width: 180px;
}

.dh-gift-card-table th:nth-child(3),
.dh-gift-card-table td:nth-child(3) {
    min-width: 230px;
}

.dh-gift-card-table th:nth-child(4),
.dh-gift-card-table td:nth-child(4) {
    min-width: 140px;
}

.dh-gift-card-table th:nth-child(5),
.dh-gift-card-table td:nth-child(5) {
    min-width: 160px;
}

.dh-gift-card-meta .fw-semibold,
.dh-gift-card-meta .small,
.dh-gift-card-meta div,
.dh-gift-card-meta span {
    overflow-wrap: anywhere;
}

@media (max-width: 1280px) {
    .dh-package-purchase-actions-wrap,
    .dh-package-purchase-actions {
        min-width: 235px;
    }

    .dh-package-purchase-actions .form-control-sm[type="text"] {
        min-width: 180px;
    }

    .dh-package-purchase-inline-actions {
        grid-template-columns: 1fr;
    }

    .dh-package-purchase-followup-form {
        justify-content: flex-start;
    }
}

.dh-multi-picker-toolbar {
    gap: 0.85rem;
}

.dh-multi-picker-option {
    min-height: 84px;
    align-items: center;
}

.dh-booking-calendar-shell,
.dh-day-slot-panel {
    border-color: rgba(21, 32, 43, 0.09);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.05);
}

.dh-month-day {
    min-height: 84px;
}

.fc .fc-toolbar.fc-header-toolbar {
    margin-bottom: 0.85rem;
    gap: 0.55rem;
}

.fc .fc-toolbar-title {
    font-size: clamp(1rem, 1.8vw, 1.28rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--dh-ink);
}

.fc .fc-button-primary {
    border: 1px solid rgba(21, 32, 43, 0.16);
    background: rgba(255, 255, 255, 0.94);
    color: var(--dh-ink);
    box-shadow: 0 6px 14px rgba(15, 23, 42, 0.06);
}

.fc .fc-button-primary:hover {
    border-color: rgba(21, 32, 43, 0.28);
    background: #ffffff;
    color: var(--dh-ink);
}

.fc .fc-button-primary:not(:disabled).fc-button-active,
.fc .fc-button-primary:not(:disabled):active {
    border-color: rgba(241, 188, 22, 0.58);
    background: rgba(255, 248, 224, 0.96);
    color: var(--dh-ink);
    box-shadow: 0 10px 20px rgba(241, 188, 22, 0.16);
}

.fc .fc-button .fc-icon {
    font-size: 1.12em;
    line-height: 1;
}

.fc-theme-standard th,
.fc-theme-standard td {
    border-color: rgba(21, 32, 43, 0.1);
}

.fc .fc-col-header-cell-cushion {
    padding: 0.38rem 0.22rem;
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--dh-ink-soft);
}

.fc .fc-daygrid-day-number,
.fc .fc-timegrid-axis-cushion,
.fc .fc-timegrid-slot-label-cushion {
    color: var(--dh-ink);
}

@media (max-width: 767px) {
    .dh-shell,
    .dh-shell-main {
        overflow-x: hidden;
    }

    .dh-topbar,
    .dh-topbar-primary,
    .dh-topbar-brand,
    .dh-topbar-copy {
        min-width: 0;
    }

    .dh-shell-content {
        padding: 0.95rem !important;
    }

    .dh-topbar {
        padding: 0.65rem 0.92rem;
    }

    .dh-admin-tabs {
        border-radius: 16px;
        padding: 0.25rem;
        scroll-padding-inline: 0.25rem;
    }

    .dh-admin-tabs .nav-link,
    .dh-admin-tabs a.nav-link {
        flex: 0 0 auto;
        min-height: 40px;
        padding: 0.42rem 0.72rem;
    }

    .dh-page-section-nav {
        margin-inline: 0;
        padding: 0.3rem max(0.45rem, env(safe-area-inset-right)) 0.45rem max(0.45rem, env(safe-area-inset-left));
        border-radius: 18px;
        border: 1px solid rgba(21, 32, 43, 0.08);
        background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(250, 252, 255, 0.92));
        box-shadow: 0 10px 22px rgba(15, 23, 42, 0.06);
        scroll-padding-inline: max(0.45rem, env(safe-area-inset-left));
    }

    .dh-page-section-card {
        min-width: clamp(172px, 58vw, 198px);
        max-width: clamp(172px, 58vw, 198px);
        flex: 0 0 clamp(172px, 58vw, 198px);
        width: clamp(172px, 58vw, 198px);
        min-height: 100px;
    }

    .dh-page-section-card strong {
        font-size: 0.9rem;
    }

    .dh-page-section-card span {
        font-size: 0.73rem;
    }

    .dh-service-picker__meta {
        font-size: 0.83rem;
    }

    .dh-sidebar-footer {
        gap: 0.72rem;
    }

    .dh-sidebar-footer .btn {
        min-height: 38px;
    }

    .dh-badge,
    .badge {
        margin-top: 0.2rem;
        margin-bottom: 0.2rem;
    }

    .dh-gift-card-summary-grid {
        grid-template-columns: 1fr;
    }

    .dh-gift-card-summary-card {
        padding: 0.9rem 1rem;
    }
}

@media (max-width: 991px) {
    .dh-topbar-actions {
        gap: 0.42rem;
    }

    .dh-topbar-actions .btn {
        min-height: 34px;
        padding: 0.32rem 0.72rem;
        font-size: 0.78rem;
    }

    .dh-topbar-actions .dh-user-chip {
        display: none;
    }

    .dh-return-home-action {
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .dh-return-home-btn {
        min-width: 180px;
        text-align: center;
    }
}

@media (min-width: 992px) {
    .dh-return-home-action {
        width: auto;
        display: flex;
        justify-content: flex-end;
    }
}

@media (prefers-reduced-motion: reduce) {
    .dh-card,
    .dh-list-card,
    .btn,
    .dh-page-section-card {
        transition: none !important;
        transform: none !important;
    }
}

/* ============================================================ */
/* GROOMING & VET — UI/UX enhancements                          */
/* ============================================================ */

/* Quick-start template chips above forms */
.dh-quick-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 1rem;
    margin-bottom: 1rem;
    border: 1px dashed var(--dh-border-strong);
    border-radius: var(--dh-radius-sm);
    background: linear-gradient(180deg, rgba(255, 248, 221, 0.55), rgba(255, 255, 255, 0.85));
}
.dh-quick-bar-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--dh-ink-soft);
    margin-right: 0.4rem;
}
.dh-quick-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    border: 1px solid var(--dh-border-strong);
    background: #ffffff;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--dh-ink);
    cursor: pointer;
    transition: all 0.15s ease;
}
.dh-quick-chip:hover {
    border-color: var(--dh-primary-dark);
    background: var(--dh-primary-soft);
    transform: translateY(-1px);
}
.dh-quick-chip.is-active {
    border-color: var(--dh-primary-dark);
    background: linear-gradient(135deg, var(--dh-primary-soft), #fff7d8);
    box-shadow: 0 12px 24px rgba(246, 190, 0, 0.16);
}
.dh-quick-chip:focus-visible {
    outline: 2px solid var(--dh-primary-dark);
    outline-offset: 2px;
}

@media (max-width: 575px) {
    .dh-quick-bar {
        align-items: flex-start;
        padding: 0.78rem;
    }

    .dh-quick-bar-label {
        width: 100%;
        margin-right: 0;
    }

    .dh-quick-chip {
        justify-content: center;
        min-height: 40px;
    }
}

/* Dog quick-profile card (appears when dog selected in form) */
.dh-dog-profile {
    border: 1px solid var(--dh-border);
    border-radius: var(--dh-radius-sm);
    background: var(--dh-surface-soft);
    padding: 0.9rem 1rem;
    margin-top: 0.75rem;
    font-size: 0.85rem;
    display: none;
}
.dh-dog-profile.is-visible { display: block; }
.dh-dog-profile-head {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    margin-bottom: 0.4rem;
}
.dh-dog-profile-name {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--dh-ink);
}
.dh-dog-profile-meta {
    color: var(--dh-ink-soft);
    font-size: 0.78rem;
}
.dh-dog-profile-flags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: 0.4rem;
}
.dh-dog-profile-flag {
    display: inline-flex;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 600;
    background: rgba(188, 68, 49, 0.1);
    color: var(--dh-danger);
    border: 1px solid rgba(188, 68, 49, 0.25);
}
.dh-dog-profile-flag.is-info {
    background: rgba(31, 122, 84, 0.08);
    color: var(--dh-success);
    border-color: rgba(31, 122, 84, 0.25);
}
.dh-dog-profile-flag.is-warn {
    background: rgba(153, 102, 7, 0.1);
    color: var(--dh-warning);
    border-color: rgba(153, 102, 7, 0.3);
}
.dh-dog-profile-history {
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px dashed var(--dh-border);
    color: var(--dh-ink-soft);
    font-size: 0.78rem;
}
.dh-dog-profile-history strong {
    color: var(--dh-ink);
    font-weight: 600;
}

/* Watchlist card (panoramica) */
.dh-watchlist {
    border: 1px solid var(--dh-border);
    border-left: 4px solid var(--dh-warning);
    border-radius: var(--dh-radius-sm);
    background: linear-gradient(180deg, rgba(255, 248, 221, 0.4), #ffffff);
    padding: 1rem 1.1rem;
}
.dh-watchlist-title {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--dh-warning);
    margin-bottom: 0.5rem;
}
.dh-watchlist-list {
    display: grid;
    gap: 0.4rem;
    margin: 0;
    padding: 0;
    list-style: none;
}
.dh-watchlist-list li {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--dh-ink);
    padding: 0.3rem 0;
    border-bottom: 1px dashed var(--dh-border);
}
.dh-watchlist-list li:last-child { border-bottom: none; }

/* Empty state ricco con CTA */
.dh-empty-rich {
    text-align: center;
    padding: 2.5rem 1.5rem;
    border: 1px dashed var(--dh-border-strong);
    border-radius: var(--dh-radius-sm);
    background: linear-gradient(180deg, rgba(248, 250, 252, 0.85), #ffffff);
}
.dh-empty-rich-icon {
    font-size: 2.4rem;
    line-height: 1;
    margin-bottom: 0.75rem;
    color: var(--dh-primary-dark);
    opacity: 0.85;
}
.dh-empty-rich-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--dh-ink);
    margin-bottom: 0.35rem;
}
.dh-empty-rich-copy {
    color: var(--dh-ink-soft);
    font-size: 0.88rem;
    max-width: 38ch;
    margin: 0 auto 1rem;
    line-height: 1.5;
}

.dh-dicom-modal {
    border: 0;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 30px 70px rgba(15, 23, 42, 0.22);
}

.dh-dicom-modal .modal-header {
    border-bottom: 1px solid rgba(21, 32, 43, 0.08);
    background:
        radial-gradient(circle at right top, rgba(31, 122, 84, 0.12), transparent 30%),
        linear-gradient(135deg, #ffffff 0%, rgba(248, 252, 250, 0.98) 100%);
}

.dh-dicom-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem;
    margin-bottom: 0.85rem;
}

.dh-dicom-stage {
    position: relative;
    display: grid;
    place-items: center;
    min-height: min(68vh, 620px);
    padding: 1rem;
    border: 1px dashed rgba(21, 32, 43, 0.14);
    border-radius: 24px;
    background:
        linear-gradient(45deg, rgba(15, 23, 42, 0.035) 25%, transparent 25%),
        linear-gradient(-45deg, rgba(15, 23, 42, 0.035) 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, rgba(15, 23, 42, 0.035) 75%),
        linear-gradient(-45deg, transparent 75%, rgba(15, 23, 42, 0.035) 75%),
        #f8fafc;
    background-size: 24px 24px;
    background-position: 0 0, 0 12px, 12px -12px, -12px 0;
}

.dh-dicom-stage canvas,
.dh-dicom-stage img {
    max-width: 100%;
    max-height: min(64vh, 580px);
    width: auto;
    height: auto;
    border-radius: 18px;
    background: #000000;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.22);
}

.dh-dicom-stage canvas {
    image-rendering: auto;
}

.dh-dicom-stage iframe {
    width: 100%;
    height: min(64vh, 580px);
    border: 0;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
}

/* Sticky form save bar (visible on long forms scrolled) */
.dh-form-sticky {
    position: sticky;
    bottom: -1px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.0), rgba(255, 255, 255, 0.98) 28%);
    padding: 1rem 0 0.45rem;
    margin-top: 1rem;
    z-index: 8;
}

.dh-persistent-savebar {
    position: sticky;
    bottom: 0.75rem;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    width: min(760px, calc(100% - 2rem));
    margin: 1.5rem auto 0;
    padding: 0.75rem 0.85rem 0.75rem 1rem;
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.14);
    backdrop-filter: blur(14px);
}

.dh-persistent-savebar-copy {
    display: grid;
    min-width: 0;
    line-height: 1.25;
}

.dh-persistent-savebar-copy strong {
    color: var(--dh-ink);
    font-size: 0.9rem;
}

.dh-persistent-savebar-copy span {
    margin-top: 0.2rem;
    color: var(--dh-ink-soft);
    font-size: 0.78rem;
}

.dh-row-actions--mobile {
    display: none;
}

.dh-mobile-action-menu {
    position: relative;
}

.dh-mobile-action-menu > summary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0.38rem 0.8rem;
    border: 1px solid var(--dh-border-strong);
    border-radius: 999px;
    background: #ffffff;
    color: var(--dh-ink);
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    list-style: none;
}

.dh-mobile-action-menu > summary::-webkit-details-marker {
    display: none;
}

.dh-mobile-action-menu__panel {
    position: absolute;
    right: 0;
    top: calc(100% + 0.45rem);
    z-index: 40;
    display: grid;
    gap: 0.35rem;
    min-width: 168px;
    padding: 0.5rem;
    border: 1px solid var(--dh-border);
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 16px 38px rgba(15, 23, 42, 0.16);
}

.dh-mobile-action-menu__panel .btn,
.dh-mobile-action-menu__panel form,
.dh-mobile-action-menu__panel form .btn {
    width: 100%;
}

.dh-list-card:has(.dh-mobile-action-menu[open]) {
    z-index: 45;
}

.dh-entity-guide {
    margin-bottom: 1rem;
    border: 1px solid rgba(244, 180, 0, 0.24);
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(255, 249, 224, 0.72), #ffffff 58%);
}

.dh-entity-guide > summary {
    padding: 0.9rem 1rem;
    color: var(--dh-ink);
    font-weight: 700;
    cursor: pointer;
}

.dh-entity-guide-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.75rem;
    padding: 0 1rem 1rem;
}

.dh-entity-guide-item {
    padding: 0.8rem;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.86);
    color: var(--dh-ink-soft);
    font-size: 0.78rem;
    line-height: 1.45;
}

.dh-entity-guide-item strong {
    display: block;
    margin-bottom: 0.2rem;
    color: var(--dh-ink);
    font-size: 0.84rem;
}

.dh-filter-bar {
    align-items: end;
    padding: 0.75rem;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 16px;
    background: rgba(248, 250, 252, 0.78);
}

.dh-filter-bar .form-label {
    color: var(--dh-ink-soft);
    font-weight: 700;
}

.dh-service-save-panel {
    position: sticky;
    top: 5.75rem;
}

@media (max-width: 991px) {
    .dh-service-save-panel {
        position: static;
    }

    .dh-entity-guide-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .dh-persistent-savebar {
        bottom: 0.5rem;
        width: calc(100% - 0.75rem);
        padding: 0.55rem;
        border-radius: 16px;
    }

    .dh-persistent-savebar-copy span {
        display: none;
    }

    .dh-persistent-savebar .btn {
        flex: 0 0 auto;
    }

    .dh-row-actions--desktop {
        display: none !important;
    }

    .dh-row-actions--mobile {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        gap: 0.5rem;
        width: 100%;
    }

    .dh-entity-guide-grid {
        grid-template-columns: 1fr;
    }
}

/* Last-updated metadata stamp */
.dh-meta-stamp {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.7rem;
    color: var(--dh-ink-muted);
    background: rgba(15, 23, 42, 0.04);
    border-radius: 999px;
    padding: 0.18rem 0.55rem;
}

/* KPI hero (4 metriche in evidenza) */
.dh-kpi-hero {
    border: 1px solid var(--dh-border);
    border-radius: var(--dh-radius);
    padding: 1.4rem 1.4rem;
    background: linear-gradient(135deg, #ffffff 0%, var(--dh-surface-alt) 100%);
    box-shadow: var(--dh-shadow-xs);
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}
.dh-kpi-hero .dh-kpi-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--dh-ink-soft);
}
.dh-kpi-hero .dh-kpi-value {
    font-size: 2.2rem;
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: var(--dh-ink);
}
.dh-kpi-hero .dh-kpi-note {
    font-size: 0.78rem;
    color: var(--dh-ink-soft);
}
.dh-kpi-hero.is-danger { border-left: 4px solid var(--dh-danger); }
.dh-kpi-hero.is-warning { border-left: 4px solid var(--dh-warning); }
.dh-kpi-hero.is-success { border-left: 4px solid var(--dh-success); }
.dh-kpi-hero.is-primary { border-left: 4px solid var(--dh-primary-dark); }

/* Collapsible secondary KPI section */
.dh-kpi-collapse {
    margin-top: 1.25rem;
    border-top: 1px dashed var(--dh-border);
    padding-top: 1rem;
}
.dh-kpi-collapse-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--dh-ink-soft);
    background: none;
    border: none;
    padding: 0.25rem 0;
    cursor: pointer;
}
.dh-kpi-collapse-toggle::after {
    content: '\25BE';
    transition: transform 0.2s ease;
}
.dh-kpi-collapse-toggle.is-open::after { transform: rotate(180deg); }
.dh-kpi-collapse-body[hidden] { display: none; }

/* Pain score picker (0-4 scale with color coding) */
.dh-pain-picker {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.35rem;
}
.dh-pain-picker-opt {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.2rem;
    padding: 0.55rem 0.3rem;
    border: 1px solid var(--dh-border);
    border-radius: var(--dh-radius-xs);
    background: #ffffff;
    cursor: pointer;
    font-size: 0.72rem;
    color: var(--dh-ink-soft);
    text-align: center;
    transition: all 0.15s ease;
}
.dh-pain-picker-opt strong {
    font-size: 1.05rem;
    color: var(--dh-ink);
}
.dh-pain-picker-opt:hover {
    border-color: var(--dh-primary-dark);
    background: var(--dh-primary-soft);
}
.dh-pain-picker input[type="radio"] { display: none; }
.dh-pain-picker input[type="radio"]:checked + .dh-pain-picker-opt {
    border-color: var(--dh-ink);
    background: var(--dh-ink);
    color: #ffffff;
}
.dh-pain-picker input[type="radio"]:checked + .dh-pain-picker-opt strong { color: #ffffff; }
.dh-pain-picker-opt[data-tone="ok"]      { background: rgba(31, 122, 84, 0.08); }
.dh-pain-picker-opt[data-tone="mild"]    { background: rgba(241, 188, 22, 0.12); }
.dh-pain-picker-opt[data-tone="mod"]     { background: rgba(153, 102, 7, 0.14); }
.dh-pain-picker-opt[data-tone="strong"]  { background: rgba(188, 68, 49, 0.12); }
.dh-pain-picker-opt[data-tone="severe"]  { background: rgba(188, 68, 49, 0.22); }

/* BCS (Body Condition Score) picker 1-9 */
.dh-bcs-picker {
    display: grid;
    grid-template-columns: repeat(9, 1fr);
    gap: 0.2rem;
}
.dh-bcs-picker-opt {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.45rem 0;
    font-size: 0.85rem;
    font-weight: 700;
    border: 1px solid var(--dh-border);
    border-radius: var(--dh-radius-xs);
    background: #ffffff;
    color: var(--dh-ink);
    cursor: pointer;
    transition: all 0.15s ease;
}
.dh-bcs-picker-opt:hover {
    border-color: var(--dh-primary-dark);
    background: var(--dh-primary-soft);
}
.dh-bcs-picker input[type="radio"] { display: none; }
.dh-bcs-picker input[type="radio"]:checked + .dh-bcs-picker-opt {
    border-color: var(--dh-ink);
    background: var(--dh-ink);
    color: #ffffff;
}
.dh-bcs-picker-legend {
    display: flex;
    justify-content: space-between;
    font-size: 0.7rem;
    color: var(--dh-ink-muted);
    margin-top: 0.3rem;
    padding: 0 0.1rem;
}

/* SOAP grid (Subjective / Objective / Assessment / Plan) */
.dh-soap-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.85rem;
}
@media (min-width: 768px) {
    .dh-soap-grid { grid-template-columns: 1fr 1fr; }
}
.dh-soap-cell label {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--dh-ink-soft);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.25rem;
}
.dh-soap-cell .dh-soap-letter {
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    background: var(--dh-primary);
    color: var(--dh-ink);
    font-size: 0.72rem;
    font-weight: 800;
}

/* Drug dosage calculator output */
.dh-dose-calc {
    border: 1px solid var(--dh-border);
    border-radius: var(--dh-radius-xs);
    padding: 0.65rem 0.85rem;
    background: var(--dh-surface-soft);
    font-size: 0.8rem;
    color: var(--dh-ink);
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}
.dh-dose-calc-result {
    font-weight: 700;
    color: var(--dh-success);
    font-size: 1rem;
}
.dh-dose-calc-result.is-warn { color: var(--dh-warning); }

/* Vital signs trend mini chart container */
.dh-trend-card {
    border: 1px solid var(--dh-border);
    border-radius: var(--dh-radius-sm);
    background: #ffffff;
    padding: 0.85rem 1rem;
    margin-top: 0.75rem;
    display: none;
}
.dh-trend-card.is-visible { display: block; }
.dh-trend-card-title {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--dh-ink-soft);
    margin-bottom: 0.45rem;
}
.dh-trend-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.85rem;
}
@media (min-width: 768px) {
    .dh-trend-grid { grid-template-columns: 1fr 1fr; }
}
.dh-trend-canvas {
    width: 100%;
    height: 110px;
}
.dh-trend-meta {
    font-size: 0.72rem;
    color: var(--dh-ink-muted);
}

/* Hospitalization Kanban-light board */
.dh-board {
    display: grid;
    gap: 0.85rem;
    grid-template-columns: 1fr;
}
@media (min-width: 992px) {
    .dh-board { grid-template-columns: repeat(3, 1fr); }
}
.dh-board-col {
    border: 1px solid var(--dh-border);
    border-radius: var(--dh-radius-sm);
    background: var(--dh-surface-soft);
    padding: 0.85rem;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}
.dh-board-col-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.76rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--dh-ink-soft);
}
.dh-board-col-count {
    background: rgba(15, 23, 42, 0.08);
    border-radius: 999px;
    padding: 0.1rem 0.55rem;
    font-size: 0.7rem;
    color: var(--dh-ink);
}
.dh-board-col[data-status="planned"] { border-top: 3px solid var(--dh-warning); }
.dh-board-col[data-status="active"]  { border-top: 3px solid var(--dh-success); }
.dh-board-col[data-status="discharged"] { border-top: 3px solid var(--dh-ink-muted); }
.dh-board-card {
    background: #ffffff;
    border: 1px solid var(--dh-border);
    border-radius: var(--dh-radius-xs);
    padding: 0.65rem 0.75rem;
    font-size: 0.82rem;
    box-shadow: var(--dh-shadow-xs);
}
.dh-board-card-title {
    font-weight: 700;
    color: var(--dh-ink);
    margin-bottom: 0.2rem;
}
.dh-board-card-meta {
    font-size: 0.74rem;
    color: var(--dh-ink-muted);
    margin-bottom: 0.3rem;
}
.dh-board-card-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.7rem;
    padding: 0.1rem 0.45rem;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.05);
    color: var(--dh-ink-soft);
}
.dh-board-empty {
    font-size: 0.78rem;
    color: var(--dh-ink-muted);
    font-style: italic;
    padding: 0.4rem 0;
}

/* ============================================================ */
/* WAVE 3 — vaccini, preventivi, lab ranges, recall campaigns   */
/* ============================================================ */

/* Lab parsed analyte chip with semantic color */
.dh-lab-analyte {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.18rem 0.55rem;
    border-radius: 999px;
    font-size: 0.74rem;
    font-weight: 600;
    border: 1px solid var(--dh-border);
    background: #ffffff;
    color: var(--dh-ink);
}
.dh-lab-analyte.is-normal { background: rgba(31, 122, 84, 0.08); border-color: rgba(31, 122, 84, 0.3); color: var(--dh-success); }
.dh-lab-analyte.is-low,
.dh-lab-analyte.is-high { background: rgba(153, 102, 7, 0.1); border-color: rgba(153, 102, 7, 0.32); color: var(--dh-warning); }
.dh-lab-analyte.is-critical_low,
.dh-lab-analyte.is-critical_high { background: rgba(188, 68, 49, 0.12); border-color: rgba(188, 68, 49, 0.4); color: var(--dh-danger); font-weight: 700; }
.dh-lab-analyte-arrow {
    font-size: 0.65rem;
    line-height: 1;
}

/* Treatment plan card */
.dh-plan-card {
    border: 1px solid var(--dh-border);
    border-radius: var(--dh-radius-sm);
    background: #ffffff;
    padding: 1rem 1.1rem;
}
.dh-plan-card[data-status="accepted"] { border-left: 4px solid var(--dh-success); }
.dh-plan-card[data-status="declined"],
.dh-plan-card[data-status="cancelled"] { border-left: 4px solid var(--dh-danger); }
.dh-plan-card[data-status="sent"] { border-left: 4px solid var(--dh-warning); }
.dh-plan-card[data-status="completed"] { border-left: 4px solid var(--dh-primary-dark); }
.dh-plan-card[data-status="draft"] { border-left: 4px solid var(--dh-ink-muted); }
.dh-plan-total {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--dh-ink);
}
.dh-plan-total small {
    color: var(--dh-ink-muted);
    font-weight: 500;
}

/* Vaccine timeline-ish list */
.dh-vaccine-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.6rem;
    padding: 0.55rem 0;
    border-bottom: 1px dashed var(--dh-border);
}
.dh-vaccine-row:last-child { border-bottom: none; }
.dh-vaccine-row .dh-meta-stamp { white-space: nowrap; }
.dh-vaccine-due-soon { color: var(--dh-warning); font-weight: 700; }
.dh-vaccine-due-overdue { color: var(--dh-danger); font-weight: 700; }

/* Recall campaign card */
.dh-recall-card {
    border: 1px solid var(--dh-border);
    border-radius: var(--dh-radius-sm);
    padding: 0.85rem 1rem;
    background: #ffffff;
}
.dh-recall-card.is-inactive { opacity: 0.65; background: var(--dh-surface-soft); }
.dh-recall-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    font-size: 0.72rem;
    color: var(--dh-ink-soft);
    margin-top: 0.3rem;
}

/* ============================================================ */
/* WAVE 4 — drug check, anagrafe, e-signature, heartbeat        */
/* ============================================================ */

/* Drug interaction findings */
.dh-drug-finding {
    border: 1px solid var(--dh-border);
    border-radius: var(--dh-radius-xs);
    padding: 0.55rem 0.75rem;
    background: #ffffff;
    font-size: 0.82rem;
}
.dh-drug-finding[data-severity="minor"]    { border-left: 4px solid var(--dh-warning); background: rgba(241, 188, 22, 0.06); }
.dh-drug-finding[data-severity="moderate"] { border-left: 4px solid var(--dh-warning); background: rgba(153, 102, 7, 0.08); }
.dh-drug-finding[data-severity="major"]    { border-left: 4px solid var(--dh-danger); background: rgba(188, 68, 49, 0.08); }
.dh-drug-finding[data-severity="contraindicated"] { border-left: 4px solid var(--dh-danger); background: rgba(188, 68, 49, 0.16); font-weight: 600; }
.dh-drug-finding-pair {
    font-weight: 700;
    color: var(--dh-ink);
}
.dh-drug-finding-mechanism {
    font-size: 0.72rem;
    color: var(--dh-ink-soft);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 0.2rem;
}
.dh-drug-finding-note { color: var(--dh-ink); font-size: 0.8rem; margin-top: 0.2rem; }
.dh-drug-banner {
    border-radius: var(--dh-radius-xs);
    padding: 0.55rem 0.85rem;
    font-size: 0.82rem;
    font-weight: 600;
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.dh-drug-banner.is-none      { background: rgba(31, 122, 84, 0.08); color: var(--dh-success); border: 1px solid rgba(31, 122, 84, 0.3); }
.dh-drug-banner.is-minor     { background: rgba(241, 188, 22, 0.12); color: var(--dh-warning); border: 1px solid rgba(241, 188, 22, 0.4); }
.dh-drug-banner.is-moderate  { background: rgba(153, 102, 7, 0.1); color: var(--dh-warning); border: 1px solid rgba(153, 102, 7, 0.4); }
.dh-drug-banner.is-major     { background: rgba(188, 68, 49, 0.1); color: var(--dh-danger); border: 1px solid rgba(188, 68, 49, 0.45); }
.dh-drug-banner.is-contraindicated { background: rgba(188, 68, 49, 0.18); color: var(--dh-danger); border: 1px solid rgba(188, 68, 49, 0.6); }

/* Signature pad */
.dh-sigpad-wrap {
    border: 1px solid var(--dh-border-strong);
    border-radius: var(--dh-radius-xs);
    background: #ffffff;
    padding: 0.5rem;
}
.dh-sigpad-canvas {
    width: 100%;
    height: 180px;
    border: 1px dashed var(--dh-border);
    border-radius: var(--dh-radius-xs);
    background: #fdfdfb;
    cursor: crosshair;
    touch-action: none;
    display: block;
}
.dh-sigpad-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.4rem;
    align-items: center;
}
.dh-sigpad-hint {
    font-size: 0.72rem;
    color: var(--dh-ink-muted);
    margin-left: auto;
}

/* Heartbeat token URL display */
.dh-token-box {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    align-items: center;
    padding: 0.55rem 0.75rem;
    background: var(--dh-surface-soft);
    border: 1px solid var(--dh-border);
    border-radius: var(--dh-radius-xs);
    font-family: 'SFMono-Regular', Menlo, Monaco, Consolas, 'Liberation Mono', monospace;
    font-size: 0.78rem;
    color: var(--dh-ink);
    word-break: break-all;
}
.dh-token-status {
    font-size: 0.72rem;
    padding: 0.18rem 0.55rem;
    border-radius: 999px;
    background: var(--dh-surface);
    border: 1px solid var(--dh-border);
}
.dh-token-status.is-ok { color: var(--dh-success); border-color: rgba(31, 122, 84, 0.3); }
.dh-token-status.is-off { color: var(--dh-ink-muted); }

/* Anagrafe lookup card */
.dh-anag-card {
    border: 1px solid var(--dh-border);
    border-radius: var(--dh-radius-sm);
    padding: 0.85rem 1rem;
    background: #ffffff;
    font-size: 0.85rem;
}
.dh-anag-card[data-status="found"] { border-left: 4px solid var(--dh-success); }
.dh-anag-card[data-status="not_found"] { border-left: 4px solid var(--dh-warning); }
.dh-anag-card[data-status="error"] { border-left: 4px solid var(--dh-danger); }
.dh-anag-card[data-status="manual"] { border-left: 4px solid var(--dh-ink-muted); }
.dh-anag-card[data-status="pending"] { border-left: 4px solid var(--dh-primary-dark); }

/* ============================================================ */
/* Sales partner admin polish                                    */
/* ============================================================ */

.sales-partner-admin .dh-card,
.sales-partner-admin .dh-list-card,
.sales-partner-admin .card {
    min-width: 0;
    overflow-wrap: anywhere;
}

.sales-partner-admin .table-responsive { overflow-x: auto; }

.dh-mini-kicker {
    letter-spacing: 0.05em;
}

.dh-card--connected-head {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    border-bottom: 0;
    margin-bottom: 0;
}

.dh-card--connected-body {
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    border-top: 0;
}

.sales-soft-panel {
    padding: 1rem;
    border: 1px solid var(--dh-border);
    border-radius: var(--dh-radius-sm);
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

.sales-soft-panel.is-success {
    border-color: rgba(31, 122, 84, 0.28);
    background: linear-gradient(180deg, rgba(31, 122, 84, 0.08) 0%, #ffffff 100%);
}

.sales-partner-admin .sp-code {
    color: #6c757d;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    font-weight: 600;
    white-space: normal;
    word-break: break-word;
}

.sales-partner-admin .commercial-status-options {
    display: grid;
    gap: 0.25rem;
}

.sales-partner-admin #partnerTabs .nav-link {
    color: #495057;
}

.sales-partner-admin #partnerTabs .nav-link:hover {
    color: #15202b;
}

.sales-partner-admin #partnerTabs .nav-link.active {
    color: #15202b;
    border-bottom-color: var(--dh-primary);
    border-bottom-width: 2px;
    font-weight: 700;
}

.sales-partner-list-card.is-selected {
    border-left: 3px solid var(--dh-primary);
}

.sp-list-card-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.25rem;
}

.sales-partner-admin .sales-shared-tabs {
    background: #f8fafc;
    border: 1px solid #e6edf4;
    border-radius: 22px;
    padding: 6px;
}

.sales-partner-admin .sales-shared-tabs .nav-link {
    border-radius: 17px;
    color: #536171;
    font-weight: 700;
    padding: 0.72rem 1rem;
}

.sales-partner-admin .sales-shared-tabs .nav-link.active {
    background: #fff8dd;
    border: 1px solid var(--dh-primary);
    box-shadow: 0 10px 30px rgba(17, 24, 39, 0.07);
    color: #17202a;
}

.sales-agreement-editor {
    background: linear-gradient(180deg, #fffdf5 0%, #ffffff 42%);
    border: 1px solid #f6dd8b;
    border-radius: 24px;
    padding: 18px;
}

.sales-agreement-editor textarea {
    min-height: 420px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    line-height: 1.55;
}

.sales-mini-panel {
    background: #f8fafc;
    border: 1px solid #e6edf4;
    border-radius: 18px;
    padding: 14px;
}

.sales-token-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.sales-token-list code {
    background: #ffffff;
    border: 1px solid #e6edf4;
    border-radius: 999px;
    color: #394657;
    padding: 4px 8px;
}

.sales-contract-preview {
    padding: 1rem;
    border: 1px solid var(--dh-border);
    border-radius: var(--dh-radius-sm);
    background: var(--dh-surface-soft);
    color: var(--dh-ink);
    font-size: 0.875rem;
    white-space: pre-wrap;
}

@media (min-width: 768px) {
    .sales-partner-admin .commercial-status-options {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* ============================================================ */
/* Tenant dashboard compact agenda                              */
/* ============================================================ */

.dh-agenda-mini-card {
    display: block;
}

.dh-agenda-mini-date {
    min-width: 46px;
}

.dh-agenda-mini-day {
    color: var(--dh-primary, #f59e0b);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    line-height: 1.1;
    text-transform: uppercase;
}

.dh-agenda-mini-time {
    color: #111827;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.2;
}

.dh-agenda-mini-divider {
    width: 1px;
    height: 36px;
    background: #e5e7eb;
    flex-shrink: 0;
}

.dh-agenda-mini-title {
    color: #111827;
}

.dh-payment-mini-card .dh-badge {
    vertical-align: baseline;
}

.dh-payment-mini-amount {
    color: var(--dh-ink);
    white-space: nowrap;
}

.dh-payment-result-card {
    border-width: 2px;
}

.dh-payment-result-card.is-gift-card,
.dh-payment-result-card.is-account {
    border-color: var(--dh-primary) !important;
}

.dh-payment-result-card.is-ticket {
    border-color: #0ea5e9 !important;
}

/* ——— Marketing: pricing page ——— */

.dh-pricing-section {
    scroll-margin-top: 96px;
}

.dh-copy-measure {
    max-width: 780px;
}

.dh-pricing-highlight {
    border: 2px solid rgba(241, 188, 22, 0.42);
    background:
        radial-gradient(circle at 88% 12%, rgba(241, 188, 22, 0.18), transparent 30%),
        linear-gradient(135deg, #ffffff 0%, #fffbeb 100%);
}

.dh-price-annual {
    background: rgba(241, 188, 22, 0.07);
    border: 1px solid rgba(241, 188, 22, 0.24);
}

.text-warning-emphasis {
    color: #9a5b04 !important;
}

.dh-pricing-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.dh-pricing-pills .btn {
    border-radius: 999px;
    font-weight: 700;
    padding: 0.55rem 1rem;
}

.dh-price-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 1.5rem;
    padding: 2.5rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    position: relative;
}

.dh-price-card.recommended {
    border: 2px solid var(--dh-primary);
    box-shadow: 0 20px 25px -5px rgba(241, 188, 22, 0.15);
    transform: scale(1.02);
    z-index: 2;
}

.dh-badge-promo {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--dh-primary);
    color: #111827;
    padding: 4px 16px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    white-space: nowrap;
}

.dh-check-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 2rem;
    flex-grow: 1;
}

.dh-check-list li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 0.8rem;
    color: #4b5563;
    font-size: 0.95rem;
}

.dh-check-list li::before {
    content: '\2714';
    position: absolute;
    left: 0;
    top: 0;
    color: #d97706;
    background: rgba(251, 191, 36, 0.2);
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
}

.dh-info-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 1rem;
    padding: 2rem;
    height: 100%;
}

/* ——— Marketing: home page ——— */

@keyframes dh-float-hero {
    0% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0); }
}

@keyframes dh-pulse-glow {
    0% { box-shadow: 0 0 0 0 rgba(251, 191, 36, 0.6); }
    70% { box-shadow: 0 0 0 15px rgba(251, 191, 36, 0); }
    100% { box-shadow: 0 0 0 0 rgba(251, 191, 36, 0); }
}

.dh-floating {
    animation: dh-float-hero 7s ease-in-out infinite;
}

.dh-pulse-btn {
    animation: dh-pulse-glow 2.5s infinite;
}

.dh-text-gradient {
    background: linear-gradient(135deg, #d97706 0%, #fbbf24 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

.dh-feature-card,
.dh-mini-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 1.25rem;
    padding: 2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.dh-feature-card:hover,
.dh-mini-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    border-color: rgba(251, 191, 36, 0.4);
}

.dh-feature-card h3 {
    font-size: 1.35rem;
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
}

.dh-showcase {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 1.5rem;
    padding: 2.5rem;
}

.dh-showcase-header {
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
}

.dh-mini-card {
    padding: 1.5rem;
    border-radius: 1rem;
}

.dh-cta-card {
    background: linear-gradient(135deg, #111827 0%, #1f2937 100%);
    border-radius: 1.5rem;
    padding: 4rem;
    position: relative;
    overflow: hidden;
    color: white;
}

.dh-cta-card::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(251, 191, 36, 0.2), transparent 60%);
    pointer-events: none;
}

.dh-cta-card h2 {
    color: white;
    z-index: 2;
    position: relative;
}

.dh-cta-card p,
.dh-cta-card .d-flex {
    z-index: 2;
    position: relative;
}

/* ——— Marketing: premium multilingual surfaces ——— */

.dh-marketing-hero {
    position: relative;
    overflow: hidden;
    padding: clamp(4.5rem, 9vw, 8rem) 0;
    background:
        radial-gradient(circle at 88% 16%, rgba(241, 188, 22, 0.24), transparent 28%),
        radial-gradient(circle at 14% 12%, rgba(255, 247, 214, 0.82), transparent 35%),
        linear-gradient(180deg, #fffaf0 0%, #ffffff 78%);
}

.dh-marketing-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.35;
    background-image:
        linear-gradient(rgba(15, 23, 42, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(15, 23, 42, 0.025) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: linear-gradient(to bottom, black, transparent 82%);
}

.dh-marketing-hero h1 {
    max-width: 780px;
    color: var(--dh-ink, #111827);
    letter-spacing: -0.055em;
    line-height: 0.99;
}

.dh-hero-lead {
    max-width: 720px;
    font-size: clamp(1.08rem, 1.8vw, 1.28rem);
    line-height: 1.72;
}

.dh-brand-pill,
.dh-section-eyebrow {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 0.48rem 0.9rem;
    border: 1px solid rgba(217, 119, 6, 0.22);
    border-radius: 999px;
    background: rgba(255, 250, 235, 0.86);
    color: #9a5b04;
    font-size: 0.74rem;
    font-weight: 850;
    letter-spacing: 0.065em;
    text-transform: uppercase;
}

.dh-stat-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    border-top: 1px solid rgba(15, 23, 42, 0.1);
}

.dh-public-stat {
    display: grid;
    gap: 0.25rem;
}

.dh-public-stat strong {
    color: var(--dh-ink, #111827);
    font-size: 0.98rem;
    font-weight: 850;
}

.dh-public-stat span {
    color: var(--dh-ink-soft, #5b6472);
    font-size: 0.8rem;
    line-height: 1.45;
}

.dh-showcase {
    position: relative;
    padding: clamp(1.4rem, 4vw, 2.5rem);
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 2rem;
    background: rgba(255, 255, 255, 0.86);
    box-shadow:
        0 34px 80px rgba(15, 23, 42, 0.14),
        inset 0 1px 0 rgba(255, 255, 255, 0.86);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.dh-window-dots {
    display: flex;
    gap: 0.45rem;
    margin-bottom: 1.6rem;
}

.dh-window-dots span {
    width: 0.7rem;
    height: 0.7rem;
    border-radius: 50%;
    background: #f87171;
}

.dh-window-dots span:nth-child(2) {
    background: #fbbf24;
}

.dh-window-dots span:nth-child(3) {
    background: #34d399;
}

.dh-showcase-header {
    display: block;
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.dh-copilot-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.58rem;
    width: fit-content;
    max-width: 100%;
    min-height: 34px;
    padding: 0.26rem 0.66rem 0.26rem 0.28rem;
    border: 1px solid rgba(217, 119, 6, 0.18);
    border-radius: 0.8rem;
    background: linear-gradient(135deg, rgba(255, 248, 223, 0.96), rgba(255, 255, 255, 0.94));
    color: #754700;
    box-shadow: 0 7px 18px rgba(139, 88, 8, 0.08);
}

.dh-copilot-badge__mark {
    display: grid;
    place-items: center;
    width: 25px;
    height: 25px;
    flex: 0 0 25px;
    border-radius: 0.55rem;
    background: linear-gradient(145deg, #10213c, #1c3b66);
    color: #ffd052;
    line-height: 1;
    box-shadow: 0 5px 12px rgba(11, 31, 68, 0.16);
}

.dh-copilot-badge__glyph {
    width: 14px;
    height: 14px;
    stroke-width: 1.8;
}

.dh-copilot-badge__name {
    overflow-wrap: anywhere;
    font-size: 0.68rem;
    font-weight: 850;
    letter-spacing: 0.075em;
    line-height: 1.2;
    text-transform: uppercase;
}

.dh-showcase-title {
    margin: 1.3rem 0 0.65rem;
}

.dh-mini-card {
    display: flex;
    flex-direction: column;
    padding: 1.25rem;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 1.15rem;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.dh-mini-label {
    margin-bottom: 0.45rem;
    color: #9a5b04;
    font-size: 0.68rem;
    font-weight: 850;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.dh-mini-card h3 {
    margin-bottom: 0.45rem;
    color: var(--dh-ink, #111827);
    font-size: 1rem;
    font-weight: 850;
    letter-spacing: -0.02em;
}

.dh-mini-card p {
    margin: 0;
    color: var(--dh-ink-soft, #5b6472);
    font-size: 0.8rem;
    line-height: 1.55;
}

.dh-marketing-section {
    padding: clamp(4.5rem, 8vw, 7rem) 0;
}

.dh-marketing-section-soft {
    border-top: 1px solid rgba(15, 23, 42, 0.05);
    border-bottom: 1px solid rgba(15, 23, 42, 0.05);
    background:
        radial-gradient(circle at 10% 0%, rgba(241, 188, 22, 0.1), transparent 24%),
        #f8fafc;
}

.dh-marketing-heading {
    max-width: 880px;
    margin: 0 auto clamp(2.5rem, 5vw, 4rem);
}

.dh-marketing-heading h1,
.dh-marketing-heading h2 {
    margin-top: 1.3rem !important;
    color: var(--dh-ink, #111827);
    letter-spacing: -0.045em;
    line-height: 1.05;
}

.dh-marketing-heading p {
    max-width: 780px;
    margin: 0 auto;
    color: var(--dh-ink-soft, #5b6472);
    font-size: 1.08rem;
    line-height: 1.72;
}

.dh-vertical-card,
.dh-capability-card,
.dh-value-card,
.dh-flow-card,
.dh-governance-card,
.dh-contact-help {
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: #ffffff;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.065);
    transition:
        transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
        box-shadow 0.35s ease,
        border-color 0.35s ease;
}

.dh-vertical-card:hover,
.dh-capability-card:hover,
.dh-value-card:hover,
.dh-flow-card:hover {
    transform: translateY(-6px);
    border-color: rgba(217, 119, 6, 0.28);
    box-shadow: 0 26px 60px rgba(15, 23, 42, 0.11);
}

.dh-vertical-card {
    display: flex;
    flex-direction: column;
    padding: 1.8rem;
    border-radius: 1.45rem;
}

.dh-marketing-icon,
.dh-capability-icon,
.dh-flow-icon,
.dh-contact-channel-icon,
.dh-demo-icon {
    display: grid;
    place-items: center;
    width: 3.1rem;
    height: 3.1rem;
    flex: 0 0 3.1rem;
    border: 1px solid rgba(217, 119, 6, 0.2);
    border-radius: 1rem;
    background: linear-gradient(135deg, #fff6d6, #fffdfa);
    color: #9a5b04;
    font-size: 1.35rem;
    box-shadow: 0 10px 24px rgba(217, 119, 6, 0.11);
}

.dh-vertical-card h3 {
    margin: 1.35rem 0 0.7rem;
    color: var(--dh-ink, #111827);
    font-size: 1.2rem;
    font-weight: 850;
}

.dh-vertical-card p,
.dh-capability-card p,
.dh-value-card p,
.dh-flow-card p,
.dh-governance-card > p {
    color: var(--dh-ink-soft, #5b6472);
    line-height: 1.65;
}

.dh-vertical-card p {
    flex: 1;
    margin-bottom: 1.4rem;
}

.dh-card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    width: fit-content;
    color: #805000;
    font-size: 0.9rem;
    font-weight: 800;
    text-decoration: none;
}

.dh-card-link:hover {
    color: #b36b00;
    gap: 0.65rem;
}

.dh-value-card {
    display: flex;
    gap: 1.2rem;
    padding: 1.65rem;
    border-radius: 1.35rem;
}

.dh-value-symbol {
    display: grid;
    place-items: center;
    width: 2.75rem;
    height: 2.75rem;
    flex: 0 0 2.75rem;
    border-radius: 0.9rem;
    background: #111827;
    color: #fbbf24;
    font-size: 1.2rem;
    font-weight: 900;
}

.dh-value-card h3,
.dh-flow-card h3 {
    margin: 0 0 0.55rem;
    color: var(--dh-ink, #111827);
    font-size: 1.13rem;
    font-weight: 850;
}

.dh-value-card p,
.dh-flow-card p {
    margin: 0;
}

.dh-flow-card {
    padding: 2rem;
    border-radius: 1.5rem;
}

.dh-flow-card h3 {
    margin-top: 1.4rem;
}

.dh-dark-cta {
    position: relative;
    overflow: hidden;
    padding: clamp(2.2rem, 6vw, 4.5rem);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 2rem;
    background:
        radial-gradient(circle at 90% 20%, rgba(251, 191, 36, 0.26), transparent 30%),
        linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #ffffff;
    box-shadow: 0 34px 70px rgba(15, 23, 42, 0.24);
}

.dh-dark-cta h2 {
    color: #ffffff;
    letter-spacing: -0.04em;
}

.dh-dark-cta p {
    color: #cbd5e1;
    line-height: 1.65;
}

.dh-dark-outline-btn {
    padding: 0.9rem 1.4rem;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 999px;
    color: #ffffff;
    font-weight: 800;
}

.dh-dark-outline-btn:hover,
.dh-dark-outline-btn:focus {
    border-color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.dh-capability-card {
    padding: 1.75rem;
    border-radius: 1.4rem;
}

.dh-capability-card h2 {
    margin: 1.25rem 0 0.65rem;
    color: var(--dh-ink, #111827);
    font-size: 1.15rem;
    font-weight: 850;
    letter-spacing: -0.02em;
}

.dh-capability-card p {
    margin: 0;
}

.dh-governance-card {
    padding: clamp(2rem, 4vw, 3rem);
    border-radius: 1.65rem;
}

.dh-governance-card-highlight {
    border-color: rgba(217, 119, 6, 0.22);
    background:
        radial-gradient(circle at 100% 0%, rgba(251, 191, 36, 0.18), transparent 33%),
        #ffffff;
}

.dh-governance-card h2 {
    margin: 1.3rem 0 0.8rem;
    color: var(--dh-ink, #111827);
    font-size: clamp(1.55rem, 3vw, 2rem);
    font-weight: 850;
    letter-spacing: -0.035em;
}

.dh-premium-list {
    display: grid;
    gap: 1rem;
    padding: 0;
    margin: 1.8rem 0 0;
    list-style: none;
}

.dh-premium-list li {
    position: relative;
    padding-left: 2rem;
    color: var(--dh-ink-soft, #5b6472);
    line-height: 1.6;
}

.dh-premium-list li::before {
    content: '✓';
    position: absolute;
    top: 0.05rem;
    left: 0;
    display: grid;
    place-items: center;
    width: 1.3rem;
    height: 1.3rem;
    border-radius: 50%;
    background: rgba(241, 188, 22, 0.22);
    color: #8a5400;
    font-size: 0.7rem;
    font-weight: 900;
}

.dh-contact-intro {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.dh-contact-channel {
    display: flex;
    gap: 1rem;
    align-items: center;
    padding: 1.35rem;
    border: 1px solid rgba(15, 23, 42, 0.09);
    border-radius: 1.35rem;
    background: #ffffff;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.07);
    color: inherit;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.dh-contact-channel:hover {
    transform: translateY(-4px);
    box-shadow: 0 25px 60px rgba(15, 23, 42, 0.11);
}

.dh-contact-channel > span:last-child {
    display: grid;
    min-width: 0;
}

.dh-contact-channel small {
    color: #9a5b04;
    font-size: 0.7rem;
    font-weight: 850;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.dh-contact-channel strong {
    overflow-wrap: anywhere;
    color: var(--dh-ink, #111827);
    font-size: clamp(1rem, 2.7vw, 1.25rem);
}

.dh-contact-channel > span > span {
    color: var(--dh-ink-soft, #5b6472);
    font-size: 0.82rem;
}

.dh-contact-help {
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: clamp(2rem, 4vw, 3rem);
    border-radius: 1.75rem;
}

.dh-contact-orbit {
    position: absolute;
    top: -5rem;
    right: -5rem;
    width: 13rem;
    height: 13rem;
    border: 2rem solid rgba(251, 191, 36, 0.11);
    border-radius: 50%;
    pointer-events: none;
}

.dh-demo-panel {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1.3rem;
    border: 1px solid rgba(217, 119, 6, 0.2);
    border-radius: 1.35rem;
    background: linear-gradient(135deg, #fff8df, #ffffff);
}

.dh-demo-panel h3 {
    margin: 0 0 0.4rem;
    color: var(--dh-ink, #111827);
    font-size: 1.05rem;
    font-weight: 850;
}

.dh-demo-panel p {
    margin-bottom: 1rem;
    color: var(--dh-ink-soft, #5b6472);
    font-size: 0.88rem;
    line-height: 1.55;
}

[data-dh-reveal] {
    opacity: 0;
    transform: translateY(24px);
    transition:
        opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-dh-reveal].is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 991.98px) {
    .dh-marketing-hero {
        padding-top: 4rem;
    }

    .dh-floating {
        animation: none;
    }
}

@media (max-width: 575.98px) {
    .dh-stat-grid {
        grid-template-columns: 1fr;
    }

    .dh-copilot-badge {
        min-height: 32px;
        gap: 0.46rem;
        padding: 0.24rem 0.56rem 0.24rem 0.25rem;
        border-radius: 0.72rem;
    }

    .dh-copilot-badge__mark {
        width: 23px;
        height: 23px;
        flex-basis: 23px;
    }

    .dh-copilot-badge__name {
        font-size: 0.63rem;
    }

    .dh-showcase-title,
    .dh-marketing-heading h1,
    .dh-marketing-heading h2 {
        margin-top: 1.1rem !important;
    }

    .dh-value-card,
    .dh-demo-panel {
        flex-direction: column;
    }

    .dh-dark-cta .btn,
    .dh-contact-help .btn {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .dh-floating,
    .dh-pulse-btn {
        animation: none !important;
    }

    [data-dh-reveal] {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* ——— Booking requests card ——— */

.dh-booking-request-card {
    overflow: hidden;
    border-left: 4px solid rgba(241, 188, 22, 0.28);
}

.dh-booking-request-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1rem;
    align-items: start;
}

.dh-booking-request-main {
    min-width: 0;
}

.dh-booking-request-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: flex-end;
    align-items: flex-start;
    min-width: 0;
}

.dh-booking-request-actions .btn {
    white-space: nowrap;
}

.dh-waitlist-details {
    grid-column: 1 / -1;
    border: 1px dashed rgba(244, 180, 0, 0.42);
    background: linear-gradient(135deg, rgba(255, 247, 214, 0.72), rgba(255, 255, 255, 0.96));
    border-radius: 1.2rem;
    padding: 0.75rem;
}

.dh-waitlist-details[open] {
    padding: 1rem;
}

.dh-waitlist-details summary {
    width: max-content;
    max-width: 100%;
}

.dh-waitlist-details[open] summary {
    margin-bottom: 0.75rem;
}

.dh-waitlist-details form {
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
}

.dh-waitlist-details .form-control,
.dh-waitlist-details .form-select {
    min-width: 0;
}

@media (max-width: 991.98px) {
    .dh-booking-request-layout {
        grid-template-columns: 1fr;
    }

    .dh-booking-request-actions {
        justify-content: flex-start;
    }

    .dh-waitlist-details summary {
        width: 100%;
    }
}

@media (max-width: 575.98px) {
    .dh-booking-request-card {
        padding: 1rem !important;
    }

    .dh-booking-request-actions,
    .dh-booking-request-actions form,
    .dh-booking-request-actions .btn {
        width: 100%;
    }
}

@media (max-width: 575.98px) {
    .dh-agenda-mini-card .dh-list-card-row {
        align-items: flex-start !important;
    }

    .dh-agenda-mini-divider {
        display: none;
    }

    .dh-payment-mini-card .d-flex {
        align-items: flex-start !important;
    }
}

/* ═══════════════════════════════════════════════
   PUBLIC PAGES — REDESIGN
   Corsi, Biglietti, Gift Card, Prenotazione, Pensione
   ═══════════════════════════════════════════════ */

/* ── course list card ── */
.dh-public-course-card {
    display: flex;
    flex-direction: column;
}

.dh-public-course-card::before {
    background: linear-gradient(90deg, var(--dh-primary), rgba(241,188,22,0.12));
    margin-bottom: 0.85rem;
}

.dh-course-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    margin-bottom: 0.5rem;
}

.dh-course-chip {
    display: inline-block;
    padding: 0.17rem 0.6rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 650;
    letter-spacing: 0.01em;
    background: rgba(241,188,22,0.13);
    color: #7a5c00;
    border: 1px solid rgba(241,188,22,0.25);
}

.dh-course-chip.chip-online {
    background: rgba(14,165,233,0.1);
    color: #0369a1;
    border-color: rgba(14,165,233,0.22);
}

.dh-course-chip.chip-hybrid {
    background: rgba(168,85,247,0.09);
    color: #6d28d9;
    border-color: rgba(168,85,247,0.2);
}

.dh-course-chip.chip-loc {
    background: rgba(15,23,42,0.06);
    color: var(--dh-ink-soft);
    border-color: rgba(15,23,42,0.1);
}

.dh-course-period {
    font-size: 0.82rem;
    color: var(--dh-ink-soft);
    margin-bottom: 0.5rem;
}

.dh-course-price-tag {
    display: inline-block;
    font-size: 0.84rem;
    font-weight: 700;
    color: #5c3d00;
    background: rgba(241,188,22,0.11);
    border: 1px solid rgba(241,188,22,0.22);
    border-radius: 10px;
    padding: 0.22rem 0.6rem;
    margin-top: auto;
}

.dh-course-card-actions {
    margin-top: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* ── course detail ── */
.dh-course-header-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.4rem;
}

.dh-course-status {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.28rem 0.8rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 650;
}

.dh-course-status.open {
    background: rgba(16,185,129,0.12);
    color: #065f46;
    border: 1px solid rgba(16,185,129,0.24);
}

.dh-course-status.closed,
.dh-course-status.completed {
    background: rgba(148,163,184,0.14);
    color: #475569;
    border: 1px solid rgba(148,163,184,0.24);
}

.dh-course-status.draft {
    background: rgba(245,158,11,0.11);
    color: #92400e;
    border: 1px solid rgba(245,158,11,0.24);
}

.dh-course-detail-info {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.dh-course-info-tile {
    padding: 1rem 1.1rem;
    border-radius: 18px;
    background: rgba(255,255,255,0.78);
    border: 1px solid rgba(15,23,42,0.08);
    box-shadow: 0 4px 16px rgba(15,23,42,0.05);
}

.dh-course-info-tile-label {
    font-size: 0.74rem;
    font-weight: 650;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--dh-ink-soft);
    margin-bottom: 0.35rem;
}

.dh-course-info-tile-value {
    font-size: 1.08rem;
    font-weight: 700;
    color: var(--dh-ink);
    line-height: 1.3;
}

.dh-course-info-tile-sub {
    font-size: 0.78rem;
    color: var(--dh-ink-soft);
    margin-top: 0.2rem;
}

/* ── ticket offer card (from inline) ── */
.dh-ticket-offer {
    border-color: rgba(15,23,42,0.08) !important;
    position: relative;
    overflow: hidden;
    padding: 1.5rem !important;
    display: flex;
    flex-direction: column;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.dh-ticket-offer::before {
    content: '';
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    background: #0ea5e9;
    border-radius: 4px 0 0 4px;
}

.dh-ticket-offer.is-selected {
    border-color: #0ea5e9 !important;
    box-shadow: 0 0 0 2px rgba(14,165,233,0.18);
}

.dh-ticket-offer:hover:not(.is-selected) {
    transform: translateY(-2px);
    box-shadow: 0 18px 46px rgba(15,23,42,0.08);
}

.dh-ticket-offer-type {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #0369a1;
    margin-bottom: 0.35rem;
}

.dh-ticket-offer-price {
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--dh-ink);
    line-height: 1;
    margin: 0.25rem 0 0.6rem;
}

.dh-ticket-offer-actions {
    margin-top: auto;
    padding-top: 0.85rem;
}

/* ── gift card offer (from inline) ── */
.dh-gift-offer-card {
    --gift-accent: #f4b400;
    border-color: rgba(15,23,42,0.08) !important;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.dh-gift-offer-card::before {
    content: '';
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    background: var(--gift-accent);
    border-radius: 4px 0 0 4px;
}

.dh-gift-offer-card > * {
    position: relative;
    z-index: 1;
}

.dh-gift-offer-type {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--dh-ink-soft);
    margin-bottom: 0.35rem;
}

.dh-gift-offer-price {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--gift-accent);
    line-height: 1;
    margin: 0.2rem 0 0.5rem;
}

.dh-gift-offer-card.is-selected {
    border-color: var(--gift-accent) !important;
    box-shadow: 0 0 0 2px rgba(244,180,0,0.16);
}

.dh-gift-offer-card:hover:not(.is-selected) {
    transform: translateY(-2px);
    box-shadow: 0 18px 46px rgba(15,23,42,0.08);
}

.dh-gift-offer-actions {
    margin-top: auto;
    padding-top: 0.85rem;
}

/* ── How-it-works numbered steps (boarding sidebar) ── */
.dh-how-steps {
    display: grid;
    gap: 0.55rem;
}

.dh-how-step {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    font-size: 0.87rem;
    color: var(--dh-ink-soft);
    line-height: 1.45;
}

.dh-how-step-num {
    flex-shrink: 0;
    width: 1.35rem;
    height: 1.35rem;
    border-radius: 50%;
    background: var(--dh-primary);
    color: #0f172a;
    font-size: 0.68rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 0.08rem;
}

/* ── booking form section divider ── */
.dh-form-section-label {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    margin: 0.5rem 0 0.25rem;
    font-size: 0.74rem;
    font-weight: 750;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--dh-ink-soft);
    grid-column: 1 / -1;
}

.dh-form-section-label::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(15,23,42,0.1);
}

/* mobile course cards: full width */
@media (max-width: 767.98px) {
    .dh-course-detail-info {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ── dh-prose (shared rich text – replaces all inline <style> blocks) ── */
.dh-prose {
    font-size: 1.05rem;
    line-height: 1.7;
}
.dh-prose p { margin-bottom: .9rem; line-height: 1.7; }
.dh-prose p:last-child { margin-bottom: 0; }
.dh-prose ul, .dh-prose ol { padding-left: 1.4rem; margin-bottom: .9rem; }
.dh-prose li { margin-bottom: .25rem; }

/* ── Public services cards ──────────────────────────────────────────── */
.dh-service-meta-row {
    display: flex;
    align-items: center;
    gap: .4rem;
    flex-wrap: wrap;
    margin-bottom: .5rem;
}
.dh-service-chip {
    display: inline-flex;
    align-items: center;
    padding: .18rem .6rem;
    border-radius: 99px;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    line-height: 1.2;
    max-width: 100%;
    overflow-wrap: anywhere;
    white-space: normal;
}
.dh-service-chip.chip-duration {
    background: rgba(241,188,22,.14);
    color: #7c5e00;
}
.dh-service-chip.chip-price {
    background: rgba(15,23,42,.06);
    color: #334155;
}

/* ── Booking confirm page ──────────────────────────────────────────── */
.dh-confirm-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    box-shadow: 0 8px 28px rgba(34,197,94,.26);
    color: #fff;
}
.dh-confirm-icon svg { width: 38px; height: 38px; }

.dh-confirm-contact {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    padding: .7rem 1.25rem;
    background: rgba(15,23,42,.04);
    border-radius: 12px;
    font-size: .9rem;
    margin: 1.25rem 0;
}
.dh-confirm-contact a {
    color: var(--dh-ink);
    font-weight: 600;
    text-decoration: none;
}
.dh-confirm-contact a:hover { color: var(--dh-primary); }

/* ── Ticket pass (boarding pass) ──────────────────────────────────── */
.dh-ticket-pass-qr {
    width: 100%;
    max-width: 300px;
    min-height: 280px;
    border: 1px solid rgba(15,23,42,.12);
    border-radius: 14px;
    background: #fff;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.dh-ticket-pass-qr canvas {
    width: 100% !important;
    height: auto !important;
    max-width: 280px;
}
.dh-ticket-pass-qr img {
    width: 100%;
    height: auto;
    max-width: 280px;
    display: block;
}
.dh-ticket-pass-qr-fallback {
    max-width: 240px;
    color: #64748b;
    font-size: .92rem;
    font-weight: 700;
    line-height: 1.45;
    text-align: center;
}
.dh-ticket-pass-code {
    display: inline-flex;
    flex-direction: column;
    gap: .15rem;
    padding: .8rem 1rem;
    border-radius: 16px;
    background: rgba(15,23,42,.04);
    border: 1px solid rgba(15,23,42,.08);
}
.dh-ticket-pass-code span {
    color: #64748b;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.dh-ticket-pass-code strong {
    color: #0f172a;
    font-size: 1.05rem;
    letter-spacing: .02em;
    font-family: 'SFMono-Regular', 'Consolas', 'Liberation Mono', monospace;
}
.dh-ticket-pass-tear {
    border: none;
    border-top: 2px dashed rgba(15,23,42,.13);
    margin: 1.5rem 0;
}

.dh-workspace-switcher {
    margin-top: 1rem;
    padding: .75rem;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: .85rem;
    background: rgba(255,255,255,.08);
}
.dh-workspace-switcher label {
    display: block;
    margin-bottom: .4rem;
    color: rgba(255,255,255,.72);
    font-size: .69rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.dh-workspace-switcher__controls {
    display: grid;
    grid-template-columns: minmax(0,1fr) auto;
    gap: .45rem;
}
.dh-workspace-switcher select,
.dh-workspace-switcher button {
    min-height: 2.4rem;
    border: 0;
    border-radius: .65rem;
    font: inherit;
    font-size: .82rem;
    font-weight: 700;
}
.dh-workspace-switcher select {
    min-width: 0;
    padding: 0 .65rem;
    color: #182234;
    background: #fff;
}
.dh-workspace-switcher button {
    padding: 0 .8rem;
    color: #182234;
    background: #f7c948;
}
.dh-workspace-switcher button:hover,
.dh-workspace-switcher button:focus-visible {
    background: #ffd96a;
}

/* ============================================================
   DOGGIE CONTROL PLANE 2026
   Strato visuale condiviso da console, tenant, staff e clienti.
   È isolato dall'area pubblica per non modificare le landing esistenti.
   ============================================================ */

.dh-app-body[data-dh-ui="2026"] {
    --dh-primary: #f5c84b;
    --dh-primary-dark: #d6a515;
    --dh-primary-soft: #fff5cf;
    --dh-ink: #122033;
    --dh-ink-soft: #607086;
    --dh-ink-muted: #78869a;
    --dh-surface-alt: #f3f5f8;
    --dh-surface-soft: #edf1f5;
    --dh-border: #dce2e9;
    --dh-sidebar: #102238;
    --dh-sidebar-soft: #17314f;
    --dh-radius-xs: 10px;
    --dh-radius-sm: 14px;
    --dh-radius: 18px;
    --dh-radius-md: 22px;
    --dh-radius-lg: 24px;
    --dh-shadow-xs: 0 2px 8px rgba(18, 32, 51, 0.04);
    --dh-shadow-sm: 0 10px 28px rgba(18, 32, 51, 0.07);
    --dh-shadow: 0 22px 54px rgba(18, 32, 51, 0.11);
    color: var(--dh-ink);
    background:
        radial-gradient(circle at 7% 0%, rgba(245, 200, 75, 0.10), transparent 20rem),
        linear-gradient(180deg, #f1f4f8 0%, #f7f8fa 58%, #f3f5f8 100%);
}

.dh-app-body[data-dh-ui="2026"] .dh-sidebar-panel {
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: var(--dh-radius-lg);
    background:
        radial-gradient(circle at 15% 0%, rgba(245, 200, 75, 0.12), transparent 15rem),
        linear-gradient(180deg, #132941 0%, #0e1d30 58%, #0b1828 100%);
    box-shadow: 0 24px 54px rgba(10, 24, 40, 0.22);
}

.dh-app-body[data-dh-ui="2026"] .dh-sidebar-header {
    padding: 0.8rem 0.55rem 1.15rem;
}

.dh-app-body[data-dh-ui="2026"] .dh-sidebar-title {
    font-size: 1.2rem;
    letter-spacing: -0.025em;
}

.dh-app-body[data-dh-ui="2026"] .dh-sidebar-section {
    margin-top: 1.25rem;
    color: rgba(255, 255, 255, 0.38);
}

.dh-app-body[data-dh-ui="2026"] .dh-sidebar .nav-link {
    margin-bottom: 0.18rem;
    padding: 0.72rem 0.8rem;
    border-radius: 12px;
    color: rgba(241, 246, 252, 0.72);
    font-size: 0.88rem;
    font-weight: 650;
    line-height: 1.3;
}

.dh-app-body[data-dh-ui="2026"] .dh-sidebar .nav-link:hover {
    transform: none;
    background: rgba(255, 255, 255, 0.07);
}

.dh-app-body[data-dh-ui="2026"] .dh-sidebar .nav-link.active {
    transform: none;
    background: linear-gradient(90deg, rgba(245, 200, 75, 0.20), rgba(245, 200, 75, 0.07));
    color: #ffffff;
    box-shadow: inset 0 0 0 1px rgba(245, 200, 75, 0.10);
}

.dh-app-body[data-dh-ui="2026"] .dh-workspace-switcher {
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.055);
}

.dh-app-body[data-dh-ui="2026"] .dh-topbar {
    min-height: 64px;
    padding: 0.72rem 1.35rem;
    border-color: rgba(18, 32, 51, 0.08);
    background: rgba(248, 250, 252, 0.90);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.75);
}

.dh-app-body[data-dh-ui="2026"] .dh-topbar-title {
    font-size: 1.02rem;
    font-weight: 750;
}

.dh-app-body[data-dh-ui="2026"] .dh-shell-content {
    margin-inline: auto;
}

.dh-app-body[data-dh-ui="2026"] .dh-card,
.dh-app-body[data-dh-ui="2026"] .dh-highlight-card {
    border-color: rgba(18, 32, 51, 0.08);
    border-radius: var(--dh-radius);
    box-shadow: var(--dh-shadow-sm);
}

.dh-app-body[data-dh-ui="2026"] .dh-highlight-card {
    background:
        radial-gradient(circle at 0% 0%, rgba(245, 200, 75, 0.16), transparent 16rem),
        linear-gradient(145deg, #ffffff 0%, #f5f7fa 100%);
}

.dh-app-body[data-dh-ui="2026"] .dh-highlight-item,
.dh-app-body[data-dh-ui="2026"] .dh-list-card,
.dh-app-body[data-dh-ui="2026"] .dh-action-card {
    border-radius: 14px;
    border-color: rgba(18, 32, 51, 0.08);
    box-shadow: var(--dh-shadow-xs);
}

.dh-app-body[data-dh-ui="2026"] .dh-action-card {
    padding: 0.9rem 0.95rem;
    background: rgba(255, 255, 255, 0.92);
}

.dh-app-body[data-dh-ui="2026"] .dh-action-card:hover {
    transform: translateY(-1px);
    border-color: rgba(214, 165, 21, 0.35);
    box-shadow: 0 12px 26px rgba(18, 32, 51, 0.09);
}

.dh-app-body[data-dh-ui="2026"] .form-control,
.dh-app-body[data-dh-ui="2026"] .form-select {
    border-radius: 12px;
    border-color: var(--dh-border);
    background-color: rgba(255, 255, 255, 0.96);
}

.dh-app-body[data-dh-ui="2026"] .form-control:focus,
.dh-app-body[data-dh-ui="2026"] .form-select:focus {
    border-color: rgba(214, 165, 21, 0.62);
    box-shadow: 0 0 0 0.22rem rgba(245, 200, 75, 0.18);
}

.dh-app-body[data-dh-ui="2026"] .dh-table thead th {
    color: #67768a;
    background: #f7f8fa;
    border-bottom-color: rgba(18, 32, 51, 0.08);
}

.dh-app-body[data-dh-ui="2026"] .dh-table tbody tr:hover,
.dh-app-body[data-dh-ui="2026"] .dh-table tbody tr:hover td {
    background: rgba(245, 200, 75, 0.075) !important;
}

.dh-app-body[data-dh-ui="2026"] :focus-visible {
    outline: 3px solid rgba(245, 200, 75, 0.58);
    outline-offset: 2px;
}

@media (max-width: 1199px) {
    .dh-app-body[data-dh-ui="2026"] .dh-sidebar-panel {
        min-height: 100vh;
        border-radius: 0;
    }

    .dh-app-body[data-dh-ui="2026"] .dh-topbar {
        min-height: 58px;
        padding: 0.65rem 0.85rem;
    }
}

@media (max-width: 767px) {
    .dh-app-body[data-dh-ui="2026"] .dh-card,
    .dh-app-body[data-dh-ui="2026"] .dh-highlight-card {
        border-radius: 16px;
    }

    .dh-app-body[data-dh-ui="2026"] .dh-highlight-grid {
        grid-template-columns: 1fr;
    }
}
.dh-control-hero {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 2rem;
    padding: clamp(1.5rem, 3vw, 2.5rem);
    border: 1px solid rgba(18, 32, 43, .08);
    border-radius: 1.5rem;
    background:
        radial-gradient(circle at 88% 12%, rgba(244, 180, 0, .22), transparent 32%),
        linear-gradient(135deg, #fffdf7 0%, #f7f2e4 100%);
    box-shadow: 0 18px 45px rgba(24, 32, 38, .07);
}

.dh-identity-chip {
    display: flex;
    align-items: center;
    gap: .75rem;
    min-width: min(100%, 18rem);
    padding: .9rem 1rem;
    border: 1px solid rgba(17, 110, 76, .18);
    border-radius: 1rem;
    background: rgba(255, 255, 255, .82);
}

.dh-identity-chip__dot {
    width: .75rem;
    height: .75rem;
    flex: 0 0 auto;
    border-radius: 50%;
    background: #16845b;
    box-shadow: 0 0 0 .3rem rgba(22, 132, 91, .12);
}

.dh-identity-chip strong,
.dh-identity-chip small {
    display: block;
}

.dh-identity-chip small {
    margin-top: .15rem;
    color: #627078;
    font-size: .75rem;
}

.dh-control-security-note {
    margin: 1.25rem 0;
    padding: 1rem 1.15rem;
    border-left: .25rem solid #d29a00;
    border-radius: .75rem;
    background: #fff8df;
    color: #4d4430;
}

.dh-readiness {
    margin-bottom: 1.25rem;
    padding: clamp(1.25rem, 2.5vw, 2rem);
    border: 1px solid rgba(18, 32, 43, .1);
    border-radius: 1.5rem;
    background: #fff;
    box-shadow: 0 16px 42px rgba(24, 32, 38, .06);
}

.dh-readiness__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.5rem;
}

.dh-readiness__head p {
    max-width: 50rem;
    color: #5e6a72;
}

.dh-readiness__verdict {
    display: inline-flex;
    min-height: 2.5rem;
    align-items: center;
    justify-content: center;
    padding: .55rem .9rem;
    border-radius: 999px;
    font-size: .78rem;
    font-weight: 900;
    letter-spacing: .04em;
    white-space: nowrap;
}

.dh-readiness__verdict.is-ready {
    background: #dff6eb;
    color: #0d6747;
}

.dh-readiness__verdict.is-blocked {
    background: #fbe5e5;
    color: #972c2c;
}

.dh-readiness__progress {
    height: .55rem;
    margin: 1.25rem 0;
    overflow: hidden;
    border-radius: 999px;
    background: #edf1f3;
}

.dh-readiness__progress-bar {
    width: var(--dh-readiness-progress, 0%);
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #d29a00, #16845b);
    transition: width .25s ease;
}

.dh-readiness__metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: .75rem;
    margin-bottom: 1.25rem;
}

.dh-readiness__metrics > div {
    display: flex;
    align-items: baseline;
    gap: .45rem;
    padding: .8rem .9rem;
    border-radius: .9rem;
    background: #f7f8f8;
}

.dh-readiness__metrics strong {
    color: #17232c;
    font-size: 1.25rem;
}

.dh-readiness__metrics span {
    color: #68747b;
    font-size: .78rem;
}

.dh-readiness__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: .8rem;
}

.dh-readiness-card {
    display: flex;
    min-height: 13.5rem;
    flex-direction: column;
    padding: 1rem;
    border: 1px solid rgba(18, 32, 43, .1);
    border-top: .22rem solid #aab4ba;
    border-radius: 1rem;
    background: #fff;
}

.dh-readiness-card.is-ready { border-top-color: #16845b; }
.dh-readiness-card.is-attention { border-top-color: #d29a00; }
.dh-readiness-card.is-blocked { border-top-color: #c54c4c; }

.dh-readiness-card__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    margin-bottom: .85rem;
}

.dh-readiness-card__icon {
    display: inline-flex;
    width: 1.85rem;
    height: 1.85rem;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #edf1f3;
    color: #47555d;
    font-weight: 900;
}

.dh-readiness-card.is-ready .dh-readiness-card__icon {
    background: #e1f5ec;
    color: #116b4b;
}

.dh-readiness-card.is-attention .dh-readiness-card__icon {
    background: #fff1c6;
    color: #795a00;
}

.dh-readiness-card.is-blocked .dh-readiness-card__icon {
    background: #fbe5e5;
    color: #9f3030;
}

.dh-readiness-card h3 {
    margin-bottom: .5rem;
    color: #17232c;
    font-size: 1rem;
    font-weight: 800;
}

.dh-readiness-card p {
    margin-bottom: 1rem;
    color: #66737b;
    font-size: .8rem;
    line-height: 1.5;
}

.dh-readiness-card a {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    margin-top: auto;
    color: #17232c;
    font-size: .8rem;
    font-weight: 800;
    text-decoration: none;
}

.dh-readiness-card a:hover {
    color: #8c6800;
}

.dh-readiness__signals {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(18, 32, 43, .08);
}

.dh-readiness__signals span {
    padding: .35rem .6rem;
    border-radius: 999px;
    background: #f2f5f6;
    color: #5b6870;
    font-size: .72rem;
    font-weight: 700;
}

.dh-control-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
}

.dh-control-card {
    display: flex;
    min-height: 25rem;
    flex-direction: column;
    gap: 1.25rem;
    padding: 1.5rem;
    border: 1px solid rgba(18, 32, 43, .1);
    border-radius: 1.25rem;
    background: #fff;
    box-shadow: 0 12px 32px rgba(24, 32, 38, .055);
}

.dh-control-card--primary {
    border-color: rgba(210, 154, 0, .32);
    background: linear-gradient(160deg, #fffdf8 0%, #fff8e2 100%);
}

.dh-control-card__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.dh-control-card__icon {
    display: inline-flex;
    width: 3rem;
    height: 3rem;
    align-items: center;
    justify-content: center;
    border-radius: .9rem;
    background: #17232c;
    color: #fff;
    font-size: .86rem;
    font-weight: 800;
    letter-spacing: .04em;
}

.dh-control-card__eyebrow {
    margin-bottom: .35rem;
    color: #94700c;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .11em;
    text-transform: uppercase;
}

.dh-control-card h2 {
    margin-bottom: .65rem;
    font-size: 1.35rem;
    font-weight: 800;
}

.dh-control-card p {
    margin: 0;
    color: #5e6a72;
}

.dh-control-card__meta {
    display: grid;
    gap: .4rem;
    padding: .85rem 0;
    border-top: 1px solid rgba(18, 32, 43, .08);
    color: #66737b;
    font-size: .82rem;
}

.dh-status-pill {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    padding: .35rem .65rem;
    border-radius: 99rem;
    background: #edf1f3;
    color: #4b5961;
    font-size: .72rem;
    font-weight: 800;
    white-space: nowrap;
}

.dh-status-pill.is-success { background: #e1f5ec; color: #116b4b; }
.dh-status-pill.is-info { background: #e3f0fb; color: #185d91; }
.dh-status-pill.is-warning { background: #fff1c6; color: #795a00; }
.dh-status-pill.is-danger { background: #fbe5e5; color: #9f3030; }

.dh-control-roadmap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    margin-top: 1.25rem;
    padding: 1.5rem;
    border-radius: 1.25rem;
    background: #17232c;
    color: #fff;
}

.dh-control-roadmap p {
    max-width: 54rem;
    color: rgba(255, 255, 255, .72);
}

@media (max-width: 900px) {
    .dh-control-hero,
    .dh-readiness__head,
    .dh-control-roadmap {
        align-items: stretch;
        flex-direction: column;
    }

    .dh-readiness__verdict {
        align-self: flex-start;
    }

    .dh-readiness__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dh-control-grid {
        grid-template-columns: 1fr;
    }

    .dh-control-card {
        min-height: 0;
    }
}

@media (max-width: 620px) {
    .dh-readiness__metrics,
    .dh-readiness__grid {
        grid-template-columns: 1fr;
    }

    .dh-readiness-card {
        min-height: 0;
    }
}

/* ============================================================
   DOGGIEHUB PREMIUM WORKSPACE — LUGLIO 2026
   Strato autorevole per shell tenant e dashboard operative.
   Mantiene il design system condiviso e risolve le collisioni
   lasciate dagli strati legacy senza toccare le pagine pubbliche.
   ============================================================ */

.dh-app-body[data-dh-ui="2026"] .dh-shell {
    --dh-workspace-accent: #d6a515;
    --dh-workspace-accent-rgb: 214, 165, 21;
    --dh-workspace-soft: #fff7db;
}

.dh-app-body[data-dh-ui="2026"] .dh-shell[data-dh-workspace="groom"] {
    --dh-workspace-accent: #8a5bc2;
    --dh-workspace-accent-rgb: 138, 91, 194;
    --dh-workspace-soft: #f4edfc;
}

.dh-app-body[data-dh-ui="2026"] .dh-shell[data-dh-workspace="vet"] {
    --dh-workspace-accent: #147c6c;
    --dh-workspace-accent-rgb: 20, 124, 108;
    --dh-workspace-soft: #e8f7f3;
}

.dh-app-body[data-dh-ui="2026"] .dh-shell[data-dh-workspace="admin"] {
    --dh-workspace-accent: #3978c5;
    --dh-workspace-accent-rgb: 57, 120, 197;
    --dh-workspace-soft: #eaf3fd;
}

.dh-app-body[data-dh-ui="2026"] .dh-shell-main {
    background:
        radial-gradient(circle at 92% 0%, rgba(var(--dh-workspace-accent-rgb), 0.075), transparent 24rem),
        linear-gradient(180deg, rgba(247, 249, 252, 0.96), rgba(243, 246, 249, 0.98));
}

.dh-app-body[data-dh-ui="2026"] .dh-sidebar-panel {
    display: flex;
    flex-direction: column;
    scrollbar-gutter: stable;
}

.dh-app-body[data-dh-ui="2026"] .dh-sidebar-header {
    margin-bottom: 0.55rem;
    border-bottom-color: rgba(255, 255, 255, 0.09);
}

.dh-app-body[data-dh-ui="2026"] .dh-sidebar-kicker::before {
    background: var(--dh-workspace-accent);
    box-shadow: 0 0 0 4px rgba(var(--dh-workspace-accent-rgb), 0.14);
}

.dh-app-body[data-dh-ui="2026"] .dh-sidebar .nav {
    padding-bottom: 0.65rem;
}

.dh-app-body[data-dh-ui="2026"] .dh-sidebar-section {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin: 1.2rem 0.75rem 0.4rem;
    color: rgba(235, 242, 250, 0.48);
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    line-height: 1.2;
    text-transform: uppercase;
}

.dh-app-body[data-dh-ui="2026"] .dh-sidebar-section::after {
    content: "";
    height: 1px;
    flex: 1 1 auto;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.12), transparent);
}

.dh-app-body[data-dh-ui="2026"] .dh-sidebar .nav-link {
    position: relative;
    min-height: 42px;
    padding: 0.68rem 0.8rem 0.68rem 1rem;
    overflow: hidden !important;
    color: rgba(239, 245, 252, 0.76);
    font-size: 0.84rem;
    letter-spacing: -0.005em;
    transition: color 150ms ease, background-color 150ms ease, box-shadow 150ms ease;
}

.dh-app-body[data-dh-ui="2026"] .dh-sidebar .nav-link::before {
    content: "";
    position: absolute;
    inset: 9px auto 9px 0;
    width: 3px;
    border-radius: 999px;
    background: transparent;
}

.dh-app-body[data-dh-ui="2026"] .dh-sidebar .nav-link:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.07);
}

.dh-app-body[data-dh-ui="2026"] .dh-sidebar .nav-link.active {
    background: linear-gradient(90deg, rgba(var(--dh-workspace-accent-rgb), 0.22), rgba(255, 255, 255, 0.045));
    box-shadow:
        inset 0 0 0 1px rgba(var(--dh-workspace-accent-rgb), 0.16),
        0 7px 18px rgba(3, 12, 24, 0.13);
}

.dh-app-body[data-dh-ui="2026"] .dh-sidebar .nav-link.active::before {
    background: var(--dh-workspace-accent);
    box-shadow: 0 0 12px rgba(var(--dh-workspace-accent-rgb), 0.65);
}

.dh-app-body[data-dh-ui="2026"] .dh-sidebar-count {
    min-width: 1.45rem;
    padding: 0.18rem 0.42rem;
    border: 1px solid rgba(var(--dh-workspace-accent-rgb), 0.28);
    background: rgba(var(--dh-workspace-accent-rgb), 0.18);
    color: #ffffff;
}

.dh-app-body[data-dh-ui="2026"] .dh-sidebar-footer {
    margin-top: auto;
    padding-top: 0.9rem;
    border-top-color: rgba(255, 255, 255, 0.09);
}

.dh-sidebar-locale {
    margin-bottom: 0.85rem;
}

.dh-sidebar-locale > label {
    display: block;
    margin: 0 0 0.38rem 0.1rem;
    color: rgba(235, 242, 250, 0.52);
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.dh-sidebar-locale__control {
    position: relative;
}

.dh-sidebar-locale__control::after {
    content: "⌄";
    position: absolute;
    top: 50%;
    right: 0.8rem;
    color: rgba(255, 255, 255, 0.66);
    font-size: 0.9rem;
    line-height: 1;
    pointer-events: none;
    transform: translateY(-58%);
}

.dh-sidebar-locale select {
    width: 100%;
    min-height: 40px;
    padding: 0.55rem 2rem 0.55rem 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 11px;
    appearance: none;
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.07);
    font-size: 0.8rem;
    font-weight: 700;
}

.dh-sidebar-locale select:focus {
    border-color: rgba(var(--dh-workspace-accent-rgb), 0.68);
    box-shadow: 0 0 0 3px rgba(var(--dh-workspace-accent-rgb), 0.16);
    outline: 0;
}

.dh-app-body[data-dh-ui="2026"] .dh-topbar {
    min-height: 68px;
    padding: 0.72rem clamp(1rem, 2vw, 1.75rem);
    border-bottom-color: rgba(18, 32, 51, 0.08);
    background: rgba(248, 250, 252, 0.84);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.85),
        0 9px 25px rgba(18, 32, 51, 0.035);
    backdrop-filter: blur(18px) saturate(150%);
    -webkit-backdrop-filter: blur(18px) saturate(150%);
}

.dh-app-body[data-dh-ui="2026"] .dh-topbar-title {
    color: var(--dh-ink);
    font-size: 1.02rem;
    font-weight: 800;
    letter-spacing: -0.025em;
}

.dh-app-body[data-dh-ui="2026"] .dh-topbar-subtitle {
    margin-top: 0.14rem;
    color: var(--dh-ink-muted);
    font-size: 0.72rem;
    font-weight: 650;
}

.dh-app-body[data-dh-ui="2026"] .dh-topbar-subtitle span {
    margin-inline: 0.28rem;
    color: var(--dh-workspace-accent);
}

.dh-app-body[data-dh-ui="2026"] .dh-topbar-avatar {
    border-color: rgba(var(--dh-workspace-accent-rgb), 0.24);
    background: var(--dh-workspace-soft);
    color: var(--dh-ink);
    box-shadow: 0 7px 16px rgba(18, 32, 51, 0.08);
}

.dh-app-body[data-dh-ui="2026"] .dh-shell-content {
    width: min(100%, 1460px);
    min-height: calc(100vh - 68px);
    margin-inline: auto;
}

.dh-app-body[data-dh-ui="2026"] .btn {
    border-radius: 12px;
    font-weight: 750;
    letter-spacing: -0.01em;
}

.dh-app-body[data-dh-ui="2026"] .btn:not(.btn-sm) {
    min-height: 42px;
    padding: 0.58rem 0.92rem;
}

.dh-app-body[data-dh-ui="2026"] .btn-sm {
    min-height: 34px;
    border-radius: 10px;
}

.dh-app-body[data-dh-ui="2026"] .dh-primary-btn {
    border-color: var(--dh-primary);
    background: linear-gradient(180deg, #f8d469 0%, #f1be30 100%);
    color: #172235;
    box-shadow: 0 8px 18px rgba(214, 165, 21, 0.17);
}

.dh-app-body[data-dh-ui="2026"] .dh-primary-btn:hover,
.dh-app-body[data-dh-ui="2026"] .dh-primary-btn:focus {
    border-color: #d5a00c;
    background: linear-gradient(180deg, #f9dc82 0%, #eeb521 100%);
    color: #111b2a;
    box-shadow: 0 11px 24px rgba(214, 165, 21, 0.23);
}

.dh-app-body[data-dh-ui="2026"] .btn-outline-dark {
    border-color: rgba(18, 32, 51, 0.16);
    color: #203047;
    background: rgba(255, 255, 255, 0.78);
}

.dh-app-body[data-dh-ui="2026"] .btn-outline-dark:hover,
.dh-app-body[data-dh-ui="2026"] .btn-outline-dark:focus {
    border-color: rgba(var(--dh-workspace-accent-rgb), 0.38);
    color: #152238;
    background: var(--dh-workspace-soft);
}

.dh-app-body[data-dh-ui="2026"] .dh-card,
.dh-app-body[data-dh-ui="2026"] .dh-highlight-card {
    border-color: rgba(18, 32, 51, 0.075);
    background-color: rgba(255, 255, 255, 0.96);
    box-shadow:
        0 1px 2px rgba(18, 32, 51, 0.035),
        0 14px 34px rgba(18, 32, 51, 0.055);
}

.dh-app-body[data-dh-ui="2026"] .dh-panel-title {
    margin: 0 0 0.24rem;
    color: var(--dh-ink);
    font-size: 1.08rem;
    font-weight: 820;
    letter-spacing: -0.025em;
}

.dh-app-body[data-dh-ui="2026"] .dh-panel-copy {
    max-width: 62ch;
    color: var(--dh-ink-soft);
    line-height: 1.5;
}

.dh-app-body[data-dh-ui="2026"] .dh-list-card {
    border-color: rgba(18, 32, 51, 0.075);
    background: rgba(255, 255, 255, 0.94);
    color: var(--dh-ink);
    transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.dh-app-body[data-dh-ui="2026"] a.dh-list-card:hover {
    border-color: rgba(var(--dh-workspace-accent-rgb), 0.32);
    color: var(--dh-ink);
    box-shadow: 0 11px 25px rgba(18, 32, 51, 0.075);
    transform: translateY(-1px);
}

.dh-app-body[data-dh-ui="2026"] .dh-context-hero {
    position: relative;
    overflow: hidden;
    padding: clamp(1.25rem, 2vw, 1.8rem);
    border-color: rgba(var(--dh-workspace-accent-rgb), 0.15);
    border-radius: 24px;
    background:
        radial-gradient(circle at 88% 5%, rgba(var(--dh-workspace-accent-rgb), 0.18), transparent 19rem),
        linear-gradient(140deg, rgba(255, 255, 255, 0.99), rgba(245, 248, 251, 0.97));
    box-shadow:
        0 1px 2px rgba(18, 32, 51, 0.025),
        0 18px 42px rgba(18, 32, 51, 0.07);
}

.dh-app-body[data-dh-ui="2026"] .dh-context-hero::after {
    content: "";
    position: absolute;
    right: -3rem;
    bottom: -5rem;
    width: 13rem;
    height: 13rem;
    border: 1px solid rgba(var(--dh-workspace-accent-rgb), 0.13);
    border-radius: 50%;
    pointer-events: none;
}

.dh-app-body[data-dh-ui="2026"] .dh-context-hero__content,
.dh-app-body[data-dh-ui="2026"] .dh-context-hero__actions {
    position: relative;
    z-index: 1;
}

.dh-app-body[data-dh-ui="2026"] .dh-context-hero__eyebrow {
    margin-bottom: 0.52rem;
    color: var(--dh-workspace-accent);
    font-size: 0.7rem;
    letter-spacing: 0.115em;
}

.dh-app-body[data-dh-ui="2026"] .dh-context-hero__title {
    font-size: clamp(1.45rem, 2.4vw, 2.12rem);
    line-height: 1.1;
}

.dh-app-body[data-dh-ui="2026"] .dh-context-hero__copy {
    max-width: 66ch;
    margin-top: 0.62rem;
}

.dh-dashboard-page > .row,
.dh-dashboard-page > .dh-card,
.dh-dashboard-page > .dh-context-hero {
    animation: dh-premium-enter 360ms ease both;
}

.dh-dashboard-page > :nth-child(2) { animation-delay: 35ms; }
.dh-dashboard-page > :nth-child(3) { animation-delay: 70ms; }
.dh-dashboard-page > :nth-child(4) { animation-delay: 105ms; }

@keyframes dh-premium-enter {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dh-app-body[data-dh-ui="2026"] .dh-highlight-item {
    min-height: 124px;
    border-color: rgba(18, 32, 51, 0.07);
    background: rgba(255, 255, 255, 0.78);
}

.dh-app-body[data-dh-ui="2026"] .dh-kpi {
    min-height: 142px;
    padding: 1.25rem;
}

.dh-app-body[data-dh-ui="2026"] .dh-kpi::after {
    background: radial-gradient(circle, rgba(var(--dh-workspace-accent-rgb), 0.15), rgba(var(--dh-workspace-accent-rgb), 0) 69%);
}

.dh-app-body[data-dh-ui="2026"] .dh-kpi-label {
    color: var(--dh-ink-muted);
    font-size: 0.72rem;
    letter-spacing: 0.09em;
}

.dh-app-body[data-dh-ui="2026"] .dh-kpi-value {
    margin-top: 0.62rem;
    color: var(--dh-ink);
    font-size: clamp(1.72rem, 3vw, 2.3rem);
}

.dh-app-body[data-dh-ui="2026"] .dh-table {
    margin-bottom: 0;
}

.dh-app-body[data-dh-ui="2026"] .dh-table thead th {
    padding-block: 0.82rem;
    color: #617086;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.055em;
    text-transform: uppercase;
}

.dh-app-body[data-dh-ui="2026"] .dh-table tbody td {
    padding-block: 0.9rem;
    vertical-align: middle;
}

.dh-app-body[data-dh-ui="2026"] .table-responsive {
    border-radius: 14px;
    scrollbar-width: thin;
    scrollbar-color: rgba(18, 32, 51, 0.18) transparent;
}

.dh-mobile-kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.9rem;
}

.dh-mobile-panel {
    padding: 1.35rem;
}

.dh-mobile-panel .dh-panel-head {
    margin-bottom: 1rem;
}

.dh-mobile-panel .dh-empty {
    border-radius: 13px;
}

.dh-mobile-action-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
}

.dh-mobile-action {
    display: flex;
    min-height: 48px;
    align-items: center;
    justify-content: space-between;
    gap: 0.7rem;
    padding: 0.72rem 0.85rem;
    border: 1px solid rgba(18, 32, 51, 0.09);
    border-radius: 12px;
    background: #f8fafc;
    color: var(--dh-ink);
    font-size: 0.82rem;
    font-weight: 750;
    text-decoration: none;
    transition: border-color 150ms ease, background-color 150ms ease, transform 150ms ease;
}

.dh-mobile-action span:last-child {
    color: var(--dh-workspace-accent);
    font-size: 1rem;
}

.dh-mobile-action:hover {
    border-color: rgba(var(--dh-workspace-accent-rgb), 0.32);
    background: var(--dh-workspace-soft);
    color: var(--dh-ink);
    transform: translateY(-1px);
}

.dh-mobile-list-row {
    display: block;
    padding: 0.9rem 0.95rem;
}

.dh-mobile-list-row .small {
    overflow: hidden;
    line-height: 1.45;
    text-overflow: ellipsis;
}

.dh-mobile-preferences__form {
    display: grid;
    gap: 0.85rem;
}

.dh-mobile-preferences__group {
    min-width: 0;
    margin: 0;
    padding: 0.9rem;
    border: 1px solid rgba(18, 32, 51, 0.075);
    border-radius: 13px;
    background: #f8fafc;
}

.dh-mobile-preferences__group legend {
    float: none;
    width: auto;
    margin: 0 0 0.65rem;
    padding: 0;
    color: var(--dh-ink);
    font-size: 0.78rem;
    font-weight: 800;
}

.dh-preference-control {
    display: flex;
    min-height: 42px;
    align-items: flex-start;
    gap: 0.62rem;
    margin: 0;
    padding: 0.62rem 0.72rem;
    border: 1px solid rgba(18, 32, 51, 0.075);
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.92);
    cursor: pointer;
}

.dh-preference-control .form-check-input {
    flex: 0 0 auto;
    margin: 0.16rem 0 0;
}

.dh-preference-control .form-check-label {
    color: #34445a;
    font-size: 0.82rem;
    font-weight: 650;
}

.dh-preference-control:has(.form-check-input:checked) {
    border-color: rgba(var(--dh-workspace-accent-rgb), 0.26);
    background: var(--dh-workspace-soft);
}

.dh-app-body[data-dh-ui="2026"] .form-check-input:checked {
    border-color: var(--dh-workspace-accent);
    background-color: var(--dh-workspace-accent);
}

@media (min-width: 1200px) {
    .dh-app-body[data-dh-ui="2026"] .dh-shell > .row {
        display: grid;
        grid-template-columns: 282px minmax(0, 1fr);
    }

    .dh-app-body[data-dh-ui="2026"] .dh-sidebar,
    .dh-app-body[data-dh-ui="2026"] .dh-shell-main {
        width: auto;
        max-width: none;
    }

    .dh-app-body[data-dh-ui="2026"] .dh-sidebar.offcanvas-xl {
        position: sticky;
        top: 0;
        height: 100vh;
        min-height: 100vh;
        overflow: hidden !important;
    }

    .dh-app-body[data-dh-ui="2026"] .dh-sidebar.offcanvas-xl .offcanvas-body {
        height: 100%;
        max-height: 100% !important;
        overflow: hidden !important;
    }

    .dh-app-body[data-dh-ui="2026"] .dh-sidebar-panel {
        position: relative !important;
        top: 0 !important;
        height: calc(100vh - 2rem) !important;
        min-height: calc(100vh - 2rem) !important;
        max-height: calc(100vh - 2rem) !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
    }

    .dh-mobile-preferences {
        position: sticky;
        top: 5.35rem;
    }
}

@media (min-width: 1600px) {
    .dh-app-body[data-dh-ui="2026"] .dh-shell > .row {
        grid-template-columns: 298px minmax(0, 1fr);
    }
}

@media (max-width: 1199px) {
    .dh-app-body[data-dh-ui="2026"] .dh-sidebar-panel {
        height: 100vh;
        max-height: 100vh;
        overflow-y: auto;
        border: 0;
        border-radius: 0;
    }

    .dh-app-body[data-dh-ui="2026"] .dh-topbar {
        min-height: 60px;
    }

    .dh-app-body[data-dh-ui="2026"] .dh-shell-content {
        min-height: calc(100vh - 60px);
    }

    .dh-mobile-kpi-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .dh-app-body[data-dh-ui="2026"] .dh-shell-content {
        width: 100%;
        padding:
            0.9rem
            max(0.9rem, env(safe-area-inset-right))
            max(1.2rem, env(safe-area-inset-bottom))
            max(0.9rem, env(safe-area-inset-left)) !important;
    }

    .dh-app-body[data-dh-ui="2026"] .dh-topbar {
        padding: 0.58rem max(0.78rem, env(safe-area-inset-right)) 0.58rem max(0.78rem, env(safe-area-inset-left));
    }

    .dh-app-body[data-dh-ui="2026"] .dh-mobile-menu-btn {
        min-height: 38px;
        padding: 0.42rem 0.72rem;
    }

    .dh-app-body[data-dh-ui="2026"] .dh-topbar-copy {
        min-width: 0;
    }

    .dh-app-body[data-dh-ui="2026"] .dh-topbar-title {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .dh-app-body[data-dh-ui="2026"] .dh-context-hero {
        gap: 1rem;
        padding: 1.05rem;
        border-radius: 18px;
    }

    .dh-app-body[data-dh-ui="2026"] .dh-context-hero__title {
        font-size: 1.42rem;
    }

    .dh-app-body[data-dh-ui="2026"] .dh-context-hero__copy {
        font-size: 0.88rem;
    }

    .dh-app-body[data-dh-ui="2026"] .dh-context-hero__actions {
        display: grid;
        grid-template-columns: 1fr;
        width: 100%;
    }

    .dh-app-body[data-dh-ui="2026"] .dh-context-hero__actions .btn {
        width: 100%;
    }

    .dh-app-body[data-dh-ui="2026"] .dh-card,
    .dh-app-body[data-dh-ui="2026"] .dh-highlight-card {
        border-radius: 15px;
    }

    .dh-app-body[data-dh-ui="2026"] .dh-panel-head {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.72rem;
    }

    .dh-app-body[data-dh-ui="2026"] .dh-panel-head > .btn,
    .dh-app-body[data-dh-ui="2026"] .dh-panel-head > a.btn {
        width: 100%;
    }

    .dh-app-body[data-dh-ui="2026"] .dh-kpi {
        min-height: 126px;
        padding: 0.95rem;
    }

    .dh-app-body[data-dh-ui="2026"] .dh-kpi-label {
        min-height: 2.2em;
        align-items: flex-start;
        font-size: 0.64rem;
        line-height: 1.25;
    }

    .dh-app-body[data-dh-ui="2026"] .dh-kpi-value {
        margin-top: 0.38rem;
        font-size: 1.62rem;
    }

    .dh-app-body[data-dh-ui="2026"] .dh-kpi-note {
        font-size: 0.75rem;
        line-height: 1.3;
    }

    .dh-mobile-panel {
        padding: 1rem;
    }

    .dh-mobile-action-grid {
        grid-template-columns: 1fr;
    }

    .dh-mobile-action {
        min-height: 50px;
    }

    .dh-mobile-list-row {
        padding: 0.82rem;
    }

    .dh-preference-control {
        min-height: 46px;
    }

    .dh-app-body[data-dh-ui="2026"] .table-responsive {
        margin-inline: -0.35rem;
        padding-inline: 0.35rem;
        border-radius: 0;
    }
}

@media (max-width: 420px) {
    .dh-app-body[data-dh-ui="2026"] .dh-topbar-brand-sep,
    .dh-app-body[data-dh-ui="2026"] .dh-topbar-copy {
        display: none;
    }
}

@media (max-width: 380px) {
    .dh-mobile-kpi-grid {
        grid-template-columns: 1fr;
    }

    .dh-app-body[data-dh-ui="2026"] .dh-kpi-label {
        min-height: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .dh-dashboard-page > .row,
    .dh-dashboard-page > .dh-card,
    .dh-dashboard-page > .dh-context-hero {
        animation: none;
    }

    .dh-app-body[data-dh-ui="2026"] *,
    .dh-app-body[data-dh-ui="2026"] *::before,
    .dh-app-body[data-dh-ui="2026"] *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}

/* Prenotazioni online — inbox operativa tenant */

.dh-inbox-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
}

.dh-inbox-summary > div {
    display: flex;
    min-height: 76px;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.9rem 1.05rem;
    border: 1px solid rgba(18, 32, 51, 0.075);
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 8px 22px rgba(18, 32, 51, 0.045);
}

.dh-inbox-summary span {
    color: var(--dh-ink-soft);
    font-size: 0.78rem;
    font-weight: 720;
    line-height: 1.35;
}

.dh-inbox-summary strong {
    color: var(--dh-ink);
    font-size: 1.5rem;
    font-weight: 850;
    letter-spacing: -0.04em;
}

.dh-booking-inbox__list {
    padding: 1rem;
}

.dh-app-body[data-dh-ui="2026"] .dh-booking-request-card {
    position: relative;
    padding: 1.1rem;
    overflow: hidden;
    border-left: 1px solid rgba(18, 32, 51, 0.075);
}

.dh-app-body[data-dh-ui="2026"] .dh-booking-request-card::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 3px;
    background: rgba(18, 32, 51, 0.12);
}

.dh-app-body[data-dh-ui="2026"] .dh-booking-request-card.is-priority::before {
    background: var(--dh-workspace-accent);
    box-shadow: 0 0 14px rgba(var(--dh-workspace-accent-rgb), 0.28);
}

.dh-booking-request-layout {
    gap: 0.9rem 1rem;
}

.dh-booking-request-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.85rem;
    margin-bottom: 0.55rem;
}

.dh-booking-request-customer {
    min-width: 0;
    color: var(--dh-ink);
    font-size: 1rem;
    font-weight: 820;
    letter-spacing: -0.02em;
    overflow-wrap: anywhere;
}

.dh-booking-request-contact,
.dh-booking-request-meta,
.dh-booking-request-note {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.75rem;
    color: var(--dh-ink-soft);
    font-size: 0.78rem;
    line-height: 1.45;
}

.dh-booking-request-contact span,
.dh-booking-request-meta span,
.dh-booking-request-meta strong,
.dh-booking-request-note > span:not(.dh-badge) {
    position: relative;
}

.dh-booking-request-contact span + span::before,
.dh-booking-request-meta > * + *::before,
.dh-booking-request-note > span + span::before {
    content: "·";
    position: absolute;
    left: -0.5rem;
    color: rgba(18, 32, 51, 0.28);
}

.dh-booking-request-meta {
    margin-top: 0.4rem;
}

.dh-booking-request-meta strong {
    color: #27374d;
    font-weight: 760;
}

.dh-booking-request-note {
    margin-top: 0.55rem;
    padding: 0.55rem 0.68rem;
    border-radius: 10px;
    background: #f7f9fb;
}

.dh-booking-request-actions {
    max-width: 17rem;
}

.dh-booking-request-actions form {
    margin: 0;
}

.dh-app-body[data-dh-ui="2026"] .dh-waitlist-details {
    border: 1px solid rgba(var(--dh-workspace-accent-rgb), 0.2);
    border-radius: 13px;
    background:
        linear-gradient(135deg, rgba(var(--dh-workspace-accent-rgb), 0.07), rgba(255, 255, 255, 0.96));
}

.dh-app-body[data-dh-ui="2026"] .dh-waitlist-details[open] {
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.65);
}

.dh-app-body[data-dh-ui="2026"] .dh-waitlist-details summary {
    list-style: none;
    cursor: pointer;
}

.dh-app-body[data-dh-ui="2026"] .dh-waitlist-details summary::-webkit-details-marker {
    display: none;
}

@media (max-width: 991px) {
    .dh-booking-request-head {
        flex-direction: column;
    }

    .dh-booking-request-actions {
        width: 100%;
        max-width: none;
    }
}

@media (max-width: 767px) {
    .dh-inbox-summary {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .dh-inbox-summary > div {
        min-height: 58px;
        padding: 0.7rem 0.85rem;
    }

    .dh-inbox-summary strong {
        font-size: 1.25rem;
    }

    .dh-booking-inbox__list {
        padding: 0.7rem;
    }

    .dh-app-body[data-dh-ui="2026"] .dh-booking-request-card {
        padding: 0.9rem !important;
    }

    .dh-booking-request-contact,
    .dh-booking-request-meta,
    .dh-booking-request-note {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.22rem;
    }

    .dh-booking-request-contact span + span::before,
    .dh-booking-request-meta > * + *::before,
    .dh-booking-request-note > span + span::before {
        display: none;
    }

    .dh-booking-request-actions,
    .dh-booking-request-actions form,
    .dh-booking-request-actions .btn {
        width: 100%;
    }

    .dh-waitlist-details .col-12.d-flex {
        display: block !important;
    }

    .dh-waitlist-details .col-12.d-flex .btn {
        width: 100%;
    }
}

/* Anagrafiche premium — clienti e cani come centro operativo */

.dh-app-body[data-dh-ui="2026"] .dh-records-hero {
    background:
        radial-gradient(circle at 91% 18%, rgba(var(--dh-workspace-accent-rgb), 0.14), transparent 31%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(var(--dh-workspace-accent-rgb), 0.055));
}

.dh-record-overview {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.75rem;
}

.dh-record-overview > div {
    position: relative;
    display: flex;
    min-height: 82px;
    align-items: center;
    justify-content: space-between;
    gap: 0.9rem;
    padding: 0.95rem 1.05rem;
    overflow: hidden;
    border: 1px solid rgba(18, 32, 51, 0.075);
    border-radius: 17px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 10px 26px rgba(18, 32, 51, 0.05);
}

.dh-record-overview > div::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 3px;
    background: rgba(var(--dh-workspace-accent-rgb), 0.76);
}

.dh-record-overview span {
    max-width: 9.5rem;
    color: var(--dh-ink-soft);
    font-size: 0.75rem;
    font-weight: 740;
    line-height: 1.35;
}

.dh-record-overview strong {
    color: var(--dh-ink);
    font-size: 1.65rem;
    font-weight: 860;
    letter-spacing: -0.045em;
}

.dh-app-body[data-dh-ui="2026"] .dh-records-panel {
    border-color: rgba(18, 32, 51, 0.07);
    box-shadow: 0 16px 42px rgba(18, 32, 51, 0.055);
}

.dh-records-toolbar {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.85rem;
}

.dh-records-export {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.dh-app-body[data-dh-ui="2026"] .dh-record-card {
    position: relative;
    padding: 1rem 1.05rem;
    overflow: hidden;
    border-color: rgba(18, 32, 51, 0.07);
    background:
        linear-gradient(112deg, rgba(255, 255, 255, 0.99), rgba(var(--dh-workspace-accent-rgb), 0.022));
    box-shadow: 0 7px 21px rgba(18, 32, 51, 0.035);
    transition:
        transform 160ms ease,
        border-color 160ms ease,
        box-shadow 160ms ease;
}

.dh-app-body[data-dh-ui="2026"] .dh-record-card::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 3px;
    background: rgba(var(--dh-workspace-accent-rgb), 0.62);
}

@media (hover: hover) {
    .dh-app-body[data-dh-ui="2026"] .dh-record-card:hover {
        z-index: 1;
        transform: translateY(-2px);
        border-color: rgba(var(--dh-workspace-accent-rgb), 0.24);
        box-shadow: 0 14px 32px rgba(18, 32, 51, 0.075);
    }
}

.dh-record-card__main {
    display: flex;
    min-width: 0;
    flex: 1 1 auto;
    align-items: flex-start;
    gap: 0.85rem;
}

.dh-record-avatar {
    display: grid;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    place-items: center;
    border: 1px solid rgba(var(--dh-workspace-accent-rgb), 0.17);
    border-radius: 15px;
    color: var(--dh-workspace-accent-strong);
    background: rgba(var(--dh-workspace-accent-rgb), 0.1);
    font-size: 0.78rem;
    font-weight: 860;
    letter-spacing: 0.04em;
}

.dh-record-avatar--dog {
    border-radius: 50% 50% 45% 45%;
    background:
        radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.95), transparent 24%),
        rgba(var(--dh-workspace-accent-rgb), 0.13);
    font-size: 1rem;
}

.dh-record-card__title {
    max-width: 100%;
    margin: 0;
    color: var(--dh-ink);
    font-size: 1rem;
    font-weight: 830;
    letter-spacing: -0.025em;
    overflow-wrap: anywhere;
}

.dh-record-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.28rem 0.72rem;
    color: var(--dh-ink-soft);
    font-size: 0.76rem;
    line-height: 1.45;
}

.dh-record-card__meta span {
    position: relative;
}

.dh-record-card__meta span + span::before {
    content: "·";
    position: absolute;
    left: -0.47rem;
    color: rgba(18, 32, 51, 0.3);
}

.dh-record-card__owner {
    margin-top: 0.42rem;
    color: #27374d;
    font-size: 0.78rem;
    font-weight: 720;
}

.dh-record-contact-row,
.dh-record-signal-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.55rem;
}

.dh-record-contact {
    display: inline-flex;
    min-height: 30px;
    align-items: center;
    max-width: 100%;
    padding: 0.32rem 0.58rem;
    border: 1px solid rgba(18, 32, 51, 0.08);
    border-radius: 999px;
    color: #35455c;
    background: rgba(255, 255, 255, 0.9);
    font-size: 0.71rem;
    font-weight: 710;
    line-height: 1.25;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.dh-record-contact:hover,
.dh-record-contact:focus-visible {
    border-color: rgba(var(--dh-workspace-accent-rgb), 0.28);
    color: var(--dh-workspace-accent-strong);
    background: rgba(var(--dh-workspace-accent-rgb), 0.07);
}

.dh-record-signal {
    display: inline-flex;
    min-height: 25px;
    align-items: center;
    padding: 0.22rem 0.5rem;
    border-radius: 999px;
    color: #42536a;
    background: #edf2f7;
    font-size: 0.66rem;
    font-weight: 760;
    line-height: 1.2;
}

.dh-record-signal.is-success {
    color: #087451;
    background: #e4f7ef;
}

.dh-record-signal.is-warning {
    color: #925414;
    background: #fff2dc;
}

.dh-record-signal.is-health {
    color: #8b3562;
    background: #faeaf2;
}

.dh-record-microchip {
    margin-top: 0.45rem;
    color: var(--dh-ink-soft);
    font-size: 0.7rem;
}

.dh-record-microchip code {
    margin-left: 0.22rem;
    color: #34445a;
    font-size: 0.68rem;
}

.dh-app-body[data-dh-ui="2026"] .dh-record-guide {
    border-color: rgba(var(--dh-workspace-accent-rgb), 0.15);
    background:
        linear-gradient(135deg, rgba(var(--dh-workspace-accent-rgb), 0.06), rgba(255, 255, 255, 0.96));
}

.dh-record-quick-actions {
    border-color: rgba(var(--dh-workspace-accent-rgb), 0.15);
    background:
        radial-gradient(circle at 100% 0, rgba(var(--dh-workspace-accent-rgb), 0.1), transparent 38%),
        #fff;
}

@media (max-width: 991px) {
    .dh-record-overview {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dh-records-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .dh-records-export {
        justify-content: flex-end;
    }
}

@media (max-width: 767px) {
    .dh-record-overview {
        gap: 0.5rem;
    }

    .dh-record-overview > div {
        min-height: 68px;
        padding: 0.75rem 0.82rem;
    }

    .dh-record-overview span {
        font-size: 0.68rem;
    }

    .dh-record-overview strong {
        font-size: 1.35rem;
    }

    .dh-app-body[data-dh-ui="2026"] .dh-records-panel {
        padding: 0.75rem !important;
    }

    .dh-app-body[data-dh-ui="2026"] .dh-record-card {
        padding: 0.88rem !important;
    }

    .dh-record-card__main {
        gap: 0.7rem;
    }

    .dh-record-avatar {
        width: 40px;
        height: 40px;
        flex-basis: 40px;
        border-radius: 13px;
    }

    .dh-record-contact {
        width: 100%;
        border-radius: 10px;
    }

    .dh-records-export .btn {
        flex: 1 1 auto;
    }
}

@media (max-width: 420px) {
    .dh-record-overview {
        grid-template-columns: 1fr;
    }

    .dh-record-overview > div {
        min-height: 56px;
    }

    .dh-record-card__meta {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.15rem;
    }

    .dh-record-card__meta span + span::before {
        display: none;
    }
}

/* Tenant settings — protected, premium configuration workspace */
.dh-settings-page {
    min-width: 0;
}

.dh-settings-page > .row {
    min-width: 0;
}

.dh-settings-hero {
    background:
        radial-gradient(circle at 86% 8%, rgba(var(--dh-workspace-accent-rgb), 0.22), transparent 16rem),
        linear-gradient(135deg, #ffffff 0%, #f7f9fc 72%, rgba(var(--dh-workspace-accent-rgb), 0.08) 100%) !important;
}

.dh-settings-mail-status {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    width: auto;
    max-width: 100%;
    margin-bottom: 1rem;
    padding: 0.62rem 0.85rem;
    border-width: 1px;
    font-size: 0.82rem;
    font-weight: 750;
}

.dh-settings-mail-status::before {
    content: "";
    width: 0.52rem;
    height: 0.52rem;
    flex: 0 0 0.52rem;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 0 4px color-mix(in srgb, currentColor 12%, transparent);
}

.dh-settings-tabs {
    position: sticky;
    top: 0.7rem;
    z-index: 22;
    padding: 0.42rem;
    border-color: rgba(18, 32, 51, 0.09);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 14px 34px rgba(18, 32, 51, 0.09);
    backdrop-filter: blur(18px);
}

.dh-settings-page .dh-section-panel {
    border-color: rgba(18, 32, 51, 0.075);
    border-radius: 24px;
    background:
        radial-gradient(circle at 96% 0%, rgba(var(--dh-workspace-accent-rgb), 0.07), transparent 13rem),
        rgba(255, 255, 255, 0.98);
    box-shadow: 0 18px 44px rgba(18, 32, 51, 0.065);
}

.dh-settings-page .dh-section-panel > h2,
.dh-settings-page .dh-section-panel > .d-flex h2 {
    color: var(--dh-ink);
    letter-spacing: -0.025em;
}

.dh-settings-page .form-label {
    color: var(--dh-ink);
    font-size: 0.82rem;
    font-weight: 760;
}

.dh-settings-page .form-control:not(.form-control-color),
.dh-settings-page .form-select {
    min-height: 46px;
    border-color: rgba(18, 32, 51, 0.13);
    border-radius: 13px;
    background-color: rgba(255, 255, 255, 0.98);
}

.dh-settings-page textarea.form-control {
    min-height: 112px !important;
}

.dh-settings-page .form-control:focus,
.dh-settings-page .form-select:focus {
    border-color: rgba(var(--dh-workspace-accent-rgb), 0.55);
    box-shadow: 0 0 0 0.22rem rgba(var(--dh-workspace-accent-rgb), 0.12);
}

.dh-settings-page .form-text {
    color: #657286;
    line-height: 1.48;
}

.dh-settings-gateway {
    height: 100%;
    padding: clamp(1rem, 2vw, 1.35rem);
    border: 1px solid rgba(18, 32, 51, 0.08);
    border-radius: 20px;
    background: linear-gradient(180deg, #ffffff, #f9fbfd);
    box-shadow: 0 12px 30px rgba(18, 32, 51, 0.055);
}

.dh-settings-gateway > h3 {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0.35rem 0.72rem;
    border: 1px solid rgba(var(--dh-workspace-accent-rgb), 0.2);
    border-radius: 999px;
    background: rgba(var(--dh-workspace-accent-rgb), 0.08);
    color: var(--dh-ink);
}

.dh-settings-metric {
    position: relative;
    overflow: hidden;
    border-color: rgba(var(--dh-workspace-accent-rgb), 0.12);
    background:
        radial-gradient(circle at 100% 0%, rgba(var(--dh-workspace-accent-rgb), 0.12), transparent 7rem),
        linear-gradient(180deg, #ffffff, #fbfcfe);
}

.dh-settings-metric::after {
    content: "";
    position: absolute;
    inset: auto 1rem 0;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(var(--dh-workspace-accent-rgb), 0.65), transparent);
}

.dh-settings-cancellation {
    border-color: rgba(18, 32, 51, 0.08);
    background: linear-gradient(135deg, #ffffff, #fbfcfe);
}

.dh-settings-plan-group > summary {
    cursor: pointer;
    list-style: none;
}

.dh-settings-plan-group > summary::-webkit-details-marker {
    display: none;
}

.dh-settings-plan-card,
.dh-settings-option-panel,
.dh-settings-location-card {
    padding: clamp(1rem, 2vw, 1.35rem);
    border: 1px solid rgba(18, 32, 51, 0.085);
    border-radius: 20px;
    background: linear-gradient(180deg, #ffffff, #f9fbfd);
    box-shadow: 0 12px 30px rgba(18, 32, 51, 0.05);
}

.dh-settings-module-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
    gap: 1rem;
}

.dh-settings-module-card {
    display: flex;
    min-height: 188px;
    flex-direction: column;
    justify-content: space-between;
    padding: clamp(1rem, 2vw, 1.35rem);
    border: 1px solid rgba(18, 32, 51, 0.085);
    border-radius: 20px;
    background:
        radial-gradient(circle at 100% 0, rgba(var(--dh-workspace-accent-rgb), 0.09), transparent 42%),
        linear-gradient(180deg, #ffffff, #f9fbfd);
    box-shadow: 0 12px 30px rgba(18, 32, 51, 0.05);
    transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.dh-settings-module-card:hover {
    transform: translateY(-2px);
    border-color: rgba(var(--dh-workspace-accent-rgb), 0.24);
    box-shadow: 0 18px 36px rgba(18, 32, 51, 0.08);
}

.dh-settings-module-toggle,
.dh-settings-module-row {
    padding: 1rem;
    border: 1px solid rgba(18, 32, 51, 0.075);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.8);
}

.dh-settings-module-toggle {
    cursor: pointer;
}

.dh-settings-module-row__copy {
    max-width: 70ch;
}

.dh-settings-mail-panel {
    position: relative;
    overflow: hidden;
}

.dh-settings-mail-panel::after {
    content: "";
    position: absolute;
    width: 130px;
    height: 130px;
    right: -55px;
    bottom: -72px;
    border-radius: 50%;
    background: rgba(var(--dh-workspace-accent-rgb), 0.08);
    pointer-events: none;
}

.dh-settings-plan-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.dh-settings-plan-card:hover {
    transform: translateY(-2px);
    border-color: rgba(var(--dh-workspace-accent-rgb), 0.26);
    box-shadow: 0 18px 36px rgba(18, 32, 51, 0.08);
}

.dh-settings-permission {
    padding: 0.48rem 0.58rem;
    border-radius: 12px;
    transition: background-color 160ms ease;
}

.dh-settings-permission:hover {
    background: rgba(var(--dh-workspace-accent-rgb), 0.07);
}

.dh-settings-location-card {
    border-color: rgba(var(--dh-workspace-accent-rgb), 0.13);
    box-shadow: none;
}

@media (max-width: 767px) {
    .dh-settings-tabs {
        top: 0.35rem;
        margin-inline: -0.25rem;
        border-radius: 16px;
    }

    .dh-settings-page .dh-section-panel {
        padding: 1rem !important;
        border-radius: 20px;
    }

    .dh-settings-mail-status {
        display: flex;
        width: 100%;
    }

    .dh-settings-plan-card,
    .dh-settings-option-panel,
    .dh-settings-location-card,
    .dh-settings-module-card {
        padding: 1rem;
        border-radius: 16px;
    }

    .dh-settings-module-card {
        min-height: 0;
    }

    .dh-settings-module-toggle,
    .dh-settings-module-row {
        padding: 0.9rem;
        border-radius: 14px;
    }
}

/* ============================================================
   PREMIUM SHELL NAVIGATION — icone first-party e target chiari
   ============================================================ */

.dh-sidebar .nav-link {
    display: flex;
    align-items: center !important;
    gap: 0.72rem;
    min-height: 42px;
    padding: 0.62rem 0.72rem;
    border: 1px solid transparent;
    border-radius: 13px;
    line-height: 1.28;
}

.dh-sidebar .nav-link > span:not(.dh-sidebar-count),
.dh-sidebar-link-label > span {
    min-width: 0;
    overflow-wrap: anywhere;
}

.dh-sidebar-link-label {
    display: inline-flex;
    align-items: center;
    gap: 0.72rem;
    min-width: 0;
    flex: 1 1 auto;
}

.dh-nav-icon {
    width: 1.1rem;
    height: 1.1rem;
    flex: 0 0 1.1rem;
    color: rgba(255, 255, 255, 0.56);
    transition: color 0.18s ease, transform 0.18s ease;
}

.dh-sidebar .nav-link:hover .dh-nav-icon,
.dh-sidebar .nav-link:focus-visible .dh-nav-icon {
    color: rgba(255, 255, 255, 0.9);
    transform: translateY(-1px);
}

.dh-sidebar .nav-link.active .dh-nav-icon {
    color: var(--dh-primary);
}

.dh-sidebar .nav-link:focus-visible {
    outline: 2px solid rgba(241, 188, 22, 0.9);
    outline-offset: 2px;
}

.dh-button-icon {
    width: 1rem;
    height: 1rem;
    flex: 0 0 1rem;
}

.dh-mobile-menu-btn,
.dh-sidebar-logout {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.48rem;
}

.dh-sidebar-footer .dh-sidebar-logout {
    min-height: 40px;
}

.dh-topbar-icon-action {
    position: relative;
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 38px;
    border: 1px solid rgba(21, 32, 43, 0.1);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.86);
    color: var(--dh-ink-soft);
    text-decoration: none;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.05);
    transition: color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.dh-topbar-icon-action:hover,
.dh-topbar-icon-action:focus-visible {
    color: var(--dh-ink);
    border-color: rgba(241, 188, 22, 0.56);
    box-shadow: 0 10px 22px rgba(241, 188, 22, 0.15);
    transform: translateY(-1px);
}

.dh-topbar-icon-action:focus-visible {
    outline: 2px solid rgba(241, 188, 22, 0.82);
    outline-offset: 2px;
}

.dh-topbar-icon-action__glyph {
    width: 1.08rem;
    height: 1.08rem;
}

.dh-topbar-icon-action__dot,
.dh-topbar-icon-action__count {
    position: absolute;
    top: -0.2rem;
    right: -0.18rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #ffffff;
    border-radius: 999px;
    background: var(--dh-primary);
    color: var(--dh-ink);
    box-shadow: 0 5px 12px rgba(201, 149, 0, 0.25);
}

.dh-topbar-icon-action__dot {
    width: 0.72rem;
    height: 0.72rem;
}

.dh-topbar-icon-action__count {
    min-width: 1.15rem;
    height: 1.15rem;
    padding-inline: 0.22rem;
    font-size: 0.62rem;
    font-weight: 900;
    line-height: 1;
}

@media (max-width: 1199.98px) {
    .dh-sidebar .nav-link {
        min-height: 46px;
        padding-block: 0.7rem;
    }

    .dh-nav-icon {
        width: 1.18rem;
        height: 1.18rem;
        flex-basis: 1.18rem;
    }
}

/* ============================================================
   ONLINE FORMS — builder premium, risposte e flusso pubblico
   ============================================================ */

.dh-online-forms-hero {
    background:
        radial-gradient(circle at 88% 4%, rgba(71, 102, 255, 0.16), transparent 15rem),
        radial-gradient(circle at 74% 100%, rgba(241, 188, 22, 0.18), transparent 14rem),
        linear-gradient(135deg, #ffffff 0%, #f7f9fc 75%, rgba(71, 102, 255, 0.05) 100%) !important;
}

.dh-online-forms-summary {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.dh-online-forms-page .dh-section-panel,
.dh-online-form-editor .dh-section-panel {
    border-color: rgba(18, 32, 51, 0.075);
    border-radius: 24px;
    background:
        radial-gradient(circle at 100% 0%, rgba(71, 102, 255, 0.045), transparent 12rem),
        rgba(255, 255, 255, 0.98);
    box-shadow: 0 18px 44px rgba(18, 32, 51, 0.06);
}

.dh-online-form-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1rem;
    padding: 1rem;
    border-color: rgba(18, 32, 51, 0.08);
    background: linear-gradient(180deg, #ffffff, #fafbfd);
    transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.dh-online-form-card:hover {
    transform: translateY(-2px);
    border-color: rgba(var(--dh-workspace-accent-rgb), 0.28);
    box-shadow: 0 18px 36px rgba(18, 32, 51, 0.075);
}

.dh-online-form-card__main {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    align-items: start;
    gap: 0.9rem;
    min-width: 0;
}

.dh-online-form-card__icon,
.dh-online-form-publish__icon,
.dh-public-form-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(var(--dh-workspace-accent-rgb), 0.16);
    border-radius: 15px;
    background: rgba(var(--dh-workspace-accent-rgb), 0.08);
    color: var(--dh-ink);
}

.dh-online-form-card__icon {
    width: 44px;
    height: 44px;
}

.dh-online-form-card__glyph,
.dh-online-form-publish__glyph,
.dh-public-form-card__glyph {
    width: 1.25rem;
    height: 1.25rem;
}

.dh-online-form-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 0.85rem;
    color: #657286;
    font-size: 0.78rem;
    font-weight: 680;
}

.dh-online-form-card__meta span {
    position: relative;
}

.dh-online-form-card__meta span:not(:last-child)::after {
    position: absolute;
    top: 50%;
    right: -0.5rem;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: #a6afbd;
    content: "";
    transform: translateY(-50%);
}

.dh-online-form-card__actions {
    display: flex;
    flex-wrap: wrap;
    align-content: flex-start;
    justify-content: flex-end;
    gap: 0.45rem;
    max-width: 230px;
}

.dh-online-form-responses {
    max-height: min(75rem, calc(100vh - 8rem));
    overflow: auto;
}

.dh-online-form-response {
    border-color: rgba(18, 32, 51, 0.075);
    background: linear-gradient(180deg, #ffffff, #fbfcfe);
}

.dh-online-form-response__answers {
    display: grid;
    gap: 0.55rem;
}

.dh-online-form-response__answers > div {
    padding-top: 0.55rem;
    border-top: 1px solid rgba(18, 32, 51, 0.065);
}

.dh-online-form-response__answers dt {
    color: var(--dh-ink);
    font-size: 0.76rem;
    font-weight: 800;
}

.dh-online-form-response__answers dd {
    margin: 0.12rem 0 0;
    color: #657286;
    font-size: 0.82rem;
    overflow-wrap: anywhere;
}

.dh-online-form-editor .form-label {
    color: var(--dh-ink);
    font-size: 0.82rem;
    font-weight: 760;
}

.dh-online-form-editor .form-control,
.dh-online-form-editor .form-select {
    min-height: 46px;
    border-color: rgba(18, 32, 51, 0.13);
    border-radius: 13px;
    background-color: rgba(255, 255, 255, 0.98);
}

.dh-online-form-editor textarea.form-control {
    min-height: 100px;
}

.dh-online-form-editor .form-control:focus,
.dh-online-form-editor .form-select:focus {
    border-color: rgba(var(--dh-workspace-accent-rgb), 0.55);
    box-shadow: 0 0 0 0.22rem rgba(var(--dh-workspace-accent-rgb), 0.12);
}

.dh-online-form-publish-toggle {
    width: 100%;
    min-height: 46px;
    padding: 0.7rem 1rem 0.7rem 3.2rem;
    border: 1px solid rgba(18, 32, 51, 0.085);
    border-radius: 13px;
    background: #fafbfd;
}

.dh-online-form-publish-toggle .form-check-input {
    margin-left: -2.3rem;
}

.dh-online-field-row {
    position: relative;
    padding: 1rem 1rem 1rem 3.7rem;
    border: 1px solid rgba(18, 32, 51, 0.085);
    border-radius: 20px;
    background:
        radial-gradient(circle at 100% 0%, rgba(var(--dh-workspace-accent-rgb), 0.07), transparent 9rem),
        linear-gradient(180deg, #ffffff, #fafbfd);
    box-shadow: 0 10px 26px rgba(18, 32, 51, 0.045);
}

.dh-online-field-row__number {
    position: absolute;
    top: 1rem;
    left: 1rem;
    display: inline-flex;
    width: 2rem;
    height: 2rem;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: var(--dh-ink);
    color: #ffffff;
    font-size: 0.76rem;
    font-weight: 850;
}

.dh-online-form-publish__icon {
    width: 48px;
    height: 48px;
    margin-bottom: 1rem;
    border-radius: 17px;
}

.dh-public-forms,
.dh-public-form-detail {
    background:
        radial-gradient(circle at 9% 0%, rgba(241, 188, 22, 0.1), transparent 24rem),
        radial-gradient(circle at 92% 12%, rgba(71, 102, 255, 0.075), transparent 22rem);
}

.dh-public-form-hero,
.dh-public-form-detail__header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2rem;
    padding: clamp(1.5rem, 4vw, 2.5rem);
    border: 1px solid rgba(18, 32, 51, 0.07);
    border-radius: 30px;
    background:
        radial-gradient(circle at 93% 8%, rgba(241, 188, 22, 0.18), transparent 15rem),
        rgba(255, 255, 255, 0.92);
    box-shadow: 0 24px 54px rgba(18, 32, 51, 0.075);
}

.dh-public-form-hero__trust {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    flex: 0 0 auto;
    padding: 0.65rem 0.85rem;
    border: 1px solid rgba(18, 32, 51, 0.09);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.88);
    color: var(--dh-ink);
    font-size: 0.78rem;
    font-weight: 780;
    box-shadow: 0 10px 26px rgba(18, 32, 51, 0.06);
}

.dh-public-form-hero__trust-icon {
    width: 1.1rem;
    height: 1.1rem;
    color: #18864b;
}

.dh-public-form-card {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: clamp(1.25rem, 3vw, 1.65rem);
    border-radius: 24px;
    background:
        radial-gradient(circle at 100% 0%, rgba(71, 102, 255, 0.07), transparent 11rem),
        linear-gradient(180deg, #ffffff, #fbfcfe);
    transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.dh-public-form-card:hover {
    transform: translateY(-3px);
    border-color: rgba(241, 188, 22, 0.38);
    box-shadow: 0 24px 48px rgba(18, 32, 51, 0.09);
}

.dh-public-form-card__icon {
    width: 48px;
    height: 48px;
}

.dh-public-form-card__meta {
    color: #667286;
    font-size: 0.8rem;
    font-weight: 720;
}

.dh-public-form-detail__card {
    border-radius: 28px;
    box-shadow: 0 26px 60px rgba(18, 32, 51, 0.08);
}

.dh-public-form-detail__card .form-label {
    color: var(--dh-ink);
    font-size: 0.86rem;
    font-weight: 760;
}

.dh-public-form-detail__card .form-control,
.dh-public-form-detail__card .form-select {
    min-height: 50px;
    border-color: rgba(18, 32, 51, 0.14);
    border-radius: 14px;
    background: #ffffff;
}

.dh-public-form-detail__card textarea.form-control {
    min-height: 120px;
}

.dh-public-form-detail__card .form-control:focus,
.dh-public-form-detail__card .form-select:focus {
    border-color: rgba(241, 188, 22, 0.75);
    box-shadow: 0 0 0 0.24rem rgba(241, 188, 22, 0.15);
}

.dh-public-form-confirm,
.dh-public-form-legal {
    padding: 1rem;
    border: 1px solid rgba(18, 32, 51, 0.085);
    border-radius: 16px;
    background: #fafbfd;
}

.dh-public-form-confirm {
    padding-left: 2.5rem;
}

.dh-public-form-legal {
    color: #59667a;
    font-size: 0.86rem;
    line-height: 1.55;
}

.dh-public-form-legal a {
    color: var(--dh-ink);
    font-weight: 720;
    text-underline-offset: 0.16em;
}

@media (max-width: 991.98px) {
    .dh-online-forms-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dh-online-form-responses {
        max-height: none;
        overflow: visible;
    }

    .dh-public-form-hero,
    .dh-public-form-detail__header {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 767.98px) {
    .dh-online-form-card {
        grid-template-columns: minmax(0, 1fr);
    }

    .dh-online-form-card__actions {
        max-width: none;
        justify-content: flex-start;
        padding-left: 3.65rem;
    }

    .dh-online-field-row {
        padding: 3.7rem 1rem 1rem;
        border-radius: 17px;
    }

    .dh-online-forms-page .dh-section-panel,
    .dh-online-form-editor .dh-section-panel {
        padding: 1rem !important;
        border-radius: 20px;
    }
}

@media (max-width: 575.98px) {
    .dh-online-forms-summary {
        grid-template-columns: 1fr;
    }

    .dh-online-form-card__main {
        grid-template-columns: 38px minmax(0, 1fr);
        gap: 0.7rem;
    }

    .dh-online-form-card__icon {
        width: 38px;
        height: 38px;
        border-radius: 13px;
    }

    .dh-online-form-card__actions {
        display: grid;
        grid-template-columns: 1fr 1fr auto;
        padding-left: 0;
    }

    .dh-online-form-card__actions > .btn {
        width: 100%;
    }

    .dh-public-form-hero,
    .dh-public-form-detail__header,
    .dh-public-form-detail__card {
        padding: 1.15rem !important;
        border-radius: 22px;
    }
}

/* WITHDRAWALS — premium, multilingual and durable customer protection */
.dh-withdrawal-page {
    --dh-withdrawal-navy: #172238;
    --dh-withdrawal-gold: #f7bf38;
    --dh-withdrawal-mint: #dff6ec;
    --dh-withdrawal-border: rgba(23, 34, 56, 0.11);
    color: var(--dh-withdrawal-navy);
}

.dh-withdrawal-hero {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(247, 191, 56, 0.32);
    background:
        radial-gradient(circle at 88% 14%, rgba(247, 191, 56, 0.2), transparent 30%),
        linear-gradient(135deg, #fffaf0 0%, #fff 55%, #f5f8ff 100%);
}

.dh-withdrawal-hero::after {
    position: absolute;
    right: -2.5rem;
    bottom: -4.5rem;
    width: 13rem;
    height: 13rem;
    border: 1px solid rgba(23, 34, 56, 0.08);
    border-radius: 999px;
    content: "";
    pointer-events: none;
}

.dh-withdrawal-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.9rem;
    margin-bottom: 1.5rem;
}

.dh-withdrawal-stat {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 0.9rem;
    align-items: start;
    min-height: 142px;
    padding: 1.15rem;
    border: 1px solid var(--dh-withdrawal-border);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 16px 42px rgba(23, 34, 56, 0.06);
}

.dh-withdrawal-stat__icon,
.dh-withdrawal-not-ready__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    color: var(--dh-withdrawal-navy);
    border-radius: 15px;
    background: #edf1f8;
}

.dh-withdrawal-stat.is-warning .dh-withdrawal-stat__icon {
    background: #fff2cc;
}

.dh-withdrawal-stat.is-success .dh-withdrawal-stat__icon {
    background: var(--dh-withdrawal-mint);
}

.dh-withdrawal-stat.is-primary .dh-withdrawal-stat__icon {
    color: #fff;
    background: var(--dh-withdrawal-navy);
}

.dh-withdrawal-glyph {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.dh-withdrawal-stat div {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

.dh-withdrawal-stat strong {
    margin-bottom: 0.12rem;
    font-size: clamp(1.45rem, 2vw, 2rem);
    line-height: 1;
    letter-spacing: -0.045em;
}

.dh-withdrawal-stat span {
    margin-top: 0.3rem;
    font-weight: 760;
}

.dh-withdrawal-stat small {
    margin-top: 0.28rem;
    color: #687386;
    font-size: 0.78rem;
    line-height: 1.4;
}

.dh-withdrawal-config-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    gap: 1.2rem;
    align-items: stretch;
    margin-bottom: 1.5rem;
}

.dh-withdrawal-settings,
.dh-withdrawal-guide,
.dh-withdrawal-requests,
.dh-withdrawal-not-ready {
    padding: clamp(1.15rem, 2vw, 1.65rem);
    border: 1px solid var(--dh-withdrawal-border);
    border-radius: 24px;
    box-shadow: 0 18px 48px rgba(23, 34, 56, 0.055);
}

.dh-withdrawal-section-head {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 1.25rem;
}

.dh-withdrawal-section-head h2,
.dh-withdrawal-not-ready h2 {
    margin: 0.18rem 0 0.35rem;
    color: var(--dh-withdrawal-navy);
    font-size: clamp(1.1rem, 1.8vw, 1.38rem);
    font-weight: 820;
    letter-spacing: -0.025em;
}

.dh-withdrawal-section-head p,
.dh-withdrawal-not-ready p {
    max-width: 68ch;
    margin: 0;
    color: #667184;
    line-height: 1.55;
}

.dh-withdrawal-kicker {
    color: #82704a;
    font-size: 0.72rem;
    font-weight: 820;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.dh-withdrawal-assurance,
.dh-withdrawal-disclaimer {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 0.8rem;
    align-items: start;
    padding: 1rem;
    border: 1px solid rgba(19, 117, 83, 0.14);
    border-radius: 18px;
    background: #f0fbf7;
}

.dh-withdrawal-assurance > span,
.dh-withdrawal-disclaimer > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    color: #137553;
    border-radius: 12px;
    background: #d9f4e9;
}

.dh-withdrawal-assurance p,
.dh-withdrawal-disclaimer p {
    margin: 0;
    color: #285747;
    font-size: 0.88rem;
    line-height: 1.52;
}

.dh-withdrawal-settings form {
    margin-top: 1.15rem;
}

.dh-withdrawal-settings textarea,
.dh-withdrawal-request__form textarea {
    resize: vertical;
}

.dh-withdrawal-steps {
    display: grid;
    gap: 0.85rem;
    padding: 0;
    margin: 0 0 1rem;
    list-style: none;
}

.dh-withdrawal-steps li {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 0.8rem;
    align-items: start;
}

.dh-withdrawal-steps li > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    color: var(--dh-withdrawal-navy);
    border-radius: 13px;
    background: #fff0c2;
    font-weight: 850;
}

.dh-withdrawal-steps strong {
    display: block;
    margin-bottom: 0.15rem;
    font-weight: 800;
}

.dh-withdrawal-steps p {
    margin: 0;
    color: #667184;
    font-size: 0.88rem;
    line-height: 1.48;
}

.dh-withdrawal-disclaimer {
    border-color: rgba(23, 34, 56, 0.09);
    background: #f6f8fb;
}

.dh-withdrawal-disclaimer > span {
    color: var(--dh-withdrawal-navy);
    background: #e8edf5;
}

.dh-withdrawal-disclaimer p {
    color: #596579;
}

.dh-withdrawal-requests {
    margin-bottom: 1.5rem;
}

.dh-withdrawal-list {
    display: grid;
    gap: 1rem;
}

.dh-withdrawal-request {
    display: grid;
    grid-template-columns: minmax(180px, 0.72fr) minmax(220px, 1fr) minmax(280px, 1.12fr);
    gap: 1rem;
    padding: 1.15rem;
    border: 1px solid var(--dh-withdrawal-border);
    border-radius: 20px;
    background:
        linear-gradient(100deg, rgba(255, 248, 229, 0.55), rgba(255, 255, 255, 0) 32%),
        #fff;
}

.dh-withdrawal-request__identity,
.dh-withdrawal-request__contract,
.dh-withdrawal-request__form {
    min-width: 0;
}

.dh-withdrawal-request__identity {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
}

.dh-withdrawal-request__topline {
    display: flex;
    width: 100%;
    gap: 0.5rem;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.dh-withdrawal-request__reference {
    color: #7c6c49;
    font-size: 0.73rem;
    font-weight: 850;
    letter-spacing: 0.07em;
}

.dh-withdrawal-request h3 {
    margin: 0;
    color: var(--dh-withdrawal-navy);
    font-size: 1.05rem;
    font-weight: 820;
}

.dh-withdrawal-request__email {
    max-width: 100%;
    margin-top: 0.18rem;
    overflow: hidden;
    color: #536078;
    font-size: 0.84rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dh-withdrawal-request time {
    display: block;
    margin: 0.45rem 0 0.65rem;
    color: #6c7789;
    font-size: 0.8rem;
}

.dh-withdrawal-request__contract {
    padding: 0 1rem;
    border-inline: 1px solid rgba(23, 34, 56, 0.09);
}

.dh-withdrawal-request__contract > strong {
    display: block;
    margin: 0.25rem 0 0.2rem;
    overflow-wrap: anywhere;
    color: var(--dh-withdrawal-navy);
    font-size: 0.96rem;
}

.dh-withdrawal-request__contract > p {
    margin: 0;
    color: #687386;
    font-size: 0.78rem;
    line-height: 1.45;
}

.dh-withdrawal-request__message {
    margin-top: 0.7rem;
    padding: 0.7rem 0.8rem;
    border-radius: 13px;
    background: #f7f8fb;
}

.dh-withdrawal-request__message strong {
    display: block;
    margin-bottom: 0.12rem;
    font-size: 0.76rem;
}

.dh-withdrawal-request__message p {
    margin: 0;
    color: #596579;
    font-size: 0.8rem;
    line-height: 1.45;
}

.dh-withdrawal-request__form {
    display: grid;
    gap: 0.8rem;
}

.dh-withdrawal-request__form .form-label {
    margin-bottom: 0.28rem;
    font-size: 0.8rem;
    font-weight: 760;
}

.dh-withdrawal-request__form .btn {
    justify-self: end;
}

.dh-withdrawal-empty {
    display: flex;
    align-items: center;
    flex-direction: column;
    padding: clamp(2.4rem, 7vw, 4.6rem) 1.2rem;
    text-align: center;
}

.dh-withdrawal-empty__icon {
    width: 38px;
    height: 38px;
    margin-bottom: 1rem;
    color: #8a7548;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.dh-withdrawal-empty strong {
    font-size: 1.05rem;
}

.dh-withdrawal-empty p {
    max-width: 58ch;
    margin: 0.35rem 0 0;
    color: #687386;
    line-height: 1.55;
}

.dh-withdrawal-not-ready {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 1rem;
    align-items: center;
    max-width: 860px;
}

.dh-withdrawal-not-ready__icon {
    width: 52px;
    height: 52px;
    color: #8a6411;
    background: #fff0c2;
}

@media (max-width: 1199.98px) {
    .dh-withdrawal-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dh-withdrawal-request {
        grid-template-columns: minmax(180px, 0.7fr) minmax(0, 1.3fr);
    }

    .dh-withdrawal-request__contract {
        padding-right: 0;
        border-right: 0;
    }

    .dh-withdrawal-request__form {
        grid-column: 1 / -1;
        grid-template-columns: minmax(180px, 0.65fr) minmax(0, 1.35fr) auto;
        align-items: end;
        padding-top: 1rem;
        border-top: 1px solid rgba(23, 34, 56, 0.09);
    }
}

@media (max-width: 991.98px) {
    .dh-withdrawal-config-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767.98px) {
    .dh-withdrawal-summary,
    .dh-withdrawal-request {
        grid-template-columns: 1fr;
    }

    .dh-withdrawal-stat {
        min-height: 0;
    }

    .dh-withdrawal-request__contract {
        padding: 1rem 0;
        border: 0;
        border-block: 1px solid rgba(23, 34, 56, 0.09);
    }

    .dh-withdrawal-request__form {
        grid-column: auto;
        grid-template-columns: 1fr;
        padding-top: 0;
        border-top: 0;
    }

    .dh-withdrawal-request__form .btn {
        width: 100%;
        justify-self: stretch;
    }
}

@media (max-width: 575.98px) {
    .dh-withdrawal-settings,
    .dh-withdrawal-guide,
    .dh-withdrawal-requests,
    .dh-withdrawal-not-ready {
        padding: 1rem;
        border-radius: 20px;
    }

    .dh-withdrawal-summary {
        gap: 0.7rem;
    }

    .dh-withdrawal-stat {
        grid-template-columns: 42px minmax(0, 1fr);
        padding: 1rem;
        border-radius: 18px;
    }

    .dh-withdrawal-stat__icon {
        width: 42px;
        height: 42px;
    }

    .dh-withdrawal-section-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .dh-withdrawal-request {
        padding: 1rem;
        border-radius: 18px;
    }
}

/* COMPLIANCE — premium multilingual privacy and legal control centre */
.dh-compliance-page {
    --dh-compliance-ink: #172238;
    --dh-compliance-muted: #667184;
    --dh-compliance-border: rgba(23, 34, 56, 0.11);
    --dh-compliance-gold: #f7bf38;
    color: var(--dh-compliance-ink);
}

.dh-compliance-hero {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(47, 106, 93, 0.16);
    background:
        radial-gradient(circle at 90% 10%, rgba(86, 181, 149, 0.16), transparent 28%),
        linear-gradient(135deg, #f3fbf8 0%, #fff 54%, #fff9eb 100%);
}

.dh-compliance-hero::after {
    position: absolute;
    right: -4rem;
    bottom: -6rem;
    width: 17rem;
    height: 17rem;
    border: 1px solid rgba(23, 34, 56, 0.07);
    border-radius: 999px;
    content: "";
    pointer-events: none;
}

.dh-compliance-jump {
    display: flex;
    gap: 0.45rem;
    margin: -0.25rem 0 1.25rem;
    overflow-x: auto;
    scrollbar-width: none;
}

.dh-compliance-jump::-webkit-scrollbar {
    display: none;
}

.dh-compliance-jump a {
    display: inline-flex;
    min-height: 40px;
    align-items: center;
    padding: 0.55rem 0.9rem;
    color: #566176;
    border: 1px solid var(--dh-compliance-border);
    border-radius: 999px;
    background: #fff;
    font-size: 0.82rem;
    font-weight: 760;
    text-decoration: none;
    white-space: nowrap;
}

.dh-compliance-jump a:hover,
.dh-compliance-jump a:focus-visible {
    color: var(--dh-compliance-ink);
    border-color: rgba(23, 34, 56, 0.26);
    box-shadow: 0 8px 22px rgba(23, 34, 56, 0.08);
}

.dh-compliance-language {
    margin-bottom: 1.25rem;
    padding: 1rem 1.1rem;
    border: 1px solid var(--dh-compliance-border, rgba(23, 34, 56, 0.11));
    border-radius: 20px;
    background:
        radial-gradient(circle at 96% 0%, rgba(247, 191, 56, 0.13), transparent 34%),
        #fff;
}

.dh-compliance-language__form {
    display: grid;
    grid-template-columns: minmax(150px, auto) minmax(180px, 280px) auto;
    gap: 0.75rem;
    align-items: center;
}

.dh-compliance-language__form label {
    margin: 0;
    color: var(--dh-compliance-ink, #172238);
    font-size: 0.88rem;
    font-weight: 790;
}

.dh-compliance-language__help {
    max-width: 900px;
    margin: 0.65rem 0 0;
    color: var(--dh-compliance-muted, #667184);
    font-size: 0.82rem;
    line-height: 1.55;
}

.dh-compliance-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.85rem;
    margin-bottom: 1rem;
}

.dh-compliance-stat {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 0.8rem;
    align-items: start;
    min-height: 138px;
    padding: 1.05rem;
    border: 1px solid var(--dh-compliance-border);
    border-radius: 21px;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 14px 38px rgba(23, 34, 56, 0.05);
}

.dh-compliance-stat > span,
.dh-compliance-unavailable > span,
.dh-compliance-notice > span,
.dh-compliance-document__icon,
.dh-compliance-empty > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    color: var(--dh-compliance-ink);
    border-radius: 14px;
    background: #edf1f7;
}

.dh-compliance-stat.is-success > span {
    color: #14684e;
    background: #def5eb;
}

.dh-compliance-stat.is-warning > span {
    color: #875f0c;
    background: #fff1c5;
}

.dh-compliance-glyph {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.dh-compliance-stat div {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

.dh-compliance-stat strong {
    color: var(--dh-compliance-ink);
    font-size: clamp(1.25rem, 2vw, 1.75rem);
    line-height: 1.05;
    letter-spacing: -0.035em;
}

.dh-compliance-stat b {
    margin-top: 0.36rem;
    font-size: 0.87rem;
    font-weight: 790;
}

.dh-compliance-stat small {
    margin-top: 0.18rem;
    color: var(--dh-compliance-muted);
    font-size: 0.76rem;
    line-height: 1.42;
}

.dh-compliance-notice {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 0.9rem;
    align-items: start;
    padding: 1rem 1.1rem;
    margin-bottom: 1.25rem;
    border: 1px solid rgba(19, 117, 83, 0.14);
    border-radius: 19px;
    background: #f0faf6;
}

.dh-compliance-notice.is-blocked {
    border-color: rgba(168, 111, 10, 0.18);
    background: #fff8e6;
}

.dh-compliance-notice.is-ready > span {
    color: #14684e;
    background: #d9f3e8;
}

.dh-compliance-notice.is-blocked > span {
    color: #875f0c;
    background: #ffedb8;
}

.dh-compliance-notice strong {
    display: block;
    margin-bottom: 0.2rem;
    font-weight: 820;
}

.dh-compliance-notice p {
    margin: 0;
    color: #4d5a6e;
    font-size: 0.86rem;
    line-height: 1.5;
}

.dh-compliance-notice small {
    display: block;
    margin-top: 0.45rem;
    color: #705b2d;
    font-size: 0.76rem;
    font-weight: 680;
    line-height: 1.45;
}

.dh-compliance-layout {
    display: grid;
    grid-template-columns: minmax(330px, 0.82fr) minmax(0, 1.18fr);
    gap: 1.2rem;
    align-items: start;
}

.dh-compliance-sidebar {
    display: grid;
    gap: 1.2rem;
}

.dh-compliance-panel,
.dh-compliance-area,
.dh-compliance-consents,
.dh-compliance-unavailable {
    padding: clamp(1.1rem, 2vw, 1.5rem);
    border: 1px solid var(--dh-compliance-border);
    border-radius: 24px;
    box-shadow: 0 18px 50px rgba(23, 34, 56, 0.05);
}

.dh-compliance-panel__head,
.dh-compliance-main-head {
    margin-bottom: 1.1rem;
}

.dh-compliance-panel__head h2,
.dh-compliance-main-head h2,
.dh-compliance-unavailable h2 {
    margin: 0.18rem 0 0.32rem;
    color: var(--dh-compliance-ink);
    font-size: clamp(1.12rem, 1.8vw, 1.4rem);
    font-weight: 830;
    letter-spacing: -0.025em;
}

.dh-compliance-panel__head p,
.dh-compliance-main-head p,
.dh-compliance-unavailable p {
    margin: 0;
    color: var(--dh-compliance-muted);
    font-size: 0.88rem;
    line-height: 1.52;
}

.dh-compliance-kicker {
    color: #727c8d;
    font-size: 0.7rem;
    font-weight: 840;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.dh-compliance-profile-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
}

.dh-compliance-field {
    min-width: 0;
}

.dh-compliance-field.is-wide,
.dh-compliance-profile-form > .is-wide {
    grid-column: 1 / -1;
}

.dh-compliance-field label,
.dh-compliance-document__fields label {
    display: block;
    margin-bottom: 0.3rem;
    color: #475269;
    font-size: 0.78rem;
    font-weight: 760;
}

.dh-compliance-field small {
    display: block;
    margin-top: 0.35rem;
    color: #78663d;
    font-size: 0.73rem;
    line-height: 1.45;
}

.dh-compliance-profile-form textarea,
.dh-compliance-document textarea,
.dh-compliance-snippet textarea {
    resize: vertical;
}

.dh-compliance-color {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 44px;
    gap: 0.65rem;
    align-items: center;
    padding: 0.6rem 0.7rem;
    border: 1px solid rgba(23, 34, 56, 0.09);
    border-radius: 14px;
    background: #f8f9fb;
}

.dh-compliance-color label {
    margin: 0;
}

.dh-compliance-color .form-control-color {
    width: 42px;
    height: 36px;
    padding: 0.2rem;
    border-radius: 10px;
}

.dh-compliance-snippet .dh-copy-field {
    align-items: stretch;
}

.dh-compliance-snippet .dh-copy-field .btn {
    min-width: 128px;
}

.dh-compliance-documents {
    min-width: 0;
}

.dh-compliance-area {
    margin-bottom: 1rem;
}

.dh-compliance-area__head {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.dh-compliance-area__head h3 {
    margin: 0 0 0.2rem;
    color: var(--dh-compliance-ink);
    font-size: 1.05rem;
    font-weight: 810;
}

.dh-compliance-area__head p {
    margin: 0;
    color: var(--dh-compliance-muted);
    font-size: 0.82rem;
}

.dh-inline-icon {
    width: 15px;
    height: 15px;
    margin-left: 0.2rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.dh-compliance-document-list {
    display: grid;
    gap: 0.75rem;
}

.dh-compliance-document {
    overflow: hidden;
    border: 1px solid rgba(23, 34, 56, 0.1);
    border-radius: 18px;
    background: #fff;
}

.dh-compliance-document summary {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) auto;
    gap: 0.8rem;
    align-items: center;
    padding: 0.85rem 0.9rem;
    cursor: pointer;
    list-style: none;
}

.dh-compliance-document summary::-webkit-details-marker {
    display: none;
}

.dh-compliance-document summary:focus-visible {
    outline: 3px solid rgba(247, 191, 56, 0.35);
    outline-offset: -3px;
}

.dh-compliance-document[open] summary {
    border-bottom: 1px solid rgba(23, 34, 56, 0.09);
    background: #fafbfc;
}

.dh-compliance-document__icon {
    width: 40px;
    height: 40px;
    color: #576378;
    border-radius: 12px;
}

.dh-compliance-document summary > span:nth-child(2) {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

.dh-compliance-document summary strong {
    color: var(--dh-compliance-ink);
    font-size: 0.9rem;
    font-weight: 790;
}

.dh-compliance-document summary small {
    margin-top: 0.12rem;
    color: var(--dh-compliance-muted);
    font-size: 0.72rem;
}

.dh-compliance-document__form {
    display: grid;
    gap: 0.9rem;
    padding: 1rem;
}

.dh-compliance-document__preview {
    display: flex;
    gap: 0.7rem;
    align-items: center;
    justify-content: space-between;
    padding: 0.65rem 0.75rem;
    border-radius: 12px;
    background: #f4f6f9;
    font-size: 0.74rem;
}

.dh-compliance-document__preview span {
    min-width: 0;
    overflow: hidden;
    color: var(--dh-compliance-muted);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dh-compliance-document__preview a {
    flex-shrink: 0;
    color: var(--dh-compliance-ink);
    font-weight: 760;
}

.dh-compliance-document__fields {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 150px;
    gap: 0.8rem;
}

.dh-compliance-document__fields .is-title,
.dh-compliance-document__fields .is-content {
    grid-column: 1 / -1;
}

.dh-compliance-document__form > .btn {
    justify-self: end;
}

.dh-compliance-consents {
    margin-top: 1.2rem;
    margin-bottom: 1.5rem;
}

.dh-compliance-consent-list {
    display: grid;
    gap: 0.7rem;
}

.dh-compliance-consent {
    display: grid;
    grid-template-columns: minmax(170px, 0.8fr) minmax(250px, 1.1fr) minmax(220px, 0.9fr);
    gap: 0.9rem;
    align-items: center;
    padding: 0.9rem 1rem;
    border: 1px solid rgba(23, 34, 56, 0.09);
    border-radius: 17px;
    background: #fff;
}

.dh-compliance-consent__identity {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

.dh-compliance-consent__identity strong {
    overflow: hidden;
    font-size: 0.86rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dh-compliance-consent__identity span {
    margin-top: 0.15rem;
    color: var(--dh-compliance-muted);
    font-size: 0.74rem;
}

.dh-compliance-consent__choices {
    display: flex;
    gap: 0.35rem;
    flex-wrap: wrap;
}

.dh-compliance-consent__choices span {
    display: inline-flex;
    min-height: 28px;
    align-items: center;
    padding: 0.28rem 0.5rem;
    color: #697487;
    border: 1px solid rgba(23, 34, 56, 0.08);
    border-radius: 999px;
    background: #f5f7fa;
    font-size: 0.68rem;
    font-weight: 720;
}

.dh-compliance-consent__choices span.is-on {
    color: #136349;
    border-color: rgba(19, 99, 73, 0.12);
    background: #e3f6ee;
}

.dh-compliance-consent__meta {
    display: flex;
    gap: 0.25rem;
    align-items: flex-end;
    flex-direction: column;
    color: var(--dh-compliance-muted);
    font-size: 0.7rem;
}

.dh-compliance-consent__url {
    grid-column: 1 / -1;
    overflow: hidden;
    color: #7a8495;
    font-size: 0.68rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dh-compliance-empty {
    display: flex;
    align-items: center;
    flex-direction: column;
    padding: 2.6rem 1rem;
    text-align: center;
}

.dh-compliance-empty p {
    margin: 0.7rem 0 0;
    color: var(--dh-compliance-muted);
}

.dh-compliance-unavailable {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 1rem;
    align-items: center;
    max-width: 850px;
}

.dh-compliance-unavailable > span {
    width: 52px;
    height: 52px;
    color: #87610d;
    background: #ffefbd;
}

@media (max-width: 1199.98px) {
    .dh-compliance-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dh-compliance-layout {
        grid-template-columns: 1fr;
    }

    .dh-compliance-sidebar {
        grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
        align-items: start;
    }

    .dh-compliance-consent {
        grid-template-columns: minmax(170px, 0.8fr) minmax(0, 1.2fr);
    }

    .dh-compliance-consent__meta {
        grid-column: 1 / -1;
        align-items: center;
        flex-direction: row;
        justify-content: space-between;
        padding-top: 0.65rem;
        border-top: 1px solid rgba(23, 34, 56, 0.08);
    }
}

@media (max-width: 991.98px) {
    .dh-compliance-sidebar {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767.98px) {
    .dh-compliance-profile-form,
    .dh-compliance-document__fields,
    .dh-compliance-consent {
        grid-template-columns: 1fr;
    }

    .dh-compliance-document__fields .is-title,
    .dh-compliance-document__fields .is-content,
    .dh-compliance-consent__meta,
    .dh-compliance-consent__url {
        grid-column: auto;
    }

    .dh-compliance-consent__meta {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 575.98px) {
    .dh-compliance-language__form {
        grid-template-columns: 1fr;
    }

    .dh-compliance-language__form .btn {
        width: 100%;
    }

    .dh-compliance-summary {
        grid-template-columns: 1fr;
    }

    .dh-compliance-stat {
        min-height: 0;
    }

    .dh-compliance-panel,
    .dh-compliance-area,
    .dh-compliance-consents,
    .dh-compliance-unavailable {
        padding: 1rem;
        border-radius: 20px;
    }

    .dh-compliance-area__head,
    .dh-compliance-document__preview {
        align-items: flex-start;
        flex-direction: column;
    }

    .dh-compliance-area__head .btn {
        width: 100%;
    }

    .dh-compliance-document summary {
        grid-template-columns: 38px minmax(0, 1fr);
    }

    .dh-compliance-document summary > .dh-badge {
        grid-column: 2;
        justify-self: start;
    }

    .dh-compliance-document__form > .btn {
        width: 100%;
        justify-self: stretch;
    }

    .dh-compliance-snippet .dh-copy-field {
        flex-direction: column;
    }
}

/* ============================================================
   GROOMING WORKSPACE — premium operational cockpit
   Keeps grooming visually and operationally distinct while
   retaining shared customer and dog records across workspaces.
   ============================================================ */

.dh-groom-workspace {
    --dh-groom-ink: #191427;
    --dh-groom-muted: #6f687c;
    --dh-groom-line: rgba(48, 35, 70, 0.11);
    --dh-groom-accent: #8a5bc2;
    --dh-groom-accent-dark: #684098;
    --dh-groom-accent-soft: #f4edfc;
    --dh-groom-surface: rgba(255, 255, 255, 0.92);
    color: var(--dh-groom-ink);
}

.dh-groom-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(17rem, 0.68fr);
    gap: clamp(1.4rem, 3vw, 3.5rem);
    padding: clamp(1.5rem, 3vw, 2.65rem);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 28px;
    background:
        radial-gradient(circle at 84% 8%, rgba(211, 174, 255, 0.28), transparent 18rem),
        radial-gradient(circle at 12% 110%, rgba(138, 91, 194, 0.22), transparent 24rem),
        linear-gradient(138deg, #171321 0%, #272034 58%, #312241 100%);
    box-shadow:
        0 26px 70px rgba(27, 20, 38, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    color: #fff;
}

.dh-groom-hero::before,
.dh-groom-hero::after {
    position: absolute;
    content: "";
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    pointer-events: none;
}

.dh-groom-hero::before {
    width: 23rem;
    height: 23rem;
    top: -16rem;
    right: -4rem;
}

.dh-groom-hero::after {
    width: 11rem;
    height: 11rem;
    right: 19rem;
    bottom: -8rem;
}

.dh-groom-hero__body,
.dh-groom-hero__actions {
    position: relative;
    z-index: 1;
}

.dh-groom-hero__body {
    align-self: center;
}

.dh-groom-hero__logo {
    display: block;
    width: min(20rem, 78%);
    height: auto;
    margin-bottom: 0.9rem;
    filter: drop-shadow(0 16px 30px rgba(0, 0, 0, 0.22));
}

.dh-groom-hero__eyebrow {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 1.1rem;
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.dh-groom-hero__mark {
    display: inline-grid;
    width: 2rem;
    height: 2rem;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    color: #e4c7ff;
}

.dh-groom-hero__mark-icon {
    width: 1rem;
    height: 1rem;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.9;
}

.dh-groom-status {
    display: inline-flex;
    align-items: center;
    gap: 0.42rem;
    padding: 0.34rem 0.62rem;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.07);
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.63rem;
    letter-spacing: 0.08em;
}

.dh-groom-status > span {
    width: 0.42rem;
    height: 0.42rem;
    border-radius: 50%;
    background: #f5bd4f;
    box-shadow: 0 0 0 4px rgba(245, 189, 79, 0.11);
}

.dh-groom-status.is-ready > span {
    background: #59d3a1;
    box-shadow: 0 0 0 4px rgba(89, 211, 161, 0.11);
}

.dh-groom-hero h1 {
    max-width: 48rem;
    margin: 0;
    color: #fff;
    font-size: clamp(2rem, 4vw, 3.55rem);
    font-weight: 770;
    letter-spacing: -0.055em;
    line-height: 0.98;
}

.dh-groom-hero__body > p {
    max-width: 45rem;
    margin: 1.1rem 0 0;
    color: rgba(255, 255, 255, 0.67);
    font-size: clamp(0.94rem, 1.4vw, 1.08rem);
    line-height: 1.65;
}

.dh-groom-scope {
    display: flex;
    max-width: 47rem;
    align-items: flex-start;
    gap: 0.8rem;
    margin-top: 1.35rem;
    padding-top: 1.15rem;
    border-top: 1px solid rgba(255, 255, 255, 0.09);
}

.dh-groom-scope__icon {
    display: inline-grid;
    width: 2.15rem;
    height: 2.15rem;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 11px;
    background: rgba(219, 190, 255, 0.11);
    color: #d9baff;
}

.dh-groom-scope__glyph {
    width: 1.05rem;
    height: 1.05rem;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.dh-groom-scope strong,
.dh-groom-scope small {
    display: block;
}

.dh-groom-scope strong {
    margin-bottom: 0.16rem;
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.81rem;
}

.dh-groom-scope small {
    max-width: 42rem;
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.73rem;
    line-height: 1.55;
}

.dh-groom-hero__actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-content: center;
    gap: 0.7rem;
}

.dh-groom-action.btn {
    display: flex;
    min-height: 4.4rem;
    align-items: center;
    justify-content: flex-start;
    gap: 0.75rem;
    padding: 0.85rem 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.065);
    color: rgba(255, 255, 255, 0.86);
    font-size: 0.78rem;
    font-weight: 760;
    line-height: 1.25;
    text-align: left;
    transition: transform 160ms ease, border-color 160ms ease, background-color 160ms ease;
}

.dh-groom-action.btn:hover {
    border-color: rgba(255, 255, 255, 0.24);
    background: rgba(255, 255, 255, 0.11);
    color: #fff;
    transform: translateY(-2px);
}

.dh-groom-action.btn.is-primary {
    border-color: rgba(213, 180, 252, 0.34);
    background: linear-gradient(145deg, #9f6bd8, #7448a7);
    box-shadow: 0 12px 28px rgba(107, 63, 156, 0.32);
    color: #fff;
}

.dh-groom-action__icon {
    width: 1.15rem;
    height: 1.15rem;
    flex: 0 0 auto;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.dh-groom-action span {
    min-width: 0;
}

.dh-groom-action small {
    display: block;
    margin-top: 0.15rem;
    color: rgba(255, 255, 255, 0.47);
    font-size: 0.62rem;
    font-weight: 600;
}

.dh-groom-setup {
    display: flex;
    align-items: flex-start;
    gap: 0.9rem;
    margin-top: 1rem;
    padding: 1rem 1.15rem;
    border: 1px solid rgba(155, 105, 21, 0.18);
    border-radius: 18px;
    background: linear-gradient(135deg, #fff9e9, #fffdf7);
    box-shadow: 0 9px 24px rgba(87, 62, 17, 0.05);
    color: #604917;
}

.dh-groom-setup__icon {
    display: inline-grid;
    width: 2.35rem;
    height: 2.35rem;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 12px;
    background: #ffefbf;
    color: #8a6511;
}

.dh-groom-setup__glyph {
    width: 1.1rem;
    height: 1.1rem;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.9;
}

.dh-groom-setup strong,
.dh-groom-setup small {
    display: block;
}

.dh-groom-setup strong {
    margin-bottom: 0.2rem;
    font-size: 0.86rem;
}

.dh-groom-setup small {
    color: #806b3b;
    font-size: 0.76rem;
    line-height: 1.5;
}

.dh-groom-tabs-wrap {
    position: sticky;
    z-index: 20;
    top: 0.8rem;
    margin: 1rem 0;
    padding: 0.35rem;
    border: 1px solid rgba(47, 35, 66, 0.1);
    border-radius: 18px;
    background: rgba(250, 249, 252, 0.88);
    box-shadow: 0 12px 34px rgba(34, 24, 47, 0.08);
    backdrop-filter: blur(18px);
}

.dh-groom-tabs.dh-admin-tabs {
    display: grid;
    grid-template-columns: repeat(6, minmax(max-content, 1fr));
    gap: 0.22rem;
    margin: 0 !important;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.dh-groom-tabs.dh-admin-tabs .nav-link {
    display: flex;
    width: 100%;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    gap: 0.48rem;
    margin: 0;
    padding: 0.55rem 0.68rem;
    border: 0;
    border-radius: 13px;
    color: #746d7d;
    background: transparent;
    font-size: 0.72rem;
    font-weight: 760;
    white-space: nowrap;
}

.dh-groom-tabs.dh-admin-tabs .nav-link:hover {
    color: #3e314d;
    background: rgba(138, 91, 194, 0.07);
}

.dh-groom-tabs.dh-admin-tabs .nav-link.active {
    color: #fff;
    background: linear-gradient(145deg, #31283d, #211a2b);
    box-shadow: 0 8px 20px rgba(29, 22, 39, 0.18);
}

.dh-groom-tab__icon {
    width: 0.95rem;
    height: 0.95rem;
    flex: 0 0 auto;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.dh-groom-tab__count {
    display: inline-grid;
    min-width: 1.24rem;
    height: 1.24rem;
    place-items: center;
    padding: 0 0.3rem;
    border-radius: 999px;
    background: #f0b94c;
    color: #33230b;
    font-size: 0.61rem;
    font-weight: 850;
}

.dh-groom-tab__count.is-danger {
    background: #e76d76;
    color: #fff;
}

.dh-groom-content > .tab-pane {
    scroll-margin-top: 6rem;
}

.dh-groom-attention {
    display: grid;
    gap: 0.65rem;
    margin-bottom: 1rem;
}

.dh-groom-attention__item {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem 0.9rem;
    border: 1px solid rgba(147, 91, 18, 0.13);
    border-radius: 16px;
    background: linear-gradient(135deg, #fffaf0, #fff);
    box-shadow: 0 8px 24px rgba(85, 57, 16, 0.045);
}

.dh-groom-attention__item.is-danger {
    border-color: rgba(178, 61, 72, 0.13);
    background: linear-gradient(135deg, #fff5f6, #fff);
}

.dh-groom-attention__icon {
    display: inline-grid;
    width: 2.35rem;
    height: 2.35rem;
    place-items: center;
    border-radius: 12px;
    background: #ffedbf;
    color: #7b5805;
}

.dh-groom-attention__item.is-danger .dh-groom-attention__icon {
    background: #fde6e8;
    color: #a43843;
}

.dh-groom-attention__glyph {
    width: 1.05rem;
    height: 1.05rem;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.9;
}

.dh-groom-attention__copy strong,
.dh-groom-attention__copy small {
    display: block;
}

.dh-groom-attention__copy strong {
    color: #3d2e1a;
    font-size: 0.82rem;
}

.dh-groom-attention__item.is-danger .dh-groom-attention__copy strong {
    color: #6e272f;
}

.dh-groom-attention__copy small {
    margin-top: 0.12rem;
    color: #81735f;
    font-size: 0.71rem;
}

.dh-groom-attention__action.btn {
    min-height: 35px;
    padding: 0.45rem 0.72rem;
    border: 1px solid rgba(53, 39, 22, 0.12);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.75);
    color: #4d3c27;
    font-size: 0.68rem;
    font-weight: 780;
}

.dh-groom-attention__action.btn:hover {
    border-color: rgba(53, 39, 22, 0.23);
    background: #fff;
    color: #241a0e;
}

.dh-groom-kpis {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.8rem;
    margin-bottom: 1rem;
}

.dh-groom-kpi {
    position: relative;
    display: grid;
    min-height: 10.5rem;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto 1fr auto;
    gap: 0.35rem 0.8rem;
    padding: 1.05rem;
    overflow: hidden;
    border: 1px solid var(--dh-groom-line);
    border-radius: 20px;
    background: var(--dh-groom-surface);
    box-shadow: 0 12px 34px rgba(35, 27, 48, 0.065);
}

.dh-groom-kpi::after {
    position: absolute;
    width: 5rem;
    height: 5rem;
    right: -2.4rem;
    bottom: -2.4rem;
    border-radius: 50%;
    background: rgba(138, 91, 194, 0.07);
    content: "";
}

.dh-groom-kpi__icon {
    display: inline-grid;
    width: 2.15rem;
    height: 2.15rem;
    grid-column: 2;
    grid-row: 1 / span 2;
    place-items: center;
    border-radius: 12px;
    background: #f1edf5;
    color: #6e5c7e;
}

.dh-groom-kpi.is-primary .dh-groom-kpi__icon {
    background: var(--dh-groom-accent-soft);
    color: var(--dh-groom-accent-dark);
}

.dh-groom-kpi.is-success .dh-groom-kpi__icon {
    background: #e4f5ed;
    color: #237354;
}

.dh-groom-kpi.is-warning .dh-groom-kpi__icon {
    background: #fff1cb;
    color: #7f5c0a;
}

.dh-groom-kpi.is-danger .dh-groom-kpi__icon {
    background: #fde9eb;
    color: #a03d47;
}

.dh-groom-kpi__glyph {
    width: 1rem;
    height: 1rem;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.85;
}

.dh-groom-kpi__label {
    align-self: start;
    color: var(--dh-groom-muted);
    font-size: 0.69rem;
    font-weight: 760;
    letter-spacing: 0.015em;
}

.dh-groom-kpi__value {
    align-self: end;
    color: var(--dh-groom-ink);
    font-size: clamp(2.15rem, 4vw, 3.15rem);
    font-weight: 770;
    letter-spacing: -0.06em;
    line-height: 0.9;
}

.dh-groom-kpi > small {
    position: relative;
    z-index: 1;
    grid-column: 1 / -1;
    color: #8a8490;
    font-size: 0.67rem;
    line-height: 1.4;
}

.dh-groom-focus-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.8rem;
    margin-bottom: 1rem;
}

.dh-groom-focus-card {
    min-width: 0;
    padding: 1.1rem;
    border: 1px solid var(--dh-groom-line);
    border-radius: 22px;
    background: var(--dh-groom-surface);
    box-shadow: 0 12px 34px rgba(35, 27, 48, 0.06);
}

.dh-groom-focus-card.has-alerts {
    border-color: rgba(173, 66, 76, 0.14);
}

.dh-groom-focus-card.is-clear {
    background: linear-gradient(145deg, #f5fbf8, rgba(255, 255, 255, 0.95));
}

.dh-groom-focus-card__head {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.75rem;
}

.dh-groom-focus-card__icon {
    display: inline-grid;
    width: 2.45rem;
    height: 2.45rem;
    place-items: center;
    border-radius: 13px;
    background: var(--dh-groom-accent-soft);
    color: var(--dh-groom-accent-dark);
}

.dh-groom-focus-card.has-alerts .dh-groom-focus-card__icon {
    background: #fde9eb;
    color: #a23c47;
}

.dh-groom-focus-card.is-clear .dh-groom-focus-card__icon {
    background: #dff3e9;
    color: #267052;
}

.dh-groom-focus-card__glyph {
    width: 1.12rem;
    height: 1.12rem;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.85;
}

.dh-groom-focus-card__head strong,
.dh-groom-focus-card__head small {
    display: block;
}

.dh-groom-focus-card__head strong {
    color: var(--dh-groom-ink);
    font-size: 0.84rem;
    line-height: 1.3;
}

.dh-groom-focus-card__head small {
    margin-top: 0.16rem;
    color: #827b8b;
    font-size: 0.68rem;
    line-height: 1.4;
}

.dh-groom-focus-card__metric {
    color: var(--dh-groom-accent-dark);
    font-size: 1.65rem;
    font-weight: 770;
    letter-spacing: -0.05em;
}

.dh-groom-focus-list {
    margin: 1rem 0 0;
    padding: 0;
    list-style: none;
}

.dh-groom-focus-list li {
    display: flex;
    min-height: 3.3rem;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.55rem 0;
    border-top: 1px solid rgba(46, 35, 62, 0.075);
}

.dh-groom-focus-list__identity {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 0.65rem;
}

.dh-groom-focus-list__identity strong,
.dh-groom-focus-list__identity small {
    display: block;
}

.dh-groom-focus-list__identity strong {
    overflow: hidden;
    color: #31283c;
    font-size: 0.76rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dh-groom-focus-list__identity small {
    margin-top: 0.08rem;
    overflow: hidden;
    color: #8b8492;
    font-size: 0.64rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dh-groom-focus-list__avatar {
    display: inline-grid;
    width: 1.85rem;
    height: 1.85rem;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 9px;
    background: #f2eef6;
    color: #776488;
}

.dh-groom-focus-list__avatar-glyph {
    width: 0.9rem;
    height: 0.9rem;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.dh-groom-focus-list__time {
    flex: 0 0 auto;
    padding: 0.3rem 0.5rem;
    border-radius: 999px;
    background: #f1edf5;
    color: #64576f;
    font-size: 0.62rem;
    font-weight: 760;
    white-space: nowrap;
}

.dh-groom-focus-list__time.is-danger {
    background: #fdebed;
    color: #9b3b45;
}

.dh-groom-focus-card__action.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.42rem;
    margin-top: 0.75rem;
    padding: 0.48rem 0.7rem;
    border: 1px solid rgba(77, 56, 100, 0.13);
    border-radius: 10px;
    color: #5f4777;
    background: #f7f3fb;
    font-size: 0.68rem;
    font-weight: 780;
}

.dh-groom-focus-card__action-icon {
    width: 0.8rem;
    height: 0.8rem;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.9;
}

.dh-groom-focus-card__empty {
    margin-top: 1rem;
    padding: 1rem;
    border: 1px dashed rgba(51, 39, 68, 0.12);
    border-radius: 14px;
    color: #827b8b;
    background: rgba(248, 246, 250, 0.72);
    font-size: 0.72rem;
    text-align: center;
}

.dh-groom-metrics {
    overflow: hidden;
    border: 1px solid var(--dh-groom-line);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.76);
    box-shadow: 0 10px 30px rgba(35, 27, 48, 0.05);
}

.dh-groom-metrics__toggle {
    display: flex;
    width: 100%;
    min-height: 3.4rem;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.8rem 1rem;
    border: 0;
    color: #574a64;
    background: transparent;
    font-size: 0.71rem;
    font-weight: 780;
    text-align: left;
}

.dh-groom-metrics__toggle:hover {
    color: #2c2236;
    background: rgba(138, 91, 194, 0.045);
}

.dh-groom-metrics__toggle-icon {
    width: 0.92rem;
    height: 0.92rem;
    flex: 0 0 auto;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.9;
    transition: transform 160ms ease;
}

.dh-groom-metrics__toggle.is-open .dh-groom-metrics__toggle-icon {
    transform: rotate(45deg);
}

.dh-groom-metrics__body {
    padding: 0 1rem 1rem;
}

.dh-groom-metrics__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.65rem;
}

.dh-groom-mini-kpi {
    display: flex;
    min-width: 0;
    min-height: 6.3rem;
    align-items: flex-start;
    gap: 0.65rem;
    padding: 0.8rem;
    border: 1px solid rgba(51, 39, 68, 0.075);
    border-radius: 15px;
    background: #fbfafc;
}

.dh-groom-mini-kpi__icon {
    display: inline-grid;
    width: 1.9rem;
    height: 1.9rem;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 10px;
    background: #f0ebf5;
    color: #756087;
}

.dh-groom-mini-kpi__glyph {
    width: 0.88rem;
    height: 0.88rem;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.85;
}

.dh-groom-mini-kpi small,
.dh-groom-mini-kpi strong,
.dh-groom-mini-kpi span {
    display: block;
}

.dh-groom-mini-kpi small {
    min-height: 2em;
    color: #7b7484;
    font-size: 0.62rem;
    font-weight: 720;
    line-height: 1.25;
}

.dh-groom-mini-kpi strong {
    margin: 0.22rem 0;
    color: #31273d;
    font-size: 1.4rem;
    letter-spacing: -0.04em;
    line-height: 1;
}

.dh-groom-mini-kpi span {
    color: #97909d;
    font-size: 0.58rem;
    line-height: 1.35;
}

/* Upgrade legacy inner panels while their workflows are migrated in phases. */
.dh-groom-content > .tab-pane:not(#groomPanoramica) > .dh-card,
.dh-groom-content > .tab-pane:not(#groomPanoramica) .dh-card {
    border-color: rgba(48, 35, 70, 0.1);
    border-radius: 20px;
    box-shadow: 0 12px 34px rgba(35, 27, 48, 0.055);
}

.dh-groom-content > .tab-pane:not(#groomPanoramica) .form-control,
.dh-groom-content > .tab-pane:not(#groomPanoramica) .form-select {
    min-height: 43px;
    border-color: rgba(48, 35, 70, 0.14);
    border-radius: 12px;
}

.dh-groom-content > .tab-pane:not(#groomPanoramica) .form-control:focus,
.dh-groom-content > .tab-pane:not(#groomPanoramica) .form-select:focus {
    border-color: rgba(138, 91, 194, 0.52);
    box-shadow: 0 0 0 0.22rem rgba(138, 91, 194, 0.11);
}

.dh-groom-content > .tab-pane:not(#groomPanoramica) .btn-primary,
.dh-groom-content > .tab-pane:not(#groomPanoramica) .dh-primary-btn {
    border-color: #7650a2;
    background: linear-gradient(145deg, #8f62bf, #6d4598);
    box-shadow: 0 8px 20px rgba(105, 67, 148, 0.17);
}

.dh-groom-checkin-panel {
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(249, 247, 252, 0.72), rgba(255, 255, 255, 0) 8rem),
        #fff;
}

.dh-groom-checkin-panel .dh-panel-head {
    padding-bottom: 0.95rem;
    border-bottom: 1px solid rgba(48, 35, 70, 0.08);
}

.dh-groom-checkin-panel .dh-panel-title {
    color: #2b2235;
    font-size: 1.05rem;
    letter-spacing: -0.025em;
}

.dh-groom-checkin-panel .dh-panel-copy {
    max-width: 40rem;
    color: #817a89;
    line-height: 1.55;
}

.dh-groom-checkin-box {
    min-width: 0;
    margin: 0;
    padding: 1rem;
    border: 1px solid rgba(99, 72, 128, 0.12);
    border-radius: 16px;
    background: linear-gradient(145deg, rgba(247, 243, 251, 0.78), rgba(255, 255, 255, 0.92));
}

fieldset.dh-groom-checkin-box legend {
    float: none;
    width: auto;
    margin: 0 0 0.8rem;
    padding: 0;
    color: #493957;
    font-size: 0.76rem;
    font-weight: 780;
}

.dh-groom-checkin-box .form-check-input:checked {
    border-color: var(--dh-groom-accent);
    background-color: var(--dh-groom-accent);
}

.dh-groom-checkin-panel .dh-list-card {
    border-color: rgba(48, 35, 70, 0.09);
    border-radius: 17px;
    background: linear-gradient(145deg, #fff, #fbf9fd);
    box-shadow: 0 7px 20px rgba(35, 27, 48, 0.045);
}

.dh-groom-checkin-panel .dh-list-card details summary {
    width: fit-content;
    cursor: pointer;
    color: var(--dh-groom-accent-dark);
}

.dh-groom-empty-icon {
    width: 1.2rem;
    height: 1.2rem;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.dh-groom-checkin-panel .dh-empty-rich-icon {
    display: inline-grid;
    place-items: center;
}

.dh-groom-inventory-panel {
    overflow: hidden;
    background:
        radial-gradient(circle at 100% 0, rgba(218, 192, 238, 0.2), transparent 18rem),
        linear-gradient(180deg, #fff, #fdfcff);
}

.dh-groom-inventory-head {
    margin-bottom: 1.25rem;
    padding-bottom: 1.1rem;
    border-bottom: 1px solid rgba(48, 35, 70, 0.09);
}

.dh-groom-inventory-head .dh-panel-title {
    margin: 0.28rem 0 0.35rem;
    color: #2b2235;
    font-size: clamp(1.22rem, 2vw, 1.55rem);
    letter-spacing: -0.035em;
}

.dh-groom-inventory-head .dh-panel-copy {
    max-width: 48rem;
    color: #7d7585;
    line-height: 1.55;
}

.dh-groom-inventory-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.42rem;
    color: var(--dh-groom-accent-dark);
    font-size: 0.65rem;
    font-weight: 820;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.dh-groom-inventory-eyebrow__icon,
.dh-groom-inventory-form__glyph,
.dh-groom-inventory-submit__icon,
.dh-groom-inventory-product__icon,
.dh-groom-inventory-movement__glyph,
.dh-groom-inventory-notice__glyph {
    width: 1rem;
    height: 1rem;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.dh-groom-inventory-notice {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 1rem;
    border: 1px solid rgba(174, 125, 45, 0.2);
    border-radius: 16px;
    background: linear-gradient(145deg, #fffaf0, #fffdf8);
    color: #614b2c;
}

.dh-groom-inventory-notice__icon {
    display: inline-grid;
    flex: 0 0 2.25rem;
    width: 2.25rem;
    height: 2.25rem;
    place-items: center;
    border-radius: 12px;
    background: rgba(216, 166, 76, 0.14);
    color: #a16d17;
}

.dh-groom-inventory-notice strong,
.dh-groom-inventory-notice small {
    display: block;
}

.dh-groom-inventory-notice small {
    margin-top: 0.18rem;
    color: #806d52;
    line-height: 1.45;
}

.dh-groom-inventory-grid {
    display: grid;
    grid-template-columns: minmax(17rem, 0.82fr) minmax(0, 1.18fr);
    gap: 1.25rem;
    align-items: start;
}

.dh-groom-inventory-forms,
.dh-groom-inventory-data {
    display: grid;
    min-width: 0;
    gap: 1rem;
}

.dh-groom-inventory-form {
    padding: 1rem;
    border: 1px solid rgba(87, 65, 109, 0.11);
    border-radius: 18px;
    background: linear-gradient(145deg, rgba(249, 247, 252, 0.88), #fff);
    box-shadow: 0 8px 24px rgba(41, 31, 53, 0.04);
}

.dh-groom-inventory-form.is-accent {
    border-color: rgba(121, 82, 164, 0.18);
    background:
        radial-gradient(circle at 100% 0, rgba(173, 128, 211, 0.14), transparent 12rem),
        #fff;
}

.dh-groom-inventory-form fieldset {
    display: grid;
    min-width: 0;
    gap: 0.85rem;
    margin: 0;
}

.dh-groom-inventory-form legend {
    display: flex;
    float: none;
    width: 100%;
    align-items: flex-start;
    gap: 0.7rem;
    margin: 0 0 0.15rem;
    padding: 0;
}

.dh-groom-inventory-form legend > span:last-child,
.dh-groom-inventory-form legend strong,
.dh-groom-inventory-form legend small {
    display: block;
}

.dh-groom-inventory-form legend strong {
    color: #352943;
    font-size: 0.9rem;
    letter-spacing: -0.015em;
}

.dh-groom-inventory-form legend small {
    margin-top: 0.15rem;
    color: #8a8291;
    font-size: 0.68rem;
    line-height: 1.42;
}

.dh-groom-inventory-form__icon {
    display: inline-grid;
    flex: 0 0 2rem;
    width: 2rem;
    height: 2rem;
    place-items: center;
    border-radius: 10px;
    background: rgba(130, 90, 174, 0.1);
    color: var(--dh-groom-accent-dark);
}

.dh-groom-inventory-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.7rem;
}

.dh-groom-field {
    display: grid;
    min-width: 0;
    gap: 0.32rem;
}

.dh-groom-field label {
    color: #51465b;
    font-size: 0.68rem;
    font-weight: 760;
}

.dh-groom-field label span,
.dh-groom-field > small {
    color: #99919f;
    font-size: 0.62rem;
    font-weight: 560;
}

.dh-groom-inventory-submit.btn {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    border: 1px solid rgba(89, 66, 111, 0.16);
    border-radius: 12px;
    background: #fff;
    color: #493957;
    font-size: 0.72rem;
    font-weight: 780;
}

.dh-groom-inventory-submit.btn:hover,
.dh-groom-inventory-submit.btn:focus-visible {
    border-color: rgba(119, 80, 163, 0.42);
    background: #faf7fc;
    color: #65438b;
}

.dh-groom-inventory-submit.btn.is-primary {
    border-color: #7650a2;
    background: linear-gradient(145deg, #9164bf, #6f4898);
    box-shadow: 0 9px 22px rgba(104, 66, 145, 0.18);
    color: #fff;
}

.dh-groom-inventory-empty {
    min-height: 16rem;
    border: 1px dashed rgba(107, 78, 137, 0.2);
    border-radius: 20px;
    background: rgba(250, 248, 252, 0.66);
}

.dh-groom-inventory-table {
    border: 1px solid rgba(74, 54, 94, 0.1);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 9px 28px rgba(39, 29, 50, 0.045);
}

.dh-groom-inventory-table .table {
    min-width: 39rem;
    margin: 0;
}

.dh-groom-inventory-table thead th {
    padding: 0.8rem 0.85rem;
    border-bottom-color: rgba(63, 46, 80, 0.09);
    background: #faf8fc;
    color: #8b8392;
    font-size: 0.61rem;
    font-weight: 800;
    letter-spacing: 0.055em;
    text-transform: uppercase;
}

.dh-groom-inventory-table tbody th,
.dh-groom-inventory-table tbody td {
    padding: 0.88rem 0.85rem;
    border-bottom-color: rgba(63, 46, 80, 0.065);
    color: #615769;
    font-size: 0.72rem;
}

.dh-groom-inventory-table tbody tr:last-child > * {
    border-bottom: 0;
}

.dh-groom-inventory-table tbody tr.is-low-stock {
    background: rgba(255, 247, 230, 0.55);
}

.dh-groom-inventory-product {
    display: inline-flex;
    align-items: center;
    gap: 0.62rem;
    color: #342a3e;
}

.dh-groom-inventory-product > span:first-child {
    display: inline-grid;
    flex: 0 0 1.9rem;
    width: 1.9rem;
    height: 1.9rem;
    place-items: center;
    border-radius: 9px;
    background: rgba(127, 87, 169, 0.09);
    color: var(--dh-groom-accent-dark);
}

.dh-groom-inventory-product strong,
.dh-groom-inventory-product small {
    display: block;
}

.dh-groom-inventory-product small {
    margin-top: 0.1rem;
    color: #9c94a2;
    font-size: 0.6rem;
    font-weight: 560;
}

.dh-groom-inventory-low {
    display: block;
    width: fit-content;
    margin-top: 0.25rem;
    padding: 0.18rem 0.4rem;
    border-radius: 999px;
    background: #fff0cc;
    color: #8f6216;
    font-size: 0.54rem;
    font-weight: 800;
}

.dh-groom-inventory-movements {
    padding: 1rem;
    border: 1px solid rgba(73, 53, 93, 0.1);
    border-radius: 18px;
    background: linear-gradient(145deg, #fff, #fbf9fd);
}

.dh-groom-inventory-movements > header h3 {
    margin: 0;
    color: #3c3048;
    font-size: 0.83rem;
}

.dh-groom-inventory-movements > header p {
    margin: 0.18rem 0 0.75rem;
    color: #928a99;
    font-size: 0.64rem;
}

.dh-groom-inventory-movement-list {
    display: grid;
    gap: 0.45rem;
}

.dh-groom-inventory-movement {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 0.65rem;
    padding: 0.62rem 0;
    border-top: 1px solid rgba(69, 51, 87, 0.065);
}

.dh-groom-inventory-movement__icon {
    display: inline-grid;
    width: 1.8rem;
    height: 1.8rem;
    place-items: center;
    border-radius: 9px;
    background: rgba(119, 81, 160, 0.09);
    color: var(--dh-groom-accent-dark);
}

.dh-groom-inventory-movement strong,
.dh-groom-inventory-movement small {
    display: block;
}

.dh-groom-inventory-movement strong {
    color: #493d53;
    font-size: 0.69rem;
}

.dh-groom-inventory-movement small,
.dh-groom-inventory-movement time {
    color: #9a929f;
    font-size: 0.58rem;
}

.dh-groom-inventory-movement__quantity {
    text-align: right;
}

.dh-groom-inventory-movement time {
    white-space: nowrap;
}

.dh-groom-record-editor,
.dh-groom-record-registry {
    overflow: hidden;
    background:
        radial-gradient(circle at 100% 0, rgba(190, 153, 220, 0.14), transparent 16rem),
        linear-gradient(180deg, #fff, #fdfcff);
}

.dh-groom-record-head {
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(58, 42, 74, 0.085);
}

.dh-groom-record-head .dh-panel-title {
    margin: 0.25rem 0 0.35rem;
    color: #302539;
    font-size: 1.1rem;
    letter-spacing: -0.025em;
}

.dh-groom-record-head .dh-panel-copy {
    max-width: 39rem;
    color: #817988;
    line-height: 1.5;
}

.dh-groom-record-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.38rem;
    color: var(--dh-groom-accent-dark);
    font-size: 0.62rem;
    font-weight: 820;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.dh-groom-record-eyebrow__icon,
.dh-groom-record-box__icon,
.dh-groom-record-button__icon,
.dh-groom-record-meta__icon,
.dh-groom-record-gallery__icon {
    width: 0.95rem;
    height: 0.95rem;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.dh-groom-label-note {
    margin-left: 0.2rem;
    color: #9a929f;
    font-size: 0.61rem;
    font-weight: 560;
}

.dh-groom-record-editor .dh-quick-templates {
    margin-bottom: 1rem;
}

.dh-groom-record-box {
    min-width: 0;
    margin: 0;
    padding: 0.95rem;
    border: 1px solid rgba(92, 67, 117, 0.12);
    border-radius: 16px;
    background: linear-gradient(145deg, rgba(248, 245, 251, 0.82), rgba(255, 255, 255, 0.95));
}

.dh-groom-record-box legend {
    display: inline-flex;
    float: none;
    width: auto;
    align-items: center;
    gap: 0.42rem;
    margin: 0 0 0.65rem;
    padding: 0;
    color: #493a56;
    font-size: 0.74rem;
    font-weight: 790;
}

.dh-groom-record-box legend small {
    color: #99919f;
    font-size: 0.58rem;
    font-weight: 560;
}

.dh-groom-record-registry .dh-panel-head .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.dh-groom-record-filters {
    padding: 0.8rem;
    border: 1px solid rgba(66, 48, 84, 0.085);
    border-radius: 16px;
    background: #faf9fb;
}

.dh-groom-record-empty {
    min-height: 18rem;
    border: 1px dashed rgba(107, 78, 137, 0.2);
    border-radius: 20px;
    background: rgba(250, 248, 252, 0.66);
}

.dh-groom-record-card {
    padding: 1rem;
    border-color: rgba(67, 49, 85, 0.1);
    border-radius: 18px;
    background: linear-gradient(145deg, #fff, #fcfafd);
    box-shadow: 0 8px 23px rgba(39, 29, 50, 0.045);
}

.dh-groom-record-card__title {
    margin: 0;
    color: #34293e;
    font-size: 0.88rem;
    font-weight: 780;
    letter-spacing: -0.015em;
}

.dh-groom-record-card .dh-meta-stamp {
    display: inline-flex;
    align-items: center;
    gap: 0.28rem;
}

.dh-groom-record-gallery {
    margin-top: 0.85rem;
    padding-top: 0.8rem;
    border-top: 1px solid rgba(67, 49, 85, 0.08);
}

.dh-groom-record-gallery__title {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.7rem;
    color: #5c4b68;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.065em;
    text-transform: uppercase;
}

.dh-groom-record-gallery__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(5rem, 1fr));
    gap: 0.55rem;
    margin-bottom: 0.8rem;
}

.dh-groom-record-photo {
    min-width: 0;
    margin: 0;
    overflow: hidden;
    border: 1px solid rgba(69, 50, 88, 0.1);
    border-radius: 12px;
    background: #fff;
}

.dh-groom-record-photo a,
.dh-groom-record-photo img {
    display: block;
    width: 100%;
}

.dh-groom-record-photo img {
    aspect-ratio: 1;
    object-fit: cover;
}

.dh-groom-record-photo figcaption {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.3rem;
    padding: 0.4rem;
    color: #83798b;
    font-size: 0.52rem;
    font-weight: 680;
}

.dh-groom-record-photo-form {
    display: grid;
    grid-template-columns: minmax(10rem, 1.5fr) repeat(3, minmax(6rem, 0.7fr)) auto;
    gap: 0.55rem;
    align-items: end;
    padding: 0.75rem;
    border: 1px solid rgba(90, 65, 115, 0.1);
    border-radius: 14px;
    background: rgba(249, 247, 251, 0.72);
}

.dh-groom-record-photo-form > div {
    min-width: 0;
}

@media (min-width: 1400px) {
    .dh-groom-records-grid > .col-xxl-5 {
        width: 44%;
    }

    .dh-groom-records-grid > .col-xxl-7 {
        width: 56%;
    }
}

@media (min-width: 1200px) {
    .dh-groom-checkin-grid > .col-xl-5 {
        width: 46%;
    }

    .dh-groom-checkin-grid > .col-xl-7 {
        width: 54%;
    }
}

@media (max-width: 1199.98px) {
    .dh-groom-hero {
        grid-template-columns: minmax(0, 1.2fr) minmax(15rem, 0.8fr);
    }

    .dh-groom-kpis,
    .dh-groom-metrics__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dh-groom-tabs.dh-admin-tabs {
        display: flex;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .dh-groom-tabs.dh-admin-tabs::-webkit-scrollbar {
        display: none;
    }

    .dh-groom-tabs.dh-admin-tabs .nav-item {
        flex: 0 0 auto;
    }

    .dh-groom-record-photo-form {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dh-groom-record-photo-form .btn {
        grid-column: 1 / -1;
    }
}

@media (max-width: 991.98px) {
    .dh-groom-hero {
        grid-template-columns: 1fr;
    }

    .dh-groom-hero__actions {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .dh-groom-action.btn {
        min-height: 4rem;
        align-items: flex-start;
        flex-direction: column;
        gap: 0.45rem;
    }

    .dh-groom-focus-grid {
        grid-template-columns: 1fr;
    }

    .dh-groom-inventory-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767.98px) {
    .dh-groom-hero {
        padding: 1.35rem;
        border-radius: 23px;
    }

    .dh-groom-hero h1 {
        font-size: clamp(2rem, 10vw, 2.8rem);
    }

    .dh-groom-hero__actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dh-groom-tabs-wrap {
        position: relative;
        top: auto;
        margin: 0.8rem 0;
        border-radius: 15px;
    }

    .dh-groom-attention__item {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .dh-groom-attention__action.btn {
        grid-column: 2;
        justify-self: start;
    }

    .dh-groom-inventory-movement {
        grid-template-columns: auto minmax(0, 1fr) auto;
    }

    .dh-groom-inventory-movement time {
        grid-column: 2 / -1;
    }

    .dh-groom-record-registry .dh-panel-head {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 575.98px) {
    .dh-groom-hero__eyebrow {
        gap: 0.5rem;
    }

    .dh-groom-status {
        flex-basis: auto;
    }

    .dh-groom-scope {
        align-items: flex-start;
    }

    .dh-groom-action.btn {
        min-height: 4.25rem;
        padding: 0.72rem;
        font-size: 0.71rem;
    }

    .dh-groom-kpis,
    .dh-groom-metrics__grid {
        grid-template-columns: 1fr;
    }

    .dh-groom-kpi {
        min-height: 8.4rem;
    }

    .dh-groom-focus-card {
        padding: 0.9rem;
        border-radius: 18px;
    }

    .dh-groom-focus-list li {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.35rem;
    }

    .dh-groom-focus-list__time {
        margin-left: 2.5rem;
    }

    .dh-groom-inventory-panel {
        padding: 1rem !important;
    }

    .dh-groom-inventory-fields {
        grid-template-columns: 1fr;
    }

    .dh-groom-record-editor,
    .dh-groom-record-registry {
        padding: 1rem !important;
    }

    .dh-groom-record-photo-form {
        grid-template-columns: 1fr;
    }

    .dh-groom-record-photo-form .btn {
        grid-column: auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    .dh-groom-action.btn,
    .dh-groom-metrics__toggle-icon {
        transition: none;
    }
}

/* Grooming settings: commercial rules and smart pricing */
.dh-groom-settings-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(18rem, 0.75fr);
    gap: 1.25rem;
    align-items: start;
}

.dh-groom-settings-main,
.dh-groom-settings-aside {
    display: grid;
    gap: 1.25rem;
    min-width: 0;
}

.dh-groom-settings-panel,
.dh-groom-pricing-panel,
.dh-groom-settings-side-card {
    border: 1px solid rgba(21, 39, 65, 0.08);
    border-radius: 24px;
    box-shadow: 0 18px 48px rgba(26, 38, 56, 0.07);
}

.dh-groom-settings-panel {
    overflow: hidden;
    background:
        radial-gradient(circle at 96% 2%, rgba(251, 191, 36, 0.14), transparent 28%),
        #fff;
}

.dh-groom-pricing-panel {
    background:
        radial-gradient(circle at 0 0, rgba(13, 148, 136, 0.08), transparent 30%),
        #fff;
}

.dh-groom-settings-head {
    align-items: flex-start;
    margin-bottom: 1.25rem;
}

.dh-groom-settings-head .dh-panel-title {
    margin: 0.18rem 0 0.32rem;
    color: #152741;
    font-size: clamp(1.2rem, 2vw, 1.55rem);
    letter-spacing: -0.025em;
}

.dh-groom-settings-head .dh-panel-copy {
    max-width: 48rem;
    margin: 0;
    color: #667085;
    line-height: 1.55;
}

.dh-groom-settings-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.42rem;
    color: #a16207;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.dh-groom-settings-eyebrow__icon {
    width: 1rem;
    height: 1rem;
}

.dh-groom-settings-notice {
    display: flex;
    align-items: flex-start;
    gap: 0.72rem;
    padding: 0.9rem 1rem;
    border: 1px solid rgba(217, 119, 6, 0.2);
    border-radius: 16px;
    background: rgba(255, 251, 235, 0.8);
    color: #854d0e;
    font-size: 0.88rem;
    line-height: 1.5;
}

.dh-groom-settings-notice__icon {
    width: 1.15rem;
    height: 1.15rem;
    flex: 0 0 auto;
    margin-top: 0.05rem;
}

.dh-groom-settings-form {
    display: grid;
    gap: 1rem;
}

.dh-groom-settings-group {
    min-width: 0;
    margin: 0;
    padding: 1rem;
    border: 1px solid #e8edf3;
    border-radius: 18px;
    background: rgba(249, 250, 251, 0.78);
}

.dh-groom-settings-group legend {
    display: flex;
    align-items: center;
    gap: 0.48rem;
    width: auto;
    margin: 0 0 0.9rem;
    padding: 0;
    color: #24364d;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.025em;
}

.dh-groom-settings-group__icon {
    width: 1rem;
    height: 1rem;
    color: #d97706;
}

.dh-groom-settings-fields,
.dh-groom-pricing-fields {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem;
}

.dh-groom-pricing-fields {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.dh-groom-field {
    display: grid;
    align-content: start;
    gap: 0.38rem;
    min-width: 0;
}

.dh-groom-field.is-wide {
    grid-column: span 2;
}

.dh-groom-field > label {
    margin: 0;
    color: #344054;
    font-size: 0.76rem;
    font-weight: 750;
}

.dh-groom-field > label span {
    color: #98a2b3;
    font-weight: 600;
}

.dh-groom-field > small {
    color: #7a8699;
    font-size: 0.7rem;
    line-height: 1.42;
}

.dh-groom-settings-panel .form-control,
.dh-groom-settings-panel .form-select,
.dh-groom-pricing-panel .form-control,
.dh-groom-pricing-panel .form-select {
    min-height: 2.75rem;
    border-color: #d8e0e9;
    border-radius: 12px;
    background-color: #fff;
    color: #1f2937;
    font-size: 0.82rem;
    box-shadow: none;
}

.dh-groom-settings-panel .form-control:focus,
.dh-groom-settings-panel .form-select:focus,
.dh-groom-pricing-panel .form-control:focus,
.dh-groom-pricing-panel .form-select:focus {
    border-color: #d99a13;
    box-shadow: 0 0 0 0.2rem rgba(217, 154, 19, 0.14);
}

.dh-groom-input-prefix,
.dh-groom-input-suffix {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    min-width: 0;
    border: 1px solid #d8e0e9;
    border-radius: 12px;
    overflow: hidden;
    background: #f7f9fb;
}

.dh-groom-input-suffix {
    grid-template-columns: minmax(0, 1fr) auto;
}

.dh-groom-input-prefix > span,
.dh-groom-input-suffix > span {
    padding: 0 0.72rem;
    color: #667085;
    font-size: 0.72rem;
    font-weight: 750;
    white-space: nowrap;
}

.dh-groom-input-prefix .form-control,
.dh-groom-input-suffix .form-control {
    border: 0;
    border-radius: 0;
}

.dh-groom-input-prefix:focus-within,
.dh-groom-input-suffix:focus-within {
    border-color: #d99a13;
    box-shadow: 0 0 0 0.2rem rgba(217, 154, 19, 0.14);
}

.dh-groom-input-prefix:focus-within .form-control,
.dh-groom-input-suffix:focus-within .form-control {
    box-shadow: none;
}

.dh-groom-settings-switches {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin: 0.8rem 0;
}

.dh-groom-switch {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    min-height: 2.5rem;
    margin: 0;
    padding: 0.55rem 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 13px;
    background: #fff;
    color: #344054;
    cursor: pointer;
    font-size: 0.76rem;
    font-weight: 720;
}

.dh-groom-switch .form-check-input {
    width: 2.25rem;
    height: 1.2rem;
    flex: 0 0 auto;
    margin: 0;
    cursor: pointer;
}

.dh-groom-switch .form-check-input:checked {
    border-color: #d99a13;
    background-color: #d99a13;
}

.dh-groom-settings-referral {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(12rem, 0.75fr);
    gap: 0.85rem;
    align-items: end;
}

.dh-groom-settings-referral .dh-groom-switch {
    align-self: end;
}

.dh-groom-settings-submit {
    display: flex;
    justify-content: flex-end;
    padding-top: 0.15rem;
}

.dh-groom-settings-primary.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.48rem;
    min-height: 2.75rem;
    padding: 0.68rem 1.05rem;
    border: 1px solid #152741;
    border-radius: 13px;
    background: #152741;
    color: #fff;
    font-size: 0.78rem;
    font-weight: 800;
    box-shadow: 0 10px 22px rgba(21, 39, 65, 0.16);
}

.dh-groom-settings-primary.btn:hover,
.dh-groom-settings-primary.btn:focus-visible {
    border-color: #243f62;
    background: #243f62;
    color: #fff;
    transform: translateY(-1px);
}

.dh-groom-settings-primary__icon {
    width: 1rem;
    height: 1rem;
}

.dh-groom-pricing-form {
    padding: 1rem;
    border: 1px solid #e8edf3;
    border-radius: 18px;
    background: rgba(249, 250, 251, 0.78);
}

.dh-groom-pricing-form .dh-groom-settings-submit {
    margin-top: 0.9rem;
}

.dh-groom-pricing-empty {
    margin-top: 1rem;
}

.dh-groom-pricing-table {
    margin-top: 1rem;
    border: 1px solid #e7ecf2;
    border-radius: 16px;
}

.dh-groom-pricing-table .table {
    min-width: 48rem;
    margin: 0;
    font-size: 0.77rem;
}

.dh-groom-pricing-table th,
.dh-groom-pricing-table td {
    padding: 0.78rem;
    border-color: #edf1f5;
    vertical-align: middle;
}

.dh-groom-pricing-table thead th {
    background: #f7f9fb;
    color: #667085;
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
}

.dh-groom-pricing-table tbody th {
    color: #24364d;
    font-weight: 750;
}

.dh-groom-pricing-table td small {
    margin-top: 0.18rem;
    color: #7a8699;
}

.dh-groom-pricing-size {
    display: inline-flex;
    padding: 0.3rem 0.55rem;
    border: 1px solid rgba(217, 154, 19, 0.24);
    border-radius: 999px;
    background: #fffbeb;
    color: #854d0e;
    font-size: 0.68rem;
    font-weight: 800;
    white-space: nowrap;
}

.dh-groom-icon-button.btn {
    display: inline-grid;
    width: 2.15rem;
    height: 2.15rem;
    place-items: center;
    padding: 0;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #fff;
    color: #b42318;
}

.dh-groom-icon-button.btn:hover,
.dh-groom-icon-button.btn:focus-visible {
    border-color: #fda29b;
    background: #fff5f4;
    color: #912018;
}

.dh-groom-icon-button__remove {
    width: 0.9rem;
    height: 0.9rem;
    transform: rotate(45deg);
}

.dh-groom-settings-side-card {
    background: #fff;
}

.dh-groom-settings-side-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.8rem;
    margin-bottom: 1rem;
}

.dh-groom-settings-side-head h2 {
    margin: 0 0 0.22rem;
    color: #152741;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: -0.015em;
}

.dh-groom-settings-side-head p {
    margin: 0;
    color: #7a8699;
    font-size: 0.76rem;
    line-height: 1.45;
}

.dh-groom-settings-link.btn {
    flex: 0 0 auto;
    padding: 0.45rem 0.65rem;
    border: 1px solid #d8e0e9;
    border-radius: 10px;
    color: #344054;
    font-size: 0.67rem;
    font-weight: 800;
    white-space: nowrap;
}

.dh-groom-service-list {
    display: grid;
    gap: 0.55rem;
}

.dh-groom-service-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.65rem;
    padding: 0.68rem;
    border: 1px solid #edf0f4;
    border-radius: 14px;
    background: #fbfcfd;
}

.dh-groom-service-card__icon {
    display: grid;
    width: 2rem;
    height: 2rem;
    place-items: center;
    border-radius: 9px;
    background: #fff4cc;
    color: #9a6700;
}

.dh-groom-service-card__glyph {
    width: 1rem;
    height: 1rem;
}

.dh-groom-service-card__body {
    display: grid;
    min-width: 0;
}

.dh-groom-service-card__body strong {
    overflow: hidden;
    color: #24364d;
    font-size: 0.76rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dh-groom-service-card__body small {
    color: #7a8699;
    font-size: 0.67rem;
}

.dh-groom-settings-empty {
    display: grid;
    justify-items: start;
    gap: 0.48rem;
    padding: 0.9rem;
    border: 1px dashed #d8e0e9;
    border-radius: 16px;
    background: #fbfcfd;
}

.dh-groom-settings-empty__icon {
    width: 1.4rem;
    height: 1.4rem;
    color: #d97706;
}

.dh-groom-settings-empty strong {
    color: #24364d;
    font-size: 0.86rem;
}

.dh-groom-settings-empty p {
    margin: 0 0 0.35rem;
    color: #7a8699;
    font-size: 0.73rem;
    line-height: 1.45;
}

.dh-groom-setup-list {
    display: grid;
    gap: 0.55rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.dh-groom-setup-list li {
    display: grid;
    grid-template-columns: auto auto minmax(0, 1fr);
    align-items: center;
    gap: 0.58rem;
    padding: 0.65rem;
    border: 1px solid #edf0f4;
    border-radius: 14px;
    background: #fbfcfd;
}

.dh-groom-setup-list__number {
    display: grid;
    width: 1.35rem;
    height: 1.35rem;
    place-items: center;
    border-radius: 999px;
    background: #152741;
    color: #fff;
    font-size: 0.62rem;
    font-weight: 850;
}

.dh-groom-setup-list__icon {
    display: grid;
    width: 1.8rem;
    height: 1.8rem;
    place-items: center;
    border-radius: 9px;
    background: #fff4cc;
    color: #9a6700;
}

.dh-groom-setup-list__glyph {
    width: 0.9rem;
    height: 0.9rem;
}

.dh-groom-setup-list li > span:last-child {
    display: grid;
}

.dh-groom-setup-list strong {
    color: #344054;
    font-size: 0.74rem;
}

.dh-groom-setup-list small {
    color: #7a8699;
    font-size: 0.66rem;
    line-height: 1.4;
}

@media (max-width: 1199.98px) {
    .dh-groom-settings-layout {
        grid-template-columns: 1fr;
    }

    .dh-groom-settings-aside {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767.98px) {
    .dh-groom-settings-fields,
    .dh-groom-pricing-fields {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dh-groom-settings-referral {
        grid-template-columns: 1fr;
    }

    .dh-groom-settings-aside {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 575.98px) {
    .dh-groom-settings-panel,
    .dh-groom-pricing-panel,
    .dh-groom-settings-side-card {
        padding: 1rem !important;
        border-radius: 18px;
    }

    .dh-groom-settings-fields,
    .dh-groom-pricing-fields {
        grid-template-columns: 1fr;
    }

    .dh-groom-field.is-wide {
        grid-column: auto;
    }

    .dh-groom-settings-switches {
        display: grid;
    }

    .dh-groom-switch {
        width: 100%;
    }

    .dh-groom-settings-submit .btn {
        width: 100%;
    }

    .dh-groom-settings-side-head {
        flex-direction: column;
    }
}

/* Grooming client programme: membership, referrals and consent */
.dh-groom-customers-hero {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
    gap: 0.85rem;
    margin-bottom: 1.15rem;
    padding: 1rem 1.1rem;
    border: 1px solid rgba(21, 39, 65, 0.08);
    border-radius: 20px;
    background:
        radial-gradient(circle at 92% 10%, rgba(251, 191, 36, 0.14), transparent 28%),
        linear-gradient(135deg, #fff 0%, #fffcf2 100%);
}

.dh-groom-customers-hero__icon {
    display: grid;
    width: 2.75rem;
    height: 2.75rem;
    place-items: center;
    border-radius: 14px;
    background: #152741;
    color: #fff;
    box-shadow: 0 10px 24px rgba(21, 39, 65, 0.18);
}

.dh-groom-customers-hero__glyph {
    width: 1.25rem;
    height: 1.25rem;
}

.dh-groom-customers-hero__eyebrow {
    display: block;
    margin-bottom: 0.15rem;
    color: #a16207;
    font-size: 0.66rem;
    font-weight: 850;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.dh-groom-customers-hero h2 {
    margin: 0;
    color: #152741;
    font-size: clamp(1.25rem, 2vw, 1.6rem);
    font-weight: 850;
    letter-spacing: -0.028em;
}

.dh-groom-customers-hero p {
    max-width: 58rem;
    margin: 0.28rem 0 0;
    color: #667085;
    font-size: 0.83rem;
    line-height: 1.55;
}

.dh-groom-customer-program-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
    align-items: start;
}

.dh-groom-customer-panel,
.dh-groom-consent-panel {
    min-width: 0;
    border: 1px solid rgba(21, 39, 65, 0.08);
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 18px 48px rgba(26, 38, 56, 0.07);
}

.dh-groom-customer-panel {
    height: 100%;
}

.dh-groom-consent-panel {
    margin-top: 1.25rem;
    background:
        radial-gradient(circle at 100% 0, rgba(59, 130, 246, 0.08), transparent 28%),
        #fff;
}

.dh-groom-customer-head {
    align-items: flex-start;
    margin-bottom: 1rem;
}

.dh-groom-customer-head .dh-panel-title {
    margin: 0.2rem 0 0.3rem;
    color: #152741;
    font-size: 1.15rem;
    letter-spacing: -0.02em;
}

.dh-groom-customer-head .dh-panel-copy {
    margin: 0;
    color: #667085;
    font-size: 0.78rem;
    line-height: 1.5;
}

.dh-groom-customer-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.38rem;
    color: #a16207;
    font-size: 0.65rem;
    font-weight: 850;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.dh-groom-customer-kicker.is-green {
    color: #087f5b;
}

.dh-groom-customer-kicker.is-blue {
    color: #175cd3;
}

.dh-groom-customer-kicker__icon {
    width: 0.88rem;
    height: 0.88rem;
}

.dh-groom-customer-notice {
    display: flex;
    align-items: flex-start;
    gap: 0.62rem;
    margin-bottom: 0.9rem;
    padding: 0.78rem 0.85rem;
    border: 1px solid rgba(217, 119, 6, 0.2);
    border-radius: 14px;
    background: #fffbeb;
    color: #854d0e;
    font-size: 0.73rem;
    line-height: 1.48;
}

.dh-groom-customer-notice__icon {
    width: 1rem;
    height: 1rem;
    flex: 0 0 auto;
    margin-top: 0.06rem;
}

.dh-groom-customer-form,
.dh-groom-consent-form {
    padding: 0.9rem;
    border: 1px solid #e8edf3;
    border-radius: 18px;
    background: #f9fafb;
}

.dh-groom-customer-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.78rem;
}

.dh-groom-customer-form .form-control,
.dh-groom-customer-form .form-select,
.dh-groom-consent-form .form-control,
.dh-groom-consent-form .form-select,
.dh-groom-consent-sign-form .form-control {
    min-height: 2.65rem;
    border-color: #d8e0e9;
    border-radius: 12px;
    background-color: #fff;
    color: #1f2937;
    font-size: 0.78rem;
    box-shadow: none;
}

.dh-groom-customer-form textarea.form-control,
.dh-groom-consent-form textarea.form-control {
    min-height: auto;
}

.dh-groom-customer-form .form-control:focus,
.dh-groom-customer-form .form-select:focus,
.dh-groom-consent-form .form-control:focus,
.dh-groom-consent-form .form-select:focus,
.dh-groom-consent-sign-form .form-control:focus {
    border-color: #d99a13;
    box-shadow: 0 0 0 0.2rem rgba(217, 154, 19, 0.14);
}

.dh-groom-customer-submit {
    display: flex;
    justify-content: flex-end;
    margin-top: 0.85rem;
}

.dh-groom-customer-list,
.dh-groom-consent-list {
    display: grid;
    gap: 0.65rem;
    margin-top: 0.9rem;
}

.dh-groom-customer-empty {
    margin-top: 0.9rem;
}

.dh-groom-customer-record {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.68rem;
    padding: 0.8rem;
    border: 1px solid #e9edf2;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 8px 22px rgba(21, 39, 65, 0.035);
}

.dh-groom-customer-record__icon {
    display: grid;
    width: 2.1rem;
    height: 2.1rem;
    place-items: center;
    border-radius: 11px;
    background: #fff4cc;
    color: #9a6700;
}

.dh-groom-customer-record__icon.is-green {
    background: #eafaf3;
    color: #087f5b;
}

.dh-groom-customer-record__glyph {
    width: 1rem;
    height: 1rem;
}

.dh-groom-customer-record__body {
    min-width: 0;
}

.dh-groom-customer-record__title {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.55rem;
}

.dh-groom-customer-record__title strong {
    overflow-wrap: anywhere;
    color: #24364d;
    font-size: 0.82rem;
}

.dh-groom-customer-record__body > p {
    margin: 0.18rem 0 0;
    color: #667085;
    font-size: 0.7rem;
    line-height: 1.45;
}

.dh-groom-customer-record__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: 0.48rem;
}

.dh-groom-customer-record__meta span {
    display: inline-flex;
    padding: 0.25rem 0.45rem;
    border-radius: 999px;
    background: #f2f4f7;
    color: #475467;
    font-size: 0.63rem;
    font-weight: 720;
}

.dh-groom-customer-record__note {
    margin-top: 0.5rem !important;
    padding-top: 0.45rem;
    border-top: 1px solid #edf0f4;
}

.dh-groom-referral-code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    letter-spacing: 0.02em;
}

.dh-groom-consent-fields {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.82rem;
}

.dh-groom-consent-fields .is-full {
    grid-column: 1 / -1;
}

.dh-groom-consent-signature {
    min-width: 0;
    margin: 0;
    padding: 0.75rem;
    border: 1px solid #e4e9f0;
    border-radius: 14px;
    background: #fff;
}

.dh-groom-consent-signature legend {
    width: auto;
    margin: 0 0 0.7rem;
    padding: 0;
}

.dh-groom-consent-signature__fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.68rem;
}

.dh-groom-consent-card {
    padding: 0.9rem;
    border: 1px solid #e7ecf2;
    border-radius: 17px;
    background: #fff;
}

.dh-groom-consent-card__head {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: start;
    gap: 0.7rem;
}

.dh-groom-consent-card__icon {
    display: grid;
    width: 2.2rem;
    height: 2.2rem;
    place-items: center;
    border-radius: 11px;
    background: #eaf2ff;
    color: #175cd3;
}

.dh-groom-consent-card__glyph {
    width: 1rem;
    height: 1rem;
}

.dh-groom-consent-card__head h3 {
    margin: 0;
    color: #24364d;
    font-size: 0.84rem;
    font-weight: 800;
}

.dh-groom-consent-card__head p {
    margin: 0.17rem 0 0;
    color: #667085;
    font-size: 0.7rem;
}

.dh-groom-consent-card__type {
    display: inline-flex;
    margin-top: 0.38rem;
    padding: 0.23rem 0.42rem;
    border-radius: 999px;
    background: #f2f4f7;
    color: #475467;
    font-size: 0.62rem;
    font-weight: 720;
}

.dh-groom-consent-card__status {
    white-space: nowrap;
}

.dh-groom-consent-card__excerpt {
    max-width: 78ch;
    margin: 0.75rem 0 0;
    padding: 0.65rem 0.72rem;
    border-left: 3px solid #bfdbfe;
    border-radius: 0 10px 10px 0;
    background: #f8fbff;
    color: #5d6b7e;
    font-size: 0.72rem;
    line-height: 1.55;
}

.dh-groom-consent-card__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 0.7rem;
    margin-top: 0.72rem;
}

.dh-groom-consent-card__actions > .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.38rem;
}

.dh-groom-consent-card__action-icon {
    width: 0.85rem;
    height: 0.85rem;
}

.dh-groom-consent-sign-form {
    display: grid;
    grid-template-columns: minmax(10rem, 1fr) minmax(12rem, 1fr) auto;
    align-items: end;
    gap: 0.55rem;
    flex: 1 1 34rem;
    padding: 0.65rem;
    border: 1px solid #e8edf3;
    border-radius: 14px;
    background: #f9fafb;
}

.dh-groom-consent-sign-form .btn {
    min-height: 2.65rem;
}

@media (max-width: 1199.98px) {
    .dh-groom-customer-program-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 991.98px) {
    .dh-groom-consent-fields {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dh-groom-consent-fields .is-full {
        grid-column: 1 / -1;
    }

    .dh-groom-consent-sign-form {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dh-groom-consent-sign-form .btn {
        grid-column: 1 / -1;
    }
}

@media (max-width: 575.98px) {
    .dh-groom-customers-hero {
        grid-template-columns: 1fr;
        padding: 0.9rem;
    }

    .dh-groom-customer-panel,
    .dh-groom-consent-panel {
        padding: 1rem !important;
        border-radius: 18px;
    }

    .dh-groom-customer-fields,
    .dh-groom-consent-fields,
    .dh-groom-consent-signature__fields,
    .dh-groom-consent-sign-form {
        grid-template-columns: 1fr;
    }

    .dh-groom-customer-fields .is-wide,
    .dh-groom-consent-fields .is-wide,
    .dh-groom-consent-fields .is-full,
    .dh-groom-consent-sign-form .btn {
        grid-column: auto;
    }

    .dh-groom-customer-submit .btn {
        width: 100%;
    }

    .dh-groom-customer-record__title,
    .dh-groom-consent-card__head {
        align-items: flex-start;
        grid-template-columns: auto minmax(0, 1fr);
    }

    .dh-groom-customer-record__title {
        flex-direction: column;
    }

    .dh-groom-consent-card__status {
        grid-column: 2;
        white-space: normal;
    }
}

/* Premium communication center */
.dh-communications-page {
    min-width: 0;
}

.dh-app-body[data-dh-ui="2026"] .dh-communications-page .dh-context-hero {
    background:
        radial-gradient(circle at 88% 8%, rgba(16, 185, 129, 0.16), transparent 18rem),
        radial-gradient(circle at 4% 105%, rgba(var(--dh-workspace-accent-rgb), 0.13), transparent 19rem),
        linear-gradient(140deg, rgba(255, 255, 255, 0.99), rgba(244, 248, 251, 0.97));
}

.dh-communications-page .dh-metric-card {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    min-height: 94px;
    padding: 1rem;
    border-color: rgba(18, 32, 51, 0.075);
    background: rgba(255, 255, 255, 0.94);
}

.dh-communications-metric__icon {
    display: grid !important;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    margin: 0 !important;
    place-items: center;
    border: 1px solid rgba(var(--dh-workspace-accent-rgb), 0.2);
    border-radius: 14px;
    color: var(--dh-workspace-accent);
    background: rgba(var(--dh-workspace-accent-rgb), 0.09);
}

.dh-communications-metric__glyph {
    width: 21px;
    height: 21px;
}

.dh-communications-metric__copy {
    display: block !important;
    min-width: 0;
    margin: 0 !important;
}

.dh-communications-metric__copy > strong {
    font-size: 1.45rem;
}

.dh-communications-metric__copy > span {
    margin-top: 0.22rem;
}

.dh-communications-page > .dh-page-section-nav {
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    scroll-padding-inline: 0.45rem;
    scrollbar-width: thin;
    scrollbar-color: rgba(var(--dh-workspace-accent-rgb), 0.3) transparent;
}

.dh-communications-page > .dh-page-section-nav .dh-page-section-card {
    display: grid;
    flex: 0 0 clamp(196px, 18vw, 232px);
    grid-template-columns: 38px minmax(0, 1fr);
    grid-template-rows: auto auto;
    column-gap: 0.72rem;
    row-gap: 0.2rem;
    align-items: center;
    min-height: 92px;
}

.dh-communications-page > .dh-page-section-nav .dh-page-section-card strong {
    grid-column: 2;
    align-self: end;
}

.dh-communications-page > .dh-page-section-nav .dh-page-section-card > span {
    grid-column: 2;
    align-self: start;
    margin-top: 0;
}

.dh-communications-nav__icon {
    grid-column: 1;
    grid-row: 1 / span 2;
    width: 22px;
    height: 22px;
    padding: 8px;
    box-sizing: content-box;
    border: 1px solid rgba(18, 32, 51, 0.08);
    border-radius: 13px;
    color: var(--dh-workspace-accent);
    background: rgba(var(--dh-workspace-accent-rgb), 0.08);
    transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.dh-communications-page > .dh-page-section-nav .dh-page-section-card:hover .dh-communications-nav__icon,
.dh-communications-page > .dh-page-section-nav .dh-page-section-card:focus-visible .dh-communications-nav__icon,
.dh-communications-page > .dh-page-section-nav .dh-page-section-card.is-current .dh-communications-nav__icon {
    border-color: rgba(var(--dh-workspace-accent-rgb), 0.24);
    color: #fff;
    background: var(--dh-workspace-accent);
}

.dh-communications-section {
    position: relative;
    scroll-margin-top: 12rem;
}

.dh-communications-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: clamp(1rem, 2vw, 1.5rem);
    right: clamp(1rem, 2vw, 1.5rem);
    height: 3px;
    border-radius: 0 0 999px 999px;
    background: linear-gradient(90deg, var(--dh-workspace-accent), rgba(var(--dh-workspace-accent-rgb), 0));
    opacity: 0.68;
    pointer-events: none;
}

.dh-communications-webhook-panel {
    flex-basis: 360px;
    width: min(100%, 420px);
    min-width: min(320px, 100%);
}

.dh-communications-inset {
    padding: 1rem;
    border: 1px solid rgba(18, 32, 51, 0.08);
    border-radius: 18px;
    background:
        radial-gradient(circle at 100% 0, rgba(var(--dh-workspace-accent-rgb), 0.11), transparent 11rem),
        rgba(248, 250, 252, 0.86);
}

.dh-communications-create-summary,
.dh-communications-template__summary {
    list-style: none;
    cursor: pointer;
}

.dh-communications-create-summary::-webkit-details-marker,
.dh-communications-template__summary::-webkit-details-marker {
    display: none;
}

.dh-communications-create-summary {
    min-height: 42px;
}

.dh-communications-template {
    overflow: clip;
    border: 1px solid rgba(18, 32, 51, 0.09);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.92);
    transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.dh-communications-template:hover,
.dh-communications-template:focus-within,
.dh-communications-template[open] {
    border-color: rgba(var(--dh-workspace-accent-rgb), 0.25);
    background: #fff;
    box-shadow: 0 14px 30px rgba(18, 32, 51, 0.07);
}

.dh-communications-template__summary:focus-visible,
.dh-communications-create-summary:focus-visible {
    outline: 3px solid rgba(var(--dh-workspace-accent-rgb), 0.24);
    outline-offset: 3px;
}

.dh-communications-page #communications-reminders form > .d-grid > .border {
    border-color: rgba(18, 32, 51, 0.08) !important;
    background: rgba(248, 250, 252, 0.74);
}

@media (min-width: 768px) {
    .dh-communications-page > .dh-page-section-nav {
        position: sticky;
        top: 78px;
        z-index: 35;
        backdrop-filter: blur(18px);
        -webkit-backdrop-filter: blur(18px);
    }
}

@media (max-width: 767.98px) {
    .dh-communications-page .dh-metric-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dh-communications-page .dh-metric-card {
        align-items: flex-start;
        flex-direction: column;
        min-height: 122px;
    }

    .dh-communications-page > .dh-page-section-nav .dh-page-section-card {
        flex-basis: clamp(190px, 66vw, 220px);
        width: clamp(190px, 66vw, 220px);
        min-width: clamp(190px, 66vw, 220px);
        max-width: clamp(190px, 66vw, 220px);
    }

    .dh-communications-section {
        scroll-margin-top: 5rem;
    }

    .dh-communications-webhook-panel {
        flex-basis: auto;
        width: 100%;
        min-width: 0;
    }
}

@media (max-width: 420px) {
    .dh-communications-page .dh-metric-strip {
        grid-template-columns: 1fr;
    }

    .dh-communications-page .dh-metric-card {
        align-items: center;
        flex-direction: row;
        min-height: 86px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .dh-communications-nav__icon,
    .dh-communications-template {
        transition: none;
    }
}

/* Premium packages and gift cards */
.dh-packages-page {
    min-width: 0;
}

.dh-app-body[data-dh-ui="2026"] .dh-packages-hero {
    background:
        radial-gradient(circle at 91% 4%, rgba(244, 180, 0, 0.2), transparent 18rem),
        radial-gradient(circle at 5% 112%, rgba(37, 99, 235, 0.1), transparent 20rem),
        linear-gradient(140deg, rgba(255, 255, 255, 0.99), rgba(247, 249, 252, 0.97));
}

.dh-packages-metrics .dh-metric-card {
    display: flex;
    align-items: center;
    gap: 0.88rem;
    min-height: 92px;
    padding: 1rem;
    border-color: rgba(18, 32, 51, 0.075);
    background: rgba(255, 255, 255, 0.94);
}

.dh-packages-metrics .dh-metric-card > span:last-child {
    display: block;
    min-width: 0;
    margin: 0;
}

.dh-packages-metric__icon {
    display: grid !important;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    margin: 0 !important;
    place-items: center;
    border: 1px solid rgba(var(--dh-workspace-accent-rgb), 0.2);
    border-radius: 14px;
    color: var(--dh-workspace-accent);
    background: rgba(var(--dh-workspace-accent-rgb), 0.09);
}

.dh-packages-metric__glyph {
    width: 21px;
    height: 21px;
}

.dh-packages-metrics .dh-metric-card > span:last-child > span {
    margin-top: 0.22rem;
}

.dh-packages-nav {
    gap: 0.35rem;
    padding: 0.34rem;
}

.dh-packages-nav .nav-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 46px;
}

.dh-packages-nav__icon {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
}

.dh-packages-nav .nav-link.active .dh-packages-nav__icon,
.dh-packages-nav .nav-link:hover .dh-packages-nav__icon,
.dh-packages-nav .nav-link:focus-visible .dh-packages-nav__icon {
    color: var(--dh-workspace-accent);
}

.dh-package-pane[hidden] {
    display: none !important;
}

.dh-packages-panel {
    position: relative;
}

.dh-packages-panel::before {
    content: "";
    position: absolute;
    top: 0;
    left: clamp(1rem, 2vw, 1.5rem);
    right: clamp(1rem, 2vw, 1.5rem);
    height: 3px;
    border-radius: 0 0 999px 999px;
    background: linear-gradient(90deg, var(--dh-workspace-accent), rgba(var(--dh-workspace-accent-rgb), 0));
    opacity: 0.68;
    pointer-events: none;
}

.dh-packages-panel > .d-flex:first-child,
.dh-packages-panel > .d-flex:first-child > * {
    min-width: 0;
}

.dh-packages-panel .dh-list-card {
    border-color: rgba(18, 32, 51, 0.075);
    background: rgba(255, 255, 255, 0.94);
}

.dh-package-offer {
    overflow: clip;
    padding: 1rem;
    border: 1px solid rgba(18, 32, 51, 0.09);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.94);
    transition: border-color 160ms ease, box-shadow 160ms ease;
}

.dh-package-offer:hover,
.dh-package-offer:focus-within,
.dh-package-offer[open] {
    border-color: rgba(var(--dh-workspace-accent-rgb), 0.25);
    box-shadow: 0 14px 30px rgba(18, 32, 51, 0.07);
}

.dh-package-offer__summary,
.dh-package-use__summary {
    list-style: none;
    cursor: pointer;
}

.dh-package-offer__summary::-webkit-details-marker,
.dh-package-use__summary::-webkit-details-marker {
    display: none;
}

.dh-package-offer__summary:focus-visible,
.dh-package-use__summary:focus-visible {
    outline: 3px solid rgba(var(--dh-workspace-accent-rgb), 0.24);
    outline-offset: 3px;
}

.dh-package-use__credits {
    flex: 0 0 90px;
    width: 90px;
}

.dh-packages-page #packagePurchaseFilter {
    width: min(100%, 320px);
}

.dh-packages-page #gift-card-catalog > form,
.dh-packages-page #gift-card-catalog > .border {
    border-color: rgba(18, 32, 51, 0.08) !important;
    border-radius: 18px;
    background: rgba(248, 250, 252, 0.72);
}

.dh-packages-page #gift-card-catalog > form {
    padding: 1rem;
    border: 1px solid rgba(18, 32, 51, 0.08);
}

@media (max-width: 767.98px) {
    .dh-packages-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dh-packages-metrics .dh-metric-card:last-child {
        grid-column: 1 / -1;
    }

    .dh-packages-nav {
        flex-wrap: nowrap;
        overflow-x: auto;
        overscroll-behavior-x: contain;
        scroll-snap-type: x proximity;
        scrollbar-width: none;
    }

    .dh-packages-nav::-webkit-scrollbar {
        display: none;
    }

    .dh-packages-nav .nav-item {
        flex: 0 0 auto;
        scroll-snap-align: start;
    }

    .dh-package-offer__summary {
        align-items: flex-start !important;
    }
}

@media (max-width: 420px) {
    .dh-packages-metrics {
        grid-template-columns: 1fr;
    }

    .dh-packages-metrics .dh-metric-card:last-child {
        grid-column: auto;
    }

    .dh-package-use__credits {
        flex-basis: 78px;
        width: 78px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .dh-package-offer {
        transition: none;
    }
}

/* Premium service catalogue */
.dh-services-page {
    min-width: 0;
}

.dh-app-body[data-dh-ui="2026"] .dh-services-hero {
    background:
        radial-gradient(circle at 90% 4%, rgba(37, 99, 235, 0.13), transparent 19rem),
        radial-gradient(circle at 3% 110%, rgba(var(--dh-workspace-accent-rgb), 0.14), transparent 19rem),
        linear-gradient(140deg, rgba(255, 255, 255, 0.99), rgba(246, 249, 252, 0.97));
}

.dh-services-metrics .dh-metric-card {
    display: flex;
    align-items: center;
    gap: 0.86rem;
    min-height: 92px;
    padding: 1rem;
    border-color: rgba(18, 32, 51, 0.075);
    background: rgba(255, 255, 255, 0.94);
}

.dh-services-metrics .dh-metric-card > span:last-child {
    display: block;
    min-width: 0;
    margin: 0;
}

.dh-services-metrics .dh-metric-card > span:last-child > span {
    margin-top: 0.22rem;
}

.dh-services-metric__icon {
    display: grid !important;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    margin: 0 !important;
    place-items: center;
    border: 1px solid rgba(var(--dh-workspace-accent-rgb), 0.2);
    border-radius: 14px;
    color: var(--dh-workspace-accent);
    background: rgba(var(--dh-workspace-accent-rgb), 0.09);
}

.dh-services-metric__glyph {
    width: 21px;
    height: 21px;
}

.dh-services-quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 0.75rem;
}

.dh-services-quick-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
    min-height: 64px;
    padding: 0.72rem 0.9rem;
    border: 1px solid rgba(18, 32, 51, 0.08);
    border-radius: 18px;
    color: var(--dh-ink);
    text-decoration: none;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 10px 24px rgba(18, 32, 51, 0.05);
    transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.dh-services-quick-link > span {
    display: grid;
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 13px;
    color: var(--dh-workspace-accent);
    background: rgba(var(--dh-workspace-accent-rgb), 0.09);
}

.dh-services-quick-link__icon {
    width: 19px;
    height: 19px;
}

.dh-services-quick-link strong {
    overflow-wrap: anywhere;
    font-size: 0.88rem;
    line-height: 1.35;
}

.dh-services-quick-link:hover,
.dh-services-quick-link:focus-visible {
    transform: translateY(-1px);
    border-color: rgba(var(--dh-workspace-accent-rgb), 0.26);
    color: var(--dh-ink);
    box-shadow: 0 15px 30px rgba(18, 32, 51, 0.08);
}

.dh-services-quick-link:focus-visible {
    outline: 3px solid rgba(var(--dh-workspace-accent-rgb), 0.22);
    outline-offset: 3px;
}

.dh-services-guide {
    margin-bottom: 1.5rem;
}

.dh-services-catalog {
    position: relative;
}

.dh-services-catalog::before {
    content: "";
    position: absolute;
    top: 0;
    left: clamp(1rem, 2vw, 1.5rem);
    right: clamp(1rem, 2vw, 1.5rem);
    height: 3px;
    border-radius: 0 0 999px 999px;
    background: linear-gradient(90deg, var(--dh-workspace-accent), rgba(var(--dh-workspace-accent-rgb), 0));
    opacity: 0.68;
    pointer-events: none;
}

.dh-service-catalog-row {
    border-color: rgba(18, 32, 51, 0.075);
    background: rgba(255, 255, 255, 0.95);
}

.dh-service-catalog-row__icon {
    display: grid;
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    place-items: center;
    border: 1px solid rgba(var(--dh-workspace-accent-rgb), 0.16);
    border-radius: 14px;
    color: var(--dh-workspace-accent);
    background: rgba(var(--dh-workspace-accent-rgb), 0.075);
}

.dh-service-catalog-row__glyph {
    width: 20px;
    height: 20px;
}

@media (max-width: 767.98px) {
    .dh-services-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dh-services-quick-actions {
        grid-template-columns: 1fr;
    }

    .dh-service-catalog-row > .d-flex {
        gap: 0.7rem !important;
    }

    .dh-service-catalog-row__icon {
        display: none;
    }
}

@media (max-width: 420px) {
    .dh-services-metrics {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .dh-services-quick-link {
        transition: none;
    }
}

/* Premium course catalogue */
.dh-courses-page {
    min-width: 0;
}

.dh-app-body[data-dh-ui="2026"] .dh-courses-hero {
    border-color: rgba(var(--dh-workspace-accent-rgb), 0.16);
    background:
        radial-gradient(circle at 88% 18%, rgba(var(--dh-workspace-accent-rgb), 0.2), transparent 31%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(var(--dh-workspace-accent-rgb), 0.055));
}

.dh-courses-metrics .dh-metric-card {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    min-width: 0;
}

.dh-courses-metrics .dh-metric-card > span:last-child {
    display: block;
    min-width: 0;
    margin: 0;
}

.dh-courses-metrics .dh-metric-card > span:last-child > span {
    display: block;
    margin-top: 0.2rem;
}

.dh-courses-metric__icon {
    display: grid !important;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    place-items: center;
    margin: 0 !important;
    border: 1px solid rgba(var(--dh-workspace-accent-rgb), 0.16);
    border-radius: 14px;
    color: var(--dh-workspace-accent) !important;
    background: rgba(var(--dh-workspace-accent-rgb), 0.08);
}

.dh-courses-metric__glyph {
    width: 21px;
    height: 21px;
}

.dh-courses-tools {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
}

.dh-courses-tool-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
    min-height: 64px;
    padding: 0.72rem 0.9rem;
    border: 1px solid rgba(18, 32, 51, 0.08);
    border-radius: 18px;
    color: var(--dh-ink);
    text-decoration: none;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 10px 24px rgba(18, 32, 51, 0.05);
    transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.dh-courses-tool-link > span {
    display: grid;
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 13px;
    color: var(--dh-workspace-accent);
    background: rgba(var(--dh-workspace-accent-rgb), 0.09);
}

.dh-courses-tool-link__icon {
    width: 19px;
    height: 19px;
}

.dh-courses-tool-link strong {
    overflow-wrap: anywhere;
    font-size: 0.88rem;
    line-height: 1.35;
}

.dh-courses-tool-link:hover,
.dh-courses-tool-link:focus-visible {
    transform: translateY(-1px);
    border-color: rgba(var(--dh-workspace-accent-rgb), 0.26);
    color: var(--dh-ink);
    box-shadow: 0 15px 30px rgba(18, 32, 51, 0.08);
}

.dh-courses-tool-link:focus-visible {
    outline: 3px solid rgba(var(--dh-workspace-accent-rgb), 0.22);
    outline-offset: 3px;
}

.dh-courses-catalog {
    position: relative;
}

.dh-courses-catalog::before {
    content: "";
    position: absolute;
    top: 0;
    left: clamp(1rem, 2vw, 1.5rem);
    right: clamp(1rem, 2vw, 1.5rem);
    height: 3px;
    border-radius: 0 0 999px 999px;
    background: linear-gradient(90deg, var(--dh-workspace-accent), rgba(var(--dh-workspace-accent-rgb), 0));
    opacity: 0.68;
    pointer-events: none;
}

.dh-course-catalog-row {
    border-color: rgba(18, 32, 51, 0.075);
    background: rgba(255, 255, 255, 0.95);
}

.dh-course-catalog-row__icon {
    display: grid;
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    place-items: center;
    border: 1px solid rgba(var(--dh-workspace-accent-rgb), 0.16);
    border-radius: 14px;
    color: var(--dh-workspace-accent);
    background: rgba(var(--dh-workspace-accent-rgb), 0.075);
}

.dh-course-catalog-row__glyph {
    width: 20px;
    height: 20px;
}

.dh-course-catalog-row__actions {
    margin-left: 4.7rem;
}

.dh-course-order {
    display: inline-block;
}

.dh-course-order__summary {
    cursor: pointer;
    list-style: none;
}

.dh-course-order__summary::-webkit-details-marker {
    display: none;
}

.dh-course-order__summary:focus-visible {
    outline: 3px solid rgba(var(--dh-workspace-accent-rgb), 0.22);
    outline-offset: 3px;
}

.dh-course-order__input {
    flex: 0 0 88px;
    width: 88px;
}

@media (max-width: 767.98px) {
    .dh-courses-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dh-courses-tools {
        grid-template-columns: 1fr;
    }

    .dh-course-catalog-row > .d-flex {
        gap: 0.7rem !important;
    }

    .dh-course-catalog-row__icon {
        display: none;
    }

    .dh-course-catalog-row__actions {
        margin-left: 2rem;
    }
}

@media (max-width: 420px) {
    .dh-courses-metrics {
        grid-template-columns: 1fr;
    }

    .dh-course-catalog-row__actions {
        margin-left: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .dh-courses-tool-link {
        transition: none;
    }
}

/* Premium course create/edit workflow */
.dh-course-form-page {
    min-width: 0;
}

.dh-app-body[data-dh-ui="2026"] .dh-course-form-hero {
    border-color: rgba(var(--dh-workspace-accent-rgb), 0.16);
    background:
        radial-gradient(circle at 88% 18%, rgba(var(--dh-workspace-accent-rgb), 0.2), transparent 31%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(var(--dh-workspace-accent-rgb), 0.055));
}

.dh-course-form-card {
    position: relative;
    overflow: visible;
}

.dh-course-form-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: clamp(1rem, 2vw, 1.5rem);
    right: clamp(1rem, 2vw, 1.5rem);
    height: 3px;
    border-radius: 0 0 999px 999px;
    background: linear-gradient(90deg, var(--dh-workspace-accent), rgba(var(--dh-workspace-accent-rgb), 0));
    opacity: 0.68;
    pointer-events: none;
}

.dh-course-form .form-label {
    color: var(--dh-ink);
    font-size: 0.86rem;
    font-weight: 750;
}

.dh-course-form .form-control,
.dh-course-form .form-select {
    min-height: 46px;
    border-color: rgba(18, 32, 51, 0.12);
    border-radius: 14px;
    background-color: rgba(255, 255, 255, 0.96);
}

.dh-course-form textarea.form-control {
    min-height: auto;
}

.dh-course-form .form-control:focus,
.dh-course-form .form-select:focus {
    border-color: rgba(var(--dh-workspace-accent-rgb), 0.48);
    box-shadow: 0 0 0 0.22rem rgba(var(--dh-workspace-accent-rgb), 0.12);
}

.dh-course-form .dh-course-pricing-card {
    border-radius: 18px;
    box-shadow: 0 12px 28px rgba(18, 32, 51, 0.055);
}

.dh-course-form .dh-course-pricing-card:focus-within {
    outline: 3px solid rgba(var(--dh-workspace-accent-rgb), 0.2);
    outline-offset: 3px;
}

.dh-course-editor-shell {
    position: relative;
    overflow: visible;
}

.dh-course-form .ql-toolbar.ql-snow {
    border-color: rgba(18, 32, 51, 0.12);
    border-radius: 14px 14px 0 0;
    background: rgba(var(--dh-workspace-accent-rgb), 0.035);
}

.dh-course-form .ql-container.ql-snow {
    min-height: 132px;
    border-color: rgba(18, 32, 51, 0.12);
    border-radius: 0 0 14px 14px;
    font-family: inherit;
    font-size: 0.9375rem;
    background: rgba(255, 255, 255, 0.96);
}

.dh-course-form .ql-editor {
    min-height: 132px;
}

.dh-course-form .ql-container.ql-snow:focus-within {
    border-color: rgba(var(--dh-workspace-accent-rgb), 0.48);
    box-shadow: 0 0 0 0.22rem rgba(var(--dh-workspace-accent-rgb), 0.12);
}

.dh-course-form-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-top: 1.2rem;
    border-top: 1px solid rgba(18, 32, 51, 0.08);
}

.dh-course-form-actions__option {
    max-width: 34rem;
    margin: 0;
}

.dh-course-form-actions__buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.65rem;
    margin-left: auto;
}

@media (max-width: 767.98px) {
    .dh-course-form-card {
        padding: 1.15rem !important;
    }

    .dh-course-form-actions,
    .dh-course-form-actions__buttons {
        align-items: stretch;
        width: 100%;
    }

    .dh-course-form-actions__buttons {
        display: grid;
        grid-template-columns: 1fr;
        margin-left: 0;
    }

    .dh-course-form-actions__buttons .btn {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .dh-course-form .dh-course-pricing-card {
        transition: none;
    }
}

/* Premium single-course workspace */
.dh-course-workspace-page {
    min-width: 0;
}

.dh-app-body[data-dh-ui="2026"] .dh-course-workspace-hero {
    border-color: rgba(var(--dh-workspace-accent-rgb), 0.16);
    background:
        radial-gradient(circle at 88% 18%, rgba(var(--dh-workspace-accent-rgb), 0.22), transparent 31%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(var(--dh-workspace-accent-rgb), 0.06));
}

.dh-course-workspace-hero .dh-context-hero__eyebrow {
    margin: 0;
}

.dh-course-summary-card,
.dh-course-workspace-panel {
    position: relative;
}

.dh-course-summary-card::before,
.dh-course-workspace-panel::before {
    content: "";
    position: absolute;
    top: 0;
    left: clamp(1rem, 2vw, 1.5rem);
    right: clamp(1rem, 2vw, 1.5rem);
    height: 3px;
    border-radius: 0 0 999px 999px;
    background: linear-gradient(90deg, var(--dh-workspace-accent), rgba(var(--dh-workspace-accent-rgb), 0));
    opacity: 0.56;
    pointer-events: none;
}

.dh-course-summary-card {
    display: grid;
    gap: 0.25rem;
    border-color: rgba(var(--dh-workspace-accent-rgb), 0.12);
    background:
        linear-gradient(135deg, rgba(var(--dh-workspace-accent-rgb), 0.035), rgba(255, 255, 255, 0.98) 48%);
}

.dh-course-summary-card__content {
    color: var(--dh-ink-soft);
    line-height: 1.7;
}

.dh-course-summary-card__content > :last-child {
    margin-bottom: 0;
}

.dh-course-summary-card__delivery {
    color: var(--dh-ink-soft);
    font-size: 0.82rem;
    font-weight: 650;
}

.dh-course-workspace-tabs {
    gap: 0.35rem;
    padding: 0.45rem;
    border: 1px solid rgba(18, 32, 51, 0.08);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 10px 26px rgba(18, 32, 51, 0.055);
}

.dh-course-workspace-tabs .nav-link,
.dh-course-workspace-tabs a.nav-link {
    border-radius: 13px;
}

.dh-course-workspace-panel {
    border-color: rgba(18, 32, 51, 0.08);
}

.dh-course-overview-panel .dh-course-meta-grid {
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    flex: 1 1 36rem;
}

.dh-course-overview-panel .dh-course-focus-card {
    flex-basis: 18rem;
    border-color: rgba(var(--dh-workspace-accent-rgb), 0.16);
    background: linear-gradient(145deg, rgba(var(--dh-workspace-accent-rgb), 0.08), rgba(255, 255, 255, 0.98));
}

.dh-course-overview-panel .dh-course-meta-card {
    min-width: 0;
    border-color: rgba(18, 32, 51, 0.07);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 9px 22px rgba(18, 32, 51, 0.045);
}

.dh-course-overview-panel .dh-course-meta-card strong {
    overflow-wrap: anywhere;
}

.dh-course-workspace-pane {
    border: 1px solid rgba(18, 32, 51, 0.08);
    border-radius: 20px;
    background: rgba(249, 251, 253, 0.74);
}

.dh-course-workspace-form,
.dh-course-attendance-form {
    border: 1px solid rgba(18, 32, 51, 0.085);
    border-radius: 17px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 9px 24px rgba(18, 32, 51, 0.045);
}

.dh-course-workspace-page .form-label {
    color: var(--dh-ink);
    font-size: 0.83rem;
    font-weight: 750;
}

.dh-course-workspace-page .form-control,
.dh-course-workspace-page .form-select {
    border-color: rgba(18, 32, 51, 0.12);
    border-radius: 12px;
}

.dh-course-workspace-page .form-control:focus,
.dh-course-workspace-page .form-select:focus {
    border-color: rgba(var(--dh-workspace-accent-rgb), 0.48);
    box-shadow: 0 0 0 0.2rem rgba(var(--dh-workspace-accent-rgb), 0.12);
}

.dh-course-session-row,
.dh-course-enrolment-row {
    border-color: rgba(18, 32, 51, 0.075);
    background: rgba(255, 255, 255, 0.96);
}

.dh-course-session-row:hover,
.dh-course-enrolment-row:hover {
    border-color: rgba(var(--dh-workspace-accent-rgb), 0.2);
    box-shadow: 0 12px 26px rgba(18, 32, 51, 0.06);
}

.dh-course-enrolment-row__actions {
    margin-left: 2rem;
    padding-left: 0.25rem;
}

.dh-course-status-select,
.dh-course-attendance-row__status {
    width: auto;
    min-width: 8.5rem;
}

.dh-course-attendance-form:last-child {
    margin-bottom: 0 !important;
}

.dh-course-attendance-row {
    border: 1px solid rgba(18, 32, 51, 0.075);
    border-radius: 13px;
    background: rgba(249, 251, 253, 0.8);
}

.dh-course-attendance-row__name {
    min-width: 160px;
    overflow-wrap: anywhere;
}

@media (max-width: 991.98px) {
    .dh-course-workspace-panel {
        padding: 1.25rem !important;
    }

    .dh-course-overview-panel .dh-course-meta-grid {
        width: 100%;
    }
}

@media (max-width: 767.98px) {
    .dh-course-summary-card,
    .dh-course-workspace-panel {
        padding: 1.1rem !important;
    }

    .dh-course-workspace-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        scroll-snap-type: x proximity;
    }

    .dh-course-workspace-tabs .nav-item {
        flex: 0 0 auto;
        scroll-snap-align: start;
    }

    .dh-course-enrolment-row__actions {
        margin-left: 0;
        padding-left: 0;
    }

    .dh-course-status-select,
    .dh-course-attendance-row__status {
        width: 100%;
    }

    .dh-course-attendance-row__name {
        min-width: 0;
    }
}

@media (max-width: 420px) {
    .dh-course-overview-panel .dh-course-meta-grid {
        grid-template-columns: 1fr;
    }

    .dh-course-enrolment-row__actions form {
        align-items: stretch !important;
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .dh-course-workspace-tabs {
        scroll-behavior: auto;
    }
}

/* Premium memberships catalogue */
.dh-memberships-page {
    min-width: 0;
}

.dh-app-body[data-dh-ui="2026"] .dh-memberships-hero {
    border-color: rgba(var(--dh-workspace-accent-rgb), 0.16);
    background:
        radial-gradient(circle at 88% 18%, rgba(var(--dh-workspace-accent-rgb), 0.2), transparent 31%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(var(--dh-workspace-accent-rgb), 0.055));
}

.dh-memberships-metrics .dh-metric-card {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    min-width: 0;
}

.dh-memberships-metrics .dh-metric-card > span:last-child {
    display: block;
    min-width: 0;
    margin: 0;
}

.dh-memberships-metrics .dh-metric-card > span:last-child > span {
    display: block;
    margin-top: 0.2rem;
}

.dh-memberships-metric__icon {
    display: grid !important;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    place-items: center;
    margin: 0 !important;
    border: 1px solid rgba(var(--dh-workspace-accent-rgb), 0.16);
    border-radius: 14px;
    color: var(--dh-workspace-accent) !important;
    background: rgba(var(--dh-workspace-accent-rgb), 0.08);
}

.dh-memberships-metric__glyph {
    width: 21px;
    height: 21px;
}

.dh-memberships-tools {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
}

.dh-memberships-tool-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
    min-height: 64px;
    padding: 0.72rem 0.9rem;
    border: 1px solid rgba(18, 32, 51, 0.08);
    border-radius: 18px;
    color: var(--dh-ink);
    text-decoration: none;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 10px 24px rgba(18, 32, 51, 0.05);
    transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.dh-memberships-tool-link > span {
    display: grid;
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 13px;
    color: var(--dh-workspace-accent);
    background: rgba(var(--dh-workspace-accent-rgb), 0.09);
}

.dh-memberships-tool-link__icon {
    width: 19px;
    height: 19px;
}

.dh-memberships-tool-link strong {
    overflow-wrap: anywhere;
    font-size: 0.88rem;
    line-height: 1.35;
}

.dh-memberships-tool-link:hover,
.dh-memberships-tool-link:focus-visible {
    transform: translateY(-1px);
    border-color: rgba(var(--dh-workspace-accent-rgb), 0.26);
    color: var(--dh-ink);
    box-shadow: 0 15px 30px rgba(18, 32, 51, 0.08);
}

.dh-memberships-tool-link:focus-visible,
.dh-memberships-filter:focus-visible {
    outline: 3px solid rgba(var(--dh-workspace-accent-rgb), 0.22);
    outline-offset: 3px;
}

.dh-memberships-filters {
    display: flex;
    gap: 0.55rem;
    overflow-x: auto;
    scrollbar-width: thin;
}

.dh-memberships-filter {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    min-height: 42px;
    padding: 0.55rem 0.75rem;
    border: 1px solid rgba(18, 32, 51, 0.09);
    border-radius: 13px;
    color: var(--dh-ink-soft);
    text-decoration: none;
    background: rgba(255, 255, 255, 0.9);
}

.dh-memberships-filter strong {
    display: inline-grid;
    min-width: 1.7rem;
    min-height: 1.7rem;
    place-items: center;
    padding: 0.15rem 0.4rem;
    border-radius: 999px;
    color: var(--dh-ink);
    background: rgba(18, 32, 51, 0.06);
}

.dh-memberships-filter:hover,
.dh-memberships-filter.is-current {
    border-color: rgba(var(--dh-workspace-accent-rgb), 0.3);
    color: var(--dh-ink);
    background: rgba(var(--dh-workspace-accent-rgb), 0.08);
}

.dh-memberships-filter.is-current strong {
    color: var(--dh-workspace-accent);
    background: rgba(255, 255, 255, 0.9);
}

.dh-memberships-catalog {
    position: relative;
}

.dh-memberships-catalog::before {
    content: "";
    position: absolute;
    top: 0;
    left: clamp(1rem, 2vw, 1.5rem);
    right: clamp(1rem, 2vw, 1.5rem);
    height: 3px;
    border-radius: 0 0 999px 999px;
    background: linear-gradient(90deg, var(--dh-workspace-accent), rgba(var(--dh-workspace-accent-rgb), 0));
    opacity: 0.68;
    pointer-events: none;
}

.dh-membership-row {
    border-color: rgba(18, 32, 51, 0.075);
    background: rgba(255, 255, 255, 0.96);
}

.dh-membership-row__icon {
    display: grid;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 1px solid rgba(var(--dh-workspace-accent-rgb), 0.16);
    border-radius: 14px;
    color: var(--dh-workspace-accent);
    background: rgba(var(--dh-workspace-accent-rgb), 0.075);
}

.dh-membership-row__glyph {
    width: 21px;
    height: 21px;
}

.dh-membership-row__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: flex-end;
    gap: 0.55rem;
    flex: 0 0 auto;
}

@media (max-width: 767.98px) {
    .dh-memberships-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dh-memberships-tools {
        grid-template-columns: 1fr;
    }

    .dh-membership-row__actions {
        justify-content: flex-start;
        padding-left: 3.55rem;
    }
}

@media (max-width: 420px) {
    .dh-memberships-metrics {
        grid-template-columns: 1fr;
    }

    .dh-membership-row__icon {
        display: none;
    }

    .dh-membership-row__actions {
        padding-left: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .dh-memberships-tool-link {
        transition: none;
    }
}

/* Premium membership create/edit workflow */
.dh-membership-form-page {
    min-width: 0;
}

.dh-app-body[data-dh-ui="2026"] .dh-membership-form-hero {
    border-color: rgba(var(--dh-workspace-accent-rgb), 0.16);
    background:
        radial-gradient(circle at 88% 18%, rgba(var(--dh-workspace-accent-rgb), 0.2), transparent 31%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(var(--dh-workspace-accent-rgb), 0.055));
}

.dh-membership-form-card,
.dh-membership-form-aside {
    position: relative;
    overflow: hidden;
}

.dh-membership-form-card::before,
.dh-membership-form-aside::before {
    content: "";
    position: absolute;
    top: 0;
    left: clamp(1rem, 2vw, 1.5rem);
    right: clamp(1rem, 2vw, 1.5rem);
    height: 3px;
    border-radius: 0 0 999px 999px;
    background: linear-gradient(90deg, var(--dh-workspace-accent), rgba(var(--dh-workspace-accent-rgb), 0));
    opacity: 0.64;
    pointer-events: none;
}

.dh-membership-form .form-label {
    color: var(--dh-ink);
    font-size: 0.86rem;
    font-weight: 750;
}

.dh-membership-form .form-control,
.dh-membership-form .form-select {
    min-height: 46px;
    border-color: rgba(18, 32, 51, 0.12);
    border-radius: 14px;
    background-color: rgba(255, 255, 255, 0.96);
}

.dh-membership-form textarea.form-control {
    min-height: auto;
}

.dh-membership-form .form-control:focus,
.dh-membership-form .form-select:focus {
    border-color: rgba(var(--dh-workspace-accent-rgb), 0.48);
    box-shadow: 0 0 0 0.22rem rgba(var(--dh-workspace-accent-rgb), 0.12);
}

.dh-membership-form-aside {
    position: sticky;
    top: 1.25rem;
}

.dh-membership-digital-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(var(--dh-workspace-accent-rgb), 0.2);
    border-radius: 18px;
    background:
        radial-gradient(circle at 92% 12%, rgba(var(--dh-workspace-accent-rgb), 0.16), transparent 32%),
        linear-gradient(145deg, rgba(var(--dh-workspace-accent-rgb), 0.065), rgba(255, 255, 255, 0.98));
}

.dh-membership-digital-card .dh-copy-field {
    align-items: stretch;
}

.dh-membership-digital-card .dh-copy-field .form-control {
    min-width: 0;
}

@media (max-width: 991.98px) {
    .dh-membership-form-aside {
        position: static;
    }
}

@media (max-width: 767.98px) {
    .dh-membership-form-card,
    .dh-membership-form-aside {
        padding: 1.15rem !important;
    }

    .dh-membership-digital-card .dh-copy-field {
        display: grid;
        grid-template-columns: 1fr;
    }
}

/* Premium membership renewal and import */
.dh-membership-renew-page,
.dh-membership-import-page {
    min-width: 0;
}

.dh-app-body[data-dh-ui="2026"] .dh-membership-renew-hero,
.dh-app-body[data-dh-ui="2026"] .dh-membership-import-hero {
    border-color: rgba(var(--dh-workspace-accent-rgb), 0.16);
    background:
        radial-gradient(circle at 88% 18%, rgba(var(--dh-workspace-accent-rgb), 0.2), transparent 31%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(var(--dh-workspace-accent-rgb), 0.055));
}

.dh-membership-renew-card,
.dh-membership-renew-history,
.dh-membership-import-card {
    position: relative;
    overflow: hidden;
}

.dh-membership-renew-card::before,
.dh-membership-renew-history::before,
.dh-membership-import-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: clamp(1rem, 2vw, 1.5rem);
    right: clamp(1rem, 2vw, 1.5rem);
    height: 3px;
    border-radius: 0 0 999px 999px;
    background: linear-gradient(90deg, var(--dh-workspace-accent), rgba(var(--dh-workspace-accent-rgb), 0));
    opacity: 0.64;
    pointer-events: none;
}

.dh-membership-renew-form .form-label,
.dh-membership-import-form .form-label {
    color: var(--dh-ink);
    font-size: 0.86rem;
    font-weight: 750;
}

.dh-membership-renew-form .form-control,
.dh-membership-renew-form .form-select,
.dh-membership-import-form .form-control {
    min-height: 46px;
    border-color: rgba(18, 32, 51, 0.12);
    border-radius: 14px;
    background-color: rgba(255, 255, 255, 0.96);
}

.dh-membership-renew-form .form-control:focus,
.dh-membership-renew-form .form-select:focus,
.dh-membership-import-form .form-control:focus {
    border-color: rgba(var(--dh-workspace-accent-rgb), 0.48);
    box-shadow: 0 0 0 0.22rem rgba(var(--dh-workspace-accent-rgb), 0.12);
}

.dh-membership-renew-history__item {
    border-color: rgba(18, 32, 51, 0.075);
    background: rgba(255, 255, 255, 0.96);
}

.dh-membership-import-card {
    max-width: 760px;
    margin-inline: auto;
}

.dh-membership-import-guide {
    display: grid;
    gap: 0.85rem;
    padding: 1rem;
    border: 1px solid rgba(var(--dh-workspace-accent-rgb), 0.16);
    border-radius: 18px;
    background: rgba(var(--dh-workspace-accent-rgb), 0.045);
}

.dh-membership-import-guide > div {
    display: grid;
    gap: 0.4rem;
}

.dh-membership-import-guide strong {
    color: var(--dh-ink);
    font-size: 0.86rem;
}

.dh-membership-import-guide code {
    display: block;
    max-width: 100%;
    padding: 0.65rem 0.75rem;
    overflow-x: auto;
    border-radius: 12px;
    color: var(--dh-ink-soft);
    background: rgba(255, 255, 255, 0.9);
    white-space: nowrap;
}

.dh-membership-import-guide p {
    margin: 0;
    color: var(--dh-ink-soft);
    font-size: 0.85rem;
    line-height: 1.55;
}

@media (max-width: 767.98px) {
    .dh-membership-renew-card,
    .dh-membership-renew-history,
    .dh-membership-import-card {
        padding: 1.15rem !important;
    }
}

/* Premium tenant document library */
.dh-documents-hero {
    background:
        radial-gradient(circle at 85% 20%, rgba(var(--dh-workspace-accent-rgb), 0.2), transparent 29%),
        linear-gradient(135deg, #172033 0%, #263c68 100%);
}

.dh-documents-metrics {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.dh-documents-metric__icon,
.dh-documents-template-card__icon,
.dh-documents-acceptance-card__icon,
.dh-documents-context__icon {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    color: var(--dh-workspace-accent);
    background: rgba(var(--dh-workspace-accent-rgb), 0.11);
}

.dh-documents-metric__icon {
    width: 42px;
    height: 42px;
}

.dh-documents-metric__glyph {
    width: 21px;
    height: 21px;
}

.dh-documents-context-metric strong {
    overflow: hidden;
    font-size: 1.03rem !important;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dh-documents-context {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 1rem;
    padding: 1.1rem 1.2rem;
    border: 1px solid rgba(var(--dh-workspace-accent-rgb), 0.16);
    border-radius: 20px;
    background:
        linear-gradient(135deg, rgba(var(--dh-workspace-accent-rgb), 0.065), rgba(255, 255, 255, 0.94)),
        #fff;
}

.dh-documents-context__icon {
    width: 46px;
    height: 46px;
}

.dh-documents-context__glyph {
    width: 23px;
    height: 23px;
}

.dh-documents-context h2,
.dh-documents-section__header h2,
.dh-documents-template-card h3,
.dh-documents-issue-card h3,
.dh-documents-acceptance-card h3 {
    margin: 0;
    color: var(--dh-ink);
    letter-spacing: -0.025em;
}

.dh-documents-context h2 {
    font-size: 0.98rem;
}

.dh-documents-context p {
    margin: 0.18rem 0 0;
    color: var(--dh-ink-soft);
    font-size: 0.86rem;
    line-height: 1.5;
}

.dh-documents-section {
    overflow: hidden;
    padding: 1.35rem;
    border-color: rgba(18, 32, 51, 0.08);
    background:
        radial-gradient(circle at 96% 2%, rgba(var(--dh-workspace-accent-rgb), 0.075), transparent 28%),
        rgba(255, 255, 255, 0.97);
}

.dh-documents-section__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.15rem;
}

.dh-documents-section__eyebrow {
    display: block;
    margin-bottom: 0.3rem;
    color: var(--dh-workspace-accent-strong);
    font-size: 0.7rem;
    font-weight: 820;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.dh-documents-section__header h2 {
    font-size: 1.2rem;
}

.dh-documents-section__header p {
    max-width: 760px;
    margin: 0.3rem 0 0;
    color: var(--dh-ink-soft);
    font-size: 0.88rem;
    line-height: 1.55;
}

.dh-documents-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.9rem;
}

.dh-documents-template-card {
    display: flex;
    min-width: 0;
    min-height: 245px;
    flex-direction: column;
    padding: 1rem;
    border: 1px solid rgba(18, 32, 51, 0.085);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.045);
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.dh-documents-template-card:hover {
    transform: translateY(-2px);
    border-color: rgba(var(--dh-workspace-accent-rgb), 0.25);
    box-shadow: 0 18px 38px rgba(15, 23, 42, 0.075);
}

.dh-documents-template-card__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.9rem;
}

.dh-documents-template-card__icon {
    width: 40px;
    height: 40px;
}

.dh-documents-template-card__glyph {
    width: 20px;
    height: 20px;
}

.dh-documents-template-card h3 {
    font-size: 1rem;
    line-height: 1.35;
}

.dh-documents-template-card__meta {
    display: grid;
    gap: 0.35rem;
    margin-top: 0.65rem;
    color: var(--dh-ink-soft);
    font-size: 0.8rem;
}

.dh-documents-template-card__meta span {
    position: relative;
    padding-left: 0.85rem;
}

.dh-documents-template-card__meta span::before {
    content: "";
    position: absolute;
    top: 0.48em;
    left: 0;
    width: 0.34rem;
    height: 0.34rem;
    border-radius: 50%;
    background: rgba(var(--dh-workspace-accent-rgb), 0.75);
}

.dh-documents-template-card__slug {
    display: block;
    max-width: 100%;
    margin-top: 0.8rem;
    padding: 0.5rem 0.6rem;
    overflow: hidden;
    border-radius: 10px;
    color: var(--dh-ink-soft);
    background: var(--dh-soft);
    font-size: 0.74rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dh-documents-template-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: auto;
    padding-top: 0.9rem;
}

.dh-documents-template-card__actions form,
.dh-documents-issue-card__actions form {
    margin: 0;
}

.dh-documents-issues,
.dh-documents-acceptances {
    display: grid;
    gap: 0.75rem;
}

.dh-documents-issue-card {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem;
    border: 1px solid rgba(18, 32, 51, 0.075);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.96);
}

.dh-documents-issue-card__body {
    min-width: 0;
}

.dh-documents-issue-card__badges,
.dh-documents-issue-card__person,
.dh-documents-issue-card__timeline,
.dh-documents-issue-card__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem;
}

.dh-documents-issue-card h3 {
    margin-top: 0.55rem;
    font-size: 1rem;
}

.dh-documents-issue-card__person,
.dh-documents-issue-card__timeline {
    margin-top: 0.35rem;
    color: var(--dh-ink-soft);
    font-size: 0.79rem;
}

.dh-documents-issue-card__person span + span::before,
.dh-documents-issue-card__timeline span + span::before {
    content: "·";
    margin-right: 0.45rem;
    color: rgba(18, 32, 51, 0.35);
}

.dh-documents-issue-card__actions {
    flex: 0 0 auto;
    justify-content: flex-end;
}

.dh-documents-acceptance-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.85rem;
    padding: 0.9rem 1rem;
    border: 1px solid rgba(18, 32, 51, 0.075);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.96);
}

.dh-documents-acceptance-card__icon {
    width: 38px;
    height: 38px;
}

.dh-documents-acceptance-card__glyph {
    width: 19px;
    height: 19px;
}

.dh-documents-acceptance-card__body {
    display: flex;
    min-width: 0;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.3rem 0.55rem;
    color: var(--dh-ink-soft);
    font-size: 0.78rem;
}

.dh-documents-acceptance-card h3 {
    width: 100%;
    font-size: 0.92rem;
}

.dh-documents-acceptance-card code {
    color: var(--dh-ink-soft);
}

.dh-documents-acceptance-card time {
    color: var(--dh-ink-soft);
    font-size: 0.78rem;
    white-space: nowrap;
}

@media (max-width: 1199.98px) {
    .dh-documents-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 991.98px) {
    .dh-documents-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dh-documents-issue-card {
        flex-direction: column;
    }

    .dh-documents-issue-card__actions {
        justify-content: flex-start;
    }
}

@media (max-width: 767.98px) {
    .dh-documents-context,
    .dh-documents-acceptance-card {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .dh-documents-context > .dh-badge,
    .dh-documents-acceptance-card time {
        grid-column: 2;
        justify-self: start;
    }

    .dh-documents-section {
        padding: 1.05rem;
    }

    .dh-documents-section__header {
        align-items: stretch;
        flex-direction: column;
    }

    .dh-documents-section__header > .btn {
        width: 100%;
    }

    .dh-documents-grid {
        grid-template-columns: 1fr;
    }

    .dh-documents-template-card {
        min-height: 0;
    }
}

@media (max-width: 520px) {
    .dh-documents-metrics {
        grid-template-columns: 1fr;
    }

    .dh-documents-issue-card__actions {
        display: grid;
        width: 100%;
        grid-template-columns: 1fr 1fr;
    }

    .dh-documents-issue-card__actions form,
    .dh-documents-issue-card__actions .btn {
        width: 100%;
    }
}

/* Premium document template and assignment editors */
.dh-document-editor-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.75fr) minmax(285px, 0.75fr);
    align-items: start;
    gap: 1rem;
}

.dh-document-editor-card,
.dh-document-variables,
.dh-document-behavior {
    padding: 1.35rem;
    border-color: rgba(18, 32, 51, 0.08);
    background:
        radial-gradient(circle at 96% 2%, rgba(var(--dh-workspace-accent-rgb), 0.065), transparent 30%),
        rgba(255, 255, 255, 0.98);
}

.dh-document-editor-card__header,
.dh-document-variables__header {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    margin-bottom: 1.15rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(18, 32, 51, 0.075);
}

.dh-document-editor-card__icon {
    display: inline-flex;
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    color: var(--dh-workspace-accent);
    background: rgba(var(--dh-workspace-accent-rgb), 0.11);
}

.dh-document-editor-card__glyph {
    width: 21px;
    height: 21px;
}

.dh-document-editor-card__header h2,
.dh-document-variables__header h2 {
    margin: 0;
    color: var(--dh-ink);
    font-size: 1.05rem;
    letter-spacing: -0.025em;
}

.dh-document-editor-card__header p,
.dh-document-variables__header p {
    margin: 0.22rem 0 0;
    color: var(--dh-ink-soft);
    font-size: 0.82rem;
    line-height: 1.5;
}

.dh-document-editor-card .form-label {
    color: var(--dh-ink);
    font-size: 0.85rem;
    font-weight: 750;
}

.dh-document-editor-card .form-control,
.dh-document-editor-card .form-select {
    min-height: 46px;
    border-color: rgba(18, 32, 51, 0.12);
    border-radius: 14px;
    background-color: rgba(255, 255, 255, 0.96);
}

.dh-document-editor-card .form-control:focus,
.dh-document-editor-card .form-select:focus {
    border-color: rgba(var(--dh-workspace-accent-rgb), 0.48);
    box-shadow: 0 0 0 0.22rem rgba(var(--dh-workspace-accent-rgb), 0.12);
}

.dh-document-editor-textarea {
    min-height: 390px !important;
    resize: vertical;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.86rem;
    line-height: 1.6;
}

.dh-document-editor-switch {
    display: flex;
    min-height: 46px;
    align-items: center;
    margin: 0;
    padding: 0.65rem 0.75rem 0.65rem 2.8rem;
    border: 1px solid rgba(18, 32, 51, 0.1);
    border-radius: 14px;
    background: rgba(248, 250, 252, 0.86);
}

.dh-document-editor-switch .form-check-input {
    margin-top: 0;
}

.dh-document-editor-switch .form-check-label {
    color: var(--dh-ink-soft);
    font-size: 0.8rem;
    line-height: 1.35;
}

.dh-document-editor-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 1.2rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(18, 32, 51, 0.075);
}

.dh-document-variables,
.dh-document-behavior {
    position: sticky;
    top: 1rem;
}

.dh-document-variables__list {
    display: grid;
    gap: 0.45rem;
}

.dh-document-variables__list code {
    display: block;
    padding: 0.58rem 0.65rem;
    overflow: hidden;
    border: 1px solid rgba(18, 32, 51, 0.065);
    border-radius: 11px;
    color: var(--dh-ink-soft);
    background: rgba(248, 250, 252, 0.9);
    font-size: 0.74rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dh-document-variables__footnote {
    margin: 1rem 0 0;
    padding-top: 0.9rem;
    border-top: 1px solid rgba(18, 32, 51, 0.075);
    color: var(--dh-ink-soft);
    font-size: 0.8rem;
    line-height: 1.55;
}

.dh-document-behavior .dh-how-steps {
    gap: 0.85rem;
}

.dh-document-behavior .dh-how-step {
    font-size: 0.84rem;
}

@media (max-width: 1199.98px) {
    .dh-document-editor-grid {
        grid-template-columns: minmax(0, 1.45fr) minmax(260px, 0.75fr);
    }
}

@media (max-width: 991.98px) {
    .dh-document-editor-grid {
        grid-template-columns: 1fr;
    }

    .dh-document-variables,
    .dh-document-behavior {
        position: static;
    }
}

@media (max-width: 767.98px) {
    .dh-document-editor-card,
    .dh-document-variables,
    .dh-document-behavior {
        padding: 1.05rem;
    }

    .dh-document-editor-card__actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .dh-document-editor-card__actions .btn {
        width: 100%;
    }
}

/* Premium assigned-document workspace */
.dh-document-record-hero {
    overflow: hidden;
}

.dh-document-record-hero__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.55rem 0.85rem;
    margin-top: 0.9rem;
    color: var(--dh-ink-soft);
    font-size: 0.84rem;
}

.dh-document-record-hero__meta > span:not(.dh-badge) {
    position: relative;
}

.dh-document-record-hero__meta > span:not(.dh-badge) + span:not(.dh-badge)::before {
    position: absolute;
    top: 50%;
    left: -0.48rem;
    width: 3px;
    height: 3px;
    border-radius: 999px;
    background: rgba(18, 32, 51, 0.3);
    content: "";
    transform: translateY(-50%);
}

.dh-document-record-actions form {
    display: flex;
}

.dh-document-record-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(310px, 0.78fr);
    align-items: start;
    gap: 1rem;
}

.dh-document-record-main,
.dh-document-record-sidebar {
    min-width: 0;
}

.dh-document-record-sidebar {
    display: grid;
    gap: 1rem;
}

.dh-document-record-card {
    padding: 1.35rem;
    border-color: rgba(18, 32, 51, 0.08);
    background:
        radial-gradient(circle at 96% 2%, rgba(var(--dh-workspace-accent-rgb), 0.065), transparent 30%),
        rgba(255, 255, 255, 0.98);
}

.dh-document-record-card__header {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    margin-bottom: 1.15rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(18, 32, 51, 0.075);
}

.dh-document-record-card__icon {
    display: inline-flex;
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    color: var(--dh-workspace-accent);
    background: rgba(var(--dh-workspace-accent-rgb), 0.11);
}

.dh-document-record-card__glyph {
    width: 21px;
    height: 21px;
}

.dh-document-record-card__header h2 {
    margin: 0;
    color: var(--dh-ink);
    font-size: 1.05rem;
    letter-spacing: -0.025em;
}

.dh-document-record-card__header p {
    margin: 0.22rem 0 0;
    color: var(--dh-ink-soft);
    font-size: 0.82rem;
    line-height: 1.5;
}

.dh-document-record-paper {
    min-height: 480px;
    padding: clamp(1.3rem, 3vw, 2.25rem);
    border: 1px solid rgba(18, 32, 51, 0.08);
    border-radius: 20px;
    color: var(--dh-ink);
    background: #fff;
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.055);
    font-size: 0.94rem;
    line-height: 1.78;
    overflow-wrap: anywhere;
}

.dh-document-record-paper__footer {
    margin-top: 1rem;
    padding-top: 0.9rem;
    border-top: 1px solid rgba(18, 32, 51, 0.075);
    color: var(--dh-ink-soft);
    font-size: 0.79rem;
    line-height: 1.5;
}

.dh-document-record-facts {
    display: grid;
    gap: 0;
    margin: 0;
}

.dh-document-record-facts > div {
    display: grid;
    grid-template-columns: minmax(90px, 0.72fr) minmax(0, 1.28fr);
    gap: 0.75rem;
    padding: 0.78rem 0;
    border-bottom: 1px solid rgba(18, 32, 51, 0.065);
}

.dh-document-record-facts > div:first-child {
    padding-top: 0;
}

.dh-document-record-facts > div:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.dh-document-record-facts dt {
    color: var(--dh-ink-soft);
    font-size: 0.76rem;
    font-weight: 700;
}

.dh-document-record-facts dd {
    min-width: 0;
    margin: 0;
    color: var(--dh-ink);
    font-size: 0.8rem;
    text-align: right;
    overflow-wrap: anywhere;
}

.dh-document-record-facts dd strong,
.dh-document-record-facts dd a,
.dh-document-record-facts dd small {
    display: block;
}

.dh-document-record-facts dd a {
    margin-top: 0.15rem;
    color: var(--dh-workspace-accent);
    text-decoration: none;
}

.dh-document-record-facts dd small {
    margin-top: 0.25rem;
    color: var(--dh-ink-soft);
    line-height: 1.4;
}

.dh-document-record-status {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.55rem;
    margin-bottom: 1rem;
    color: var(--dh-ink);
    font-size: 0.82rem;
}

.dh-document-record-timeline {
    display: grid;
    gap: 0.75rem;
    margin: 0;
    padding: 0;
    color: var(--dh-ink-soft);
    font-size: 0.78rem;
    list-style: none;
}

.dh-document-record-timeline li {
    position: relative;
    min-height: 22px;
    padding-left: 1.65rem;
    line-height: 1.5;
}

.dh-document-record-timeline li::before {
    position: absolute;
    top: 18px;
    bottom: -0.8rem;
    left: 7px;
    width: 1px;
    background: rgba(18, 32, 51, 0.12);
    content: "";
}

.dh-document-record-timeline li:last-child::before {
    display: none;
}

.dh-document-record-timeline li > span {
    position: absolute;
    top: 3px;
    left: 0;
    width: 15px;
    height: 15px;
    border: 3px solid #fff;
    border-radius: 999px;
    background: rgba(18, 32, 51, 0.2);
    box-shadow: 0 0 0 1px rgba(18, 32, 51, 0.13);
}

.dh-document-record-timeline li.is-complete {
    color: var(--dh-ink);
    font-weight: 680;
}

.dh-document-record-timeline li.is-complete > span {
    background: var(--dh-workspace-accent);
    box-shadow: 0 0 0 1px rgba(var(--dh-workspace-accent-rgb), 0.32);
}

.dh-document-record-reminders {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 1rem;
    padding: 0.7rem 0.8rem;
    border-radius: 13px;
    color: var(--dh-ink-soft);
    background: rgba(var(--dh-workspace-accent-rgb), 0.075);
    font-size: 0.78rem;
    font-weight: 700;
}

.dh-document-record-manage {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
}

.dh-document-record-manage form,
.dh-document-record-manage form .btn {
    width: 100%;
}

.dh-document-record-manage form {
    grid-column: 1 / -1;
}

@media (max-width: 1099.98px) {
    .dh-document-record-grid {
        grid-template-columns: minmax(0, 1.35fr) minmax(285px, 0.75fr);
    }
}

@media (max-width: 899.98px) {
    .dh-document-record-grid {
        grid-template-columns: 1fr;
    }

    .dh-document-record-sidebar {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dh-document-record-manage {
        grid-column: 1 / -1;
    }
}

@media (max-width: 767.98px) {
    .dh-document-record-actions,
    .dh-document-record-actions form,
    .dh-document-record-actions .btn {
        width: 100%;
    }

    .dh-document-record-sidebar {
        grid-template-columns: 1fr;
    }

    .dh-document-record-card {
        padding: 1.05rem;
    }

    .dh-document-record-paper {
        min-height: 360px;
        padding: 1.15rem;
        border-radius: 16px;
    }

    .dh-document-record-facts > div {
        grid-template-columns: 1fr;
        gap: 0.25rem;
    }

    .dh-document-record-facts dd {
        text-align: left;
    }
}

@media (max-width: 479.98px) {
    .dh-document-record-manage {
        grid-template-columns: 1fr;
    }

    .dh-document-record-manage form {
        grid-column: auto;
    }
}

/* Premium client document archive */
.dh-client-documents-hero,
.dh-client-document-detail-hero {
    position: relative;
    overflow: hidden;
}

.dh-client-documents-hero__mark {
    display: inline-flex;
    width: 88px;
    height: 88px;
    flex: 0 0 auto;
    align-self: center;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(var(--dh-workspace-accent-rgb), 0.15);
    border-radius: 30px;
    color: var(--dh-workspace-accent);
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 18px 38px rgba(15, 23, 42, 0.08);
}

.dh-client-documents-hero__glyph {
    width: 38px;
    height: 38px;
}

.dh-client-documents-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
}

.dh-client-documents-metrics article {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem 1.1rem;
    border: 1px solid rgba(18, 32, 51, 0.08);
    border-radius: 20px;
    color: var(--dh-workspace-accent);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.055);
}

.dh-client-documents-metrics article.is-attention {
    color: #a16207;
    background: linear-gradient(145deg, rgba(255, 251, 235, 0.98), rgba(255, 255, 255, 0.96));
}

.dh-client-documents-metrics article.is-complete {
    color: #047857;
}

.dh-client-documents-metric__glyph {
    width: 25px;
    height: 25px;
}

.dh-client-documents-metrics article > span {
    display: inline-flex;
    width: 44px;
    height: 44px;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    background: currentColor;
}

.dh-client-documents-metrics article > span .dh-client-documents-metric__glyph {
    color: #fff;
}

.dh-client-documents-metrics strong,
.dh-client-documents-metrics small {
    display: block;
}

.dh-client-documents-metrics strong {
    color: var(--dh-ink);
    font-size: 1.3rem;
    line-height: 1;
}

.dh-client-documents-metrics small {
    margin-top: 0.25rem;
    color: var(--dh-ink-soft);
    font-size: 0.75rem;
}

.dh-client-documents-assurance {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 1rem 1.1rem;
    border: 1px solid rgba(var(--dh-workspace-accent-rgb), 0.13);
    border-radius: 20px;
    background: rgba(var(--dh-workspace-accent-rgb), 0.055);
}

.dh-client-documents-assurance__icon {
    display: inline-flex;
    width: 44px;
    height: 44px;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    color: var(--dh-workspace-accent);
    background: #fff;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.06);
}

.dh-client-documents-assurance__glyph {
    width: 22px;
    height: 22px;
}

.dh-client-documents-assurance h2 {
    margin: 0;
    color: var(--dh-ink);
    font-size: 0.95rem;
    letter-spacing: -0.02em;
}

.dh-client-documents-assurance p {
    margin: 0.2rem 0 0;
    color: var(--dh-ink-soft);
    font-size: 0.8rem;
    line-height: 1.5;
}

.dh-client-documents-list {
    display: grid;
    gap: 0.75rem;
}

.dh-client-document-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 1rem;
    padding: 1.1rem;
    border-color: rgba(18, 32, 51, 0.08);
    background:
        radial-gradient(circle at 98% 2%, rgba(var(--dh-workspace-accent-rgb), 0.05), transparent 28%),
        rgba(255, 255, 255, 0.98);
    transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.dh-client-document-card:hover {
    border-color: rgba(var(--dh-workspace-accent-rgb), 0.18);
    box-shadow: 0 19px 38px rgba(15, 23, 42, 0.075);
    transform: translateY(-1px);
}

.dh-client-document-card.is-attention {
    border-color: rgba(217, 119, 6, 0.24);
    background:
        radial-gradient(circle at 98% 2%, rgba(245, 158, 11, 0.1), transparent 30%),
        rgba(255, 255, 255, 0.98);
}

.dh-client-document-card__icon {
    display: inline-flex;
    width: 48px;
    height: 48px;
    align-items: center;
    justify-content: center;
    border-radius: 17px;
    color: var(--dh-workspace-accent);
    background: rgba(var(--dh-workspace-accent-rgb), 0.1);
}

.dh-client-document-card.is-attention .dh-client-document-card__icon {
    color: #a16207;
    background: rgba(245, 158, 11, 0.12);
}

.dh-client-document-card__glyph {
    width: 23px;
    height: 23px;
}

.dh-client-document-card__badges,
.dh-client-document-card__meta,
.dh-client-document-card__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem;
}

.dh-client-document-card__attention {
    color: #92400e;
    font-size: 0.71rem;
    font-weight: 800;
}

.dh-client-document-card h2 {
    margin: 0.45rem 0 0;
    color: var(--dh-ink);
    font-size: 1rem;
    letter-spacing: -0.02em;
}

.dh-client-document-card__meta {
    margin-top: 0.45rem;
    color: var(--dh-ink-soft);
    font-size: 0.76rem;
}

.dh-client-document-card__meta span + span::before {
    margin-right: 0.45rem;
    color: rgba(18, 32, 51, 0.25);
    content: "·";
}

.dh-client-document-card__actions {
    justify-content: flex-end;
}

.dh-client-document-card__actions form {
    display: flex;
}

.dh-client-documents-empty {
    display: grid;
    min-height: 240px;
    place-items: center;
    align-content: center;
    gap: 0.8rem;
    padding: 2rem;
    color: var(--dh-ink-soft);
    text-align: center;
}

.dh-client-documents-empty__glyph {
    width: 42px;
    height: 42px;
    color: var(--dh-workspace-accent);
}

.dh-client-documents-empty p {
    max-width: 520px;
    margin: 0;
}

.dh-client-document-detail-hero__status {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.65rem;
    margin-top: 0.85rem;
    color: #92400e;
    font-size: 0.78rem;
}

.dh-client-document-detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(295px, 0.72fr);
    align-items: start;
    gap: 1rem;
}

.dh-client-document-detail-grid > main,
.dh-client-document-detail-sidebar {
    min-width: 0;
}

.dh-client-document-detail-sidebar {
    display: grid;
    gap: 1rem;
}

.dh-client-document-detail-card {
    padding: 1.3rem;
    border-color: rgba(18, 32, 51, 0.08);
    background:
        radial-gradient(circle at 98% 2%, rgba(var(--dh-workspace-accent-rgb), 0.055), transparent 30%),
        rgba(255, 255, 255, 0.98);
}

.dh-client-document-detail-card__header {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    margin-bottom: 1rem;
    padding-bottom: 0.9rem;
    border-bottom: 1px solid rgba(18, 32, 51, 0.075);
}

.dh-client-document-detail-card__icon {
    display: inline-flex;
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    color: var(--dh-workspace-accent);
    background: rgba(var(--dh-workspace-accent-rgb), 0.1);
}

.dh-client-document-detail-card__glyph {
    width: 21px;
    height: 21px;
}

.dh-client-document-detail-card__header h2 {
    margin: 0;
    color: var(--dh-ink);
    font-size: 1rem;
    letter-spacing: -0.02em;
}

.dh-client-document-detail-card__header p {
    margin: 0.2rem 0 0;
    color: var(--dh-ink-soft);
    font-size: 0.78rem;
    line-height: 1.5;
}

.dh-client-document-paper {
    min-height: 460px;
    padding: clamp(1.25rem, 3vw, 2rem);
    border: 1px solid rgba(18, 32, 51, 0.08);
    border-radius: 19px;
    color: var(--dh-ink);
    background: #fff;
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.055);
    font-size: 0.93rem;
    line-height: 1.78;
    overflow-wrap: anywhere;
}

.dh-client-document-paper__footer {
    display: flex;
    align-items: flex-start;
    gap: 0.35rem;
    margin-top: 1rem;
    padding-top: 0.85rem;
    border-top: 1px solid rgba(18, 32, 51, 0.075);
    color: var(--dh-ink-soft);
    font-size: 0.77rem;
    line-height: 1.5;
}

.dh-client-document-facts {
    display: grid;
    margin: 0;
}

.dh-client-document-facts > div {
    display: grid;
    grid-template-columns: minmax(90px, 0.8fr) minmax(0, 1.2fr);
    gap: 0.65rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(18, 32, 51, 0.065);
}

.dh-client-document-facts > div:first-child {
    padding-top: 0;
}

.dh-client-document-facts > div:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.dh-client-document-facts dt {
    color: var(--dh-ink-soft);
    font-size: 0.74rem;
    font-weight: 700;
}

.dh-client-document-facts dd {
    margin: 0;
    color: var(--dh-ink);
    font-size: 0.78rem;
    font-weight: 700;
    text-align: right;
}

.dh-client-document-facts dd small {
    display: block;
    margin-top: 0.3rem;
    color: var(--dh-ink-soft);
    font-weight: 500;
    line-height: 1.4;
}

.dh-client-document-confirm {
    display: grid;
    gap: 0.55rem;
    padding: 1.15rem;
    border: 1px solid rgba(217, 119, 6, 0.22);
    border-radius: 20px;
    color: #92400e;
    background: linear-gradient(145deg, rgba(255, 251, 235, 0.98), rgba(255, 255, 255, 0.98));
    box-shadow: 0 16px 34px rgba(146, 64, 14, 0.07);
}

.dh-client-document-confirm__glyph {
    width: 26px;
    height: 26px;
}

.dh-client-document-confirm p {
    margin: 0 0 0.3rem;
    color: var(--dh-ink-soft);
    font-size: 0.78rem;
    line-height: 1.5;
}

@media (max-width: 991.98px) {
    .dh-client-document-card {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .dh-client-document-card__actions {
        grid-column: 1 / -1;
        justify-content: flex-start;
        padding-left: 64px;
    }

    .dh-client-document-detail-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767.98px) {
    .dh-client-documents-hero__mark {
        display: none;
    }

    .dh-client-documents-metrics {
        grid-template-columns: 1fr;
    }

    .dh-client-document-card {
        grid-template-columns: 1fr;
    }

    .dh-client-document-card__icon {
        width: 42px;
        height: 42px;
    }

    .dh-client-document-card__actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        padding-left: 0;
    }

    .dh-client-document-card__actions form,
    .dh-client-document-card__actions form .btn {
        width: 100%;
    }

    .dh-client-document-card__actions form {
        grid-column: 1 / -1;
    }

    .dh-client-document-detail-card {
        padding: 1.05rem;
    }

    .dh-client-document-paper {
        min-height: 340px;
        padding: 1.1rem;
    }
}

@media (max-width: 479.98px) {
    .dh-client-documents-assurance {
        align-items: flex-start;
    }

    .dh-client-document-card__actions {
        grid-template-columns: 1fr;
    }

    .dh-client-document-card__actions form {
        grid-column: auto;
    }

    .dh-client-document-card__actions .btn {
        width: 100%;
    }

    .dh-client-document-facts > div {
        grid-template-columns: 1fr;
        gap: 0.2rem;
    }

    .dh-client-document-facts dd {
        text-align: left;
    }
}

/* Premium client portal home */
.dh-client-dashboard-hero {
    position: relative;
    display: flex;
    min-height: 280px;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    overflow: hidden;
    padding: clamp(1.5rem, 4vw, 2.5rem);
    border: 1px solid rgba(18, 32, 51, 0.08);
    border-radius: 30px;
    background:
        radial-gradient(circle at 85% 18%, rgba(241, 188, 22, 0.25), transparent 27%),
        radial-gradient(circle at 5% 100%, rgba(var(--dh-workspace-accent-rgb), 0.12), transparent 35%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.99), rgba(248, 250, 252, 0.96));
    box-shadow: 0 24px 52px rgba(15, 23, 42, 0.08);
}

.dh-client-dashboard-hero__content {
    position: relative;
    z-index: 1;
    max-width: 720px;
}

.dh-client-dashboard-hero__eyebrow {
    display: block;
    margin-bottom: 0.45rem;
    color: var(--dh-workspace-accent);
    font-size: 0.76rem;
    font-weight: 850;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.dh-client-dashboard-hero h1 {
    max-width: 680px;
    margin: 0;
    color: var(--dh-ink);
    font-size: clamp(1.7rem, 4vw, 2.65rem);
    font-weight: 880;
    letter-spacing: -0.052em;
    line-height: 1.08;
}

.dh-client-dashboard-hero p {
    max-width: 650px;
    margin: 0.7rem 0 1.2rem;
    color: var(--dh-ink-soft);
    font-size: 0.98rem;
    line-height: 1.65;
}

.dh-client-dashboard-hero__visual {
    position: relative;
    display: grid;
    width: 190px;
    height: 190px;
    flex: 0 0 auto;
    place-items: center;
}

.dh-client-dashboard-hero__visual > span {
    position: relative;
    z-index: 2;
    display: inline-flex;
    width: 118px;
    height: 118px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 42px;
    color: var(--dh-workspace-accent);
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 24px 50px rgba(15, 23, 42, 0.11);
    backdrop-filter: blur(10px);
}

.dh-client-dashboard-hero__glyph {
    width: 56px;
    height: 56px;
}

.dh-client-dashboard-hero__visual i {
    position: absolute;
    display: block;
    border-radius: 999px;
}

.dh-client-dashboard-hero__visual i:nth-of-type(1) {
    width: 175px;
    height: 175px;
    border: 1px solid rgba(var(--dh-workspace-accent-rgb), 0.14);
}

.dh-client-dashboard-hero__visual i:nth-of-type(2) {
    top: 15px;
    right: 8px;
    width: 34px;
    height: 34px;
    background: rgba(241, 188, 22, 0.25);
}

.dh-client-dashboard-hero__visual i:nth-of-type(3) {
    bottom: 8px;
    left: 18px;
    width: 22px;
    height: 22px;
    background: rgba(var(--dh-workspace-accent-rgb), 0.18);
}

.dh-client-dashboard-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.75rem;
}

.dh-client-dashboard-stats article {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem;
    border: 1px solid rgba(18, 32, 51, 0.08);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.055);
}

.dh-client-dashboard-stat__icon {
    display: inline-flex;
    width: 44px;
    height: 44px;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    color: var(--dh-workspace-accent);
    background: rgba(var(--dh-workspace-accent-rgb), 0.1);
}

.dh-client-dashboard-stat__glyph {
    width: 22px;
    height: 22px;
}

.dh-client-dashboard-stats strong,
.dh-client-dashboard-stats small {
    display: block;
}

.dh-client-dashboard-stats strong {
    overflow: hidden;
    color: var(--dh-ink);
    font-size: 1.15rem;
    line-height: 1.15;
    text-overflow: ellipsis;
}

.dh-client-dashboard-stats small {
    margin-top: 0.24rem;
    color: var(--dh-ink-soft);
    font-size: 0.72rem;
    line-height: 1.35;
}

.dh-client-dashboard-ai {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 1rem;
    padding: 1.2rem 1.3rem;
    overflow: hidden;
    border: 1px solid rgba(241, 188, 22, 0.3);
    border-radius: 22px;
    background:
        radial-gradient(circle at 90% 15%, rgba(241, 188, 22, 0.18), transparent 34%),
        linear-gradient(135deg, #fffdf6, #fff);
    box-shadow: 0 16px 36px rgba(114, 76, 0, 0.07);
}

.dh-client-dashboard-ai__icon {
    display: inline-flex;
    width: 52px;
    height: 52px;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    color: #9a6700;
    background: rgba(241, 188, 22, 0.2);
}

.dh-client-dashboard-ai__glyph {
    width: 25px;
    height: 25px;
}

.dh-client-dashboard-ai h2 {
    margin: 0;
    color: var(--dh-ink);
    font-size: 1.05rem;
    letter-spacing: -0.025em;
}

.dh-client-dashboard-ai p {
    margin: 0.25rem 0 0;
    color: var(--dh-ink-soft);
    font-size: 0.82rem;
    line-height: 1.5;
}

.dh-client-dashboard-ai small {
    display: block;
    margin-top: 0.3rem;
    color: var(--dh-ink-soft);
    font-size: 0.7rem;
    line-height: 1.4;
}

.dh-client-dashboard-actions {
    padding: 1.3rem;
    border-color: rgba(18, 32, 51, 0.08);
}

.dh-client-dashboard-section-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.dh-client-dashboard-section-head h2,
.dh-client-dashboard-record-panel__header h2,
.dh-client-dashboard-progress h2 {
    margin: 0;
    color: var(--dh-ink);
    font-size: 1.05rem;
    letter-spacing: -0.027em;
}

.dh-client-dashboard-section-head p {
    margin: 0.25rem 0 0;
    color: var(--dh-ink-soft);
    font-size: 0.8rem;
}

.dh-client-dashboard-action-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.7rem;
}

.dh-client-dashboard-action-grid > a {
    display: grid;
    min-width: 0;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.75rem;
    padding: 0.95rem;
    border: 1px solid rgba(18, 32, 51, 0.075);
    border-radius: 18px;
    color: inherit;
    background: rgba(248, 250, 252, 0.68);
    text-decoration: none;
    transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.dh-client-dashboard-action-grid > a:hover {
    border-color: rgba(var(--dh-workspace-accent-rgb), 0.2);
    background: rgba(var(--dh-workspace-accent-rgb), 0.045);
    transform: translateY(-1px);
}

.dh-client-dashboard-action-grid > a > span {
    display: inline-flex;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    color: var(--dh-workspace-accent);
    background: rgba(var(--dh-workspace-accent-rgb), 0.1);
}

.dh-client-dashboard-action__glyph {
    width: 21px;
    height: 21px;
}

.dh-client-dashboard-action__arrow {
    width: 17px;
    height: 17px;
    color: var(--dh-ink-soft);
}

.dh-client-dashboard-action-grid strong,
.dh-client-dashboard-action-grid small {
    display: block;
}

.dh-client-dashboard-action-grid strong {
    color: var(--dh-ink);
    font-size: 0.83rem;
}

.dh-client-dashboard-action-grid small {
    margin-top: 0.2rem;
    color: var(--dh-ink-soft);
    font-size: 0.72rem;
    line-height: 1.4;
}

.dh-client-dashboard-records {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    gap: 1rem;
}

.dh-client-dashboard-record-panel {
    min-width: 0;
    padding: 1.2rem;
    border-color: rgba(18, 32, 51, 0.08);
}

.dh-client-dashboard-record-panel__header {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.7rem;
    margin-bottom: 1rem;
    padding-bottom: 0.9rem;
    border-bottom: 1px solid rgba(18, 32, 51, 0.07);
}

.dh-client-dashboard-record-panel__header > div {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem;
}

.dh-client-dashboard-record-panel__icon {
    display: inline-flex;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
}

.dh-client-dashboard-record-panel__icon.is-groom {
    color: #047857;
    background: rgba(16, 185, 129, 0.11);
}

.dh-client-dashboard-record-panel__icon.is-vet {
    color: #1d4ed8;
    background: rgba(59, 130, 246, 0.11);
}

.dh-client-dashboard-record-panel__glyph {
    width: 21px;
    height: 21px;
}

.dh-client-dashboard-record-panel__empty {
    margin: 0;
    color: var(--dh-ink-soft);
    font-size: 0.79rem;
    line-height: 1.5;
}

.dh-client-dashboard-record-list {
    display: grid;
    gap: 0.65rem;
}

.dh-client-dashboard-record-list article {
    padding: 0.85rem;
    border: 1px solid rgba(18, 32, 51, 0.065);
    border-radius: 16px;
    background: rgba(248, 250, 252, 0.66);
}

.dh-client-dashboard-record-list h3 {
    margin: 0;
    color: var(--dh-ink);
    font-size: 0.85rem;
}

.dh-client-dashboard-record-list__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem 0.5rem;
    margin-top: 0.35rem;
    color: var(--dh-ink-soft);
    font-size: 0.7rem;
}

.dh-client-dashboard-record-list__meta span + span::before {
    margin-right: 0.5rem;
    content: "·";
}

.dh-client-dashboard-record-list p {
    margin: 0.55rem 0 0;
    color: var(--dh-ink-soft);
    font-size: 0.75rem;
    line-height: 1.5;
}

.dh-client-dashboard-record-list .btn {
    margin-top: 0.65rem;
}

.dh-client-dashboard-progress {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 1rem;
    padding: 1.2rem 1.3rem;
    border: 1px solid rgba(var(--dh-workspace-accent-rgb), 0.13);
    border-radius: 22px;
    background:
        radial-gradient(circle at 98% 5%, rgba(var(--dh-workspace-accent-rgb), 0.1), transparent 32%),
        rgba(255, 255, 255, 0.97);
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.055);
}

.dh-client-dashboard-progress__icon {
    display: inline-flex;
    width: 48px;
    height: 48px;
    align-items: center;
    justify-content: center;
    border-radius: 17px;
    color: var(--dh-workspace-accent);
    background: rgba(var(--dh-workspace-accent-rgb), 0.1);
}

.dh-client-dashboard-progress__glyph {
    width: 24px;
    height: 24px;
}

.dh-client-dashboard-progress p {
    margin: 0.25rem 0 0;
    color: var(--dh-ink-soft);
    font-size: 0.8rem;
    line-height: 1.5;
}

.dh-client-dashboard-progress__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.45rem;
}

@media (max-width: 1199.98px) {
    .dh-client-dashboard-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dh-client-dashboard-progress {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .dh-client-dashboard-progress__actions {
        grid-column: 1 / -1;
        justify-content: flex-start;
        padding-left: 64px;
    }
}

@media (max-width: 991.98px) {
    .dh-client-dashboard-records {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767.98px) {
    .dh-client-dashboard-hero {
        min-height: auto;
        padding: 1.4rem;
        border-radius: 24px;
    }

    .dh-client-dashboard-hero__visual {
        display: none;
    }

    .dh-client-dashboard-ai {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .dh-client-dashboard-ai form {
        grid-column: 1 / -1;
        padding-left: 68px;
    }

    .dh-client-dashboard-action-grid {
        grid-template-columns: 1fr;
    }

    .dh-client-dashboard-progress {
        grid-template-columns: 1fr;
    }

    .dh-client-dashboard-progress__actions {
        grid-column: auto;
        padding-left: 0;
    }
}

@media (max-width: 575.98px) {
    .dh-client-dashboard-stats {
        grid-template-columns: 1fr;
    }

    .dh-client-dashboard-ai {
        grid-template-columns: 1fr;
    }

    .dh-client-dashboard-ai form {
        grid-column: auto;
        padding-left: 0;
    }

    .dh-client-dashboard-ai form .btn,
    .dh-client-dashboard-progress__actions,
    .dh-client-dashboard-progress__actions .btn {
        width: 100%;
    }

    .dh-client-dashboard-record-panel__header {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .dh-client-dashboard-record-panel__header > .btn {
        grid-column: 1 / -1;
        width: 100%;
    }
}

/* Premium client payment history and withdrawal journey */
.dh-client-payments {
    display: grid;
    gap: 1.35rem;
}

.dh-client-payments-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 210px;
    align-items: center;
    min-height: 290px;
    padding: clamp(1.6rem, 4vw, 3rem);
    overflow: hidden;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 30px;
    background:
        radial-gradient(circle at 84% 18%, rgba(255, 201, 65, .26), transparent 31%),
        radial-gradient(circle at 6% 108%, rgba(50, 183, 153, .2), transparent 36%),
        linear-gradient(135deg, #101b34 0%, #15213d 55%, #20304f 100%);
    box-shadow: 0 24px 65px rgba(15, 27, 52, .18);
}

.dh-client-payments-hero::after {
    position: absolute;
    right: -70px;
    bottom: -110px;
    width: 290px;
    height: 290px;
    content: "";
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 50%;
}

.dh-client-payments-hero__content {
    position: relative;
    z-index: 1;
    max-width: 750px;
}

.dh-client-payments-hero__eyebrow,
.dh-client-payments-history__eyebrow,
.dh-client-payments-rights__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    margin-bottom: .75rem;
    font-size: .73rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.dh-client-payments-hero__eyebrow {
    color: #ffd269;
}

.dh-client-payments-hero h1 {
    max-width: 720px;
    margin: 0;
    font-size: clamp(2rem, 4vw, 3.45rem);
    font-weight: 850;
    line-height: 1.02;
    letter-spacing: -.045em;
}

.dh-client-payments-hero p {
    max-width: 680px;
    margin: 1rem 0 1.35rem;
    color: rgba(255, 255, 255, .76);
    font-size: clamp(1rem, 1.6vw, 1.13rem);
    line-height: 1.65;
}

.dh-client-payments-hero__back {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    min-height: 44px;
    padding: .68rem 1rem;
    color: #13203a;
    font-weight: 800;
    border: 1px solid rgba(255, 255, 255, .78);
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 9px 24px rgba(0, 0, 0, .14);
}

.dh-client-payments-hero__back:hover,
.dh-client-payments-hero__back:focus-visible {
    color: #13203a;
    border-color: #ffd269;
    background: #ffd269;
}

.dh-client-payments-hero__visual {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
}

.dh-client-payments-hero__visual > span {
    display: grid;
    width: 148px;
    height: 148px;
    place-items: center;
    color: #18243e;
    border: 1px solid rgba(255, 255, 255, .62);
    border-radius: 42px;
    background: linear-gradient(145deg, #ffe59d, #ffbd2f);
    box-shadow:
        0 28px 55px rgba(0, 0, 0, .22),
        inset 0 1px 0 rgba(255, 255, 255, .8);
    transform: rotate(4deg);
}

.dh-client-payments-hero__glyph {
    width: 72px;
    height: 72px;
    stroke-width: 1.45;
}

.dh-client-payments-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .85rem;
}

.dh-client-payments-stat {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: .9rem;
    min-width: 0;
    padding: 1.1rem 1.2rem;
    border: 1px solid #e3e8f0;
    border-radius: 22px;
    background: rgba(255, 255, 255, .92);
    box-shadow: 0 12px 34px rgba(22, 34, 57, .07);
}

.dh-client-payments-stat__icon {
    display: grid;
    width: 45px;
    height: 45px;
    place-items: center;
    color: #17345e;
    border-radius: 15px;
    background: #eaf1fb;
}

.dh-client-payments-stat__icon.is-paid {
    color: #08755e;
    background: #ddf7ef;
}

.dh-client-payments-stat__icon.is-action {
    color: #a65b08;
    background: #fff0cf;
}

.dh-client-payments-stat__glyph {
    width: 23px;
    height: 23px;
}

.dh-client-payments-stat strong,
.dh-client-payments-stat span {
    display: block;
}

.dh-client-payments-stat strong {
    overflow: hidden;
    color: #14213a;
    font-size: clamp(1.15rem, 2.2vw, 1.45rem);
    font-weight: 850;
    line-height: 1.15;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dh-client-payments-stat div > span {
    margin-top: .25rem;
    color: #657089;
    font-size: .82rem;
    font-weight: 650;
}

.dh-client-payments-rights {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.35rem;
    border: 1px solid #d8e8e2;
    border-radius: 24px;
    background:
        radial-gradient(circle at 92% 0, rgba(27, 156, 125, .1), transparent 33%),
        #f8fcfa;
    box-shadow: 0 12px 30px rgba(17, 78, 65, .06);
}

.dh-client-payments-rights__icon {
    display: grid;
    width: 52px;
    height: 52px;
    place-items: center;
    color: #08765f;
    border: 1px solid #c4e7dd;
    border-radius: 17px;
    background: #e3f7f1;
}

.dh-client-payments-rights__glyph {
    width: 27px;
    height: 27px;
}

.dh-client-payments-rights__eyebrow {
    margin-bottom: .3rem;
    color: #08765f;
}

.dh-client-payments-rights h2,
.dh-client-payments-rights p {
    margin: 0;
}

.dh-client-payments-rights h2 {
    color: #15233d;
    font-size: 1.05rem;
    font-weight: 850;
}

.dh-client-payments-rights p {
    max-width: 850px;
    margin-top: .35rem;
    color: #5f6b7e;
    font-size: .88rem;
    line-height: 1.55;
}

.dh-client-payments-rights .btn {
    min-height: 42px;
    font-size: .84rem;
    font-weight: 800;
}

.dh-client-payments-history {
    overflow: hidden;
    border: 1px solid #e1e7ef;
    border-radius: 28px;
    background: #fff;
    box-shadow: 0 18px 50px rgba(22, 34, 57, .08);
}

.dh-client-payments-history__header {
    padding: 1.4rem 1.5rem;
    border-bottom: 1px solid #e9edf3;
    background:
        radial-gradient(circle at 94% 0, rgba(255, 191, 47, .12), transparent 28%),
        #fbfcfe;
}

.dh-client-payments-history__eyebrow {
    margin-bottom: .35rem;
    color: #bf6b05;
}

.dh-client-payments-history h2,
.dh-client-payments-history p {
    margin: 0;
}

.dh-client-payments-history h2 {
    color: #15213a;
    font-size: clamp(1.25rem, 2.4vw, 1.65rem);
    font-weight: 850;
    letter-spacing: -.025em;
}

.dh-client-payments-history p {
    margin-top: .35rem;
    color: #687389;
    line-height: 1.55;
}

.dh-client-payments-list {
    display: grid;
    gap: 1rem;
    padding: 1rem;
}

.dh-client-payment-card {
    overflow: hidden;
    border: 1px solid #e2e7ef;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(25, 37, 60, .05);
}

.dh-client-payment-card.needs-action {
    border-color: #f1d59a;
    box-shadow: 0 10px 28px rgba(174, 105, 15, .08);
}

.dh-client-payment-card__main {
    display: grid;
    grid-template-columns: minmax(220px, 1.3fr) minmax(300px, 1fr) auto;
    align-items: center;
    gap: 1.2rem;
    padding: 1.2rem;
}

.dh-client-payment-card__heading {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
    gap: .85rem;
    min-width: 0;
}

.dh-client-payment-card__icon {
    display: grid;
    width: 44px;
    height: 44px;
    flex: 0 0 auto;
    place-items: center;
    color: #254269;
    border-radius: 14px;
    background: #edf3fa;
}

.dh-client-payment-card.needs-action .dh-client-payment-card__icon {
    color: #a25b08;
    background: #fff1d1;
}

.dh-client-payment-card__glyph {
    width: 22px;
    height: 22px;
}

.dh-client-payment-card__title-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .55rem;
}

.dh-client-payment-card h3 {
    min-width: 0;
    margin: 0;
    overflow-wrap: anywhere;
    color: #17243e;
    font-size: 1rem;
    font-weight: 820;
}

.dh-client-payment-card__attention {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    margin-top: .4rem;
    color: #9a590d;
    font-size: .75rem;
    font-weight: 780;
}

.dh-client-payment-card__attention-glyph {
    width: 14px;
    height: 14px;
}

.dh-client-payment-card__facts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .75rem;
    margin: 0;
}

.dh-client-payment-card__facts div {
    min-width: 0;
}

.dh-client-payment-card__facts dt {
    margin-bottom: .22rem;
    color: #7c8596;
    font-size: .69rem;
    font-weight: 780;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.dh-client-payment-card__facts dd {
    margin: 0;
    overflow: hidden;
    color: #27344c;
    font-size: .85rem;
    font-weight: 720;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dh-client-payment-card__main > .btn {
    min-height: 40px;
    padding-inline: 1rem;
    font-size: .83rem;
    font-weight: 800;
    border-radius: 999px;
}

.dh-client-payment-withdrawal {
    border-top: 1px solid #e8ecf2;
    background: #fbfcfd;
}

.dh-client-payment-withdrawal > summary {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: .8rem;
    padding: 1rem 1.2rem;
    color: #24324c;
    cursor: pointer;
    list-style: none;
    transition: background-color .18s ease, color .18s ease;
}

.dh-client-payment-withdrawal > summary::-webkit-details-marker {
    display: none;
}

.dh-client-payment-withdrawal > summary:hover,
.dh-client-payment-withdrawal > summary:focus-visible {
    color: #0d6c58;
    background: #f3faf7;
    outline: none;
}

.dh-client-payment-withdrawal__summary-icon {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    color: #0b735d;
    border-radius: 13px;
    background: #e3f6f0;
}

.dh-client-payment-withdrawal__glyph {
    width: 20px;
    height: 20px;
}

.dh-client-payment-withdrawal > summary strong,
.dh-client-payment-withdrawal > summary small {
    display: block;
}

.dh-client-payment-withdrawal > summary strong {
    font-size: .88rem;
    font-weight: 820;
}

.dh-client-payment-withdrawal > summary small {
    margin-top: .18rem;
    color: #6d788b;
    font-size: .75rem;
    line-height: 1.4;
}

.dh-client-payment-withdrawal__toggle {
    width: 18px;
    height: 18px;
    transition: transform .2s ease;
}

.dh-client-payment-withdrawal[open] .dh-client-payment-withdrawal__toggle {
    transform: rotate(45deg);
}

.dh-client-payment-withdrawal__form {
    display: grid;
    gap: 1rem;
    padding: 1.2rem;
    border-top: 1px solid #e6ebe9;
    background: #fff;
}

.dh-client-payment-withdrawal__heading {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
    gap: .8rem;
}

.dh-client-payment-withdrawal__form-icon {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    color: #0a755e;
    border-radius: 14px;
    background: #e5f7f1;
}

.dh-client-payment-withdrawal__form-glyph {
    width: 22px;
    height: 22px;
}

.dh-client-payment-withdrawal__heading h4,
.dh-client-payment-withdrawal__heading p,
.dh-client-payment-withdrawal__use,
.dh-client-payment-withdrawal__legal p {
    margin: 0;
}

.dh-client-payment-withdrawal__heading h4 {
    color: #14233c;
    font-size: 1rem;
    font-weight: 850;
}

.dh-client-payment-withdrawal__heading p,
.dh-client-payment-withdrawal__use {
    color: #667286;
    font-size: .84rem;
    line-height: 1.55;
}

.dh-client-payment-withdrawal__heading p {
    margin-top: .25rem;
}

.dh-client-payment-withdrawal__legal {
    padding: 1rem;
    color: #67430e;
    border: 1px solid #f0daa9;
    border-radius: 16px;
    background: #fff9ea;
}

.dh-client-payment-withdrawal__legal strong {
    display: block;
    margin-bottom: .35rem;
    color: #714706;
    font-size: .82rem;
}

.dh-client-payment-withdrawal__legal p {
    font-size: .8rem;
    line-height: 1.55;
}

.dh-client-payment-withdrawal__ack {
    padding: .9rem .95rem .9rem 2.65rem;
    border: 1px solid #dfe6ee;
    border-radius: 15px;
    background: #f8fafc;
}

.dh-client-payment-withdrawal__ack .form-check-input {
    margin-left: -1.7rem;
}

.dh-client-payment-withdrawal__ack .form-check-label {
    color: #344159;
    font-size: .83rem;
    font-weight: 670;
    line-height: 1.5;
}

.dh-client-payment-withdrawal__fields {
    display: grid;
    grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
    gap: .9rem;
}

.dh-client-payment-withdrawal__fields .form-label {
    color: #303d55;
    font-size: .79rem;
    font-weight: 780;
}

.dh-client-payment-withdrawal__fields .form-control {
    min-height: 46px;
    border-color: #dce3ec;
    border-radius: 13px;
    background: #fbfcfe;
}

.dh-client-payment-withdrawal__fields .form-control:focus {
    border-color: #36a78c;
    background: #fff;
    box-shadow: 0 0 0 .2rem rgba(29, 143, 116, .12);
}

.dh-client-payment-withdrawal__submit {
    display: inline-flex;
    justify-self: start;
    align-items: center;
    gap: .5rem;
    min-height: 44px;
    padding: .72rem 1.1rem;
    color: #fff;
    font-weight: 820;
    border: 1px solid #b63535;
    border-radius: 999px;
    background: #b63535;
}

.dh-client-payment-withdrawal__submit:hover,
.dh-client-payment-withdrawal__submit:focus-visible {
    color: #fff;
    border-color: #8f2727;
    background: #8f2727;
}

.dh-client-payment-withdrawal-status {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: .75rem;
    padding: 1rem 1.2rem;
    color: #286250;
    border-top: 1px solid #d8ece5;
    background: #f1faf7;
}

.dh-client-payment-withdrawal-status__glyph {
    width: 25px;
    height: 25px;
}

.dh-client-payment-withdrawal-status strong,
.dh-client-payment-withdrawal-status p {
    display: block;
    margin: 0;
}

.dh-client-payment-withdrawal-status strong {
    font-size: .82rem;
    font-weight: 830;
}

.dh-client-payment-withdrawal-status p {
    margin-top: .15rem;
    color: #547367;
    font-size: .78rem;
}

.dh-client-payments-empty {
    display: grid;
    justify-items: center;
    gap: .75rem;
    padding: clamp(2rem, 7vw, 4rem) 1.25rem;
    text-align: center;
}

.dh-client-payments-empty__glyph {
    width: 42px;
    height: 42px;
    color: #71809a;
}

.dh-client-payments-empty p {
    margin: 0;
    color: #68748a;
}

@media (max-width: 1199.98px) {
    .dh-client-payment-card__main {
        grid-template-columns: minmax(220px, 1fr) minmax(300px, 1.15fr);
    }

    .dh-client-payment-card__main > .btn {
        grid-column: 1 / -1;
        justify-self: start;
    }
}

@media (max-width: 991.98px) {
    .dh-client-payments-rights {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .dh-client-payments-rights > .btn {
        grid-column: 1 / -1;
        justify-self: start;
        margin-left: 68px;
    }

    .dh-client-payment-card__main {
        grid-template-columns: 1fr;
    }

    .dh-client-payment-card__main > .btn {
        grid-column: auto;
    }
}

@media (max-width: 767.98px) {
    .dh-client-payments-hero {
        grid-template-columns: 1fr;
        min-height: auto;
        padding: 1.45rem;
        border-radius: 24px;
    }

    .dh-client-payments-hero__visual {
        display: none;
    }

    .dh-client-payments-summary {
        grid-template-columns: 1fr;
    }

    .dh-client-payments-rights {
        grid-template-columns: 1fr;
        padding: 1.15rem;
    }

    .dh-client-payments-rights > .btn {
        grid-column: auto;
        justify-self: stretch;
        margin-left: 0;
    }

    .dh-client-payment-card__facts,
    .dh-client-payment-withdrawal__fields {
        grid-template-columns: 1fr;
    }

    .dh-client-payment-card__facts {
        gap: .6rem;
        padding-left: 59px;
    }

    .dh-client-payment-card__facts dd {
        white-space: normal;
    }
}

@media (max-width: 575.98px) {
    .dh-client-payments-history__header,
    .dh-client-payments-list {
        padding: 1rem;
    }

    .dh-client-payment-card__main {
        padding: 1rem;
    }

    .dh-client-payment-card__title-row {
        align-items: flex-start;
    }

    .dh-client-payment-card__facts {
        padding-left: 0;
    }

    .dh-client-payment-card__main > .btn,
    .dh-client-payment-withdrawal__submit {
        width: 100%;
        justify-content: center;
    }

    .dh-client-payment-withdrawal > summary,
    .dh-client-payment-withdrawal__form {
        padding: 1rem;
    }

    .dh-client-payment-withdrawal > summary {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .dh-client-payment-withdrawal__toggle {
        display: none;
    }
}

/* Premium client bookings, calendar and package balance */
.dh-client-bookings {
    display: grid;
    gap: 1.35rem;
}

.dh-client-bookings-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 210px;
    align-items: center;
    min-height: 300px;
    padding: clamp(1.6rem, 4vw, 3rem);
    overflow: hidden;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 30px;
    background:
        radial-gradient(circle at 85% 18%, rgba(107, 191, 255, .25), transparent 30%),
        radial-gradient(circle at 2% 106%, rgba(255, 195, 59, .22), transparent 38%),
        linear-gradient(135deg, #101b35 0%, #162543 56%, #1a3654 100%);
    box-shadow: 0 24px 65px rgba(15, 27, 52, .18);
}

.dh-client-bookings-hero::after {
    position: absolute;
    right: -75px;
    bottom: -115px;
    width: 300px;
    height: 300px;
    content: "";
    border: 1px solid rgba(255, 255, 255, .11);
    border-radius: 50%;
}

.dh-client-bookings-hero__content {
    position: relative;
    z-index: 1;
    max-width: 760px;
}

.dh-client-bookings-hero__eyebrow,
.dh-client-packages-panel__eyebrow,
.dh-client-bookings-section__header > span {
    display: inline-block;
    margin-bottom: .65rem;
    font-size: .72rem;
    font-weight: 820;
    line-height: 1.2;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.dh-client-bookings-hero__eyebrow {
    color: #ffd16c;
}

.dh-client-bookings-hero h1 {
    max-width: 720px;
    margin: 0;
    font-size: clamp(2rem, 4vw, 3.45rem);
    font-weight: 860;
    line-height: 1.02;
    letter-spacing: -.045em;
}

.dh-client-bookings-hero p {
    max-width: 680px;
    margin: 1rem 0 1.35rem;
    color: rgba(255, 255, 255, .76);
    font-size: clamp(1rem, 1.6vw, 1.13rem);
    line-height: 1.65;
}

.dh-client-bookings-hero__cta {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    min-height: 44px;
    padding: .68rem 1rem;
    color: #14213a;
    font-weight: 820;
    border: 1px solid rgba(255, 255, 255, .76);
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 9px 24px rgba(0, 0, 0, .14);
}

.dh-client-bookings-hero__cta:hover,
.dh-client-bookings-hero__cta:focus-visible {
    color: #14213a;
    border-color: #ffd16c;
    background: #ffd16c;
}

.dh-client-bookings-hero__visual {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
}

.dh-client-bookings-hero__visual > span {
    display: grid;
    width: 150px;
    height: 150px;
    place-items: center;
    color: #17243e;
    border: 1px solid rgba(255, 255, 255, .65);
    border-radius: 42px;
    background: linear-gradient(145deg, #e9f6ff, #8bcfff);
    box-shadow:
        0 28px 55px rgba(0, 0, 0, .22),
        inset 0 1px 0 rgba(255, 255, 255, .8);
    transform: rotate(4deg);
}

.dh-client-bookings-hero__glyph {
    width: 72px;
    height: 72px;
    stroke-width: 1.45;
}

.dh-client-bookings-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .85rem;
}

.dh-client-bookings-stat {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: .9rem;
    min-width: 0;
    padding: 1.1rem 1.2rem;
    border: 1px solid #e2e8f0;
    border-radius: 22px;
    background: rgba(255, 255, 255, .93);
    box-shadow: 0 12px 34px rgba(22, 34, 57, .07);
}

.dh-client-bookings-stat__icon {
    display: grid;
    width: 45px;
    height: 45px;
    place-items: center;
    color: #1c5791;
    border-radius: 15px;
    background: #e5f2fc;
}

.dh-client-bookings-stat__icon.is-history {
    color: #6350a0;
    background: #eeeafc;
}

.dh-client-bookings-stat__icon.is-package {
    color: #9b5c08;
    background: #fff0cf;
}

.dh-client-bookings-stat__glyph {
    width: 23px;
    height: 23px;
}

.dh-client-bookings-stat strong,
.dh-client-bookings-stat div > span {
    display: block;
}

.dh-client-bookings-stat strong {
    color: #14213a;
    font-size: clamp(1.15rem, 2.2vw, 1.45rem);
    font-weight: 860;
    line-height: 1.15;
}

.dh-client-bookings-stat div > span {
    margin-top: .25rem;
    color: #657089;
    font-size: .79rem;
    font-weight: 650;
    line-height: 1.35;
}

.dh-client-bookings-workspace,
.dh-client-packages-panel {
    overflow: hidden;
    border: 1px solid #e1e7ef;
    border-radius: 28px;
    background: #fff;
    box-shadow: 0 18px 50px rgba(22, 34, 57, .08);
}

.dh-client-bookings-section {
    padding: 1.4rem 1.5rem;
}

.dh-client-bookings-section + .dh-client-bookings-section {
    border-top: 1px solid #e9edf3;
}

.dh-client-bookings-section--calendar {
    background:
        radial-gradient(circle at 96% 0, rgba(76, 153, 216, .1), transparent 28%),
        #fbfcfe;
}

.dh-client-bookings-section__header {
    margin-bottom: 1rem;
}

.dh-client-bookings-section__header > span {
    margin-bottom: .3rem;
    color: #2b6b9f;
}

.dh-client-bookings-section--upcoming .dh-client-bookings-section__header > span {
    color: #9a5b09;
}

.dh-client-bookings-section--history .dh-client-bookings-section__header > span {
    color: #6a5b99;
}

.dh-client-bookings-section__header h2 {
    margin: 0;
    color: #15213a;
    font-size: clamp(1.2rem, 2.3vw, 1.55rem);
    font-weight: 850;
    letter-spacing: -.025em;
}

.dh-client-bookings-calendar {
    overflow: hidden;
    padding: .75rem;
    border: 1px solid #e1e8f0;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(25, 40, 65, .05);
}

.dh-client-bookings-calendar__help {
    margin-top: .65rem;
    color: #68758a;
    font-size: .78rem;
}

.dh-client-bookings-list {
    display: grid;
    gap: .9rem;
}

.dh-client-booking-card,
.dh-client-booking-history-card {
    border-color: #e1e7ef;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(25, 37, 60, .05);
}

.dh-client-booking-card {
    padding: 1.2rem;
}

.dh-client-booking-card__details {
    border-color: #e6ebf2;
    border-radius: 16px;
    background: #f8fafc;
    box-shadow: none;
}

.dh-client-booking-card .btn,
.dh-client-package-card__cta {
    min-height: 39px;
    padding-inline: .9rem;
    font-weight: 760;
    border-radius: 999px;
}

.dh-client-booking-card .form-control {
    min-height: 39px;
    border-color: #d9e1eb;
    border-radius: 11px;
    background: #fbfcfe;
}

.dh-client-booking-history-card {
    margin-bottom: .7rem;
    padding: 1rem 1.1rem;
}

.dh-client-booking-history-card:last-child {
    margin-bottom: 0;
}

.dh-client-packages-panel {
    scroll-margin-top: 1.25rem;
}

.dh-client-packages-panel__header {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 1rem;
    padding: 1.4rem 1.5rem;
    border-bottom: 1px solid #e9edf3;
    background:
        radial-gradient(circle at 94% 0, rgba(255, 191, 47, .14), transparent 29%),
        #fbfcfe;
}

.dh-client-packages-panel__icon {
    display: grid;
    width: 54px;
    height: 54px;
    place-items: center;
    color: #9a5b08;
    border: 1px solid #f2dba9;
    border-radius: 18px;
    background: #fff3d8;
}

.dh-client-packages-panel__glyph {
    width: 28px;
    height: 28px;
}

.dh-client-packages-panel__eyebrow {
    margin-bottom: .28rem;
    color: #ad6507;
}

.dh-client-packages-panel h2,
.dh-client-packages-panel p {
    margin: 0;
}

.dh-client-packages-panel h2 {
    color: #15213a;
    font-size: clamp(1.25rem, 2.4vw, 1.65rem);
    font-weight: 860;
    letter-spacing: -.025em;
}

.dh-client-packages-panel__header p {
    margin-top: .35rem;
    color: #687389;
    line-height: 1.55;
}

.dh-client-packages-list {
    display: grid;
    gap: 1rem;
    padding: 1rem;
}

.dh-client-package-card {
    display: grid;
    grid-template-columns: 90px minmax(0, 1fr) auto;
    align-items: center;
    gap: 1.1rem;
    overflow: hidden;
    padding: 1.15rem;
    border: 1px solid #e1e7ef;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(25, 37, 60, .05);
}

.dh-client-package-card.is-usable {
    border-color: #ead39e;
    background:
        radial-gradient(circle at 100% 0, rgba(255, 191, 47, .08), transparent 26%),
        #fff;
    box-shadow: 0 10px 28px rgba(157, 94, 9, .08);
}

.dh-client-package-card__balance {
    display: grid;
    width: 78px;
    height: 78px;
    place-content: center;
    text-align: center;
    color: #657186;
    border: 1px solid #dfe5ed;
    border-radius: 24px;
    background: #f5f7fa;
}

.dh-client-package-card.is-usable .dh-client-package-card__balance {
    color: #9c5a06;
    border-color: #f0d69d;
    background: #fff2d4;
}

.dh-client-package-card__balance span,
.dh-client-package-card__balance small {
    display: block;
}

.dh-client-package-card__balance span {
    font-size: 1.75rem;
    font-weight: 900;
    line-height: 1;
}

.dh-client-package-card__balance small {
    margin-top: .25rem;
    font-size: .72rem;
    font-weight: 720;
}

.dh-client-package-card__body {
    min-width: 0;
}

.dh-client-package-card__heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: .8rem;
}

.dh-client-package-card__ready {
    display: block;
    margin-bottom: .25rem;
    color: #08705b;
    font-size: .68rem;
    font-weight: 830;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.dh-client-package-card h3 {
    margin: 0;
    overflow-wrap: anywhere;
    color: #17243d;
    font-size: 1rem;
    font-weight: 850;
}

.dh-client-package-card__progress {
    margin-top: .75rem;
}

.dh-client-package-card__progress > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .7rem;
    margin-bottom: .35rem;
    color: #687388;
    font-size: .72rem;
}

.dh-client-package-card__progress strong {
    color: #354159;
    font-weight: 800;
}

.dh-client-package-card progress {
    display: block;
    width: 100%;
    height: 7px;
    overflow: hidden;
    border: 0;
    border-radius: 999px;
    background: #e8edf3;
    appearance: none;
}

.dh-client-package-card progress::-webkit-progress-bar {
    border-radius: 999px;
    background: #e8edf3;
}

.dh-client-package-card progress::-webkit-progress-value {
    border-radius: 999px;
    background: linear-gradient(90deg, #e99716, #ffc242);
}

.dh-client-package-card progress::-moz-progress-bar {
    border-radius: 999px;
    background: linear-gradient(90deg, #e99716, #ffc242);
}

.dh-client-package-card__facts {
    display: flex;
    flex-wrap: wrap;
    gap: .55rem 1.1rem;
    margin: .8rem 0 0;
}

.dh-client-package-card__facts div {
    min-width: 120px;
}

.dh-client-package-card__facts dt {
    color: #7b8597;
    font-size: .65rem;
    font-weight: 780;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.dh-client-package-card__facts dd {
    margin: .15rem 0 0;
    color: #334159;
    font-size: .8rem;
    font-weight: 690;
}

.dh-client-package-card__cta {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    color: #fff;
    border: 1px solid #17243e;
    background: #17243e;
    white-space: nowrap;
}

.dh-client-package-card__cta:hover,
.dh-client-package-card__cta:focus-visible {
    color: #17243e;
    border-color: #ffc13d;
    background: #ffc13d;
}

.dh-client-package-card__cta-glyph {
    width: 16px;
    height: 16px;
}

.dh-client-packages-empty {
    display: grid;
    justify-items: center;
    gap: .7rem;
    padding: clamp(2rem, 7vw, 4rem) 1.25rem;
    text-align: center;
}

.dh-client-packages-empty__glyph {
    width: 42px;
    height: 42px;
    color: #7c8799;
}

.dh-client-packages-empty p {
    margin: 0;
    color: #68748a;
}

@media (max-width: 1199.98px) {
    .dh-client-package-card {
        grid-template-columns: 80px minmax(0, 1fr);
    }

    .dh-client-package-card__cta {
        grid-column: 2;
        justify-self: start;
    }
}

@media (max-width: 991.98px) {
    .dh-client-bookings-calendar .fc .fc-toolbar {
        align-items: stretch;
        flex-direction: column;
        gap: .65rem;
    }
}

@media (max-width: 767.98px) {
    .dh-client-bookings-hero {
        grid-template-columns: 1fr;
        min-height: auto;
        padding: 1.45rem;
        border-radius: 24px;
    }

    .dh-client-bookings-hero__visual {
        display: none;
    }

    .dh-client-bookings-summary {
        grid-template-columns: 1fr;
    }

    .dh-client-bookings-section,
    .dh-client-packages-panel__header {
        padding: 1.1rem;
    }

    .dh-client-bookings-calendar {
        padding: .45rem;
    }

    .dh-client-booking-card .align-items-xl-end {
        align-items: stretch !important;
    }

    .dh-client-booking-card .justify-content-xl-end {
        justify-content: flex-start !important;
    }

    .dh-client-package-card {
        grid-template-columns: auto minmax(0, 1fr);
        padding: 1rem;
    }

    .dh-client-package-card__balance {
        width: 68px;
        height: 68px;
        border-radius: 20px;
    }

    .dh-client-package-card__balance span {
        font-size: 1.5rem;
    }

    .dh-client-package-card__cta {
        grid-column: 1 / -1;
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 575.98px) {
    .dh-client-bookings-hero__cta {
        width: 100%;
        justify-content: center;
    }

    .dh-client-bookings-calendar .fc .fc-toolbar-title {
        font-size: 1rem;
    }

    .dh-client-booking-card {
        padding: 1rem;
    }

    .dh-client-booking-card .d-flex.flex-wrap.gap-2,
    .dh-client-booking-card .d-flex.flex-wrap.gap-2 .btn,
    .dh-client-booking-card form,
    .dh-client-booking-card form .form-control {
        width: 100%;
    }

    .dh-client-booking-card .d-flex.flex-wrap.gap-2 .btn {
        justify-content: center;
    }

    .dh-client-packages-panel__header {
        grid-template-columns: 1fr;
    }

    .dh-client-package-card {
        grid-template-columns: 1fr;
    }

    .dh-client-package-card__balance {
        width: 100%;
        height: auto;
        padding: .8rem;
    }

    .dh-client-package-card__heading {
        flex-direction: column;
    }

    .dh-client-package-card__cta {
        grid-column: auto;
    }
}

/* Premium client profile, membership and communication preferences */
.dh-client-profile {
    display: grid;
    gap: 1.35rem;
}

.dh-client-profile-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 210px;
    align-items: center;
    min-height: 285px;
    padding: clamp(1.6rem, 4vw, 3rem);
    overflow: hidden;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 30px;
    background:
        radial-gradient(circle at 84% 18%, rgba(178, 144, 255, .25), transparent 31%),
        radial-gradient(circle at 5% 106%, rgba(74, 190, 157, .2), transparent 36%),
        linear-gradient(135deg, #101b34 0%, #19223f 54%, #2b2d52 100%);
    box-shadow: 0 24px 65px rgba(15, 27, 52, .18);
}

.dh-client-profile-hero::after {
    position: absolute;
    right: -70px;
    bottom: -112px;
    width: 290px;
    height: 290px;
    content: "";
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 50%;
}

.dh-client-profile-hero__content {
    position: relative;
    z-index: 1;
    max-width: 760px;
}

.dh-client-profile-hero__eyebrow,
.dh-client-profile-section-header__eyebrow,
.dh-client-profile-membership__eyebrow,
.dh-client-profile-status header > span,
.dh-client-profile-notifications__header > div > span {
    display: inline-block;
    margin-bottom: .65rem;
    font-size: .72rem;
    font-weight: 820;
    line-height: 1.2;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.dh-client-profile-hero__eyebrow {
    color: #ffd16c;
}

.dh-client-profile-hero h1 {
    max-width: 720px;
    margin: 0;
    font-size: clamp(2rem, 4vw, 3.45rem);
    font-weight: 860;
    line-height: 1.02;
    letter-spacing: -.045em;
}

.dh-client-profile-hero p {
    max-width: 680px;
    margin: 1rem 0 1.35rem;
    color: rgba(255, 255, 255, .76);
    font-size: clamp(1rem, 1.6vw, 1.13rem);
    line-height: 1.65;
}

.dh-client-profile-hero__back {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    min-height: 44px;
    padding: .68rem 1rem;
    color: #14213a;
    font-weight: 820;
    border: 1px solid rgba(255, 255, 255, .76);
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 9px 24px rgba(0, 0, 0, .14);
}

.dh-client-profile-hero__back:hover,
.dh-client-profile-hero__back:focus-visible {
    color: #14213a;
    border-color: #ffd16c;
    background: #ffd16c;
}

.dh-client-profile-hero__visual {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
}

.dh-client-profile-hero__visual > span {
    display: grid;
    width: 148px;
    height: 148px;
    place-items: center;
    color: #1c2344;
    border: 1px solid rgba(255, 255, 255, .65);
    border-radius: 42px;
    background: linear-gradient(145deg, #eee9ff, #bba7fa);
    box-shadow:
        0 28px 55px rgba(0, 0, 0, .22),
        inset 0 1px 0 rgba(255, 255, 255, .8);
    transform: rotate(4deg);
}

.dh-client-profile-hero__glyph {
    width: 72px;
    height: 72px;
    stroke-width: 1.45;
}

.dh-client-profile-form {
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(320px, .8fr);
    align-items: start;
    gap: 1.15rem;
}

.dh-client-profile-details,
.dh-client-profile-status,
.dh-client-profile-membership,
.dh-client-profile-notifications,
.dh-client-profile-contracts,
.dh-client-profile-save {
    overflow: hidden;
    border: 1px solid #e1e7ef;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 14px 38px rgba(22, 34, 57, .07);
}

.dh-client-profile-section-header {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: .9rem;
    padding: 1.35rem 1.4rem;
    border-bottom: 1px solid #e9edf3;
    background:
        radial-gradient(circle at 95% 0, rgba(177, 149, 246, .11), transparent 30%),
        #fbfcfe;
}

.dh-client-profile-section-header__icon {
    display: grid;
    width: 50px;
    height: 50px;
    place-items: center;
    color: #5f5192;
    border-radius: 17px;
    background: #eeeafb;
}

.dh-client-profile-section-header__glyph {
    width: 25px;
    height: 25px;
}

.dh-client-profile-section-header__eyebrow {
    margin-bottom: .25rem;
    color: #67559c;
}

.dh-client-profile-section-header h2,
.dh-client-profile-section-header p {
    margin: 0;
}

.dh-client-profile-section-header h2 {
    color: #15213a;
    font-size: clamp(1.2rem, 2.3vw, 1.55rem);
    font-weight: 850;
    letter-spacing: -.025em;
}

.dh-client-profile-section-header p {
    margin-top: .35rem;
    color: #687389;
    font-size: .88rem;
    line-height: 1.55;
}

.dh-client-profile-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    padding: 1.4rem;
}

.dh-client-profile-field.is-wide {
    grid-column: 1 / -1;
}

.dh-client-profile-field .form-label {
    margin-bottom: .38rem;
    color: #344158;
    font-size: .8rem;
    font-weight: 780;
}

.dh-client-profile-field .form-control {
    min-height: 47px;
    padding: .72rem .85rem;
    color: #1f2e47;
    border-color: #dce3ec;
    border-radius: 13px;
    background: #fbfcfe;
}

.dh-client-profile-field .form-control:hover {
    border-color: #c9d3df;
}

.dh-client-profile-field .form-control:focus {
    border-color: #7465aa;
    background: #fff;
    box-shadow: 0 0 0 .2rem rgba(107, 89, 159, .12);
}

.dh-client-profile-sidebar {
    display: grid;
    gap: 1rem;
}

.dh-client-profile-status {
    padding: 1.2rem;
}

.dh-client-profile-status header > span {
    margin-bottom: .28rem;
    color: #28715e;
}

.dh-client-profile-status h2 {
    margin: 0;
    color: #15213a;
    font-size: 1.12rem;
    font-weight: 850;
}

.dh-client-profile-status dl {
    display: grid;
    gap: .7rem;
    margin: 1rem 0 0;
}

.dh-client-profile-status dl > div {
    display: grid;
    grid-template-columns: minmax(90px, .75fr) minmax(0, 1.25fr);
    align-items: center;
    gap: .75rem;
    padding-top: .7rem;
    border-top: 1px solid #edf0f4;
}

.dh-client-profile-status dt {
    color: #7a8496;
    font-size: .72rem;
    font-weight: 730;
}

.dh-client-profile-status dd {
    margin: 0;
    overflow-wrap: anywhere;
    color: #334159;
    font-size: .82rem;
    font-weight: 720;
    text-align: right;
}

.dh-client-profile-membership {
    position: relative;
    padding: 1.25rem;
    color: #fff;
    border-color: #182542;
    background:
        radial-gradient(circle at 100% 0, rgba(255, 194, 56, .27), transparent 35%),
        linear-gradient(145deg, #17243e, #263757);
    box-shadow: 0 16px 38px rgba(17, 29, 53, .16);
}

.dh-client-profile-membership__icon {
    position: absolute;
    top: 1.15rem;
    right: 1.15rem;
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    color: #ffd36e;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 14px;
    background: rgba(255, 255, 255, .08);
}

.dh-client-profile-membership__glyph {
    width: 22px;
    height: 22px;
}

.dh-client-profile-membership__eyebrow {
    margin-bottom: .3rem;
    padding-right: 50px;
    color: #ffd36e;
}

.dh-client-profile-membership h2,
.dh-client-profile-membership strong,
.dh-client-profile-membership p,
.dh-client-profile-membership small {
    display: block;
    margin: 0;
}

.dh-client-profile-membership h2 {
    color: #fff;
    font-size: .9rem;
    font-weight: 720;
}

.dh-client-profile-membership > strong {
    margin-top: .7rem;
    font-size: clamp(1.3rem, 3vw, 1.7rem);
    font-weight: 880;
    letter-spacing: .04em;
}

.dh-client-profile-membership p,
.dh-client-profile-membership small {
    margin-top: .35rem;
    color: rgba(255, 255, 255, .68);
    font-size: .78rem;
}

.dh-client-profile-membership .btn {
    margin-top: 1rem;
    color: #15213a;
    font-size: .8rem;
    font-weight: 800;
    border-color: #fff;
    background: #fff;
}

.dh-client-profile-membership .btn:hover,
.dh-client-profile-membership .btn:focus-visible {
    border-color: #ffd36e;
    background: #ffd36e;
}

.dh-client-profile-notifications {
    padding: 1.2rem;
}

.dh-client-profile-notifications__header {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: .75rem;
}

.dh-client-profile-notifications__icon {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    color: #2f6594;
    border-radius: 14px;
    background: #e7f2fa;
}

.dh-client-profile-notifications__glyph {
    width: 21px;
    height: 21px;
}

.dh-client-profile-notifications__header > div > span {
    margin-bottom: .2rem;
    color: #2f6594;
}

.dh-client-profile-notifications h2,
.dh-client-profile-notifications p {
    margin: 0;
}

.dh-client-profile-notifications h2 {
    color: #17243d;
    font-size: 1rem;
    font-weight: 840;
}

.dh-client-profile-notifications > p {
    margin-top: .75rem;
    color: #687389;
    font-size: .82rem;
    line-height: 1.5;
}

.dh-client-profile-notifications__list {
    display: grid;
    gap: .55rem;
    margin-top: .9rem;
}

.dh-client-profile-notification {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
    gap: .65rem;
    padding: .72rem .8rem;
    color: #354259;
    border: 1px solid #e2e7ef;
    border-radius: 13px;
    background: #fafbfd;
    cursor: pointer;
    font-size: .8rem;
    font-weight: 660;
    line-height: 1.4;
}

.dh-client-profile-notification:hover {
    border-color: #cfd8e4;
    background: #f6f9fc;
}

.dh-client-profile-notification .form-check-input {
    margin: .08rem 0 0;
}

.dh-client-profile-contracts {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: .75rem;
    padding: 1rem;
    border-color: #d8e8e2;
    background: #f5fbf8;
}

.dh-client-profile-contracts__icon {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    color: #08715c;
    border-radius: 14px;
    background: #e1f5ee;
}

.dh-client-profile-contracts__glyph {
    width: 22px;
    height: 22px;
}

.dh-client-profile-contracts h2,
.dh-client-profile-contracts p {
    margin: 0;
}

.dh-client-profile-contracts h2 {
    color: #173f36;
    font-size: .9rem;
    font-weight: 840;
}

.dh-client-profile-contracts p {
    margin-top: .22rem;
    color: #5d766f;
    font-size: .76rem;
    line-height: 1.45;
}

.dh-client-profile-contracts .btn {
    grid-column: 1 / -1;
    justify-self: start;
    margin-left: 54px;
    font-size: .78rem;
    font-weight: 800;
}

.dh-client-profile-save {
    display: grid;
    gap: .75rem;
    padding: 1rem;
    background: #fbfcfe;
}

.dh-client-profile-save p {
    margin: 0;
    color: #687389;
    font-size: .78rem;
    line-height: 1.45;
}

.dh-client-profile-save .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    min-height: 46px;
    font-weight: 830;
    border-radius: 999px;
}

@media (max-width: 1199.98px) {
    .dh-client-profile-form {
        grid-template-columns: minmax(0, 1.35fr) minmax(300px, .8fr);
    }
}

@media (max-width: 991.98px) {
    .dh-client-profile-form {
        grid-template-columns: 1fr;
    }

    .dh-client-profile-sidebar {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: start;
    }

    .dh-client-profile-save {
        align-self: stretch;
    }
}

@media (max-width: 767.98px) {
    .dh-client-profile-hero {
        grid-template-columns: 1fr;
        min-height: auto;
        padding: 1.45rem;
        border-radius: 24px;
    }

    .dh-client-profile-hero__visual {
        display: none;
    }

    .dh-client-profile-fields {
        grid-template-columns: 1fr;
        padding: 1.1rem;
    }

    .dh-client-profile-field.is-wide {
        grid-column: auto;
    }

    .dh-client-profile-sidebar {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 575.98px) {
    .dh-client-profile-hero__back {
        width: 100%;
        justify-content: center;
    }

    .dh-client-profile-section-header {
        grid-template-columns: 1fr;
        padding: 1.1rem;
    }

    .dh-client-profile-contracts .btn {
        width: 100%;
        justify-content: center;
        margin-left: 0;
    }
}

/* Premium notification center shared by client and operational workspaces */
.dh-notification-page {
    display: grid;
    gap: 1.25rem;
}

.dh-notification-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 185px;
    align-items: center;
    min-height: 255px;
    padding: clamp(1.5rem, 3.5vw, 2.6rem);
    overflow: hidden;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 28px;
    background:
        radial-gradient(circle at 85% 18%, rgba(255, 198, 66, .25), transparent 31%),
        radial-gradient(circle at 4% 108%, rgba(92, 165, 224, .2), transparent 36%),
        linear-gradient(135deg, #101b34 0%, #172440 56%, #263957 100%);
    box-shadow: 0 22px 58px rgba(15, 27, 52, .17);
}

.dh-notification-hero::after {
    position: absolute;
    right: -65px;
    bottom: -108px;
    width: 270px;
    height: 270px;
    content: "";
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 50%;
}

.dh-notification-hero__content {
    position: relative;
    z-index: 1;
    max-width: 760px;
}

.dh-notification-hero__eyebrow {
    display: inline-block;
    margin-bottom: .65rem;
    color: #ffd16c;
    font-size: .72rem;
    font-weight: 820;
    line-height: 1.2;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.dh-notification-hero h1 {
    margin: 0;
    font-size: clamp(1.9rem, 3.6vw, 3.1rem);
    font-weight: 860;
    line-height: 1.04;
    letter-spacing: -.04em;
}

.dh-notification-hero p {
    max-width: 680px;
    margin: .9rem 0 1.2rem;
    color: rgba(255, 255, 255, .75);
    font-size: clamp(.96rem, 1.5vw, 1.08rem);
    line-height: 1.62;
}

.dh-notification-hero form {
    margin: 0;
}

.dh-notification-hero__action {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    min-height: 43px;
    padding: .65rem 1rem;
    color: #14213a;
    font-weight: 820;
    border: 1px solid #fff;
    border-radius: 999px;
    background: #fff;
}

.dh-notification-hero__action:hover,
.dh-notification-hero__action:focus-visible {
    color: #14213a;
    border-color: #ffd16c;
    background: #ffd16c;
}

.dh-notification-hero__visual {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
}

.dh-notification-hero__visual > span {
    display: grid;
    width: 130px;
    height: 130px;
    place-items: center;
    color: #17243e;
    border: 1px solid rgba(255, 255, 255, .62);
    border-radius: 38px;
    background: linear-gradient(145deg, #fff1bb, #ffc441);
    box-shadow:
        0 25px 50px rgba(0, 0, 0, .2),
        inset 0 1px 0 rgba(255, 255, 255, .8);
    transform: rotate(4deg);
}

.dh-notification-hero__glyph {
    width: 60px;
    height: 60px;
    stroke-width: 1.45;
}

.dh-notification-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .8rem;
}

.dh-notification-stat {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: .85rem;
    min-width: 0;
    padding: 1rem 1.1rem;
    border: 1px solid #e2e8f0;
    border-radius: 21px;
    background: rgba(255, 255, 255, .93);
    box-shadow: 0 11px 30px rgba(22, 34, 57, .065);
}

.dh-notification-stat__icon {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border-radius: 14px;
}

.dh-notification-stat__icon.is-unread {
    color: #a35d08;
    background: #fff0cf;
}

.dh-notification-stat__icon.is-history {
    color: #3c6d9a;
    background: #e7f1fa;
}

.dh-notification-stat__icon.is-status {
    color: #08725c;
    background: #e2f6ef;
}

.dh-notification-stat__glyph {
    width: 22px;
    height: 22px;
}

.dh-notification-stat strong,
.dh-notification-stat span,
.dh-notification-stat small {
    display: block;
}

.dh-notification-stat strong {
    overflow: hidden;
    color: #15213a;
    font-size: 1.25rem;
    font-weight: 860;
    line-height: 1.15;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dh-notification-stat span {
    margin-top: .2rem;
    color: #4f5c72;
    font-size: .78rem;
    font-weight: 750;
}

.dh-notification-stat small {
    margin-top: .12rem;
    color: #7a8496;
    font-size: .7rem;
    line-height: 1.35;
}

.dh-notification-panel {
    padding: 1rem;
    overflow: hidden;
    border: 1px solid #e1e7ef;
    border-radius: 26px;
    background: #fff;
    box-shadow: 0 16px 44px rgba(22, 34, 57, .075);
}

.dh-notification-panel .dh-notification-toolbar {
    padding: .25rem;
}

.dh-notification-panel .dh-notification-inbox {
    gap: .75rem;
}

.dh-notification-bulkbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .85rem;
    margin: 0 .25rem 1rem;
    padding: .75rem .85rem;
    border: 1px solid #e1e7ef;
    border-radius: 16px;
    background: #f8fafc;
}

.dh-notification-select-visible,
.dh-notification-bulkbar__actions {
    display: inline-flex;
    align-items: center;
    gap: .65rem;
    margin: 0;
}

.dh-notification-select-visible {
    color: #26334a;
    font-size: .86rem;
    font-weight: 780;
    cursor: pointer;
}

.dh-notification-selected-count {
    min-width: 7.5rem;
    color: #69758a;
    font-size: .8rem;
    font-weight: 760;
    text-align: right;
}

.dh-notification-bulkbar .btn {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    border-radius: 999px;
}

.dh-notification-inbox-select {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    margin: .15rem 0 0;
    cursor: pointer;
}

.dh-notification-inbox-select .form-check-input,
.dh-notification-select-visible .form-check-input {
    width: 1.05rem;
    height: 1.05rem;
    margin: 0;
    cursor: pointer;
}

.dh-notification-panel .dh-notification-inbox-item {
    grid-template-columns: 1.1rem .45rem minmax(0, 1fr);
    border-color: #e1e7ef;
    border-radius: 18px;
    background: #fbfcfe;
    box-shadow: 0 7px 20px rgba(25, 37, 60, .04);
}

.dh-notification-panel .dh-notification-inbox-item.is-unread {
    border-color: #ecd293;
    background:
        radial-gradient(circle at 100% 0, rgba(255, 195, 58, .08), transparent 28%),
        #fffdf7;
    box-shadow: 0 9px 24px rgba(159, 98, 14, .07);
}

.dh-notification-panel .dh-notification-inbox-title {
    color: #17243d;
    font-weight: 840;
}

.dh-notification-panel .dh-notification-inbox-body {
    color: #5e6a7e;
}

.dh-notification-panel .dh-notification-inbox-body a {
    overflow-wrap: anywhere;
}

.dh-notification-panel .dh-notification-inbox-item .btn {
    min-height: 38px;
    padding-inline: .85rem;
    font-weight: 760;
    border-radius: 999px;
}

.dh-notification-empty {
    padding: clamp(2.2rem, 7vw, 4rem) 1.25rem;
}

.dh-notification-empty__icon {
    display: grid;
    width: 56px;
    height: 56px;
    margin: 0 auto 1rem;
    place-items: center;
    color: #6d7890;
    border-radius: 18px;
    background: #eef2f7;
}

.dh-notification-empty__glyph {
    width: 28px;
    height: 28px;
}

@media (max-width: 991.98px) {
    .dh-notification-hero {
        grid-template-columns: minmax(0, 1fr) 150px;
    }

    .dh-notification-hero__visual > span {
        width: 112px;
        height: 112px;
    }

    .dh-notification-hero__glyph {
        width: 52px;
        height: 52px;
    }
}

@media (max-width: 767.98px) {
    .dh-notification-hero {
        grid-template-columns: 1fr;
        min-height: auto;
        padding: 1.4rem;
        border-radius: 23px;
    }

    .dh-notification-hero__visual {
        display: none;
    }

    .dh-notification-summary {
        grid-template-columns: 1fr;
    }

    .dh-notification-panel {
        padding: .8rem;
    }
}

@media (max-width: 575.98px) {
    .dh-notification-hero__action {
        width: 100%;
        justify-content: center;
    }

    .dh-notification-panel .dh-notification-search {
        flex-basis: 100%;
    }

    .dh-notification-panel .dh-notification-inbox-item {
        grid-template-columns: 1rem .3rem minmax(0, 1fr);
        border-radius: 15px;
    }

    .dh-notification-bulkbar {
        align-items: stretch;
        flex-direction: column;
    }

    .dh-notification-bulkbar__actions {
        align-items: stretch;
        flex-direction: column;
    }

    .dh-notification-selected-count {
        min-width: 0;
        text-align: left;
    }

    .dh-notification-bulkbar .btn {
        justify-content: center;
        width: 100%;
    }

    .dh-notification-panel .dh-notification-inbox-item .d-flex.flex-wrap.gap-2,
    .dh-notification-panel .dh-notification-inbox-item form,
    .dh-notification-panel .dh-notification-inbox-item .btn {
        width: 100%;
    }

    .dh-notification-panel .dh-notification-inbox-item .btn {
        justify-content: center;
    }
}

/* Premium client training journey and shared lesson record */
.dh-client-journey-page {
    display: grid;
    gap: 1.25rem;
}

.dh-client-journey-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 190px;
    gap: 1.2rem 2rem;
    align-items: center;
    min-height: 330px;
    padding: clamp(1.5rem, 3.5vw, 2.7rem);
    overflow: hidden;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 30px;
    background:
        radial-gradient(circle at 88% 15%, rgba(255, 202, 80, .26), transparent 30%),
        radial-gradient(circle at 6% 110%, rgba(83, 168, 216, .22), transparent 37%),
        linear-gradient(135deg, #101c34 0%, #172742 55%, #27445d 100%);
    box-shadow: 0 24px 62px rgba(15, 28, 52, .18);
}

.dh-client-journey-hero::after {
    position: absolute;
    right: -65px;
    bottom: -125px;
    width: 300px;
    height: 300px;
    content: "";
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 50%;
}

.dh-client-journey-hero__content,
.dh-client-journey-hero__visual,
.dh-client-journey-hero__progress {
    position: relative;
    z-index: 1;
}

.dh-client-journey-hero__content {
    max-width: 760px;
}

.dh-client-journey-hero__eyebrow {
    display: inline-block;
    margin-bottom: .7rem;
    color: #ffd36f;
    font-size: .72rem;
    font-weight: 830;
    line-height: 1.2;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.dh-client-journey-hero h1 {
    max-width: 760px;
    margin: 0;
    font-size: clamp(1.95rem, 3.7vw, 3.2rem);
    font-weight: 870;
    line-height: 1.03;
    letter-spacing: -.045em;
}

.dh-client-journey-hero__content > p {
    max-width: 700px;
    margin: .95rem 0 1.25rem;
    color: rgba(255, 255, 255, .75);
    font-size: clamp(.96rem, 1.5vw, 1.08rem);
    line-height: 1.62;
}

.dh-client-journey-hero__cta {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    min-height: 44px;
    padding: .67rem 1.05rem;
    color: #14213b;
    font-weight: 830;
    border: 1px solid #fff;
    border-radius: 999px;
    background: #fff;
}

.dh-client-journey-hero__cta:hover,
.dh-client-journey-hero__cta:focus-visible {
    color: #14213b;
    border-color: #ffd36f;
    background: #ffd36f;
}

.dh-client-journey-hero__visual {
    display: grid;
    place-items: center;
}

.dh-client-journey-hero__visual > span {
    display: grid;
    width: 138px;
    height: 138px;
    place-items: center;
    color: #17243e;
    border: 1px solid rgba(255, 255, 255, .58);
    border-radius: 42px;
    background: linear-gradient(145deg, #fff1bd, #ffc547);
    box-shadow:
        0 26px 50px rgba(0, 0, 0, .2),
        inset 0 1px 0 rgba(255, 255, 255, .78);
    transform: rotate(4deg);
}

.dh-client-journey-hero__glyph {
    width: 65px;
    height: 65px;
    stroke-width: 1.45;
}

.dh-client-journey-hero__progress {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: minmax(0, 1fr) minmax(180px, 34%) auto;
    align-items: center;
    gap: .8rem;
    padding: .9rem 1rem;
    border: 1px solid rgba(255, 255, 255, .13);
    border-radius: 18px;
    background: rgba(255, 255, 255, .07);
    backdrop-filter: blur(8px);
}

.dh-client-journey-hero__progress span,
.dh-client-journey-hero__progress strong {
    display: block;
}

.dh-client-journey-hero__progress span {
    color: rgba(255, 255, 255, .68);
    font-size: .7rem;
    font-weight: 760;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.dh-client-journey-hero__progress strong {
    margin-top: .18rem;
    font-size: .96rem;
    font-weight: 820;
}

.dh-client-journey-hero__progress progress {
    width: 100%;
    height: 9px;
    overflow: hidden;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, .16);
}

.dh-client-journey-hero__progress progress::-webkit-progress-bar {
    border-radius: 999px;
    background: rgba(255, 255, 255, .16);
}

.dh-client-journey-hero__progress progress::-webkit-progress-value {
    border-radius: 999px;
    background: linear-gradient(90deg, #ffc84c, #ffe29a);
}

.dh-client-journey-hero__progress progress::-moz-progress-bar {
    border-radius: 999px;
    background: linear-gradient(90deg, #ffc84c, #ffe29a);
}

.dh-client-journey-hero__progress small {
    color: rgba(255, 255, 255, .72);
    font-size: .73rem;
    white-space: nowrap;
}

.dh-client-journey-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: .75rem;
}

.dh-client-journey-stat {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: .78rem;
    min-width: 0;
    padding: 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 21px;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 11px 30px rgba(22, 34, 57, .06);
}

.dh-client-journey-stat__icon {
    display: grid;
    width: 43px;
    height: 43px;
    place-items: center;
    border-radius: 14px;
}

.dh-client-journey-stat__icon.is-purchased {
    color: #3f6c98;
    background: #e6f0fa;
}

.dh-client-journey-stat__icon.is-remaining {
    color: #8a5a08;
    background: #fff0ca;
}

.dh-client-journey-stat__icon.is-completed {
    color: #08715d;
    background: #e0f5ed;
}

.dh-client-journey-stat__icon.is-reports {
    color: #72539e;
    background: #f0eafa;
}

.dh-client-journey-stat__glyph {
    width: 21px;
    height: 21px;
}

.dh-client-journey-stat strong,
.dh-client-journey-stat span,
.dh-client-journey-stat small {
    display: block;
}

.dh-client-journey-stat strong {
    color: #16233c;
    font-size: 1.35rem;
    font-weight: 870;
    line-height: 1;
}

.dh-client-journey-stat span {
    margin-top: .25rem;
    color: #4b586f;
    font-size: .76rem;
    font-weight: 780;
}

.dh-client-journey-stat small {
    margin-top: .1rem;
    color: #81899a;
    font-size: .67rem;
    line-height: 1.3;
}

.dh-client-journey-focus,
.dh-client-journey-path,
.dh-client-journey-reports {
    padding: clamp(1.1rem, 2.4vw, 1.6rem);
    border: 1px solid #e0e7ef;
    border-radius: 26px;
    background: #fff;
    box-shadow: 0 16px 44px rgba(22, 34, 57, .07);
}

.dh-client-journey-section-head {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: .8rem;
    margin-bottom: 1rem;
}

.dh-client-journey-section-head__icon {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    color: #203453;
    border-radius: 15px;
    background: #edf2f7;
}

.dh-client-journey-section-head__glyph {
    width: 22px;
    height: 22px;
}

.dh-client-journey-section-head h2 {
    margin: 0;
    color: #17243c;
    font-size: 1.08rem;
    font-weight: 850;
    letter-spacing: -.02em;
}

.dh-client-journey-section-head p {
    margin: .2rem 0 0;
    color: #758095;
    font-size: .78rem;
    line-height: 1.45;
}

.dh-client-journey-section-head > small {
    color: #7c8698;
    font-size: .72rem;
    font-weight: 700;
    white-space: nowrap;
}

.dh-client-journey-focus {
    border-color: #ead8aa;
    background:
        radial-gradient(circle at 100% 0, rgba(255, 198, 63, .1), transparent 30%),
        #fffefa;
}

.dh-client-journey-focus .dh-client-journey-section-head__icon {
    color: #9b6207;
    background: #ffefc7;
}

.dh-client-journey-focus__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    gap: .8rem;
}

.dh-client-journey-focus-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: .85rem;
    padding: 1rem;
    border: 1px solid #e9e1cf;
    border-radius: 19px;
    background: rgba(255, 255, 255, .86);
}

.dh-client-journey-focus-card > span {
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    border-radius: 13px;
}

.dh-client-journey-focus-card.is-homework > span {
    color: #8d5d0d;
    background: #fff0cc;
}

.dh-client-journey-focus-card.is-next > span {
    color: #2f648e;
    background: #e5f0f8;
}

.dh-client-journey-focus-card__glyph {
    width: 20px;
    height: 20px;
}

.dh-client-journey-focus-card h3 {
    margin: 0 0 .45rem;
    color: #25334b;
    font-size: .8rem;
    font-weight: 830;
    letter-spacing: .03em;
    text-transform: uppercase;
}

.dh-client-journey-focus__empty,
.dh-client-journey-state {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 1rem;
}

.dh-client-journey-focus__empty {
    padding: 1rem;
    border: 1px dashed #dfd4bc;
    border-radius: 18px;
    background: rgba(255, 255, 255, .58);
}

.dh-client-journey-focus__empty > span,
.dh-client-journey-state > span {
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    color: #6c778a;
    border-radius: 16px;
    background: #edf1f6;
}

.dh-client-journey-focus__empty-glyph,
.dh-client-journey-state__glyph {
    width: 24px;
    height: 24px;
}

.dh-client-journey-focus__empty strong {
    color: #253149;
    font-size: .88rem;
}

.dh-client-journey-focus__empty p,
.dh-client-journey-state p {
    margin: .22rem 0 0;
    color: #747f91;
    font-size: .78rem;
    line-height: 1.5;
}

.dh-client-journey-state {
    padding: clamp(1.4rem, 3vw, 2rem);
    border: 1px dashed #ccd5e1;
    border-radius: 24px;
    background: #f8fafc;
}

.dh-client-journey-state h2 {
    margin: 0;
    color: #1e2c45;
    font-size: 1rem;
    font-weight: 830;
}

.dh-client-journey-workspace {
    display: grid;
    grid-template-columns: minmax(300px, .82fr) minmax(0, 1.35fr);
    gap: 1rem;
    align-items: start;
}

.dh-client-journey-workspace.is-single {
    grid-template-columns: minmax(0, 1fr);
}

.dh-client-journey-goal {
    margin-bottom: 1rem;
    padding: .85rem 1rem;
    color: #5e697d;
    font-size: .82rem;
    line-height: 1.55;
    border-left: 3px solid #ffc64b;
    border-radius: 0 13px 13px 0;
    background: #fff9e9;
}

.dh-client-journey-goal > :last-child,
.dh-client-journey-rich > :last-child {
    margin-bottom: 0;
}

.dh-client-journey-inline-empty {
    padding: 1.1rem;
    color: #778194;
    font-size: .8rem;
    text-align: center;
    border: 1px dashed #d4dbe5;
    border-radius: 17px;
    background: #f8fafc;
}

.dh-client-journey-steps {
    display: grid;
    gap: .65rem;
}

.dh-client-journey-step {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: .8rem;
    padding: .9rem;
    border: 1px solid #e2e7ee;
    border-radius: 18px;
    background: #fbfcfe;
}

.dh-client-journey-step.is-complete {
    border-color: #c8e8dc;
    background: #f4fbf8;
}

.dh-client-journey-step__marker {
    display: grid;
    width: 35px;
    height: 35px;
    place-items: center;
    color: #58677d;
    font-size: .74rem;
    font-weight: 850;
    border-radius: 12px;
    background: #e9eef4;
}

.dh-client-journey-step.is-complete .dh-client-journey-step__marker {
    color: #08715d;
    background: #dff3eb;
}

.dh-client-journey-step__glyph {
    width: 18px;
    height: 18px;
}

.dh-client-journey-step h3 {
    margin: .05rem 0 .35rem;
    color: #1d2b44;
    font-size: .88rem;
    font-weight: 820;
}

.dh-client-journey-step small {
    display: block;
    margin-top: .45rem;
    color: #788397;
    font-size: .69rem;
    font-weight: 700;
}

.dh-client-journey-rich {
    overflow-wrap: anywhere;
    color: #59667a;
    font-size: .82rem;
    line-height: 1.58;
}

.dh-client-journey-rich ul,
.dh-client-journey-rich ol {
    margin-bottom: .5rem;
    padding-left: 1.2rem;
}

.dh-client-journey-report-list {
    display: grid;
    gap: .85rem;
}

.dh-client-journey-report {
    position: relative;
    padding: 1rem;
    overflow: hidden;
    border: 1px solid #e1e7ef;
    border-radius: 19px;
    background: #fbfcfe;
}

.dh-client-journey-report:first-child {
    border-color: #e8cf93;
    background:
        radial-gradient(circle at 100% 0, rgba(255, 197, 62, .08), transparent 28%),
        #fffdf8;
}

.dh-client-journey-report > header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: .9rem;
    padding-bottom: .8rem;
    border-bottom: 1px solid #e6eaf0;
}

.dh-client-journey-report h3 {
    margin: .25rem 0 0;
    color: #1a2841;
    font-size: .96rem;
    font-weight: 840;
    letter-spacing: -.01em;
}

.dh-client-journey-report__meta {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem .65rem;
    color: #7b8495;
    font-size: .68rem;
    font-weight: 700;
}

.dh-client-journey-report__meta span + span::before {
    margin-right: .65rem;
    content: "•";
    color: #c5a14b;
}

.dh-client-journey-report__latest {
    flex: 0 0 auto;
    padding: .35rem .62rem;
    color: #8b5b08;
    font-size: .65rem;
    font-weight: 820;
    border-radius: 999px;
    background: #fff0c9;
}

.dh-client-journey-report__sections {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .65rem;
    margin-top: .8rem;
}

.dh-client-journey-report__sections > section {
    min-width: 0;
    padding: .8rem;
    border: 1px solid #e5e9ef;
    border-radius: 15px;
    background: #fff;
}

.dh-client-journey-report__sections > section.is-homework {
    border-color: #eadcb8;
    background: #fffaf0;
}

.dh-client-journey-report__sections > section.is-next {
    border-color: #cee0ed;
    background: #f4f9fc;
}

.dh-client-journey-report__sections h4 {
    margin: 0 0 .4rem;
    color: #68758a;
    font-size: .66rem;
    font-weight: 830;
    letter-spacing: .06em;
    text-transform: uppercase;
}

@media (max-width: 1199.98px) {
    .dh-client-journey-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dh-client-journey-workspace {
        grid-template-columns: minmax(280px, .72fr) minmax(0, 1fr);
    }
}

@media (max-width: 991.98px) {
    .dh-client-journey-hero {
        grid-template-columns: minmax(0, 1fr) 150px;
    }

    .dh-client-journey-hero__visual > span {
        width: 115px;
        height: 115px;
    }

    .dh-client-journey-hero__glyph {
        width: 54px;
        height: 54px;
    }

    .dh-client-journey-workspace {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767.98px) {
    .dh-client-journey-hero {
        grid-template-columns: 1fr;
        min-height: auto;
        padding: 1.4rem;
        border-radius: 24px;
    }

    .dh-client-journey-hero__visual {
        display: none;
    }

    .dh-client-journey-hero__progress {
        grid-template-columns: 1fr;
        gap: .55rem;
    }

    .dh-client-journey-hero__progress small {
        white-space: normal;
    }

    .dh-client-journey-section-head {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .dh-client-journey-section-head > small {
        grid-column: 2;
        white-space: normal;
    }

    .dh-client-journey-report__sections {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 575.98px) {
    .dh-client-journey-hero__cta {
        width: 100%;
        justify-content: center;
    }

    .dh-client-journey-stats {
        grid-template-columns: 1fr;
    }

    .dh-client-journey-focus,
    .dh-client-journey-path,
    .dh-client-journey-reports {
        border-radius: 21px;
    }

    .dh-client-journey-focus-card,
    .dh-client-journey-focus__empty,
    .dh-client-journey-state {
        grid-template-columns: 1fr;
    }

    .dh-client-journey-report > header {
        flex-direction: column;
    }
}

/* Premium client diary and private centre conversation */
.dh-client-diary-page {
    display: grid;
    gap: 1.25rem;
}

.dh-client-diary-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 185px;
    gap: 1.2rem 2rem;
    align-items: center;
    min-height: 310px;
    padding: clamp(1.5rem, 3.5vw, 2.7rem);
    overflow: hidden;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 30px;
    background:
        radial-gradient(circle at 87% 14%, rgba(255, 204, 85, .27), transparent 30%),
        radial-gradient(circle at 5% 110%, rgba(95, 181, 195, .23), transparent 38%),
        linear-gradient(135deg, #101c34 0%, #173046 56%, #28535c 100%);
    box-shadow: 0 24px 62px rgba(15, 28, 52, .18);
}

.dh-client-diary-hero::after {
    position: absolute;
    right: -72px;
    bottom: -130px;
    width: 310px;
    height: 310px;
    content: "";
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 50%;
}

.dh-client-diary-hero__content,
.dh-client-diary-hero__visual,
.dh-client-diary-hero__profile {
    position: relative;
    z-index: 1;
}

.dh-client-diary-hero__content {
    max-width: 760px;
}

.dh-client-diary-hero__eyebrow {
    display: inline-block;
    margin-bottom: .7rem;
    color: #ffd36f;
    font-size: .72rem;
    font-weight: 830;
    line-height: 1.2;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.dh-client-diary-hero h1 {
    margin: 0;
    font-size: clamp(1.95rem, 3.7vw, 3.2rem);
    font-weight: 870;
    line-height: 1.03;
    letter-spacing: -.045em;
}

.dh-client-diary-hero__content > p {
    max-width: 710px;
    margin: .95rem 0 1.25rem;
    color: rgba(255, 255, 255, .75);
    font-size: clamp(.96rem, 1.5vw, 1.08rem);
    line-height: 1.62;
}

.dh-client-diary-hero__cta {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    min-height: 44px;
    padding: .67rem 1.05rem;
    color: #14213b;
    font-weight: 830;
    border: 1px solid #fff;
    border-radius: 999px;
    background: #fff;
}

.dh-client-diary-hero__cta:hover,
.dh-client-diary-hero__cta:focus-visible {
    color: #14213b;
    border-color: #ffd36f;
    background: #ffd36f;
}

.dh-client-diary-hero__visual {
    display: grid;
    place-items: center;
}

.dh-client-diary-hero__visual > span {
    display: grid;
    width: 136px;
    height: 136px;
    place-items: center;
    color: #183047;
    border: 1px solid rgba(255, 255, 255, .58);
    border-radius: 42px;
    background: linear-gradient(145deg, #fff0ba, #ffc649);
    box-shadow:
        0 26px 50px rgba(0, 0, 0, .2),
        inset 0 1px 0 rgba(255, 255, 255, .78);
    transform: rotate(4deg);
}

.dh-client-diary-hero__glyph {
    width: 63px;
    height: 63px;
    stroke-width: 1.45;
}

.dh-client-diary-hero__profile {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: .2rem 1rem;
    padding: .85rem 1rem;
    border: 1px solid rgba(255, 255, 255, .13);
    border-radius: 18px;
    background: rgba(255, 255, 255, .07);
    backdrop-filter: blur(8px);
}

.dh-client-diary-hero__profile span,
.dh-client-diary-hero__profile strong,
.dh-client-diary-hero__profile small {
    display: block;
}

.dh-client-diary-hero__profile span {
    color: rgba(255, 255, 255, .64);
    font-size: .68rem;
    font-weight: 750;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.dh-client-diary-hero__profile strong {
    color: #fff;
    font-size: .95rem;
    font-weight: 820;
}

.dh-client-diary-hero__profile small {
    grid-column: 2;
    grid-row: 1 / span 2;
    color: rgba(255, 255, 255, .7);
    font-size: .7rem;
}

.dh-client-diary-switcher,
.dh-client-diary-contexts {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .9rem 1rem;
    border: 1px solid #e1e7ef;
    border-radius: 21px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(22, 34, 57, .055);
}

.dh-client-diary-switcher > div {
    display: flex;
    align-items: center;
    gap: .75rem;
    min-width: 0;
}

.dh-client-diary-switcher__icon {
    display: grid;
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
    place-items: center;
    color: #345f84;
    border-radius: 14px;
    background: #e8f1f8;
}

.dh-client-diary-switcher__glyph {
    width: 21px;
    height: 21px;
}

.dh-client-diary-switcher h2 {
    margin: 0;
    color: #1d2b43;
    font-size: .88rem;
    font-weight: 820;
}

.dh-client-diary-switcher p {
    margin: .16rem 0 0;
    color: #7d8798;
    font-size: .7rem;
}

.dh-client-diary-switcher nav,
.dh-client-diary-contexts > div {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: .45rem;
}

.dh-client-diary-switcher nav a,
.dh-client-diary-contexts a {
    display: inline-flex;
    align-items: center;
    gap: .42rem;
    min-height: 37px;
    padding: .5rem .75rem;
    color: #4f5c70;
    font-size: .72rem;
    font-weight: 760;
    text-decoration: none;
    border: 1px solid #dce3eb;
    border-radius: 999px;
    background: #fff;
}

.dh-client-diary-switcher nav a:hover,
.dh-client-diary-switcher nav a:focus-visible,
.dh-client-diary-contexts a:hover,
.dh-client-diary-contexts a:focus-visible,
.dh-client-diary-switcher nav a.is-active,
.dh-client-diary-contexts a.is-active {
    color: #fff;
    border-color: #17253f;
    background: #17253f;
}

.dh-client-diary-contexts > span {
    color: #667287;
    font-size: .7rem;
    font-weight: 790;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.dh-client-diary-contexts__glyph {
    width: 17px;
    height: 17px;
}

.dh-client-diary-locked,
.dh-client-diary-empty {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 1rem;
    padding: clamp(1.4rem, 3vw, 2rem);
    border: 1px dashed #ccd5e1;
    border-radius: 24px;
    background: #f8fafc;
}

.dh-client-diary-locked > span,
.dh-client-diary-empty > span {
    display: grid;
    width: 52px;
    height: 52px;
    place-items: center;
    color: #68758a;
    border-radius: 17px;
    background: #e9eef4;
}

.dh-client-diary-locked__glyph,
.dh-client-diary-empty__glyph {
    width: 26px;
    height: 26px;
}

.dh-client-diary-locked h2,
.dh-client-diary-empty strong {
    margin: 0;
    color: #1d2b44;
    font-size: .98rem;
    font-weight: 830;
}

.dh-client-diary-locked p,
.dh-client-diary-empty p {
    margin: .25rem 0 .75rem;
    color: #747f91;
    font-size: .8rem;
    line-height: 1.52;
}

.dh-client-diary-empty p {
    margin-bottom: 0;
}

.dh-client-diary-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .75rem;
}

.dh-client-diary-stat {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: .8rem;
    min-width: 0;
    padding: 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 21px;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 11px 30px rgba(22, 34, 57, .06);
}

.dh-client-diary-stat__icon {
    display: grid;
    width: 43px;
    height: 43px;
    place-items: center;
    border-radius: 14px;
}

.dh-client-diary-stat__icon.is-entries {
    color: #3e678f;
    background: #e7f0f8;
}

.dh-client-diary-stat__icon.is-centre {
    color: #0a715f;
    background: #e0f5ee;
}

.dh-client-diary-stat__icon.is-comments {
    color: #8b5e0d;
    background: #fff0ca;
}

.dh-client-diary-stat__glyph {
    width: 21px;
    height: 21px;
}

.dh-client-diary-stat strong,
.dh-client-diary-stat span,
.dh-client-diary-stat small {
    display: block;
}

.dh-client-diary-stat strong {
    color: #16233c;
    font-size: 1.35rem;
    font-weight: 870;
    line-height: 1;
}

.dh-client-diary-stat span {
    margin-top: .25rem;
    color: #4b586f;
    font-size: .76rem;
    font-weight: 780;
}

.dh-client-diary-stat small {
    margin-top: .1rem;
    color: #81899a;
    font-size: .67rem;
    line-height: 1.3;
}

.dh-client-diary-composer,
.dh-client-diary-timeline {
    padding: clamp(1.1rem, 2.4vw, 1.6rem);
    border: 1px solid #e0e7ef;
    border-radius: 26px;
    background: #fff;
    box-shadow: 0 16px 44px rgba(22, 34, 57, .07);
}

.dh-client-diary-composer.is-editing {
    border-color: #e7c56e;
    background:
        radial-gradient(circle at 100% 0, rgba(255, 197, 61, .08), transparent 30%),
        #fffefa;
}

.dh-client-diary-section-head {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: .8rem;
    margin-bottom: 1rem;
}

.dh-client-diary-section-head > span {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    color: #274865;
    border-radius: 15px;
    background: #e9f1f7;
}

.dh-client-diary-section-head__glyph {
    width: 22px;
    height: 22px;
}

.dh-client-diary-section-head h2 {
    margin: 0;
    color: #17243c;
    font-size: 1.08rem;
    font-weight: 850;
    letter-spacing: -.02em;
}

.dh-client-diary-section-head p {
    margin: .2rem 0 0;
    color: #758095;
    font-size: .78rem;
    line-height: 1.45;
}

.dh-client-diary-form-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .85rem;
}

.dh-client-diary-field {
    min-width: 0;
    padding: .85rem;
    border: 1px solid #e3e8ef;
    border-radius: 17px;
    background: #fbfcfe;
}

.dh-client-diary-field.is-wide {
    grid-column: span 2;
}

.dh-client-diary-field.is-full {
    grid-column: 1 / -1;
}

.dh-client-diary-field label,
.dh-client-diary-field legend {
    display: block;
    width: 100%;
    margin: 0 0 .45rem;
    color: #48556b;
    font-size: .72rem;
    font-weight: 780;
}

.dh-client-diary-field label small {
    color: #8a93a2;
    font-size: .67rem;
    font-weight: 620;
}

.dh-client-diary-field label > span {
    color: #b33f35;
}

.dh-client-diary-field > small {
    display: block;
    margin-top: .4rem;
    color: #87909f;
    font-size: .67rem;
}

.dh-client-diary-field .form-control,
.dh-client-diary-field .form-select {
    min-height: 44px;
    border-color: #dce3eb;
    border-radius: 12px;
    background-color: #fff;
}

.dh-client-diary-field textarea.form-control {
    min-height: 124px;
    resize: vertical;
}

.dh-client-diary-mood {
    margin: 0;
}

.dh-client-diary-mood > div {
    display: flex;
    flex-wrap: wrap;
    gap: .38rem;
}

.dh-mood-btn {
    display: grid;
    width: 43px;
    height: 43px;
    cursor: pointer;
    place-items: center;
    border: 1px solid #e1e6ed;
    border-radius: 13px;
    background: #fff;
    transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

.dh-mood-btn:hover,
.dh-mood-btn:focus-within,
.dh-mood-btn.active {
    border-color: #e6b74f;
    box-shadow: 0 0 0 3px rgba(242, 182, 50, .13);
    transform: translateY(-1px);
}

.dh-mood-emoji {
    display: block;
    font-size: 1.42rem;
    line-height: 1;
    transition: transform .15s ease;
}

.dh-mood-btn:hover .dh-mood-emoji,
.dh-mood-btn.active .dh-mood-emoji,
.dh-mood-btn input:checked + .dh-mood-emoji {
    transform: scale(1.15);
}

.dh-client-diary-composer__actions {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
    margin-top: 1rem;
}

.dh-client-diary-composer__actions .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    min-height: 43px;
    padding-inline: 1rem;
    font-weight: 790;
    border-radius: 999px;
}

.dh-client-diary-entry-list {
    display: grid;
    gap: .85rem;
}

.dh-client-diary-entry {
    position: relative;
    padding: clamp(1rem, 2.2vw, 1.3rem);
    overflow: hidden;
    border: 1px solid #e1e7ef;
    border-radius: 21px;
    background: #fbfcfe;
}

.dh-client-diary-entry.is-centre {
    border-color: #c9deeb;
    background:
        radial-gradient(circle at 100% 0, rgba(62, 137, 181, .08), transparent 28%),
        #f8fcfe;
}

.dh-client-diary-entry.is-pinned {
    border-color: #e8cf91;
    background:
        radial-gradient(circle at 100% 0, rgba(255, 197, 62, .09), transparent 28%),
        #fffdf8;
}

.dh-client-diary-entry > header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: .8rem;
}

.dh-client-diary-entry__badges {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
}

.dh-client-diary-entry__badges > span {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    min-height: 27px;
    padding: .28rem .55rem;
    color: #5f6b7d;
    font-size: .65rem;
    font-weight: 780;
    border-radius: 999px;
    background: #edf1f5;
}

.dh-client-diary-entry__badges > span.is-pinned {
    color: #885808;
    background: #ffefc3;
}

.dh-client-diary-entry__badges > span.is-centre {
    color: #22628a;
    background: #e1f0f8;
}

.dh-client-diary-entry__badges > span.is-category {
    color: #655090;
    background: #efeafa;
}

.dh-client-diary-entry__badges > span.is-mood {
    padding-inline: .48rem;
    font-size: .94rem;
    background: #fff;
}

.dh-client-diary-entry__badge-glyph {
    width: 14px;
    height: 14px;
}

.dh-client-diary-entry__meta {
    display: flex;
    flex: 0 0 auto;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: .35rem .6rem;
    color: #7b8596;
    font-size: .69rem;
    font-weight: 700;
}

.dh-client-diary-entry__meta span + span::before {
    margin-right: .6rem;
    content: "•";
    color: #c4a04c;
}

.dh-client-diary-entry > h3 {
    margin: .9rem 0 .4rem;
    color: #192740;
    font-size: 1rem;
    font-weight: 840;
    letter-spacing: -.01em;
}

.dh-client-diary-entry__body {
    margin-top: .75rem;
    color: #4f5d72;
    font-size: .86rem;
    line-height: 1.65;
    overflow-wrap: anywhere;
    white-space: pre-wrap;
}

.dh-client-diary-entry__actions {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-top: .9rem;
}

.dh-client-diary-entry__actions form {
    margin: 0;
}

.dh-client-diary-entry__actions .btn,
.dh-client-diary-reply .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    min-height: 37px;
    font-weight: 750;
    border-radius: 999px;
}

.dh-client-diary-comments {
    margin-top: 1rem;
    padding-top: .9rem;
    border-top: 1px solid #e2e7ed;
}

.dh-client-diary-comments > h4 {
    display: flex;
    align-items: center;
    gap: .4rem;
    margin: 0 0 .65rem;
    color: #59667b;
    font-size: .7rem;
    font-weight: 810;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.dh-client-diary-comments > h4 span {
    display: grid;
    min-width: 22px;
    height: 22px;
    padding-inline: .3rem;
    place-items: center;
    color: #4c5b70;
    font-size: .64rem;
    border-radius: 999px;
    background: #e9eef4;
}

.dh-client-diary-comments > div {
    display: grid;
    gap: .55rem;
}

.dh-client-diary-comment {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: .65rem;
    padding: .75rem;
    border: 1px solid #e3e8ee;
    border-radius: 16px;
    background: #fff;
}

.dh-client-diary-comment.is-staff {
    border-color: #cbe0ed;
    background: #f3f9fc;
}

.dh-client-diary-comment__avatar {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    color: #fff;
    font-size: .68rem;
    font-weight: 850;
    border-radius: 12px;
    background: #6c788b;
}

.dh-client-diary-comment.is-staff .dh-client-diary-comment__avatar {
    background: #347ca5;
}

.dh-client-diary-comment header {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: .25rem .5rem;
}

.dh-client-diary-comment header strong {
    color: #26344c;
    font-size: .75rem;
}

.dh-client-diary-comment header span {
    color: #39769a;
    font-size: .65rem;
    font-weight: 720;
}

.dh-client-diary-comment header time {
    margin-left: auto;
    color: #8790a0;
    font-size: .64rem;
}

.dh-client-diary-comment p {
    margin: .3rem 0 0;
    color: #566378;
    font-size: .77rem;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.dh-client-diary-reply {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: .55rem;
    align-items: start;
    margin-top: .85rem;
    padding-top: .85rem;
    border-top: 1px solid #e3e8ee;
}

.dh-client-diary-reply textarea {
    min-height: 39px;
    max-height: 140px;
    resize: vertical;
    border-color: #dce3eb;
    border-radius: 12px;
}

@media (max-width: 991.98px) {
    .dh-client-diary-hero {
        grid-template-columns: minmax(0, 1fr) 150px;
    }

    .dh-client-diary-hero__visual > span {
        width: 114px;
        height: 114px;
    }

    .dh-client-diary-hero__glyph {
        width: 53px;
        height: 53px;
    }

    .dh-client-diary-form-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dh-client-diary-field.is-wide {
        grid-column: span 1;
    }
}

@media (max-width: 767.98px) {
    .dh-client-diary-hero {
        grid-template-columns: 1fr;
        min-height: auto;
        padding: 1.4rem;
        border-radius: 24px;
    }

    .dh-client-diary-hero__visual {
        display: none;
    }

    .dh-client-diary-hero__profile {
        grid-template-columns: 1fr;
    }

    .dh-client-diary-hero__profile small {
        grid-column: 1;
        grid-row: auto;
        margin-top: .25rem;
    }

    .dh-client-diary-switcher,
    .dh-client-diary-contexts {
        align-items: stretch;
        flex-direction: column;
    }

    .dh-client-diary-switcher nav,
    .dh-client-diary-contexts > div {
        justify-content: flex-start;
    }

    .dh-client-diary-stats {
        grid-template-columns: 1fr;
    }

    .dh-client-diary-section-head {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .dh-client-diary-section-head > .btn {
        grid-column: 2;
        justify-self: start;
    }

    .dh-client-diary-form-grid {
        grid-template-columns: 1fr;
    }

    .dh-client-diary-field.is-wide,
    .dh-client-diary-field.is-full {
        grid-column: auto;
    }

    .dh-client-diary-entry > header {
        flex-direction: column;
    }

    .dh-client-diary-entry__meta {
        justify-content: flex-start;
    }
}

@media (max-width: 575.98px) {
    .dh-client-diary-hero__cta {
        width: 100%;
        justify-content: center;
    }

    .dh-client-diary-composer,
    .dh-client-diary-timeline {
        border-radius: 21px;
    }

    .dh-client-diary-locked,
    .dh-client-diary-empty {
        grid-template-columns: 1fr;
    }

    .dh-client-diary-switcher nav a,
    .dh-client-diary-contexts a,
    .dh-client-diary-composer__actions .btn,
    .dh-client-diary-entry__actions,
    .dh-client-diary-entry__actions form,
    .dh-client-diary-entry__actions .btn {
        width: 100%;
    }

    .dh-client-diary-reply {
        grid-template-columns: 1fr;
    }

    .dh-client-diary-reply .btn {
        width: 100%;
    }

    .dh-client-diary-comment header time {
        width: 100%;
        margin-left: 0;
    }
}

/* Premium client course catalogue and digital classroom */
.dh-client-courses,
.dh-client-course-detail {
    display: grid;
    gap: 1.25rem;
}

.dh-client-courses-hero,
.dh-client-course-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 190px;
    align-items: center;
    min-height: 285px;
    padding: clamp(1.5rem, 3.5vw, 2.7rem);
    overflow: hidden;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 30px;
    background:
        radial-gradient(circle at 87% 13%, rgba(255, 203, 78, .27), transparent 30%),
        radial-gradient(circle at 4% 110%, rgba(85, 164, 221, .22), transparent 38%),
        linear-gradient(135deg, #101b34 0%, #192947 55%, #2b4964 100%);
    box-shadow: 0 24px 62px rgba(15, 28, 52, .18);
}

.dh-client-courses-hero::after,
.dh-client-course-hero::after {
    position: absolute;
    right: -72px;
    bottom: -132px;
    width: 310px;
    height: 310px;
    content: "";
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 50%;
}

.dh-client-courses-hero__content,
.dh-client-courses-hero__visual,
.dh-client-course-hero__content,
.dh-client-course-hero__visual {
    position: relative;
    z-index: 1;
}

.dh-client-courses-hero__content,
.dh-client-course-hero__content {
    max-width: 800px;
}

.dh-client-courses-hero__eyebrow,
.dh-client-course-hero__eyebrow {
    display: inline-block;
    margin-bottom: .7rem;
    color: #ffd36f;
    font-size: .72rem;
    font-weight: 830;
    line-height: 1.2;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.dh-client-courses-hero h1,
.dh-client-course-hero h1 {
    margin: 0;
    font-size: clamp(1.95rem, 3.7vw, 3.2rem);
    font-weight: 870;
    line-height: 1.03;
    letter-spacing: -.045em;
}

.dh-client-courses-hero__content > p {
    max-width: 710px;
    margin: .95rem 0 1.25rem;
    color: rgba(255, 255, 255, .75);
    font-size: clamp(.96rem, 1.5vw, 1.08rem);
    line-height: 1.62;
}

.dh-client-courses-hero__cta,
.dh-client-course-hero__back,
.dh-client-course-hero__video {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    min-height: 44px;
    padding: .67rem 1.05rem;
    font-weight: 830;
    border-radius: 999px;
}

.dh-client-courses-hero__cta,
.dh-client-course-hero__back {
    color: #14213b;
    border: 1px solid #fff;
    background: #fff;
}

.dh-client-courses-hero__cta:hover,
.dh-client-courses-hero__cta:focus-visible,
.dh-client-course-hero__back:hover,
.dh-client-course-hero__back:focus-visible {
    color: #14213b;
    border-color: #ffd36f;
    background: #ffd36f;
}

.dh-client-course-hero__video {
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .35);
    background: rgba(255, 255, 255, .08);
}

.dh-client-course-hero__video:hover,
.dh-client-course-hero__video:focus-visible {
    color: #14213b;
    border-color: #ffd36f;
    background: #ffd36f;
}

.dh-client-courses-hero__visual,
.dh-client-course-hero__visual {
    display: grid;
    place-items: center;
}

.dh-client-courses-hero__visual > span,
.dh-client-course-hero__visual > span {
    display: grid;
    width: 138px;
    height: 138px;
    place-items: center;
    color: #17243e;
    border: 1px solid rgba(255, 255, 255, .58);
    border-radius: 42px;
    background: linear-gradient(145deg, #fff1bd, #ffc547);
    box-shadow:
        0 26px 50px rgba(0, 0, 0, .2),
        inset 0 1px 0 rgba(255, 255, 255, .78);
    transform: rotate(4deg);
}

.dh-client-courses-hero__glyph,
.dh-client-course-hero__glyph {
    width: 64px;
    height: 64px;
    stroke-width: 1.45;
}

.dh-client-courses-stats,
.dh-client-course-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .75rem;
}

.dh-client-courses-stat,
.dh-client-course-summary article {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: .8rem;
    min-width: 0;
    padding: 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 21px;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 11px 30px rgba(22, 34, 57, .06);
}

.dh-client-courses-stat__icon,
.dh-client-course-summary article > span {
    display: grid;
    width: 43px;
    height: 43px;
    place-items: center;
    border-radius: 14px;
}

.dh-client-courses-stat__icon.is-courses,
.dh-client-course-summary article:nth-child(1) > span {
    color: #3d6792;
    background: #e6f0f9;
}

.dh-client-courses-stat__icon.is-materials,
.dh-client-course-summary article:nth-child(2) > span {
    color: #72529c;
    background: #eee8f8;
}

.dh-client-courses-stat__icon.is-online,
.dh-client-course-summary article:nth-child(4) > span {
    color: #08715e;
    background: #e0f5ed;
}

.dh-client-course-summary article:nth-child(3) > span {
    color: #8b5c0a;
    background: #ffefc9;
}

.dh-client-courses-stat__glyph,
.dh-client-course-summary__glyph {
    width: 21px;
    height: 21px;
}

.dh-client-courses-stat strong,
.dh-client-courses-stat span,
.dh-client-courses-stat small,
.dh-client-course-summary strong,
.dh-client-course-summary small {
    display: block;
}

.dh-client-courses-stat strong,
.dh-client-course-summary strong {
    color: #16233c;
    font-size: 1.35rem;
    font-weight: 870;
    line-height: 1;
}

.dh-client-courses-stat span {
    margin-top: .25rem;
    color: #4b586f;
    font-size: .76rem;
    font-weight: 780;
}

.dh-client-courses-stat small,
.dh-client-course-summary small {
    margin-top: .15rem;
    color: #81899a;
    font-size: .67rem;
    line-height: 1.3;
}

.dh-client-courses-search {
    display: grid;
    grid-template-columns: minmax(0, .85fr) minmax(300px, 1.15fr);
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border: 1px solid #e0e6ee;
    border-radius: 23px;
    background: #fff;
    box-shadow: 0 12px 32px rgba(22, 34, 57, .06);
}

.dh-client-courses-search > div {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: .75rem;
}

.dh-client-courses-search > div > span {
    display: grid;
    width: 43px;
    height: 43px;
    place-items: center;
    color: #426b91;
    border-radius: 14px;
    background: #e8f1f8;
}

.dh-client-courses-search__glyph {
    width: 21px;
    height: 21px;
}

.dh-client-courses-search h2 {
    margin: 0;
    color: #1c2942;
    font-size: .9rem;
    font-weight: 830;
}

.dh-client-courses-search p {
    margin: .2rem 0 0;
    color: #7d8697;
    font-size: .72rem;
}

.dh-client-courses-search label {
    min-width: 0;
}

.dh-client-courses-search .form-control {
    min-height: 44px;
    border-color: #dce3eb;
    border-radius: 13px;
}

.dh-client-courses-search label > small {
    display: flex;
    justify-content: space-between;
    gap: .75rem;
    margin-top: .35rem;
    color: #858e9d;
    font-size: .66rem;
}

.dh-client-courses-notice {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: .75rem;
    padding: .9rem 1rem;
    color: #556478;
    border: 1px solid #d8e4ed;
    border-radius: 19px;
    background: #f4f9fc;
}

.dh-client-courses-notice > span {
    display: grid;
    width: 39px;
    height: 39px;
    place-items: center;
    color: #3c7197;
    border-radius: 13px;
    background: #e1eef7;
}

.dh-client-courses-notice__glyph {
    width: 20px;
    height: 20px;
}

.dh-client-courses-notice p {
    margin: 0;
    font-size: .76rem;
    line-height: 1.5;
}

.dh-client-courses-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .9rem;
}

.dh-client-course-card {
    display: flex;
    min-width: 0;
    flex-direction: column;
    padding: 1.15rem;
    border: 1px solid #e0e6ee;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 15px 40px rgba(22, 34, 57, .07);
}

.dh-client-course-card > header {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: .8rem;
}

.dh-client-course-card__mode {
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    color: #3b668e;
    border-radius: 16px;
    background: #e7f0f8;
}

.dh-client-course-card__mode.is-online,
.dh-client-course-card__mode.is-hybrid {
    color: #08715d;
    background: #dff4ec;
}

.dh-client-course-card__mode-glyph {
    width: 24px;
    height: 24px;
}

.dh-client-course-card__badges {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem;
}

.dh-client-course-card__badges span {
    display: inline-flex;
    min-height: 25px;
    align-items: center;
    padding: .25rem .52rem;
    color: #526073;
    font-size: .63rem;
    font-weight: 780;
    border-radius: 999px;
    background: #edf1f5;
}

.dh-client-course-card__badges .is-enrolled,
.dh-client-course-card__badges .is-completed {
    color: #08715d;
    background: #e0f5ed;
}

.dh-client-course-card__badges .is-waitlist {
    color: #8d5d08;
    background: #fff0cb;
}

.dh-client-course-card h2 {
    margin: .5rem 0 .35rem;
    color: #192740;
    font-size: 1.08rem;
    font-weight: 850;
    line-height: 1.25;
    letter-spacing: -.02em;
}

.dh-client-course-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem .7rem;
    color: #788294;
    font-size: .7rem;
    font-weight: 680;
}

.dh-client-course-card__meta span {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
}

.dh-client-course-card__meta-glyph {
    width: 15px;
    height: 15px;
}

.dh-client-course-card__facts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .45rem;
    margin-top: 1rem;
}

.dh-client-course-card__facts > div {
    min-width: 0;
    padding: .7rem;
    border: 1px solid #e7ebf0;
    border-radius: 14px;
    background: #f9fafc;
}

.dh-client-course-card__facts strong,
.dh-client-course-card__facts span {
    display: block;
}

.dh-client-course-card__facts strong {
    color: #1c2a43;
    font-size: 1rem;
    font-weight: 850;
}

.dh-client-course-card__facts span {
    margin-top: .16rem;
    color: #828b9a;
    font-size: .63rem;
    line-height: 1.3;
}

.dh-client-course-card__progress {
    margin-top: .85rem;
    padding: .8rem;
    border: 1px solid #e8e0cd;
    border-radius: 15px;
    background: #fffaf0;
}

.dh-client-course-card__progress > div {
    display: flex;
    justify-content: space-between;
    gap: .7rem;
    margin-bottom: .5rem;
}

.dh-client-course-card__progress span,
.dh-client-course-card__progress strong {
    color: #5d6572;
    font-size: .7rem;
    font-weight: 780;
}

.dh-client-course-card__progress progress,
.dh-client-course-progress progress {
    width: 100%;
    height: 9px;
    overflow: hidden;
    border: 0;
    border-radius: 999px;
    background: #e8e4db;
}

.dh-client-course-card__progress progress::-webkit-progress-bar,
.dh-client-course-progress progress::-webkit-progress-bar {
    border-radius: 999px;
    background: #e8e4db;
}

.dh-client-course-card__progress progress::-webkit-progress-value,
.dh-client-course-progress progress::-webkit-progress-value {
    border-radius: 999px;
    background: linear-gradient(90deg, #eaa914, #ffd76f);
}

.dh-client-course-card__progress progress::-moz-progress-bar,
.dh-client-course-progress progress::-moz-progress-bar {
    border-radius: 999px;
    background: linear-gradient(90deg, #eaa914, #ffd76f);
}

.dh-client-course-card__progress > small {
    display: block;
    margin-top: .35rem;
    color: #8b8490;
    font-size: .64rem;
}

.dh-client-course-card__next {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: .6rem;
    margin-top: .8rem;
    padding: .7rem .8rem;
    border: 1px solid #dbe5ed;
    border-radius: 15px;
    background: #f5f9fc;
}

.dh-client-course-card__next > span {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    color: #3e7398;
    border-radius: 11px;
    background: #e1eef7;
}

.dh-client-course-card__next-glyph {
    width: 17px;
    height: 17px;
}

.dh-client-course-card__next small,
.dh-client-course-card__next strong {
    display: block;
}

.dh-client-course-card__next small {
    color: #7a8595;
    font-size: .62rem;
    font-weight: 720;
}

.dh-client-course-card__next strong {
    margin-top: .15rem;
    color: #27364d;
    font-size: .75rem;
    font-weight: 800;
}

.dh-client-course-card > footer {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-top: auto;
    padding-top: 1rem;
}

.dh-client-course-card > footer .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    min-height: 40px;
    font-size: .72rem;
    font-weight: 780;
    border-radius: 999px;
}

.dh-client-course-card__primary {
    color: #14213a;
    border: 1px solid #ffc646;
    background: #ffc646;
}

.dh-client-course-card__primary:hover,
.dh-client-course-card__primary:focus-visible {
    color: #fff;
    border-color: #17243d;
    background: #17243d;
}

.dh-client-courses-empty {
    display: grid;
    justify-items: center;
    gap: .75rem;
    padding: clamp(2rem, 6vw, 3.5rem);
    color: #758093;
    text-align: center;
    border: 1px dashed #cfd7e2;
    border-radius: 23px;
    background: #f8fafc;
}

.dh-client-courses-empty > span {
    display: grid;
    width: 54px;
    height: 54px;
    place-items: center;
    color: #68758a;
    border-radius: 18px;
    background: #e9eef4;
}

.dh-client-courses-empty__glyph {
    width: 27px;
    height: 27px;
}

.dh-client-courses-empty p {
    max-width: 620px;
    margin: 0;
    font-size: .82rem;
    line-height: 1.5;
}

.dh-client-course-hero {
    min-height: 315px;
}

.dh-client-course-hero__badges {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
    margin-bottom: .65rem;
}

.dh-client-course-hero__badges span {
    display: inline-flex;
    min-height: 27px;
    align-items: center;
    padding: .3rem .58rem;
    color: #fff;
    font-size: .65rem;
    font-weight: 780;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 999px;
    background: rgba(255, 255, 255, .09);
}

.dh-client-course-hero__meta {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem .9rem;
    margin-top: .8rem;
    color: rgba(255, 255, 255, .72);
    font-size: .75rem;
    font-weight: 700;
}

.dh-client-course-hero__meta span {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
}

.dh-client-course-hero__meta-glyph {
    width: 16px;
    height: 16px;
}

.dh-client-course-prose {
    max-width: 780px;
    margin-top: 1rem;
    color: rgba(255, 255, 255, .76);
    font-size: .84rem;
    line-height: 1.62;
}

.dh-client-course-prose p {
    margin-bottom: .75rem;
}

.dh-client-course-prose p:last-child,
.dh-client-course-prose > :last-child {
    margin-bottom: 0;
}

.dh-client-course-prose ul,
.dh-client-course-prose ol {
    margin-bottom: .75rem;
    padding-left: 1.25rem;
}

.dh-client-course-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: .55rem;
    margin-top: 1.2rem;
}

.dh-client-course-summary {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.dh-client-course-summary article {
    grid-template-columns: auto minmax(0, 1fr);
}

.dh-client-course-summary strong {
    overflow: hidden;
    font-size: 1.08rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dh-client-course-progress {
    display: grid;
    grid-template-columns: minmax(0, .75fr) minmax(260px, 1.25fr);
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.1rem;
    border: 1px solid #e6d7b5;
    border-radius: 21px;
    background: #fffaf0;
    box-shadow: 0 11px 30px rgba(105, 76, 18, .055);
}

.dh-client-course-progress span,
.dh-client-course-progress strong,
.dh-client-course-progress small {
    display: block;
}

.dh-client-course-progress span {
    color: #7c683d;
    font-size: .67rem;
    font-weight: 780;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.dh-client-course-progress strong {
    margin-top: .2rem;
    color: #4b3b1c;
    font-size: 1rem;
    font-weight: 850;
}

.dh-client-course-progress small {
    margin-top: .15rem;
    color: #8d8069;
    font-size: .67rem;
}

.dh-client-course-detail [data-section-tab-scope] {
    display: grid;
    gap: 1rem;
}

.dh-client-course-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem;
    margin: 0;
    padding: .55rem;
    border: 1px solid #e0e6ed;
    border-radius: 19px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(22, 34, 57, .05);
}

.dh-client-course-tabs .nav-link {
    padding: .55rem .78rem;
    color: #5d697b;
    font-size: .72rem;
    font-weight: 770;
    border-radius: 999px;
}

.dh-client-course-tabs .nav-link:hover,
.dh-client-course-tabs .nav-link:focus-visible,
.dh-client-course-tabs .nav-link.is-current {
    color: #fff;
    background: #17253f;
}

.dh-client-course-detail .dh-course-focus-grid {
    gap: .75rem;
    margin: 0 !important;
}

.dh-client-course-detail .dh-course-focus-card {
    min-height: 130px;
    padding: 1rem;
    border: 1px solid #e1e7ef;
    border-radius: 19px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(22, 34, 57, .05);
}

.dh-client-course-detail .dh-course-focus-card.is-resume {
    border-color: #e8cf92;
    background: #fffaf0;
}

.dh-client-course-detail .dh-course-focus-card.is-next {
    border-color: #cfe0eb;
    background: #f5fafd;
}

.dh-client-course-detail .dh-course-focus-card strong {
    color: #1e2c45;
    font-size: .84rem;
    font-weight: 830;
}

.dh-client-course-detail .dh-course-focus-card span {
    color: #737e91;
    font-size: .74rem;
    line-height: 1.5;
}

.dh-client-course-detail [data-section-tab-row] {
    margin-top: 0;
}

.dh-client-course-detail .dh-course-outline,
.dh-client-course-detail #course-calendar,
.dh-client-course-detail #course-materials {
    border: 1px solid #e0e6ed;
    border-radius: 23px;
    background: #fff;
    box-shadow: 0 15px 40px rgba(22, 34, 57, .065);
}

.dh-client-course-detail .dh-course-outline .btn {
    overflow: hidden;
    justify-content: flex-start;
    text-align: left;
    text-overflow: ellipsis;
    border-color: #dce3eb;
    border-radius: 12px;
}

.dh-client-course-detail .dh-course-session-card {
    border-color: #e1e7ee;
    border-radius: 17px;
    background: #fafbfd;
}

.dh-client-course-detail .dh-course-session-card.is-upcoming {
    border-color: #e8cf93;
    background: #fffaf0;
}

.dh-client-course-detail .dh-course-session-card .btn,
.dh-client-course-detail .dh-course-material-card .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 37px;
    font-weight: 750;
    border-radius: 999px;
}

.dh-client-course-detail .dh-course-disclosure {
    overflow: hidden;
    border-color: #e1e7ee;
    border-radius: 19px;
    background: #fbfcfe;
}

.dh-client-course-detail .dh-course-disclosure-summary {
    padding: 1rem;
}

.dh-client-course-detail .dh-course-disclosure-body {
    padding: 0 1rem 1rem;
}

.dh-client-course-detail .dh-course-material-card {
    border-color: #e2e7ee;
    border-radius: 17px;
    background: #fff;
}

.dh-client-course-detail .dh-course-material-status {
    padding: .75rem;
    border-radius: 14px;
    background: #f5f8fb;
}

@media (max-width: 1199.98px) {
    .dh-client-courses-list {
        grid-template-columns: 1fr;
    }

    .dh-client-course-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 991.98px) {
    .dh-client-courses-hero,
    .dh-client-course-hero {
        grid-template-columns: minmax(0, 1fr) 150px;
    }

    .dh-client-courses-hero__visual > span,
    .dh-client-course-hero__visual > span {
        width: 114px;
        height: 114px;
    }

    .dh-client-courses-hero__glyph,
    .dh-client-course-hero__glyph {
        width: 53px;
        height: 53px;
    }

    .dh-client-courses-search {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767.98px) {
    .dh-client-courses-hero,
    .dh-client-course-hero {
        grid-template-columns: 1fr;
        min-height: auto;
        padding: 1.4rem;
        border-radius: 24px;
    }

    .dh-client-courses-hero__visual,
    .dh-client-course-hero__visual {
        display: none;
    }

    .dh-client-courses-stats,
    .dh-client-course-summary {
        grid-template-columns: 1fr;
    }

    .dh-client-course-progress {
        grid-template-columns: 1fr;
    }

    .dh-client-course-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .dh-client-course-tabs::-webkit-scrollbar {
        display: none;
    }

    .dh-client-course-tabs .nav-item {
        flex: 0 0 auto;
    }
}

@media (max-width: 575.98px) {
    .dh-client-courses-hero__cta,
    .dh-client-course-hero__back,
    .dh-client-course-hero__video {
        width: 100%;
    }

    .dh-client-courses-search label > small {
        flex-direction: column;
        gap: .2rem;
    }

    .dh-client-course-card__facts {
        grid-template-columns: 1fr;
    }

    .dh-client-course-card > footer,
    .dh-client-course-card > footer .btn {
        width: 100%;
    }

    .dh-client-course-detail .dh-course-material-status {
        align-items: stretch;
        flex-direction: column;
    }

    .dh-client-course-detail .dh-course-material-status form,
    .dh-client-course-detail .dh-course-material-status .btn {
        width: 100%;
    }
}

/* Premium client care and health records */
.dh-client-records {
    --dh-record-accent: #d99720;
    --dh-record-accent-soft: #fff2d8;
    --dh-record-deep: #3f2d17;
    display: grid;
    gap: 1.15rem;
}

.dh-client-records.is-vet {
    --dh-record-accent: #2d8a76;
    --dh-record-accent-soft: #e2f5ef;
    --dh-record-deep: #173f39;
}

.dh-client-records-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 190px;
    align-items: center;
    min-height: 290px;
    padding: clamp(1.5rem, 3.6vw, 2.75rem);
    overflow: hidden;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 30px;
    background:
        radial-gradient(circle at 88% 15%, rgba(255, 209, 105, .25), transparent 30%),
        radial-gradient(circle at 5% 110%, rgba(67, 137, 180, .2), transparent 38%),
        linear-gradient(135deg, #111c34 0%, #1c3048 58%, #355461 100%);
    box-shadow: 0 24px 62px rgba(15, 28, 52, .18);
}

.dh-client-records.is-vet .dh-client-records-hero {
    background:
        radial-gradient(circle at 88% 15%, rgba(126, 224, 195, .21), transparent 30%),
        radial-gradient(circle at 5% 110%, rgba(62, 145, 168, .22), transparent 38%),
        linear-gradient(135deg, #102030 0%, #183b45 58%, #28655c 100%);
}

.dh-client-records-hero::after {
    position: absolute;
    right: -78px;
    bottom: -135px;
    width: 320px;
    height: 320px;
    content: "";
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 50%;
}

.dh-client-records-hero__content,
.dh-client-records-hero__visual {
    position: relative;
    z-index: 1;
}

.dh-client-records-hero__content {
    max-width: 790px;
}

.dh-client-records-hero__eyebrow {
    display: inline-block;
    margin-bottom: .7rem;
    color: #ffd477;
    font-size: .72rem;
    font-weight: 830;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.dh-client-records.is-vet .dh-client-records-hero__eyebrow {
    color: #a5ead7;
}

.dh-client-records-hero h1 {
    margin: 0;
    font-size: clamp(1.95rem, 3.7vw, 3.2rem);
    font-weight: 870;
    line-height: 1.03;
    letter-spacing: -.045em;
}

.dh-client-records-hero__content > p {
    max-width: 720px;
    margin: .95rem 0 1.25rem;
    color: rgba(255, 255, 255, .76);
    font-size: clamp(.96rem, 1.5vw, 1.08rem);
    line-height: 1.62;
}

.dh-client-records-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: .55rem;
}

.dh-client-records-hero__actions .btn {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: .67rem 1.05rem;
    font-weight: 820;
    border-radius: 999px;
}

.dh-client-records-hero__primary {
    color: #17243d;
    border: 1px solid #ffd477;
    background: #ffd477;
}

.dh-client-records.is-vet .dh-client-records-hero__primary {
    border-color: #a5ead7;
    background: #a5ead7;
}

.dh-client-records-hero__primary:hover,
.dh-client-records-hero__primary:focus-visible {
    color: #17243d;
    border-color: #fff;
    background: #fff;
}

.dh-client-records-hero__secondary {
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .34);
    background: rgba(255, 255, 255, .08);
}

.dh-client-records-hero__secondary:hover,
.dh-client-records-hero__secondary:focus-visible {
    color: #17243d;
    border-color: #fff;
    background: #fff;
}

.dh-client-records-hero__visual {
    display: grid;
    place-items: center;
}

.dh-client-records-hero__visual > span {
    display: grid;
    width: 138px;
    height: 138px;
    place-items: center;
    color: var(--dh-record-deep);
    border: 1px solid rgba(255, 255, 255, .57);
    border-radius: 42px;
    background: linear-gradient(145deg, #fff4cf, #f7c65b);
    box-shadow:
        0 26px 50px rgba(0, 0, 0, .2),
        inset 0 1px 0 rgba(255, 255, 255, .8);
    transform: rotate(4deg);
}

.dh-client-records.is-vet .dh-client-records-hero__visual > span {
    background: linear-gradient(145deg, #ebfff9, #8bdcc5);
}

.dh-client-records-hero__glyph {
    width: 64px;
    height: 64px;
    stroke-width: 1.45;
}

.dh-client-records-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: .7rem;
}

.dh-client-records-metrics article {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: .75rem;
    min-width: 0;
    padding: .95rem;
    border: 1px solid #e1e7ee;
    border-radius: 20px;
    background: rgba(255, 255, 255, .95);
    box-shadow: 0 11px 30px rgba(22, 34, 57, .055);
}

.dh-client-records-metrics article > span {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 14px;
}

.dh-client-records-metrics .is-history {
    color: #496d94;
    background: #e6eff8;
}

.dh-client-records-metrics .is-dogs {
    color: #795d99;
    background: #eee9f7;
}

.dh-client-records-metrics .is-followups {
    color: #08715d;
    background: #e0f5ed;
}

.dh-client-records-metrics .is-overdue {
    color: #a05134;
    background: #fbe8e1;
}

.dh-client-records-metric__glyph {
    width: 20px;
    height: 20px;
}

.dh-client-records-metrics strong,
.dh-client-records-metrics b,
.dh-client-records-metrics small {
    display: block;
}

.dh-client-records-metrics strong {
    color: #192740;
    font-size: 1.3rem;
    font-weight: 870;
    line-height: 1;
}

.dh-client-records-metrics b {
    margin-top: .23rem;
    color: #526073;
    font-size: .72rem;
    font-weight: 790;
}

.dh-client-records-metrics small {
    margin-top: .12rem;
    color: #858d9b;
    font-size: .64rem;
    line-height: 1.3;
}

.dh-client-records-guidance {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: .8rem;
    padding: .95rem 1rem;
    border: 1px solid color-mix(in srgb, var(--dh-record-accent) 25%, #e3e8ee);
    border-radius: 20px;
    background: color-mix(in srgb, var(--dh-record-accent-soft) 72%, #fff);
}

.dh-client-records-guidance > span {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    color: var(--dh-record-deep);
    border-radius: 14px;
    background: rgba(255, 255, 255, .76);
}

.dh-client-records-guidance__glyph {
    width: 21px;
    height: 21px;
}

.dh-client-records-guidance strong {
    color: #26344a;
    font-size: .82rem;
    font-weight: 830;
}

.dh-client-records-guidance p {
    margin: .18rem 0 0;
    color: #687487;
    font-size: .72rem;
    line-height: 1.5;
}

.dh-client-records-search {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(300px, 1.1fr);
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border: 1px solid #e0e6ed;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 12px 32px rgba(22, 34, 57, .055);
}

.dh-client-records-search > div {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: .72rem;
}

.dh-client-records-search > div > span {
    display: grid;
    width: 41px;
    height: 41px;
    place-items: center;
    color: var(--dh-record-deep);
    border-radius: 13px;
    background: var(--dh-record-accent-soft);
}

.dh-client-records-search__glyph {
    width: 20px;
    height: 20px;
}

.dh-client-records-search h2 {
    margin: 0;
    color: #1c2942;
    font-size: .87rem;
    font-weight: 830;
}

.dh-client-records-search p {
    margin: .2rem 0 0;
    color: #7d8697;
    font-size: .69rem;
}

.dh-client-records-search .form-control {
    min-height: 43px;
    border-color: #dce3eb;
    border-radius: 13px;
}

.dh-client-records-search label > small {
    display: block;
    margin-top: .35rem;
    color: #858e9d;
    font-size: .66rem;
    text-align: right;
}

.dh-client-records-timeline {
    display: grid;
    gap: .85rem;
}

.dh-client-record-card {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    min-width: 0;
    overflow: hidden;
    border: 1px solid #dee5ed;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 15px 38px rgba(22, 34, 57, .065);
}

.dh-client-record-card__rail {
    display: grid;
    justify-items: center;
    padding-top: 1.15rem;
    background: linear-gradient(180deg, var(--dh-record-accent-soft), rgba(255, 255, 255, .85));
}

.dh-client-record-card__rail > span {
    display: grid;
    width: 39px;
    height: 39px;
    place-items: center;
    color: var(--dh-record-deep);
    border-radius: 13px;
    background: rgba(255, 255, 255, .8);
    box-shadow: 0 7px 18px rgba(30, 43, 62, .08);
}

.dh-client-record-card__rail-glyph {
    width: 20px;
    height: 20px;
}

.dh-client-record-card__body {
    min-width: 0;
    padding: 1.1rem;
}

.dh-client-record-card__body > header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.dh-client-record-card__shared {
    color: #87909f;
    font-size: .61rem;
    font-weight: 790;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.dh-client-record-card h2 {
    margin: .26rem 0 .4rem;
    color: #18263f;
    font-size: 1.08rem;
    font-weight: 850;
    line-height: 1.25;
    letter-spacing: -.02em;
}

.dh-client-record-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem .75rem;
    color: #768194;
    font-size: .69rem;
    font-weight: 680;
}

.dh-client-record-card__meta span {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
}

.dh-client-record-card__meta-glyph {
    width: 14px;
    height: 14px;
}

.dh-client-record-card__type {
    display: inline-flex;
    min-height: 27px;
    flex: 0 0 auto;
    align-items: center;
    padding: .3rem .58rem;
    color: var(--dh-record-deep);
    font-size: .64rem;
    font-weight: 790;
    border: 1px solid color-mix(in srgb, var(--dh-record-accent) 20%, #e2e7ed);
    border-radius: 999px;
    background: var(--dh-record-accent-soft);
}

.dh-client-record-card__content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: .65rem;
    margin-top: .9rem;
}

.dh-client-record-card__detail,
.dh-client-record-card__notes {
    min-width: 0;
    padding: .75rem;
    border: 1px solid #e5eaf0;
    border-radius: 15px;
    background: #fafbfd;
}

.dh-client-record-card__detail span,
.dh-client-record-card__detail strong {
    display: block;
}

.dh-client-record-card__detail span {
    color: #808a9a;
    font-size: .61rem;
    font-weight: 770;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.dh-client-record-card__detail strong {
    margin-top: .24rem;
    color: #37445a;
    font-size: .75rem;
    font-weight: 720;
    line-height: 1.5;
}

.dh-client-record-card__notes {
    grid-column: 1 / -1;
    color: #687488;
    font-size: .73rem;
    line-height: 1.55;
}

.dh-client-record-card__body > footer {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-top: .9rem;
    padding-top: .85rem;
    border-top: 1px solid #edf0f4;
}

.dh-client-record-card__operator {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: .55rem;
    min-width: 0;
}

.dh-client-record-card__operator > span {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    color: #617084;
    border-radius: 11px;
    background: #eef2f6;
}

.dh-client-record-card__operator-glyph {
    width: 17px;
    height: 17px;
}

.dh-client-record-card__operator small,
.dh-client-record-card__operator strong {
    display: block;
}

.dh-client-record-card__operator small {
    color: #8a929f;
    font-size: .6rem;
}

.dh-client-record-card__operator strong {
    margin-top: .12rem;
    overflow: hidden;
    color: #354257;
    font-size: .7rem;
    font-weight: 770;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dh-client-record-card__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: .5rem;
}

.dh-client-record-card__actions .btn {
    display: inline-flex;
    min-height: 37px;
    align-items: center;
    justify-content: center;
    gap: .38rem;
    font-size: .69rem;
    font-weight: 760;
    border-radius: 999px;
}

.dh-client-record-card__followup {
    min-width: 150px;
    padding: .55rem .7rem;
    border: 1px solid #cae2da;
    border-radius: 13px;
    background: #edf8f4;
}

.dh-client-record-card__followup.is-overdue {
    border-color: #ebc9bc;
    background: #fff0eb;
}

.dh-client-record-card__followup span,
.dh-client-record-card__followup strong {
    display: block;
}

.dh-client-record-card__followup span {
    color: #7b8895;
    font-size: .59rem;
    font-weight: 750;
    text-transform: uppercase;
}

.dh-client-record-card__followup strong {
    margin-top: .15rem;
    color: #245d50;
    font-size: .67rem;
    font-weight: 800;
}

.dh-client-record-card__followup.is-overdue strong {
    color: #98462d;
}

.dh-client-records-empty {
    display: grid;
    justify-items: center;
    gap: .65rem;
    padding: clamp(2rem, 6vw, 3.5rem);
    color: #758093;
    text-align: center;
    border: 1px dashed #ced7e2;
    border-radius: 23px;
    background: #f8fafc;
}

.dh-client-records-empty > span {
    display: grid;
    width: 54px;
    height: 54px;
    place-items: center;
    color: var(--dh-record-deep);
    border-radius: 18px;
    background: var(--dh-record-accent-soft);
}

.dh-client-records-empty__glyph {
    width: 27px;
    height: 27px;
}

.dh-client-records-empty strong {
    color: #354257;
    font-size: .86rem;
}

.dh-client-records-empty p {
    max-width: 620px;
    margin: 0;
    font-size: .72rem;
    line-height: 1.5;
}

@media (max-width: 1199.98px) {
    .dh-client-records-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 991.98px) {
    .dh-client-records-hero {
        grid-template-columns: minmax(0, 1fr) 150px;
    }

    .dh-client-records-hero__visual > span {
        width: 114px;
        height: 114px;
    }

    .dh-client-records-hero__glyph {
        width: 53px;
        height: 53px;
    }

    .dh-client-records-search {
        grid-template-columns: 1fr;
    }

    .dh-client-record-card__body > footer {
        align-items: stretch;
        flex-direction: column;
    }

    .dh-client-record-card__actions {
        justify-content: flex-start;
    }
}

@media (max-width: 767.98px) {
    .dh-client-records-hero {
        grid-template-columns: 1fr;
        min-height: auto;
        padding: 1.4rem;
        border-radius: 24px;
    }

    .dh-client-records-hero__visual {
        display: none;
    }

    .dh-client-records-metrics {
        grid-template-columns: 1fr;
    }

    .dh-client-record-card {
        grid-template-columns: 48px minmax(0, 1fr);
    }

    .dh-client-record-card__rail > span {
        width: 34px;
        height: 34px;
    }

    .dh-client-record-card__body > header {
        align-items: flex-start;
        flex-direction: column;
        gap: .65rem;
    }
}

@media (max-width: 575.98px) {
    .dh-client-records-hero__actions,
    .dh-client-records-hero__actions .btn,
    .dh-client-record-card__actions,
    .dh-client-record-card__actions .btn,
    .dh-client-record-card__followup {
        width: 100%;
    }

    .dh-client-records-guidance {
        align-items: flex-start;
    }

    .dh-client-record-card {
        grid-template-columns: 1fr;
    }

    .dh-client-record-card__rail {
        justify-items: start;
        padding: .75rem .9rem 0;
        background: transparent;
    }

    .dh-client-record-card__body {
        padding-top: .75rem;
    }

    .dh-client-record-card__content {
        grid-template-columns: 1fr;
    }

    .dh-client-record-card__actions {
        align-items: stretch;
        flex-direction: column;
    }
}

/* Premium unified Doggie owner cockpit */
.dh-control-center {
    display: grid;
    gap: 1.15rem;
}

.dh-control-center .dh-control-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(240px, 320px);
    align-items: center;
    min-height: 330px;
    padding: clamp(1.65rem, 4vw, 3rem);
    overflow: hidden;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 31px;
    background:
        radial-gradient(circle at 88% 15%, rgba(250, 199, 74, .25), transparent 30%),
        radial-gradient(circle at 4% 110%, rgba(56, 133, 191, .22), transparent 38%),
        linear-gradient(135deg, #0f1b31 0%, #1a2b48 56%, #2e5063 100%);
    box-shadow: 0 25px 66px rgba(15, 28, 52, .2);
}

.dh-control-center .dh-control-hero::after {
    position: absolute;
    right: -95px;
    bottom: -170px;
    width: 390px;
    height: 390px;
    content: "";
    border: 1px solid rgba(255, 255, 255, .09);
    border-radius: 50%;
}

.dh-control-hero__content,
.dh-control-hero__aside {
    position: relative;
    z-index: 1;
}

.dh-control-center .dh-control-hero .dh-page-kicker {
    margin-bottom: .7rem;
    color: #ffd471;
}

.dh-control-center .dh-control-hero .dh-page-title {
    margin: 0;
    color: #fff;
    font-size: clamp(2.05rem, 4.2vw, 3.55rem);
    font-weight: 880;
    line-height: 1;
    letter-spacing: -.05em;
}

.dh-control-center .dh-control-hero .dh-page-subtitle {
    max-width: 780px;
    margin: 1rem 0 0;
    color: rgba(255, 255, 255, .75);
    font-size: clamp(.98rem, 1.6vw, 1.1rem);
    line-height: 1.65;
}

.dh-control-hero__trust {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem;
    margin-top: 1.25rem;
}

.dh-control-hero__trust span {
    display: inline-flex;
    min-height: 31px;
    align-items: center;
    gap: .35rem;
    padding: .34rem .6rem;
    color: rgba(255, 255, 255, .8);
    font-size: .67rem;
    font-weight: 750;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 999px;
    background: rgba(255, 255, 255, .07);
}

.dh-control-hero__trust-glyph {
    width: 15px;
    height: 15px;
}

.dh-control-hero__aside {
    display: grid;
    justify-items: end;
    gap: .8rem;
}

.dh-control-hero__mark {
    display: grid;
    width: 118px;
    height: 118px;
    margin-right: 1rem;
    place-items: center;
    color: #18243c;
    border: 1px solid rgba(255, 255, 255, .55);
    border-radius: 36px;
    background: linear-gradient(145deg, #fff2bd, #ffc64e);
    box-shadow:
        0 24px 50px rgba(0, 0, 0, .2),
        inset 0 1px 0 rgba(255, 255, 255, .8);
    transform: rotate(4deg);
}

.dh-control-hero__mark-glyph {
    width: 57px;
    height: 57px;
    stroke-width: 1.45;
}

.dh-control-center .dh-identity-chip {
    width: 100%;
    min-width: 0;
    color: #fff;
    border-color: rgba(255, 255, 255, .19);
    background: rgba(255, 255, 255, .08);
    backdrop-filter: blur(12px);
}

.dh-control-center .dh-identity-chip__dot {
    background: #7be2bb;
    box-shadow: 0 0 0 .3rem rgba(123, 226, 187, .13);
}

.dh-control-center .dh-identity-chip small {
    overflow-wrap: anywhere;
    color: rgba(255, 255, 255, .65);
}

.dh-control-center .dh-control-security-note {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: .75rem;
    margin: 0;
    padding: .95rem 1rem;
    border: 1px solid #e5d29a;
    border-left: 1px solid #e5d29a;
    border-radius: 19px;
    background: #fffaf0;
    color: #4e4635;
}

.dh-control-security-note > span {
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    color: #795b0c;
    border-radius: 13px;
    background: #ffedb8;
}

.dh-control-security-note__glyph {
    width: 20px;
    height: 20px;
}

.dh-control-security-note p {
    margin: .12rem 0 0;
    color: #716750;
    font-size: .73rem;
    line-height: 1.48;
}

.dh-control-center .dh-readiness {
    margin: 0;
    padding: clamp(1.25rem, 2.8vw, 2rem);
    border-color: #e0e6ed;
    border-radius: 27px;
    box-shadow: 0 17px 44px rgba(22, 34, 57, .065);
}

.dh-control-center .dh-readiness__head h2 {
    color: #17253e;
    font-weight: 850;
    letter-spacing: -.025em;
}

.dh-control-center .dh-readiness__verdict {
    min-height: 39px;
    border: 1px solid transparent;
}

.dh-control-center .dh-readiness__verdict.is-ready {
    border-color: #b9dfd0;
    background: #e7f7f0;
}

.dh-control-center .dh-readiness__verdict.is-blocked {
    border-color: #ebc8c8;
    background: #fff0f0;
}

.dh-control-center .dh-readiness__progress {
    height: auto;
    margin: 1.2rem 0;
    overflow: visible;
    background: transparent;
}

.dh-control-center .dh-readiness__progress-bar {
    width: 100%;
    height: 11px;
    overflow: hidden;
    appearance: none;
    border: 0;
    border-radius: 999px;
    background: #e9edf1;
}

.dh-control-center .dh-readiness__progress-bar::-webkit-progress-bar {
    border-radius: 999px;
    background: #e9edf1;
}

.dh-control-center .dh-readiness__progress-bar::-webkit-progress-value {
    border-radius: 999px;
    background: linear-gradient(90deg, #dda514, #2d9472);
}

.dh-control-center .dh-readiness__progress-bar::-moz-progress-bar {
    border-radius: 999px;
    background: linear-gradient(90deg, #dda514, #2d9472);
}

.dh-control-center .dh-readiness__metrics {
    gap: .65rem;
}

.dh-control-center .dh-readiness__metrics > div {
    display: grid;
    grid-template-columns: auto auto minmax(0, 1fr);
    align-items: center;
    gap: .55rem;
    padding: .85rem;
    border: 1px solid #e4e9ef;
    border-radius: 17px;
    background: #fafbfd;
}

.dh-control-center .dh-readiness__metrics > div > span {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 11px;
}

.dh-control-center .dh-readiness__metrics .is-ready > span {
    color: #167053;
    background: #e2f5ed;
}

.dh-control-center .dh-readiness__metrics .is-attention > span {
    color: #85630a;
    background: #fff1c7;
}

.dh-control-center .dh-readiness__metrics .is-blocked > span {
    color: #9b3b3b;
    background: #fbe8e8;
}

.dh-control-center .dh-readiness__metrics .is-total > span {
    color: #496d94;
    background: #e5eff8;
}

.dh-readiness__metric-glyph {
    width: 17px;
    height: 17px;
}

.dh-control-center .dh-readiness__metrics strong {
    font-size: 1.25rem;
    font-weight: 870;
}

.dh-control-center .dh-readiness__metrics small {
    color: #6d7888;
    font-size: .68rem;
    font-weight: 720;
}

.dh-control-center .dh-readiness__grid {
    gap: .7rem;
}

.dh-control-center .dh-readiness-card {
    min-height: 14rem;
    padding: 1rem;
    border: 1px solid #e1e6ec;
    border-top: 1px solid #e1e6ec;
    border-radius: 19px;
    background: #fff;
    box-shadow: 0 10px 27px rgba(22, 34, 57, .045);
}

.dh-control-center .dh-readiness-card.is-ready {
    border-color: #c7e3d8;
    background: linear-gradient(180deg, #f6fcf9, #fff);
}

.dh-control-center .dh-readiness-card.is-attention {
    border-color: #ead89f;
    background: linear-gradient(180deg, #fffaf0, #fff);
}

.dh-control-center .dh-readiness-card.is-blocked {
    border-color: #ebcccc;
    background: linear-gradient(180deg, #fff7f7, #fff);
}

.dh-control-center .dh-readiness-card__icon {
    width: 36px;
    height: 36px;
    border-radius: 12px;
}

.dh-readiness-card__icon-glyph {
    width: 18px;
    height: 18px;
}

.dh-control-center .dh-readiness-card h3 {
    font-size: .94rem;
    font-weight: 830;
}

.dh-control-center .dh-readiness-card a {
    gap: .4rem;
    min-height: 34px;
    justify-content: space-between;
    padding: .45rem .6rem;
    border-radius: 10px;
    background: rgba(23, 35, 52, .045);
}

.dh-control-center .dh-readiness-card a:hover,
.dh-control-center .dh-readiness-card a:focus-visible {
    color: #17232c;
    background: rgba(23, 35, 52, .085);
}

.dh-readiness-card__link-glyph {
    width: 15px;
    height: 15px;
}

.dh-control-center .dh-readiness__signals {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: .5rem;
}

.dh-control-center .dh-readiness__signals > span {
    display: grid;
    gap: .15rem;
    min-width: 0;
    padding: .55rem .65rem;
    border: 1px solid #e6eaee;
    border-radius: 13px;
    background: #f8fafb;
}

.dh-control-center .dh-readiness__signals small,
.dh-control-center .dh-readiness__signals strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dh-control-center .dh-readiness__signals small {
    color: #89919e;
    font-size: .58rem;
    font-weight: 720;
    text-transform: uppercase;
}

.dh-control-center .dh-readiness__signals strong {
    color: #465267;
    font-size: .66rem;
    font-weight: 790;
}

.dh-control-services {
    display: grid;
    gap: .9rem;
}

.dh-control-services__head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.5rem;
    padding: .25rem .25rem 0;
}

.dh-control-services__head h2 {
    margin: .2rem 0 0;
    color: #17253e;
    font-size: clamp(1.35rem, 2.4vw, 1.8rem);
    font-weight: 850;
    letter-spacing: -.03em;
}

.dh-control-services__head > p {
    max-width: 560px;
    margin: 0;
    color: #6e7887;
    font-size: .75rem;
    line-height: 1.5;
    text-align: right;
}

.dh-control-center .dh-control-grid {
    gap: .8rem;
}

.dh-control-center .dh-ai-cost-monitor {
    margin-top: 28px;
    padding: clamp(22px, 3vw, 34px);
    border: 1px solid rgba(20, 42, 74, .10);
    border-radius: 28px;
    background: linear-gradient(145deg, #fff 0%, #f7faff 58%, #fff8dc 100%);
    box-shadow: 0 20px 48px rgba(14, 35, 64, .08);
}

.dh-control-center .dh-ai-cost-monitor__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 22px;
}

.dh-control-center .dh-ai-cost-monitor__head p {
    max-width: 820px;
    color: #5b6678;
}

.dh-control-center .dh-ai-cost-monitor__freshness {
    display: grid;
    justify-items: end;
    gap: 7px;
    color: #667085;
    font-size: .72rem;
    text-align: right;
}

.dh-control-center .dh-ai-cost-monitor__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 22px;
}

.dh-control-center .dh-ai-cost-card {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 18px;
    padding: 20px;
    border: 1px solid rgba(20, 42, 74, .10);
    border-radius: 22px;
    background: rgba(255, 255, 255, .9);
}

.dh-control-center .dh-ai-cost-card__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.dh-control-center .dh-ai-cost-card__top > div > span {
    color: #667085;
    font-size: .74rem;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.dh-control-center .dh-ai-cost-card__top h3 {
    margin: 5px 0 0;
    font-size: 1.12rem;
}

.dh-control-center .dh-ai-cost-card__amount {
    display: grid;
    gap: 3px;
}

.dh-control-center .dh-ai-cost-card__amount small,
.dh-control-center .dh-ai-cost-card__amount span {
    color: #667085;
}

.dh-control-center .dh-ai-cost-card__amount strong {
    color: #142a4a;
    font-size: clamp(1.65rem, 3vw, 2.35rem);
    line-height: 1.05;
}

.dh-control-center .dh-ai-cost-card__metrics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 0;
}

.dh-control-center .dh-ai-cost-card__metrics > div {
    padding: 10px 12px;
    border-radius: 14px;
    background: #f6f8fb;
}

.dh-control-center .dh-ai-cost-card__metrics dt {
    color: #667085;
    font-size: .72rem;
}

.dh-control-center .dh-ai-cost-card__metrics dd {
    margin: 2px 0 0;
    color: #142a4a;
    font-size: .9rem;
    font-weight: 800;
}

.dh-control-center .dh-ai-cost-card__budget {
    display: flex;
    align-items: center;
    gap: 9px;
}

.dh-control-center .dh-ai-cost-card__budget small {
    color: #667085;
    line-height: 1.35;
}

.dh-control-center .dh-ai-cost-card__warning {
    margin: -4px 0 0;
    color: #9a6700;
    font-size: .78rem;
    font-weight: 700;
}

.dh-control-center .dh-ai-cost-card__details {
    border-top: 1px solid rgba(20, 42, 74, .08);
    padding-top: 12px;
}

.dh-control-center .dh-ai-cost-card__details summary {
    cursor: pointer;
    color: #142a4a;
    font-size: .82rem;
    font-weight: 800;
}

.dh-control-center .dh-ai-cost-card__details ul {
    display: grid;
    gap: 7px;
    margin: 10px 0 0;
    padding: 0;
    list-style: none;
}

.dh-control-center .dh-ai-cost-card__details li {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    color: #667085;
    font-size: .72rem;
}

.dh-control-center .dh-ai-cost-card__details strong {
    color: #142a4a;
}

.dh-control-center .dh-ai-cost-monitor__note {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 18px;
    padding: 13px 15px;
    border-radius: 16px;
    background: rgba(20, 42, 74, .06);
    color: #536075;
}

.dh-control-center .dh-ai-cost-monitor__note p {
    margin: 0;
    font-size: .82rem;
}

.dh-ai-cost-monitor__note-glyph {
    width: 20px;
    height: 20px;
    flex: 0 0 auto;
    color: #16785b;
}

.dh-control-center .dh-control-card {
    min-height: 23rem;
    gap: 1rem;
    padding: 1.2rem;
    border-color: #dee5ec;
    border-radius: 23px;
    box-shadow: 0 15px 40px rgba(22, 34, 57, .06);
}

.dh-control-center .dh-control-card--primary {
    border-color: #e5ce90;
    background: linear-gradient(150deg, #fffdf8 0%, #fff7df 100%);
}

.dh-control-center .dh-control-card.is-ai {
    border-color: #d7cfeb;
    background: linear-gradient(150deg, #fff 0%, #f5f1fc 100%);
}

.dh-control-center .dh-control-card.is-phone {
    border-color: #c9dce9;
    background: linear-gradient(150deg, #fff 0%, #eef7fb 100%);
}

.dh-control-center .dh-control-card__icon {
    display: grid;
    width: 46px;
    height: 46px;
    place-items: center;
    border-radius: 15px;
    background: #17253e;
}

.dh-control-card__icon-glyph {
    width: 23px;
    height: 23px;
}

.dh-control-center .dh-control-card--primary .dh-control-card__icon {
    color: #4b3815;
    background: #ffd56e;
}

.dh-control-center .dh-control-card.is-ai .dh-control-card__icon {
    color: #604687;
    background: #e9def7;
}

.dh-control-center .dh-control-card.is-phone .dh-control-card__icon {
    color: #356a8d;
    background: #ddecf5;
}

.dh-control-center .dh-control-card__eyebrow {
    color: #8a6b18;
    font-size: .66rem;
}

.dh-control-center .dh-control-card h2 {
    color: #17253e;
    font-size: 1.3rem;
    font-weight: 850;
    letter-spacing: -.025em;
}

.dh-control-center .dh-control-card p {
    font-size: .78rem;
    line-height: 1.55;
}

.dh-control-center .dh-control-card__meta {
    margin-top: auto;
    padding: .8rem;
    border: 1px solid rgba(22, 34, 57, .07);
    border-radius: 14px;
    background: rgba(255, 255, 255, .68);
    font-size: .7rem;
}

.dh-control-center .dh-control-card form.mt-auto,
.dh-control-center .dh-control-card > .mt-auto {
    margin-top: 0 !important;
}

.dh-control-center .dh-control-card .btn {
    min-height: 41px;
    font-size: .72rem;
    font-weight: 790;
    border-radius: 999px;
}

.dh-control-center .dh-control-roadmap {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 1rem;
    margin: 0;
    padding: 1.25rem;
    border-radius: 23px;
    background:
        radial-gradient(circle at 90% 0%, rgba(255, 202, 77, .14), transparent 35%),
        #17253e;
}

.dh-control-roadmap__icon {
    display: grid;
    width: 46px;
    height: 46px;
    place-items: center;
    color: #ffd269;
    border: 1px solid rgba(255, 255, 255, .13);
    border-radius: 15px;
    background: rgba(255, 255, 255, .07);
}

.dh-control-roadmap__glyph {
    width: 23px;
    height: 23px;
}

.dh-control-center .dh-control-roadmap .dh-page-kicker {
    color: #ffd269;
}

@media (max-width: 1199.98px) {
    .dh-control-center .dh-readiness__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dh-control-center .dh-readiness__signals {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .dh-control-center .dh-ai-cost-monitor__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 899.98px) {
    .dh-control-center .dh-control-hero {
        grid-template-columns: minmax(0, 1fr) 230px;
    }

    .dh-control-hero__mark {
        width: 96px;
        height: 96px;
        margin-right: 0;
    }

    .dh-control-hero__mark-glyph {
        width: 46px;
        height: 46px;
    }

    .dh-control-services__head {
        align-items: flex-start;
        flex-direction: column;
        gap: .45rem;
    }

    .dh-control-services__head > p {
        text-align: left;
    }

    .dh-control-center .dh-ai-cost-monitor__head {
        align-items: flex-start;
        flex-direction: column;
    }

    .dh-control-center .dh-ai-cost-monitor__freshness {
        justify-items: start;
        text-align: left;
    }
}

@media (max-width: 767.98px) {
    .dh-control-center .dh-ai-cost-monitor__grid {
        grid-template-columns: 1fr;
    }

    .dh-control-center .dh-control-hero {
        grid-template-columns: 1fr;
        min-height: auto;
        padding: 1.4rem;
        border-radius: 24px;
    }

    .dh-control-hero__aside {
        justify-items: stretch;
    }

    .dh-control-hero__mark {
        display: none;
    }

    .dh-control-center .dh-readiness__head {
        align-items: flex-start;
    }

    .dh-control-center .dh-readiness__metrics,
    .dh-control-center .dh-readiness__signals {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dh-control-center .dh-control-roadmap {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .dh-control-center .dh-control-roadmap > .dh-status-pill {
        grid-column: 1 / -1;
    }
}

@media (max-width: 575.98px) {
    .dh-control-hero__trust {
        display: grid;
        grid-template-columns: 1fr;
    }

    .dh-control-center .dh-readiness__metrics,
    .dh-control-center .dh-readiness__grid,
    .dh-control-center .dh-readiness__signals {
        grid-template-columns: 1fr;
    }

    .dh-control-center .dh-readiness-card {
        min-height: 0;
    }

    .dh-control-center .dh-control-roadmap {
        grid-template-columns: 1fr;
    }
}

/* Premium tenant calendar workspace */
.dh-calendar-workspace {
    display: grid;
    gap: 1rem;
}

.dh-calendar-workspace .dh-calendar-hero {
    position: relative;
    min-height: 245px;
    margin: 0 !important;
    padding: clamp(1.45rem, 3.2vw, 2.35rem);
    overflow: hidden;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .13);
    border-radius: 28px;
    background:
        radial-gradient(circle at 88% 12%, rgba(var(--dh-workspace-accent-rgb, 214, 165, 21), .27), transparent 31%),
        radial-gradient(circle at 3% 110%, rgba(66, 139, 187, .2), transparent 38%),
        linear-gradient(135deg, #101c33 0%, #1a2c49 58%, #31536a 100%);
    box-shadow: 0 23px 60px rgba(15, 28, 52, .18);
}

.dh-calendar-workspace .dh-calendar-hero::after {
    position: absolute;
    right: -85px;
    bottom: -145px;
    width: 330px;
    height: 330px;
    content: "";
    border: 1px solid rgba(255, 255, 255, .09);
    border-radius: 50%;
}

.dh-calendar-workspace .dh-calendar-hero .dh-context-hero__content,
.dh-calendar-workspace .dh-calendar-hero .dh-context-hero__actions {
    position: relative;
    z-index: 1;
}

.dh-calendar-workspace .dh-calendar-hero .dh-context-hero__eyebrow {
    color: #ffd36f;
}

.dh-calendar-workspace .dh-calendar-hero .dh-context-hero__title {
    color: #fff;
    font-size: clamp(1.9rem, 3.5vw, 3rem);
    font-weight: 870;
    letter-spacing: -.045em;
}

.dh-calendar-workspace .dh-calendar-hero .dh-context-hero__copy {
    max-width: 760px;
    color: rgba(255, 255, 255, .74);
    font-size: clamp(.94rem, 1.45vw, 1.05rem);
    line-height: 1.62;
}

.dh-calendar-workspace .dh-calendar-hero .btn {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    font-size: .72rem;
    font-weight: 790;
    border-radius: 999px;
}

.dh-calendar-workspace .dh-calendar-hero .btn-outline-dark {
    color: #fff;
    border-color: rgba(255, 255, 255, .34);
    background: rgba(255, 255, 255, .07);
}

.dh-calendar-workspace .dh-calendar-hero .btn-outline-dark:hover,
.dh-calendar-workspace .dh-calendar-hero .btn-outline-dark:focus-visible {
    color: #17243d;
    border-color: #fff;
    background: #fff;
}

.dh-calendar-workspace .dh-calendar-hero .dh-primary-btn {
    color: #17243d;
    border-color: #ffd36f;
    background: #ffd36f;
}

.dh-calendar-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: .65rem;
}

.dh-calendar-metrics article {
    display: grid;
    grid-template-columns: auto auto minmax(0, 1fr);
    align-items: center;
    gap: .65rem;
    min-width: 0;
    padding: .9rem;
    border: 1px solid #e1e7ed;
    border-radius: 19px;
    background: rgba(255, 255, 255, .95);
    box-shadow: 0 10px 28px rgba(22, 34, 57, .055);
}

.dh-calendar-metrics article > span {
    display: grid;
    width: 39px;
    height: 39px;
    place-items: center;
    border-radius: 13px;
}

.dh-calendar-metrics .is-agenda {
    color: #456f96;
    background: #e5eff8;
}

.dh-calendar-metrics .is-scheduled {
    color: #856209;
    background: #fff1c8;
}

.dh-calendar-metrics .is-active {
    color: #08715d;
    background: #e0f5ed;
}

.dh-calendar-metrics .is-sync {
    color: #5e4f92;
    background: #eee9f8;
}

.dh-calendar-metric__glyph {
    width: 19px;
    height: 19px;
}

.dh-calendar-metrics strong {
    color: #17253e;
    font-size: 1.28rem;
    font-weight: 870;
    line-height: 1;
}

.dh-calendar-metrics small {
    overflow: hidden;
    color: #6f7b8c;
    font-size: .68rem;
    font-weight: 730;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dh-calendar-view-panel,
.dh-calendar-google-panel {
    margin: 0 !important;
    border-color: #e0e6ed;
    border-radius: 23px;
    background: #fff;
    box-shadow: 0 13px 34px rgba(22, 34, 57, .055);
}

.dh-status-pill-row {
    gap: .35rem;
}

.dh-calendar-legend {
    display: inline-flex;
    min-height: 29px;
    align-items: center;
    padding: .32rem .6rem;
    color: #fff;
    font-size: .65rem;
    font-weight: 790;
    border-radius: 999px;
}

.dh-calendar-legend.is-scheduled,
.dh-calendar-legend.is-service {
    color: #17243b;
    background: #f4b400;
}

.dh-calendar-legend.is-confirmed {
    background: #2457d6;
}

.dh-calendar-legend.is-active {
    background: #177245;
}

.dh-calendar-legend.is-cancelled {
    background: #9a3412;
}

.dh-calendar-legend.is-no-show {
    background: #6b7280;
}

.dh-calendar-view-settings {
    border-color: #e3e8ee;
    border-radius: 17px;
    background: #fafbfd;
}

.dh-calendar-view-settings > summary {
    display: inline-flex;
    list-style: none;
    align-items: center;
    gap: .4rem;
    font-weight: 760;
    border-radius: 999px;
    cursor: pointer;
}

.dh-calendar-view-settings > summary::-webkit-details-marker {
    display: none;
}

.dh-calendar-view-settings > summary::after {
    margin-left: .2rem;
    content: "⌄";
    font-size: .8rem;
    transition: transform .18s ease;
}

.dh-calendar-view-settings[open] > summary::after {
    transform: rotate(180deg);
}

.dh-calendar-view-settings .form-select {
    min-height: 39px;
    border-radius: 11px;
}

.dh-calendar-google-panel {
    overflow: hidden;
    background:
        radial-gradient(circle at 95% 0%, rgba(66, 133, 244, .08), transparent 30%),
        #fff;
}

.dh-calendar-google-panel .dh-google-status-card {
    border-color: #e1e7ee;
    border-radius: 17px;
    background: rgba(255, 255, 255, .82);
}

.dh-calendar-panel-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: .7rem;
    margin-bottom: .8rem;
}

.dh-calendar-view-switcher {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem;
    margin-bottom: .8rem;
    padding: .35rem;
    border: 1px solid #e2e7ed;
    border-radius: 15px;
    background: #f8fafc;
}

.dh-calendar-view-switcher .btn {
    min-height: 34px;
    padding: .4rem .65rem;
    font-size: .66rem;
    font-weight: 760;
    border: 0;
    border-radius: 10px;
}

.dh-calendar-view-switcher .btn-secondary {
    color: #fff;
    background: #17253e;
    box-shadow: 0 7px 16px rgba(23, 37, 62, .15);
}

.dh-calendar-workspace .dh-calendar-main-card,
.dh-calendar-workspace .dh-calendar-side-card {
    border-color: #dfe6ed;
    border-radius: 23px;
    background: #fff;
    box-shadow: 0 16px 42px rgba(22, 34, 57, .065);
}

.dh-calendar-workspace .dh-calendar-main-card {
    min-height: 700px;
}

.dh-calendar-workspace #calendar {
    min-width: 0;
}

.dh-calendar-workspace .fc .fc-scrollgrid {
    overflow: hidden;
    border-radius: 16px;
}

.dh-calendar-workspace .fc .fc-toolbar-title {
    color: #17253e;
    font-weight: 850;
    letter-spacing: -.025em;
}

.dh-calendar-workspace .fc .fc-button-primary {
    min-height: 35px;
    font-size: .7rem;
    font-weight: 760;
    border-color: #dce3ea;
    border-radius: 10px;
}

.dh-calendar-workspace .fc .fc-event {
    border-radius: 7px;
}

.dh-calendar-workspace .fc .fc-event.is-dh-calendar-block {
    cursor: default;
    opacity: .75;
}

.dh-calendar-workspace .fc .fc-event.is-dh-calendar-action {
    cursor: pointer;
}

.dh-calendar-workspace .fc .fc-event.is-google-calendar-block {
    filter: saturate(.78);
}

.dh-calendar-side-head {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: .65rem;
    margin-bottom: .85rem;
}

.dh-calendar-side-head > span {
    display: grid;
    width: 39px;
    height: 39px;
    place-items: center;
    color: #496f93;
    border-radius: 13px;
    background: #e6eff7;
}

.dh-calendar-side-head__glyph {
    width: 19px;
    height: 19px;
}

.dh-calendar-side-head h3 {
    margin: 0;
    color: #17253e;
    font-size: .92rem;
    font-weight: 830;
}

.dh-calendar-side-head small {
    display: block;
    margin-top: .16rem;
    color: #818a98;
    font-size: .62rem;
    line-height: 1.35;
}

.dh-calendar-status-filter {
    margin-bottom: .75rem;
}

.dh-calendar-status-filter .form-select {
    min-height: 39px;
    font-size: .72rem;
    border-radius: 11px;
}

.dh-calendar-workspace .dh-calendar-upcoming-card {
    margin-bottom: .55rem;
    padding: .8rem;
    border-color: #e3e8ee;
    border-radius: 16px;
    box-shadow: 0 9px 24px rgba(22, 34, 57, .045);
}

.dh-calendar-workspace .dh-calendar-upcoming-card[hidden] {
    display: none !important;
}

.dh-calendar-workspace .dh-cal-appt-time {
    color: #8d6810;
}

.dh-calendar-workspace .dh-cal-open-btn {
    min-height: 32px;
    align-items: center;
    font-size: .68rem;
    border-width: 1px;
}

.dh-calendar-workspace .dh-bulk-toolbar {
    padding: .75rem;
    border: 1px solid #e8d499;
    border-radius: 15px;
    background: #fffaf0;
}

.dh-calendar-workspace .dh-bulk-toolbar__actions {
    display: grid;
    gap: .45rem;
}

.dh-calendar-workspace .dh-bulk-toolbar__actions .form-select,
.dh-calendar-workspace .dh-bulk-toolbar__actions .form-control,
.dh-calendar-workspace .dh-bulk-toolbar__actions .btn {
    min-height: 37px;
    font-size: .69rem;
    border-radius: 10px;
}

@media (max-width: 1199.98px) {
    .dh-calendar-workspace .dh-calendar-main-card {
        min-height: 0;
    }
}

@media (max-width: 991.98px) {
    .dh-calendar-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767.98px) {
    .dh-calendar-workspace .dh-calendar-hero {
        min-height: auto;
        padding: 1.35rem;
        border-radius: 23px;
    }

    .dh-calendar-workspace .dh-calendar-hero .dh-context-hero__actions {
        width: 100%;
    }

    .dh-calendar-workspace .dh-calendar-hero .btn {
        flex: 1 1 180px;
    }

    .dh-calendar-view-switcher {
        flex-wrap: nowrap;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .dh-calendar-view-switcher::-webkit-scrollbar {
        display: none;
    }

    .dh-calendar-view-switcher .btn {
        flex: 0 0 auto;
    }
}

@media (max-width: 575.98px) {
    .dh-calendar-metrics {
        grid-template-columns: 1fr;
    }

    .dh-calendar-workspace .dh-calendar-hero .btn {
        width: 100%;
        flex-basis: 100%;
    }

    .dh-calendar-view-panel,
    .dh-calendar-google-panel,
    .dh-calendar-workspace .dh-calendar-main-card,
    .dh-calendar-workspace .dh-calendar-side-card {
        padding: 1rem !important;
        border-radius: 19px;
    }

    .dh-calendar-workspace .dh-status-pill-row {
        display: grid;
        grid-template-columns: 1fr 1fr;
        width: 100%;
    }

    .dh-calendar-legend {
        justify-content: center;
    }

    .dh-calendar-view-settings .d-flex {
        align-items: stretch !important;
    }
}

/* Premium tenant collections and payment workspace */
.dh-tenant-payments {
    --dh-payments-ink: #182337;
    --dh-payments-muted: #68758a;
    --dh-payments-line: #e6eaf0;
    --dh-payments-soft: #f5f8fb;
    --dh-payments-green: #117a63;
    --dh-payments-gold: #d99116;
    color: var(--dh-payments-ink);
}

.dh-payments-hero {
    position: relative;
    isolation: isolate;
    display: grid;
    grid-template-columns: minmax(0, 1fr) fit-content(280px) 7.375rem;
    gap: 1.25rem;
    align-items: center;
    min-height: 232px;
    overflow: hidden;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 30px;
    background:
        radial-gradient(circle at 76% 20%, rgba(255, 197, 61, .2), transparent 29%),
        linear-gradient(135deg, #111c30 0%, #1b2d4c 56%, #173f48 100%);
    box-shadow: 0 24px 54px rgba(24, 35, 55, .16);
}

.dh-payments-hero::before {
    position: absolute;
    inset: auto -80px -120px auto;
    width: 310px;
    height: 310px;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 50%;
    content: "";
    pointer-events: none;
}

.dh-payments-hero .dh-context-hero__content,
.dh-payments-hero .dh-context-hero__actions {
    position: relative;
    z-index: 2;
}

.dh-payments-hero .dh-context-hero__actions {
    min-width: 0;
}

.dh-payments-hero .dh-context-hero__eyebrow {
    color: #f9c44f;
}

.dh-payments-hero .dh-context-hero__title {
    max-width: 650px;
    color: #fff;
    letter-spacing: -.035em;
}

.dh-payments-hero .dh-context-hero__copy {
    max-width: 680px;
    color: rgba(255, 255, 255, .74);
}

.dh-payments-hero .btn-outline-dark {
    border-color: rgba(255, 255, 255, .34);
    background: rgba(255, 255, 255, .08);
    color: #fff;
}

.dh-payments-hero .btn-outline-dark:hover,
.dh-payments-hero .btn-outline-dark:focus-visible {
    border-color: #fff;
    background: #fff;
    color: #182337;
}

.dh-payments-hero__visual {
    position: relative;
    z-index: 1;
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
    display: grid;
    width: 118px;
    height: 118px;
    place-items: center;
    transform: rotate(-5deg);
    border: 1px solid rgba(255, 255, 255, .24);
    border-radius: 34px;
    background: linear-gradient(145deg, rgba(255, 255, 255, .2), rgba(255, 255, 255, .06));
    color: #ffd168;
    box-shadow: 0 22px 45px rgba(0, 0, 0, .2);
    backdrop-filter: blur(12px);
    pointer-events: none;
    user-select: none;
}

.dh-payments-hero__glyph {
    width: 55px;
    height: 55px;
    stroke-width: 1.45;
}

.dh-payment-metrics {
    position: relative;
    z-index: 3;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: .85rem;
    margin: -1.65rem 1.2rem 1.5rem;
}

.dh-payment-metric {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: .8rem;
    min-width: 0;
    padding: 1.05rem;
    border: 1px solid rgba(221, 226, 234, .92);
    border-radius: 21px;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 14px 30px rgba(24, 35, 55, .08);
    backdrop-filter: blur(12px);
}

.dh-payment-metric__icon {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 14px;
    background: #eaf5f1;
    color: var(--dh-payments-green);
}

.dh-payment-metric.is-pending .dh-payment-metric__icon {
    background: #fff4d9;
    color: #a76600;
}

.dh-payment-metric.is-quotes .dh-payment-metric__icon {
    background: #edf2ff;
    color: #4166a5;
}

.dh-payment-metric.is-documents .dh-payment-metric__icon {
    background: #f1ecff;
    color: #7354ac;
}

.dh-payment-metric__glyph {
    width: 22px;
    height: 22px;
}

.dh-payment-metric div {
    min-width: 0;
}

.dh-payment-metric strong,
.dh-payment-metric span,
.dh-payment-metric small {
    display: block;
}

.dh-payment-metric strong {
    overflow: hidden;
    margin-bottom: .1rem;
    font-size: 1.12rem;
    line-height: 1.1;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dh-payment-metric div > span {
    color: #354156;
    font-size: .72rem;
    font-weight: 800;
}

.dh-payment-metric small {
    margin-top: .1rem;
    color: var(--dh-payments-muted);
    font-size: .62rem;
    line-height: 1.35;
}

.dh-payments-workspace > [class*="col-"] {
    min-width: 0;
}

.dh-tenant-payments .dh-card {
    border: 1px solid var(--dh-payments-line);
    border-radius: 25px;
    box-shadow: 0 16px 40px rgba(24, 35, 55, .065);
}

.dh-payment-create-card {
    position: relative;
    overflow: hidden;
}

.dh-payment-create-card::before {
    position: absolute;
    inset: 0 0 auto;
    height: 4px;
    background: linear-gradient(90deg, #f3b82d, #1a8b71);
    content: "";
}

.dh-payment-panel-head,
.dh-payment-history__head,
.dh-payment-history__heading {
    display: flex;
    align-items: center;
    gap: .75rem;
}

.dh-payment-panel-head .dh-badge,
.dh-payment-history__head > .small {
    margin-left: auto;
}

.dh-payment-panel-head__icon {
    display: grid;
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    place-items: center;
    border-radius: 13px;
    background: #fff4d8;
    color: #a96800;
}

.dh-payment-panel-head__icon.is-gateway {
    background: #eaf5f1;
    color: var(--dh-payments-green);
}

.dh-payment-panel-head__icon.is-coupon {
    background: #f1ecff;
    color: #7354ac;
}

.dh-payment-panel-head__icon.is-history {
    background: #edf2ff;
    color: #4166a5;
}

.dh-payment-panel-head__glyph {
    width: 21px;
    height: 21px;
}

.dh-payment-create-card .dh-soft-panel {
    padding: .85rem;
    border-color: #e4e9ef;
    background: linear-gradient(135deg, #f8fafc, #f3f7f7);
}

.dh-payment-create-card .form-label,
.dh-payment-coupon-card .form-label {
    color: #3e4a5e;
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .015em;
}

.dh-payment-create-card .form-control,
.dh-payment-create-card .form-select,
.dh-payment-coupon-card .form-control,
.dh-payment-coupon-card .form-select {
    min-height: 44px;
    border-color: #dfe5ec;
    border-radius: 13px;
    background-color: #fbfcfe;
    font-size: .78rem;
}

.dh-payment-create-card textarea.form-control {
    min-height: 104px;
}

.dh-payment-create-card .form-control:focus,
.dh-payment-create-card .form-select:focus,
.dh-payment-coupon-card .form-control:focus,
.dh-payment-coupon-card .form-select:focus,
.dh-payment-history__search .form-control:focus {
    border-color: rgba(17, 122, 99, .58);
    box-shadow: 0 0 0 .2rem rgba(17, 122, 99, .1);
}

.dh-payment-gateways {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .65rem;
}

.dh-payment-gateway {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    column-gap: .55rem;
    align-items: center;
    min-width: 0;
    padding: .75rem;
    border: 1px solid #dcebe6;
    border-radius: 15px;
    background: #f4faf8;
}

.dh-payment-gateway > span {
    display: grid;
    grid-row: 1 / 3;
    width: 31px;
    height: 31px;
    place-items: center;
    border-radius: 10px;
    background: #dff1eb;
    color: var(--dh-payments-green);
}

.dh-payment-gateway strong,
.dh-payment-gateway small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dh-payment-gateway strong {
    font-size: .72rem;
}

.dh-payment-gateway small {
    color: var(--dh-payments-muted);
    font-size: .61rem;
}

.dh-payment-gateway__glyph {
    width: 17px;
    height: 17px;
}

.dh-payment-coupon {
    border-color: #e6e0f2;
    background: #fcfbff;
}

.dh-payment-history {
    min-height: 680px;
}

.dh-payment-history__head {
    justify-content: space-between;
}

.dh-payment-history__heading {
    min-width: 0;
}

.dh-payment-history__heading h2 {
    overflow: hidden;
    text-overflow: ellipsis;
}

.dh-payment-history__tools {
    display: grid;
    gap: .75rem;
    margin-bottom: 1rem;
    padding: .8rem;
    border: 1px solid var(--dh-payments-line);
    border-radius: 17px;
    background: var(--dh-payments-soft);
}

.dh-payment-history__search {
    position: relative;
    display: block;
}

.dh-payment-history__search > span:not(.visually-hidden) {
    position: absolute;
    z-index: 2;
    top: 50%;
    left: .8rem;
    color: #718096;
    transform: translateY(-50%);
    pointer-events: none;
}

.dh-payment-history__search-glyph {
    width: 18px;
    height: 18px;
}

.dh-payment-history__search .form-control {
    min-height: 42px;
    padding-left: 2.5rem;
    border-color: #dfe5ec;
    border-radius: 13px;
    background: #fff;
    font-size: .75rem;
}

.dh-payment-history__filters {
    display: flex;
    gap: .45rem;
    overflow-x: auto;
    scrollbar-width: none;
}

.dh-payment-history__filters::-webkit-scrollbar {
    display: none;
}

.dh-payment-history__filters .btn {
    flex: 0 0 auto;
    border-radius: 999px;
}

.dh-payment-history__empty {
    margin-bottom: .85rem;
}

.dh-payment-record {
    position: relative;
    overflow: visible;
    padding: 1rem;
    border: 1px solid #e3e8ef;
    border-left: 4px solid #2b826f;
    border-radius: 19px;
    background: #fff;
    box-shadow: 0 8px 22px rgba(24, 35, 55, .045);
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.dh-payment-record.is-quote {
    border-left-color: #627eb9;
}

.dh-payment-record:hover {
    transform: translateY(-1px);
    border-color: #d5dde7;
    box-shadow: 0 13px 28px rgba(24, 35, 55, .08);
}

.dh-payment-record__head {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: .75rem;
    align-items: start;
}

.dh-payment-record__icon {
    display: grid;
    width: 39px;
    height: 39px;
    place-items: center;
    border-radius: 13px;
    background: #e9f4f1;
    color: #1a806b;
}

.dh-payment-record.is-quote .dh-payment-record__icon {
    background: #edf2ff;
    color: #4969a2;
}

.dh-payment-record__glyph {
    width: 20px;
    height: 20px;
}

.dh-payment-record__identity {
    min-width: 0;
}

.dh-payment-record__identity > .fw-semibold {
    overflow-wrap: anywhere;
    color: #202b3d;
    font-size: .86rem;
}

.dh-payment-record__identity .small,
.dh-payment-record > .small {
    font-size: .67rem;
    line-height: 1.5;
}

.dh-payment-record__amount {
    min-width: 90px;
}

.dh-payment-record__amount > .fw-semibold {
    margin-bottom: .25rem;
    color: #172337;
    font-size: .9rem;
}

.dh-payment-record__link .form-control {
    min-height: 39px;
    border-color: #dfe5ec;
    border-radius: 11px;
    background: #f8fafc;
    color: #526075;
    font-size: .67rem;
}

.dh-payment-record__actions {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem;
    align-items: flex-start;
    margin-top: .9rem;
    padding-top: .85rem;
    border-top: 1px solid #edf0f4;
}

.dh-payment-record__actions .btn {
    min-height: 32px;
    border-radius: 10px;
    font-size: .65rem;
}

.dh-payment-disclosure {
    position: relative;
}

.dh-payment-disclosure__summary {
    display: inline-flex;
    gap: .35rem;
    align-items: center;
    list-style: none;
    cursor: pointer;
}

.dh-payment-disclosure__summary::-webkit-details-marker {
    display: none;
}

.dh-payment-disclosure__summary span {
    display: inline-block;
    transition: transform .18s ease;
}

.dh-payment-disclosure[open] .dh-payment-disclosure__summary span {
    transform: rotate(180deg);
}

.dh-payment-record__action-panel {
    margin-top: .65rem;
    padding: .85rem;
    border: 1px solid #dfe5ec;
    border-radius: 14px;
    background: #f7f9fb;
}

.dh-payment-disclosure .dh-payment-record__action-panel {
    position: relative;
    z-index: 5;
    width: min(510px, calc(100vw - 4rem));
}

.dh-payment-record__action-panel .form-control,
.dh-payment-record__action-panel .form-select {
    min-height: 36px;
    border-radius: 10px;
    font-size: .68rem;
}

@media (max-width: 1199.98px) {
    .dh-payment-history {
        min-height: 0;
    }

    .dh-payments-workspace {
        flex-direction: column-reverse;
    }

    .dh-payments-workspace > .col-xl-5,
    .dh-payments-workspace > .col-xl-7 {
        width: 100%;
    }
}

@media (max-width: 991.98px) {
    .dh-payment-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 1399.98px) {
    .dh-payments-hero {
        grid-template-columns: minmax(0, 1fr) 6.75rem;
    }

    .dh-payments-hero .dh-context-hero__content {
        grid-column: 1 / -1;
    }

    .dh-payments-hero .dh-context-hero__actions {
        grid-column: 1;
        grid-row: 2;
        justify-content: flex-start;
    }

    .dh-payments-hero__visual {
        grid-column: 2;
        grid-row: 2;
        width: 100px;
        height: 100px;
    }
}

@media (max-width: 767.98px) {
    .dh-payments-hero {
        grid-template-columns: minmax(0, 1fr);
        min-height: auto;
        padding: 1.4rem;
        border-radius: 24px;
    }

    .dh-payments-hero__visual {
        display: none;
    }

    .dh-payments-hero .dh-context-hero__content,
    .dh-payments-hero .dh-context-hero__actions {
        grid-column: 1;
    }

    .dh-payments-hero .dh-context-hero__actions,
    .dh-payments-hero .btn {
        width: 100%;
    }

    .dh-payment-history__head {
        align-items: flex-start;
    }

    .dh-payment-record__head {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .dh-payment-record__amount {
        grid-column: 2;
        min-width: 0;
        text-align: left !important;
    }
}

@media (max-width: 575.98px) {
    .dh-payment-metrics {
        grid-template-columns: 1fr;
        margin: -1rem .65rem 1.15rem;
    }

    .dh-tenant-payments .dh-card {
        padding: 1rem !important;
        border-radius: 20px;
    }

    .dh-payment-gateways {
        grid-template-columns: 1fr;
    }

    .dh-payment-panel-head,
    .dh-payment-history__head {
        flex-wrap: wrap;
    }

    .dh-payment-panel-head .dh-badge {
        margin-left: 0;
    }

    .dh-payment-history__head > .small {
        width: 100%;
        margin-left: 3.25rem;
    }

    .dh-payment-record {
        padding: .85rem;
        border-radius: 16px;
    }

    .dh-payment-record__icon {
        width: 34px;
        height: 34px;
    }

    .dh-payment-record__actions,
    .dh-payment-record__actions > form,
    .dh-payment-record__actions > .btn,
    .dh-payment-disclosure {
        width: 100%;
    }

    .dh-payment-record__actions .btn,
    .dh-payment-disclosure__summary {
        width: 100%;
        justify-content: center;
    }

    .dh-payment-disclosure .dh-payment-record__action-panel {
        width: 100%;
    }
}

/* Premium appointment editor */
.dh-appointment-editor {
    --dh-appointment-ink: #192438;
    --dh-appointment-muted: #68758a;
    --dh-appointment-line: #e3e8ef;
    --dh-appointment-soft: #f6f8fb;
    color: var(--dh-appointment-ink);
}

.dh-appointment-editor__hero {
    position: relative;
    isolation: isolate;
    display: grid;
    grid-template-columns: minmax(0, 1fr) max-content;
    gap: 1.25rem;
    align-items: center;
    min-height: 210px;
    overflow: hidden;
    padding: 1.8rem 2rem;
    border: 1px solid #dfe7e6;
    border-radius: 29px;
    background:
        radial-gradient(circle at 82% 14%, rgba(243, 184, 45, .2), transparent 28%),
        linear-gradient(135deg, #fbfdfc 0%, #eef7f4 55%, #e8f1f7 100%);
    box-shadow: 0 22px 50px rgba(25, 36, 56, .09);
}

.dh-appointment-editor__hero::after {
    position: absolute;
    inset: auto -75px -135px auto;
    width: 290px;
    height: 290px;
    border: 1px solid rgba(25, 85, 74, .09);
    border-radius: 50%;
    content: "";
}

.dh-appointment-editor__hero .dh-context-hero__content,
.dh-appointment-editor__hero .dh-context-hero__actions {
    position: relative;
    z-index: 2;
}

.dh-appointment-editor__hero .dh-context-hero__actions {
    min-width: 0;
}

.dh-appointment-editor__hero .dh-context-hero__eyebrow {
    color: #1d7967;
}

.dh-appointment-editor__hero .dh-context-hero__title {
    max-width: 650px;
    color: #172337;
    letter-spacing: -.04em;
}

.dh-appointment-editor__hero .dh-context-hero__copy {
    max-width: 690px;
    color: #637188;
}

.dh-appointment-editor__workspace > [class*="col-"] {
    min-width: 0;
}

.dh-appointment-editor .dh-card {
    border: 1px solid var(--dh-appointment-line);
    border-radius: 25px;
    box-shadow: 0 16px 42px rgba(25, 36, 56, .065);
}

.dh-appointment-editor__main {
    position: relative;
    overflow: visible;
}

.dh-appointment-editor__main::before {
    position: absolute;
    inset: 0 0 auto;
    height: 4px;
    border-radius: 25px 25px 0 0;
    background: linear-gradient(90deg, #1e806b, #f0ba35);
    content: "";
}

.dh-appointment-editor .dh-cal-section-label {
    display: flex;
    gap: .6rem;
    align-items: center;
    margin-bottom: .95rem;
    padding-bottom: .55rem;
    border-bottom: 1px solid #e8ecf1;
    color: #59667b;
    font-size: .66rem;
    font-weight: 900;
    letter-spacing: .09em;
}

.dh-appointment-editor .dh-cal-section-label::before {
    width: 18px;
    height: 4px;
    border-radius: 99px;
    background: linear-gradient(90deg, #18806a, #f0b92e);
    content: "";
}

.dh-appointment-editor .form-label {
    color: #3d495d;
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .012em;
}

.dh-appointment-editor .form-control,
.dh-appointment-editor .form-select {
    min-height: 44px;
    border-color: #dfe5ec;
    border-radius: 13px;
    background-color: #fbfcfe;
    font-size: .78rem;
}

.dh-appointment-editor textarea.form-control {
    min-height: 96px;
}

.dh-appointment-editor .form-control:focus,
.dh-appointment-editor .form-select:focus {
    border-color: rgba(24, 128, 106, .56);
    box-shadow: 0 0 0 .2rem rgba(24, 128, 106, .1);
}

.dh-appointment-editor .form-text,
.dh-appointment-editor .text-muted.small,
.dh-appointment-editor .small.text-muted {
    color: var(--dh-appointment-muted) !important;
    font-size: .67rem;
    line-height: 1.5;
}

.dh-appointment-customer-dropdown {
    position: absolute;
    z-index: 1000;
    top: calc(100% + .35rem);
    width: 100%;
    max-height: 250px;
    overflow-y: auto;
    border: 1px solid #dfe5ec;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 18px 38px rgba(25, 36, 56, .14);
}

.dh-customer-search-item {
    border-bottom: 1px solid #eef1f4;
    color: #354156;
    font-size: .74rem;
    transition: background .15s ease, color .15s ease;
}

.dh-customer-search-item:last-child {
    border-bottom: 0;
}

.dh-customer-search-item.is-clickable {
    cursor: pointer;
}

.dh-customer-search-item.is-clickable:hover,
.dh-customer-search-item.is-clickable:focus {
    background: #f0f7f4;
    color: #126f5d;
}

.dh-appointment-capacity-override {
    display: flex;
    gap: .8rem;
    align-items: flex-start;
    padding: .9rem;
    border: 1px solid #eadcb6;
    border-radius: 16px;
    background: #fffbf0;
}

.dh-appointment-capacity-override .form-check-input {
    margin-top: .15rem;
    border-color: #c9a554;
}

.dh-appointment-slot-picker {
    padding: 1rem;
    border: 1px solid #dfe6ec;
    border-radius: 19px;
    background: linear-gradient(145deg, #fbfcfe, #f5f8f8);
}

.dh-appointment-slot-picker__eyebrow {
    margin-bottom: .55rem;
    color: #577065;
    font-size: .65rem;
    font-weight: 900;
    letter-spacing: .075em;
    text-transform: uppercase;
}

.dh-appointment-slot-picker .btn-outline-secondary {
    border-color: #d7dee7;
    background: #fff;
    color: #47546a;
}

.dh-appointment-day-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: .32rem;
}

.dh-appointment-day-grid__loading {
    grid-column: 1 / -1;
    padding: .8rem 0;
}

.dh-appointment-day-grid .btn {
    min-width: 0;
    min-height: 34px;
    border-radius: 10px;
    font-size: .67rem;
}

.dh-appointment-day-grid .btn.is-today {
    box-shadow: inset 0 0 0 2px rgba(24, 128, 106, .38);
    font-weight: 800;
}

.dh-appointment-slot-picker #calPickerSlotList .btn {
    min-height: 34px;
    border-radius: 10px;
    font-size: .68rem;
}

.dh-appointment-slot-selected {
    display: flex;
    gap: .5rem;
    align-items: center;
    margin-top: .75rem;
    padding: .65rem .75rem;
    border: 1px solid #cfe6df;
    border-radius: 13px;
    background: #edf8f4;
    color: #135f51;
}

.dh-appointment-slot-selected .btn {
    margin-left: auto;
}

.dh-appointment-slot-error {
    margin-top: .75rem;
    padding: .65rem .85rem;
    border: 1px solid rgba(185, 52, 52, .18);
    border-radius: 13px;
    background: rgba(185, 52, 52, .07);
    color: #b42f3a;
    font-size: .68rem;
    font-weight: 700;
}

.dh-appointment-meeting-card {
    position: relative;
    overflow: hidden;
    padding: 1rem;
    border: 1px solid #cfe1e6;
    border-radius: 19px;
    background:
        radial-gradient(circle at 94% 8%, rgba(51, 111, 207, .12), transparent 34%),
        linear-gradient(145deg, #f8fbff, #f1f8f6);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .82);
}

.dh-appointment-meeting-card__head {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: .72rem;
    align-items: start;
    margin-bottom: .85rem;
}

.dh-appointment-meeting-card__icon {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 13px;
    background: #dcecf6;
    color: #225e9d;
}

.dh-appointment-meeting-card__icon svg {
    width: 20px;
    height: 20px;
}

.dh-appointment-meeting-card__google {
    padding: .75rem .8rem .75rem 2.25rem;
    border: 1px solid rgba(34, 94, 157, .13);
    border-radius: 14px;
    background: rgba(255, 255, 255, .72);
}

.dh-appointment-manual-date {
    display: contents;
}

.dh-appointment-status-legend {
    display: flex;
    flex-wrap: wrap;
    gap: .42rem;
    margin-top: .65rem;
}

.dh-appointment-status-legend span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: .3rem .68rem;
    border-radius: 999px;
    color: #fff;
    font-size: .61rem;
    font-weight: 800;
}

.dh-appointment-status-legend .is-scheduled {
    background: #dca00e;
    color: #172337;
}

.dh-appointment-status-legend .is-confirmed {
    background: #2457d6;
}

.dh-appointment-status-legend .is-active {
    background: #177245;
}

.dh-appointment-status-legend .is-cancelled {
    background: #9a3412;
}

.dh-appointment-status-legend .is-no-show {
    background: #6b7280;
}

.dh-appointment-editor__save {
    overflow: hidden;
}

.dh-appointment-save-head {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: .75rem;
    align-items: start;
    margin: -1.5rem -1.5rem 1rem;
    padding: 1.1rem 1.5rem;
    border-bottom: 1px solid #e3e9ee;
    background: linear-gradient(135deg, #eff7f4, #f8fafb);
}

.dh-appointment-save-head > span {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 13px;
    background: #dcefe9;
    color: #14705e;
}

.dh-appointment-save-head__glyph {
    width: 20px;
    height: 20px;
}

.dh-appointment-editor__save .dh-list-card {
    border-color: #dfe6ec;
    border-radius: 16px;
    background: #f7f9fb;
}

.dh-appointment-editor__save .btn {
    min-height: 42px;
    border-radius: 12px;
    font-size: .72rem;
    font-weight: 800;
}

.dh-appointment-editor .modal-content {
    overflow: hidden;
    border: 1px solid #dfe5ec;
    border-radius: 22px;
    box-shadow: 0 24px 60px rgba(25, 36, 56, .2);
}

@media (max-width: 1199.98px) {
    .dh-appointment-editor__save {
        position: static;
    }
}

@media (max-width: 1399.98px) {
    .dh-appointment-editor__hero {
        grid-template-columns: minmax(0, 1fr);
    }

    .dh-appointment-editor__hero .dh-context-hero__content {
        grid-column: 1 / -1;
    }

    .dh-appointment-editor__hero .dh-context-hero__actions {
        grid-column: 1;
        grid-row: 2;
        justify-content: flex-start;
    }

}

@media (max-width: 767.98px) {
    .dh-appointment-editor__hero {
        grid-template-columns: minmax(0, 1fr);
        min-height: auto;
        padding: 1.4rem;
        border-radius: 24px;
    }

    .dh-appointment-editor__hero .dh-context-hero__content,
    .dh-appointment-editor__hero .dh-context-hero__actions {
        grid-column: 1;
    }

    .dh-appointment-editor__hero .dh-context-hero__actions,
    .dh-appointment-editor__hero .btn {
        width: 100%;
    }
}

@media (max-width: 575.98px) {
    .dh-appointment-editor .dh-card {
        padding: 1rem !important;
        border-radius: 20px;
    }

    .dh-appointment-save-head {
        margin: -1rem -1rem 1rem;
        padding: 1rem;
    }

    .dh-appointment-day-grid {
        gap: .22rem;
    }

    .dh-appointment-day-grid .btn {
        min-height: 31px;
        padding-right: .15rem !important;
        padding-left: .15rem !important;
    }

    .dh-appointment-slot-selected {
        flex-wrap: wrap;
    }

    .dh-appointment-slot-selected .btn {
        width: 100%;
        margin-left: 0;
    }
}

/* Premium weekly availability planner */
.dh-availability-planner {
    --dh-wp-ink: #192438;
    --dh-wp-muted: #69768a;
    --dh-wp-line: #e2e7ed;
    --dh-wp-green: #177245;
    --dh-wp-gold: #d7a112;
    --dh-wp-red: #b84a39;
    color: var(--dh-wp-ink);
}

.dh-wp-topbar {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto 6.625rem;
    gap: 1rem;
    min-height: 220px;
    overflow: hidden;
    margin-bottom: 1.35rem;
    padding: 1.8rem 2rem;
    border: 1px solid #dde7e4;
    border-radius: 29px;
    background:
        radial-gradient(circle at 84% 16%, rgba(241, 188, 22, .23), transparent 28%),
        linear-gradient(135deg, #fbfdfc, #edf7f3 58%, #edf3f8);
    box-shadow: 0 22px 48px rgba(25, 36, 56, .09);
}

.dh-wp-topbar::after {
    position: absolute;
    inset: auto -75px -130px auto;
    width: 290px;
    height: 290px;
    border: 1px solid rgba(23, 114, 69, .1);
    border-radius: 50%;
    content: "";
    pointer-events: none;
}

.dh-wp-topbar__title,
.dh-wp-week-nav,
.dh-wp-topbar__actions {
    position: relative;
    z-index: 2;
}

.dh-wp-topbar__title {
    min-width: 0;
}

.dh-wp-topbar__eyebrow {
    margin-bottom: .45rem;
    color: #17705f;
    font-size: .65rem;
    font-weight: 900;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.dh-wp-topbar__title h2 {
    color: #172337;
    font-size: clamp(1.55rem, 3vw, 2.15rem);
    font-weight: 900;
    letter-spacing: -.045em;
}

.dh-wp-topbar__title > .small {
    margin-top: .25rem;
    color: #1b705f !important;
    font-size: .78rem;
    font-weight: 800;
}

.dh-wp-topbar__title p {
    max-width: 660px;
    margin: .75rem 0 0;
    color: #647287;
    font-size: .79rem;
    line-height: 1.6;
}

.dh-wp-topbar__visual {
    position: relative;
    z-index: 1;
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
    display: grid;
    width: 106px;
    height: 106px;
    place-items: center;
    transform: rotate(-4deg);
    border: 1px solid rgba(255, 255, 255, .9);
    border-radius: 31px;
    background: rgba(255, 255, 255, .68);
    color: #14705e;
    box-shadow: 0 18px 38px rgba(25, 72, 65, .14);
    backdrop-filter: blur(12px);
    pointer-events: none;
    user-select: none;
}

.dh-wp-topbar__glyph {
    width: 47px;
    height: 47px;
    stroke-width: 1.5;
}

.dh-wp-week-nav {
    display: flex;
    gap: .4rem;
    align-self: start;
    grid-column: 2;
    grid-row: 1;
}

.dh-wp-week-nav .btn {
    min-width: 36px;
    border-color: #d6dfe6;
    border-radius: 11px;
    background: rgba(255, 255, 255, .76);
}

.dh-wp-topbar__actions {
    display: flex;
    grid-column: 1 / -1;
    flex-wrap: wrap;
    gap: .55rem;
    align-items: center;
}

.dh-wp-topbar__actions .btn {
    min-height: 38px;
    border-radius: 11px;
    font-size: .68rem;
}

.dh-wp-metrics {
    position: relative;
    z-index: 3;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: .85rem;
    margin: -2rem 1.1rem 1.4rem;
}

.dh-wp-metrics article {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: .75rem;
    align-items: center;
    min-width: 0;
    padding: 1rem;
    border: 1px solid rgba(221, 227, 234, .94);
    border-radius: 20px;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 13px 28px rgba(25, 36, 56, .075);
    backdrop-filter: blur(12px);
}

.dh-wp-metrics article > span {
    display: grid;
    width: 41px;
    height: 41px;
    place-items: center;
    border-radius: 13px;
    background: #e7f4ef;
    color: var(--dh-wp-green);
}

.dh-wp-metrics .is-busy > span {
    background: #fff4d7;
    color: #986e00;
}

.dh-wp-metrics .is-away > span {
    background: #fbece9;
    color: var(--dh-wp-red);
}

.dh-wp-metrics .is-ranges > span {
    background: #edf2ff;
    color: #496aa4;
}

.dh-wp-metric__glyph {
    width: 21px;
    height: 21px;
}

.dh-wp-metrics article div {
    min-width: 0;
}

.dh-wp-metrics strong,
.dh-wp-metrics small,
.dh-wp-metrics p {
    display: block;
}

.dh-wp-metrics strong {
    overflow: hidden;
    font-size: 1.12rem;
    line-height: 1.15;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dh-wp-metrics small {
    margin-top: .08rem;
    color: #354156;
    font-size: .7rem;
    font-weight: 800;
}

.dh-wp-metrics p {
    margin: .08rem 0 0;
    color: var(--dh-wp-muted);
    font-size: .61rem;
    line-height: 1.35;
}

.dh-wp-staff-tabs {
    display: flex;
    gap: .5rem;
    overflow-x: auto;
    padding: .25rem .05rem;
    scrollbar-width: none;
}

.dh-wp-staff-tabs::-webkit-scrollbar {
    display: none;
}

.dh-wp-staff-tab {
    flex: 0 0 auto;
    padding: .42rem .9rem;
    border: 1px solid #dfe5ec;
    border-radius: 999px;
    background: #fff;
    color: #455267;
    font-size: .7rem;
    font-weight: 800;
    text-decoration: none;
    transition: transform .15s ease, background .15s ease, border-color .15s ease, color .15s ease;
}

.dh-wp-staff-tab:hover,
.dh-wp-staff-tab:focus-visible {
    transform: translateY(-1px);
    border-color: #e1b43b;
    background: #fffaf0;
    color: #704f00;
}

.dh-wp-staff-tab.is-active {
    border-color: #e3ad1d;
    background: #f1bc16;
    color: #172337;
    box-shadow: 0 7px 15px rgba(215, 161, 18, .18);
}

.dh-wp-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(142px, 1fr));
    gap: .7rem;
    overflow-x: auto;
    padding: .2rem .1rem .8rem;
    scroll-snap-type: x proximity;
}

.dh-wp-day {
    display: flex;
    flex-direction: column;
    gap: .48rem;
    min-width: 142px;
    padding: .55rem;
    border: 1px solid #e2e7ed;
    border-radius: 17px;
    background: #f9fafc;
    scroll-snap-align: start;
}

.dh-wp-day__head {
    padding: .58rem .25rem;
    border: 1px solid #e0e6ec;
    border-radius: 13px;
    background: #fff;
    text-align: center;
}

.dh-wp-day__head .day-name,
.dh-wp-day__head .day-num {
    display: block;
}

.dh-wp-day__head .day-name {
    color: #748196;
    font-size: .61rem;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.dh-wp-day__head .day-num {
    color: #202b3d;
    font-size: 1.3rem;
    font-weight: 900;
    line-height: 1.05;
}

.dh-wp-day--today {
    border-color: #e7c665;
    background: #fffbef;
}

.dh-wp-day--today .dh-wp-day__head {
    border-color: #e2ad1e;
    background: #f1bc16;
    box-shadow: 0 8px 18px rgba(215, 161, 18, .17);
}

.dh-wp-day--today .dh-wp-day__head .day-name,
.dh-wp-day--today .dh-wp-day__head .day-num {
    color: #172337;
}

.dh-wp-day__slots {
    display: grid;
    gap: .4rem;
}

.dh-wp-day__empty {
    padding: .6rem .25rem;
    color: #95a0b1;
    font-size: .68rem;
    text-align: center;
}

.dh-wp-slot {
    position: relative;
    padding: .55rem 2.7rem .55rem .65rem;
    border: 1px solid transparent;
    border-left-width: 3px;
    border-radius: 11px;
    font-size: .72rem;
}

.dh-wp-slot--available {
    border-color: #cae5db;
    border-left-color: var(--dh-wp-green);
    background: #eaf7f1;
}

.dh-wp-slot--busy {
    border-color: #eee1ad;
    border-left-color: var(--dh-wp-gold);
    background: #fff9e7;
}

.dh-wp-slot--away {
    border-color: #efd3ce;
    border-left-color: var(--dh-wp-red);
    background: #fdf0ee;
}

.dh-wp-slot__time,
.dh-wp-slot__staff,
.dh-wp-slot__type {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dh-wp-slot__time {
    color: #273246;
    font-size: .72rem;
    font-weight: 900;
}

.dh-wp-slot__staff,
.dh-wp-slot__type {
    color: #6d7a8f;
    font-size: .61rem;
}

.dh-wp-slot__actions {
    position: absolute;
    top: .3rem;
    right: .3rem;
    display: flex;
    gap: .08rem;
    opacity: .38;
    transition: opacity .15s ease;
}

.dh-wp-slot:hover .dh-wp-slot__actions,
.dh-wp-slot:focus-within .dh-wp-slot__actions {
    opacity: 1;
}

.dh-wp-slot__edit,
.dh-wp-slot__del {
    display: grid;
    width: 24px;
    height: 24px;
    padding: 0;
    place-items: center;
    border: 0;
    border-radius: 7px;
    background: rgba(255, 255, 255, .55);
    color: #758196;
    font-size: .71rem;
    line-height: 1;
    cursor: pointer;
}

.dh-wp-slot__edit:hover,
.dh-wp-slot__edit:focus-visible {
    background: #dcefe8;
    color: #146d5b;
}

.dh-wp-slot__del:hover,
.dh-wp-slot__del:focus-visible {
    background: #fae4e1;
    color: #af392b;
}

.dh-wp-add-btn {
    width: 100%;
    margin-top: auto;
    padding: .45rem;
    border: 1px dashed #cbd4df;
    border-radius: 10px;
    background: transparent;
    color: #788599;
    font-size: .67rem;
    font-weight: 800;
    cursor: pointer;
    transition: background .15s ease, border-color .15s ease, color .15s ease;
}

.dh-wp-add-btn:hover,
.dh-wp-add-btn:focus-visible,
.dh-wp-add-btn.is-open {
    border-color: #d6a010;
    background: #fff8df;
    color: #765400;
}

.dh-wp-shared-panel {
    overflow: hidden;
    margin-bottom: 1.25rem;
    border: 1px solid #dce4ea;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 18px 42px rgba(25, 36, 56, .09);
}

.dh-wp-shared-panel__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #e2e8ee;
    background: linear-gradient(135deg, #eff7f4, #f8fafb);
}

.dh-wp-panel-close {
    display: grid;
    width: 32px;
    height: 32px;
    padding: 0;
    place-items: center;
    border: 0;
    border-radius: 10px;
    background: rgba(25, 36, 56, .05);
    color: #69768a;
    cursor: pointer;
}

.dh-wp-panel-close:hover,
.dh-wp-panel-close:focus-visible {
    background: rgba(25, 36, 56, .1);
    color: #253046;
}

.dh-wp-shared-panel__body {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    padding: 1.25rem;
}

.dh-wp-field {
    display: flex;
    flex-direction: column;
    gap: .35rem;
}

.dh-wp-field--wide {
    grid-column: 1 / -1;
}

.dh-wp-field--actions {
    flex-direction: row;
    gap: .65rem;
    align-items: center;
    padding-top: .8rem;
    border-top: 1px solid #e7ebf0;
}

.dh-wp-label {
    color: #465267;
    font-size: .7rem;
    font-weight: 800;
}

.dh-wp-shared-panel .form-control,
.dh-wp-shared-panel .form-select,
.dh-wp-rules .form-control {
    min-height: 40px;
    border-color: #dfe5ec;
    border-radius: 11px;
    background: #fbfcfe;
    font-size: .72rem;
}

.dh-wp-preset-strip,
.dh-wp-type-row,
.dh-wp-repeat-days,
.dh-wp-repeat-for {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
}

.dh-wp-preset-btn,
.dh-wp-type-btn {
    min-height: 33px;
    padding: .3rem .72rem;
    border: 1px solid #dce3ea;
    border-radius: 999px;
    background: #fff;
    color: #465267;
    font-size: .67rem;
    font-weight: 800;
    cursor: pointer;
}

.dh-wp-preset-btn:hover,
.dh-wp-preset-btn:focus-visible,
.dh-wp-preset-btn.is-picked {
    border-color: #d9a412;
    background: #f1bc16;
    color: #172337;
}

.dh-wp-type-btn.is-active[data-wp-type="available"] {
    border-color: var(--dh-wp-green);
    background: #e8f7ee;
    color: var(--dh-wp-green);
}

.dh-wp-type-btn.is-active[data-wp-type="busy"] {
    border-color: var(--dh-wp-gold);
    background: #fff8df;
    color: #765400;
}

.dh-wp-type-btn.is-active[data-wp-type="away"] {
    border-color: var(--dh-wp-red);
    background: #fdecea;
    color: var(--dh-wp-red);
}

.dh-wp-repeat-summary {
    cursor: pointer;
}

.dh-wp-repeat-for {
    align-items: center;
    font-size: .72rem;
}

.dh-wp-repeat-weeks {
    width: auto;
}

.dh-wp-repeat-day {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
}

.dh-wp-repeat-label {
    display: grid;
    min-width: 31px;
    min-height: 31px;
    padding: .2rem .45rem;
    place-items: center;
    border: 1px solid #dce3ea;
    border-radius: 9px;
    background: #fff;
    color: #536075;
    font-size: .68rem;
    font-weight: 800;
    cursor: pointer;
    user-select: none;
}

.dh-wp-repeat-day:focus-visible + .dh-wp-repeat-label {
    outline: 2px solid rgba(24, 128, 106, .35);
    outline-offset: 2px;
}

.dh-wp-repeat-day:checked + .dh-wp-repeat-label {
    border-color: #d8a20f;
    background: #f1bc16;
    color: #172337;
}

.dh-wp-rules {
    border: 1px solid #e1e6ed;
    border-radius: 22px;
    box-shadow: 0 14px 34px rgba(25, 36, 56, .06);
}

.dh-wp-rules-summary {
    display: flex;
    gap: .65rem;
    align-items: center;
    list-style: none;
    cursor: pointer;
}

.dh-wp-rules-summary::-webkit-details-marker {
    display: none;
}

.dh-wp-rule-card {
    margin-bottom: .75rem;
    padding: 1rem;
    border: 1px solid #e2e7ed;
    border-radius: 16px;
    background: #f9fafc;
}

@media (max-width: 1399.98px) {
    .dh-wp-topbar {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .dh-wp-topbar__visual {
        display: none;
    }
}

@media (max-width: 1199.98px) {
    .dh-wp-grid {
        grid-template-columns: repeat(7, minmax(132px, 1fr));
    }
}

@media (max-width: 991.98px) {
    .dh-wp-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767.98px) {
    .dh-wp-topbar {
        grid-template-columns: 1fr;
        min-height: auto;
        padding: 1.4rem;
        border-radius: 24px;
    }

    .dh-wp-topbar__visual {
        display: none;
    }

    .dh-wp-week-nav {
        grid-column: 1;
        grid-row: 2;
    }

    .dh-wp-topbar__actions {
        grid-column: 1;
    }

    .dh-wp-topbar__actions,
    .dh-wp-topbar__actions form,
    .dh-wp-topbar__actions .btn {
        width: 100%;
    }
}

@media (max-width: 575.98px) {
    .dh-wp-metrics {
        grid-template-columns: 1fr;
        margin: -1rem .65rem 1.2rem;
    }

    .dh-wp-shared-panel__body {
        grid-template-columns: 1fr;
        padding: 1rem;
    }

    .dh-wp-field--actions {
        align-items: stretch;
        flex-direction: column;
    }

    .dh-wp-field--actions .btn {
        width: 100%;
    }

    .dh-wp-rules {
        padding: 1rem !important;
        border-radius: 19px;
    }
}

/* Premium digital ticketing workspace */
.dh-ticket-workspace {
    --dh-ticket-ink: #192438;
    --dh-ticket-muted: #68758a;
    --dh-ticket-line: #e1e7ed;
    --dh-ticket-gold: #dca90f;
    --dh-ticket-green: #177245;
    color: var(--dh-ticket-ink);
}

.dh-ticket-hero {
    position: relative;
    min-height: 230px;
    overflow: hidden;
    padding: 2rem 2.1rem;
    border-color: #dde7e4;
    border-radius: 30px;
    background:
        radial-gradient(circle at 86% 15%, rgba(241, 188, 22, .24), transparent 29%),
        radial-gradient(circle at 72% 112%, rgba(23, 114, 69, .15), transparent 30%),
        linear-gradient(135deg, #fbfdfc, #eef8f3 58%, #f4f6fa);
    box-shadow: 0 24px 52px rgba(25, 36, 56, .09);
}

.dh-ticket-hero::after {
    position: absolute;
    right: 1.9rem;
    bottom: -4rem;
    width: 11rem;
    height: 11rem;
    border: 1px solid rgba(255, 255, 255, .78);
    border-radius: 38px;
    background: rgba(255, 255, 255, .32);
    content: "";
    transform: rotate(18deg);
}

.dh-ticket-hero .dh-context-hero__content,
.dh-ticket-hero .dh-context-hero__actions {
    position: relative;
    z-index: 1;
}

.dh-ticket-hero .dh-context-hero__content {
    max-width: 790px;
}

.dh-ticket-hero .dh-context-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    color: #516052;
}

.dh-ticket-hero__eyebrow-icon {
    display: grid;
    width: 31px;
    height: 31px;
    place-items: center;
    border: 1px solid rgba(220, 169, 15, .25);
    border-radius: 11px;
    background: rgba(241, 188, 22, .17);
    color: #946f05;
}

.dh-ticket-hero__eyebrow-glyph {
    width: 17px;
    height: 17px;
}

.dh-ticket-hero .dh-context-hero__title {
    max-width: 740px;
    color: var(--dh-ticket-ink);
    font-size: clamp(2rem, 3.2vw, 3.15rem);
    letter-spacing: -.045em;
}

.dh-ticket-hero .dh-context-hero__copy {
    max-width: 760px;
    color: var(--dh-ticket-muted);
    font-size: 1rem;
    line-height: 1.65;
}

.dh-ticket-hero .btn {
    min-height: 44px;
    border-radius: 14px;
    font-size: .76rem;
    font-weight: 800;
}

.dh-ticket-metrics {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    margin: -2.05rem 1.15rem 1.35rem;
    position: relative;
    z-index: 2;
}

.dh-ticket-metric {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: .8rem;
    align-items: center;
    min-height: 100px;
    padding: .95rem;
    border-color: var(--dh-ticket-line);
    border-radius: 19px;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 17px 34px rgba(25, 36, 56, .08);
}

.dh-ticket-metric__icon {
    display: grid !important;
    width: 42px;
    height: 42px;
    margin: 0 !important;
    place-items: center;
    border-radius: 14px;
    background: #f2f5f7;
    color: #536176 !important;
}

.dh-ticket-metric.is-issued .dh-ticket-metric__icon {
    background: #fff3cc;
    color: #9b7102 !important;
}

.dh-ticket-metric.is-checked .dh-ticket-metric__icon {
    background: #dcefe9;
    color: #14705e !important;
}

.dh-ticket-metric.is-pending .dh-ticket-metric__icon {
    background: #f4e6dd;
    color: #a65634 !important;
}

.dh-ticket-metric.is-today .dh-ticket-metric__icon {
    background: #e3ecf8;
    color: #3c6593 !important;
}

.dh-ticket-metric.is-orders .dh-ticket-metric__icon {
    background: #e8e5f5;
    color: #60539b !important;
}

.dh-ticket-metric__glyph {
    width: 21px;
    height: 21px;
}

.dh-ticket-metric strong {
    font-size: 1.45rem;
    letter-spacing: -.035em;
}

.dh-ticket-metric div > span {
    margin-top: .28rem;
    color: var(--dh-ticket-muted);
    font-size: .76rem;
    font-weight: 700;
    line-height: 1.25;
}

.dh-ticket-section-nav {
    margin-bottom: 1.35rem;
    padding: .42rem;
    border: 1px solid var(--dh-ticket-line);
    border-radius: 18px;
    background: rgba(255, 255, 255, .82);
    box-shadow: 0 12px 28px rgba(25, 36, 56, .055);
    backdrop-filter: blur(16px);
}

.dh-ticket-section-nav .dh-page-section-card {
    display: flex;
    min-width: 0;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    border: 0;
    border-radius: 13px;
    background: transparent;
    box-shadow: none;
}

.dh-ticket-section-nav .dh-page-section-card:hover,
.dh-ticket-section-nav .dh-page-section-card:focus-visible {
    background: #f4f7f8;
    transform: none;
}

.dh-ticket-section-nav .dh-page-section-card.is-current {
    background: var(--dh-ticket-ink);
    color: #fff;
}

.dh-ticket-section-nav__icon {
    width: 17px;
    height: 17px;
    flex: 0 0 auto;
}

.dh-ticket-layout > [class*="col-"] {
    min-width: 0;
}

.dh-ticket-panel,
.dh-ticket-not-ready {
    scroll-margin-top: 6rem;
    border-color: var(--dh-ticket-line);
    border-radius: 24px;
    background:
        radial-gradient(circle at top right, rgba(241, 188, 22, .075), transparent 31%),
        rgba(255, 255, 255, .97);
    box-shadow: 0 18px 40px rgba(25, 36, 56, .065);
}

.dh-ticket-settings-panel {
    border-top: 4px solid #dca90f;
}

.dh-ticket-checkin-panel {
    border-top: 4px solid #177245;
}

.dh-ticket-create-panel {
    border-top: 4px solid #3c6593;
}

.dh-ticket-catalog-panel {
    border-top: 4px solid #60539b;
}

.dh-ticket-board-card {
    border-top: 4px solid #192438;
}

.dh-ticket-panel-head {
    display: flex;
    align-items: flex-start;
    gap: .8rem;
    margin-bottom: 1.1rem;
}

.dh-ticket-panel-head > span {
    display: grid;
    width: 40px;
    height: 40px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 13px;
    background: #f0f4f6;
    color: #536176;
}

.dh-ticket-settings-panel .dh-ticket-panel-head > span {
    background: #fff3cc;
    color: #946f05;
}

.dh-ticket-checkin-panel .dh-ticket-panel-head > span {
    background: #dcefe9;
    color: #14705e;
}

.dh-ticket-create-panel .dh-ticket-panel-head > span {
    background: #e3ecf8;
    color: #3c6593;
}

.dh-ticket-catalog-panel .dh-ticket-panel-head > span {
    background: #e8e5f5;
    color: #60539b;
}

.dh-ticket-board-card .dh-ticket-panel-head > span {
    background: #e8edf1;
    color: #25344b;
}

.dh-ticket-panel-head__glyph {
    width: 20px;
    height: 20px;
}

.dh-ticket-panel-head h3 {
    color: var(--dh-ticket-ink);
    font-weight: 850;
    letter-spacing: -.018em;
}

.dh-ticket-workspace .dh-toggle-row {
    border-color: #e1e7ed;
    border-radius: 17px;
    background: #f8fafb;
}

.dh-ticket-workspace .form-control,
.dh-ticket-workspace .form-select {
    border-color: #dfe5eb;
    border-radius: 13px;
    background-color: #fbfcfd;
}

.dh-ticket-workspace .form-control:focus,
.dh-ticket-workspace .form-select:focus {
    border-color: rgba(23, 114, 69, .48);
    box-shadow: 0 0 0 .22rem rgba(23, 114, 69, .1);
}

.dh-ticket-checkin-panel .input-group {
    padding: .3rem;
    border: 1px solid #dfe7e4;
    border-radius: 16px;
    background: #f7faf9;
}

.dh-ticket-checkin-panel .input-group .form-control {
    border: 0;
    background: transparent;
    box-shadow: none;
}

.dh-ticket-checkin-panel .input-group .btn {
    border-radius: 12px !important;
}

.dh-ticket-scanner-video {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    border: 1px solid rgba(15, 23, 42, .12);
    border-radius: 18px;
    background: #111827;
    object-fit: cover;
}

.dh-ticket-prefill {
    border-color: #cfe0ef;
    background: #eef6fc;
    color: #294e71;
}

.dh-ticket-prefill > span {
    display: grid;
    width: 34px;
    height: 34px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 11px;
    background: #dcebf7;
}

.dh-ticket-prefill__glyph {
    width: 18px;
    height: 18px;
}

.dh-ticket-editor-shell {
    position: relative;
    overflow: visible;
}

.dh-ticket-workspace .ql-toolbar.ql-snow {
    border-color: #dfe5eb;
    border-radius: 13px 13px 0 0;
    background: #f7f9fb;
}

.dh-ticket-workspace .ql-container.ql-snow {
    margin-bottom: .25rem;
    border-color: #dfe5eb;
    border-radius: 0 0 13px 13px;
    background: #fff;
    font-family: inherit;
    font-size: .9375rem;
}

.dh-ticket-workspace .ql-editor {
    min-height: 86px;
    max-height: 220px;
    overflow-y: auto;
}

.dh-ticket-type-filter {
    max-width: 320px;
}

.dh-ticket-catalog-panel .dh-list-card {
    border-color: #e1e6ec;
    border-radius: 18px;
    background: #fafbfd;
    box-shadow: none;
}

.dh-ticket-catalog-panel .dh-list-card[hidden] {
    display: none;
}

.dh-ticket-type-board__item {
    border-color: #e0e6ec;
    border-radius: 20px;
    box-shadow: 0 12px 28px rgba(25, 36, 56, .05);
}

.dh-ticket-type-board__head {
    min-height: 90px;
}

.dh-ticket-type-board__chevron {
    min-width: 72px;
    text-align: center;
}

.dh-ticket-order-card {
    border-color: #e1e6ec;
    background: #fbfcfd;
}

.dh-ticket-pass-row {
    border-color: #e1e6ec;
    background: #f5f8fa;
}

@media (max-width: 1199.98px) {
    .dh-ticket-metrics {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 991.98px) {
    .dh-ticket-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        margin: -1.5rem .75rem 1.25rem;
    }

    .dh-ticket-section-nav {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 767.98px) {
    .dh-ticket-hero {
        min-height: auto;
        padding: 1.45rem;
        border-radius: 24px;
    }

    .dh-ticket-hero::after {
        display: none;
    }

    .dh-ticket-hero .dh-context-hero__actions,
    .dh-ticket-hero .dh-context-hero__actions .btn {
        width: 100%;
    }

    .dh-ticket-section-nav {
        display: flex;
        justify-content: flex-start;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .dh-ticket-section-nav::-webkit-scrollbar {
        display: none;
    }

    .dh-ticket-section-nav .dh-page-section-card {
        min-width: max-content;
    }
}

@media (max-width: 575.98px) {
    .dh-ticket-metrics {
        grid-template-columns: 1fr;
        margin: -1rem .65rem 1.2rem;
    }

    .dh-ticket-metric {
        min-height: 82px;
    }

    .dh-ticket-panel,
    .dh-ticket-not-ready {
        padding: 1rem !important;
        border-radius: 20px;
    }

    .dh-ticket-type-filter,
    .dh-ticket-workspace .input-group,
    .dh-ticket-workspace .input-group .btn {
        width: 100%;
    }

    .dh-ticket-workspace .input-group {
        display: grid;
        gap: .35rem;
    }
}

/* Premium staff daily command center */
.dh-staff-command {
    --dh-staff-ink: #192438;
    --dh-staff-muted: #69768a;
    --dh-staff-line: #e1e7ed;
    --dh-staff-green: #177245;
    color: var(--dh-staff-ink);
}

.dh-staff-command-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(290px, 360px);
    gap: 1.4rem;
    align-items: stretch;
    min-height: 290px;
    overflow: hidden;
    margin-bottom: 1.35rem;
    padding: 2rem;
    border: 1px solid #dce6e2;
    border-radius: 30px;
    background:
        radial-gradient(circle at 88% 7%, rgba(241, 188, 22, .23), transparent 28%),
        radial-gradient(circle at 64% 118%, rgba(23, 114, 69, .14), transparent 31%),
        linear-gradient(135deg, #fbfdfc, #edf7f3 58%, #eef3f8);
    box-shadow: 0 24px 52px rgba(25, 36, 56, .09);
}

.dh-staff-command-hero::after {
    position: absolute;
    inset: auto auto -7.5rem 46%;
    width: 18rem;
    height: 18rem;
    border: 1px solid rgba(255, 255, 255, .72);
    border-radius: 50%;
    background: rgba(255, 255, 255, .12);
    content: "";
    pointer-events: none;
}

.dh-staff-command-hero__content,
.dh-staff-next {
    position: relative;
    z-index: 1;
}

.dh-staff-command-hero__content {
    display: flex;
    min-width: 0;
    max-width: 760px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
}

.dh-staff-command-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .48rem;
    margin-bottom: .8rem;
    color: #52645d;
    font-size: .72rem;
    font-weight: 850;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.dh-staff-command-hero__eyebrow > span {
    display: grid;
    width: 30px;
    height: 30px;
    place-items: center;
    border: 1px solid rgba(220, 169, 15, .24);
    border-radius: 10px;
    background: rgba(241, 188, 22, .17);
    color: #946f05;
}

.dh-staff-command-hero__eyebrow-glyph {
    width: 16px;
    height: 16px;
}

.dh-staff-command-hero h1 {
    max-width: 720px;
    margin: 0;
    color: var(--dh-staff-ink);
    font-size: clamp(2.15rem, 3.8vw, 3.55rem);
    font-weight: 880;
    letter-spacing: -.052em;
    line-height: 1.02;
}

.dh-staff-command-hero__content > p {
    max-width: 690px;
    margin: 1rem 0 0;
    color: var(--dh-staff-muted);
    font-size: 1rem;
    line-height: 1.65;
}

.dh-staff-command-hero__identity {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .45rem;
    margin-top: 1rem;
    color: var(--dh-staff-ink);
    font-size: .78rem;
}

.dh-staff-command-hero__identity > span {
    display: grid;
    width: 29px;
    height: 29px;
    place-items: center;
    border-radius: 50%;
    background: #fff;
    color: #4c5c70;
    box-shadow: 0 7px 18px rgba(25, 36, 56, .08);
}

.dh-staff-command-hero__identity small {
    color: var(--dh-staff-muted);
}

.dh-staff-command-hero__identity-glyph {
    width: 15px;
    height: 15px;
}

.dh-staff-command-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: .65rem;
    margin-top: 1.25rem;
}

.dh-staff-command-hero__actions .btn {
    min-height: 44px;
    border-radius: 14px;
    font-size: .76rem;
    font-weight: 800;
}

.dh-staff-next {
    display: flex;
    min-width: 0;
    flex-direction: column;
    align-self: center;
    padding: 1.25rem;
    border: 1px solid rgba(255, 255, 255, .82);
    border-radius: 23px;
    background: rgba(255, 255, 255, .78);
    box-shadow: 0 20px 40px rgba(25, 36, 56, .09);
    backdrop-filter: blur(18px);
}

.dh-staff-next__head {
    display: flex;
    align-items: center;
    gap: .5rem;
    margin-bottom: 1rem;
    color: var(--dh-staff-muted);
    font-size: .7rem;
    font-weight: 850;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.dh-staff-next__head > span {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 11px;
    background: #dcefe9;
    color: #14705e;
}

.dh-staff-next__glyph {
    width: 18px;
    height: 18px;
}

.dh-staff-next > strong {
    color: var(--dh-staff-ink);
    font-size: 1.08rem;
    line-height: 1.35;
}

.dh-staff-next > time {
    margin-top: .45rem;
    color: #14705e;
    font-size: .82rem;
    font-weight: 800;
}

.dh-staff-next > p {
    margin: .55rem 0 0;
    color: var(--dh-staff-muted);
    font-size: .78rem;
    line-height: 1.45;
}

.dh-staff-next__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    margin-top: 1.1rem;
    padding-top: .9rem;
    border-top: 1px solid var(--dh-staff-line);
}

.dh-staff-next__footer > a {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border: 1px solid var(--dh-staff-line);
    border-radius: 11px;
    color: var(--dh-staff-ink);
    background: #fff;
}

.dh-staff-next__footer > a:hover {
    border-color: rgba(23, 114, 69, .32);
    color: var(--dh-staff-green);
}

.dh-staff-next__edit-glyph {
    width: 17px;
    height: 17px;
}

.dh-staff-command-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: .9rem;
    position: relative;
    z-index: 2;
    margin: -2rem 1.1rem 1.4rem;
}

.dh-staff-command-metrics article {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: .85rem;
    align-items: center;
    min-height: 112px;
    padding: 1rem;
    border: 1px solid var(--dh-staff-line);
    border-radius: 19px;
    background: rgba(255, 255, 255, .97);
    box-shadow: 0 17px 34px rgba(25, 36, 56, .08);
}

.dh-staff-command-metrics article > span {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border-radius: 14px;
    background: #eef2f5;
    color: #536176;
}

.dh-staff-command-metrics .is-agenda > span {
    background: #e3ecf8;
    color: #3c6593;
}

.dh-staff-command-metrics .is-today > span {
    background: #fff3cc;
    color: #9b7102;
}

.dh-staff-command-metrics .is-clients > span {
    background: #dcefe9;
    color: #14705e;
}

.dh-staff-command-metrics .is-pay > span {
    background: #e8e5f5;
    color: #60539b;
}

.dh-staff-command-metric__glyph {
    width: 21px;
    height: 21px;
}

.dh-staff-command-metrics strong,
.dh-staff-command-metrics small,
.dh-staff-command-metrics p {
    display: block;
}

.dh-staff-command-metrics strong {
    color: var(--dh-staff-ink);
    font-size: 1.4rem;
    font-weight: 880;
    letter-spacing: -.035em;
    line-height: 1.08;
}

.dh-staff-command-metrics small {
    margin-top: .24rem;
    color: var(--dh-staff-ink);
    font-size: .76rem;
    font-weight: 800;
}

.dh-staff-command-metrics p {
    margin: .16rem 0 0;
    color: var(--dh-staff-muted);
    font-size: .68rem;
    line-height: 1.35;
}

.dh-staff-command-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(320px, .8fr);
    gap: 1.2rem;
    align-items: start;
}

.dh-staff-command-grid.is-side-only {
    grid-template-columns: minmax(0, 1fr);
}

.dh-staff-command-grid.is-side-only .dh-staff-command-side {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.dh-staff-command .dh-card {
    border-color: var(--dh-staff-line);
    border-radius: 24px;
    background:
        radial-gradient(circle at top right, rgba(241, 188, 22, .06), transparent 29%),
        rgba(255, 255, 255, .97);
    box-shadow: 0 18px 40px rgba(25, 36, 56, .065);
}

.dh-staff-agenda-panel,
.dh-staff-actions-panel,
.dh-staff-profile-panel {
    padding: 1.25rem;
}

.dh-staff-agenda-panel {
    min-width: 0;
    border-top: 4px solid #177245 !important;
}

.dh-staff-actions-panel {
    border-top: 4px solid #dca90f !important;
}

.dh-staff-profile-panel {
    border-top: 4px solid #3c6593 !important;
}

.dh-staff-command-side {
    display: grid;
    gap: 1.2rem;
}

.dh-staff-panel-head {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: .75rem;
    align-items: start;
    margin-bottom: 1rem;
}

.dh-staff-panel-head > span {
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    border-radius: 13px;
    background: #dcefe9;
    color: #14705e;
}

.dh-staff-actions-panel .dh-staff-panel-head > span {
    background: #fff3cc;
    color: #946f05;
}

.dh-staff-profile-panel .dh-staff-panel-head > span {
    background: #e3ecf8;
    color: #3c6593;
}

.dh-staff-panel-head__glyph {
    width: 20px;
    height: 20px;
}

.dh-staff-panel-head h2 {
    margin: 0;
    color: var(--dh-staff-ink);
    font-size: 1rem;
    font-weight: 850;
    letter-spacing: -.018em;
}

.dh-staff-panel-head p {
    margin: .2rem 0 0;
    color: var(--dh-staff-muted);
    font-size: .76rem;
    line-height: 1.45;
}

.dh-staff-panel-head .btn {
    border-radius: 11px;
    font-size: .7rem;
    font-weight: 800;
}

.dh-staff-agenda-list {
    display: grid;
    gap: .65rem;
}

.dh-staff-agenda-row {
    display: grid;
    grid-template-columns: minmax(120px, 160px) minmax(0, 1fr) auto auto;
    gap: .8rem;
    align-items: center;
    min-width: 0;
    padding: .85rem;
    border: 1px solid #e3e8ed;
    border-radius: 16px;
    color: var(--dh-staff-ink);
    background: #fafbfd;
    text-decoration: none;
    transition: border-color 160ms ease, background 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.dh-staff-agenda-row:hover,
.dh-staff-agenda-row:focus-visible {
    border-color: rgba(23, 114, 69, .3);
    color: var(--dh-staff-ink);
    background: #f7fbf9;
    box-shadow: 0 12px 25px rgba(25, 36, 56, .06);
    transform: translateY(-1px);
}

.dh-staff-agenda-row > time {
    color: #14705e;
    font-size: .74rem;
    font-weight: 800;
    line-height: 1.35;
}

.dh-staff-agenda-row__main {
    display: grid;
    min-width: 0;
    gap: .2rem;
}

.dh-staff-agenda-row__main strong,
.dh-staff-agenda-row__main small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dh-staff-agenda-row__main strong {
    font-size: .86rem;
}

.dh-staff-agenda-row__main small {
    color: var(--dh-staff-muted);
    font-size: .72rem;
}

.dh-staff-agenda-row__edit {
    width: 17px;
    height: 17px;
    color: #7a8798;
}

.dh-staff-action-list {
    display: grid;
    gap: .65rem;
}

.dh-staff-action-list > a {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: .7rem;
    align-items: center;
    min-width: 0;
    padding: .78rem;
    border: 1px solid #e3e8ed;
    border-radius: 15px;
    color: var(--dh-staff-ink);
    background: #fafbfd;
    text-decoration: none;
    transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.dh-staff-action-list > a:hover,
.dh-staff-action-list > a:focus-visible {
    border-color: rgba(220, 169, 15, .34);
    color: var(--dh-staff-ink);
    background: #fffdf7;
    transform: translateY(-1px);
}

.dh-staff-action-list > a > span {
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    border-radius: 12px;
    background: #eef2f5;
    color: #536176;
}

.dh-staff-action__glyph {
    width: 18px;
    height: 18px;
}

.dh-staff-action-list div {
    display: grid;
    min-width: 0;
    gap: .12rem;
}

.dh-staff-action-list strong,
.dh-staff-action-list small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dh-staff-action-list strong {
    font-size: .8rem;
}

.dh-staff-action-list small {
    color: var(--dh-staff-muted);
    font-size: .68rem;
}

.dh-staff-action-list b {
    color: var(--dh-staff-ink);
    font-size: .78rem;
    white-space: nowrap;
}

.dh-staff-action__edit {
    width: 17px;
    height: 17px;
    color: #7a8798;
}

.dh-staff-profile-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .65rem;
    margin: 0;
}

.dh-staff-profile-list > div {
    min-width: 0;
    padding: .75rem;
    border: 1px solid #e3e8ed;
    border-radius: 14px;
    background: #fafbfd;
}

.dh-staff-profile-list > .is-wide {
    grid-column: 1 / -1;
}

.dh-staff-profile-list dt {
    color: var(--dh-staff-muted);
    font-size: .66rem;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.dh-staff-profile-list dd {
    margin: .24rem 0 0;
    color: var(--dh-staff-ink);
    font-size: .76rem;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

@media (max-width: 1199.98px) {
    .dh-staff-command-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .dh-staff-command-side {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 991.98px) {
    .dh-staff-command-hero {
        grid-template-columns: minmax(0, 1fr) minmax(260px, 320px);
    }

    .dh-staff-command-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767.98px) {
    .dh-staff-command-hero {
        grid-template-columns: minmax(0, 1fr);
        min-height: auto;
        padding: 1.4rem;
        border-radius: 24px;
    }

    .dh-staff-command-hero::after {
        display: none;
    }

    .dh-staff-next {
        width: 100%;
    }

    .dh-staff-command-side {
        grid-template-columns: minmax(0, 1fr);
    }

    .dh-staff-command-grid.is-side-only .dh-staff-command-side {
        grid-template-columns: minmax(0, 1fr);
    }

    .dh-staff-agenda-row {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .dh-staff-agenda-row > time,
    .dh-staff-agenda-row__main {
        grid-column: 1;
    }

    .dh-staff-agenda-row > .dh-badge,
    .dh-staff-agenda-row__edit {
        grid-column: 2;
        grid-row: 1;
    }

    .dh-staff-agenda-row__edit {
        grid-row: 2;
        justify-self: end;
    }
}

@media (max-width: 575.98px) {
    .dh-staff-command-hero__actions,
    .dh-staff-command-hero__actions .btn {
        width: 100%;
    }

    .dh-staff-command-metrics {
        grid-template-columns: minmax(0, 1fr);
        margin: -1rem .65rem 1.2rem;
    }

    .dh-staff-command-metrics article {
        min-height: 90px;
    }

    .dh-staff-agenda-panel,
    .dh-staff-actions-panel,
    .dh-staff-profile-panel {
        padding: 1rem;
        border-radius: 20px !important;
    }

    .dh-staff-panel-head {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .dh-staff-panel-head > .btn {
        grid-column: 1 / -1;
        width: 100%;
    }

    .dh-staff-profile-list {
        grid-template-columns: minmax(0, 1fr);
    }

    .dh-staff-profile-list > .is-wide {
        grid-column: auto;
    }
}

/* Premium staff customer diary and shared conversation timeline */
.dh-staff-diary {
    --dh-diary-ink: #172238;
    --dh-diary-muted: #687487;
    --dh-diary-line: rgba(23, 34, 56, .1);
    --dh-diary-green: #15705d;
    --dh-diary-green-soft: #e5f3ee;
    display: grid;
    gap: 1.25rem;
    color: var(--dh-diary-ink);
}

.dh-staff-diary-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr);
    gap: clamp(1.5rem, 4vw, 4rem);
    min-height: 280px;
    padding: clamp(1.6rem, 3.5vw, 3rem);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .09);
    border-radius: 30px;
    background:
        radial-gradient(circle at 82% 7%, rgba(241, 188, 22, .24), transparent 17rem),
        radial-gradient(circle at 3% 108%, rgba(41, 152, 123, .25), transparent 23rem),
        linear-gradient(138deg, #111b2d 0%, #17263a 57%, #163d3b 100%);
    box-shadow: 0 28px 70px rgba(17, 27, 45, .19);
    color: #fff;
}

.dh-staff-diary-hero::before,
.dh-staff-diary-hero::after {
    position: absolute;
    content: "";
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 50%;
    pointer-events: none;
}

.dh-staff-diary-hero::before {
    width: 25rem;
    height: 25rem;
    top: -18rem;
    right: -5rem;
}

.dh-staff-diary-hero::after {
    width: 12rem;
    height: 12rem;
    right: 26%;
    bottom: -9rem;
}

.dh-staff-diary-hero__content,
.dh-staff-diary-hero__actions {
    position: relative;
    z-index: 1;
}

.dh-staff-diary-hero__content {
    align-self: center;
}

.dh-staff-diary-hero__eyebrow {
    display: flex;
    align-items: center;
    gap: .55rem;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, .66);
    font-size: .7rem;
    font-weight: 850;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.dh-staff-diary-hero__eyebrow > span {
    display: grid;
    width: 31px;
    height: 31px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 10px;
    background: rgba(255, 255, 255, .08);
    color: #f5d97f;
}

.dh-staff-diary-hero__eyebrow-glyph {
    width: 16px;
    height: 16px;
}

.dh-staff-diary-hero h1 {
    max-width: 44rem;
    margin: 0;
    color: #fff;
    font-size: clamp(2rem, 4vw, 3.35rem);
    font-weight: 900;
    letter-spacing: -.045em;
    line-height: .98;
}

.dh-staff-diary-hero__content > p {
    max-width: 43rem;
    margin: 1rem 0 0;
    color: rgba(255, 255, 255, .7);
    font-size: clamp(.9rem, 1.4vw, 1.03rem);
    line-height: 1.65;
}

.dh-staff-diary-hero__identity {
    display: inline-flex;
    align-items: center;
    gap: .7rem;
    margin-top: 1.25rem;
    padding: .58rem .8rem;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 14px;
    background: rgba(255, 255, 255, .07);
}

.dh-staff-diary-hero__identity > span {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 11px;
    background: rgba(241, 188, 22, .16);
    color: #f5d97f;
}

.dh-staff-diary-hero__identity-glyph {
    width: 17px;
    height: 17px;
}

.dh-staff-diary-hero__identity div {
    display: grid;
    gap: .05rem;
}

.dh-staff-diary-hero__identity strong {
    font-size: .84rem;
}

.dh-staff-diary-hero__identity small {
    color: rgba(255, 255, 255, .62);
    font-size: .67rem;
}

.dh-staff-diary-hero__actions {
    align-self: center;
    display: grid;
    gap: .65rem;
    padding: 1.15rem;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 22px;
    background: rgba(255, 255, 255, .07);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05);
    backdrop-filter: blur(10px);
}

.dh-staff-diary-hero__actions .btn {
    justify-content: center;
    min-height: 44px;
    border-radius: 13px;
    font-size: .78rem;
    font-weight: 850;
}

.dh-staff-diary-hero__actions .btn-outline-light {
    border-color: rgba(255, 255, 255, .22);
}

.dh-staff-diary-hero__actions > small {
    padding: 0 .2rem .35rem;
    color: rgba(255, 255, 255, .58);
    font-size: .67rem;
    line-height: 1.5;
    text-align: center;
}

.dh-staff-diary-unavailable {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.35rem;
    border-radius: 22px;
}

.dh-staff-diary-unavailable > span {
    display: grid;
    flex: 0 0 auto;
    width: 46px;
    height: 46px;
    place-items: center;
    border-radius: 15px;
    background: #fff3cc;
    color: #946f05;
}

.dh-staff-diary-unavailable__glyph {
    width: 22px;
    height: 22px;
}

.dh-staff-diary-unavailable h2,
.dh-staff-diary-unavailable p {
    margin: 0;
}

.dh-staff-diary-unavailable h2 {
    font-size: .95rem;
    font-weight: 850;
}

.dh-staff-diary-unavailable p {
    margin-top: .25rem;
    color: var(--dh-diary-muted);
    font-size: .76rem;
}

.dh-staff-diary-contexts {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
    margin: -2.05rem 1.25rem 0;
    padding: .72rem;
    border: 1px solid var(--dh-diary-line);
    border-radius: 18px;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 16px 36px rgba(23, 34, 56, .09);
    z-index: 2;
}

.dh-staff-diary-contexts > a {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    min-height: 39px;
    padding: .55rem .82rem;
    border: 1px solid #e2e7ec;
    border-radius: 12px;
    color: #556176;
    background: #f9fafb;
    font-size: .74rem;
    font-weight: 800;
    text-decoration: none;
    transition: border-color 160ms ease, color 160ms ease, background 160ms ease, transform 160ms ease;
}

.dh-staff-diary-contexts > a:hover,
.dh-staff-diary-contexts > a:focus-visible,
.dh-staff-diary-contexts > a.is-active {
    border-color: rgba(21, 112, 93, .24);
    color: #12614f;
    background: var(--dh-diary-green-soft);
    transform: translateY(-1px);
}

.dh-staff-diary-contexts__glyph {
    width: 17px;
    height: 17px;
}

.dh-staff-diary-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: .85rem;
}

.dh-staff-diary-metrics article {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: .75rem;
    align-items: center;
    min-width: 0;
    min-height: 112px;
    padding: 1rem;
    overflow: hidden;
    border: 1px solid var(--dh-diary-line);
    border-radius: 19px;
    background: rgba(255, 255, 255, .97);
    box-shadow: 0 12px 28px rgba(23, 34, 56, .045);
}

.dh-staff-diary-metrics article > span {
    display: grid;
    width: 43px;
    height: 43px;
    place-items: center;
    border-radius: 14px;
    background: #e6f2ee;
    color: #15705d;
}

.dh-staff-diary-metrics .is-staff > span {
    background: #e5eef9;
    color: #3c6593;
}

.dh-staff-diary-metrics .is-client > span {
    background: #fff3cc;
    color: #946f05;
}

.dh-staff-diary-metrics .is-comments > span {
    background: #f0eafa;
    color: #7552a1;
}

.dh-staff-diary-metric__glyph {
    width: 21px;
    height: 21px;
}

.dh-staff-diary-metrics strong,
.dh-staff-diary-metrics small,
.dh-staff-diary-metrics p {
    display: block;
}

.dh-staff-diary-metrics strong {
    font-size: 1.38rem;
    font-weight: 900;
    letter-spacing: -.035em;
    line-height: 1;
}

.dh-staff-diary-metrics small {
    margin-top: .28rem;
    font-size: .75rem;
    font-weight: 850;
}

.dh-staff-diary-metrics p {
    margin: .14rem 0 0;
    color: var(--dh-diary-muted);
    font-size: .67rem;
    line-height: 1.35;
}

.dh-staff-diary-section-head {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: .75rem;
    align-items: center;
    padding: .4rem .15rem 0;
}

.dh-staff-diary-section-head > span:first-child {
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    border-radius: 13px;
    background: var(--dh-diary-green-soft);
    color: var(--dh-diary-green);
}

.dh-staff-diary-section-head__glyph {
    width: 20px;
    height: 20px;
}

.dh-staff-diary-section-head h2,
.dh-staff-diary-section-head p {
    margin: 0;
}

.dh-staff-diary-section-head h2 {
    font-size: 1rem;
    font-weight: 880;
}

.dh-staff-diary-section-head p {
    margin-top: .18rem;
    color: var(--dh-diary-muted);
    font-size: .75rem;
}

.dh-staff-diary-empty {
    display: grid;
    justify-items: center;
    gap: .8rem;
    padding: 2.6rem 1.5rem;
    border-radius: 24px;
    text-align: center;
}

.dh-staff-diary-empty > span {
    display: grid;
    width: 58px;
    height: 58px;
    place-items: center;
    border-radius: 19px;
    background: var(--dh-diary-green-soft);
    color: var(--dh-diary-green);
}

.dh-staff-diary-empty__glyph {
    width: 27px;
    height: 27px;
}

.dh-staff-diary-timeline {
    position: relative;
    display: grid;
    gap: 1rem;
    padding-left: 1.25rem;
}

.dh-staff-diary-timeline::before {
    position: absolute;
    top: 1.3rem;
    bottom: 1.3rem;
    left: .28rem;
    width: 2px;
    border-radius: 999px;
    background: linear-gradient(#e2c45f, #7fb8a8, #d9e2ea);
    content: "";
}

.dh-staff-diary-entry {
    position: relative;
    min-width: 0;
    padding: clamp(1rem, 2.5vw, 1.4rem);
    border-color: var(--dh-diary-line);
    border-radius: 24px;
    box-shadow: 0 16px 38px rgba(23, 34, 56, .055);
}

.dh-staff-diary-entry::before {
    position: absolute;
    top: 1.6rem;
    left: -1.45rem;
    width: 12px;
    height: 12px;
    border: 3px solid #fff;
    border-radius: 50%;
    background: #89a1b6;
    box-shadow: 0 0 0 1px #ced8e1;
    content: "";
}

.dh-staff-diary-entry.is-staff::before {
    background: #3c6593;
}

.dh-staff-diary-entry.is-client::before {
    background: #d4a30f;
}

.dh-staff-diary-entry.is-pinned {
    border-color: rgba(212, 163, 15, .28);
    background:
        radial-gradient(circle at top right, rgba(241, 188, 22, .09), transparent 30%),
        #fff;
}

.dh-staff-diary-entry__head {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: .8rem;
    align-items: start;
}

.dh-staff-diary-entry__author-icon {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 14px;
    background: #e5eef9;
    color: #3c6593;
}

.dh-staff-diary-entry.is-client .dh-staff-diary-entry__author-icon {
    background: #fff3cc;
    color: #946f05;
}

.dh-staff-diary-entry__author-glyph {
    width: 21px;
    height: 21px;
}

.dh-staff-diary-entry__title {
    display: grid;
    min-width: 0;
    gap: .32rem;
}

.dh-staff-diary-entry__title > div {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .4rem;
}

.dh-staff-diary-entry__pinned,
.dh-staff-diary-entry__dog,
.dh-staff-diary-entry__privacy {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    color: #7e620b;
    font-size: .66rem;
    font-weight: 800;
}

.dh-staff-diary-entry__title h3,
.dh-staff-diary-entry__title p {
    margin: 0;
}

.dh-staff-diary-entry__title h3 {
    overflow-wrap: anywhere;
    font-size: 1rem;
    font-weight: 870;
}

.dh-staff-diary-entry__title p {
    color: var(--dh-diary-muted);
    font-size: .7rem;
}

.dh-staff-diary-entry__dog {
    padding: .42rem .6rem;
    border: 1px solid #e1e7ec;
    border-radius: 10px;
    color: #556176;
    background: #f9fafb;
}

.dh-staff-diary-entry__meta-glyph {
    width: 14px;
    height: 14px;
}

.dh-staff-diary-entry__tags {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem;
    margin-top: 1rem;
}

.dh-staff-diary-entry__tags > span {
    padding: .4rem .58rem;
    border: 1px solid #e1e7ec;
    border-radius: 10px;
    color: #5f6b7d;
    background: #f9fafb;
    font-size: .68rem;
}

.dh-staff-diary-entry__tags > span[class^="is-mood-"] {
    border-color: rgba(21, 112, 93, .15);
    color: #15614f;
    background: #f0f8f5;
}

.dh-staff-diary-entry__body {
    margin-top: 1rem;
    color: #2d384b;
    font-size: .82rem;
    line-height: 1.68;
    overflow-wrap: anywhere;
    white-space: pre-wrap;
}

.dh-staff-diary-entry__privacy {
    margin-top: 1rem;
    color: #778396;
    font-weight: 700;
}

.dh-staff-diary-comments {
    margin-top: 1.2rem;
    padding-top: 1.1rem;
    border-top: 1px solid var(--dh-diary-line);
}

.dh-staff-diary-comments > header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: .75rem;
    margin-bottom: .75rem;
}

.dh-staff-diary-comments > header h4,
.dh-staff-diary-comments > header p {
    margin: 0;
}

.dh-staff-diary-comments > header h4 {
    font-size: .82rem;
    font-weight: 850;
}

.dh-staff-diary-comments > header p {
    margin-top: .12rem;
    color: var(--dh-diary-muted);
    font-size: .66rem;
}

.dh-staff-diary-comments > header > span {
    display: grid;
    min-width: 29px;
    height: 29px;
    place-items: center;
    border-radius: 10px;
    background: #eef2f5;
    color: #536176;
    font-size: .7rem;
    font-weight: 850;
}

.dh-staff-diary-comments__empty {
    padding: .78rem;
    border: 1px dashed #dce3e9;
    border-radius: 12px;
    color: var(--dh-diary-muted);
    background: #fafbfd;
    font-size: .72rem;
    text-align: center;
}

.dh-staff-diary-comments__list {
    display: grid;
    gap: .55rem;
}

.dh-staff-diary-comment {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: .65rem;
    padding: .75rem;
    border: 1px solid #e2e7ec;
    border-radius: 14px;
    background: #fafbfd;
}

.dh-staff-diary-comment.is-staff {
    border-color: #cae0f3;
    background: #f4f9fd;
}

.dh-staff-diary-comment > span {
    display: grid;
    width: 31px;
    height: 31px;
    place-items: center;
    border-radius: 10px;
    background: #e8edf1;
    color: #667487;
}

.dh-staff-diary-comment.is-staff > span {
    background: #dcebf7;
    color: #3c6593;
}

.dh-staff-diary-comment__glyph {
    width: 15px;
    height: 15px;
}

.dh-staff-diary-comment header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: .35rem;
}

.dh-staff-diary-comment strong {
    font-size: .72rem;
}

.dh-staff-diary-comment time {
    color: var(--dh-diary-muted);
    font-size: .63rem;
}

.dh-staff-diary-comment p {
    margin: .35rem 0 0;
    color: #3e4a5d;
    font-size: .73rem;
    line-height: 1.55;
    overflow-wrap: anywhere;
}

.dh-staff-diary-reply {
    display: grid;
    gap: .45rem;
    margin-top: .85rem;
    padding: .85rem;
    border: 1px solid #e2e7ec;
    border-radius: 15px;
    background: #f9fafb;
}

.dh-staff-diary-reply > label {
    font-size: .72rem;
    font-weight: 850;
}

.dh-staff-diary-reply > div {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: .6rem;
    align-items: stretch;
}

.dh-staff-diary-reply textarea {
    min-height: 78px;
    resize: vertical;
}

.dh-staff-diary-reply .btn {
    align-self: stretch;
    border-radius: 12px;
    font-size: .72rem;
    font-weight: 850;
}

.dh-staff-diary-reply > small {
    color: var(--dh-diary-muted);
    font-size: .63rem;
}

@media (max-width: 991.98px) {
    .dh-staff-diary-hero {
        grid-template-columns: minmax(0, 1fr) minmax(250px, 300px);
    }

    .dh-staff-diary-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767.98px) {
    .dh-staff-diary-hero {
        grid-template-columns: minmax(0, 1fr);
        min-height: auto;
        padding: 1.4rem;
        border-radius: 24px;
    }

    .dh-staff-diary-hero::after {
        display: none;
    }

    .dh-staff-diary-hero__actions {
        padding: .9rem;
    }

    .dh-staff-diary-contexts {
        margin: -1.7rem .7rem 0;
    }

    .dh-staff-diary-entry__head {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .dh-staff-diary-entry__dog {
        grid-column: 2;
        justify-self: start;
    }
}

@media (max-width: 575.98px) {
    .dh-staff-diary-hero__actions,
    .dh-staff-diary-hero__actions .btn,
    .dh-staff-diary-contexts > a {
        width: 100%;
    }

    .dh-staff-diary-contexts {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
    }

    .dh-staff-diary-metrics {
        grid-template-columns: minmax(0, 1fr);
    }

    .dh-staff-diary-metrics article {
        min-height: 88px;
    }

    .dh-staff-diary-section-head {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .dh-staff-diary-section-head > .dh-badge {
        grid-column: 2;
        justify-self: start;
    }

    .dh-staff-diary-entry {
        border-radius: 20px;
    }

    .dh-staff-diary-reply > div {
        grid-template-columns: minmax(0, 1fr);
    }

    .dh-staff-diary-reply .btn {
        min-height: 42px;
    }
}

/* Premium training journey management for tenant owners and scoped staff */
.dh-manage-journey {
    --dh-journey-ink: #172238;
    --dh-journey-muted: #687487;
    --dh-journey-line: rgba(23, 34, 56, .1);
    --dh-journey-green: #15705d;
    --dh-journey-green-soft: #e5f3ee;
    --dh-journey-gold: #d2a00e;
    display: grid;
    gap: 1.25rem;
    color: var(--dh-journey-ink);
    scroll-behavior: smooth;
}

.dh-manage-journey-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(260px, .6fr);
    gap: clamp(1.5rem, 4vw, 4rem);
    min-height: 330px;
    padding: clamp(1.7rem, 3.7vw, 3.2rem);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .09);
    border-radius: 30px;
    background:
        radial-gradient(circle at 85% 8%, rgba(241, 188, 22, .27), transparent 18rem),
        radial-gradient(circle at 7% 112%, rgba(36, 151, 121, .27), transparent 26rem),
        linear-gradient(137deg, #111a2c 0%, #192a3e 56%, #17423d 100%);
    box-shadow: 0 30px 76px rgba(17, 27, 45, .2);
    color: #fff;
}

.dh-manage-journey-hero::before,
.dh-manage-journey-hero::after {
    position: absolute;
    content: "";
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 50%;
    pointer-events: none;
}

.dh-manage-journey-hero::before {
    width: 28rem;
    height: 28rem;
    top: -20rem;
    right: -5rem;
}

.dh-manage-journey-hero::after {
    width: 13rem;
    height: 13rem;
    right: 30%;
    bottom: -10rem;
}

.dh-manage-journey-hero__content,
.dh-manage-journey-hero__progress {
    position: relative;
    z-index: 1;
}

.dh-manage-journey-hero__content {
    align-self: center;
}

.dh-manage-journey-hero__eyebrow {
    display: flex;
    align-items: center;
    gap: .6rem;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, .66);
    font-size: .7rem;
    font-weight: 850;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.dh-manage-journey-hero__eyebrow > span {
    display: grid;
    width: 32px;
    height: 32px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 10px;
    background: rgba(255, 255, 255, .08);
    color: #f5d97f;
}

.dh-manage-journey-hero__eyebrow-glyph {
    width: 17px;
    height: 17px;
}

.dh-manage-journey-hero h1 {
    max-width: 50rem;
    margin: 0;
    color: #fff;
    font-size: clamp(2.15rem, 4.3vw, 3.75rem);
    font-weight: 920;
    letter-spacing: -.05em;
    line-height: .96;
}

.dh-manage-journey-hero__content > p {
    max-width: 47rem;
    margin: 1.1rem 0 0;
    color: rgba(255, 255, 255, .7);
    font-size: clamp(.92rem, 1.4vw, 1.06rem);
    line-height: 1.65;
}

.dh-manage-journey-hero__identity {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .7rem;
    margin-top: 1.35rem;
    padding: .62rem .8rem;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 15px;
    background: rgba(255, 255, 255, .07);
}

.dh-manage-journey-hero__identity > span:first-child {
    display: grid;
    width: 35px;
    height: 35px;
    place-items: center;
    border-radius: 11px;
    background: rgba(241, 188, 22, .16);
    color: #f5d97f;
}

.dh-manage-journey-hero__identity-glyph {
    width: 18px;
    height: 18px;
}

.dh-manage-journey-hero__identity > div {
    display: grid;
    min-width: 0;
    gap: .05rem;
}

.dh-manage-journey-hero__identity strong {
    font-size: .84rem;
}

.dh-manage-journey-hero__identity small {
    color: rgba(255, 255, 255, .62);
    font-size: .67rem;
}

.dh-manage-journey-status {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    margin-left: .4rem;
    padding: .36rem .55rem;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 999px;
    color: rgba(255, 255, 255, .76);
    font-size: .62rem;
    font-weight: 850;
}

.dh-manage-journey-status i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #e4b943;
    box-shadow: 0 0 0 4px rgba(228, 185, 67, .12);
}

.dh-manage-journey-status.is-active i {
    background: #62d3a8;
    box-shadow: 0 0 0 4px rgba(98, 211, 168, .12);
}

.dh-manage-journey-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: .65rem;
    margin-top: 1.2rem;
}

.dh-manage-journey-hero__actions .btn {
    min-height: 43px;
    border-radius: 13px;
    font-size: .76rem;
    font-weight: 850;
}

.dh-manage-journey-hero__actions .btn-outline-light {
    border-color: rgba(255, 255, 255, .22);
}

.dh-manage-journey-hero__progress {
    align-self: center;
    display: grid;
    justify-items: center;
    padding: 1.35rem;
    border: 1px solid rgba(255, 255, 255, .13);
    border-radius: 24px;
    background: rgba(255, 255, 255, .075);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05);
    backdrop-filter: blur(10px);
    text-align: center;
}

.dh-manage-journey-hero__progress > span {
    display: grid;
    width: 50px;
    height: 50px;
    place-items: center;
    margin-bottom: .65rem;
    border-radius: 16px;
    background: rgba(241, 188, 22, .15);
    color: #f5d97f;
}

.dh-manage-journey-hero__progress-glyph {
    width: 25px;
    height: 25px;
}

.dh-manage-journey-hero__progress small {
    color: rgba(255, 255, 255, .62);
    font-size: .67rem;
    font-weight: 800;
}

.dh-manage-journey-hero__progress strong {
    margin-top: .18rem;
    font-size: 2.3rem;
    font-weight: 920;
    letter-spacing: -.05em;
    line-height: 1;
}

.dh-manage-journey-hero__progress progress {
    width: 100%;
    height: 8px;
    margin-top: .9rem;
    overflow: hidden;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, .12);
}

.dh-manage-journey-hero__progress progress::-webkit-progress-bar {
    border-radius: 999px;
    background: rgba(255, 255, 255, .12);
}

.dh-manage-journey-hero__progress progress::-webkit-progress-value {
    border-radius: 999px;
    background: linear-gradient(90deg, #e5b92f, #f5d97f);
}

.dh-manage-journey-hero__progress progress::-moz-progress-bar {
    border-radius: 999px;
    background: linear-gradient(90deg, #e5b92f, #f5d97f);
}

.dh-manage-journey-hero__progress p {
    margin: .65rem 0 0;
    color: rgba(255, 255, 255, .6);
    font-size: .67rem;
    line-height: 1.45;
}

.dh-manage-journey-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: .85rem;
    margin: -2.2rem 1.25rem 0;
    z-index: 2;
}

.dh-manage-journey-stats article {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: .75rem;
    align-items: center;
    min-width: 0;
    min-height: 116px;
    padding: 1rem;
    border: 1px solid var(--dh-journey-line);
    border-radius: 19px;
    background: rgba(255, 255, 255, .97);
    box-shadow: 0 16px 34px rgba(23, 34, 56, .075);
}

.dh-manage-journey-stats article > span {
    display: grid;
    width: 43px;
    height: 43px;
    place-items: center;
    border-radius: 14px;
    background: #f0eafa;
    color: #7552a1;
}

.dh-manage-journey-stats .is-booked > span {
    background: #e5eef9;
    color: #3c6593;
}

.dh-manage-journey-stats .is-recorded > span {
    background: var(--dh-journey-green-soft);
    color: var(--dh-journey-green);
}

.dh-manage-journey-stats .is-remaining > span {
    background: #fff3cc;
    color: #946f05;
}

.dh-manage-journey-stat__glyph {
    width: 21px;
    height: 21px;
}

.dh-manage-journey-stats strong,
.dh-manage-journey-stats small,
.dh-manage-journey-stats p {
    display: block;
}

.dh-manage-journey-stats strong {
    font-size: 1.42rem;
    font-weight: 900;
    letter-spacing: -.035em;
    line-height: 1;
}

.dh-manage-journey-stats small {
    margin-top: .28rem;
    font-size: .74rem;
    font-weight: 850;
}

.dh-manage-journey-stats p {
    margin: .15rem 0 0;
    color: var(--dh-journey-muted);
    font-size: .66rem;
    line-height: 1.35;
}

.dh-manage-journey-calendar-note {
    display: flex;
    align-items: center;
    gap: .55rem;
    padding: 0 .2rem;
    color: var(--dh-journey-muted);
    font-size: .7rem;
}

.dh-manage-journey-calendar-note__glyph {
    flex: 0 0 auto;
    width: 16px;
    height: 16px;
    color: #3c6593;
}

.dh-manage-journey .dh-card {
    border-color: var(--dh-journey-line);
    border-radius: 25px;
    background: #fff;
    box-shadow: 0 18px 42px rgba(23, 34, 56, .055);
}

.dh-manage-journey-section-head {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: .75rem;
    align-items: start;
    margin-bottom: 1.1rem;
}

.dh-manage-journey-section-head > span:first-child {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 14px;
    background: var(--dh-journey-green-soft);
    color: var(--dh-journey-green);
}

.dh-manage-journey-section-head__glyph {
    width: 21px;
    height: 21px;
}

.dh-manage-journey-section-head h2,
.dh-manage-journey-section-head p {
    margin: 0;
}

.dh-manage-journey-section-head h2 {
    font-size: 1rem;
    font-weight: 880;
    letter-spacing: -.018em;
}

.dh-manage-journey-section-head p {
    margin-top: .2rem;
    color: var(--dh-journey-muted);
    font-size: .74rem;
    line-height: 1.45;
}

.dh-manage-journey-section-head > small {
    align-self: center;
    color: var(--dh-journey-muted);
    font-size: .66rem;
}

.dh-manage-journey-focus {
    padding: 1.3rem;
    border-top: 4px solid #d2a00e !important;
}

.dh-manage-journey-focus .dh-manage-journey-section-head > span:first-child {
    background: #fff3cc;
    color: #946f05;
}

.dh-manage-journey-focus__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .8rem;
}

.dh-manage-journey-focus__grid article {
    min-width: 0;
    min-height: 150px;
    padding: 1rem;
    border: 1px solid #e3e8ed;
    border-radius: 17px;
    background: #fafbfd;
}

.dh-manage-journey-focus__grid article > span {
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    margin-bottom: .75rem;
    border-radius: 12px;
    background: #e5eef9;
    color: #3c6593;
}

.dh-manage-journey-focus__grid .is-homework > span {
    background: #fff3cc;
    color: #946f05;
}

.dh-manage-journey-focus__grid .is-next > span {
    background: var(--dh-journey-green-soft);
    color: var(--dh-journey-green);
}

.dh-manage-journey-focus-card__glyph {
    width: 18px;
    height: 18px;
}

.dh-manage-journey-focus__grid h3 {
    margin: 0;
    font-size: .78rem;
    font-weight: 850;
}

.dh-manage-journey-focus__grid p {
    margin: .55rem 0 0;
    color: #445166;
    font-size: .75rem;
    line-height: 1.55;
    overflow-wrap: anywhere;
}

.dh-manage-journey-focus__empty {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: .8rem;
    align-items: center;
    padding: 1rem;
    border: 1px dashed #d9e1e7;
    border-radius: 17px;
    background: #fafbfd;
}

.dh-manage-journey-focus__empty > span {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 14px;
    background: var(--dh-journey-green-soft);
    color: var(--dh-journey-green);
}

.dh-manage-journey-focus__empty-glyph {
    width: 21px;
    height: 21px;
}

.dh-manage-journey-focus__empty strong {
    font-size: .82rem;
}

.dh-manage-journey-focus__empty p {
    margin: .2rem 0 0;
    color: var(--dh-journey-muted);
    font-size: .7rem;
    line-height: 1.45;
}

.dh-manage-journey-workspace {
    display: grid;
    grid-template-columns: minmax(340px, .8fr) minmax(0, 1.2fr);
    gap: 1.2rem;
    align-items: start;
}

.dh-manage-journey-settings,
.dh-manage-journey-checklist,
.dh-manage-journey-reports {
    padding: 1.3rem;
}

.dh-manage-journey-settings {
    border-top: 4px solid #3c6593 !important;
}

.dh-manage-journey-settings .dh-manage-journey-section-head > span:first-child {
    background: #e5eef9;
    color: #3c6593;
}

.dh-manage-journey-checklist {
    border-top: 4px solid #15705d !important;
}

.dh-manage-journey-reports {
    border-top: 4px solid #7552a1 !important;
    scroll-margin-top: 1.5rem;
}

.dh-manage-journey-reports > .dh-manage-journey-section-head > span:first-child {
    background: #f0eafa;
    color: #7552a1;
}

.dh-manage-journey-settings__form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .8rem;
}

.dh-manage-journey-settings__form > label,
.dh-manage-journey-step-form > label,
.dh-manage-journey-report-form > label {
    display: grid;
    min-width: 0;
    gap: .38rem;
}

.dh-manage-journey-settings__form > label > span,
.dh-manage-journey-step-form > label > span,
.dh-manage-journey-report-form > label > span {
    color: #445166;
    font-size: .7rem;
    font-weight: 850;
}

.dh-manage-journey-settings__form .is-wide,
.dh-manage-journey-report-form .is-wide {
    grid-column: 1 / -1;
}

.dh-manage-journey-readonly {
    display: flex;
    align-items: center;
    min-height: 42px;
    padding: .6rem .75rem;
    border: 1px solid #e1e6eb;
    border-radius: 12px;
    color: #536176;
    background: #f7f9fa;
    font-size: .76rem;
}

.dh-manage-journey-switches {
    display: grid;
    gap: .55rem;
    padding: .85rem;
    border: 1px solid #e1e7ec;
    border-radius: 15px;
    background: #fafbfd;
}

.dh-manage-journey-switches label {
    display: flex;
    align-items: flex-start;
    gap: .65rem;
    color: #445166;
    font-size: .7rem;
    font-weight: 750;
    line-height: 1.4;
}

.dh-manage-journey-switches .form-check-input {
    flex: 0 0 auto;
    margin: .05rem 0 0;
}

.dh-manage-journey-scope-note {
    display: flex;
    align-items: flex-start;
    gap: .5rem;
    padding: .75rem;
    border: 1px solid #dce5ed;
    border-radius: 13px;
    color: #556176;
    background: #f4f8fb;
    font-size: .68rem;
    line-height: 1.45;
}

.dh-manage-journey-scope-note__glyph {
    flex: 0 0 auto;
    width: 16px;
    height: 16px;
    color: #3c6593;
}

.dh-manage-journey-settings__form > .btn {
    justify-self: start;
    border-radius: 12px;
    font-size: .75rem;
    font-weight: 850;
}

.dh-manage-journey-visibility {
    display: grid;
    gap: .55rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--dh-journey-line);
}

.dh-manage-journey-visibility > div {
    display: flex;
    align-items: center;
    gap: .45rem;
    padding: .65rem .7rem;
    border: 1px solid #e3e8ed;
    border-radius: 12px;
    color: #647185;
    background: #fafbfd;
    font-size: .66rem;
}

.dh-manage-journey-visibility > div:first-child {
    justify-content: space-between;
    color: #445166;
}

.dh-manage-journey-visibility > div.is-visible {
    border-color: rgba(21, 112, 93, .18);
    color: #15614f;
    background: #f0f8f5;
}

.dh-manage-journey-visibility__glyph {
    flex: 0 0 auto;
    width: 15px;
    height: 15px;
}

.dh-manage-journey-step-form {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr) auto;
    gap: .65rem;
    align-items: end;
    margin-bottom: .9rem;
    padding: .85rem;
    border: 1px solid #e1e7ec;
    border-radius: 16px;
    background: #fafbfd;
}

.dh-manage-journey-step-form .btn {
    min-height: 42px;
    border-radius: 12px;
    font-size: .7rem;
    font-weight: 850;
}

.dh-manage-journey-step-list {
    display: grid;
    gap: .65rem;
}

.dh-manage-journey-step {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: .7rem;
    align-items: start;
    padding: .8rem;
    border: 1px solid #e2e7ec;
    border-radius: 15px;
    background: #fafbfd;
}

.dh-manage-journey-step.is-complete {
    border-color: rgba(21, 112, 93, .2);
    background: #f0f8f5;
}

.dh-manage-journey-step > span {
    display: grid;
    width: 35px;
    height: 35px;
    place-items: center;
    border-radius: 11px;
    background: #eef2f5;
    color: #647185;
}

.dh-manage-journey-step.is-complete > span {
    background: #dcefe8;
    color: #15705d;
}

.dh-manage-journey-step__glyph {
    width: 17px;
    height: 17px;
}

.dh-manage-journey-step h3,
.dh-manage-journey-step p {
    margin: 0;
}

.dh-manage-journey-step h3 {
    font-size: .8rem;
    font-weight: 850;
}

.dh-manage-journey-step p {
    margin-top: .25rem;
    color: #536176;
    font-size: .7rem;
    line-height: 1.45;
}

.dh-manage-journey-step small {
    display: block;
    margin-top: .4rem;
    color: var(--dh-journey-muted);
    font-size: .62rem;
}

.dh-manage-journey-step__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: .4rem;
}

.dh-manage-journey-step__actions .btn {
    border-radius: 10px;
    font-size: .64rem;
    font-weight: 800;
}

.dh-manage-journey-empty {
    display: grid;
    justify-items: center;
    gap: .7rem;
    padding: 2rem 1rem;
    border: 1px dashed #d9e1e7;
    border-radius: 16px;
    color: #5f6c7e;
    background: #fafbfd;
    font-size: .74rem;
    text-align: center;
}

.dh-manage-journey-empty.is-compact {
    padding: 1rem;
}

.dh-manage-journey-empty__glyph {
    width: 25px;
    height: 25px;
    color: #799085;
}

.dh-manage-journey-report-composer {
    padding: 1rem;
    border: 1px solid #e1e6eb;
    border-radius: 19px;
    background:
        radial-gradient(circle at top right, rgba(117, 82, 161, .07), transparent 28%),
        #fafbfd;
}

.dh-manage-journey-report-composer__head {
    display: flex;
    align-items: center;
    gap: .7rem;
    margin-bottom: .9rem;
}

.dh-manage-journey-report-composer__head > span {
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    border-radius: 13px;
    background: #f0eafa;
    color: #7552a1;
}

.dh-manage-journey-report-composer__glyph {
    width: 20px;
    height: 20px;
}

.dh-manage-journey-report-composer__head h3,
.dh-manage-journey-report-composer__head p {
    margin: 0;
}

.dh-manage-journey-report-composer__head h3 {
    font-size: .88rem;
    font-weight: 870;
}

.dh-manage-journey-report-composer__head p {
    margin-top: .18rem;
    color: var(--dh-journey-muted);
    font-size: .68rem;
}

.dh-manage-journey-report-form {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: .8rem;
}

.dh-manage-journey-report-form .is-half {
    grid-column: span 2;
}

.dh-manage-journey-report-form .is-package {
    grid-column: span 3;
}

.dh-manage-journey-report-form .is-credits {
    grid-column: span 1;
}

.dh-manage-journey-report-form > label > small {
    color: var(--dh-journey-muted);
    font-size: .62rem;
    line-height: 1.4;
}

.dh-manage-journey-report-form > label.is-done,
.dh-manage-journey-report-form > label.is-exercises,
.dh-manage-journey-report-form > label.is-homework,
.dh-manage-journey-report-form > label.is-next {
    padding: .75rem;
    border: 1px solid #e2e7ec;
    border-radius: 14px;
    background: #fff;
}

.dh-manage-journey-report-form > label.is-done {
    border-left: 4px solid #3c6593;
}

.dh-manage-journey-report-form > label.is-exercises {
    border-left: 4px solid #7552a1;
}

.dh-manage-journey-report-form > label.is-homework {
    border-left: 4px solid #d2a00e;
}

.dh-manage-journey-report-form > label.is-next {
    border-left: 4px solid #15705d;
    background: #f8fcfa;
}

.dh-manage-journey-report-form .is-visibility {
    grid-column: span 1;
}

.dh-manage-journey-report-form .is-submit {
    grid-column: span 3;
    align-self: end;
    justify-self: start;
    min-height: 42px;
    border-radius: 12px;
    font-size: .73rem;
    font-weight: 850;
}

.dh-manage-journey-package-summary {
    display: grid;
    gap: .2rem;
    margin-top: .25rem;
    padding: .75rem;
    border: 1px solid rgba(21, 112, 93, .18);
    border-radius: 13px;
    color: #405064;
    background: #f0f8f5;
}

.dh-manage-journey-package-summary__title {
    font-size: .72rem;
}

.dh-manage-journey-package-summary__service,
.dh-manage-journey-package-summary__stats,
.dh-manage-journey-package-summary__debit {
    color: #5c6b7d;
    font-size: .63rem;
}

.dh-manage-journey-saved-head {
    margin: 1.2rem 0 .65rem;
    color: #445166;
    font-size: .75rem;
    font-weight: 850;
}

.dh-manage-journey-report-list {
    display: grid;
    gap: .65rem;
}

.dh-manage-journey-report {
    overflow: hidden;
    border: 1px solid #e1e7ec;
    border-radius: 16px;
    background: #fff;
}

.dh-manage-journey-report[open] {
    border-color: rgba(117, 82, 161, .24);
    box-shadow: 0 12px 28px rgba(23, 34, 56, .055);
}

.dh-manage-journey-report > summary {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto auto;
    gap: .7rem;
    align-items: center;
    padding: .85rem;
    cursor: pointer;
    list-style: none;
    background: #fafbfd;
}

.dh-manage-journey-report > summary::-webkit-details-marker {
    display: none;
}

.dh-manage-journey-report > summary > span:first-child {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 12px;
    background: #f0eafa;
    color: #7552a1;
}

.dh-manage-journey-report__glyph {
    width: 19px;
    height: 19px;
}

.dh-manage-journey-report__summary {
    display: grid;
    min-width: 0;
    gap: .2rem;
}

.dh-manage-journey-report__summary strong,
.dh-manage-journey-report__summary small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dh-manage-journey-report__summary strong {
    font-size: .8rem;
}

.dh-manage-journey-report__summary small {
    color: var(--dh-journey-muted);
    font-size: .65rem;
}

.dh-manage-journey-report__edit {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    color: #637084;
    font-size: .65rem;
    font-weight: 800;
}

.dh-manage-journey-report__edit-glyph {
    width: 15px;
    height: 15px;
}

.dh-manage-journey-report__editor {
    padding: 1rem;
    border-top: 1px solid #e1e7ec;
    background: #fff;
}

.dh-manage-journey-report-form.is-edit {
    padding: .2rem;
}

.dh-manage-journey-report__delete {
    display: flex;
    justify-content: flex-end;
    margin-top: .9rem;
    padding-top: .9rem;
    border-top: 1px solid var(--dh-journey-line);
}

.dh-manage-journey-report__delete .btn {
    border-radius: 10px;
    font-size: .65rem;
    font-weight: 800;
}

@media (max-width: 1199.98px) {
    .dh-manage-journey-workspace {
        grid-template-columns: minmax(0, 1fr);
    }

    .dh-manage-journey-settings__form {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 991.98px) {
    .dh-manage-journey-hero {
        grid-template-columns: minmax(0, 1fr) minmax(240px, 290px);
    }

    .dh-manage-journey-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dh-manage-journey-report-form {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dh-manage-journey-report-form .is-half,
    .dh-manage-journey-report-form .is-package,
    .dh-manage-journey-report-form .is-submit {
        grid-column: span 2;
    }

    .dh-manage-journey-report-form .is-credits,
    .dh-manage-journey-report-form .is-visibility {
        grid-column: span 1;
    }
}

@media (max-width: 767.98px) {
    .dh-manage-journey-hero {
        grid-template-columns: minmax(0, 1fr);
        min-height: auto;
        padding: 1.4rem;
        border-radius: 24px;
    }

    .dh-manage-journey-hero::after {
        display: none;
    }

    .dh-manage-journey-hero__progress {
        justify-items: start;
        text-align: left;
    }

    .dh-manage-journey-hero__progress progress {
        width: 100%;
    }

    .dh-manage-journey-focus__grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .dh-manage-journey-step-form {
        grid-template-columns: minmax(0, 1fr);
    }

    .dh-manage-journey-step-form .btn {
        width: 100%;
    }

    .dh-manage-journey-report > summary {
        grid-template-columns: auto minmax(0, 1fr) auto;
    }

    .dh-manage-journey-report__edit {
        grid-column: 2;
        justify-self: start;
    }
}

@media (max-width: 575.98px) {
    .dh-manage-journey-hero__actions,
    .dh-manage-journey-hero__actions .btn {
        width: 100%;
    }

    .dh-manage-journey-stats {
        grid-template-columns: minmax(0, 1fr);
        margin: -1.7rem .7rem 0;
    }

    .dh-manage-journey-stats article {
        min-height: 88px;
    }

    .dh-manage-journey-section-head {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .dh-manage-journey-section-head > .dh-badge,
    .dh-manage-journey-section-head > small {
        grid-column: 2;
        justify-self: start;
    }

    .dh-manage-journey-focus__empty {
        grid-template-columns: minmax(0, 1fr);
        justify-items: start;
    }

    .dh-manage-journey-settings__form,
    .dh-manage-journey-report-form {
        grid-template-columns: minmax(0, 1fr);
    }

    .dh-manage-journey-settings__form .is-wide,
    .dh-manage-journey-report-form .is-wide,
    .dh-manage-journey-report-form .is-half,
    .dh-manage-journey-report-form .is-package,
    .dh-manage-journey-report-form .is-credits,
    .dh-manage-journey-report-form .is-visibility,
    .dh-manage-journey-report-form .is-submit {
        grid-column: auto;
    }

    .dh-manage-journey-report-form .is-submit,
    .dh-manage-journey-settings__form > .btn {
        width: 100%;
        justify-self: stretch;
    }

    .dh-manage-journey-step {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .dh-manage-journey-step__actions {
        grid-column: 2;
        justify-content: flex-start;
    }

    .dh-manage-journey-report > summary {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .dh-manage-journey-report > summary > .dh-badge,
    .dh-manage-journey-report__edit {
        grid-column: 2;
        justify-self: start;
    }
}

/* Premium staff customer directory — relationships, dogs and journeys at a glance */
.dh-staff-customers {
    --dh-customers-ink: #172238;
    --dh-customers-muted: #687487;
    --dh-customers-line: rgba(23, 34, 56, .1);
    --dh-customers-green: #15705d;
    --dh-customers-green-soft: #e5f3ee;
    display: grid;
    gap: 1.25rem;
    color: var(--dh-customers-ink);
}

.dh-staff-customers-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(280px, .7fr);
    gap: clamp(1.5rem, 4vw, 4rem);
    min-height: 278px;
    padding: clamp(1.6rem, 3.5vw, 3rem);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .09);
    border-radius: 30px;
    background:
        radial-gradient(circle at 84% 4%, rgba(241, 188, 22, .25), transparent 17rem),
        radial-gradient(circle at 0 108%, rgba(41, 152, 123, .26), transparent 23rem),
        linear-gradient(138deg, #111b2d 0%, #17263a 57%, #163d3b 100%);
    box-shadow: 0 28px 70px rgba(17, 27, 45, .19);
    color: #fff;
}

.dh-staff-customers-hero::before,
.dh-staff-customers-hero::after {
    position: absolute;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 50%;
    content: "";
    pointer-events: none;
}

.dh-staff-customers-hero::before {
    width: 25rem;
    height: 25rem;
    top: -18rem;
    right: -5rem;
}

.dh-staff-customers-hero::after {
    width: 12rem;
    height: 12rem;
    right: 28%;
    bottom: -9rem;
}

.dh-staff-customers-hero__content,
.dh-staff-customers-hero__journey {
    position: relative;
    z-index: 1;
}

.dh-staff-customers-hero__content {
    align-self: center;
}

.dh-staff-customers-hero__eyebrow {
    display: flex;
    align-items: center;
    gap: .55rem;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, .67);
    font-size: .7rem;
    font-weight: 850;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.dh-staff-customers-hero__eyebrow > span {
    display: grid;
    width: 31px;
    height: 31px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 10px;
    background: rgba(255, 255, 255, .08);
    color: #f5d97f;
}

.dh-staff-customers-hero__eyebrow-glyph {
    width: 16px;
    height: 16px;
}

.dh-staff-customers-hero h1 {
    max-width: 44rem;
    margin: 0;
    color: #fff;
    font-size: clamp(2rem, 4vw, 3.35rem);
    font-weight: 900;
    letter-spacing: -.045em;
    line-height: .98;
}

.dh-staff-customers-hero__content > p {
    max-width: 43rem;
    margin: 1rem 0 0;
    color: rgba(255, 255, 255, .7);
    font-size: clamp(.9rem, 1.4vw, 1.03rem);
    line-height: 1.65;
}

.dh-staff-customers-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: .65rem;
    margin-top: 1.25rem;
}

.dh-staff-customers-hero__actions .btn {
    min-height: 43px;
    border-radius: 13px;
    font-size: .77rem;
    font-weight: 850;
}

.dh-staff-customers-hero__actions .btn-outline-light {
    border-color: rgba(255, 255, 255, .24);
    background: rgba(255, 255, 255, .06);
}

.dh-staff-customers-hero__journey {
    align-self: center;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: .9rem;
    padding: 1.2rem;
    border: 1px solid rgba(255, 255, 255, .13);
    border-radius: 22px;
    background: rgba(255, 255, 255, .075);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05);
    backdrop-filter: blur(10px);
}

.dh-staff-customers-hero__journey > span {
    display: grid;
    width: 46px;
    height: 46px;
    place-items: center;
    border-radius: 15px;
    background: rgba(241, 188, 22, .16);
    color: #f5d97f;
}

.dh-staff-customers-hero__journey-glyph {
    width: 22px;
    height: 22px;
}

.dh-staff-customers-hero__journey div {
    min-width: 0;
}

.dh-staff-customers-hero__journey strong {
    display: block;
    font-size: .9rem;
    font-weight: 880;
}

.dh-staff-customers-hero__journey p {
    margin: .35rem 0 0;
    color: rgba(255, 255, 255, .7);
    font-size: .75rem;
    line-height: 1.55;
}

.dh-staff-customers-hero__journey small {
    display: block;
    margin-top: .7rem;
    color: #f5d97f;
    font-size: .67rem;
    font-weight: 800;
}

.dh-staff-customers-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: .85rem;
    margin: -2rem 1.25rem 0;
    position: relative;
    z-index: 2;
}

.dh-staff-customers-metrics article {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: .75rem;
    align-items: center;
    min-width: 0;
    min-height: 112px;
    padding: 1rem;
    overflow: hidden;
    border: 1px solid var(--dh-customers-line);
    border-radius: 19px;
    background: rgba(255, 255, 255, .98);
    box-shadow: 0 16px 34px rgba(23, 34, 56, .075);
}

.dh-staff-customers-metrics article > span {
    display: grid;
    width: 43px;
    height: 43px;
    place-items: center;
    border-radius: 14px;
    background: #e5eef9;
    color: #3c6593;
}

.dh-staff-customers-metrics .is-active > span {
    background: var(--dh-customers-green-soft);
    color: var(--dh-customers-green);
}

.dh-staff-customers-metrics .is-dogs > span {
    background: #fff3cc;
    color: #946f05;
}

.dh-staff-customers-metrics .is-memberships > span {
    background: #f0eafa;
    color: #7552a1;
}

.dh-staff-customers-metric__glyph {
    width: 21px;
    height: 21px;
}

.dh-staff-customers-metrics strong,
.dh-staff-customers-metrics small,
.dh-staff-customers-metrics p {
    display: block;
}

.dh-staff-customers-metrics strong {
    font-size: 1.38rem;
    font-weight: 900;
    letter-spacing: -.035em;
    line-height: 1;
}

.dh-staff-customers-metrics small {
    margin-top: .28rem;
    font-size: .75rem;
    font-weight: 850;
}

.dh-staff-customers-metrics p {
    margin: .14rem 0 0;
    color: var(--dh-customers-muted);
    font-size: .67rem;
    line-height: 1.35;
}

.dh-staff-customers-directory {
    padding: clamp(1rem, 2.5vw, 1.55rem);
    border-color: var(--dh-customers-line);
    border-radius: 26px;
    background:
        radial-gradient(circle at 100% 0, rgba(21, 112, 93, .055), transparent 18rem),
        rgba(255, 255, 255, .98);
    box-shadow: 0 18px 46px rgba(23, 34, 56, .065);
}

.dh-staff-customers-directory__head {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: .75rem;
    align-items: center;
    margin-bottom: 1rem;
}

.dh-staff-customers-directory__head > span:first-child {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 14px;
    background: var(--dh-customers-green-soft);
    color: var(--dh-customers-green);
}

.dh-staff-customers-directory__glyph {
    width: 20px;
    height: 20px;
}

.dh-staff-customers-directory__head h2,
.dh-staff-customers-directory__head p {
    margin: 0;
}

.dh-staff-customers-directory__head h2 {
    font-size: 1rem;
    font-weight: 880;
}

.dh-staff-customers-directory__head p {
    margin-top: .18rem;
    color: var(--dh-customers-muted);
    font-size: .75rem;
}

.dh-staff-customers-directory__head > span:last-child {
    padding: .42rem .65rem;
    border-radius: 999px;
    background: #eef2f5;
    color: #596679;
    font-size: .68rem;
    font-weight: 850;
    white-space: nowrap;
}

.dh-staff-customers-search {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: .65rem;
    align-items: center;
    margin-bottom: 1rem;
    padding: .42rem .5rem .42rem .85rem;
    border: 1px solid #dfe5ea;
    border-radius: 16px;
    background: #f8fafb;
    color: #657286;
    transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.dh-staff-customers-search:focus-within {
    border-color: rgba(21, 112, 93, .34);
    background: #fff;
    box-shadow: 0 0 0 .22rem rgba(21, 112, 93, .09);
}

.dh-staff-customers-search__glyph {
    width: 18px;
    height: 18px;
}

.dh-staff-customers-search .form-control {
    min-height: 42px;
    padding-inline: .2rem;
    border: 0;
    background: transparent;
    box-shadow: none;
    font-size: .8rem;
}

.dh-staff-customers-search small {
    padding-right: .35rem;
    color: #7a8798;
    font-size: .65rem;
    white-space: nowrap;
}

.dh-staff-customers-list {
    display: grid;
    gap: .8rem;
}

.dh-staff-customer {
    display: grid;
    grid-template-columns: auto minmax(220px, 1fr) minmax(300px, .9fr);
    gap: 1rem;
    align-items: center;
    min-width: 0;
    padding: 1rem;
    border: 1px solid #e2e7ec;
    border-radius: 19px;
    background: #fbfcfd;
    transition: border-color 170ms ease, box-shadow 170ms ease, background 170ms ease, transform 170ms ease;
}

.dh-staff-customer:hover {
    border-color: rgba(21, 112, 93, .24);
    background: #fff;
    box-shadow: 0 16px 36px rgba(23, 34, 56, .075);
    transform: translateY(-1px);
}

.dh-staff-customer__avatar {
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    border: 1px solid #dfe6e5;
    border-radius: 16px;
    background: linear-gradient(145deg, #f0f7f4, #e4f0eb);
    color: var(--dh-customers-green);
}

.dh-staff-customer__avatar-glyph {
    width: 23px;
    height: 23px;
}

.dh-staff-customer__identity {
    display: grid;
    min-width: 0;
    gap: .38rem;
}

.dh-staff-customer__identity > div:first-child {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .48rem;
}

.dh-staff-customer__identity h3 {
    min-width: 0;
    margin: 0;
    overflow: hidden;
    font-size: .9rem;
    font-weight: 880;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dh-staff-customer__identity > p {
    display: flex;
    flex-wrap: wrap;
    gap: .25rem .75rem;
    margin: 0;
    color: var(--dh-customers-muted);
    font-size: .69rem;
}

.dh-staff-customer__identity > p span {
    min-width: 0;
    overflow-wrap: anywhere;
}

.dh-staff-customer__identity > p span + span::before {
    margin-right: .75rem;
    color: #c5cdd5;
    content: "•";
}

.dh-staff-customer__meta {
    display: flex;
    flex-wrap: wrap;
    gap: .38rem;
}

.dh-staff-customer__meta > span {
    display: inline-flex;
    align-items: center;
    gap: .32rem;
    min-height: 28px;
    padding: .3rem .48rem;
    border-radius: 9px;
    background: #edf1f4;
    color: #596679;
    font-size: .65rem;
    font-weight: 760;
}

.dh-staff-customer__meta > span.is-active {
    background: var(--dh-customers-green-soft);
    color: var(--dh-customers-green);
}

.dh-staff-customer__meta-glyph {
    width: 14px;
    height: 14px;
}

.dh-staff-customer__actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .55rem;
}

.dh-staff-customer__actions > a {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: .55rem;
    align-items: center;
    min-width: 0;
    padding: .66rem;
    border: 1px solid #e0e6eb;
    border-radius: 13px;
    color: var(--dh-customers-ink);
    background: #fff;
    text-decoration: none;
    transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.dh-staff-customer__actions > a:hover,
.dh-staff-customer__actions > a:focus-visible {
    border-color: rgba(21, 112, 93, .27);
    color: #125e4e;
    background: #f5faf8;
    transform: translateY(-1px);
}

.dh-staff-customer__actions > a > span {
    display: grid;
    width: 33px;
    height: 33px;
    place-items: center;
    border-radius: 11px;
    background: var(--dh-customers-green-soft);
    color: var(--dh-customers-green);
}

.dh-staff-customer__action-glyph {
    width: 16px;
    height: 16px;
}

.dh-staff-customer__actions div {
    display: grid;
    min-width: 0;
    gap: .08rem;
}

.dh-staff-customer__actions strong,
.dh-staff-customer__actions small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dh-staff-customer__actions strong {
    font-size: .72rem;
    font-weight: 850;
}

.dh-staff-customer__actions small {
    color: var(--dh-customers-muted);
    font-size: .6rem;
}

.dh-staff-customers-empty {
    display: grid;
    justify-items: center;
    gap: .75rem;
    padding: 2.8rem 1.5rem;
    color: var(--dh-customers-muted);
    text-align: center;
}

.dh-staff-customers-empty__glyph {
    width: 42px;
    height: 42px;
    color: var(--dh-customers-green);
}

.dh-staff-customers-empty.is-search {
    margin-top: .8rem;
    padding: 1.2rem;
    border: 1px dashed #d8dfe5;
    border-radius: 15px;
    background: #fafbfd;
    font-size: .76rem;
}

@media (max-width: 1199.98px) {
    .dh-staff-customer {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .dh-staff-customer__actions {
        grid-column: 2;
    }
}

@media (max-width: 991.98px) {
    .dh-staff-customers-hero {
        grid-template-columns: minmax(0, 1fr) minmax(260px, 320px);
    }

    .dh-staff-customers-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767.98px) {
    .dh-staff-customers-hero {
        grid-template-columns: minmax(0, 1fr);
        min-height: auto;
        padding: 1.4rem;
        border-radius: 24px;
    }

    .dh-staff-customers-hero::after {
        display: none;
    }

    .dh-staff-customers-hero__journey {
        align-self: stretch;
    }

    .dh-staff-customers-metrics {
        margin: -1rem .65rem 0;
    }

    .dh-staff-customers-directory__head {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .dh-staff-customers-directory__head > span:last-child {
        grid-column: 2;
        justify-self: start;
    }

    .dh-staff-customers-search {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .dh-staff-customers-search small {
        grid-column: 2;
        padding: 0 .2rem .35rem;
    }
}

@media (max-width: 575.98px) {
    .dh-staff-customers-hero__actions,
    .dh-staff-customers-hero__actions .btn {
        width: 100%;
    }

    .dh-staff-customers-metrics {
        grid-template-columns: minmax(0, 1fr);
    }

    .dh-staff-customers-metrics article {
        min-height: 90px;
    }

    .dh-staff-customers-directory {
        padding: .9rem;
        border-radius: 20px;
    }

    .dh-staff-customer {
        grid-template-columns: auto minmax(0, 1fr);
        gap: .75rem;
        padding: .85rem;
        border-radius: 16px;
    }

    .dh-staff-customer__avatar {
        width: 42px;
        height: 42px;
        border-radius: 14px;
    }

    .dh-staff-customer__actions {
        grid-column: 1 / -1;
        grid-template-columns: minmax(0, 1fr);
    }

    .dh-staff-customer__identity > p {
        display: grid;
        gap: .15rem;
    }

    .dh-staff-customer__identity > p span + span::before {
        display: none;
    }
}

/* Premium staff course portfolio — groups, capacity and learning delivery */
.dh-staff-courses {
    --dh-courses-staff-ink: #172238;
    --dh-courses-staff-muted: #687487;
    --dh-courses-staff-line: rgba(23, 34, 56, .1);
    --dh-courses-staff-blue: #3c6593;
    --dh-courses-staff-blue-soft: #e5eef9;
    display: grid;
    gap: 1.25rem;
    color: var(--dh-courses-staff-ink);
}

.dh-staff-courses-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(280px, .7fr);
    gap: clamp(1.5rem, 4vw, 4rem);
    min-height: 278px;
    padding: clamp(1.6rem, 3.5vw, 3rem);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .09);
    border-radius: 30px;
    background:
        radial-gradient(circle at 83% 4%, rgba(241, 188, 22, .24), transparent 17rem),
        radial-gradient(circle at 2% 108%, rgba(69, 111, 163, .33), transparent 24rem),
        linear-gradient(138deg, #111b2d 0%, #192941 57%, #243d5b 100%);
    box-shadow: 0 28px 70px rgba(17, 27, 45, .19);
    color: #fff;
}

.dh-staff-courses-hero::before,
.dh-staff-courses-hero::after {
    position: absolute;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 50%;
    content: "";
    pointer-events: none;
}

.dh-staff-courses-hero::before {
    width: 25rem;
    height: 25rem;
    top: -18rem;
    right: -5rem;
}

.dh-staff-courses-hero::after {
    width: 12rem;
    height: 12rem;
    right: 28%;
    bottom: -9rem;
}

.dh-staff-courses-hero__content,
.dh-staff-courses-hero__command {
    position: relative;
    z-index: 1;
}

.dh-staff-courses-hero__content {
    align-self: center;
}

.dh-staff-courses-hero__eyebrow {
    display: flex;
    align-items: center;
    gap: .55rem;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, .67);
    font-size: .7rem;
    font-weight: 850;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.dh-staff-courses-hero__eyebrow > span {
    display: grid;
    width: 31px;
    height: 31px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 10px;
    background: rgba(255, 255, 255, .08);
    color: #f5d97f;
}

.dh-staff-courses-hero__eyebrow-glyph {
    width: 16px;
    height: 16px;
}

.dh-staff-courses-hero h1 {
    max-width: 44rem;
    margin: 0;
    color: #fff;
    font-size: clamp(2rem, 4vw, 3.35rem);
    font-weight: 900;
    letter-spacing: -.045em;
    line-height: .98;
}

.dh-staff-courses-hero__content > p {
    max-width: 43rem;
    margin: 1rem 0 0;
    color: rgba(255, 255, 255, .7);
    font-size: clamp(.9rem, 1.4vw, 1.03rem);
    line-height: 1.65;
}

.dh-staff-courses-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: .65rem;
    margin-top: 1.25rem;
}

.dh-staff-courses-hero__actions .btn {
    min-height: 43px;
    border-radius: 13px;
    font-size: .77rem;
    font-weight: 850;
}

.dh-staff-courses-hero__actions .btn-outline-light {
    border-color: rgba(255, 255, 255, .24);
    background: rgba(255, 255, 255, .06);
}

.dh-staff-courses-hero__command {
    align-self: center;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: .9rem;
    padding: 1.2rem;
    border: 1px solid rgba(255, 255, 255, .13);
    border-radius: 22px;
    background: rgba(255, 255, 255, .075);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05);
    backdrop-filter: blur(10px);
}

.dh-staff-courses-hero__command > span {
    display: grid;
    width: 46px;
    height: 46px;
    place-items: center;
    border-radius: 15px;
    background: rgba(241, 188, 22, .16);
    color: #f5d97f;
}

.dh-staff-courses-hero__command-glyph {
    width: 22px;
    height: 22px;
}

.dh-staff-courses-hero__command div {
    min-width: 0;
}

.dh-staff-courses-hero__command strong {
    display: block;
    font-size: .9rem;
    font-weight: 880;
}

.dh-staff-courses-hero__command p {
    margin: .35rem 0 0;
    color: rgba(255, 255, 255, .7);
    font-size: .75rem;
    line-height: 1.55;
}

.dh-staff-courses-metrics {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: .85rem;
    margin: -2rem 1.25rem 0;
}

.dh-staff-courses-metrics article {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: .75rem;
    align-items: center;
    min-width: 0;
    min-height: 112px;
    padding: 1rem;
    overflow: hidden;
    border: 1px solid var(--dh-courses-staff-line);
    border-radius: 19px;
    background: rgba(255, 255, 255, .98);
    box-shadow: 0 16px 34px rgba(23, 34, 56, .075);
}

.dh-staff-courses-metrics article > span {
    display: grid;
    width: 43px;
    height: 43px;
    place-items: center;
    border-radius: 14px;
    background: var(--dh-courses-staff-blue-soft);
    color: var(--dh-courses-staff-blue);
}

.dh-staff-courses-metrics .is-open > span {
    background: #e5f3ee;
    color: #15705d;
}

.dh-staff-courses-metrics .is-sessions > span {
    background: #fff3cc;
    color: #946f05;
}

.dh-staff-courses-metrics .is-enrolled > span {
    background: #f0eafa;
    color: #7552a1;
}

.dh-staff-courses-metric__glyph {
    width: 21px;
    height: 21px;
}

.dh-staff-courses-metrics strong,
.dh-staff-courses-metrics small,
.dh-staff-courses-metrics p {
    display: block;
}

.dh-staff-courses-metrics strong {
    font-size: 1.38rem;
    font-weight: 900;
    letter-spacing: -.035em;
    line-height: 1;
}

.dh-staff-courses-metrics small {
    margin-top: .28rem;
    font-size: .75rem;
    font-weight: 850;
}

.dh-staff-courses-metrics p {
    margin: .14rem 0 0;
    color: var(--dh-courses-staff-muted);
    font-size: .67rem;
    line-height: 1.35;
}

.dh-staff-courses-portfolio {
    padding: clamp(1rem, 2.5vw, 1.55rem);
    border-color: var(--dh-courses-staff-line);
    border-radius: 26px;
    background:
        radial-gradient(circle at 100% 0, rgba(60, 101, 147, .06), transparent 18rem),
        rgba(255, 255, 255, .98);
    box-shadow: 0 18px 46px rgba(23, 34, 56, .065);
}

.dh-staff-courses-portfolio__head {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: .75rem;
    align-items: center;
    margin-bottom: 1rem;
}

.dh-staff-courses-portfolio__head > span:first-child {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 14px;
    background: var(--dh-courses-staff-blue-soft);
    color: var(--dh-courses-staff-blue);
}

.dh-staff-courses-portfolio__glyph {
    width: 20px;
    height: 20px;
}

.dh-staff-courses-portfolio__head h2,
.dh-staff-courses-portfolio__head p {
    margin: 0;
}

.dh-staff-courses-portfolio__head h2 {
    font-size: 1rem;
    font-weight: 880;
}

.dh-staff-courses-portfolio__head p {
    margin-top: .18rem;
    color: var(--dh-courses-staff-muted);
    font-size: .75rem;
}

.dh-staff-courses-portfolio__head > span:last-child {
    padding: .42rem .65rem;
    border-radius: 999px;
    background: #eef2f5;
    color: #596679;
    font-size: .68rem;
    font-weight: 850;
    white-space: nowrap;
}

.dh-staff-courses-search {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: .65rem;
    align-items: center;
    margin-bottom: 1rem;
    padding: .42rem .5rem .42rem .85rem;
    border: 1px solid #dfe5ea;
    border-radius: 16px;
    background: #f8fafb;
    color: #657286;
    transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.dh-staff-courses-search:focus-within {
    border-color: rgba(60, 101, 147, .38);
    background: #fff;
    box-shadow: 0 0 0 .22rem rgba(60, 101, 147, .09);
}

.dh-staff-courses-search__glyph {
    width: 18px;
    height: 18px;
}

.dh-staff-courses-search .form-control {
    min-height: 42px;
    padding-inline: .2rem;
    border: 0;
    background: transparent;
    box-shadow: none;
    font-size: .8rem;
}

.dh-staff-courses-search small {
    padding-right: .35rem;
    color: #7a8798;
    font-size: .65rem;
    white-space: nowrap;
}

.dh-staff-courses-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .9rem;
}

.dh-staff-course {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: .9rem;
    padding: 1rem;
    border: 1px solid #e2e7ec;
    border-radius: 20px;
    background: #fbfcfd;
    transition: border-color 170ms ease, box-shadow 170ms ease, background 170ms ease, transform 170ms ease;
}

.dh-staff-course:hover {
    border-color: rgba(60, 101, 147, .25);
    background: #fff;
    box-shadow: 0 18px 38px rgba(23, 34, 56, .08);
    transform: translateY(-2px);
}

.dh-staff-course__head {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: .75rem;
    min-width: 0;
}

.dh-staff-course__icon {
    display: grid;
    width: 46px;
    height: 46px;
    place-items: center;
    border: 1px solid #dce5ee;
    border-radius: 15px;
    background: linear-gradient(145deg, #edf3f9, #e1ebf5);
    color: var(--dh-courses-staff-blue);
}

.dh-staff-course__icon-glyph {
    width: 22px;
    height: 22px;
}

.dh-staff-course__head > div {
    min-width: 0;
}

.dh-staff-course__title {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .45rem;
}

.dh-staff-course__title h3 {
    min-width: 0;
    margin: 0;
    overflow: hidden;
    font-size: .92rem;
    font-weight: 880;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dh-staff-course__mode {
    display: inline-flex;
    min-height: 25px;
    align-items: center;
    padding: .25rem .45rem;
    border-radius: 8px;
    background: var(--dh-courses-staff-blue-soft);
    color: var(--dh-courses-staff-blue);
    font-size: .61rem;
    font-weight: 820;
}

.dh-staff-course__head p {
    display: -webkit-box;
    margin: .45rem 0 0;
    overflow: hidden;
    color: var(--dh-courses-staff-muted);
    font-size: .7rem;
    line-height: 1.5;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.dh-staff-course__facts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .45rem;
    margin: 0;
}

.dh-staff-course__facts > div {
    min-width: 0;
    padding: .62rem;
    border: 1px solid #e3e8ed;
    border-radius: 13px;
    background: #fff;
}

.dh-staff-course__facts dt {
    display: flex;
    align-items: center;
    gap: .32rem;
    color: #748195;
    font-size: .59rem;
    font-weight: 820;
    letter-spacing: .035em;
    text-transform: uppercase;
}

.dh-staff-course__fact-glyph {
    width: 13px;
    height: 13px;
    flex: 0 0 13px;
}

.dh-staff-course__facts dd {
    margin: .32rem 0 0;
    color: var(--dh-courses-staff-ink);
    font-size: .68rem;
    font-weight: 780;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.dh-staff-course__participation {
    padding: .75rem;
    border: 1px solid #e2e7ec;
    border-radius: 15px;
    background: linear-gradient(135deg, #fff, #f6f8fb);
}

.dh-staff-course__participation header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .8rem;
}

.dh-staff-course__participation header > div {
    display: grid;
    min-width: 0;
    gap: .12rem;
}

.dh-staff-course__participation strong {
    font-size: .72rem;
    font-weight: 850;
}

.dh-staff-course__participation small {
    color: var(--dh-courses-staff-muted);
    font-size: .62rem;
}

.dh-staff-course__participation header > span {
    color: var(--dh-courses-staff-blue);
    font-size: .72rem;
    font-weight: 900;
    white-space: nowrap;
}

.dh-staff-course__participation progress {
    display: block;
    width: 100%;
    height: 7px;
    margin-top: .65rem;
    overflow: hidden;
    border: 0;
    border-radius: 999px;
    background: #e5eaf0;
}

.dh-staff-course__participation progress::-webkit-progress-bar {
    border-radius: 999px;
    background: #e5eaf0;
}

.dh-staff-course__participation progress::-webkit-progress-value {
    border-radius: 999px;
    background: linear-gradient(90deg, #3c6593, #5483b8);
}

.dh-staff-course__participation progress::-moz-progress-bar {
    border-radius: 999px;
    background: linear-gradient(90deg, #3c6593, #5483b8);
}

.dh-staff-course__participation p {
    margin: .4rem 0 0;
    color: #15705d;
    font-size: .62rem;
    font-weight: 780;
}

.dh-staff-course__participation p.is-full {
    color: #9a4b31;
}

.dh-staff-course__actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .55rem;
    margin-top: auto;
}

.dh-staff-course__actions > a {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: .55rem;
    align-items: center;
    min-width: 0;
    padding: .66rem;
    border: 1px solid #dfe5eb;
    border-radius: 13px;
    color: var(--dh-courses-staff-ink);
    background: #fff;
    text-decoration: none;
    transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.dh-staff-course__actions > a:hover,
.dh-staff-course__actions > a:focus-visible {
    border-color: rgba(60, 101, 147, .3);
    color: #315a86;
    background: #f4f8fc;
    transform: translateY(-1px);
}

.dh-staff-course__actions > a > span {
    display: grid;
    width: 33px;
    height: 33px;
    place-items: center;
    border-radius: 11px;
    background: var(--dh-courses-staff-blue-soft);
    color: var(--dh-courses-staff-blue);
}

.dh-staff-course__action-glyph {
    width: 16px;
    height: 16px;
}

.dh-staff-course__actions div {
    display: grid;
    min-width: 0;
    gap: .08rem;
}

.dh-staff-course__actions strong,
.dh-staff-course__actions small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dh-staff-course__actions strong {
    font-size: .7rem;
    font-weight: 850;
}

.dh-staff-course__actions small {
    color: var(--dh-courses-staff-muted);
    font-size: .59rem;
}

.dh-staff-courses-empty {
    display: grid;
    justify-items: center;
    gap: .75rem;
    padding: 2.8rem 1.5rem;
    color: var(--dh-courses-staff-muted);
    text-align: center;
}

.dh-staff-courses-empty__glyph {
    width: 42px;
    height: 42px;
    color: var(--dh-courses-staff-blue);
}

.dh-staff-courses-empty.is-search {
    margin-top: .8rem;
    padding: 1.2rem;
    border: 1px dashed #d8dfe5;
    border-radius: 15px;
    background: #fafbfd;
    font-size: .76rem;
}

@media (max-width: 1199.98px) {
    .dh-staff-courses-list {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 991.98px) {
    .dh-staff-courses-hero {
        grid-template-columns: minmax(0, 1fr) minmax(260px, 320px);
    }

    .dh-staff-courses-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767.98px) {
    .dh-staff-courses-hero {
        grid-template-columns: minmax(0, 1fr);
        min-height: auto;
        padding: 1.4rem;
        border-radius: 24px;
    }

    .dh-staff-courses-hero::after {
        display: none;
    }

    .dh-staff-courses-hero__command {
        align-self: stretch;
    }

    .dh-staff-courses-metrics {
        margin: -1rem .65rem 0;
    }

    .dh-staff-courses-portfolio__head {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .dh-staff-courses-portfolio__head > span:last-child {
        grid-column: 2;
        justify-self: start;
    }

    .dh-staff-courses-search {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .dh-staff-courses-search small {
        grid-column: 2;
        padding: 0 .2rem .35rem;
    }

    .dh-staff-course__facts {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 575.98px) {
    .dh-staff-courses-hero__actions,
    .dh-staff-courses-hero__actions .btn {
        width: 100%;
    }

    .dh-staff-courses-metrics {
        grid-template-columns: minmax(0, 1fr);
    }

    .dh-staff-courses-metrics article {
        min-height: 90px;
    }

    .dh-staff-courses-portfolio {
        padding: .9rem;
        border-radius: 20px;
    }

    .dh-staff-course {
        padding: .85rem;
        border-radius: 16px;
    }

    .dh-staff-course__actions {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* Premium staff compensation statement — transparent, traceable and read-only */
.dh-staff-compensation {
    --dh-compensation-ink: #182337;
    --dh-compensation-muted: #697689;
    --dh-compensation-line: rgba(24, 35, 55, .1);
    --dh-compensation-green: #19705f;
    --dh-compensation-green-soft: #e3f2ed;
    --dh-compensation-gold: #b88316;
    display: grid;
    gap: 1.25rem;
    color: var(--dh-compensation-ink);
}

.dh-staff-compensation-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(280px, .7fr);
    gap: clamp(1.5rem, 4vw, 4rem);
    min-height: 286px;
    padding: clamp(1.6rem, 3.5vw, 3rem);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .09);
    border-radius: 30px;
    background:
        radial-gradient(circle at 84% 2%, rgba(244, 195, 61, .24), transparent 17rem),
        radial-gradient(circle at 0 110%, rgba(54, 142, 118, .34), transparent 25rem),
        linear-gradient(138deg, #101c29 0%, #162d38 56%, #1c5048 100%);
    box-shadow: 0 28px 70px rgba(16, 28, 41, .2);
    color: #fff;
}

.dh-staff-compensation-hero::before,
.dh-staff-compensation-hero::after {
    position: absolute;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 50%;
    content: "";
    pointer-events: none;
}

.dh-staff-compensation-hero::before {
    width: 26rem;
    height: 26rem;
    top: -19rem;
    right: -5rem;
}

.dh-staff-compensation-hero::after {
    width: 13rem;
    height: 13rem;
    right: 27%;
    bottom: -10rem;
}

.dh-staff-compensation-hero__content,
.dh-staff-compensation-hero__assurance {
    position: relative;
    z-index: 1;
}

.dh-staff-compensation-hero__content {
    align-self: center;
}

.dh-staff-compensation-hero__eyebrow {
    display: flex;
    align-items: center;
    gap: .55rem;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, .68);
    font-size: .7rem;
    font-weight: 850;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.dh-staff-compensation-hero__eyebrow > span {
    display: grid;
    width: 31px;
    height: 31px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 10px;
    background: rgba(255, 255, 255, .08);
    color: #f5d97f;
}

.dh-staff-compensation-hero__eyebrow-glyph {
    width: 16px;
    height: 16px;
}

.dh-staff-compensation-hero h1 {
    max-width: 44rem;
    margin: 0;
    color: #fff;
    font-size: clamp(2rem, 4vw, 3.35rem);
    font-weight: 900;
    letter-spacing: -.045em;
    line-height: .98;
}

.dh-staff-compensation-hero__content > p {
    max-width: 43rem;
    margin: 1rem 0 0;
    color: rgba(255, 255, 255, .72);
    font-size: clamp(.9rem, 1.4vw, 1.03rem);
    line-height: 1.65;
}

.dh-staff-compensation-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: .65rem;
    margin-top: 1.25rem;
}

.dh-staff-compensation-hero__actions .btn {
    min-height: 43px;
    border-radius: 13px;
    font-size: .77rem;
    font-weight: 850;
}

.dh-staff-compensation-hero__actions .btn-outline-light {
    border-color: rgba(255, 255, 255, .24);
    background: rgba(255, 255, 255, .06);
}

.dh-staff-compensation-hero__assurance {
    align-self: center;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: .9rem;
    padding: 1.2rem;
    border: 1px solid rgba(255, 255, 255, .13);
    border-radius: 22px;
    background: rgba(255, 255, 255, .075);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05);
    backdrop-filter: blur(10px);
}

.dh-staff-compensation-hero__assurance > span {
    display: grid;
    width: 46px;
    height: 46px;
    place-items: center;
    border-radius: 15px;
    background: rgba(244, 195, 61, .16);
    color: #f5d97f;
}

.dh-staff-compensation-hero__assurance-glyph {
    width: 22px;
    height: 22px;
}

.dh-staff-compensation-hero__assurance div {
    min-width: 0;
}

.dh-staff-compensation-hero__assurance strong {
    display: block;
    font-size: .9rem;
    font-weight: 880;
}

.dh-staff-compensation-hero__assurance p {
    margin: .35rem 0 0;
    color: rgba(255, 255, 255, .7);
    font-size: .75rem;
    line-height: 1.55;
}

.dh-staff-compensation-hero__assurance small {
    display: inline-flex;
    margin-top: .7rem;
    padding: .28rem .5rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, .1);
    color: rgba(255, 255, 255, .8);
    font-size: .61rem;
    font-weight: 820;
}

.dh-staff-compensation-unavailable {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: .9rem;
    align-items: center;
    padding: 1.25rem;
    border-color: var(--dh-compensation-line);
    border-radius: 22px;
    background: #fff;
}

.dh-staff-compensation-unavailable > span {
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    border-radius: 16px;
    background: var(--dh-compensation-green-soft);
    color: var(--dh-compensation-green);
}

.dh-staff-compensation-unavailable__glyph {
    width: 23px;
    height: 23px;
}

.dh-staff-compensation-unavailable strong {
    font-size: .86rem;
    font-weight: 880;
}

.dh-staff-compensation-unavailable p {
    margin: .25rem 0 0;
    color: var(--dh-compensation-muted);
    font-size: .74rem;
    line-height: 1.5;
}

.dh-staff-compensation-metrics {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: .85rem;
    margin: -2rem 1.25rem 0;
}

.dh-staff-compensation-metrics article {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: .75rem;
    align-items: center;
    min-width: 0;
    min-height: 112px;
    padding: 1rem;
    overflow: hidden;
    border: 1px solid var(--dh-compensation-line);
    border-radius: 19px;
    background: rgba(255, 255, 255, .98);
    box-shadow: 0 16px 34px rgba(24, 35, 55, .075);
}

.dh-staff-compensation-metrics article > span {
    display: grid;
    width: 43px;
    height: 43px;
    place-items: center;
    border-radius: 14px;
    background: #fff2cc;
    color: #966c08;
}

.dh-staff-compensation-metrics .is-approved > span {
    background: #e5f3ee;
    color: #15705d;
}

.dh-staff-compensation-metrics .is-paid > span {
    background: #e4f1ea;
    color: #1a715a;
}

.dh-staff-compensation-metrics .is-role > span {
    background: #edf0f8;
    color: #4f638d;
}

.dh-staff-compensation-metric__glyph {
    width: 21px;
    height: 21px;
}

.dh-staff-compensation-metrics strong,
.dh-staff-compensation-metrics small,
.dh-staff-compensation-metrics p {
    display: block;
}

.dh-staff-compensation-metrics strong {
    overflow: hidden;
    font-size: clamp(1rem, 1.9vw, 1.38rem);
    font-weight: 900;
    letter-spacing: -.035em;
    line-height: 1.05;
    text-overflow: ellipsis;
}

.dh-staff-compensation-metrics small {
    margin-top: .28rem;
    font-size: .75rem;
    font-weight: 850;
}

.dh-staff-compensation-metrics p {
    margin: .14rem 0 0;
    color: var(--dh-compensation-muted);
    font-size: .65rem;
    line-height: 1.35;
}

.dh-staff-compensation-overview,
.dh-staff-compensation-register {
    padding: clamp(1rem, 2.5vw, 1.55rem);
    border-color: var(--dh-compensation-line);
    border-radius: 26px;
    background:
        radial-gradient(circle at 100% 0, rgba(29, 112, 95, .06), transparent 18rem),
        rgba(255, 255, 255, .98);
    box-shadow: 0 18px 46px rgba(24, 35, 55, .065);
}

.dh-staff-compensation-overview__head {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: .8rem;
    align-items: center;
    margin-bottom: 1rem;
}

.dh-staff-compensation-overview__head > span,
.dh-staff-compensation-register__head > span:first-child {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border-radius: 14px;
    background: var(--dh-compensation-green-soft);
    color: var(--dh-compensation-green);
}

.dh-staff-compensation-overview__glyph,
.dh-staff-compensation-register__glyph {
    width: 21px;
    height: 21px;
}

.dh-staff-compensation-overview__head > div,
.dh-staff-compensation-register__head > div {
    min-width: 0;
}

.dh-staff-compensation-overview__head small,
.dh-staff-compensation-register__head div > small {
    display: block;
    margin-bottom: .2rem;
    color: var(--dh-compensation-green);
    font-size: .59rem;
    font-weight: 880;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.dh-staff-compensation-overview__head h2,
.dh-staff-compensation-overview__head p,
.dh-staff-compensation-register__head h2,
.dh-staff-compensation-register__head p {
    margin: 0;
}

.dh-staff-compensation-overview__head h2,
.dh-staff-compensation-register__head h2 {
    font-size: 1rem;
    font-weight: 900;
}

.dh-staff-compensation-overview__head p,
.dh-staff-compensation-register__head p {
    margin-top: .2rem;
    color: var(--dh-compensation-muted);
    font-size: .73rem;
    line-height: 1.45;
}

.dh-staff-compensation-year {
    display: grid;
    gap: .35rem;
    min-width: 220px;
}

.dh-staff-compensation-year > label {
    color: var(--dh-compensation-muted);
    font-size: .64rem;
    font-weight: 820;
}

.dh-staff-compensation-year > div {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: .45rem;
}

.dh-staff-compensation-year .form-control,
.dh-staff-compensation-year .btn {
    min-height: 41px;
    border-radius: 12px;
    font-size: .72rem;
    font-weight: 800;
}

.dh-staff-compensation-year .form-control {
    width: 110px;
}

.dh-staff-compensation-overview__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: .7rem;
}

.dh-staff-compensation-overview[data-payroll-context="international"] .dh-staff-compensation-overview__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.dh-staff-compensation-overview__grid > article {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: .65rem;
    align-items: center;
    min-width: 0;
    padding: .82rem;
    border: 1px solid #e1e7e8;
    border-radius: 16px;
    background: #fbfcfc;
}

.dh-staff-compensation-overview__grid > article > span {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 12px;
    background: #edf3f1;
    color: var(--dh-compensation-green);
}

.dh-staff-compensation-overview__grid > article.is-net {
    border-color: rgba(25, 112, 95, .2);
    background: #f3f9f7;
}

.dh-staff-compensation-overview-card__glyph {
    width: 18px;
    height: 18px;
}

.dh-staff-compensation-overview__grid small,
.dh-staff-compensation-overview__grid strong,
.dh-staff-compensation-overview__grid p {
    display: block;
}

.dh-staff-compensation-overview__grid small {
    color: var(--dh-compensation-muted);
    font-size: .61rem;
    font-weight: 800;
}

.dh-staff-compensation-overview__grid strong {
    margin-top: .16rem;
    font-size: .9rem;
    font-weight: 900;
}

.dh-staff-compensation-overview__grid p {
    margin: .12rem 0 0;
    color: #7a8797;
    font-size: .59rem;
    line-height: 1.35;
}

.dh-staff-compensation-estimate {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: .7rem;
    align-items: center;
    margin-top: .8rem;
    padding: .8rem;
    border: 1px solid #e3e7e9;
    border-radius: 16px;
    background: #f7f9fa;
}

.dh-staff-compensation-estimate > span {
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    border-radius: 12px;
    background: #fff1ca;
    color: #906706;
}

.dh-staff-compensation-estimate__glyph {
    width: 17px;
    height: 17px;
}

.dh-staff-compensation-estimate strong {
    font-size: .72rem;
    font-weight: 850;
}

.dh-staff-compensation-estimate p {
    margin: .16rem 0 0;
    color: var(--dh-compensation-muted);
    font-size: .63rem;
    line-height: 1.45;
}

.dh-staff-compensation-estimate > small {
    padding: .35rem .55rem;
    border-radius: 999px;
    background: #e9eef0;
    color: #5d6a7b;
    font-size: .59rem;
    font-weight: 850;
    white-space: nowrap;
}

.dh-staff-compensation-register__head {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: .75rem;
    align-items: center;
    margin-bottom: 1rem;
}

.dh-staff-compensation-register__head > span:last-child {
    padding: .42rem .65rem;
    border-radius: 999px;
    background: #eef2f2;
    color: #596679;
    font-size: .68rem;
    font-weight: 850;
    white-space: nowrap;
}

.dh-staff-compensation-search {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: .65rem;
    align-items: center;
    margin-bottom: 1rem;
    padding: .42rem .5rem .42rem .85rem;
    border: 1px solid #dde5e3;
    border-radius: 16px;
    background: #f8faf9;
    color: #657286;
    transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.dh-staff-compensation-search:focus-within {
    border-color: rgba(25, 112, 95, .38);
    background: #fff;
    box-shadow: 0 0 0 .22rem rgba(25, 112, 95, .09);
}

.dh-staff-compensation-search__glyph {
    width: 18px;
    height: 18px;
}

.dh-staff-compensation-search .form-control {
    min-height: 42px;
    padding-inline: .2rem;
    border: 0;
    background: transparent;
    box-shadow: none;
    font-size: .8rem;
}

.dh-staff-compensation-search small {
    padding-right: .35rem;
    color: #7a8798;
    font-size: .65rem;
    white-space: nowrap;
}

.dh-staff-compensation-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .9rem;
}

.dh-staff-compensation-entry {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: .85rem;
    padding: 1rem;
    border: 1px solid #e0e7e5;
    border-radius: 20px;
    background: #fbfcfc;
    transition: border-color 170ms ease, box-shadow 170ms ease, background 170ms ease, transform 170ms ease;
}

.dh-staff-compensation-entry:hover {
    border-color: rgba(25, 112, 95, .25);
    background: #fff;
    box-shadow: 0 18px 38px rgba(24, 35, 55, .08);
    transform: translateY(-2px);
}

.dh-staff-compensation-entry.is-cancelled {
    opacity: .72;
}

.dh-staff-compensation-entry__head {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: .7rem;
    align-items: center;
    min-width: 0;
}

.dh-staff-compensation-entry__head > span {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border: 1px solid #dce6e3;
    border-radius: 14px;
    background: linear-gradient(145deg, #edf5f2, #e2efeb);
    color: var(--dh-compensation-green);
}

.dh-staff-compensation-entry__glyph {
    width: 21px;
    height: 21px;
}

.dh-staff-compensation-entry__head > div {
    min-width: 0;
}

.dh-staff-compensation-entry__head > div > div {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .42rem;
}

.dh-staff-compensation-entry__head h3 {
    min-width: 0;
    margin: 0;
    overflow: hidden;
    font-size: .88rem;
    font-weight: 880;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dh-staff-compensation-entry__head p {
    margin: .35rem 0 0;
    color: var(--dh-compensation-muted);
    font-size: .65rem;
    line-height: 1.35;
}

.dh-staff-compensation-entry__head > strong {
    font-size: .86rem;
    font-weight: 900;
    white-space: nowrap;
}

.dh-staff-compensation-entry__amounts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .45rem;
    margin: 0;
}

.dh-staff-compensation-entry__amounts > div {
    min-width: 0;
    padding: .62rem;
    border: 1px solid #e2e8e6;
    border-radius: 13px;
    background: #fff;
}

.dh-staff-compensation-entry__amounts > div.is-pending {
    border-color: rgba(184, 131, 22, .24);
    background: #fffbef;
}

.dh-staff-compensation-entry__amounts dt {
    color: #758195;
    font-size: .57rem;
    font-weight: 820;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.dh-staff-compensation-entry__amounts dd {
    margin: .28rem 0 0;
    font-size: .72rem;
    font-weight: 880;
    overflow-wrap: anywhere;
}

.dh-staff-compensation-entry__progress {
    padding: .72rem;
    border: 1px solid #e0e7e5;
    border-radius: 15px;
    background: linear-gradient(135deg, #fff, #f4f8f7);
}

.dh-staff-compensation-entry__progress header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .8rem;
}

.dh-staff-compensation-entry__progress header > span {
    color: var(--dh-compensation-muted);
    font-size: .61rem;
    font-weight: 800;
}

.dh-staff-compensation-entry__progress header > strong {
    font-size: .62rem;
    font-weight: 850;
    text-align: right;
}

.dh-staff-compensation-entry__progress progress {
    display: block;
    width: 100%;
    height: 7px;
    margin-top: .58rem;
    overflow: hidden;
    border: 0;
    border-radius: 999px;
    background: #e4eae8;
}

.dh-staff-compensation-entry__progress progress::-webkit-progress-bar {
    border-radius: 999px;
    background: #e4eae8;
}

.dh-staff-compensation-entry__progress progress::-webkit-progress-value {
    border-radius: 999px;
    background: linear-gradient(90deg, #19705f, #3e9982);
}

.dh-staff-compensation-entry__progress progress::-moz-progress-bar {
    border-radius: 999px;
    background: linear-gradient(90deg, #19705f, #3e9982);
}

.dh-staff-compensation-entry__progress p {
    margin: .38rem 0 0;
    color: #8d670b;
    font-size: .6rem;
    font-weight: 780;
}

.dh-staff-compensation-entry__dates {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .45rem;
    margin: 0;
}

.dh-staff-compensation-entry__dates > div {
    min-width: 0;
    padding: .25rem .15rem;
}

.dh-staff-compensation-entry__dates dt {
    display: flex;
    align-items: center;
    gap: .3rem;
    color: #788598;
    font-size: .56rem;
    font-weight: 820;
    letter-spacing: .035em;
    text-transform: uppercase;
}

.dh-staff-compensation-entry__date-glyph {
    width: 13px;
    height: 13px;
    flex: 0 0 13px;
}

.dh-staff-compensation-entry__dates dd {
    margin: .28rem 0 0;
    color: var(--dh-compensation-ink);
    font-size: .65rem;
    font-weight: 760;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.dh-staff-compensation-empty {
    display: grid;
    justify-items: center;
    gap: .75rem;
    padding: 2.8rem 1.5rem;
    color: var(--dh-compensation-muted);
    text-align: center;
}

.dh-staff-compensation-empty__glyph {
    width: 42px;
    height: 42px;
    color: var(--dh-compensation-green);
}

.dh-staff-compensation-empty.is-search {
    margin-top: .8rem;
    padding: 1.2rem;
    border: 1px dashed #d7e0de;
    border-radius: 15px;
    background: #fafcfc;
    font-size: .76rem;
}

@media (max-width: 1199.98px) {
    .dh-staff-compensation-list {
        grid-template-columns: minmax(0, 1fr);
    }

    .dh-staff-compensation-overview__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 991.98px) {
    .dh-staff-compensation-hero {
        grid-template-columns: minmax(0, 1fr) minmax(260px, 320px);
    }

    .dh-staff-compensation-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dh-staff-compensation-overview__head {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .dh-staff-compensation-year {
        grid-column: 2;
        justify-self: start;
    }
}

@media (max-width: 767.98px) {
    .dh-staff-compensation-hero {
        grid-template-columns: minmax(0, 1fr);
        min-height: auto;
        padding: 1.4rem;
        border-radius: 24px;
    }

    .dh-staff-compensation-hero::after {
        display: none;
    }

    .dh-staff-compensation-hero__assurance {
        align-self: stretch;
    }

    .dh-staff-compensation-metrics {
        margin: -1rem .65rem 0;
    }

    .dh-staff-compensation-register__head {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .dh-staff-compensation-register__head > span:last-child {
        grid-column: 2;
        justify-self: start;
    }

    .dh-staff-compensation-search {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .dh-staff-compensation-search small {
        grid-column: 2;
        padding: 0 .2rem .35rem;
    }

    .dh-staff-compensation-estimate {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .dh-staff-compensation-estimate > small {
        grid-column: 2;
        justify-self: start;
    }
}

@media (max-width: 575.98px) {
    .dh-staff-compensation-hero__actions,
    .dh-staff-compensation-hero__actions .btn {
        width: 100%;
    }

    .dh-staff-compensation-metrics,
    .dh-staff-compensation-overview__grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .dh-staff-compensation-metrics article {
        min-height: 90px;
    }

    .dh-staff-compensation-overview,
    .dh-staff-compensation-register {
        padding: .9rem;
        border-radius: 20px;
    }

    .dh-staff-compensation-overview__head {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .dh-staff-compensation-year {
        grid-column: 1 / -1;
        width: 100%;
    }

    .dh-staff-compensation-year > div {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .dh-staff-compensation-year .form-control {
        width: 100%;
    }

    .dh-staff-compensation-entry {
        padding: .85rem;
        border-radius: 16px;
    }

    .dh-staff-compensation-entry__head {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .dh-staff-compensation-entry__head > strong {
        grid-column: 2;
    }

    .dh-staff-compensation-entry__amounts,
    .dh-staff-compensation-entry__dates {
        grid-template-columns: minmax(0, 1fr);
    }

    .dh-staff-compensation-entry__dates > div {
        padding: .38rem .15rem;
        border-bottom: 1px solid #edf1f0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .dh-staff-compensation-entry,
    .dh-staff-compensation-search {
        transition: none;
    }

    .dh-staff-compensation-entry:hover {
        transform: none;
    }
}
/* --------------------------------------------------------------------------
   WhatsApp operational inbox
   -------------------------------------------------------------------------- */
.dh-wa-inbox {
    --wa-ink: #152238;
    --wa-muted: #667085;
    --wa-line: rgba(21, 34, 56, .1);
    --wa-green: #087c63;
    --wa-green-soft: #e9f8f3;
    color: var(--wa-ink);
}

.dh-wa-inbox-hero {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    border: 1px solid rgba(19, 41, 73, .08);
    background:
        radial-gradient(circle at 78% 22%, rgba(48, 206, 151, .18), transparent 28%),
        radial-gradient(circle at 92% 120%, rgba(244, 180, 0, .24), transparent 40%),
        linear-gradient(135deg, #fff 0%, #f7fbf9 55%, #fff9e9 100%);
    box-shadow: 0 24px 70px rgba(22, 43, 72, .08);
}

.dh-wa-inbox-hero::before {
    content: "";
    position: absolute;
    width: 17rem;
    height: 17rem;
    right: 5rem;
    top: -11rem;
    z-index: -1;
    border: 1px solid rgba(8, 124, 99, .12);
    border-radius: 50%;
    box-shadow:
        0 0 0 2.5rem rgba(8, 124, 99, .025),
        0 0 0 5rem rgba(244, 180, 0, .025);
}

.dh-wa-inbox-hero__trust {
    display: inline-flex;
    align-items: center;
    gap: .48rem;
    margin-top: 1rem;
    padding: .48rem .72rem;
    border: 1px solid rgba(8, 124, 99, .14);
    border-radius: 999px;
    background: rgba(255, 255, 255, .72);
    color: #087058;
    font-size: .78rem;
    font-weight: 750;
    backdrop-filter: blur(12px);
}

.dh-wa-inbox-hero__orb {
    display: grid;
    width: 5.1rem;
    height: 5.1rem;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .8);
    border-radius: 1.75rem;
    background: linear-gradient(145deg, #0c8f70, #075b50);
    box-shadow:
        0 18px 42px rgba(8, 124, 99, .24),
        inset 0 1px 0 rgba(255, 255, 255, .28);
    color: #fff;
    transform: rotate(-5deg);
}

.dh-wa-inbox-hero__glyph {
    width: 2.15rem;
    height: 2.15rem;
}

.dh-wa-inbox-metrics {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: .75rem;
    margin-bottom: 1rem;
}

.dh-wa-inbox-metric {
    display: grid;
    grid-template-columns: 2.4rem 1fr;
    grid-template-rows: auto auto;
    min-width: 0;
    padding: .85rem .95rem;
    border: 1px solid var(--wa-line);
    border-radius: 1rem;
    background: rgba(255, 255, 255, .92);
    box-shadow: 0 12px 30px rgba(21, 34, 56, .045);
}

.dh-wa-inbox-metric > span {
    display: grid;
    grid-row: 1 / span 2;
    width: 2.05rem;
    height: 2.05rem;
    align-self: center;
    place-items: center;
    border-radius: .72rem;
    background: var(--wa-green-soft);
    color: var(--wa-green);
}

.dh-wa-inbox-metric.is-alert > span {
    background: #fff0ec;
    color: #c5472f;
}

.dh-wa-inbox-metric__glyph {
    width: 1rem;
    height: 1rem;
}

.dh-wa-inbox-metric strong {
    overflow: hidden;
    font-size: 1.28rem;
    line-height: 1.05;
    text-overflow: ellipsis;
}

.dh-wa-inbox-metric small {
    overflow: hidden;
    color: var(--wa-muted);
    font-size: .69rem;
    font-weight: 650;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dh-wa-inbox-filters {
    display: grid;
    grid-template-columns: minmax(16rem, 1fr) minmax(10rem, .34fr) minmax(10rem, .34fr) auto;
    gap: .65rem;
    margin-bottom: 1rem;
    padding: .7rem;
    border: 1px solid var(--wa-line);
    border-radius: 1.05rem;
    background: rgba(255, 255, 255, .9);
}

.dh-wa-inbox-filters select,
.dh-wa-inbox-search {
    min-height: 2.75rem;
    border: 1px solid rgba(21, 34, 56, .12);
    border-radius: .78rem;
    background: #fbfcfd;
}

.dh-wa-inbox-filters select {
    padding: 0 2rem 0 .8rem;
    color: var(--wa-ink);
}

.dh-wa-inbox-search {
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: 0 .8rem;
}

.dh-wa-inbox-search input {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--wa-ink);
}

.dh-wa-inbox-search__glyph {
    width: 1rem;
    color: #718096;
}

.dh-wa-inbox-workspace {
    display: grid;
    grid-template-columns: minmax(16rem, .78fr) minmax(28rem, 1.7fr) minmax(15rem, .72fr);
    min-height: 44rem;
    overflow: hidden;
    border: 1px solid rgba(21, 34, 56, .1);
    border-radius: 1.45rem;
    background: #fff;
    box-shadow: 0 26px 80px rgba(22, 43, 72, .09);
}

.dh-wa-inbox-queue,
.dh-wa-inbox-context {
    min-width: 0;
    background: #fbfcfc;
}

.dh-wa-inbox-queue {
    border-right: 1px solid var(--wa-line);
}

.dh-wa-inbox-context {
    padding: .9rem;
    border-left: 1px solid var(--wa-line);
}

.dh-wa-inbox-panel-head {
    display: flex;
    min-height: 4.5rem;
    align-items: center;
    justify-content: space-between;
    padding: 0 1rem;
    border-bottom: 1px solid var(--wa-line);
    background: rgba(255, 255, 255, .82);
}

.dh-wa-inbox-panel-head > div {
    display: flex;
    align-items: baseline;
    gap: .5rem;
}

.dh-wa-inbox-panel-head span {
    font-weight: 780;
}

.dh-wa-inbox-panel-head strong {
    display: inline-grid;
    min-width: 1.7rem;
    min-height: 1.7rem;
    place-items: center;
    border-radius: 999px;
    background: #edf2f4;
    color: #52606f;
    font-size: .72rem;
}

.dh-wa-inbox-queue__scroll {
    max-height: 48rem;
    overflow: auto;
    scrollbar-color: rgba(21, 34, 56, .18) transparent;
}

.dh-wa-inbox-queue__empty,
.dh-wa-thread-empty {
    display: grid;
    min-height: 22rem;
    place-content: center;
    padding: 2rem;
    color: var(--wa-muted);
    text-align: center;
}

.dh-wa-inbox-queue__empty p {
    max-width: 14rem;
    margin: .75rem auto 0;
    font-size: .82rem;
}

.dh-wa-inbox-empty__glyph {
    width: 1.45rem;
    height: 1.45rem;
}

.dh-wa-conversation {
    display: grid;
    grid-template-columns: 2.55rem minmax(0, 1fr);
    gap: .72rem;
    padding: .92rem 1rem;
    border-bottom: 1px solid rgba(21, 34, 56, .065);
    color: inherit;
    text-decoration: none;
    transition: background-color .18s ease, transform .18s ease;
}

.dh-wa-conversation:hover,
.dh-wa-conversation:focus-visible {
    background: #f4f9f7;
    color: inherit;
}

.dh-wa-conversation.is-active {
    position: relative;
    background: linear-gradient(90deg, #edf9f5 0%, #f8fcfa 100%);
}

.dh-wa-conversation.is-active::before {
    content: "";
    position: absolute;
    inset: .7rem auto .7rem 0;
    width: 3px;
    border-radius: 0 999px 999px 0;
    background: #0a8b6d;
}

.dh-wa-conversation__avatar {
    display: grid;
    width: 2.55rem;
    height: 2.55rem;
    place-items: center;
    border-radius: .88rem;
    background: #eef2f6;
    color: #52606f;
    font-size: .82rem;
    font-weight: 800;
}

.dh-wa-conversation__avatar.is-customer {
    background: #daf4eb;
    color: #087058;
}

.dh-wa-conversation__avatar.is-warning {
    background: #fff2cd;
    color: #9b6705;
}

.dh-wa-conversation__avatar.is-staff {
    background: #e9e6ff;
    color: #5645a7;
}

.dh-wa-conversation__body,
.dh-wa-conversation__topline,
.dh-wa-conversation__meta,
.dh-wa-conversation__footer {
    min-width: 0;
}

.dh-wa-conversation__topline,
.dh-wa-conversation__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
}

.dh-wa-conversation__topline strong,
.dh-wa-conversation__preview {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dh-wa-conversation__topline strong {
    font-size: .84rem;
}

.dh-wa-conversation__topline time,
.dh-wa-conversation__footer {
    color: #7a8697;
    font-size: .64rem;
}

.dh-wa-conversation__meta {
    display: flex;
    align-items: center;
    gap: .45rem;
    margin-top: .25rem;
    color: #748092;
    font-size: .66rem;
}

.dh-wa-pill {
    display: inline-flex;
    padding: .2rem .42rem;
    border-radius: 999px;
    background: #eef2f5;
    color: #667085;
    font-weight: 750;
}

.dh-wa-pill.is-customer {
    background: #ddf5ec;
    color: #087058;
}

.dh-wa-pill.is-warning {
    background: #fff1c9;
    color: #8c5a00;
}

.dh-wa-pill.is-staff {
    background: #ebe8ff;
    color: #5645a7;
}

.dh-wa-conversation__preview {
    display: block;
    margin: .4rem 0;
    color: #5f6b7a;
    font-size: .75rem;
}

.dh-wa-conversation__footer b {
    color: #087058;
    font-weight: 800;
}

.dh-wa-inbox-thread {
    display: flex;
    min-width: 0;
    flex-direction: column;
    background:
        linear-gradient(rgba(251, 249, 242, .82), rgba(251, 249, 242, .82)),
        radial-gradient(circle at 1px 1px, rgba(21, 34, 56, .09) 1px, transparent 1px);
    background-size: auto, 20px 20px;
}

.dh-wa-thread-head {
    display: flex;
    min-height: 4.5rem;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .75rem 1rem;
    border-bottom: 1px solid var(--wa-line);
    background: rgba(255, 255, 255, .9);
    backdrop-filter: blur(18px);
}

.dh-wa-thread-head h2 {
    margin: .08rem 0 0;
    font-size: 1rem;
    font-weight: 820;
}

.dh-wa-thread-head p {
    margin: .12rem 0 0;
    color: #6c7788;
    font-size: .72rem;
}

.dh-wa-thread-head__eyebrow {
    color: #0a7a61;
    font-size: .62rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.dh-wa-thread-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: .4rem;
}

.dh-wa-safety-banner {
    display: flex;
    align-items: center;
    gap: .48rem;
    margin: .7rem 1rem 0;
    padding: .55rem .7rem;
    border: 1px solid transparent;
    border-radius: .75rem;
    font-size: .7rem;
    font-weight: 720;
}

.dh-wa-safety-banner.is-safe {
    border-color: rgba(8, 124, 99, .16);
    background: #eaf8f3;
    color: #087058;
}

.dh-wa-safety-banner.is-warning {
    border-color: rgba(176, 115, 0, .15);
    background: #fff4d7;
    color: #8c5a00;
}

.dh-wa-safety-banner.is-private {
    border-color: rgba(70, 82, 181, .18);
    background: #f2f3ff;
    color: #3543a5;
}

.dh-wa-thread-timeline {
    display: flex;
    min-height: 19rem;
    max-height: 31rem;
    flex: 1 1 auto;
    flex-direction: column;
    gap: .65rem;
    overflow: auto;
    padding: 1rem;
    scroll-behavior: smooth;
}

.dh-wa-thread-no-messages {
    margin: auto;
    color: var(--wa-muted);
    font-size: .82rem;
}

.dh-wa-message {
    display: flex;
    max-width: min(78%, 36rem);
    flex-direction: column;
    align-self: flex-start;
}

.dh-wa-message.is-outbound {
    align-self: flex-end;
}

.dh-wa-message__meta {
    display: flex;
    align-items: center;
    gap: .4rem;
    padding: 0 .25rem .24rem;
    color: #7a8697;
    font-size: .62rem;
}

.dh-wa-message__meta strong {
    color: #4a5568;
}

.dh-wa-message__bubble {
    padding: .72rem .82rem;
    border: 1px solid rgba(21, 34, 56, .08);
    border-radius: .95rem .95rem .95rem .24rem;
    background: #fff;
    box-shadow: 0 7px 20px rgba(21, 34, 56, .055);
    color: #26364d;
    font-size: .82rem;
    line-height: 1.55;
    overflow-wrap: anywhere;
}

.dh-wa-message.is-outbound .dh-wa-message__bubble {
    border-color: rgba(8, 124, 99, .12);
    border-radius: .95rem .95rem .24rem .95rem;
    background: #dff5ed;
}

.dh-wa-message > small {
    align-self: flex-end;
    padding: .2rem .2rem 0;
    color: #7a8697;
    font-size: .58rem;
}

.dh-wa-composer {
    padding: 1rem;
    border-top: 1px solid var(--wa-line);
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 -14px 34px rgba(21, 34, 56, .04);
}

.dh-wa-composer__head > div {
    display: flex;
    align-items: center;
    gap: .65rem;
}

.dh-wa-composer__head > div > span {
    display: grid;
    width: 2.2rem;
    height: 2.2rem;
    place-items: center;
    border-radius: .78rem;
    background: #fff2c7;
    color: #9b6705;
}

.dh-wa-composer__head h3 {
    margin: 0;
    font-size: .88rem;
    font-weight: 820;
}

.dh-wa-composer__head p {
    margin: .15rem 0 0;
    color: var(--wa-muted);
    font-size: .65rem;
}

.dh-wa-ai-draft-form {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: .55rem;
    margin: .8rem 0;
}

.dh-wa-ai-draft-form label {
    display: grid;
    gap: .28rem;
}

.dh-wa-ai-draft-form label span,
.dh-wa-draft-form > label {
    color: #5f6b7a;
    font-size: .65rem;
    font-weight: 750;
}

.dh-wa-ai-draft-form input,
.dh-wa-draft-form textarea {
    width: 100%;
    border: 1px solid rgba(21, 34, 56, .12);
    border-radius: .75rem;
    outline: 0;
    background: #fbfcfd;
    color: var(--wa-ink);
    transition: border-color .18s ease, box-shadow .18s ease;
}

.dh-wa-ai-draft-form input {
    min-height: 2.6rem;
    padding: .55rem .7rem;
}

.dh-wa-draft-form textarea {
    min-height: 7rem;
    padding: .72rem;
    resize: vertical;
}

.dh-wa-ai-draft-form input:focus,
.dh-wa-draft-form textarea:focus {
    border-color: rgba(8, 124, 99, .55);
    box-shadow: 0 0 0 .2rem rgba(8, 124, 99, .09);
}

.dh-wa-draft-form {
    display: grid;
    gap: .35rem;
}

.dh-wa-draft-form__actions,
.dh-wa-send-confirm {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .7rem;
}

.dh-wa-draft-form__actions small {
    color: var(--wa-muted);
    font-size: .64rem;
}

.dh-wa-send-confirm {
    margin-top: .65rem;
    padding-top: .65rem;
    border-top: 1px solid var(--wa-line);
}

.dh-wa-send-confirm label {
    display: flex;
    align-items: flex-start;
    gap: .45rem;
    color: #556171;
    font-size: .68rem;
    line-height: 1.4;
}

.dh-wa-send-confirm input {
    margin-top: .15rem;
    accent-color: #087c63;
}

.dh-wa-composer__empty {
    margin-top: .7rem;
    padding: .6rem;
    border-radius: .65rem;
    background: #f5f7f8;
    color: var(--wa-muted);
    font-size: .68rem;
    text-align: center;
}

.dh-wa-thread-empty {
    flex: 1 1 auto;
}

.dh-wa-thread-empty > span {
    display: grid;
    width: 4.4rem;
    height: 4.4rem;
    margin: 0 auto 1rem;
    place-items: center;
    border: 1px solid rgba(8, 124, 99, .12);
    border-radius: 1.4rem;
    background: #edf8f4;
    color: #087c63;
    transform: rotate(-4deg);
}

.dh-wa-thread-empty__glyph {
    width: 1.8rem;
    height: 1.8rem;
}

.dh-wa-thread-empty h2 {
    margin: 0 0 .4rem;
    color: var(--wa-ink);
    font-size: 1.05rem;
}

.dh-wa-thread-empty p {
    max-width: 24rem;
    margin: 0 auto;
    font-size: .8rem;
}

.dh-wa-context-card,
.dh-wa-draft-history {
    padding: .9rem;
    border: 1px solid rgba(21, 34, 56, .08);
    border-radius: 1rem;
    background: #fff;
    box-shadow: 0 10px 30px rgba(21, 34, 56, .035);
}

.dh-wa-context-card__head {
    display: flex;
    align-items: center;
    gap: .6rem;
    padding-bottom: .7rem;
    border-bottom: 1px solid var(--wa-line);
}

.dh-wa-context-card__head > span {
    display: grid;
    width: 2.05rem;
    height: 2.05rem;
    place-items: center;
    border-radius: .72rem;
    background: #eaf8f3;
    color: #087058;
}

.dh-wa-context-card__glyph {
    width: 1rem;
    height: 1rem;
}

.dh-wa-context-card__head h2 {
    margin: 0;
    font-size: .84rem;
    font-weight: 820;
}

.dh-wa-context-card dl {
    display: grid;
    gap: 0;
    margin: .45rem 0 0;
}

.dh-wa-context-card dl > div {
    display: grid;
    grid-template-columns: .8fr 1.15fr;
    gap: .5rem;
    padding: .55rem 0;
    border-bottom: 1px solid rgba(21, 34, 56, .06);
}

.dh-wa-context-card dt,
.dh-wa-context-card dd {
    min-width: 0;
    margin: 0;
    overflow-wrap: anywhere;
    font-size: .68rem;
}

.dh-wa-context-card dt {
    color: #7a8697;
    font-weight: 650;
}

.dh-wa-context-card dd {
    color: #35445a;
    font-weight: 760;
    text-align: right;
}

.dh-wa-context-card__lock {
    display: flex;
    align-items: center;
    gap: .45rem;
    margin-top: .7rem;
    padding: .55rem;
    border-radius: .7rem;
    background: #eaf8f3;
    color: #087058;
    font-size: .66rem;
    font-weight: 760;
}

.dh-wa-context-card__notice {
    margin: .7rem 0 0;
    color: #7a8697;
    font-size: .62rem;
    line-height: 1.5;
}

.dh-wa-draft-history {
    margin-top: .8rem;
}

.dh-wa-draft-history h3 {
    margin: 0 0 .55rem;
    font-size: .76rem;
    font-weight: 820;
}

.dh-wa-draft-history article {
    padding: .6rem 0;
    border-top: 1px solid rgba(21, 34, 56, .06);
}

.dh-wa-draft-history article > div {
    display: flex;
    justify-content: space-between;
    gap: .4rem;
    color: #7a8697;
    font-size: .58rem;
}

.dh-wa-draft-history article > div strong {
    color: #087058;
}

.dh-wa-draft-history article p {
    display: -webkit-box;
    margin: .35rem 0 0;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    color: #596577;
    font-size: .64rem;
    line-height: 1.45;
}

.dh-wa-owner-card {
    margin-top: 1rem;
    padding: clamp(1rem, 2vw, 1.35rem);
    border: 1px solid rgba(53, 67, 165, .12);
    border-radius: 1.15rem;
    background:
        radial-gradient(circle at 95% 0, rgba(72, 87, 190, .09), transparent 24rem),
        linear-gradient(145deg, #fff 0%, #fafaff 100%);
    box-shadow: 0 18px 45px rgba(21, 34, 56, .055);
}

.dh-wa-owner-card__head {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
    max-width: 52rem;
}

.dh-wa-owner-card__head > span {
    display: grid;
    flex: 0 0 auto;
    width: 2.35rem;
    height: 2.35rem;
    place-items: center;
    border-radius: .8rem;
    background: #eceeff;
    color: #3543a5;
}

.dh-wa-owner-card__head h2 {
    margin: 0;
    color: var(--wa-ink);
    font-size: 1rem;
    font-weight: 850;
}

.dh-wa-owner-card__head p {
    margin: .22rem 0 0;
    color: var(--wa-muted);
    font-size: .74rem;
    line-height: 1.5;
}

.dh-wa-owner-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
    gap: .75rem;
    margin-top: 1rem;
}

.dh-wa-owner-person {
    display: flex;
    flex-direction: column;
    gap: .75rem;
    min-width: 0;
    padding: .9rem;
    border: 1px solid rgba(21, 34, 56, .09);
    border-radius: .9rem;
    background: rgba(255, 255, 255, .94);
}

.dh-wa-owner-person.is-active {
    border-color: rgba(8, 124, 99, .18);
    box-shadow: inset 0 3px 0 rgba(8, 124, 99, .65);
}

.dh-wa-owner-person__identity {
    display: grid;
    min-width: 0;
}

.dh-wa-owner-person__identity span {
    overflow: hidden;
    color: var(--wa-ink);
    font-size: .78rem;
    font-weight: 820;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dh-wa-owner-person__identity small,
.dh-wa-owner-person__status small {
    overflow-wrap: anywhere;
    color: var(--wa-muted);
    font-size: .62rem;
    line-height: 1.45;
}

.dh-wa-owner-person__status {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: .35rem .55rem;
}

.dh-wa-owner-person__status strong {
    color: #35445a;
    font-size: .72rem;
}

.dh-wa-owner-person__status small {
    grid-column: 1 / -1;
}

.dh-wa-owner-pair-form {
    display: grid;
    gap: .65rem;
}

.dh-wa-owner-pair-form > label:first-of-type {
    display: grid;
    gap: .28rem;
}

.dh-wa-owner-pair-form > label:first-of-type > span {
    color: #526074;
    font-size: .64rem;
    font-weight: 760;
}

.dh-wa-owner-pair-form input[type="tel"] {
    width: 100%;
    min-height: 2.35rem;
    padding: .55rem .65rem;
    border: 1px solid rgba(21, 34, 56, .14);
    border-radius: .65rem;
    background: #fff;
    color: var(--wa-ink);
    font: inherit;
    font-size: .72rem;
}

.dh-wa-owner-confirm {
    display: flex;
    align-items: flex-start;
    gap: .45rem;
    color: #647084;
    font-size: .62rem;
    line-height: 1.42;
}

.dh-wa-owner-confirm input {
    margin-top: .12rem;
    accent-color: #3543a5;
}

.dh-wa-owner-card__security {
    display: flex;
    align-items: flex-start;
    gap: .5rem;
    max-width: 64rem;
    margin: .9rem 0 0;
    padding: .7rem .8rem;
    border-radius: .75rem;
    background: rgba(53, 67, 165, .065);
    color: #525f80;
    font-size: .64rem;
    line-height: 1.5;
}

@media (max-width: 1399.98px) {
    .dh-wa-inbox-workspace {
        grid-template-columns: minmax(15rem, .72fr) minmax(26rem, 1.45fr);
    }

    .dh-wa-inbox-context {
        display: none;
    }

    .dh-wa-inbox-thread {
        border-right: 0;
    }
}

@media (max-width: 991.98px) {
    .dh-wa-inbox-metrics {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .dh-wa-inbox-filters {
        grid-template-columns: 1fr 1fr;
    }

    .dh-wa-inbox-search {
        grid-column: 1 / -1;
    }

    .dh-wa-inbox-workspace {
        display: block;
        min-height: 0;
        overflow: visible;
        background: transparent;
        box-shadow: none;
    }

    .dh-wa-inbox-queue,
    .dh-wa-inbox-thread {
        overflow: hidden;
        border: 1px solid var(--wa-line);
        border-radius: 1.1rem;
        background-color: #fff;
        box-shadow: 0 18px 48px rgba(22, 43, 72, .075);
    }

    .dh-wa-inbox-workspace.has-selection .dh-wa-inbox-queue {
        margin-bottom: 1rem;
    }

    .dh-wa-inbox-queue__scroll {
        max-height: 21rem;
    }

    .dh-wa-thread-timeline {
        max-height: 36rem;
    }
}

@media (max-width: 575.98px) {
    .dh-wa-inbox-hero__orb {
        display: none;
    }

    .dh-wa-inbox-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dh-wa-inbox-filters {
        grid-template-columns: 1fr;
    }

    .dh-wa-inbox-search {
        grid-column: auto;
    }

    .dh-wa-thread-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .dh-wa-thread-actions {
        width: 100%;
        justify-content: flex-start;
    }

    .dh-wa-message {
        max-width: 91%;
    }

    .dh-wa-ai-draft-form {
        grid-template-columns: 1fr;
    }

    .dh-wa-draft-form__actions,
    .dh-wa-send-confirm {
        align-items: stretch;
        flex-direction: column;
    }

    .dh-wa-send-confirm .btn,
    .dh-wa-draft-form__actions .btn,
    .dh-wa-ai-draft-form .btn {
        width: 100%;
    }

    .dh-wa-owner-card {
        padding: .9rem;
        border-radius: .95rem;
    }

    .dh-wa-owner-person {
        padding: .8rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .dh-wa-conversation,
    .dh-wa-ai-draft-form input,
    .dh-wa-draft-form textarea,
    .dh-wa-owner-pair-form input {
        transition: none;
    }

    .dh-wa-thread-timeline {
        scroll-behavior: auto;
    }
}

/* ======================================================================
   PLATFORM ANALYTICS — executive cockpit
   ====================================================================== */
.dh-analytics-hero {
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2rem;
    overflow: hidden;
    padding: clamp(1.5rem, 3vw, 2.4rem);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 1.65rem;
    background:
        radial-gradient(circle at 88% 16%, rgba(251, 191, 36, .24), transparent 30%),
        linear-gradient(135deg, #071a3c 0%, #102b5f 54%, #0c2149 100%);
    box-shadow: 0 26px 62px rgba(8, 28, 63, .2);
    color: #fff;
}

.dh-analytics-hero::after {
    content: "";
    position: absolute;
    right: -7rem;
    bottom: -10rem;
    width: 22rem;
    height: 22rem;
    border: 1px solid rgba(255, 255, 255, .11);
    border-radius: 50%;
}

.dh-analytics-hero__copy,
.dh-analytics-range {
    position: relative;
    z-index: 1;
}

.dh-analytics-hero__copy {
    max-width: 52rem;
}

.dh-analytics-hero h1 {
    margin: .2rem 0 .65rem;
    color: #fff;
    font-size: clamp(1.9rem, 4vw, 3.2rem);
    font-weight: 800;
    letter-spacing: -.055em;
}

.dh-analytics-hero p {
    max-width: 48rem;
    margin: 0;
    color: rgba(255, 255, 255, .75);
    font-size: .96rem;
    line-height: 1.65;
}

.dh-analytics-eyebrow {
    margin-bottom: .35rem;
    color: #a16d00;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.dh-analytics-hero .dh-analytics-eyebrow {
    color: #ffd45b;
}

.dh-analytics-freshness {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    margin-top: 1rem;
    color: rgba(255, 255, 255, .78);
    font-size: .76rem;
    font-weight: 650;
}

.dh-status-dot {
    width: .55rem;
    height: .55rem;
    flex: 0 0 auto;
    border-radius: 50%;
    background: #d7dee9;
    box-shadow: 0 0 0 .24rem rgba(215, 222, 233, .15);
}

.dh-status-dot.is-live {
    background: #55d79b;
    box-shadow: 0 0 0 .24rem rgba(85, 215, 155, .17);
}

.dh-analytics-range {
    display: grid;
    grid-template-columns: repeat(2, minmax(6.4rem, 1fr));
    gap: .45rem;
    flex: 0 0 auto;
    padding: .45rem;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 1rem;
    background: rgba(7, 22, 51, .45);
    backdrop-filter: blur(18px);
}

.dh-analytics-range a {
    min-height: 2.65rem;
    padding: .72rem .85rem;
    border-radius: .72rem;
    color: rgba(255, 255, 255, .75);
    font-size: .76rem;
    font-weight: 750;
    text-align: center;
    text-decoration: none;
    transition: background-color .18s ease, color .18s ease, transform .18s ease;
}

.dh-analytics-range a:hover,
.dh-analytics-range a:focus-visible {
    color: #fff;
    background: rgba(255, 255, 255, .09);
}

.dh-analytics-range a.is-active {
    color: #0b1d3f;
    background: #ffc72c;
    box-shadow: 0 7px 18px rgba(255, 199, 44, .24);
}

.dh-analytics-kpis {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: .9rem;
}

.dh-analytics-kpi {
    position: relative;
    overflow: hidden;
    min-width: 0;
    padding: 1.15rem 1.2rem;
    border: 1px solid #e4e9f1;
    border-radius: 1.15rem;
    background: #fff;
    box-shadow: 0 12px 32px rgba(19, 38, 70, .065);
}

.dh-analytics-kpi::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: .24rem;
    background: #dde4ee;
}

.dh-analytics-kpi.is-primary::before { background: #ffc21c; }
.dh-analytics-kpi.is-success::before { background: #27b67a; }
.dh-analytics-kpi.is-warning::before { background: #ed8b27; }

.dh-analytics-kpi > span,
.dh-analytics-driver-grid span,
.dh-analytics-operations span {
    display: block;
    color: #657086;
    font-size: .7rem;
    font-weight: 760;
    letter-spacing: .035em;
    text-transform: uppercase;
}

.dh-analytics-kpi > strong {
    display: block;
    overflow: hidden;
    margin: .42rem 0 .22rem;
    color: #0d2349;
    font-size: clamp(1.35rem, 2.35vw, 2.15rem);
    line-height: 1.1;
    letter-spacing: -.045em;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dh-analytics-kpi > small {
    display: block;
    min-height: 2.35em;
    color: #7a8497;
    font-size: .67rem;
    line-height: 1.45;
}

.dh-analytics-panel {
    padding: clamp(1.2rem, 2.3vw, 1.7rem);
    border-color: #e5e9f0;
    border-radius: 1.35rem;
    box-shadow: 0 18px 46px rgba(18, 37, 66, .065);
}

.dh-analytics-chip {
    display: inline-flex;
    align-items: center;
    min-height: 2rem;
    padding: .42rem .72rem;
    border: 1px solid #dce4ee;
    border-radius: 999px;
    background: #f7f9fc;
    color: #536077;
    font-size: .67rem;
    font-weight: 780;
    white-space: nowrap;
}

.dh-analytics-chip.is-success {
    border-color: #b8e5d2;
    background: #ecfaf4;
    color: #13734e;
}

.dh-analytics-chip.is-warning {
    border-color: #f4d2a9;
    background: #fff8eb;
    color: #96520c;
}

.dh-analytics-bars {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: clamp(.45rem, 1.5vw, 1rem);
    min-height: 17rem;
    margin-top: 1.35rem;
    padding: 1rem .6rem 0;
    border-bottom: 1px solid #e5eaf1;
}

.dh-analytics-bar-column {
    display: grid;
    grid-template-rows: 2.2rem 1fr 1.8rem;
    gap: .35rem;
    min-width: 0;
    text-align: center;
}

.dh-analytics-bar-value,
.dh-analytics-bar-label {
    overflow: hidden;
    color: #667187;
    font-size: .64rem;
    font-weight: 720;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dh-analytics-bar-track {
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    min-height: 9rem;
    border-radius: .8rem .8rem 0 0;
    background: linear-gradient(180deg, rgba(225, 231, 240, .44), rgba(246, 248, 251, .72));
}

.dh-analytics-bar-track span {
    display: block;
    width: min(72%, 3.2rem);
    min-height: .2rem;
    border-radius: .65rem .65rem .12rem .12rem;
    background: linear-gradient(180deg, #ffd24c, #eba900);
    box-shadow: 0 8px 18px rgba(236, 171, 7, .18);
}

.dh-analytics-panel-footer {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .75rem;
    margin-top: 1rem;
}

.dh-analytics-panel-footer > div {
    padding: .85rem;
    border-radius: .9rem;
    background: #f7f9fc;
}

.dh-analytics-panel-footer span,
.dh-analytics-panel-footer strong {
    display: block;
}

.dh-analytics-panel-footer span {
    color: #788398;
    font-size: .65rem;
    font-weight: 720;
}

.dh-analytics-panel-footer strong {
    margin-top: .25rem;
    color: #132b52;
    font-size: .96rem;
}

.dh-analytics-plan-list {
    display: grid;
    gap: .8rem;
    margin-top: 1rem;
}

.dh-analytics-plan-list article {
    padding: .95rem;
    border: 1px solid #e7ebf1;
    border-radius: .95rem;
    background: #fbfcfe;
}

.dh-analytics-plan-list strong,
.dh-analytics-plan-list span {
    display: block;
}

.dh-analytics-plan-list strong {
    color: #152b50;
    font-size: .82rem;
}

.dh-analytics-plan-list span {
    margin-top: .15rem;
    color: #7b8597;
    font-size: .64rem;
}

.dh-analytics-progress {
    height: .38rem;
    overflow: hidden;
    margin-top: .72rem;
    border-radius: 999px;
    background: #e9edf4;
}

.dh-analytics-progress span {
    height: 100%;
    margin: 0;
    border-radius: inherit;
    background: linear-gradient(90deg, #0d2b5c, #2361b9);
}

.dh-analytics-driver-grid,
.dh-analytics-operations {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .8rem;
}

.dh-analytics-driver-grid article,
.dh-analytics-operations article {
    min-width: 0;
    padding: 1rem;
    border: 1px solid #e6ebf2;
    border-radius: 1rem;
    background: linear-gradient(145deg, #fff, #f8fafc);
}

.dh-analytics-driver-grid strong,
.dh-analytics-operations strong {
    display: block;
    margin: .3rem 0 .2rem;
    color: #0c2855;
    font-size: 1.5rem;
    line-height: 1.1;
    letter-spacing: -.035em;
}

.dh-analytics-driver-grid small,
.dh-analytics-operations small {
    display: block;
    color: #7a8496;
    font-size: .66rem;
}

.dh-analytics-unit-list {
    display: flex;
    flex-wrap: wrap;
    gap: .55rem;
}

.dh-analytics-unit-list > div {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .55rem .7rem;
    border: 1px solid #e1e7ef;
    border-radius: 999px;
    background: #fff;
    color: #59657b;
    font-size: .68rem;
    font-weight: 720;
}

.dh-analytics-unit-list strong {
    color: #0f2b58;
}

.dh-ecosystem-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .9rem;
    margin-top: 1.15rem;
}

.dh-ecosystem-card {
    position: relative;
    overflow: hidden;
    min-width: 0;
    padding: 1.1rem;
    border: 1px solid #e4e9f1;
    border-radius: 1.05rem;
    background: linear-gradient(150deg, #fff 0%, #f8fafc 100%);
}

.dh-ecosystem-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: .25rem;
    background: #173d78;
}

.dh-ecosystem-card.is-ai::before { background: #ffc21c; }
.dh-ecosystem-card.is-whatsapp::before { background: #25a96c; }

.dh-ecosystem-card__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: .75rem;
    margin-bottom: .95rem;
}

.dh-ecosystem-card__head span {
    color: #68758a;
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.dh-ecosystem-card__head strong {
    color: #102a55;
    font-size: .82rem;
    text-align: right;
}

.dh-ecosystem-card dl {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .55rem;
    margin: 0;
}

.dh-ecosystem-card dl > div {
    min-width: 0;
    padding: .72rem;
    border-radius: .78rem;
    background: rgba(236, 241, 248, .7);
}

.dh-ecosystem-card dt {
    color: #768196;
    font-size: .62rem;
    font-weight: 680;
}

.dh-ecosystem-card dd {
    overflow: hidden;
    margin: .22rem 0 0;
    color: #132e59;
    font-size: 1.05rem;
    font-weight: 820;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dh-ecosystem-privacy {
    margin-top: .85rem;
    padding: .72rem .85rem;
    border-radius: .8rem;
    background: #edf8f3;
    color: #27684f;
    font-size: .67rem;
    font-weight: 680;
}

.dh-analytics-funnel-table {
    min-width: 54rem;
    margin: 1rem 0 0;
}

.dh-analytics-funnel-table th[scope="row"] {
    color: #182f55;
}

.dh-analytics-rate {
    display: inline-flex;
    min-width: 3.6rem;
    justify-content: center;
    padding: .38rem .58rem;
    border-radius: 999px;
    background: #eaf4ff;
    color: #14569a;
    font-size: .7rem;
    font-weight: 800;
}

.dh-analytics-rate.is-empty {
    background: #f0f2f5;
    color: #7d8797;
}

.dh-analytics-quality-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .7rem;
    margin-top: 1rem;
}

.dh-analytics-quality-list > div {
    display: grid;
    grid-template-columns: 2rem 1fr;
    align-items: start;
    gap: .65rem;
    min-width: 0;
    padding: .8rem;
    border: 1px solid #e6ebf1;
    border-radius: .95rem;
    background: #fbfcfe;
}

.dh-analytics-quality-list > div > span {
    display: grid;
    width: 2rem;
    height: 2rem;
    place-items: center;
    border-radius: .7rem;
    font-weight: 850;
}

.dh-analytics-quality-list .is-ok > span {
    background: #e8f8f1;
    color: #16835a;
}

.dh-analytics-quality-list .is-alert > span {
    background: #fff1e5;
    color: #b15c0a;
}

.dh-analytics-quality-list strong,
.dh-analytics-quality-list small {
    display: block;
}

.dh-analytics-quality-list strong {
    color: #223655;
    font-size: .73rem;
}

.dh-analytics-quality-list small {
    margin-top: .18rem;
    color: #7c8697;
    font-size: .63rem;
    line-height: 1.4;
}

.dh-analytics-definitions {
    display: grid;
    gap: .55rem;
}

.dh-analytics-definitions details {
    overflow: hidden;
    border: 1px solid #e3e8ef;
    border-radius: .85rem;
    background: #fbfcfe;
}

.dh-analytics-definitions summary {
    min-height: 2.75rem;
    padding: .78rem .9rem;
    color: #1c3358;
    cursor: pointer;
    font-size: .73rem;
    font-weight: 780;
}

.dh-analytics-definitions p {
    margin: 0;
    padding: 0 .9rem .9rem;
    color: #69758a;
    font-size: .68rem;
    line-height: 1.55;
}

.dh-analytics-source-note {
    display: grid;
    gap: .2rem;
    padding: .85rem;
    border-radius: .85rem;
    background: #f1f5fa;
    color: #6c778a;
    font-size: .65rem;
}

.dh-analytics-source-note strong {
    color: #203658;
}

@media (max-width: 1399.98px) {
    .dh-analytics-kpis {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 991.98px) {
    .dh-analytics-hero {
        align-items: stretch;
        flex-direction: column;
    }

    .dh-analytics-range {
        width: 100%;
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .dh-analytics-kpis {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dh-ecosystem-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 575.98px) {
    .dh-analytics-hero {
        padding: 1.3rem;
        border-radius: 1.25rem;
    }

    .dh-analytics-hero h1 {
        font-size: 2rem;
    }

    .dh-analytics-range {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dh-analytics-kpis,
    .dh-analytics-driver-grid,
    .dh-analytics-operations,
    .dh-analytics-quality-list,
    .dh-analytics-panel-footer,
    .dh-ecosystem-card dl {
        grid-template-columns: 1fr;
    }

    .dh-analytics-kpi > strong {
        white-space: normal;
    }

    .dh-analytics-bars {
        gap: .28rem;
        padding-inline: 0;
    }

    .dh-analytics-bar-value {
        writing-mode: vertical-rl;
        margin: auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    .dh-analytics-range a {
        transition: none;
    }
}

/* Primary copy on dark workspaces must stay readable without losing hierarchy. */
.dh-app-body[data-dh-ui="2026"] .dh-calendar-workspace .dh-calendar-hero {
    color: #fff;
    border-color: rgba(255, 255, 255, .13);
    background:
        radial-gradient(circle at 88% 12%, rgba(var(--dh-workspace-accent-rgb, 214, 165, 21), .27), transparent 31%),
        radial-gradient(circle at 3% 110%, rgba(66, 139, 187, .2), transparent 38%),
        linear-gradient(135deg, #101c33 0%, #1a2c49 58%, #31536a 100%);
}

.dh-app-body[data-dh-ui="2026"] .dh-payments-hero {
    border-color: rgba(255, 255, 255, .08);
    background:
        radial-gradient(circle at 76% 20%, rgba(255, 197, 61, .2), transparent 29%),
        linear-gradient(135deg, #111c30 0%, #1b2d4c 56%, #173f48 100%);
}

.dh-client-payments-hero p,
.dh-client-bookings-hero p,
.dh-client-profile-hero p,
.dh-notification-hero p,
.dh-client-journey-hero__content > p,
.dh-client-diary-hero__content > p,
.dh-client-courses-hero__content > p,
.dh-client-records-hero__content > p,
.dh-control-center .dh-control-hero .dh-page-subtitle,
.dh-calendar-workspace .dh-calendar-hero .dh-context-hero__copy,
.dh-payments-hero .dh-context-hero__copy,
.dh-staff-diary-hero__content > p,
.dh-manage-journey-hero__content > p,
.dh-staff-customers-hero__content > p,
.dh-staff-courses-hero__content > p,
.dh-staff-compensation-hero__content > p,
.dh-analytics-hero p {
    color: rgba(255, 255, 255, .9);
}
.dh-first-party-review-page {
    min-height: 72vh;
    background:
        radial-gradient(circle at 12% 10%, rgba(251, 191, 36, .18), transparent 24rem),
        radial-gradient(circle at 92% 90%, rgba(39, 94, 170, .12), transparent 28rem),
        #f8f7f3;
}

.dh-first-party-review-shell {
    max-width: 48rem;
}

.dh-first-party-review-head {
    padding: 1rem clamp(.5rem, 4vw, 2.5rem);
}

.dh-first-party-review-card {
    padding: clamp(1.5rem, 5vw, 3rem);
    border: 1px solid rgba(21, 32, 43, .08);
    border-radius: 2rem;
    background: rgba(255, 255, 255, .97);
    box-shadow: 0 1.75rem 5rem rgba(21, 32, 43, .10);
}

.dh-first-party-review-verified {
    display: inline-flex;
    align-items: center;
    padding: .55rem .9rem;
    border-radius: 999px;
    color: #31522a;
    background: #edf7e8;
    font-size: .8rem;
    font-weight: 800;
}

.dh-first-party-review-context {
    display: grid;
    gap: .15rem;
    padding: 1rem 1.15rem;
    border-radius: 1rem;
    color: #15202b;
    background: #f6f5f1;
}

.dh-first-party-review-context span {
    color: #6b7280;
    font-size: .85rem;
}

.dh-first-party-review-stars {
    display: inline-flex;
    flex-direction: row-reverse;
    gap: .3rem;
}

.dh-first-party-review-stars input {
    position: absolute;
    inline-size: 1px;
    block-size: 1px;
    opacity: 0;
}

.dh-first-party-review-stars label {
    color: #d9dde3;
    cursor: pointer;
    font-size: clamp(2rem, 8vw, 3rem);
    line-height: 1;
    transition: color .15s ease, transform .15s ease;
}

.dh-first-party-review-stars label:hover,
.dh-first-party-review-stars label:hover ~ label,
.dh-first-party-review-stars input:checked ~ label {
    color: #f4b400;
}

.dh-first-party-review-stars label:hover {
    transform: translateY(-2px);
}

.dh-first-party-review-stars input:focus-visible + label {
    border-radius: .25rem;
    outline: 3px solid rgba(49, 103, 213, .35);
    outline-offset: 3px;
}

.dh-first-party-review-choice-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .75rem;
}

.dh-first-party-review-choice {
    display: flex;
    min-height: 4.5rem;
    align-items: center;
    gap: .7rem;
    padding: .9rem 1rem;
    border: 1px solid #dfe3e8;
    border-radius: 1rem;
    cursor: pointer;
    font-weight: 750;
}

.dh-first-party-review-choice:has(input:checked) {
    border-color: #f4b400;
    background: #fff8dc;
    box-shadow: 0 0 0 1px #f4b400;
}

.dh-first-party-review-mark {
    display: inline-grid;
    width: 4rem;
    height: 4rem;
    place-items: center;
    border-radius: 50%;
    color: #8a5b00;
    background: #fff2be;
    font-size: 1.75rem;
    font-weight: 950;
}

.dh-first-party-review-mark.is-success {
    color: #24601d;
    background: #e8f6e5;
}

@media (max-width: 575.98px) {
    .dh-first-party-review-choice-grid {
        grid-template-columns: 1fr;
    }
}

.dh-stay-media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr));
    gap: .75rem;
}

.dh-stay-media-link {
    display: block;
    min-width: 0;
    border-radius: 1rem;
    background: #eef1f5;
    overflow: hidden;
}

.dh-stay-media-link:focus-visible {
    outline: 3px solid rgba(36, 87, 214, .38);
    outline-offset: 3px;
}

.dh-stay-media {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    border: 0;
    border-radius: 1rem;
    background: #101827;
    object-fit: cover;
}

/* WhatsApp response lab: staff-only, read-only simulation workspace. */
.dh-wa-simulator {
    --wa-lab-navy: #0d1b3d;
    --wa-lab-yellow: #ffc928;
    --wa-lab-mint: #dff8ee;
}

.dh-wa-simulator__hero {
    background:
        radial-gradient(circle at 88% 12%, rgba(255, 201, 40, .28), transparent 28%),
        linear-gradient(135deg, #fff 0%, #f5f8ff 62%, #fff8dc 100%);
}

.dh-wa-simulator__safety {
    display: flex;
    align-items: center;
    gap: .8rem;
    margin-bottom: 1rem;
    padding: .9rem 1rem;
    border: 1px solid #a8e4cf;
    border-radius: 1rem;
    background: var(--wa-lab-mint);
    color: #124c3a;
}

.dh-wa-simulator__safety-icon,
.dh-wa-simulator__section-icon,
.dh-wa-simulator__empty-icon {
    width: 1.35rem;
    height: 1.35rem;
}

.dh-wa-simulator__workspace {
    display: grid;
    grid-template-columns: minmax(19rem, .86fr) minmax(0, 1.4fr);
    gap: 1rem;
    align-items: start;
}

.dh-wa-simulator__form-card,
.dh-wa-simulator__result-card {
    padding: clamp(1rem, 2vw, 1.5rem);
    border: 1px solid rgba(13, 27, 61, .09);
}

.dh-wa-simulator__section-head {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin-bottom: 1.1rem;
    color: var(--wa-lab-navy);
}

.dh-wa-simulator__section-head > span {
    display: grid;
    width: 2.6rem;
    height: 2.6rem;
    place-items: center;
    border-radius: .85rem;
    background: #fff1b8;
}

.dh-wa-simulator__section-head h2,
.dh-wa-simulator__facts h3,
.dh-wa-simulator__blocked h3 {
    margin: 0;
    color: var(--wa-lab-navy);
    font-weight: 800;
}

.dh-wa-simulator__section-head h2 {
    font-size: 1.08rem;
}

.dh-wa-simulator__form-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .75rem;
}

.dh-wa-simulator textarea {
    min-height: 10.5rem;
    resize: vertical;
}

.dh-wa-simulator__privacy {
    margin-top: 1rem;
    color: #667085;
    font-size: .78rem;
    line-height: 1.45;
}

.dh-wa-simulator__empty {
    display: grid;
    min-height: 16rem;
    place-items: center;
    align-content: center;
    gap: .75rem;
    padding: 2rem;
    border: 1px dashed #cbd3e4;
    border-radius: 1.15rem;
    color: #667085;
    text-align: center;
}

.dh-wa-simulator__decision-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .65rem;
}

.dh-wa-simulator__decision-grid > div {
    min-width: 0;
    padding: .8rem;
    border-radius: .9rem;
    background: #f5f7fb;
}

.dh-wa-simulator__decision-grid span,
.dh-wa-simulator__fact-list span {
    display: block;
    margin-bottom: .2rem;
    color: #6b7280;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .035em;
    text-transform: uppercase;
}

.dh-wa-simulator__decision-grid strong,
.dh-wa-simulator__fact-list strong {
    display: block;
    overflow-wrap: anywhere;
    color: var(--wa-lab-navy);
    font-size: .88rem;
}

.dh-wa-simulator__reply {
    margin-top: 1rem;
    padding: 1rem;
    border: 1px solid #ffe38a;
    border-radius: 1rem;
    background: #fffaf0;
}

.dh-wa-simulator__reply > span {
    display: block;
    margin-bottom: .65rem;
    color: #755b00;
    font-size: .76rem;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.dh-wa-simulator__reply pre {
    margin: 0;
    color: #202b44;
    font: inherit;
    line-height: 1.6;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.dh-wa-simulator__reply p,
.dh-wa-simulator__facts p,
.dh-wa-simulator__blocked p {
    margin: 0;
    color: #5e687b;
}

.dh-wa-simulator__facts,
.dh-wa-simulator__blocked {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e8ebf2;
}

.dh-wa-simulator__facts h3,
.dh-wa-simulator__blocked h3 {
    margin-bottom: .65rem;
    font-size: .95rem;
}

.dh-wa-simulator__fact-list {
    display: grid;
    gap: .6rem;
}

.dh-wa-simulator__fact-list article {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(8rem, 1fr));
    gap: .65rem;
    padding: .8rem;
    border: 1px solid #e5e9f1;
    border-radius: .9rem;
}

.dh-wa-simulator__blocked-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
    gap: .5rem;
    margin-top: .8rem;
}

.dh-wa-simulator__blocked-list > div {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: .1rem .45rem;
    align-items: center;
    padding: .65rem;
    border-radius: .8rem;
    background: #f3f5f9;
}

.dh-wa-simulator__blocked-list strong {
    overflow-wrap: anywhere;
    color: #27334e;
    font-size: .78rem;
}

.dh-wa-simulator__blocked-list small {
    grid-column: 2;
    color: #6b7280;
    font-size: .7rem;
}

.dh-wa-simulator__blocked-icon {
    grid-row: 1 / span 2;
    width: 1rem;
    height: 1rem;
    color: #16805e;
}

@media (max-width: 991.98px) {
    .dh-wa-simulator__workspace {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767.98px) {
    .dh-wa-simulator__form-grid,
    .dh-wa-simulator__decision-grid {
        grid-template-columns: 1fr;
    }
}

.dh-wa-simulator__composer textarea {
    min-height: 5.4rem;
}
