: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;
}

*,
*::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-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;
    }
}

.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__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__actions {
        grid-column: 2;
        justify-content: flex-start;
    }

    .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-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-offer-card {
    min-height: 100%;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.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);
}

@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-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-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: attr(data-icon);
    position: absolute;
    right: 0.85rem;
    bottom: 0.65rem;
    font-size: 2.15rem;
    line-height: 1;
    opacity: 0.12;
}

.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 summary::after {
    content: "Apri";
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--dh-ink-soft);
}

.dh-planner-preset-editor[open] summary::after {
    content: "Chiudi";
}

.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__head[aria-expanded="true"] .dh-ticket-type-board__chevron::before {
    content: "Chiudi";
}

.dh-ticket-type-board__head[aria-expanded="true"] .dh-ticket-type-board__chevron {
    font-size: 0;
}

.dh-ticket-type-board__head[aria-expanded="true"] .dh-ticket-type-board__chevron::before {
    font-size: 0.78rem;
}

.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-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;
}

/* ——— 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;
}
.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;
    }
}
