/*
Theme Name: Duitlabs App Shell
Theme URI: https://duitlabs.io
Author: Duitlabs.io
Description: Mobile-first WordPress app shell for the Duitlabs.io financial control web app.
Version: 0.3.35
Requires at least: 6.4
Requires PHP: 7.2
Text Domain: duitlabs-app-shell
*/

:root {
    --dl-bg: #eaf8ff;
    --dl-bg-deep: #d9f2ff;
    --dl-phone: #fdfcff;
    --dl-card: #ffffff;
    --dl-soft: #f5f5fb;
    --dl-text: #25243f;
    --dl-muted: #9aa0b9;
    --dl-line: #ececf6;
    --dl-primary: #6158bf;
    --dl-primary-dark: #454095;
    --dl-teal: #31c7c3;
    --dl-coral: #f37479;
    --dl-yellow: #f1be4e;
    --dl-blue: #78d9f2;
    --dl-green-soft: #dff8f4;
    --dl-red-soft: #ffefef;
    --dl-shadow: 0 22px 60px rgba(77, 87, 145, 0.16);
    --dl-soft-shadow: 0 14px 34px rgba(78, 80, 130, 0.08);
}

* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
}

body {
    margin: 0;
    background:
        radial-gradient(circle at 18% 8%, rgba(255, 255, 255, 0.94), transparent 28%),
        radial-gradient(circle at 86% 14%, rgba(255, 255, 255, 0.72), transparent 24%),
        linear-gradient(135deg, var(--dl-bg), var(--dl-bg-deep));
    color: var(--dl-text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.45;
}

a {
    color: inherit;
}

button,
input,
select,
textarea {
    font: inherit;
}

button {
    cursor: pointer;
}

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

.dl-topbar {
    display: none;
}

.dl-brand-logo-image {
    display: block;
    width: 172px;
    max-width: 100%;
    height: auto;
}

.dl-app {
    width: min(1120px, 100%);
    min-height: 100vh;
    margin: 0 auto;
    padding: clamp(18px, 4vw, 42px);
}

.dl-phone-stage {
    display: grid;
    grid-template-columns: repeat(2, minmax(320px, 380px));
    justify-content: center;
    align-items: start;
    gap: clamp(22px, 5vw, 46px);
}

.dl-phone {
    position: relative;
    display: grid;
    gap: 16px;
    min-height: 760px;
    padding: 30px 18px 88px;
    border: 1px solid rgba(255, 255, 255, 0.88);
    border-radius: 32px;
    background: rgba(253, 252, 255, 0.94);
    box-shadow: var(--dl-shadow);
    overflow: hidden;
}

.dl-phone::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    border-radius: inherit;
    box-shadow: inset 0 0 0 8px rgba(255, 255, 255, 0.48);
}

.dl-phone-header {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.dl-eyebrow {
    margin: 0 0 8px;
    color: var(--dl-text);
    font-size: 18px;
    font-weight: 850;
    letter-spacing: 0;
}

.dl-workspace-select {
    max-width: 170px;
    min-height: 30px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--dl-muted);
    font-size: 12px;
    font-weight: 700;
}

.dl-muted-small {
    color: var(--dl-muted);
    font-size: 12px;
    font-weight: 700;
}

.dl-icon-row {
    display: flex;
    align-items: center;
    gap: 13px;
}

.dl-line-icon {
    position: relative;
    display: inline-block;
    width: 22px;
    height: 22px;
}

.dl-line-icon-bell {
    border: 2px solid var(--dl-text);
    border-radius: 11px 11px 7px 7px;
    transform: scale(0.66);
}

.dl-line-icon-bell::before {
    content: "";
    position: absolute;
    left: 6px;
    top: -5px;
    width: 6px;
    height: 5px;
    border: 2px solid var(--dl-text);
    border-bottom: 0;
    border-radius: 6px 6px 0 0;
}

.dl-line-icon-bell::after {
    content: "";
    position: absolute;
    left: 7px;
    bottom: -6px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--dl-text);
}

.dl-line-icon-menu::before,
.dl-line-icon-menu::after {
    content: "";
    position: absolute;
    right: 9px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--dl-text);
    box-shadow: 0 7px 0 var(--dl-text), 0 14px 0 var(--dl-text);
}

.dl-line-icon-calendar {
    border: 2px solid var(--dl-text);
    border-radius: 7px;
    transform: scale(0.75);
}

.dl-line-icon-calendar::before {
    content: "";
    position: absolute;
    left: 3px;
    right: 3px;
    top: 6px;
    border-top: 2px solid var(--dl-text);
}

.dl-period-tabs {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    align-items: center;
    min-height: 36px;
}

.dl-period-tabs button {
    border: 0;
    background: transparent;
    color: #b2b6c9;
    font-size: 12px;
    font-weight: 800;
}

.dl-period-tabs .is-active {
    position: relative;
    color: var(--dl-text);
}

.dl-period-tabs .is-active::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -4px;
    width: 34px;
    height: 2px;
    border-radius: 2px;
    background: var(--dl-text);
    transform: translateX(-50%);
}

.dl-balance-card {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 116px;
    padding: 18px;
    border-radius: 14px;
    background: linear-gradient(135deg, #6b62cc 0%, #5a56b8 100%);
    color: #ffffff;
    box-shadow: var(--dl-soft-shadow);
    overflow: hidden;
}

.dl-balance-card p {
    position: relative;
    z-index: 1;
    margin: 0 0 6px;
    color: rgba(255, 255, 255, 0.68);
    font-size: 12px;
    font-weight: 800;
}

.dl-balance-card strong {
    position: relative;
    z-index: 1;
    font-size: 28px;
    line-height: 1;
}

.dl-orbit {
    position: absolute;
    border-radius: 50%;
}

.dl-orbit-one {
    left: -26px;
    top: -22px;
    width: 82px;
    height: 82px;
    border: 5px solid var(--dl-yellow);
}

.dl-orbit-two {
    right: -18px;
    bottom: 6px;
    width: 64px;
    height: 64px;
    background: var(--dl-blue);
}

.dl-balance-card::after {
    content: "";
    position: absolute;
    right: 44px;
    top: 38px;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.78);
}

.dl-summary-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.dl-mini-card,
.dl-insight-card,
.dl-transactions-card,
.dl-chart-card,
.dl-report-sheet,
.dl-quick-add-sheet {
    position: relative;
    z-index: 1;
    border: 1px solid var(--dl-line);
    border-radius: 14px;
    background: var(--dl-card);
    box-shadow: var(--dl-soft-shadow);
}

.dl-mini-card {
    min-height: 118px;
    padding: 17px 12px;
    text-align: center;
}

.dl-mini-card p,
.dl-card-label,
.dl-chart-card p,
.dl-report-totals p {
    margin: 0 0 7px;
    color: var(--dl-muted);
    font-size: 12px;
    font-weight: 800;
}

.dl-mini-card strong {
    color: var(--dl-text);
    font-size: 18px;
}

.dl-mini-icon {
    position: relative;
    display: inline-grid;
    width: 34px;
    height: 34px;
    margin-bottom: 8px;
    place-items: center;
    border-radius: 50%;
}

.dl-mini-icon::before {
    font-size: 18px;
    font-weight: 900;
    line-height: 1;
}

.dl-mini-icon-income {
    background: var(--dl-green-soft);
    color: var(--dl-teal);
}

.dl-mini-icon-income::before {
    content: "\2193";
}

.dl-mini-icon-expense {
    background: var(--dl-red-soft);
    color: var(--dl-coral);
}

.dl-mini-icon-expense::before {
    content: "\2191";
}

.dl-insight-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px 12px;
    padding: 16px;
}

.dl-insight-card strong {
    display: block;
    color: var(--dl-teal);
    font-size: 19px;
}

.dl-insight-card > p {
    grid-column: 1 / -1;
    margin: 0;
    color: var(--dl-muted);
    font-size: 13px;
}

.dl-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 26px;
    padding: 5px 8px;
    border-radius: 999px;
    background: #eeeafa;
    color: var(--dl-primary);
    font-size: 10px;
    font-weight: 900;
}

.dl-transactions-card {
    padding: 19px 16px 12px;
}

.dl-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

.dl-section-head h2 {
    margin: 0;
    color: var(--dl-text);
    font-size: 16px;
    letter-spacing: 0;
}

.dl-section-head button {
    border: 0;
    background: transparent;
    color: var(--dl-primary);
    font-size: 12px;
    font-weight: 850;
}

.dl-transaction-list {
    display: grid;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

.dl-list-item {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    min-height: 60px;
    border-bottom: 1px solid #f1f1f8;
}

.dl-list-item:last-child {
    border-bottom: 0;
}

.dl-transaction-icon {
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    border-radius: 11px;
    background: #eaf9fb;
}

.dl-transaction-icon::before {
    content: "";
    width: 14px;
    height: 14px;
    border-radius: 4px;
    background: var(--dl-teal);
}

.dl-transaction-main {
    min-width: 0;
}

.dl-transaction-title {
    display: block;
    overflow: hidden;
    color: var(--dl-text);
    font-size: 13px;
    font-weight: 850;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dl-transaction-date {
    display: block;
    color: var(--dl-muted);
    font-size: 11px;
    font-weight: 700;
}

.dl-transaction-amount {
    color: var(--dl-coral);
    font-size: 12px;
    font-weight: 900;
}

.dl-transaction-amount.is-income {
    color: var(--dl-teal);
}

.dl-empty {
    margin: 10px 0 0;
    color: var(--dl-muted);
    font-size: 13px;
}

.dl-chart-card {
    min-height: 274px;
    padding: 22px 22px 16px;
    background: #f6f6fb;
}

.dl-chart-card strong {
    display: block;
    margin-bottom: 16px;
    font-size: 19px;
}

.dl-bar-chart {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
    align-items: end;
    height: 150px;
    padding: 0 4px;
}

.dl-bar-chart span {
    position: relative;
    display: grid;
    grid-template-columns: repeat(2, 8px);
    justify-content: center;
    align-items: end;
    height: 100%;
    gap: 6px;
}

.dl-bar-chart span::before,
.dl-bar-chart span::after {
    content: "";
    display: block;
    width: 8px;
    border-radius: 999px 999px 2px 2px;
}

.dl-bar-chart span::before {
    height: var(--income);
    background: var(--dl-teal);
}

.dl-bar-chart span::after {
    height: var(--expense);
    background: var(--dl-coral);
}

.dl-chart-months {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    margin-top: 8px;
    color: #9397b4;
    font-size: 11px;
    font-weight: 700;
    text-align: center;
}

.dl-report-sheet {
    padding: 28px 22px 22px;
    border-radius: 28px 28px 18px 18px;
}

.dl-report-totals {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    text-align: center;
}

.dl-report-totals strong {
    font-size: 16px;
}

.dl-report-totals div:first-child strong {
    color: var(--dl-teal);
}

.dl-report-totals div:last-child strong {
    color: var(--dl-coral);
}

.dl-donut-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    justify-items: center;
    margin-top: 22px;
}

.dl-donut {
    display: block;
    width: 88px;
    height: 88px;
    border-radius: 50%;
}

.dl-donut-income {
    background:
        radial-gradient(circle, #ffffff 49%, transparent 50%),
        conic-gradient(var(--dl-coral) 0 38%, var(--dl-primary) 38% 72%, var(--dl-yellow) 72% 100%);
}

.dl-donut-expense {
    background:
        radial-gradient(circle, #ffffff 49%, transparent 50%),
        conic-gradient(var(--dl-blue) 0 30%, var(--dl-primary) 30% 68%, var(--dl-yellow) 68% 100%);
}

.dl-quick-add-sheet {
    display: none;
    padding: 18px;
}

.dl-quick-add-sheet.is-open {
    display: block;
}

.dl-form {
    display: grid;
    gap: 12px;
}

.dl-field {
    display: grid;
    gap: 6px;
}

.dl-label {
    color: var(--dl-muted);
    font-size: 12px;
    font-weight: 850;
}

.dl-input,
.dl-select {
    width: 100%;
    min-height: 44px;
    border: 1px solid var(--dl-line);
    border-radius: 12px;
    background: #ffffff;
    color: var(--dl-text);
    padding: 10px 12px;
    outline: 0;
}

.dl-input:focus,
.dl-select:focus,
.dl-workspace-select:focus {
    box-shadow: 0 0 0 3px rgba(97, 88, 191, 0.16);
}

.dl-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    border: 0;
    border-radius: 12px;
    background: var(--dl-primary);
    color: #ffffff;
    padding: 10px 14px;
    font-weight: 850;
}

.dl-button:hover {
    background: var(--dl-primary-dark);
}

.dl-bottom-nav {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 18px;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    min-height: 58px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 -8px 24px rgba(74, 78, 128, 0.09);
}

.dl-bottom-nav button {
    display: grid;
    gap: 4px;
    place-items: center;
    border: 0;
    background: transparent;
    color: #a0a5bf;
    font-size: 10px;
    font-weight: 800;
}

.dl-bottom-nav .is-active {
    color: var(--dl-primary);
}

.dl-nav-icon {
    position: relative;
    display: block;
    width: 17px;
    height: 17px;
}

.dl-nav-wallet {
    border: 2px solid currentColor;
    border-radius: 4px;
}

.dl-nav-report::before {
    content: "";
    position: absolute;
    inset: 2px;
    border-radius: 50%;
    border: 3px solid currentColor;
    border-right-color: transparent;
}

.dl-nav-plan::before,
.dl-nav-account::before {
    content: "";
    position: absolute;
    inset: 2px;
    border: 2px solid currentColor;
    border-radius: 4px;
}

.dl-nav-account::before {
    border-radius: 50%;
}

.dl-floating-add {
    position: absolute;
    left: 50%;
    bottom: 38px;
    z-index: 3;
    display: grid;
    width: 58px;
    height: 58px;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: var(--dl-primary);
    box-shadow: 0 12px 24px rgba(97, 88, 191, 0.32);
    color: #ffffff;
    font-size: 30px;
    line-height: 1;
    transform: translateX(-50%);
}

.dl-floating-add:hover {
    background: var(--dl-primary-dark);
}

.dl-auth-wall {
    display: grid;
    min-height: 100vh;
    place-items: center;
    padding: 24px;
}

.dl-auth-box {
    width: min(420px, 100%);
    padding: 28px;
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 24px;
    background: #ffffff;
    box-shadow: var(--dl-shadow);
}

.dl-auth-box h1 {
    margin: 0 0 10px;
    font-size: 28px;
    letter-spacing: 0;
}

.dl-muted {
    color: var(--dl-muted);
}

@media (max-width: 820px) {
    .dl-app {
        padding: 14px;
    }

    .dl-phone-stage {
        grid-template-columns: minmax(0, 390px);
    }

    .dl-phone {
        min-height: 740px;
        border-radius: 28px;
    }
}

@media (max-width: 420px) {
    .dl-app {
        padding: 0;
    }

    .dl-phone-stage {
        display: block;
    }

    .dl-phone {
        min-height: 100vh;
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .dl-phone + .dl-phone {
        margin-top: 18px;
    }
}

/* Client dashboard sidebar layout */
.dl-client-app {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    min-height: 100vh;
    background:
        radial-gradient(circle at 92% 8%, rgba(79, 195, 255, 0.22), transparent 26%),
        linear-gradient(180deg, #f5fbff 0%, #ffffff 46%, #f7fafe 100%);
    color: #1a1d2e;
    font-family: Poppins, Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.dl-client-sidebar {
    position: sticky;
    top: 0;
    display: grid;
    grid-template-rows: auto 1fr auto;
    gap: 26px;
    height: 100vh;
    padding: 24px;
    border-right: 1px solid rgba(142, 148, 166, 0.16);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 12px 0 40px rgba(26, 29, 46, 0.06);
}

.dl-client-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #1a1d2e;
    font-size: 20px;
    font-weight: 900;
    text-decoration: none;
}

.dl-client-logo {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background:
        radial-gradient(circle at 82% 78%, #00c2b8 0 18%, transparent 19%),
        linear-gradient(135deg, #5b5fc7, #4950d8 52%, #4fc3ff);
    box-shadow: 0 12px 24px rgba(91, 95, 199, 0.24);
}

.dl-client-nav {
    display: grid;
    align-content: start;
    gap: 8px;
}

.dl-client-nav button,
.dl-client-logout {
    display: flex;
    align-items: center;
    min-height: 44px;
    border: 0;
    border-radius: 14px;
    background: transparent;
    color: #424656;
    padding: 10px 12px;
    font-weight: 850;
    text-align: left;
    text-decoration: none;
}

.dl-client-nav button:hover,
.dl-client-nav button.is-active {
    background: #eeeefa;
    color: #5b5fc7;
}

.dl-client-logout {
    border: 1px solid rgba(91, 95, 199, 0.18);
    justify-content: center;
    color: #5b5fc7;
}

.dl-client-main {
    min-width: 0;
    padding: 28px;
}

.dl-client-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 20px;
}

.dl-client-eyebrow {
    margin: 0 0 6px;
    color: #5b5fc7;
    font-size: 13px;
    font-weight: 900;
}

.dl-client-topbar h1 {
    margin: 0;
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1;
    letter-spacing: -0.04em;
}

.dl-client-topbar-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.dl-client-select,
.dl-client-button,
.dl-client-panel button,
.dl-client-modal button,
.dl-client-modal select,
.dl-client-modal input {
    min-height: 42px;
    border-radius: 12px;
}

.dl-client-select,
.dl-client-modal select,
.dl-client-modal input {
    border: 1px solid #e7eaf2;
    background: #ffffff;
    color: #1a1d2e;
    padding: 9px 11px;
}

.dl-client-button,
.dl-client-panel button,
.dl-client-modal .dl-button {
    border: 0;
    background: linear-gradient(135deg, #5b5fc7, #444bd3);
    color: #ffffff;
    padding: 9px 14px;
    font-weight: 900;
}

.dl-client-page {
    display: none;
}

.dl-client-page.is-active {
    display: block;
}

.dl-client-stats {
    display: grid;
    grid-template-columns: 1.45fr repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 14px;
}

.dl-client-balance,
.dl-client-stat,
.dl-client-panel {
    border: 1px solid rgba(142, 148, 166, 0.14);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 16px 48px rgba(26, 29, 46, 0.1);
}

.dl-client-balance {
    position: relative;
    padding: 22px;
    overflow: hidden;
    color: #ffffff;
    background:
        radial-gradient(circle at 92% 78%, #00c2b8 0 15%, transparent 16%),
        linear-gradient(135deg, #5b5fc7, #444bd3);
}

.dl-client-balance p,
.dl-client-stat p {
    margin: 0 0 8px;
    color: rgba(255, 255, 255, 0.74);
    font-size: 13px;
    font-weight: 850;
}

.dl-client-balance strong {
    display: block;
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1;
}

.dl-client-balance span {
    display: inline-flex;
    margin-top: 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 900;
}

.dl-client-stat {
    padding: 20px;
}

.dl-client-stat p {
    color: #8e94a6;
}

.dl-client-stat strong {
    font-size: 24px;
}

.dl-client-panel {
    padding: 20px;
    margin-bottom: 14px;
}

.dl-client-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.dl-client-panel h2,
.dl-client-panel-head h2 {
    margin: 0;
    font-size: 18px;
}

.dl-client-insight,
.dl-client-muted {
    margin: 0;
    color: #424656;
}

.dl-client-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
    gap: 14px;
}

.dl-client-report-card {
    display: grid;
    gap: 10px;
}

.dl-client-report-card div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 12px;
    border-radius: 14px;
    background: #f7fafe;
}

.dl-client-report-card span {
    color: #8e94a6;
    font-weight: 850;
}

.dl-client-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: none;
    place-items: center;
    padding: 20px;
    background: rgba(26, 29, 46, 0.38);
}

.dl-client-modal.is-open {
    display: grid;
}

.dl-client-modal-card {
    width: min(460px, 100%);
    border-radius: 24px;
    background: #ffffff;
    padding: 20px;
    box-shadow: 0 24px 80px rgba(26, 29, 46, 0.22);
}

@media (max-width: 980px) {
    .dl-client-app {
        grid-template-columns: 1fr;
    }

    .dl-client-sidebar {
        position: static;
        height: auto;
        border-right: 0;
        border-bottom: 1px solid rgba(142, 148, 166, 0.16);
    }

    .dl-client-nav {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .dl-client-stats,
    .dl-client-grid {
        grid-template-columns: 1fr;
    }
}

/* Final dashboard overrides */
.dl-client-page[data-dl-page="dashboard"] .dl-dashboard-action-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin: 14px 0;
}

.dl-client-page[data-dl-page="dashboard"] .dl-planning-summary-card {
    min-height: 168px;
}

.dl-client-page[data-dl-page="dashboard"] .dl-obligation-widget,
.dl-client-page[data-dl-page="dashboard"] .dl-obligation-widget strong,
.dl-client-page[data-dl-page="dashboard"] .dl-obligation-widget span,
.dl-client-page[data-dl-page="dashboard"] .dl-obligation-widget p {
    color: #ffffff;
}

.dl-client-page[data-dl-page="dashboard"] .dl-obligation-widget {
    background:
        radial-gradient(circle at 96% 8%, rgba(0, 194, 184, 0.24), transparent 26%),
        linear-gradient(135deg, #1a1d2e, #424656);
}

.dl-client-page[data-dl-page="dashboard"] .dl-obligation-widget span,
.dl-client-page[data-dl-page="dashboard"] .dl-obligation-widget p {
    opacity: 0.86;
}

.dl-client-page[data-dl-page="dashboard"] .dl-obligation-widget button {
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
}

.dl-client-page[data-dl-page="dashboard"] .dl-client-grid {
    grid-template-columns: 1.35fr 0.75fr 0.75fr;
}

@media (max-width: 1100px) {
    .dl-client-page[data-dl-page="dashboard"] .dl-dashboard-action-grid,
    .dl-client-page[data-dl-page="dashboard"] .dl-client-grid {
        grid-template-columns: 1fr;
    }
}

/* Settings, account, PWA mobile polish */
.dl-settings-hero,
.dl-account-layout {
    display: grid;
    gap: 14px;
    margin-bottom: 14px;
}

.dl-settings-hero {
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
}

.dl-settings-info-card,
.dl-settings-guide-card,
.dl-account-profile-card,
.dl-account-plan-card,
.dl-account-actions-card {
    border: 0;
    border-radius: 18px;
    background: #ffffff;
    padding: 20px;
}

.dl-settings-info-card {
    min-height: 188px;
    background:
        radial-gradient(circle at 90% 16%, rgba(0, 194, 184, 0.22), transparent 24%),
        linear-gradient(135deg, #5b5fc7, #1a1d2e);
    color: #ffffff;
}

.dl-settings-info-card span,
.dl-settings-info-card p {
    color: rgba(255, 255, 255, 0.82);
}

.dl-settings-info-card h2 {
    max-width: 660px;
    margin: 10px 0 12px;
    color: #ffffff;
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1;
}

.dl-settings-guide-card,
.dl-account-plan-card,
.dl-account-actions-card {
    display: grid;
    align-content: center;
    gap: 10px;
}

.dl-settings-guide-card span,
.dl-account-plan-card span,
.dl-account-profile-card span {
    color: #5b5fc7;
    font-size: 12px;
    font-weight: 950;
}

.dl-settings-guide-card strong,
.dl-account-plan-card strong {
    color: #1a1d2e;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1;
}

.dl-settings-guide-card p,
.dl-account-profile-card p,
.dl-account-plan-card p,
.dl-account-actions-card p {
    margin: 0;
    color: #424656;
}

.dl-account-layout {
    grid-template-columns: minmax(0, 1.1fr) minmax(260px, 0.7fr);
}

.dl-account-profile-card {
    display: flex;
    align-items: center;
    gap: 18px;
    min-height: 180px;
    background:
        radial-gradient(circle at 90% 18%, rgba(255, 200, 87, 0.28), transparent 24%),
        #ffffff;
}

.dl-account-avatar {
    display: grid;
    width: 74px;
    height: 74px;
    place-items: center;
    border-radius: 24px;
    background: linear-gradient(135deg, #5b5fc7, #00c2b8);
    color: #ffffff !important;
    font-size: 30px !important;
    font-weight: 950;
}

.dl-account-profile-card h2 {
    margin: 4px 0;
    color: #1a1d2e;
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1;
}

.dl-account-plan-card {
    background:
        radial-gradient(circle at 94% 14%, rgba(0, 194, 184, 0.24), transparent 26%),
        linear-gradient(135deg, #1a1d2e, #424656);
}

.dl-account-plan-card span,
.dl-account-plan-card strong,
.dl-account-plan-card p {
    color: #ffffff;
}

.dl-account-actions-card button,
.dl-account-actions-card .dl-button {
    width: fit-content;
    text-decoration: none;
}

@media (max-width: 980px) {
    .dl-settings-hero,
    .dl-account-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    body {
        background: #f7f6fb;
    }

    .dl-client-app {
        display: block;
        min-height: 100vh;
        padding: 0 0 104px;
        background:
            radial-gradient(circle at 100% 0%, rgba(91, 95, 199, 0.18), transparent 28%),
            #f7f6fb;
    }

    .dl-client-main {
        padding: 22px 16px 0;
    }

    .dl-client-sidebar {
        position: fixed;
        left: 14px;
        right: 14px;
        bottom: 14px;
        top: auto;
        z-index: 950;
        display: block;
        width: auto;
        height: auto;
        padding: 8px;
        border-radius: 28px;
        background: #5b5fc7;
        box-shadow: 0 18px 48px rgba(91, 95, 199, 0.26);
    }

    .dl-client-brand,
    .dl-client-logout,
    .dl-upgrade-side {
        display: none;
    }

    .dl-client-nav {
        display: grid;
        grid-template-columns: repeat(7, minmax(0, 1fr));
        gap: 2px;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .dl-client-nav::-webkit-scrollbar {
        display: none;
    }

    .dl-client-nav button {
        display: grid;
        justify-items: center;
        gap: 4px;
        width: auto;
        min-width: 52px;
        height: 58px;
        min-height: 58px;
        border-radius: 20px;
        padding: 6px 4px;
        color: rgba(255, 255, 255, 0.66);
    }

    .dl-client-nav button span:last-child {
        position: static;
        width: auto;
        height: auto;
        overflow: visible;
        clip: auto;
        color: inherit;
        font-size: 10px;
        line-height: 1;
        white-space: nowrap;
    }

    .dl-client-nav button.is-active,
    .dl-client-nav button:hover {
        background: rgba(255, 255, 255, 0.16);
        color: #ffffff;
        box-shadow: none;
    }

    .dl-client-nav .dl-rail-icon {
        width: 26px;
        height: 26px;
        border-radius: 12px;
        background: rgba(255, 255, 255, 0.14);
        color: currentColor;
    }

    .dl-client-topbar {
        display: grid;
        gap: 14px;
        min-height: 0;
        margin-bottom: 16px;
    }

    .dl-client-eyebrow {
        font-size: 24px;
    }

    .dl-client-topbar-actions {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto auto;
        gap: 8px;
    }

    .dl-client-search {
        display: none;
    }

    .dl-workspace-switcher {
        grid-column: 1 / 2;
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .dl-client-select {
        width: 100%;
        min-height: 44px;
    }

    .dl-round-action {
        width: 44px;
        height: 44px;
    }

    .dl-client-stats {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 10px;
    }

    .dl-client-balance {
        grid-column: 1 / -1;
        min-height: 132px;
        border-radius: 24px;
        background:
            radial-gradient(circle at 88% 22%, rgba(0, 194, 184, 0.34), transparent 24%),
            linear-gradient(135deg, #7b45e8, #5b5fc7);
    }

    .dl-client-stat {
        display: grid;
        grid-template-columns: 1fr;
        gap: 8px;
        min-height: 118px;
        padding: 14px;
        border-radius: 20px;
        text-align: left;
    }

    .dl-client-stat .dl-stat-icon {
        grid-row: auto;
        width: 34px;
        height: 34px;
    }

    .dl-client-stat p,
    .dl-client-stat strong {
        grid-column: auto;
    }

    .dl-client-stat strong {
        font-size: clamp(15px, 4vw, 20px);
        overflow-wrap: anywhere;
    }

    .dl-client-panel,
    .dl-planning-summary-card,
    .dl-settings-info-card,
    .dl-settings-guide-card,
    .dl-account-profile-card,
    .dl-account-plan-card,
    .dl-account-actions-card {
        border-radius: 24px;
    }

    .dl-settings-grid,
    .dl-settings-grid-three,
    .dl-dashboard-action-grid,
    .dl-client-page[data-dl-page="dashboard"] .dl-dashboard-action-grid,
    .dl-client-page[data-dl-page="dashboard"] .dl-client-grid {
        grid-template-columns: 1fr;
    }

    .dl-client-fab-group {
        right: 18px;
        bottom: 94px;
    }

    .dl-smart-ai-fab {
        min-height: 48px;
        padding-right: 8px;
    }

    .dl-quick-add-fab {
        width: 56px;
        height: 56px;
    }

    .dl-account-profile-card {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* Dashboard product polish */
.dl-insight-panel {
    background:
        linear-gradient(135deg, #ffffff 0%, #f7fafe 100%);
}

.dl-health-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    border-radius: 999px;
    background: #eeeefa;
    color: #5b5fc7;
    padding: 0 12px;
    font-size: 12px;
    font-weight: 950;
}

.dl-health-pill.is-safe {
    background: #dff8f4;
    color: #008f88;
}

.dl-health-pill.is-warning {
    background: #ffefef;
    color: #d94c52;
}

.dl-health-pill.is-neutral {
    background: #f7fafe;
    color: #8e94a6;
}

.dl-dashboard-action-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin: 14px 0;
}

.dl-dashboard-action-grid .dl-planning-summary-card {
    position: relative;
    min-height: 168px;
    overflow: hidden;
}

.dl-dashboard-action-grid .dl-planning-summary-card::after {
    content: "";
    position: absolute;
    right: -34px;
    top: -34px;
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background: rgba(91, 95, 199, 0.08);
}

.dl-widget-head {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.dl-widget-head strong {
    font-size: 32px;
}

.dl-dashboard-action-grid .dl-progress,
.dl-budget-meter-card .dl-progress,
.dl-goal-meter-card .dl-progress {
    position: relative;
    z-index: 1;
    height: 12px;
    background: #f1f3f8;
}

.dl-dashboard-action-grid p {
    position: relative;
    z-index: 1;
    min-height: 38px;
}

.dl-dashboard-action-grid button {
    position: relative;
    z-index: 1;
    width: fit-content;
    min-height: 36px;
    border: 0;
    border-radius: 12px;
    background: #eeeefa;
    color: #5b5fc7;
    padding: 0 12px;
    font-size: 12px;
    font-weight: 950;
}

.dl-obligation-widget {
    background:
        radial-gradient(circle at 96% 8%, rgba(0, 194, 184, 0.24), transparent 26%),
        linear-gradient(135deg, #1a1d2e, #424656);
    color: #ffffff;
}

.dl-obligation-widget span,
.dl-obligation-widget p,
.dl-obligation-widget strong {
    color: #ffffff;
}

.dl-obligation-widget span,
.dl-obligation-widget p {
    opacity: 0.84;
}

.dl-obligation-widget button {
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
}

.dl-month-report {
    display: grid;
    align-content: start;
}

.dl-report-bars {
    display: grid;
    grid-template-columns: repeat(2, 46px);
    justify-content: center;
    align-items: end;
    gap: 18px;
    height: 110px;
    margin: 4px 0 14px;
    padding: 10px 0;
    border-radius: 16px;
    background: #f7fafe;
}

.dl-report-bars span {
    display: flex;
    align-items: end;
    justify-content: center;
    height: 100%;
    border-radius: 999px;
    background: #eef2f8;
}

.dl-report-bars i {
    display: block;
    width: 100%;
    min-height: 0;
    border-radius: 999px;
}

.dl-report-bars span:first-child i {
    background: #00c2b8;
}

.dl-report-bars span:last-child i {
    background: #ff6b6b;
}

.dl-next-obligation-card {
    display: grid;
    align-content: start;
}

.dl-next-obligation {
    display: grid;
    gap: 8px;
    min-height: 148px;
    align-content: center;
    border-radius: 18px;
    background:
        radial-gradient(circle at 86% 18%, rgba(255, 200, 87, 0.28), transparent 28%),
        #f7fafe;
    padding: 18px;
}

.dl-next-obligation strong,
.dl-next-obligation span {
    display: block;
}

.dl-next-obligation strong {
    color: #1a1d2e;
    font-size: 18px;
}

.dl-next-obligation span {
    color: #5b5fc7;
    font-size: 28px;
    font-weight: 950;
    line-height: 1;
}

.dl-next-obligation p {
    margin: 0;
    color: #424656;
    font-size: 13px;
}

.dl-transactions-panel .dl-transaction-list {
    min-height: 132px;
}

@media (max-width: 1100px) {
    .dl-dashboard-action-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .dl-dashboard-action-grid,
    .dl-client-grid {
        grid-template-columns: 1fr;
    }

    .dl-report-bars {
        grid-template-columns: repeat(2, minmax(44px, 72px));
    }
}

@media (max-width: 620px) {
    .dl-client-main {
        padding: 16px;
    }

    .dl-client-topbar,
    .dl-client-topbar-actions {
        display: grid;
        align-items: stretch;
    }

    .dl-client-nav {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Reference-inspired dashboard layout: soft canvas, icon rail, compact cards */
.dl-client-app {
    grid-template-columns: 74px minmax(0, 1fr);
    min-height: 100vh;
    padding: 24px;
    background: #eeeee9;
    gap: 22px;
}

.dl-client-sidebar {
    position: sticky;
    top: 24px;
    align-self: start;
    height: calc(100vh - 48px);
    padding: 16px 10px;
    border: 0;
    border-radius: 28px;
    background: #ffffff;
    box-shadow: 0 18px 50px rgba(26, 29, 46, 0.08);
}

.dl-client-brand {
    justify-content: center;
}

.dl-client-brand-text,
.dl-client-nav button span:last-child,
.dl-client-logout span:last-child {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}

.dl-client-logo {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background:
        repeating-conic-gradient(from 0deg, #5b5fc7 0 10deg, transparent 10deg 20deg),
        radial-gradient(circle, #00c2b8 0 34%, transparent 36%);
    box-shadow: none;
}

.dl-client-logo-image {
    display: block;
    width: 164px;
    max-width: 100%;
    height: auto;
}

.dl-client-nav {
    justify-items: center;
}

.dl-client-nav button,
.dl-client-logout {
    position: relative;
    justify-content: center;
    width: 44px;
    height: 44px;
    min-height: 44px;
    padding: 0;
    border-radius: 50%;
}

.dl-client-nav button.is-active,
.dl-client-nav button:hover {
    background: #1a1d2e;
    color: #ffffff;
}

.dl-rail-icon {
    position: relative;
    display: block;
    width: 18px;
    height: 18px;
    color: currentColor;
}

.dl-rail-dashboard::before {
    content: "";
    position: absolute;
    inset: 2px;
    background:
        linear-gradient(currentColor 0 0) 0 0 / 7px 7px,
        linear-gradient(currentColor 0 0) 11px 0 / 7px 7px,
        linear-gradient(currentColor 0 0) 0 11px / 7px 7px,
        linear-gradient(currentColor 0 0) 11px 11px / 7px 7px;
    background-repeat: no-repeat;
    border-radius: 3px;
}

.dl-rail-wallet::before,
.dl-rail-card::before {
    content: "";
    position: absolute;
    inset: 2px;
    border: 2px solid currentColor;
    border-radius: 4px;
}

.dl-rail-chart::before,
.dl-rail-report::before {
    content: "";
    position: absolute;
    left: 3px;
    bottom: 2px;
    width: 3px;
    height: 12px;
    background: currentColor;
    box-shadow: 6px -5px 0 currentColor, 12px -2px 0 currentColor;
    border-radius: 2px;
}

.dl-rail-goal::before,
.dl-rail-users::before,
.dl-rail-account::before {
    content: "";
    position: absolute;
    inset: 3px;
    border: 2px solid currentColor;
    border-radius: 50%;
}

.dl-rail-tag::before {
    content: "";
    position: absolute;
    inset: 3px;
    border: 2px solid currentColor;
    border-radius: 4px 8px 8px 4px;
    transform: rotate(-12deg);
}

.dl-rail-logout::before {
    content: "";
    position: absolute;
    inset: 3px;
    border: 2px solid currentColor;
    border-left: 0;
    border-radius: 3px;
}

.dl-client-main {
    padding: 0;
}

.dl-client-topbar {
    min-height: 84px;
    margin-bottom: 18px;
}

.dl-client-eyebrow {
    color: #1a1d2e;
    font-size: 22px;
    font-weight: 900;
}

.dl-client-topbar h1 {
    color: #424656;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0;
}

.dl-client-topbar-actions {
    gap: 12px;
}

.dl-client-search,
.dl-master-search {
    position: relative;
    display: block;
}

.dl-client-search span,
.dl-master-search span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}

.dl-client-search input,
.dl-master-search input {
    width: min(360px, 32vw);
    min-height: 48px;
    border: 0;
    border-radius: 22px;
    background: #ffffff;
    padding: 0 18px;
    color: #1a1d2e;
    box-shadow: 0 16px 42px rgba(26, 29, 46, 0.06);
}

.dl-round-action {
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: #ffffff;
    color: #1a1d2e;
    font-weight: 900;
    box-shadow: 0 16px 42px rgba(26, 29, 46, 0.06);
}

.dl-client-select {
    border: 0;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 16px 42px rgba(26, 29, 46, 0.06);
}

.dl-client-stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.dl-client-balance,
.dl-client-stat {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    min-height: 86px;
    padding: 18px;
    border: 0;
    border-radius: 14px;
    background: #ffffff;
    color: #1a1d2e;
    box-shadow: none;
}

.dl-client-balance {
    background: #5b5fc7;
    color: #ffffff;
}

.dl-client-balance p,
.dl-client-stat p {
    grid-column: 2;
    margin: 0;
    color: inherit;
    opacity: 0.72;
    font-size: 12px;
    font-weight: 750;
}

.dl-client-balance strong,
.dl-client-stat strong {
    grid-column: 2;
    font-size: clamp(20px, 2vw, 26px);
}

.dl-client-balance > span:last-child {
    grid-column: 2;
    margin: 0;
    width: fit-content;
}

.dl-stat-icon {
    grid-row: 1 / span 3;
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 50%;
    background: #dff8f4;
}

.dl-stat-icon::before {
    content: "";
    width: 18px;
    height: 18px;
    border-radius: 4px;
    background: #00c2b8;
}

.dl-stat-expense {
    background: #ffe3e3;
}

.dl-stat-expense::before {
    background: #ff6b6b;
}

.dl-stat-balance,
.dl-stat-wallet {
    background: rgba(255, 255, 255, 0.18);
}

.dl-client-panel,
.dl-client-balance,
.dl-client-stat {
    border-radius: 14px;
}

.dl-client-panel {
    border: 0;
    background: #ffffff;
    box-shadow: none;
}

.dl-client-grid {
    grid-template-columns: 1.35fr 0.75fr 0.75fr;
}

.dl-security-card {
    display: grid;
    place-items: center;
    text-align: center;
}

.dl-security-fingerprint {
    width: 74px;
    height: 74px;
    border-radius: 50%;
    border: 7px double #5b5fc7;
    box-shadow: inset 0 0 0 9px #ffffff;
}

@media (max-width: 1100px) {
    .dl-client-stats,
    .dl-client-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .dl-client-app {
        grid-template-columns: 1fr;
        padding: 12px;
    }

    .dl-client-sidebar {
        position: static;
        height: auto;
        grid-template-rows: auto auto;
    }

    .dl-client-nav {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .dl-client-topbar,
    .dl-client-topbar-actions,
    .dl-client-stats,
    .dl-client-grid {
        display: grid;
        grid-template-columns: 1fr;
    }

    .dl-client-search input,
    .dl-master-search input {
        width: 100%;
    }
}

/* Visible text sidebar update */
.dl-client-app {
    grid-template-columns: 232px minmax(0, 1fr);
}

.dl-client-sidebar {
    padding: 18px 14px;
}

.dl-client-brand {
    justify-content: flex-start;
    gap: 10px;
    padding: 4px 8px 18px;
}

.dl-client-brand-text,
.dl-client-nav button span:last-child,
.dl-client-logout span:last-child {
    position: static;
    width: auto;
    height: auto;
    overflow: visible;
    clip: auto;
    white-space: nowrap;
}

.dl-client-brand-text {
    color: #1a1d2e;
    font-weight: 900;
}

.dl-client-nav {
    justify-items: stretch;
    gap: 8px;
}

.dl-client-nav button,
.dl-client-logout {
    justify-content: flex-start;
    width: 100%;
    height: 46px;
    min-height: 46px;
    gap: 12px;
    padding: 0 14px;
    border-radius: 15px;
    color: #424656;
}

.dl-client-nav button.is-active,
.dl-client-nav button:hover {
    background: #1a1d2e;
    color: #ffffff;
}

.dl-client-logout {
    margin-top: auto;
}

@media (max-width: 980px) {
    .dl-client-app {
        grid-template-columns: 1fr;
    }

    .dl-client-sidebar {
        position: static;
        height: auto;
    }

    .dl-client-nav {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .dl-client-nav {
        grid-template-columns: 1fr;
    }
}

/* Payment success page */
.dl-payment-success {
    display: grid;
    min-height: 100vh;
    place-items: center;
    padding: clamp(18px, 4vw, 48px);
    background:
        radial-gradient(circle at 12% 12%, rgba(79, 195, 255, 0.32), transparent 24%),
        radial-gradient(circle at 86% 84%, rgba(255, 214, 224, 0.72), transparent 24%),
        linear-gradient(180deg, #f5fbff 0%, #ffffff 48%, #f7fafe 100%);
}

.dl-payment-success-card {
    width: min(720px, 100%);
    border: 1px solid rgba(255, 255, 255, 0.92);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.92);
    padding: clamp(26px, 5vw, 44px);
    text-align: center;
    box-shadow: 0 28px 90px rgba(26, 29, 46, 0.12);
}

.dl-payment-success-logo {
    display: inline-flex;
    margin-bottom: 22px;
}

.dl-payment-success-logo img {
    display: block;
    width: 210px;
    max-width: 64vw;
    height: auto;
}

.dl-success-icon {
    display: grid;
    width: 68px;
    height: 68px;
    margin: 0 auto 18px;
    place-items: center;
    border-radius: 50%;
    background: #dff8f4;
    color: #00c2b8;
}

.dl-success-icon::before {
    content: "";
    width: 28px;
    height: 16px;
    border-left: 5px solid currentColor;
    border-bottom: 5px solid currentColor;
    transform: rotate(-45deg) translate(2px, -2px);
}

.dl-payment-eyebrow {
    margin: 0 0 10px;
    color: #5b5fc7;
    font-weight: 900;
}

.dl-payment-success h1 {
    margin: 0;
    color: #1a1d2e;
    font-size: clamp(34px, 5vw, 56px);
    line-height: 1;
    letter-spacing: 0;
}

.dl-payment-copy {
    max-width: 580px;
    margin: 18px auto 0;
    color: #424656;
    font-size: 16px;
}

.dl-payment-order {
    display: grid;
    gap: 5px;
    margin: 22px auto 0;
    padding: 14px 18px;
    border-radius: 16px;
    background: #f7fafe;
    color: #1a1d2e;
}

.dl-payment-order span {
    color: #8e94a6;
    font-size: 12px;
    font-weight: 850;
}

.dl-payment-steps {
    display: grid;
    gap: 12px;
    margin-top: 24px;
    text-align: left;
}

.dl-payment-steps article {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 14px;
    align-items: start;
    padding: 16px;
    border: 1px solid #e7eaf2;
    border-radius: 18px;
    background: #ffffff;
}

.dl-payment-steps span {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 50%;
    background: #5b5fc7;
    color: #ffffff;
    font-weight: 900;
}

.dl-payment-steps h2 {
    margin: 0 0 4px;
    color: #1a1d2e;
    font-size: 16px;
}

.dl-payment-steps p,
.dl-payment-note {
    margin: 0;
    color: #8e94a6;
    font-size: 14px;
}

.dl-payment-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-top: 26px;
}

.dl-payment-button {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    background: linear-gradient(135deg, #5b5fc7, #4b4fd8);
    color: #ffffff;
    padding: 0 22px;
    font-weight: 900;
    text-decoration: none;
}

.dl-payment-button-light {
    border: 1px solid #dfe3f0;
    background: #ffffff;
    color: #5b5fc7;
}

.dl-payment-note {
    margin-top: 18px;
}

/* Premium client navigation, workspace controls, and floating actions */
.dl-client-nav button,
.dl-client-logout {
    transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.dl-client-nav button:hover,
.dl-client-logout:hover {
    transform: translateY(-1px);
}

.dl-client-nav button.is-active {
    box-shadow: 0 16px 34px rgba(26, 29, 46, 0.16);
}

.dl-rail-icon {
    display: grid;
    width: 30px;
    height: 30px;
    place-items: center;
    border-radius: 11px;
    background: rgba(91, 95, 199, 0.1);
    color: #5b5fc7;
    flex: 0 0 auto;
}

.dl-client-nav button.is-active .dl-rail-icon,
.dl-client-nav button:hover .dl-rail-icon,
.dl-client-logout:hover .dl-rail-icon {
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
}

.dl-rail-icon::before {
    content: "";
    position: static;
    inset: auto;
    left: auto;
    right: auto;
    top: auto;
    bottom: auto;
    display: block;
    width: 18px;
    height: 18px;
    background: currentColor;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    transform: none;
    -webkit-mask: var(--dl-icon-mask) center / contain no-repeat;
    mask: var(--dl-icon-mask) center / contain no-repeat;
}

.dl-rail-dashboard { --dl-icon-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='%23000' d='M4 4h7v7H4V4Zm9 0h7v5h-7V4ZM4 13h7v7H4v-7Zm9-2h7v9h-7v-9Z'/%3E%3C/svg%3E"); }
.dl-rail-wallet { --dl-icon-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='%23000' d='M4 6.5A2.5 2.5 0 0 1 6.5 4H18a2 2 0 0 1 2 2v1.2A2.5 2.5 0 0 1 22 9.65v7.85A2.5 2.5 0 0 1 19.5 20h-13A2.5 2.5 0 0 1 4 17.5v-11Zm2 1.2h12V6H6.5a.5.5 0 0 0-.5.5v1.2Zm0 2v7.8a.5.5 0 0 0 .5.5h13a.5.5 0 0 0 .5-.5V15h-3.5a3 3 0 0 1 0-6H20a.5.5 0 0 0-.5-.5H6.5a.5.5 0 0 0-.5.5Zm10.5 1.3a1 1 0 0 0 0 2H20v-2h-3.5Z'/%3E%3C/svg%3E"); }
.dl-rail-chart,
.dl-rail-report { --dl-icon-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='%23000' d='M5 20a1 1 0 0 1-1-1V9a1 1 0 0 1 2 0v10a1 1 0 0 1-1 1Zm7 0a1 1 0 0 1-1-1V5a1 1 0 1 1 2 0v14a1 1 0 0 1-1 1Zm7 0a1 1 0 0 1-1-1v-7a1 1 0 1 1 2 0v7a1 1 0 0 1-1 1Z'/%3E%3C/svg%3E"); }
.dl-rail-goal { --dl-icon-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='%23000' d='M12 22a10 10 0 1 1 10-10h-2a8 8 0 1 0-8 8v2Zm0-4a6 6 0 1 1 6-6h-2a4 4 0 1 0-4 4v2Zm0-4a2 2 0 1 1 2-2h-2v2Zm4.7 6.7-3.2-3.2 1.4-1.4 1.8 1.8 4.2-4.2 1.4 1.4-5.6 5.6Z'/%3E%3C/svg%3E"); }
.dl-rail-card { --dl-icon-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='%23000' d='M4 6.5A2.5 2.5 0 0 1 6.5 4h11A2.5 2.5 0 0 1 20 6.5v11a2.5 2.5 0 0 1-2.5 2.5h-11A2.5 2.5 0 0 1 4 17.5v-11ZM6 8h12V6.5a.5.5 0 0 0-.5-.5h-11a.5.5 0 0 0-.5.5V8Zm0 3v6.5a.5.5 0 0 0 .5.5h11a.5.5 0 0 0 .5-.5V11H6Zm2 4h4v2H8v-2Z'/%3E%3C/svg%3E"); }
.dl-rail-users { --dl-icon-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='%23000' d='M9 12a4 4 0 1 1 0-8 4 4 0 0 1 0 8Zm0-2a2 2 0 1 0 0-4 2 2 0 0 0 0 4Zm6.5 2a3.5 3.5 0 1 1 0-7 3.5 3.5 0 0 1 0 7Zm0-2a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3ZM2 19.5C2 16.5 5.1 14 9 14s7 2.5 7 5.5V21H2v-1.5Zm2 .5h10v-.5C14 17.8 11.8 16 9 16s-5 1.8-5 3.5v.5Zm13.2 1a6 6 0 0 0 .3-1.8c0-1.6-.6-3-1.7-4.2 3.4.1 6.2 2.2 6.2 4.8V21h-4.8Z'/%3E%3C/svg%3E"); }
.dl-rail-account { --dl-icon-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='%23000' d='M12 12a5 5 0 1 1 0-10 5 5 0 0 1 0 10Zm0-2a3 3 0 1 0 0-6 3 3 0 0 0 0 6ZM3 21c0-4.1 4-7 9-7s9 2.9 9 7v1H3v-1Zm2.1-1h13.8c-.6-2.3-3.3-4-6.9-4s-6.3 1.7-6.9 4Z'/%3E%3C/svg%3E"); }
.dl-rail-logout { --dl-icon-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='%23000' d='M5 4h8a2 2 0 0 1 2 2v3h-2V6H5v12h8v-3h2v3a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2Zm12.6 4.4L21.2 12l-3.6 3.6-1.4-1.4 1.2-1.2H9v-2h8.4l-1.2-1.2 1.4-1.4Z'/%3E%3C/svg%3E"); }

.dl-workspace-switcher {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.dl-workspace-add-button {
    width: 44px;
    height: 44px;
    min-width: 44px;
}

.dl-client-fab-group {
    position: fixed;
    right: clamp(18px, 3vw, 34px);
    bottom: clamp(18px, 3vw, 34px);
    z-index: 900;
    display: flex;
    align-items: center;
    gap: 12px;
}

.dl-quick-add-fab,
.dl-smart-ai-fab {
    border: 0;
    box-shadow: 0 20px 54px rgba(26, 29, 46, 0.22);
}

.dl-quick-add-fab {
    display: grid;
    width: 62px;
    height: 62px;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(135deg, #5b5fc7, #4b4fd8);
    color: #ffffff;
    font-size: 34px;
    font-weight: 700;
    line-height: 1;
}

.dl-smart-ai-fab {
    display: inline-flex;
    min-height: 54px;
    align-items: center;
    gap: 10px;
    border-radius: 999px;
    background: #1a1d2e;
    color: #ffffff;
    padding: 8px 16px 8px 8px;
    font-weight: 900;
}

.dl-smart-ai-fab span {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(135deg, #ffc857, #ff6b6b);
    color: #1a1d2e;
    font-size: 13px;
    font-weight: 950;
}

.duitlabs-app-root:not(.is-smart-plan) .dl-smart-ai-fab {
    background: #ffffff;
    color: #5b5fc7;
}

.dl-workspace-list {
    display: grid;
    gap: 10px;
    margin-top: 18px;
}

.dl-workspace-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px;
    border: 1px solid #e7eaf2;
    border-radius: 16px;
    background: #ffffff;
}

.dl-workspace-item strong,
.dl-workspace-item span {
    display: block;
}

.dl-workspace-item span {
    color: #8e94a6;
    font-size: 13px;
    font-weight: 800;
}

.dl-workspace-item button {
    min-height: 38px;
    border: 0;
    border-radius: 12px;
    background: #eeeefa;
    color: #5b5fc7;
    padding: 0 14px;
    font-weight: 900;
}

.dl-smart-ai-panel {
    width: min(560px, 100%);
}

.dl-smart-ai-thread {
    display: grid;
    gap: 10px;
    max-height: 360px;
    overflow: auto;
    padding: 12px;
    border-radius: 18px;
    background: #f7fafe;
}

.dl-ai-message {
    max-width: 86%;
    border-radius: 16px;
    padding: 12px 14px;
    color: #1a1d2e;
    font-size: 14px;
    line-height: 1.45;
}

.dl-ai-message.is-ai {
    justify-self: start;
    background: #ffffff;
}

.dl-ai-message.is-user {
    justify-self: end;
    background: #5b5fc7;
    color: #ffffff;
}

.dl-smart-ai-input {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    margin-top: 12px;
}

.dl-smart-ai-input input {
    min-height: 48px;
    border: 1px solid #e7eaf2;
    border-radius: 14px;
    padding: 0 14px;
}

@media (max-width: 760px) {
    .dl-workspace-switcher {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .dl-client-fab-group {
        right: 14px;
        bottom: 14px;
    }

    .dl-smart-ai-fab strong {
        display: none;
    }

    .dl-smart-ai-input {
        grid-template-columns: 1fr;
    }
}

/* Client settings and transaction management */
.dl-list-item {
    grid-template-columns: 42px minmax(0, 1fr) auto auto;
    padding: 8px 0;
}

.dl-transaction-actions {
    display: inline-flex;
    gap: 6px;
}

.dl-transaction-actions button,
.dl-settings-item button {
    min-height: 32px;
    border: 0;
    border-radius: 10px;
    background: #eeeefa;
    color: #5b5fc7;
    padding: 0 10px;
    font-size: 12px;
    font-weight: 900;
}

.dl-transaction-actions button:last-child,
.dl-settings-item button:last-child {
    background: #ffefef;
    color: #ff6b6b;
}

.dl-feature-grid,
.dl-settings-grid,
.dl-account-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 18px;
}

.dl-settings-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
}

.dl-settings-grid-three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.dl-feature-grid > div,
.dl-account-grid > div,
.dl-settings-grid > section {
    border: 1px solid #e7eaf2;
    border-radius: 18px;
    background: #ffffff;
    padding: 16px;
}

.dl-feature-grid strong,
.dl-feature-grid span,
.dl-account-grid span,
.dl-account-grid strong {
    display: block;
}

.dl-feature-grid strong,
.dl-account-grid strong,
.dl-settings-grid h3 {
    margin: 0 0 6px;
    color: #1a1d2e;
}

.dl-feature-grid span,
.dl-account-grid span {
    color: #8e94a6;
    font-size: 13px;
    line-height: 1.45;
}

.dl-inline-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 140px auto;
    gap: 8px;
    margin-top: 12px;
}

.dl-planning-form {
    grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
    margin: 18px 0;
}

.dl-settings-list {
    display: grid;
    gap: 8px;
    margin-top: 12px;
}

.dl-settings-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.dl-settings-section-head h3 {
    margin: 0;
}

.dl-settings-section-head button {
    min-height: 34px;
    border: 0;
    border-radius: 12px;
    background: #eeeefa;
    color: #5b5fc7;
    padding: 0 12px;
    font-size: 12px;
    font-weight: 900;
}

.dl-settings-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border: 1px solid #f1f1f8;
    border-radius: 14px;
    padding: 12px;
}

.dl-settings-item strong,
.dl-settings-item span {
    display: block;
}

.dl-settings-item span {
    color: #8e94a6;
    font-size: 12px;
    font-weight: 800;
}

.dl-settings-item > div:last-child {
    display: inline-flex;
    gap: 6px;
}

.dl-account-link {
    display: inline-flex;
    width: auto;
    margin-top: 16px;
    text-decoration: none;
}

.dl-account-logout-link {
    margin-left: 8px;
    background: #fff0f0 !important;
    color: #d83a3a !important;
    border-color: rgba(216, 58, 58, 0.22) !important;
}

.dl-account-logout-link:hover {
    background: #ffe3e3 !important;
}

.dl-upgrade-side,
.dl-upgrade-inline {
    display: none;
    border: 0;
    border-radius: 14px;
    background: linear-gradient(135deg, #ffc857, #ff6b6b);
    color: #1a1d2e;
    font-weight: 950;
}

.dl-upgrade-side {
    min-height: 46px;
    padding: 0 14px;
    box-shadow: 0 16px 34px rgba(255, 107, 107, 0.18);
}

.dl-upgrade-inline {
    min-height: 34px;
    padding: 0 12px;
}

.duitlabs-app-root.is-standard-plan .dl-upgrade-side,
.duitlabs-app-root.is-standard-plan .dl-upgrade-inline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Planning dashboard, goal progress, and modal forms */
.dl-planning-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin: 14px 0;
}

.dl-planning-summary-card,
.dl-budget-info-card,
.dl-budget-meter-card,
.dl-goal-info-card,
.dl-goal-meter-card,
.dl-obligation-info-card,
.dl-obligation-meter-card {
    border: 0;
    border-radius: 14px;
    background: #ffffff;
    padding: 18px;
    box-shadow: none;
}

.dl-planning-summary-card {
    display: grid;
    gap: 6px;
    min-height: 126px;
}

.dl-planning-summary-card span,
.dl-budget-info-card span,
.dl-budget-meter-card span,
.dl-goal-info-card span,
.dl-goal-meter-card span,
.dl-obligation-info-card span,
.dl-obligation-meter-card span {
    color: #5b5fc7;
    font-size: 12px;
    font-weight: 950;
}

.dl-planning-summary-card strong,
.dl-budget-meter-card strong,
.dl-goal-meter-card strong,
.dl-obligation-meter-card strong {
    color: #1a1d2e;
    font-size: clamp(24px, 3vw, 34px);
    line-height: 1;
}

.dl-planning-summary-card p,
.dl-budget-info-card p,
.dl-budget-meter-card p,
.dl-goal-info-card p,
.dl-goal-meter-card p,
.dl-obligation-info-card p,
.dl-obligation-meter-card p {
    margin: 0;
    color: #424656;
    font-size: 13px;
    line-height: 1.45;
}

.dl-goal-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
    gap: 14px;
    margin-bottom: 14px;
}

.dl-budget-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
    gap: 14px;
    margin-bottom: 14px;
}

.dl-obligation-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
    gap: 14px;
    margin-bottom: 14px;
}

.dl-obligation-info-card {
    min-height: 190px;
    background:
        radial-gradient(circle at 90% 16%, rgba(255, 107, 107, 0.26), transparent 24%),
        linear-gradient(135deg, #424656, #1a1d2e);
    color: #ffffff;
}

.dl-obligation-info-card span,
.dl-obligation-info-card p {
    color: rgba(255, 255, 255, 0.82);
}

.dl-obligation-info-card h2 {
    max-width: 620px;
    margin: 10px 0 12px;
    color: #ffffff;
    font-size: clamp(28px, 4vw, 46px);
    line-height: 1;
    letter-spacing: 0;
}

.dl-obligation-meter-card {
    display: grid;
    align-content: center;
    gap: 12px;
}

.dl-budget-info-card {
    min-height: 190px;
    background:
        radial-gradient(circle at 88% 18%, rgba(255, 200, 87, 0.28), transparent 22%),
        linear-gradient(135deg, #1a1d2e, #5b5fc7);
    color: #ffffff;
}

.dl-budget-info-card span,
.dl-budget-info-card p {
    color: rgba(255, 255, 255, 0.82);
}

.dl-budget-info-card h2 {
    max-width: 620px;
    margin: 10px 0 12px;
    color: #ffffff;
    font-size: clamp(28px, 4vw, 46px);
    line-height: 1;
    letter-spacing: 0;
}

.dl-budget-meter-card {
    display: grid;
    align-content: center;
    gap: 12px;
}

.dl-goal-info-card {
    min-height: 190px;
    background:
        radial-gradient(circle at 92% 18%, rgba(0, 194, 184, 0.2), transparent 22%),
        linear-gradient(135deg, #5b5fc7, #444bd3);
    color: #ffffff;
}

.dl-goal-info-card span,
.dl-goal-info-card p {
    color: rgba(255, 255, 255, 0.82);
}

.dl-goal-info-card h2 {
    max-width: 620px;
    margin: 10px 0 12px;
    color: #ffffff;
    font-size: clamp(28px, 4vw, 46px);
    line-height: 1;
    letter-spacing: 0;
}

.dl-goal-meter-card {
    display: grid;
    align-content: center;
    gap: 12px;
}

.dl-progress {
    width: 100%;
    height: 10px;
    overflow: hidden;
    border-radius: 999px;
    background: #eeeefa;
}

.dl-progress i {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #00c2b8, #ffc857, #ff6b6b);
}

.dl-goal-list-item {
    align-items: flex-start;
}

.dl-goal-list-item > div:first-child {
    display: grid;
    gap: 7px;
    min-width: 0;
    flex: 1 1 auto;
}

.dl-check-field {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    border: 1px solid #e7eaf2;
    border-radius: 14px;
    background: #f7fafe;
    padding: 10px 12px;
    color: #424656;
    font-size: 13px;
    font-weight: 850;
}

.dl-check-field input {
    width: 18px;
    min-height: 18px;
    accent-color: #5b5fc7;
}

.dl-client-modal-card .dl-form {
    gap: 13px;
}

.dl-client-modal-card .dl-field {
    gap: 7px;
}

.dl-client-modal-card [data-dl-close-planning],
.dl-client-modal-card [data-dl-close-setting] {
    border: 1px solid #dfe3f0;
    background: #ffffff;
    color: #424656;
}

@media (max-width: 980px) {
    .dl-feature-grid,
    .dl-settings-grid,
    .dl-account-grid,
    .dl-planning-summary-grid,
    .dl-budget-hero,
    .dl-goal-hero,
    .dl-obligation-hero {
        grid-template-columns: 1fr;
    }

    .dl-inline-form,
    .dl-planning-form {
        grid-template-columns: 1fr;
    }

    .dl-list-item {
        grid-template-columns: 38px minmax(0, 1fr);
    }

    .dl-transaction-amount,
    .dl-transaction-actions {
        grid-column: 2;
    }
}

/* Dashboard cascade locks */
.dl-client-page[data-dl-page="dashboard"] .dl-dashboard-action-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin: 14px 0;
}

.dl-client-page[data-dl-page="dashboard"] .dl-planning-summary-card {
    min-height: 168px;
}

.dl-client-page[data-dl-page="dashboard"] .dl-obligation-widget,
.dl-client-page[data-dl-page="dashboard"] .dl-obligation-widget strong,
.dl-client-page[data-dl-page="dashboard"] .dl-obligation-widget span,
.dl-client-page[data-dl-page="dashboard"] .dl-obligation-widget p {
    color: #ffffff;
}

.dl-client-page[data-dl-page="dashboard"] .dl-obligation-widget span,
.dl-client-page[data-dl-page="dashboard"] .dl-obligation-widget p {
    opacity: 0.86;
}

.dl-client-page[data-dl-page="dashboard"] .dl-obligation-widget button {
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
}

.dl-client-page[data-dl-page="dashboard"] .dl-client-grid {
    grid-template-columns: 1.35fr 0.75fr 0.75fr;
}

@media (max-width: 1100px) {
    .dl-client-page[data-dl-page="dashboard"] .dl-dashboard-action-grid,
    .dl-client-page[data-dl-page="dashboard"] .dl-client-grid {
        grid-template-columns: 1fr;
    }
}

/* Duitlabs v0.3.1: annual report chart and compact mobile app shell */
.dl-annual-report-panel {
    overflow: hidden;
}

.dl-annual-report-head {
    align-items: flex-start;
}

.dl-annual-report-head .dl-client-muted {
    margin-top: 4px;
    font-size: 13px;
}

.dl-annual-legend {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    color: #424656;
    font-size: 12px;
    font-weight: 850;
}

.dl-annual-legend span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.dl-annual-legend i {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.dl-annual-legend .is-income,
.dl-annual-bars .is-income {
    background: #00c2b8;
}

.dl-annual-legend .is-expense,
.dl-annual-bars .is-expense {
    background: #ff6b6b;
}

.dl-annual-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 16px;
}

.dl-annual-summary-grid div {
    display: grid;
    gap: 4px;
    padding: 12px;
    border-radius: 14px;
    background: #f7fafe;
}

.dl-annual-summary-grid span {
    color: #8e94a6;
    font-size: 12px;
    font-weight: 850;
}

.dl-annual-summary-grid strong {
    color: #1a1d2e;
    font-size: clamp(18px, 2vw, 24px);
    line-height: 1;
    overflow-wrap: anywhere;
}

.dl-annual-chart {
    display: grid;
    grid-template-columns: repeat(12, minmax(44px, 1fr));
    align-items: end;
    gap: 10px;
    min-height: 238px;
    padding: 16px 14px 10px;
    border-radius: 18px;
    background:
        repeating-linear-gradient(to top, rgba(142, 148, 166, 0.12) 0 1px, transparent 1px 44px),
        #f7fafe;
    overflow-x: auto;
}

.dl-annual-month {
    display: grid;
    grid-template-rows: minmax(150px, 1fr) auto;
    gap: 8px;
    min-width: 44px;
    text-align: center;
}

.dl-annual-bars {
    display: flex;
    align-items: end;
    justify-content: center;
    gap: 5px;
    height: 160px;
}

.dl-annual-bars i {
    position: relative;
    display: block;
    width: 11px;
    min-height: 0;
    border-radius: 999px 999px 6px 6px;
    transition: height 180ms ease;
}

.dl-annual-bars em {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}

.dl-annual-month > span {
    color: #8e94a6;
    font-size: 11px;
    font-weight: 900;
}

@media (max-width: 760px) {
    body {
        background: #eeeee9;
    }

    .dl-client-app {
        display: block;
        min-height: 100vh;
        padding: 10px 10px 92px;
        background: #eeeee9;
    }

    .dl-client-main {
        padding: 0;
    }

    .dl-client-sidebar {
        position: fixed;
        left: 10px;
        right: 10px;
        bottom: max(10px, env(safe-area-inset-bottom));
        top: auto;
        z-index: 950;
        display: block;
        width: auto;
        height: auto;
        padding: 7px;
        border: 0;
        border-radius: 24px;
        background: #ffffff;
        box-shadow: 0 18px 46px rgba(26, 29, 46, 0.16);
    }

    .dl-client-brand,
    .dl-client-logout,
    .dl-upgrade-side {
        display: none !important;
    }

    .dl-client-nav {
        display: grid;
        grid-template-columns: repeat(7, minmax(52px, 1fr));
        gap: 3px;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .dl-client-nav::-webkit-scrollbar {
        display: none;
    }

    .dl-client-nav button {
        display: grid;
        justify-items: center;
        gap: 3px;
        width: auto;
        min-width: 52px;
        height: 54px;
        min-height: 54px;
        padding: 6px 4px;
        border-radius: 18px;
        color: #424656;
    }

    .dl-client-nav button.is-active,
    .dl-client-nav button:hover {
        background: #1a1d2e;
        color: #ffffff;
    }

    .dl-client-nav button span:last-child {
        position: static;
        width: auto;
        height: auto;
        overflow: visible;
        clip: auto;
        max-width: 50px;
        color: inherit;
        font-size: 9px;
        line-height: 1;
        text-align: center;
        white-space: nowrap;
    }

    .dl-client-nav .dl-rail-icon {
        width: 18px;
        height: 18px;
    }

    .dl-client-topbar {
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
        min-height: 0;
        margin-bottom: 10px;
    }

    .dl-client-eyebrow {
        margin-bottom: 2px;
        font-size: 18px;
        line-height: 1.1;
    }

    .dl-client-topbar h1 {
        font-size: 12px;
    }

    .dl-client-topbar-actions {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 40px;
        gap: 8px;
    }

    .dl-client-search,
    .dl-client-topbar-actions > .dl-round-action:not(.dl-workspace-add-button) {
        display: none;
    }

    .dl-workspace-switcher {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 40px;
        gap: 8px;
    }

    .dl-client-select,
    .dl-client-modal select,
    .dl-client-modal input {
        min-height: 40px;
        border-radius: 14px;
        font-size: 13px;
    }

    .dl-round-action {
        width: 40px;
        height: 40px;
    }

    .dl-client-page.is-active {
        display: block;
    }

    .dl-client-stats,
    .dl-dashboard-action-grid,
    .dl-client-page[data-dl-page="dashboard"] .dl-dashboard-action-grid,
    .dl-client-grid,
    .dl-client-page[data-dl-page="dashboard"] .dl-client-grid,
    .dl-feature-grid,
    .dl-settings-grid,
    .dl-settings-grid-three,
    .dl-account-grid,
    .dl-planning-summary-grid,
    .dl-budget-hero,
    .dl-goal-hero,
    .dl-obligation-hero,
    .dl-settings-hero,
    .dl-account-layout {
        grid-template-columns: 1fr;
        gap: 10px;
        margin-top: 10px;
        margin-bottom: 10px;
    }

    .dl-client-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dl-client-balance {
        grid-column: 1 / -1;
    }

    .dl-client-balance,
    .dl-client-stat {
        min-height: 74px;
        padding: 12px;
        border-radius: 14px;
        gap: 9px;
    }

    .dl-client-stat {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .dl-stat-icon {
        width: 34px;
        height: 34px;
    }

    .dl-client-balance p,
    .dl-client-stat p {
        font-size: 11px;
    }

    .dl-client-balance strong,
    .dl-client-stat strong {
        font-size: clamp(17px, 5vw, 22px);
    }

    .dl-client-balance > span:last-child {
        padding: 4px 8px;
        font-size: 10px;
    }

    .dl-client-panel,
    .dl-planning-summary-card,
    .dl-settings-info-card,
    .dl-settings-guide-card,
    .dl-account-profile-card,
    .dl-account-plan-card,
    .dl-account-actions-card,
    .dl-budget-info-card,
    .dl-budget-meter-card,
    .dl-goal-info-card,
    .dl-goal-meter-card,
    .dl-obligation-info-card,
    .dl-obligation-meter-card,
    .dl-feature-grid > div,
    .dl-account-grid > div,
    .dl-settings-grid > section {
        padding: 14px;
        border-radius: 16px;
    }

    .dl-client-panel {
        margin-bottom: 10px;
    }

    .dl-client-panel-head {
        gap: 8px;
        margin-bottom: 9px;
    }

    .dl-client-panel h2,
    .dl-client-panel-head h2 {
        font-size: 15px;
    }

    .dl-client-insight,
    .dl-client-muted,
    .dl-planning-summary-card p,
    .dl-budget-info-card p,
    .dl-budget-meter-card p,
    .dl-goal-info-card p,
    .dl-goal-meter-card p,
    .dl-obligation-info-card p,
    .dl-obligation-meter-card p {
        font-size: 12px;
        line-height: 1.35;
    }

    .dl-dashboard-action-grid .dl-planning-summary-card,
    .dl-client-page[data-dl-page="dashboard"] .dl-planning-summary-card {
        min-height: 116px;
    }

    .dl-widget-head strong,
    .dl-planning-summary-card strong,
    .dl-budget-meter-card strong,
    .dl-goal-meter-card strong,
    .dl-obligation-meter-card strong {
        font-size: 24px;
    }

    .dl-annual-report-head {
        display: grid;
        grid-template-columns: 1fr;
    }

    .dl-annual-legend {
        justify-content: flex-start;
        font-size: 11px;
    }

    .dl-annual-summary-grid {
        grid-template-columns: 1fr;
        gap: 8px;
        margin-bottom: 10px;
    }

    .dl-annual-summary-grid div {
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        padding: 9px 10px;
    }

    .dl-annual-summary-grid span {
        font-size: 11px;
    }

    .dl-annual-summary-grid strong {
        font-size: 16px;
        text-align: right;
    }

    .dl-annual-chart {
        grid-template-columns: repeat(12, minmax(42px, 1fr));
        gap: 8px;
        min-height: 176px;
        padding: 12px 10px 8px;
        border-radius: 14px;
    }

    .dl-annual-month {
        grid-template-rows: 112px auto;
        min-width: 42px;
    }

    .dl-annual-bars {
        height: 112px;
        gap: 4px;
    }

    .dl-annual-bars i {
        width: 9px;
    }

    .dl-report-bars {
        height: 86px;
        margin-bottom: 10px;
    }

    .dl-client-report-card {
        gap: 7px;
    }

    .dl-client-report-card div,
    .dl-settings-item {
        padding: 9px 10px;
        border-radius: 12px;
        font-size: 12px;
    }

    .dl-list-item {
        grid-template-columns: 34px minmax(0, 1fr);
        gap: 8px;
        padding: 8px 0;
    }

    .dl-transaction-main,
    .dl-transaction-date {
        min-width: 0;
    }

    .dl-transaction-title {
        font-size: 13px;
    }

    .dl-transaction-date {
        font-size: 11px;
    }

    .dl-transaction-amount,
    .dl-transaction-actions {
        grid-column: 2;
    }

    .dl-transaction-actions button,
    .dl-settings-item button,
    .dl-settings-section-head button {
        min-height: 30px;
        padding: 0 9px;
        font-size: 11px;
    }

    .dl-client-fab-group {
        right: 14px;
        bottom: 84px;
    }

    .dl-smart-ai-fab strong {
        display: none;
    }
}

/* Duitlabs v0.3.2: transaction category report, richer insight carousel, mobile shortcut menu */
.dl-section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
    color: #006ee6;
    font-size: 11px;
    font-weight: 950;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.dl-insight-feature-panel {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at top right, rgba(0, 110, 230, 0.14), transparent 34%),
        linear-gradient(135deg, #ffffff 0%, #f5fbff 100%);
}

.dl-insight-feature-panel::after {
    content: "";
    position: absolute;
    right: -54px;
    bottom: -64px;
    width: 168px;
    height: 168px;
    border-radius: 50%;
    background: rgba(0, 110, 230, 0.08);
    pointer-events: none;
}

.dl-insight-carousel {
    position: relative;
    z-index: 1;
}

.dl-insight-track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 100%;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
}

.dl-insight-track::-webkit-scrollbar {
    display: none;
}

.dl-insight-slide {
    min-height: 110px;
    padding: 16px;
    border: 1px solid rgba(0, 110, 230, 0.12);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 14px 32px rgba(0, 67, 139, 0.08);
    scroll-snap-align: start;
}

.dl-insight-slide span {
    display: block;
    margin-bottom: 8px;
    color: #006ee6;
    font-size: 12px;
    font-weight: 950;
}

.dl-insight-slide p {
    margin: 0;
    color: #1a1d2e;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.45;
}

.dl-insight-slide.is-success span { color: #008e84; }
.dl-insight-slide.is-warning span { color: #c47a00; }
.dl-insight-slide.is-danger span { color: #e23b3b; }

.dl-insight-dots {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
}

.dl-insight-dots button {
    width: 7px;
    height: 7px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(0, 110, 230, 0.22);
    cursor: pointer;
}

.dl-insight-dots button.is-active {
    width: 22px;
    background: #006ee6;
}

.dl-insight-fallback {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}

.dl-mobile-shortcut-card {
    display: none;
}

.dl-mobile-shortcut-list {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 2px 2px 4px;
    scrollbar-width: none;
}

.dl-mobile-shortcut-list::-webkit-scrollbar {
    display: none;
}

.dl-mobile-shortcut-list button {
    display: grid;
    justify-items: center;
    align-content: start;
    gap: 8px;
    min-width: 92px;
    padding: 8px 6px 4px;
    border: 0;
    background: transparent;
    color: #2f3447;
    font: inherit;
    cursor: pointer;
}

.dl-mobile-shortcut-list strong {
    font-size: 12px;
    font-weight: 850;
    line-height: 1.2;
    text-align: center;
}

.dl-shortcut-icon {
    position: relative;
    display: grid;
    width: 54px;
    height: 54px;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(180deg, #006ee6, #004da7);
    color: #ffffff;
    box-shadow: 0 12px 22px rgba(0, 110, 230, 0.18);
    flex: 0 0 auto;
}

.dl-shortcut-icon::before {
    content: "";
    display: block;
    width: 23px;
    height: 23px;
    background: currentColor;
    -webkit-mask: var(--dl-icon-mask) center / contain no-repeat;
    mask: var(--dl-icon-mask) center / contain no-repeat;
}

.dl-shortcut-ai {
    font-size: 12px;
    font-weight: 950;
    letter-spacing: -0.04em;
}

.dl-shortcut-ai::before {
    display: none;
}

.dl-category-report-panel {
    overflow: hidden;
}

.dl-category-report-head {
    align-items: flex-start;
}

.dl-month-filter {
    display: grid;
    gap: 6px;
    min-width: 170px;
}

.dl-month-filter span {
    color: #8e94a6;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

.dl-category-summary-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 14px;
}

.dl-category-summary-grid div {
    display: grid;
    gap: 5px;
    padding: 13px 14px;
    border-radius: 16px;
    background: #f7fafe;
}

.dl-category-summary-grid span {
    color: #8e94a6;
    font-size: 12px;
    font-weight: 850;
}

.dl-category-summary-grid strong {
    color: #1a1d2e;
    font-size: clamp(18px, 2.2vw, 26px);
    line-height: 1;
}

.dl-category-chart-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.dl-category-chart-card {
    padding: 14px;
    border: 1px solid rgba(142, 148, 166, 0.14);
    border-radius: 18px;
    background: #ffffff;
}

.dl-category-chart-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 14px;
}

.dl-category-chart-title h3 {
    margin: 0;
    color: #1a1d2e;
    font-size: 16px;
}

.dl-category-chart-title span {
    color: #8e94a6;
    font-size: 12px;
    font-weight: 850;
}

.dl-pie-wrap {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
}

.dl-pie-chart {
    position: relative;
    display: grid;
    width: 150px;
    height: 150px;
    place-items: center;
    border-radius: 50%;
    background: #f0f3fb;
}

.dl-pie-chart::after {
    content: "";
    position: absolute;
    inset: 24px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: inset 0 0 0 1px rgba(142, 148, 166, 0.1);
}

.dl-pie-chart span {
    position: relative;
    z-index: 1;
    display: grid;
    justify-items: center;
    color: #1a1d2e;
    font-size: 25px;
    font-weight: 950;
    line-height: 1;
    text-align: center;
}

.dl-pie-chart small {
    max-width: 78px;
    margin-top: 5px;
    color: #8e94a6;
    font-size: 10px;
    font-weight: 850;
    line-height: 1.15;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dl-pie-legend {
    display: grid;
    gap: 9px;
    min-width: 0;
}

.dl-pie-legend-item {
    display: grid;
    grid-template-columns: 10px minmax(0, 1fr);
    gap: 8px;
    align-items: start;
}

.dl-pie-legend-item i {
    width: 10px;
    height: 10px;
    margin-top: 4px;
    border-radius: 50%;
}

.dl-pie-legend-item span {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.dl-pie-legend-item strong {
    color: #1a1d2e;
    font-size: 12px;
    font-weight: 900;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dl-pie-legend-item em {
    color: #8e94a6;
    font-size: 11px;
    font-style: normal;
    font-weight: 800;
}

@media (max-width: 1100px) {
    .dl-category-chart-grid,
    .dl-pie-wrap {
        grid-template-columns: 1fr;
    }

    .dl-pie-chart {
        justify-self: center;
    }
}

@media (max-width: 760px) {
    .dl-client-nav {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        overflow: visible;
    }

    .dl-client-nav button:not([data-dl-app-page="dashboard"]):not([data-dl-app-page="transactions"]):not([data-dl-app-page="budget"]):not([data-dl-app-page="debt"]) {
        display: none;
    }

    .dl-client-nav button {
        min-width: 0;
    }

    .dl-insight-feature-panel {
        padding: 16px;
        border-radius: 22px;
        background:
            radial-gradient(circle at top right, rgba(255, 255, 255, 0.24), transparent 34%),
            linear-gradient(145deg, #006ee6 0%, #0046b8 100%);
        color: #ffffff;
        box-shadow: 0 18px 40px rgba(0, 70, 184, 0.24);
    }

    .dl-insight-feature-panel .dl-section-kicker,
    .dl-insight-feature-panel h2,
    .dl-insight-feature-panel .dl-client-panel-head h2 {
        color: #ffffff;
    }

    .dl-insight-feature-panel .dl-health-pill {
        background: rgba(255, 255, 255, 0.18);
        color: #ffffff;
    }

    .dl-insight-slide {
        min-height: 126px;
        padding: 15px;
        border-color: rgba(255, 255, 255, 0.22);
        background: rgba(255, 255, 255, 0.14);
        box-shadow: none;
        backdrop-filter: blur(10px);
    }

    .dl-insight-slide span,
    .dl-insight-slide.is-success span,
    .dl-insight-slide.is-warning span,
    .dl-insight-slide.is-danger span {
        color: rgba(255, 255, 255, 0.78);
    }

    .dl-insight-slide p {
        color: #ffffff;
        font-size: 15px;
        line-height: 1.42;
    }

    .dl-insight-dots button {
        background: rgba(255, 255, 255, 0.28);
    }

    .dl-insight-dots button.is-active {
        background: #ffffff;
    }

    .dl-mobile-shortcut-card {
        display: block;
        padding: 14px 10px 12px;
        border-radius: 22px;
        background: #ffffff;
        box-shadow: 0 16px 38px rgba(26, 29, 46, 0.12);
    }

    .dl-mobile-shortcut-card .dl-client-panel-head {
        padding: 0 4px;
    }

    .dl-mobile-shortcut-list {
        gap: 10px;
        padding: 2px 0 4px;
    }

    .dl-mobile-shortcut-list button {
        min-width: 78px;
    }

    .dl-shortcut-icon {
        width: 50px;
        height: 50px;
    }

    .dl-shortcut-icon::before {
        width: 21px;
        height: 21px;
    }

    .dl-category-report-head {
        display: grid;
        grid-template-columns: 1fr;
    }

    .dl-month-filter {
        min-width: 0;
        width: 100%;
    }

    .dl-category-summary-grid,
    .dl-category-chart-grid {
        grid-template-columns: 1fr;
        gap: 9px;
    }

    .dl-category-summary-grid div {
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        padding: 10px 11px;
    }

    .dl-category-summary-grid strong {
        font-size: 16px;
        text-align: right;
    }

    .dl-category-chart-card {
        padding: 11px;
        border-radius: 15px;
    }

    .dl-category-chart-title {
        margin-bottom: 10px;
    }

    .dl-category-chart-title h3 {
        font-size: 14px;
    }

    .dl-pie-wrap {
        grid-template-columns: 112px minmax(0, 1fr);
        gap: 12px;
    }

    .dl-pie-chart {
        width: 112px;
        height: 112px;
    }

    .dl-pie-chart::after {
        inset: 18px;
    }

    .dl-pie-chart span {
        font-size: 19px;
    }

    .dl-pie-chart small {
        max-width: 56px;
        font-size: 9px;
    }

    .dl-pie-legend {
        gap: 7px;
    }

    .dl-pie-legend-item strong {
        font-size: 11px;
    }

    .dl-pie-legend-item em {
        font-size: 10px;
    }
}

@media (max-width: 420px) {
    .dl-pie-wrap {
        grid-template-columns: 1fr;
    }

    .dl-pie-chart {
        justify-self: center;
    }
}

/* Duitlabs v0.3.3: compact mobile insight, quick access cleanup, refined bottom nav, thinner monthly report chart */
.dl-report-bars {
    grid-template-columns: repeat(2, 18px);
    gap: 16px;
    height: 82px;
    margin: 2px 0 12px;
    padding: 8px 0;
    border-radius: 14px;
}

.dl-report-bars span {
    border-radius: 999px;
}

.dl-report-bars i {
    width: 100%;
    border-radius: 999px 999px 5px 5px;
}

@media (max-width: 760px) {
    .dl-client-app {
        padding-bottom: 78px;
    }

    .dl-client-sidebar {
        left: 12px;
        right: 12px;
        bottom: max(8px, env(safe-area-inset-bottom));
        padding: 6px;
        border-radius: 20px;
        box-shadow: 0 14px 34px rgba(26, 29, 46, 0.14);
    }

    .dl-client-nav {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 4px;
        align-items: center;
        overflow: visible;
    }

    .dl-client-nav button:not([data-dl-app-page="dashboard"]):not([data-dl-app-page="transactions"]):not([data-dl-app-page="budget"]):not([data-dl-app-page="debt"]) {
        display: none;
    }

    .dl-client-nav button {
        min-width: 0;
        height: 48px;
        min-height: 48px;
        gap: 2px;
        padding: 5px 4px 4px;
        border-radius: 15px;
    }

    .dl-client-nav button.is-active,
    .dl-client-nav button:hover {
        background: #1a1d2e;
        box-shadow: 0 10px 20px rgba(26, 29, 46, 0.12);
    }

    .dl-client-nav .dl-rail-icon {
        width: 22px;
        height: 22px;
        border-radius: 8px;
        background: transparent;
    }

    .dl-client-nav .dl-rail-icon::before {
        width: 16px;
        height: 16px;
    }

    .dl-client-nav button.is-active .dl-rail-icon,
    .dl-client-nav button:hover .dl-rail-icon {
        background: transparent;
    }

    .dl-client-nav button span:last-child {
        max-width: 62px;
        font-size: 9.5px;
        font-weight: 850;
        line-height: 1.05;
        letter-spacing: -0.02em;
    }

    .dl-client-fab-group {
        bottom: 76px;
    }

    .dl-insight-feature-panel {
        padding: 12px;
        border-radius: 18px;
        box-shadow: 0 12px 30px rgba(0, 70, 184, 0.18);
    }

    .dl-insight-feature-panel::after {
        right: -74px;
        bottom: -84px;
        width: 142px;
        height: 142px;
    }

    .dl-insight-feature-panel .dl-client-panel-head {
        align-items: center;
        margin-bottom: 8px;
    }

    .dl-insight-feature-panel .dl-section-kicker {
        margin-bottom: 2px;
        font-size: 9px;
        letter-spacing: 0.09em;
    }

    .dl-insight-feature-panel h2,
    .dl-insight-feature-panel .dl-client-panel-head h2 {
        font-size: 15px;
        line-height: 1.1;
    }

    .dl-insight-feature-panel .dl-health-pill {
        min-height: 28px;
        padding: 0 10px;
        font-size: 10px;
    }

    .dl-insight-track {
        gap: 8px;
    }

    .dl-insight-slide {
        min-height: 82px;
        padding: 11px 12px;
        border-radius: 14px;
    }

    .dl-insight-slide span,
    .dl-insight-slide.is-success span,
    .dl-insight-slide.is-warning span,
    .dl-insight-slide.is-danger span {
        margin-bottom: 5px;
        font-size: 10px;
        line-height: 1.1;
    }

    .dl-insight-slide p {
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
        font-size: 12.5px;
        line-height: 1.32;
    }

    .dl-insight-dots {
        gap: 5px;
        margin-top: 8px;
    }

    .dl-insight-dots button {
        width: 6px;
        height: 6px;
    }

    .dl-insight-dots button.is-active {
        width: 18px;
    }

    .dl-mobile-shortcut-card {
        padding: 12px 10px 11px;
        border-radius: 18px;
    }

    .dl-mobile-shortcut-card .dl-client-panel-head {
        margin-bottom: 8px;
        padding: 0 2px;
    }

    .dl-mobile-shortcut-list {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 6px;
        overflow: visible;
        padding: 0;
    }

    .dl-mobile-shortcut-list button {
        min-width: 0;
        gap: 6px;
        padding: 6px 4px 3px;
    }

    .dl-mobile-shortcut-list strong {
        font-size: 11px;
        line-height: 1.12;
    }

    .dl-shortcut-icon {
        width: 44px;
        height: 44px;
        border-radius: 15px;
        box-shadow: 0 10px 18px rgba(0, 110, 230, 0.14);
    }

    .dl-shortcut-icon::before {
        width: 19px;
        height: 19px;
    }

    .dl-report-bars {
        grid-template-columns: repeat(2, 14px);
        gap: 14px;
        height: 58px;
        margin: 0 0 9px;
        padding: 7px 0;
        border-radius: 12px;
    }

    .dl-client-report-card {
        gap: 6px;
    }
}

.dl-shortcut-goal { --dl-icon-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='%23000' d='M12 22a10 10 0 1 1 9.8-12h-2.1A8 8 0 1 0 12 20v2Zm0-4a6 6 0 1 1 5.7-8h-2.2A4 4 0 1 0 12 16v2Zm0-4a2 2 0 1 1 2-2h-2v2Zm5.4 7-3.7-3.7 1.4-1.4 2.3 2.3 4.5-4.5 1.4 1.4-5.9 5.9Z'/%3E%3C/svg%3E"); }
.dl-shortcut-settings { --dl-icon-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='%23000' d='M19.4 13.5c.1-.5.1-1 .1-1.5s0-1-.1-1.5l2-1.5-2-3.5-2.4 1a8 8 0 0 0-2.6-1.5L14 2h-4l-.4 3a8 8 0 0 0-2.6 1.5l-2.4-1-2 3.5 2 1.5A8 8 0 0 0 4.5 12c0 .5 0 1 .1 1.5l-2 1.5 2 3.5 2.4-1a8 8 0 0 0 2.6 1.5l.4 3h4l.4-3a8 8 0 0 0 2.6-1.5l2.4 1 2-3.5-2-1.5ZM12 15.5A3.5 3.5 0 1 1 12 8a3.5 3.5 0 0 1 0 7.5Z'/%3E%3C/svg%3E"); }
.dl-shortcut-account { --dl-icon-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='%23000' d='M12 12a5 5 0 1 1 0-10 5 5 0 0 1 0 10Zm0-2a3 3 0 1 0 0-6 3 3 0 0 0 0 6ZM3 21c0-4.2 4-7 9-7s9 2.8 9 7v1H3v-1Zm2.2-1h13.6c-.7-2.3-3.3-4-6.8-4s-6.1 1.7-6.8 4Z'/%3E%3C/svg%3E"); }

/* Duitlabs v0.3.4: safe insight text, refined carousel dots, proportional mobile nav, improved PWA icons */
.dl-insight-feature-panel {
    overflow: hidden;
}

.dl-insight-carousel {
    overflow: visible;
}

.dl-insight-track {
    align-items: stretch;
}

.dl-insight-slide {
    box-sizing: border-box;
    height: auto;
    min-height: 104px;
    overflow: visible;
    overflow-wrap: anywhere;
    word-break: normal;
}

.dl-insight-slide p,
.dl-insight-slide strong,
.dl-insight-slide span {
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
}

.dl-insight-slide p {
    display: block;
    -webkit-line-clamp: unset;
    -webkit-box-orient: initial;
    overflow: visible;
    text-overflow: clip;
}

.dl-insight-dots {
    justify-content: flex-start;
    min-height: 8px;
    margin-top: 9px;
}

.dl-insight-dots button,
.dl-client-panel .dl-insight-dots button {
    flex: 0 0 auto;
    display: block;
    width: 6px;
    min-width: 6px;
    max-width: 6px;
    height: 6px;
    min-height: 0;
    max-height: 6px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    line-height: 0;
    aspect-ratio: auto;
    transform: none;
    box-shadow: none;
}

.dl-insight-dots button.is-active,
.dl-client-panel .dl-insight-dots button.is-active {
    width: 16px;
    min-width: 16px;
    max-width: 16px;
    height: 6px;
    min-height: 0;
    max-height: 6px;
}

.dl-report-bars {
    grid-template-columns: repeat(2, 14px);
    gap: 14px;
    height: 64px;
    margin: 0 0 10px;
    padding: 7px 0;
    border-radius: 12px;
}

.dl-report-bars i {
    border-radius: 999px 999px 4px 4px;
}

@media (min-width: 761px) {
    .dl-insight-slide {
        min-height: 118px;
        padding: 16px 18px;
    }

    .dl-insight-slide p {
        font-size: 14.5px;
        line-height: 1.46;
    }

    .dl-report-bars {
        grid-template-columns: repeat(2, 16px);
        height: 72px;
        gap: 16px;
    }
}

@media (max-width: 760px) {
    .dl-client-app {
        padding-bottom: 72px;
    }

    .dl-client-sidebar {
        left: 14px;
        right: 14px;
        bottom: max(8px, env(safe-area-inset-bottom));
        padding: 6px;
        border-radius: 18px;
    }

    .dl-client-nav {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 3px;
        align-items: center;
    }

    .dl-client-nav button {
        justify-content: center;
        height: 46px;
        min-height: 46px;
        gap: 2px;
        padding: 4px 2px;
        border-radius: 13px;
        background: transparent;
        color: #575c6b;
        box-shadow: none;
        transform: none;
    }

    .dl-client-nav button.is-active,
    .dl-client-nav button:hover {
        background: rgba(26, 29, 46, 0.06);
        color: #171a2a;
        box-shadow: none;
        transform: none;
    }

    .dl-client-nav .dl-rail-icon {
        width: 23px;
        height: 23px;
        border-radius: 8px;
        background: transparent;
        color: currentColor;
    }

    .dl-client-nav .dl-rail-icon::before {
        width: 16px;
        height: 16px;
    }

    .dl-client-nav button.is-active .dl-rail-icon,
    .dl-client-nav button:hover .dl-rail-icon {
        background: #171a2a;
        color: #ffffff;
        box-shadow: 0 7px 14px rgba(26, 29, 46, 0.16);
    }

    .dl-client-nav button span:last-child {
        max-width: 100%;
        font-size: 9px;
        font-weight: 850;
        line-height: 1;
        letter-spacing: -0.035em;
        white-space: nowrap;
    }

    .dl-client-fab-group {
        bottom: 70px;
    }

    .dl-insight-feature-panel {
        padding: 12px;
        border-radius: 18px;
    }

    .dl-insight-feature-panel .dl-client-panel-head {
        margin-bottom: 7px;
    }

    .dl-insight-slide {
        min-height: 0;
        padding: 10px 11px;
        border-radius: 14px;
    }

    .dl-insight-slide span,
    .dl-insight-slide.is-success span,
    .dl-insight-slide.is-warning span,
    .dl-insight-slide.is-danger span {
        margin-bottom: 4px;
        font-size: 10px;
        line-height: 1.15;
    }

    .dl-insight-slide p {
        display: block;
        -webkit-line-clamp: unset;
        -webkit-box-orient: initial;
        overflow: visible;
        font-size: clamp(11.5px, 3.2vw, 12.8px);
        line-height: 1.34;
    }

    .dl-insight-dots {
        gap: 4px;
        min-height: 6px;
        margin-top: 7px;
    }

    .dl-insight-dots button,
    .dl-client-panel .dl-insight-dots button {
        width: 5px;
        min-width: 5px;
        max-width: 5px;
        height: 5px;
        max-height: 5px;
    }

    .dl-insight-dots button.is-active,
    .dl-client-panel .dl-insight-dots button.is-active {
        width: 14px;
        min-width: 14px;
        max-width: 14px;
        height: 5px;
        max-height: 5px;
    }

    .dl-mobile-shortcut-list button {
        min-height: 0;
    }

    .dl-report-bars {
        grid-template-columns: repeat(2, 11px);
        gap: 12px;
        height: 50px;
        margin: 0 0 8px;
        padding: 6px 0;
        border-radius: 11px;
    }
}



/* Duitlabs v0.3.6: cashflow status card, install button, stronger PWA install polish */
.dl-install-button {
    border: 0;
    border-radius: 999px;
    padding: 10px 16px;
    font-weight: 800;
    font-size: 13px;
    color: #ffffff;
    background: linear-gradient(135deg, #006ee6, #5b5fc7);
    box-shadow: 0 14px 28px rgba(0, 110, 230, 0.22);
    cursor: pointer;
    white-space: nowrap;
}

.dl-install-button[hidden] {
    display: none !important;
}

.dl-client-balance [data-dl-safe-to-spend] {
    letter-spacing: 0.02em;
}

.dl-health-pill.is-danger {
    color: #ffffff;
    background: rgba(255, 88, 88, 0.78);
}

@media (max-width: 760px) {
    .dl-client-topbar-actions .dl-install-button {
        order: -1;
        min-height: 34px;
        padding: 8px 12px;
        font-size: 11px;
        box-shadow: 0 10px 22px rgba(0, 110, 230, 0.18);
    }

    .dl-client-balance p {
        max-width: 100%;
        line-height: 1.2;
    }

    .dl-client-balance [data-dl-safe-to-spend] {
        font-size: clamp(24px, 7vw, 34px);
        line-height: 1;
    }

    .dl-client-balance [data-dl-status] {
        display: block;
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}

/* Duitlabs v0.3.8: workspace-scoped settings, family collaboration, installability hardening */
.dl-family-collaboration-panel[hidden],
.dl-invite-card[hidden] {
    display: none !important;
}

.dl-settings-info-card strong {
    color: var(--dl-text);
}

.dl-family-collaboration-grid {
    display: grid;
    grid-template-columns: minmax(260px, 0.9fr) minmax(260px, 1fr) minmax(260px, 1fr);
    gap: 16px;
    align-items: start;
}

.dl-invite-card,
.dl-members-card,
.dl-invites-card {
    border: 1px solid rgba(140, 148, 180, 0.18);
    border-radius: 24px;
    padding: 18px;
    background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(248,250,255,0.9));
}

.dl-invite-card h3,
.dl-members-card h3,
.dl-invites-card h3 {
    margin: 0 0 10px;
    font-size: 16px;
    color: var(--dl-text);
}

.dl-invite-form {
    margin-top: 12px;
}

.dl-form-message {
    margin: 10px 0 0;
    color: #006ee6;
    font-size: 13px;
    font-weight: 700;
}

.dl-role-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 900;
    color: #006ee6;
    background: rgba(0, 110, 230, 0.1);
    text-transform: uppercase;
}

.dl-member-item,
.dl-invite-item {
    align-items: center;
}

.dl-invite-item > button {
    white-space: nowrap;
}

@media (max-width: 1120px) {
    .dl-family-collaboration-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .dl-family-collaboration-panel .dl-client-panel-head {
        align-items: flex-start;
    }

    .dl-invite-card,
    .dl-members-card,
    .dl-invites-card {
        border-radius: 20px;
        padding: 14px;
    }

    .dl-member-item,
    .dl-invite-item {
        gap: 8px;
    }

    .dl-role-pill {
        padding: 5px 8px;
        font-size: 10px;
    }
}

/* Duitlabs v0.3.10: mobile-only consumer fintech dashboard layout from v0.3.9 baseline */
@media (max-width: 760px) {
    body {
        background: #eef1ec;
    }

    .dl-client-app {
        padding: 0 0 94px;
        background: #eef1ec;
    }

    .dl-client-main {
        padding: 0;
        overflow: hidden;
    }

    .dl-client-topbar {
        position: relative;
        display: grid;
        gap: 18px;
        min-height: 292px;
        margin: 0 0 0;
        padding: 30px 22px 122px;
        border-radius: 0 0 34px 34px;
        background:
            radial-gradient(circle at 86% 46%, rgba(255, 255, 255, 0.24) 0 42px, transparent 43px),
            radial-gradient(circle at 104% 78%, rgba(26, 29, 46, 0.22) 0 88px, transparent 89px),
            linear-gradient(155deg, #006ee6 0%, #005ac8 52%, #4b4fd8 100%);
        color: #ffffff;
        box-shadow: 0 22px 54px rgba(0, 86, 190, 0.22);
        overflow: hidden;
    }

    .dl-client-topbar::before {
        content: "";
        position: absolute;
        right: 24px;
        bottom: 42px;
        width: 120px;
        height: 100px;
        border-radius: 54% 46% 48% 52%;
        background:
            radial-gradient(circle at 46% 42%, #1a1d2e 0 28px, transparent 29px),
            radial-gradient(circle at 36% 36%, #ffffff 0 3px, transparent 4px),
            radial-gradient(circle at 58% 36%, #ffffff 0 3px, transparent 4px),
            radial-gradient(circle at 50% 55%, rgba(255, 255, 255, 0.92) 0 8px, transparent 9px),
            #ffffff;
        opacity: 0.9;
        transform: rotate(-8deg);
        pointer-events: none;
    }

    .dl-client-topbar::after {
        content: "Versi Smart";
        position: absolute;
        right: 18px;
        bottom: 132px;
        z-index: 1;
        display: inline-flex;
        align-items: center;
        min-height: 34px;
        border-radius: 999px;
        background: #1a1d2e;
        color: #ffffff;
        padding: 0 14px;
        font-size: 12px;
        font-weight: 900;
        box-shadow: 0 12px 28px rgba(26, 29, 46, 0.22);
        pointer-events: none;
    }

    .dl-client-topbar > div:first-child {
        position: relative;
        z-index: 2;
    }

    .dl-client-eyebrow,
    .dl-client-topbar h1 {
        color: #ffffff;
    }

    .dl-client-eyebrow {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        margin: 0 0 8px;
    }

    .dl-client-eyebrow::before {
        content: "👋";
        font-size: 19px;
        line-height: 1;
    }

    .dl-client-topbar h1 {
        opacity: 0.82;
        font-weight: 800;
    }

    .dl-client-topbar-actions {
        position: relative;
        z-index: 2;
        display: grid;
        grid-template-columns: minmax(0, 1fr) 46px;
        align-items: center;
        gap: 10px;
        max-width: 100%;
        margin-top: auto;
    }

    .dl-workspace-switcher {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 46px;
        align-items: center;
        gap: 10px;
    }

    .dl-client-select {
        min-height: 50px;
        border: 0;
        border-radius: 18px;
        background: rgba(255, 255, 255, 0.92);
        color: #1a1d2e;
        box-shadow: 0 14px 30px rgba(0, 59, 138, 0.16);
    }

    .dl-workspace-add-button,
    .dl-round-action {
        width: 50px;
        height: 50px;
        min-width: 50px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.94);
        color: #005ac8;
        box-shadow: 0 14px 30px rgba(0, 59, 138, 0.16);
    }

    .dl-client-page[data-dl-page="dashboard"].is-active {
        display: flex;
        flex-direction: column;
        gap: 0;
    }

    .dl-client-page[data-dl-page="dashboard"] .dl-client-stats {
        position: relative;
        z-index: 3;
        order: 1;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
        margin: -104px 18px 16px;
    }

    .dl-client-page[data-dl-page="dashboard"] .dl-client-balance {
        position: relative;
        grid-column: 1 / -1;
        min-height: 158px;
        padding: 22px 22px 18px;
        border-radius: 26px;
        background: rgba(0, 73, 176, 0.58);
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 18px 36px rgba(0, 61, 153, 0.18);
        overflow: hidden;
    }

    .dl-client-page[data-dl-page="dashboard"] .dl-client-balance::before {
        content: "";
        position: absolute;
        inset: 0;
        background:
            linear-gradient(90deg, rgba(255, 255, 255, 0.12), transparent 48%),
            radial-gradient(circle at 88% 22%, rgba(255, 255, 255, 0.2), transparent 28%);
        pointer-events: none;
    }

    .dl-client-page[data-dl-page="dashboard"] .dl-client-balance::after {
        content: "";
        position: absolute;
        right: -10px;
        bottom: -24px;
        width: 126px;
        height: 126px;
        border-radius: 38% 62% 52% 48%;
        background: rgba(255, 255, 255, 0.14);
        pointer-events: none;
    }

    .dl-client-page[data-dl-page="dashboard"] .dl-client-balance .dl-stat-icon,
    .dl-client-page[data-dl-page="dashboard"] .dl-client-balance p,
    .dl-client-page[data-dl-page="dashboard"] .dl-client-balance strong,
    .dl-client-page[data-dl-page="dashboard"] .dl-client-balance > span:last-child {
        position: relative;
        z-index: 1;
    }

    .dl-client-page[data-dl-page="dashboard"] .dl-client-balance .dl-stat-icon {
        align-self: start;
        width: 46px;
        height: 46px;
        background: rgba(255, 255, 255, 0.18);
    }

    .dl-client-page[data-dl-page="dashboard"] .dl-client-balance p {
        opacity: 0.84;
        text-transform: uppercase;
        letter-spacing: 0.04em;
    }

    .dl-client-page[data-dl-page="dashboard"] .dl-client-balance strong {
        color: #ffffff;
        font-size: clamp(34px, 11vw, 44px);
        letter-spacing: -0.04em;
    }

    .dl-client-page[data-dl-page="dashboard"] .dl-client-balance > span:last-child {
        display: inline-flex;
        min-height: 30px;
        align-items: center;
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.18);
        color: #ffffff;
        padding: 0 12px;
        font-weight: 900;
    }

    .dl-client-page[data-dl-page="dashboard"] .dl-client-stat {
        min-height: 112px;
        padding: 17px;
        border-radius: 22px;
        background: #ffffff;
        box-shadow: 0 14px 34px rgba(26, 29, 46, 0.06);
    }

    .dl-client-page[data-dl-page="dashboard"] .dl-client-stat strong {
        font-size: clamp(20px, 6vw, 25px);
    }

    .dl-client-page[data-dl-page="dashboard"] .dl-client-stat:last-child {
        grid-column: 1 / -1;
        width: calc(50% - 7px);
    }

    .dl-client-page[data-dl-page="dashboard"] .dl-mobile-shortcut-card {
        order: 2;
        display: block;
        margin: 0 18px 18px;
        padding: 18px 14px 15px;
        border-radius: 24px;
        background: rgba(255, 255, 255, 0.96);
        box-shadow: 0 18px 42px rgba(26, 29, 46, 0.14);
    }

    .dl-client-page[data-dl-page="dashboard"] .dl-mobile-shortcut-card .dl-client-panel-head {
        margin-bottom: 12px;
        padding: 0 4px;
    }

    .dl-client-page[data-dl-page="dashboard"] .dl-mobile-shortcut-list {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 10px;
        overflow: visible;
        padding: 0;
    }

    .dl-client-page[data-dl-page="dashboard"] .dl-mobile-shortcut-list button {
        min-width: 0;
        gap: 8px;
        padding: 7px 4px 4px;
    }

    .dl-client-page[data-dl-page="dashboard"] .dl-shortcut-icon {
        width: 56px;
        height: 56px;
        border-radius: 22px;
        background: linear-gradient(180deg, #006ee6, #0050bc);
        box-shadow: 0 15px 24px rgba(0, 110, 230, 0.22);
    }

    .dl-client-page[data-dl-page="dashboard"] .dl-insight-feature-panel {
        order: 4;
        margin: 0 18px 18px;
        border-radius: 24px;
    }

    .dl-client-page[data-dl-page="dashboard"] .dl-annual-report-panel {
        order: 5;
        margin: 0 18px 18px;
    }

    .dl-client-page[data-dl-page="dashboard"] .dl-dashboard-action-grid {
        order: 6;
        margin: 0 18px 18px;
    }

    .dl-client-page[data-dl-page="dashboard"] .dl-client-grid {
        order: 3;
        display: flex;
        flex-direction: column;
        gap: 14px;
        margin: 0 18px 18px;
    }

    .dl-client-page[data-dl-page="dashboard"] .dl-client-grid .dl-client-panel,
    .dl-client-page[data-dl-page="dashboard"] .dl-annual-report-panel,
    .dl-client-page[data-dl-page="dashboard"] .dl-planning-summary-card {
        border-radius: 24px;
        box-shadow: 0 14px 34px rgba(26, 29, 46, 0.06);
    }

    .dl-client-page[data-dl-page="dashboard"] .dl-transactions-panel {
        min-height: 220px;
    }

    .dl-client-page[data-dl-page="dashboard"] .dl-transactions-panel .dl-client-panel-head h2 {
        font-size: clamp(24px, 7vw, 34px);
        letter-spacing: -0.05em;
    }

    .dl-client-page[data-dl-page="dashboard"] .dl-client-panel,
    .dl-client-page[data-dl-page="dashboard"] .dl-planning-summary-card {
        background: #ffffff;
    }

    .dl-client-sidebar {
        left: 18px;
        right: 18px;
        bottom: max(10px, env(safe-area-inset-bottom));
        padding: 7px;
        border-radius: 25px;
        box-shadow: 0 16px 44px rgba(26, 29, 46, 0.16);
    }

    .dl-client-nav {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 4px;
    }

    .dl-client-nav button {
        height: 58px;
        min-height: 58px;
        border-radius: 19px;
        background: transparent;
    }

    .dl-client-nav button.is-active,
    .dl-client-nav button:hover {
        background: rgba(26, 29, 46, 0.08);
        color: #1a1d2e;
    }

    .dl-client-nav button.is-active .dl-rail-icon {
        background: #1a1d2e;
        color: #ffffff;
    }

    .dl-client-nav button:hover .dl-rail-icon {
        background: rgba(91, 95, 199, 0.14);
        color: #5b5fc7;
    }

    .dl-client-nav button.is-active:hover .dl-rail-icon {
        background: #1a1d2e;
        color: #ffffff;
    }

    .dl-client-nav .dl-rail-icon {
        width: 26px;
        height: 26px;
        border-radius: 11px;
    }

    .dl-client-nav button span:last-child {
        max-width: none;
        font-size: 9.5px;
        font-weight: 900;
    }

    .dl-client-fab-group {
        right: 18px;
        bottom: 88px;
    }

    .dl-smart-ai-fab {
        min-height: 54px;
        padding: 8px;
        border-radius: 999px;
    }

    .dl-quick-add-fab {
        width: 58px;
        height: 58px;
    }
}

/* Duitlabs v0.3.11: compact mobile fintech layout refinement */
@media (max-width: 760px) {
    .dl-client-app {
        padding-bottom: 82px;
    }

    .dl-client-topbar {
        min-height: 246px;
        gap: 12px;
        padding: 22px 16px 98px;
        border-radius: 0 0 28px 28px;
        box-shadow: 0 18px 42px rgba(0, 86, 190, 0.18);
    }

    .dl-client-topbar::before {
        right: 12px;
        bottom: 28px;
        width: 92px;
        height: 78px;
        opacity: 0.72;
    }

    .dl-client-topbar::after {
        right: 12px;
        bottom: 108px;
        min-height: 28px;
        padding: 0 10px;
        font-size: 10px;
        box-shadow: 0 10px 22px rgba(26, 29, 46, 0.18);
    }

    .dl-client-eyebrow {
        gap: 6px;
        margin-bottom: 4px;
        font-size: 13px;
    }

    .dl-client-eyebrow::before {
        font-size: 16px;
    }

    .dl-client-topbar h1 {
        font-size: 17px;
        line-height: 1.15;
    }

    .dl-client-topbar-actions,
    .dl-workspace-switcher {
        grid-template-columns: minmax(0, 1fr) 42px;
        gap: 8px;
    }

    .dl-client-select {
        min-height: 43px;
        border-radius: 15px;
        padding: 0 34px 0 14px;
        font-size: 12.5px;
    }

    .dl-workspace-add-button,
    .dl-round-action {
        width: 43px;
        height: 43px;
        min-width: 43px;
        font-size: 17px;
    }

    .dl-client-page[data-dl-page="dashboard"] .dl-client-stats {
        gap: 10px;
        margin: -82px 12px 12px;
    }

    .dl-client-page[data-dl-page="dashboard"] .dl-client-balance {
        min-height: 118px;
        padding: 15px 16px 13px;
        border-radius: 22px;
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 14px 28px rgba(0, 61, 153, 0.15);
    }

    .dl-client-page[data-dl-page="dashboard"] .dl-client-balance::after {
        right: -16px;
        bottom: -34px;
        width: 104px;
        height: 104px;
    }

    .dl-client-page[data-dl-page="dashboard"] .dl-client-balance .dl-stat-icon {
        width: 38px;
        height: 38px;
        border-radius: 16px;
    }

    .dl-client-page[data-dl-page="dashboard"] .dl-client-balance p {
        margin-bottom: 6px;
        font-size: 10px;
        letter-spacing: 0.06em;
    }

    .dl-client-page[data-dl-page="dashboard"] .dl-client-balance strong {
        font-size: clamp(27px, 8.4vw, 34px);
        line-height: 0.98;
    }

    .dl-client-page[data-dl-page="dashboard"] .dl-client-balance > span:last-child {
        min-height: 24px;
        margin-top: 8px;
        padding: 0 10px;
        font-size: 10px;
    }

    .dl-client-page[data-dl-page="dashboard"] .dl-client-stat {
        min-height: 92px;
        padding: 13px;
        border-radius: 18px;
        box-shadow: 0 10px 24px rgba(26, 29, 46, 0.055);
    }

    .dl-client-page[data-dl-page="dashboard"] .dl-client-stat .dl-stat-icon {
        width: 36px;
        height: 36px;
        border-radius: 15px;
        margin-bottom: 8px;
    }

    .dl-client-page[data-dl-page="dashboard"] .dl-client-stat p {
        margin-bottom: 6px;
        font-size: 10.5px;
        line-height: 1.2;
    }

    .dl-client-page[data-dl-page="dashboard"] .dl-client-stat strong {
        font-size: clamp(16px, 5vw, 20px);
        line-height: 1.02;
        letter-spacing: -0.035em;
        white-space: nowrap;
    }

    .dl-client-page[data-dl-page="dashboard"] .dl-client-stat:last-child {
        width: calc(50% - 5px);
    }

    .dl-client-page[data-dl-page="dashboard"] .dl-mobile-shortcut-card {
        margin: 0 12px 12px;
        padding: 14px 12px 12px;
        border-radius: 20px;
        box-shadow: 0 14px 30px rgba(26, 29, 46, 0.11);
    }

    .dl-client-page[data-dl-page="dashboard"] .dl-mobile-shortcut-card .dl-client-panel-head {
        margin-bottom: 9px;
        padding: 0 2px;
    }

    .dl-client-page[data-dl-page="dashboard"] .dl-mobile-shortcut-card .dl-client-panel-head p {
        font-size: 10px;
        letter-spacing: 0.08em;
    }

    .dl-client-page[data-dl-page="dashboard"] .dl-mobile-shortcut-card .dl-client-panel-head h2 {
        font-size: 15px;
    }

    .dl-client-page[data-dl-page="dashboard"] .dl-mobile-shortcut-list {
        gap: 6px;
    }

    .dl-client-page[data-dl-page="dashboard"] .dl-mobile-shortcut-list button {
        gap: 6px;
        padding: 4px 2px 2px;
    }

    .dl-client-page[data-dl-page="dashboard"] .dl-shortcut-icon {
        width: 46px;
        height: 46px;
        border-radius: 18px;
        box-shadow: 0 10px 18px rgba(0, 110, 230, 0.18);
    }

    .dl-client-page[data-dl-page="dashboard"] .dl-mobile-shortcut-list strong {
        font-size: 10.5px;
        line-height: 1.15;
    }

    .dl-client-page[data-dl-page="dashboard"] .dl-client-grid,
    .dl-client-page[data-dl-page="dashboard"] .dl-insight-feature-panel,
    .dl-client-page[data-dl-page="dashboard"] .dl-annual-report-panel,
    .dl-client-page[data-dl-page="dashboard"] .dl-dashboard-action-grid {
        margin-left: 12px;
        margin-right: 12px;
        margin-bottom: 12px;
    }

    .dl-client-page[data-dl-page="dashboard"] .dl-client-grid {
        gap: 10px;
    }

    .dl-client-page[data-dl-page="dashboard"] .dl-client-grid .dl-client-panel,
    .dl-client-page[data-dl-page="dashboard"] .dl-insight-feature-panel,
    .dl-client-page[data-dl-page="dashboard"] .dl-annual-report-panel,
    .dl-client-page[data-dl-page="dashboard"] .dl-planning-summary-card {
        border-radius: 20px;
        box-shadow: 0 10px 24px rgba(26, 29, 46, 0.055);
    }

    .dl-client-page[data-dl-page="dashboard"] .dl-client-panel,
    .dl-client-page[data-dl-page="dashboard"] .dl-planning-summary-card,
    .dl-client-page[data-dl-page="dashboard"] .dl-annual-report-panel,
    .dl-client-page[data-dl-page="dashboard"] .dl-insight-feature-panel {
        padding: 15px;
    }

    .dl-client-page[data-dl-page="dashboard"] .dl-client-panel-head {
        gap: 8px;
        margin-bottom: 10px;
    }

    .dl-client-page[data-dl-page="dashboard"] .dl-client-panel-head h2,
    .dl-client-page[data-dl-page="dashboard"] .dl-client-panel h2,
    .dl-client-page[data-dl-page="dashboard"] .dl-planning-summary-card h3 {
        font-size: 15px;
        line-height: 1.15;
        letter-spacing: -0.025em;
    }

    .dl-client-page[data-dl-page="dashboard"] .dl-transactions-panel {
        min-height: 0;
    }

    .dl-client-page[data-dl-page="dashboard"] .dl-transactions-panel .dl-client-panel-head h2 {
        font-size: 18px;
        line-height: 1.1;
        letter-spacing: -0.035em;
    }

    .dl-client-page[data-dl-page="dashboard"] .dl-transactions-panel .dl-client-panel-head button,
    .dl-client-page[data-dl-page="dashboard"] .dl-planning-summary-card button,
    .dl-client-page[data-dl-page="dashboard"] .dl-client-panel-head .dl-small-button {
        min-height: 34px;
        padding: 0 12px;
        border-radius: 12px;
        font-size: 10.5px;
    }

    .dl-client-page[data-dl-page="dashboard"] .dl-transaction-list {
        gap: 8px;
    }

    .dl-client-page[data-dl-page="dashboard"] .dl-transaction-item {
        padding: 10px;
        border-radius: 14px;
    }

    .dl-client-page[data-dl-page="dashboard"] .dl-transaction-item strong,
    .dl-client-page[data-dl-page="dashboard"] .dl-transaction-amount {
        font-size: 12px;
    }

    .dl-client-page[data-dl-page="dashboard"] .dl-transaction-item span,
    .dl-client-page[data-dl-page="dashboard"] .dl-transaction-item small,
    .dl-client-page[data-dl-page="dashboard"] .dl-client-muted,
    .dl-client-page[data-dl-page="dashboard"] .dl-client-insight,
    .dl-client-page[data-dl-page="dashboard"] .dl-planning-summary-card p {
        font-size: 11px;
        line-height: 1.35;
    }

    .dl-client-page[data-dl-page="dashboard"] .dl-report-chart {
        min-height: 86px;
        padding: 8px 6px 0;
    }

    .dl-client-page[data-dl-page="dashboard"] .dl-report-bars {
        height: 58px;
        gap: 8px;
    }

    .dl-client-page[data-dl-page="dashboard"] .dl-report-bar {
        width: 10px;
        border-radius: 999px 999px 3px 3px;
    }

    .dl-client-page[data-dl-page="dashboard"] .dl-client-report-card {
        gap: 7px;
    }

    .dl-client-page[data-dl-page="dashboard"] .dl-client-report-card div {
        gap: 8px;
        padding: 7px 0;
    }

    .dl-client-page[data-dl-page="dashboard"] .dl-client-report-card span,
    .dl-client-page[data-dl-page="dashboard"] .dl-client-report-card strong {
        font-size: 11px;
    }

    .dl-client-page[data-dl-page="dashboard"] .dl-insight-feature-panel .dl-client-panel-head {
        margin-bottom: 10px;
    }

    .dl-client-page[data-dl-page="dashboard"] .dl-insight-feature-panel .dl-insight-slide {
        min-height: 94px;
        padding: 13px;
        border-radius: 18px;
    }

    .dl-client-page[data-dl-page="dashboard"] .dl-insight-feature-panel .dl-insight-slide strong {
        font-size: 12px;
    }

    .dl-client-page[data-dl-page="dashboard"] .dl-insight-feature-panel .dl-insight-slide p {
        font-size: 12px;
        line-height: 1.38;
    }

    .dl-client-page[data-dl-page="dashboard"] .dl-insight-feature-panel .dl-insight-dots {
        margin-top: 8px;
    }

    .dl-client-sidebar {
        left: 12px;
        right: 12px;
        bottom: max(8px, env(safe-area-inset-bottom));
        padding: 6px;
        border-radius: 22px;
        box-shadow: 0 14px 34px rgba(26, 29, 46, 0.14);
    }

    .dl-client-nav {
        gap: 3px;
    }

    .dl-client-nav button {
        height: 52px;
        min-height: 52px;
        border-radius: 16px;
        gap: 3px;
        padding: 5px 2px;
    }

    .dl-client-nav .dl-rail-icon {
        width: 23px;
        height: 23px;
        border-radius: 9px;
    }

    .dl-client-nav .dl-rail-icon svg {
        width: 15px;
        height: 15px;
    }

    .dl-client-nav button span:last-child {
        font-size: 9px;
        line-height: 1.05;
    }

    .dl-client-fab-group {
        right: 14px;
        bottom: 76px;
        gap: 8px;
    }

    .dl-smart-ai-fab {
        min-height: 46px;
        padding: 6px;
        border-radius: 999px;
    }

    .dl-smart-ai-fab span {
        width: 38px;
        height: 38px;
        font-size: 11px;
    }

    .dl-quick-add-fab {
        width: 50px;
        height: 50px;
        font-size: 26px;
    }
}

@media (max-width: 380px) {
    .dl-client-page[data-dl-page="dashboard"] .dl-client-stat strong {
        font-size: 16px;
    }

    .dl-client-page[data-dl-page="dashboard"] .dl-client-balance strong {
        font-size: 28px;
    }

    .dl-client-page[data-dl-page="dashboard"] .dl-client-stat {
        padding: 12px 10px;
    }

    .dl-client-page[data-dl-page="dashboard"] .dl-client-panel,
    .dl-client-page[data-dl-page="dashboard"] .dl-planning-summary-card,
    .dl-client-page[data-dl-page="dashboard"] .dl-annual-report-panel,
    .dl-client-page[data-dl-page="dashboard"] .dl-insight-feature-panel {
        padding: 14px 13px;
    }
}

/* Duitlabs v0.3.12: tighter dashboard-only mobile fintech hero, restored insight position, no empty mobile widgets */
@media (max-width: 760px) {
    /* Keep the fintech hero treatment scoped to Dashboard only. */
    .dl-client-app:not([data-dl-current-page="dashboard"]) .dl-client-topbar {
        display: grid;
        gap: 12px;
        min-height: 0;
        margin: 12px 12px 12px;
        padding: 14px;
        border-radius: 22px;
        background: #ffffff;
        color: #1a1d2e;
        box-shadow: 0 10px 24px rgba(26, 29, 46, 0.055);
        overflow: visible;
    }

    .dl-client-app:not([data-dl-current-page="dashboard"]) .dl-client-topbar::before,
    .dl-client-app:not([data-dl-current-page="dashboard"]) .dl-client-topbar::after {
        display: none;
        content: none;
    }

    .dl-client-app:not([data-dl-current-page="dashboard"]) .dl-client-eyebrow,
    .dl-client-app:not([data-dl-current-page="dashboard"]) .dl-client-topbar h1 {
        color: #1a1d2e;
    }

    .dl-client-app:not([data-dl-current-page="dashboard"]) .dl-client-topbar h1 {
        opacity: 1;
    }

    .dl-client-app:not([data-dl-current-page="dashboard"]) .dl-client-select,
    .dl-client-app:not([data-dl-current-page="dashboard"]) .dl-workspace-add-button,
    .dl-client-app:not([data-dl-current-page="dashboard"]) .dl-round-action {
        box-shadow: 0 8px 18px rgba(26, 29, 46, 0.065);
    }

    .dl-client-app[data-dl-current-page="dashboard"] .dl-client-topbar {
        min-height: 232px;
        gap: 10px;
        padding: 18px 14px 114px;
        border-radius: 0 0 24px 24px;
        background: linear-gradient(155deg, #006ee6 0%, #005fd7 52%, #4b4fd8 100%);
        box-shadow: 0 14px 34px rgba(0, 86, 190, 0.16);
        overflow: hidden;
    }

    /* Remove mascot/blob/background decorative elements from the blue hero. */
    .dl-client-app[data-dl-current-page="dashboard"] .dl-client-topbar::before,
    .dl-client-app[data-dl-current-page="dashboard"] .dl-client-topbar::after,
    .dl-client-app[data-dl-current-page="dashboard"] .dl-client-balance::before,
    .dl-client-app[data-dl-current-page="dashboard"] .dl-client-balance::after {
        display: none;
        content: none;
    }

    .dl-client-app[data-dl-current-page="dashboard"] .dl-client-eyebrow {
        margin-bottom: 3px;
        font-size: 12.5px;
        line-height: 1.12;
    }

    .dl-client-app[data-dl-current-page="dashboard"] .dl-client-topbar h1 {
        font-size: 19px;
        line-height: 1.05;
        opacity: 0.9;
    }

    .dl-client-app[data-dl-current-page="dashboard"] .dl-client-topbar-actions,
    .dl-client-app[data-dl-current-page="dashboard"] .dl-workspace-switcher {
        grid-template-columns: minmax(0, 1fr) 39px;
        gap: 8px;
    }

    .dl-client-app[data-dl-current-page="dashboard"] .dl-client-select {
        min-height: 40px;
        border-radius: 14px;
        padding: 0 32px 0 13px;
        font-size: 12px;
        box-shadow: 0 10px 20px rgba(0, 59, 138, 0.12);
    }

    .dl-client-app[data-dl-current-page="dashboard"] .dl-workspace-add-button,
    .dl-client-app[data-dl-current-page="dashboard"] .dl-round-action {
        width: 39px;
        height: 39px;
        min-width: 39px;
        border-radius: 15px;
        font-size: 17px;
        box-shadow: 0 10px 20px rgba(0, 59, 138, 0.12);
    }

    .dl-client-page[data-dl-page="dashboard"] .dl-client-stats {
        gap: 9px;
        margin: -126px 14px 12px;
    }

    .dl-client-page[data-dl-page="dashboard"] .dl-client-balance {
        min-height: 92px;
        padding: 14px 15px 13px;
        border-radius: 19px;
        background: rgba(0, 73, 176, 0.48);
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 10px 20px rgba(0, 61, 153, 0.12);
        overflow: hidden;
    }

    .dl-client-page[data-dl-page="dashboard"] .dl-client-balance .dl-stat-icon {
        width: 31px;
        height: 31px;
        border-radius: 13px;
    }

    .dl-client-page[data-dl-page="dashboard"] .dl-client-balance p {
        margin-bottom: 5px;
        font-size: 9.5px;
        letter-spacing: 0.065em;
    }

    .dl-client-page[data-dl-page="dashboard"] .dl-client-balance strong {
        font-size: clamp(24px, 7.2vw, 31px);
        line-height: 1;
    }

    .dl-client-page[data-dl-page="dashboard"] .dl-client-balance > span:last-child {
        min-height: 22px;
        margin-top: 7px;
        padding: 0 9px;
        font-size: 9.5px;
        line-height: 1;
    }

    .dl-client-page[data-dl-page="dashboard"] .dl-client-stat {
        min-height: 82px;
        padding: 11px 11px 12px;
        border-radius: 17px;
    }

    .dl-client-page[data-dl-page="dashboard"] .dl-client-stat .dl-stat-icon {
        width: 31px;
        height: 31px;
        border-radius: 13px;
        margin-bottom: 7px;
    }

    .dl-client-page[data-dl-page="dashboard"] .dl-client-stat p {
        margin-bottom: 5px;
        font-size: 10px;
        line-height: 1.18;
    }

    .dl-client-page[data-dl-page="dashboard"] .dl-client-stat strong {
        font-size: clamp(15px, 4.6vw, 18.5px);
        line-height: 1.05;
    }

    .dl-client-page[data-dl-page="dashboard"] .dl-client-stat:last-child {
        width: calc(50% - 4.5px);
    }

    /* Restore Insight Utama to the visible dashboard flow, right after quick access. */
    .dl-client-page[data-dl-page="dashboard"] .dl-mobile-shortcut-card { order: 2; }
    .dl-client-page[data-dl-page="dashboard"] .dl-insight-feature-panel { order: 3; display: block; }
    .dl-client-page[data-dl-page="dashboard"] .dl-client-grid { order: 4; }
    .dl-client-page[data-dl-page="dashboard"] .dl-annual-report-panel { order: 5; }
    .dl-client-page[data-dl-page="dashboard"] .dl-dashboard-action-grid { display: none; }

    .dl-client-page[data-dl-page="dashboard"] .dl-insight-feature-panel {
        margin: 0 14px 12px;
        padding: 13px;
        border-radius: 20px;
        background: linear-gradient(150deg, #006ee6 0%, #005bd0 52%, #4b4fd8 100%);
        color: #ffffff;
        box-shadow: 0 14px 30px rgba(0, 86, 190, 0.18);
    }

    .dl-client-page[data-dl-page="dashboard"] .dl-insight-feature-panel::after {
        display: none;
        content: none;
    }

    .dl-client-page[data-dl-page="dashboard"] .dl-insight-feature-panel .dl-section-kicker,
    .dl-client-page[data-dl-page="dashboard"] .dl-insight-feature-panel h2,
    .dl-client-page[data-dl-page="dashboard"] .dl-insight-feature-panel .dl-client-panel-head h2 {
        color: #ffffff;
    }

    .dl-client-page[data-dl-page="dashboard"] .dl-insight-feature-panel .dl-client-panel-head {
        margin-bottom: 8px;
    }

    .dl-client-page[data-dl-page="dashboard"] .dl-insight-feature-panel .dl-health-pill {
        background: rgba(255, 255, 255, 0.18);
        color: #ffffff;
    }

    .dl-client-page[data-dl-page="dashboard"] .dl-insight-feature-panel .dl-insight-slide {
        min-height: 86px;
        padding: 11px 12px;
        border: 1px solid rgba(255, 255, 255, 0.18);
        border-radius: 16px;
        background: rgba(255, 255, 255, 0.12);
        box-shadow: none;
    }

    .dl-client-page[data-dl-page="dashboard"] .dl-insight-feature-panel .dl-insight-slide span,
    .dl-client-page[data-dl-page="dashboard"] .dl-insight-feature-panel .dl-insight-slide.is-success span,
    .dl-client-page[data-dl-page="dashboard"] .dl-insight-feature-panel .dl-insight-slide.is-warning span,
    .dl-client-page[data-dl-page="dashboard"] .dl-insight-feature-panel .dl-insight-slide.is-danger span {
        color: rgba(255, 255, 255, 0.82);
    }

    .dl-client-page[data-dl-page="dashboard"] .dl-insight-feature-panel .dl-insight-slide p {
        color: #ffffff;
        font-size: clamp(11.2px, 3.1vw, 12.4px);
        line-height: 1.35;
    }

    .dl-client-page[data-dl-page="dashboard"] .dl-insight-feature-panel .dl-insight-dots button {
        background: rgba(255, 255, 255, 0.32);
    }

    .dl-client-page[data-dl-page="dashboard"] .dl-insight-feature-panel .dl-insight-dots button.is-active {
        background: #ffffff;
    }

    .dl-client-page[data-dl-page="dashboard"] .dl-mobile-shortcut-card,
    .dl-client-page[data-dl-page="dashboard"] .dl-client-grid,
    .dl-client-page[data-dl-page="dashboard"] .dl-annual-report-panel {
        margin-left: 14px;
        margin-right: 14px;
    }
}

@media (max-width: 380px) {
    .dl-client-app[data-dl-current-page="dashboard"] .dl-client-topbar {
        min-height: 224px;
        padding-left: 12px;
        padding-right: 12px;
    }

    .dl-client-page[data-dl-page="dashboard"] .dl-client-stats {
        margin-top: -122px;
        margin-left: 12px;
        margin-right: 12px;
    }
}


/* Duitlabs v0.3.13: mobile dashboard cashflow positioning, workspace dropdown, and obligation typography polish */
.dl-workspace-dropdown-toggle,
.dl-workspace-dropdown-menu {
    display: none;
}

@media (max-width: 760px) {
    .dl-client-app[data-dl-current-page="dashboard"] .dl-client-topbar {
        min-height: 258px;
        padding: 17px 14px 124px;
        gap: 9px;
        border-radius: 0 0 24px 24px;
    }

    .dl-client-app[data-dl-current-page="dashboard"] .dl-client-topbar-actions,
    .dl-client-app[data-dl-current-page="dashboard"] .dl-workspace-switcher {
        gap: 8px;
    }

    .dl-client-page[data-dl-page="dashboard"] .dl-client-stats {
        gap: 10px;
        row-gap: 18px;
        margin: -124px 14px 14px;
    }

    .dl-client-page[data-dl-page="dashboard"] .dl-client-balance {
        min-height: 96px;
        padding: 13px 15px 12px;
        border-radius: 19px;
        align-content: center;
    }

    .dl-client-page[data-dl-page="dashboard"] .dl-client-balance .dl-stat-icon {
        width: 30px;
        height: 30px;
        border-radius: 12px;
    }

    .dl-client-page[data-dl-page="dashboard"] .dl-client-balance p {
        margin-bottom: 4px;
        font-size: 9.4px;
        line-height: 1.1;
    }

    .dl-client-page[data-dl-page="dashboard"] .dl-client-balance strong {
        font-size: clamp(23px, 7vw, 30px);
        line-height: 1;
    }

    .dl-client-page[data-dl-page="dashboard"] .dl-client-balance > span:last-child {
        min-height: 21px;
        margin-top: 7px;
        padding: 0 9px;
        font-size: 9.4px;
    }

    .dl-client-page[data-dl-page="dashboard"] .dl-client-stat {
        margin-top: 7px;
    }

    .dl-client-page[data-dl-page="dashboard"] .dl-client-stat:last-child {
        margin-top: 0;
    }

    .dl-workspace-switcher {
        position: relative;
    }

    .dl-workspace-switcher .dl-client-select {
        display: none;
    }

    .dl-workspace-dropdown-toggle {
        display: inline-grid;
        grid-template-columns: minmax(0, 1fr) 16px;
        align-items: center;
        width: 100%;
        min-height: 40px;
        border: 0;
        border-radius: 14px;
        background: rgba(255, 255, 255, 0.94);
        color: #1a1d2e;
        padding: 0 12px 0 13px;
        text-align: left;
        font: inherit;
        font-size: 12px;
        font-weight: 650;
        box-shadow: 0 10px 20px rgba(0, 59, 138, 0.12);
        cursor: pointer;
    }

    .dl-workspace-dropdown-toggle span {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .dl-workspace-dropdown-toggle i {
        position: relative;
        width: 16px;
        height: 16px;
    }

    .dl-workspace-dropdown-toggle i::before {
        content: "";
        position: absolute;
        left: 4px;
        top: 5px;
        width: 7px;
        height: 7px;
        border-right: 2px solid currentColor;
        border-bottom: 2px solid currentColor;
        transform: rotate(45deg);
        opacity: 0.72;
    }

    .dl-workspace-switcher.is-open .dl-workspace-dropdown-toggle i::before {
        top: 7px;
        transform: rotate(225deg);
    }

    .dl-workspace-dropdown-menu {
        position: absolute;
        left: 0;
        right: 0;
        top: calc(100% + 7px);
        z-index: 1200;
        display: grid;
        gap: 6px;
        max-height: 236px;
        overflow-y: auto;
        padding: 8px;
        border-radius: 16px;
        background: #ffffff;
        box-shadow: 0 18px 42px rgba(26, 29, 46, 0.18);
    }

    .dl-workspace-dropdown-menu[hidden] {
        display: none;
    }

    .dl-workspace-dropdown-menu button {
        display: grid;
        gap: 2px;
        width: 100%;
        border: 0;
        border-radius: 12px;
        background: transparent;
        color: #1a1d2e;
        padding: 9px 10px;
        text-align: left;
        cursor: pointer;
    }

    .dl-workspace-dropdown-menu button strong {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        font-size: 12px;
        line-height: 1.1;
    }

    .dl-workspace-dropdown-menu button span,
    .dl-workspace-dropdown-empty {
        margin: 0;
        color: #70758a;
        font-size: 10px;
        line-height: 1.25;
    }

    .dl-workspace-dropdown-menu button.is-active,
    .dl-workspace-dropdown-menu button:hover {
        background: rgba(0, 110, 230, 0.09);
        color: #005ac8;
    }

    .dl-client-app:not([data-dl-current-page="dashboard"]) .dl-workspace-dropdown-toggle {
        min-height: 42px;
        background: #ffffff;
        box-shadow: 0 8px 18px rgba(26, 29, 46, 0.065);
    }

    .dl-client-page[data-dl-page="dashboard"] .dl-next-obligation {
        min-height: 118px;
        gap: 6px;
        padding: 14px;
    }

    .dl-client-page[data-dl-page="dashboard"] .dl-next-obligation strong {
        font-size: 13px;
        line-height: 1.25;
    }

    .dl-client-page[data-dl-page="dashboard"] .dl-next-obligation span {
        font-size: 20px;
        line-height: 1.05;
        letter-spacing: -0.03em;
    }

    .dl-client-page[data-dl-page="dashboard"] .dl-next-obligation p {
        font-size: 10.5px;
        line-height: 1.35;
    }
}

@media (max-width: 380px) {
    .dl-client-app[data-dl-current-page="dashboard"] .dl-client-topbar {
        min-height: 250px;
        padding-bottom: 120px;
    }

    .dl-client-page[data-dl-page="dashboard"] .dl-client-stats {
        margin-top: -119px;
        row-gap: 16px;
    }

    .dl-workspace-dropdown-menu {
        max-height: 214px;
    }
}

/* Duitlabs v0.3.15: extra breathing room between workspace dropdown and cashflow card */
@media (max-width: 760px) {
    .dl-client-app[data-dl-current-page="dashboard"] .dl-client-topbar {
        min-height: 272px;
        padding-bottom: 134px;
    }

    .dl-client-page[data-dl-page="dashboard"] .dl-client-stats {
        margin-top: -110px;
        margin-bottom: 16px;
        row-gap: 18px;
    }

    .dl-client-page[data-dl-page="dashboard"] .dl-client-balance {
        margin-top: 0;
    }
}

@media (max-width: 380px) {
    .dl-client-app[data-dl-current-page="dashboard"] .dl-client-topbar {
        min-height: 264px;
        padding-bottom: 128px;
    }

    .dl-client-page[data-dl-page="dashboard"] .dl-client-stats {
        margin-top: -106px;
    }
}


/* Duitlabs v0.3.19: mobile workspace dropdown must reserve space and never overlap cashflow hero */
@media (max-width: 760px) {
    .dl-client-app[data-dl-current-page="dashboard"] .dl-client-topbar-actions {
        align-items: flex-start;
        position: relative;
        z-index: 8;
    }

    .dl-client-app[data-dl-current-page="dashboard"] .dl-workspace-switcher {
        position: relative;
        z-index: 12;
        align-self: flex-start;
    }

    .dl-client-app[data-dl-current-page="dashboard"] .dl-workspace-switcher.is-open {
        z-index: 24;
    }

    .dl-client-app[data-dl-current-page="dashboard"] .dl-workspace-dropdown-toggle {
        position: relative;
        z-index: 2;
        background: #ffffff;
    }

    .dl-client-app[data-dl-current-page="dashboard"] .dl-workspace-dropdown-menu {
        position: static;
        inset: auto;
        width: 100%;
        margin-top: 8px;
        display: grid;
        gap: 6px;
        padding: 8px;
        max-height: 174px;
        overflow-y: auto;
        border: 1px solid rgba(226, 232, 240, 0.92);
        border-radius: 16px;
        background: #ffffff;
        color: #1a1d2e;
        box-shadow: 0 16px 34px rgba(15, 23, 42, 0.18);
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    .dl-client-app[data-dl-current-page="dashboard"] .dl-workspace-dropdown-menu[hidden] {
        display: none;
    }

    .dl-client-app[data-dl-current-page="dashboard"] .dl-workspace-dropdown-menu button {
        min-height: 48px;
        padding: 9px 10px;
        border-radius: 12px;
        background: #ffffff;
    }

    .dl-client-app[data-dl-current-page="dashboard"] .dl-workspace-dropdown-menu button.is-active,
    .dl-client-app[data-dl-current-page="dashboard"] .dl-workspace-dropdown-menu button:hover {
        background: rgba(0, 110, 230, 0.09);
    }

    .dl-client-app[data-dl-current-page="dashboard"].is-workspace-dropdown-open .dl-client-topbar {
        min-height: 372px;
        padding-bottom: 138px;
    }

    .dl-client-app[data-dl-current-page="dashboard"].is-workspace-dropdown-open .dl-client-page[data-dl-page="dashboard"] .dl-client-stats,
    .dl-client-app[data-dl-current-page="dashboard"].is-workspace-dropdown-open + .dl-client-page[data-dl-page="dashboard"] .dl-client-stats {
        margin-top: -106px;
    }

    .dl-client-app[data-dl-current-page="dashboard"].is-workspace-dropdown-open .dl-client-balance {
        margin-top: 4px;
    }
}

@media (max-width: 380px) {
    .dl-client-app[data-dl-current-page="dashboard"] .dl-workspace-dropdown-menu {
        max-height: 158px;
    }

    .dl-client-app[data-dl-current-page="dashboard"].is-workspace-dropdown-open .dl-client-topbar {
        min-height: 356px;
    }
}


/* Duitlabs v0.3.21: stable mobile workspace dropdown grid and contained cashflow hero */
@media (max-width: 760px) {
    /* Keep this patch strictly on the client Dashboard mobile hero. */
    .dl-client-app[data-dl-current-page="dashboard"] .dl-client-topbar {
        min-height: 296px;
        padding-bottom: 152px;
        overflow: visible;
    }

    .dl-client-app[data-dl-current-page="dashboard"] .dl-client-topbar-actions {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        align-items: start;
        margin-top: 18px;
        z-index: 30;
    }

    .dl-client-app[data-dl-current-page="dashboard"] .dl-workspace-switcher {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 48px;
        grid-auto-rows: auto;
        column-gap: 10px;
        row-gap: 10px;
        width: 100%;
        align-items: start;
        overflow: visible;
    }

    .dl-client-app[data-dl-current-page="dashboard"] .dl-workspace-dropdown-toggle {
        grid-column: 1 / 2;
        grid-row: 1;
        min-height: 52px;
        border-radius: 18px;
        padding-left: 16px;
        padding-right: 14px;
        font-size: 15px;
        background: #ffffff;
        box-shadow: 0 12px 26px rgba(0, 55, 132, 0.15);
    }

    .dl-client-app[data-dl-current-page="dashboard"] .dl-workspace-add-button {
        grid-column: 2 / 3;
        grid-row: 1;
        width: 52px;
        min-width: 52px;
        height: 52px;
        border-radius: 18px;
        align-self: start;
    }

    .dl-client-app[data-dl-current-page="dashboard"] .dl-workspace-dropdown-menu {
        grid-column: 1 / 2;
        grid-row: 2;
        position: relative;
        z-index: 40;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        margin-top: 0;
        padding: 9px;
        max-height: 176px;
        overflow-x: hidden;
        overflow-y: auto;
        border-radius: 18px;
        background: #ffffff;
        box-shadow: 0 16px 38px rgba(15, 23, 42, 0.2);
    }

    .dl-client-app[data-dl-current-page="dashboard"] .dl-workspace-dropdown-menu button {
        min-height: 52px;
        padding: 10px 12px;
    }

    .dl-client-app[data-dl-current-page="dashboard"] .dl-workspace-dropdown-menu button strong,
    .dl-client-app[data-dl-current-page="dashboard"] .dl-workspace-dropdown-menu button span {
        display: block;
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    /* Make the cashflow card sit completely inside the blue hero surface. */
    .dl-client-page[data-dl-page="dashboard"] .dl-client-stats {
        margin-top: -142px;
        margin-bottom: 18px;
        row-gap: 20px;
    }

    .dl-client-page[data-dl-page="dashboard"] .dl-client-balance {
        min-height: 116px;
        padding: 18px 18px 15px;
        border-radius: 22px;
        box-shadow: inset 0 1px 0 rgba(255,255,255,0.18), 0 10px 24px rgba(0, 61, 153, 0.12);
    }

    .dl-client-app[data-dl-current-page="dashboard"].is-workspace-dropdown-open .dl-client-topbar {
        min-height: 420px;
        padding-bottom: 164px;
    }

    .dl-client-app[data-dl-current-page="dashboard"].is-workspace-dropdown-open .dl-client-page[data-dl-page="dashboard"] .dl-client-stats {
        margin-top: -142px;
    }
}

@media (max-width: 380px) {
    .dl-client-app[data-dl-current-page="dashboard"] .dl-client-topbar {
        min-height: 286px;
        padding-bottom: 146px;
    }

    .dl-client-app[data-dl-current-page="dashboard"] .dl-workspace-switcher {
        grid-template-columns: minmax(0, 1fr) 46px;
        column-gap: 9px;
    }

    .dl-client-app[data-dl-current-page="dashboard"] .dl-workspace-dropdown-toggle,
    .dl-client-app[data-dl-current-page="dashboard"] .dl-workspace-add-button {
        min-height: 50px;
        height: 50px;
        border-radius: 17px;
    }

    .dl-client-page[data-dl-page="dashboard"] .dl-client-stats {
        margin-top: -136px;
    }

    .dl-client-app[data-dl-current-page="dashboard"].is-workspace-dropdown-open .dl-client-topbar {
        min-height: 402px;
        padding-bottom: 156px;
    }

    .dl-client-app[data-dl-current-page="dashboard"].is-workspace-dropdown-open .dl-client-page[data-dl-page="dashboard"] .dl-client-stats {
        margin-top: -136px;
    }
}


/* Duitlabs v0.3.21: floating mobile workspace dropdown without shifting dashboard cards */
@media (max-width: 760px) {
    /* Keep this correction isolated to the client dashboard mobile hero. */
    .dl-client-app[data-dl-current-page="dashboard"] .dl-client-topbar-actions {
        position: relative;
        z-index: 60;
    }

    .dl-client-app[data-dl-current-page="dashboard"] .dl-workspace-switcher {
        position: relative;
        z-index: 80;
        overflow: visible;
    }

    .dl-client-app[data-dl-current-page="dashboard"] .dl-workspace-switcher.is-open {
        z-index: 120;
    }

    .dl-client-app[data-dl-current-page="dashboard"] .dl-workspace-dropdown-toggle,
    .dl-client-app[data-dl-current-page="dashboard"] .dl-workspace-add-button {
        position: relative;
        z-index: 2;
    }

    .dl-client-app[data-dl-current-page="dashboard"] .dl-workspace-dropdown-menu {
        position: absolute;
        top: calc(100% + 9px);
        left: 0;
        right: 62px;
        z-index: 140;
        width: auto;
        max-width: none;
        min-width: 0;
        margin: 0;
        display: grid;
        gap: 7px;
        padding: 9px;
        max-height: 178px;
        overflow-x: hidden;
        overflow-y: auto;
        border: 1px solid rgba(226, 232, 240, 0.95);
        border-radius: 18px;
        background: #ffffff;
        color: #1a1d2e;
        box-shadow: 0 18px 42px rgba(15, 23, 42, 0.22);
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    .dl-client-app[data-dl-current-page="dashboard"] .dl-workspace-dropdown-menu[hidden] {
        display: none;
    }

    .dl-client-app[data-dl-current-page="dashboard"] .dl-workspace-dropdown-menu button {
        min-height: 52px;
        padding: 10px 12px;
        border-radius: 13px;
        background: #ffffff;
    }

    .dl-client-app[data-dl-current-page="dashboard"] .dl-workspace-dropdown-menu button.is-active,
    .dl-client-app[data-dl-current-page="dashboard"] .dl-workspace-dropdown-menu button:hover {
        background: rgba(0, 110, 230, 0.09);
    }

    /* Dropdown is an overlay again; opening it must not push cashflow/stats cards down. */
    .dl-client-app[data-dl-current-page="dashboard"].is-workspace-dropdown-open .dl-client-topbar {
        min-height: 296px;
        padding-bottom: 152px;
    }

    .dl-client-app[data-dl-current-page="dashboard"].is-workspace-dropdown-open .dl-client-page[data-dl-page="dashboard"] .dl-client-stats {
        margin-top: -142px;
    }

    .dl-client-page[data-dl-page="dashboard"] .dl-client-balance {
        transform: translateZ(0);
    }
}

@media (max-width: 380px) {
    .dl-client-app[data-dl-current-page="dashboard"] .dl-workspace-dropdown-menu {
        right: 59px;
        max-height: 164px;
    }

    .dl-client-app[data-dl-current-page="dashboard"].is-workspace-dropdown-open .dl-client-topbar {
        min-height: 286px;
        padding-bottom: 146px;
    }

    .dl-client-app[data-dl-current-page="dashboard"].is-workspace-dropdown-open .dl-client-page[data-dl-page="dashboard"] .dl-client-stats {
        margin-top: -136px;
    }
}

/* Duitlabs v0.3.22: smoother mobile workspace dropdown micro-interactions */
@media (max-width: 760px) {
    .dl-client-app[data-dl-current-page="dashboard"] .dl-workspace-dropdown-toggle {
        transition: box-shadow 180ms ease, transform 180ms ease, background-color 180ms ease;
        -webkit-tap-highlight-color: transparent;
    }

    .dl-client-app[data-dl-current-page="dashboard"] .dl-workspace-dropdown-toggle:active {
        transform: scale(0.992);
    }

    .dl-client-app[data-dl-current-page="dashboard"] .dl-workspace-dropdown-toggle i::before {
        transition: transform 190ms cubic-bezier(0.2, 0.8, 0.2, 1), top 190ms cubic-bezier(0.2, 0.8, 0.2, 1), opacity 180ms ease;
        transform-origin: center;
    }

    .dl-client-app[data-dl-current-page="dashboard"] .dl-workspace-dropdown-menu {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateY(-8px) scale(0.985);
        transform-origin: top left;
        will-change: opacity, transform;
        transition:
            opacity 180ms cubic-bezier(0.2, 0.8, 0.2, 1),
            transform 180ms cubic-bezier(0.2, 0.8, 0.2, 1),
            visibility 0s linear 180ms;
    }

    .dl-client-app[data-dl-current-page="dashboard"] .dl-workspace-switcher.is-open .dl-workspace-dropdown-menu,
    .dl-client-app[data-dl-current-page="dashboard"] .dl-workspace-switcher.is-closing .dl-workspace-dropdown-menu {
        visibility: visible;
        display: grid;
    }

    .dl-client-app[data-dl-current-page="dashboard"] .dl-workspace-switcher.is-open .dl-workspace-dropdown-menu {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0) scale(1);
        transition-delay: 0s;
    }

    .dl-client-app[data-dl-current-page="dashboard"] .dl-workspace-dropdown-menu button {
        transition: background-color 160ms ease, transform 160ms ease, color 160ms ease;
        -webkit-tap-highlight-color: transparent;
    }

    .dl-client-app[data-dl-current-page="dashboard"] .dl-workspace-dropdown-menu button:active {
        transform: scale(0.985);
    }

    @media (prefers-reduced-motion: reduce) {
        .dl-client-app[data-dl-current-page="dashboard"] .dl-workspace-dropdown-toggle,
        .dl-client-app[data-dl-current-page="dashboard"] .dl-workspace-dropdown-toggle i::before,
        .dl-client-app[data-dl-current-page="dashboard"] .dl-workspace-dropdown-menu,
        .dl-client-app[data-dl-current-page="dashboard"] .dl-workspace-dropdown-menu button {
            transition: none;
        }
    }
}


/* Duitlabs v0.3.23: Smart AI rule-based MVP panel */
.dl-smart-ai-prompts {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.dl-smart-ai-prompts button {
    border: 1px solid #dbe4f5;
    border-radius: 999px;
    background: #ffffff;
    color: #4b4fd8;
    padding: 9px 12px;
    font-size: 12px;
    font-weight: 900;
    cursor: pointer;
    transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.dl-smart-ai-prompts button:hover,
.dl-smart-ai-prompts button:focus-visible {
    background: #eef5ff;
    box-shadow: 0 10px 24px rgba(0, 110, 230, 0.12);
    transform: translateY(-1px);
}

.dl-ai-message strong {
    display: block;
    margin-bottom: 5px;
    color: #0f172a;
    font-weight: 950;
}

.dl-ai-message p {
    margin: 0;
}

.dl-ai-message ul {
    margin: 9px 0 0 18px;
    padding: 0;
}

.dl-ai-message li {
    margin: 4px 0;
}

.dl-ai-message small {
    display: inline-flex;
    margin-top: 10px;
    color: #7a8295;
    font-size: 11px;
    font-weight: 800;
}

.dl-smart-ai-input button:disabled {
    cursor: wait;
    opacity: 0.7;
}

@media (max-width: 760px) {
    .dl-smart-ai-prompts {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 2px;
        -webkit-overflow-scrolling: touch;
    }

    .dl-smart-ai-prompts button {
        flex: 0 0 auto;
        white-space: nowrap;
    }
}

/* Duitlabs v0.3.26: Smart AI clarification flow and smoother thinking state */
.dl-smart-ai-prompts {
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 4px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.dl-smart-ai-prompts::-webkit-scrollbar {
    display: none;
}

.dl-smart-ai-prompts button {
    flex: 0 0 auto;
    white-space: nowrap;
}

.dl-ai-message.is-typing {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #5b6476;
    font-weight: 800;
}

.dl-ai-message.is-typing span {
    display: inline-flex;
    margin-right: 2px;
}

.dl-ai-message.is-typing i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #7b7ff0;
    opacity: 0.35;
    animation: dl-ai-typing-dot 1.05s ease-in-out infinite;
}

.dl-ai-message.is-typing i:nth-child(3) {
    animation-delay: 0.14s;
}

.dl-ai-message.is-typing i:nth-child(4) {
    animation-delay: 0.28s;
}

@keyframes dl-ai-typing-dot {
    0%, 80%, 100% {
        opacity: 0.35;
        transform: translateY(0);
    }
    40% {
        opacity: 1;
        transform: translateY(-3px);
    }
}

.dl-ai-clarification-options {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    margin-top: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 4px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.dl-ai-clarification-options::-webkit-scrollbar {
    display: none;
}

.dl-ai-clarification-options button {
    flex: 0 0 auto;
    border: 1px solid #dbe4f5;
    border-radius: 999px;
    background: #eef5ff;
    color: #454095;
    padding: 8px 11px;
    font-size: 12px;
    font-weight: 900;
    cursor: pointer;
    transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.dl-ai-clarification-options button:hover,
.dl-ai-clarification-options button:focus-visible {
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(0, 110, 230, 0.12);
    transform: translateY(-1px);
}

@media (prefers-reduced-motion: reduce) {
    .dl-ai-message.is-typing i {
        animation: none;
    }
}

/* Duitlabs v0.3.26: Smart AI financial briefing/recap and mobile panel visibility fix */
.dl-ai-message small::before {
    content: "";
}

@media (max-width: 760px) {
    .dl-client-modal[data-dl-smart-ai-panel] {
        z-index: 1300;
        align-items: flex-end;
        justify-content: center;
        place-items: initial;
        padding: 10px 12px max(92px, calc(84px + env(safe-area-inset-bottom)));
        overflow: hidden;
    }

    .dl-client-modal[data-dl-smart-ai-panel].is-open {
        display: flex;
    }

    .dl-client-modal[data-dl-smart-ai-panel] .dl-smart-ai-panel {
        width: min(100%, 540px);
        max-height: min(78dvh, calc(100dvh - 118px));
        margin: 0 auto;
        display: flex;
        flex-direction: column;
        gap: 10px;
        padding: 14px;
        border-radius: 24px;
        transform: translateY(0);
    }

    .dl-client-modal[data-dl-smart-ai-panel] .dl-client-panel-head {
        flex: 0 0 auto;
        margin-bottom: 0;
    }

    .dl-client-modal[data-dl-smart-ai-panel] .dl-smart-ai-thread {
        flex: 1 1 auto;
        min-height: 210px;
        max-height: none;
        padding: 10px;
        border-radius: 18px;
        overscroll-behavior: contain;
    }

    .dl-client-modal[data-dl-smart-ai-panel] .dl-ai-message {
        max-width: 94%;
        padding: 10px 12px;
        font-size: 12.5px;
        line-height: 1.45;
        border-radius: 15px;
    }

    .dl-client-modal[data-dl-smart-ai-panel] .dl-smart-ai-prompts {
        flex: 0 0 auto;
        margin-top: 0;
        padding-bottom: 3px;
    }

    .dl-client-modal[data-dl-smart-ai-panel] .dl-smart-ai-input {
        flex: 0 0 auto;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 8px;
        margin-top: 0;
        padding-top: 0;
        background: #ffffff;
    }

    .dl-client-modal[data-dl-smart-ai-panel] .dl-smart-ai-input input {
        min-height: 42px;
        border-radius: 14px;
        font-size: 13px;
    }

    .dl-client-modal[data-dl-smart-ai-panel] .dl-smart-ai-input button {
        min-height: 42px;
        border-radius: 14px;
        padding-inline: 14px;
        font-size: 12px;
    }
}

@supports not (height: 100dvh) {
    @media (max-width: 760px) {
        .dl-client-modal[data-dl-smart-ai-panel] .dl-smart-ai-panel {
            max-height: calc(100vh - 118px);
        }
    }
}

/* Duitlabs v0.3.27: Smart AI reminder layer action buttons */
.dl-ai-action-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.dl-ai-action-options button {
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, #2563eb 0%, #6d5efc 100%);
    color: #ffffff;
    padding: 9px 13px;
    font-size: 12px;
    font-weight: 950;
    cursor: pointer;
    box-shadow: 0 14px 28px rgba(37, 99, 235, 0.18);
    transition: transform 160ms ease, box-shadow 160ms ease, opacity 160ms ease;
}

.dl-ai-action-options button:hover,
.dl-ai-action-options button:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 18px 32px rgba(37, 99, 235, 0.24);
}

.dl-ai-action-options button:disabled {
    cursor: wait;
    opacity: 0.72;
    transform: none;
}

@media (max-width: 760px) {
    .dl-ai-action-options {
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        padding-bottom: 4px;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .dl-ai-action-options::-webkit-scrollbar {
        display: none;
    }

    .dl-ai-action-options button {
        flex: 0 0 auto;
        white-space: nowrap;
        padding: 8px 12px;
        font-size: 11.5px;
    }
}

/* Duitlabs v0.3.28: Smart AI optional provider adapter admin page */


/* Duitlabs v0.3.29: Hide Smart AI internal engine/cost metadata from client chat. */
.dl-smart-ai-panel .dl-ai-message small { display: none !important; }

/* Duitlabs v0.3.30: Landing page pricing early-access copy polish. */

/* Duitlabs v0.3.31: Pinjaman page for hutang and piutang. */
.dl-rail-loan { --dl-icon-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='%23000' d='M7 3h10a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2Zm0 2v14h10V5H7Zm2 3h6v2H9V8Zm0 4h6v2H9v-2Zm0 4h4v2H9v-2Z'/%3E%3C/svg%3E"); }
.dl-shortcut-loan::before {
    content: "";
    display: block;
    width: 20px;
    height: 20px;
    background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='%23000' d='M7 3h10a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2Zm0 2v14h10V5H7Zm2 3h6v2H9V8Zm0 4h6v2H9v-2Zm0 4h4v2H9v-2Z'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='%23000' d='M7 3h10a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2Zm0 2v14h10V5H7Zm2 3h6v2H9V8Zm0 4h6v2H9v-2Zm0 4h4v2H9v-2Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.dl-loan-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
    gap: 14px;
    margin-bottom: 14px;
}

.dl-loan-info-card,
.dl-loan-meter-card {
    border: 0;
    border-radius: 14px;
    background: #ffffff;
    padding: 18px;
    box-shadow: none;
}

.dl-loan-info-card {
    min-height: 190px;
    background:
        radial-gradient(circle at 88% 16%, rgba(0, 194, 184, 0.24), transparent 24%),
        linear-gradient(135deg, #006ee6, #5b5fc7);
    color: #ffffff;
}

.dl-loan-info-card span,
.dl-loan-info-card p {
    color: rgba(255, 255, 255, 0.84);
}

.dl-loan-info-card span,
.dl-loan-meter-card span,
.dl-loan-summary-row span {
    font-size: 12px;
    font-weight: 950;
}

.dl-loan-info-card h2 {
    max-width: 620px;
    margin: 10px 0 12px;
    color: #ffffff;
    font-size: clamp(28px, 4vw, 46px);
    line-height: 1;
    letter-spacing: 0;
}

.dl-loan-info-card p,
.dl-loan-meter-card p {
    margin: 0;
    font-size: 13px;
    line-height: 1.45;
}

.dl-loan-meter-card {
    display: grid;
    align-content: center;
    gap: 12px;
}

.dl-loan-meter-card span,
.dl-loan-summary-row span {
    color: #5b5fc7;
}

.dl-loan-meter-card strong {
    color: #1a1d2e;
    font-size: clamp(24px, 3vw, 34px);
    line-height: 1;
}

.dl-loan-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.dl-loan-card .dl-client-panel-head {
    align-items: start;
}

.dl-loan-summary-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin: 4px 0 14px;
}

.dl-loan-summary-row > div {
    border: 1px solid #f1f1f8;
    border-radius: 14px;
    padding: 10px;
    background: #fbfcff;
}

.dl-loan-summary-row strong {
    display: block;
    margin-top: 3px;
    color: #1a1d2e;
    font-size: 13px;
    line-height: 1.2;
}

.dl-loan-item {
    align-items: flex-start;
}

.dl-loan-item-main {
    display: grid;
    min-width: 0;
    gap: 4px;
}

.dl-loan-item-main small {
    color: #8e94a6;
    font-size: 11px;
    font-weight: 800;
}

.dl-loan-progress {
    width: min(240px, 100%);
    height: 7px;
    overflow: hidden;
    border-radius: 999px;
    background: #eef1f7;
}

.dl-loan-progress i {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #006ee6, #00c2b8);
}

.dl-loan-item-actions {
    display: grid !important;
    justify-items: end;
    gap: 4px;
    min-width: 128px;
    text-align: right;
}

.dl-loan-item-actions > strong {
    color: #1a1d2e;
    font-size: 13px;
}

.dl-loan-item-actions > span {
    color: #8e94a6;
    font-size: 11px;
    font-weight: 900;
}

.dl-loan-status {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    border-radius: 999px;
    padding: 0 9px;
    font-size: 11px;
    font-style: normal;
    font-weight: 950;
}

.dl-loan-status.is-paid {
    background: #e7f8f4;
    color: #008775;
}

.dl-loan-status.is-open {
    background: #fff3d9;
    color: #a76700;
}

textarea.dl-input {
    min-height: 82px;
    resize: vertical;
    line-height: 1.45;
}

@media (max-width: 1100px) {
    .dl-loan-grid,
    .dl-loan-hero {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .dl-loan-hero {
        gap: 10px;
        margin-bottom: 10px;
    }

    .dl-loan-info-card,
    .dl-loan-meter-card {
        padding: 14px;
        border-radius: 20px;
    }

    .dl-loan-info-card {
        min-height: 0;
    }

    .dl-loan-info-card h2 {
        font-size: 24px;
        line-height: 1.02;
    }

    .dl-loan-grid {
        gap: 10px;
    }

    .dl-loan-summary-row {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .dl-loan-item {
        display: grid;
        gap: 10px;
    }

    .dl-loan-item-actions {
        width: 100%;
        justify-items: start;
        text-align: left;
    }

    .dl-loan-item-actions > div {
        justify-content: flex-start;
    }
}


/* Duitlabs v0.3.32: Aset page for workspace asset tracking. */
.dl-rail-asset { --dl-icon-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='%23000' d='M12 2 3 6.5v11L12 22l9-4.5v-11L12 2Zm0 2.24 5.85 2.93L12 10.1 6.15 7.17 12 4.24ZM5 8.78l6 3v7.48l-6-3V8.78Zm14 7.48-6 3v-7.48l6-3v7.48Z'/%3E%3C/svg%3E"); }
.dl-shortcut-asset::before {
    content: "";
    display: block;
    width: 20px;
    height: 20px;
    background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='%23000' d='M12 2 3 6.5v11L12 22l9-4.5v-11L12 2Zm0 2.24 5.85 2.93L12 10.1 6.15 7.17 12 4.24ZM5 8.78l6 3v7.48l-6-3V8.78Zm14 7.48-6 3v-7.48l6-3v7.48Z'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='%23000' d='M12 2 3 6.5v11L12 22l9-4.5v-11L12 2Zm0 2.24 5.85 2.93L12 10.1 6.15 7.17 12 4.24ZM5 8.78l6 3v7.48l-6-3V8.78Zm14 7.48-6 3v-7.48l6-3v7.48Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.dl-asset-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
    gap: 14px;
    margin-bottom: 14px;
}

.dl-asset-info-card,
.dl-asset-meter-card {
    border: 0;
    border-radius: 14px;
    background: #ffffff;
    padding: 18px;
    box-shadow: none;
}

.dl-asset-info-card {
    min-height: 190px;
    background:
        radial-gradient(circle at 88% 16%, rgba(241, 190, 78, 0.26), transparent 24%),
        linear-gradient(135deg, #006ee6, #5b5fc7);
    color: #ffffff;
}

.dl-asset-info-card span,
.dl-asset-info-card p {
    color: rgba(255, 255, 255, 0.84);
}

.dl-asset-info-card span,
.dl-asset-meter-card span,
.dl-asset-summary-row span {
    font-size: 12px;
    font-weight: 950;
}

.dl-asset-info-card h2 {
    max-width: 620px;
    margin: 10px 0 12px;
    color: #ffffff;
    font-size: clamp(28px, 4vw, 46px);
    line-height: 1;
    letter-spacing: 0;
}

.dl-asset-info-card p,
.dl-asset-meter-card p {
    margin: 0;
    font-size: 13px;
    line-height: 1.45;
}

.dl-asset-meter-card {
    display: grid;
    align-content: center;
    gap: 12px;
}

.dl-asset-meter-card span,
.dl-asset-summary-row span {
    color: #5b5fc7;
}

.dl-asset-meter-card strong {
    color: #1a1d2e;
    font-size: clamp(24px, 3vw, 34px);
    line-height: 1;
}

.dl-asset-summary-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    margin: 4px 0 14px;
}

.dl-asset-summary-row > div {
    border: 1px solid #f1f1f8;
    border-radius: 14px;
    padding: 10px;
    background: #fbfcff;
}

.dl-asset-summary-row strong {
    display: block;
    margin-top: 3px;
    color: #1a1d2e;
    font-size: 13px;
    line-height: 1.2;
}

.dl-asset-item {
    align-items: flex-start;
}

.dl-asset-item-main {
    display: grid;
    min-width: 0;
    gap: 4px;
}

.dl-asset-item-main small {
    color: #8e94a6;
    font-size: 11px;
    font-weight: 800;
}

.dl-asset-progress {
    width: min(240px, 100%);
    height: 7px;
    overflow: hidden;
    border-radius: 999px;
    background: #eef1f7;
}

.dl-asset-progress i {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #f1be4e, #f37479);
}

.dl-asset-item-actions {
    display: grid !important;
    justify-items: end;
    gap: 4px;
    min-width: 128px;
    text-align: right;
}

.dl-asset-item-actions > strong {
    color: #1a1d2e;
    font-size: 13px;
}

.dl-asset-item-actions > span {
    color: #8e94a6;
    font-size: 11px;
    font-weight: 900;
}

.dl-asset-status {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    border-radius: 999px;
    padding: 0 9px;
    background: #eef7ff;
    color: #006ee6;
    font-size: 11px;
    font-style: normal;
    font-weight: 950;
}

.dl-label small {
    color: #8e94a6;
    font-size: 10px;
    font-weight: 800;
}

@media (max-width: 1100px) {
    .dl-asset-hero {
        grid-template-columns: 1fr;
    }

    .dl-asset-summary-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .dl-asset-hero {
        gap: 10px;
        margin-bottom: 10px;
    }

    .dl-asset-info-card,
    .dl-asset-meter-card {
        padding: 14px;
        border-radius: 20px;
    }

    .dl-asset-info-card {
        min-height: 0;
    }

    .dl-asset-info-card h2 {
        font-size: 24px;
        line-height: 1.02;
    }

    .dl-asset-summary-row {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .dl-asset-item {
        display: grid;
        gap: 10px;
    }

    .dl-asset-item-actions {
        width: 100%;
        justify-items: start;
        text-align: left;
    }

    .dl-asset-item-actions > div {
        justify-content: flex-start;
    }
}


/* Duitlabs v0.3.33: mobile dashboard compact polish, horizontal quick access, compact lists */
@media (max-width: 760px) {
    /* Scope is intentionally limited to client dashboard mobile. */
    .dl-client-app[data-dl-current-page="dashboard"] .dl-client-topbar {
        min-height: 270px;
        padding: 16px 14px 140px;
        gap: 8px;
    }

    .dl-client-app[data-dl-current-page="dashboard"] .dl-client-topbar-actions {
        margin-top: 12px;
        gap: 8px;
    }

    .dl-client-app[data-dl-current-page="dashboard"] .dl-workspace-switcher {
        grid-template-columns: minmax(0, 1fr) 44px;
        column-gap: 9px;
        row-gap: 0;
    }

    .dl-client-app[data-dl-current-page="dashboard"] .dl-workspace-dropdown-toggle {
        min-height: 44px;
        height: 44px;
        border-radius: 15px;
        padding: 0 13px 0 14px;
        font-size: 13px;
        line-height: 1;
        box-shadow: 0 10px 22px rgba(0, 55, 132, 0.13);
    }

    .dl-client-app[data-dl-current-page="dashboard"] .dl-workspace-add-button {
        width: 44px;
        min-width: 44px;
        height: 44px;
        min-height: 44px;
        border-radius: 15px;
        font-size: 18px;
        box-shadow: 0 10px 22px rgba(0, 55, 132, 0.13);
    }

    .dl-client-app[data-dl-current-page="dashboard"] .dl-workspace-dropdown-menu {
        top: calc(100% + 7px);
        right: 53px;
        padding: 8px;
        max-height: 172px;
        border-radius: 15px;
    }

    .dl-client-app[data-dl-current-page="dashboard"] .dl-workspace-dropdown-menu button {
        min-height: 44px;
        padding: 8px 10px;
        border-radius: 11px;
    }

    .dl-client-app[data-dl-current-page="dashboard"] .dl-workspace-dropdown-menu button strong {
        font-size: 11.5px;
    }

    .dl-client-app[data-dl-current-page="dashboard"] .dl-workspace-dropdown-menu button span,
    .dl-client-app[data-dl-current-page="dashboard"] .dl-workspace-dropdown-empty {
        font-size: 9.5px;
    }

    .dl-client-page[data-dl-page="dashboard"] .dl-client-stats {
        gap: 12px;
        row-gap: 14px;
        margin: -128px 14px 14px;
    }

    .dl-client-page[data-dl-page="dashboard"] .dl-client-balance {
        min-height: 108px;
        padding: 16px 17px 14px;
        border-radius: 21px;
    }

    .dl-client-page[data-dl-page="dashboard"] .dl-client-balance .dl-stat-icon {
        width: 34px;
        height: 34px;
        border-radius: 13px;
    }

    .dl-client-page[data-dl-page="dashboard"] .dl-client-balance p {
        margin-bottom: 5px;
        font-size: 9.5px;
    }

    .dl-client-page[data-dl-page="dashboard"] .dl-client-balance strong {
        font-size: clamp(25px, 7.8vw, 33px);
    }

    .dl-client-page[data-dl-page="dashboard"] .dl-client-balance > span:last-child {
        min-height: 22px;
        margin-top: 7px;
        padding: 0 10px;
        font-size: 9.8px;
    }

    .dl-client-page[data-dl-page="dashboard"] .dl-client-stat {
        min-height: 96px;
        padding: 14px;
        border-radius: 20px;
    }

    .dl-client-page[data-dl-page="dashboard"] .dl-client-stat .dl-stat-icon {
        width: 34px;
        height: 34px;
        border-radius: 13px;
    }

    .dl-client-page[data-dl-page="dashboard"] .dl-client-stat p {
        font-size: 11px;
        line-height: 1.2;
    }

    .dl-client-page[data-dl-page="dashboard"] .dl-client-stat strong {
        font-size: clamp(18px, 5.4vw, 22px);
    }

    .dl-client-page[data-dl-page="dashboard"] .dl-mobile-shortcut-card {
        margin: 0 14px 14px;
        padding: 16px 12px 12px;
        border-radius: 22px;
    }

    .dl-client-page[data-dl-page="dashboard"] .dl-mobile-shortcut-card .dl-client-panel-head {
        margin-bottom: 10px;
        padding: 0 2px;
    }

    .dl-client-page[data-dl-page="dashboard"] .dl-mobile-shortcut-list {
        display: flex !important;
        grid-template-columns: none !important;
        flex-wrap: nowrap;
        gap: 14px;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x proximity;
        padding: 0 2px 5px;
        margin: 0 -2px;
    }

    .dl-client-page[data-dl-page="dashboard"] .dl-mobile-shortcut-list::-webkit-scrollbar {
        display: none;
    }

    .dl-client-page[data-dl-page="dashboard"] .dl-mobile-shortcut-list button {
        flex: 0 0 72px;
        min-width: 72px;
        max-width: 72px;
        padding: 5px 2px 2px;
        gap: 7px;
        scroll-snap-align: start;
    }

    .dl-client-page[data-dl-page="dashboard"] .dl-shortcut-icon {
        width: 50px;
        height: 50px;
        border-radius: 19px;
        box-shadow: 0 12px 22px rgba(0, 110, 230, 0.2);
    }

    .dl-client-page[data-dl-page="dashboard"] .dl-mobile-shortcut-list strong {
        font-size: 10px;
        line-height: 1.2;
        white-space: nowrap;
    }

    .dl-client-page[data-dl-page="dashboard"] .dl-insight-feature-panel,
    .dl-client-page[data-dl-page="dashboard"] .dl-client-grid,
    .dl-client-page[data-dl-page="dashboard"] .dl-annual-report-panel,
    .dl-client-page[data-dl-page="dashboard"] .dl-dashboard-action-grid {
        margin-left: 14px;
        margin-right: 14px;
        margin-bottom: 14px;
    }

    .dl-client-page[data-dl-page="dashboard"] .dl-client-grid {
        gap: 12px;
    }

    .dl-client-page[data-dl-page="dashboard"] .dl-client-grid .dl-client-panel,
    .dl-client-page[data-dl-page="dashboard"] .dl-client-panel {
        border-radius: 22px;
        padding: 16px;
    }

    .dl-client-page[data-dl-page="dashboard"] .dl-client-panel-head {
        gap: 10px;
        margin-bottom: 10px;
    }

    .dl-client-page[data-dl-page="dashboard"] .dl-client-panel-head h2,
    .dl-client-page[data-dl-page="dashboard"] .dl-client-panel h2,
    .dl-client-page[data-dl-page="dashboard"] .dl-transactions-panel .dl-client-panel-head h2 {
        font-size: clamp(18px, 5.2vw, 24px);
        line-height: 1.08;
        letter-spacing: -0.035em;
    }

    .dl-client-page[data-dl-page="dashboard"] .dl-client-panel-head button {
        min-height: 32px;
        padding: 0 12px;
        border-radius: 12px;
        font-size: 10.5px;
    }

    .dl-client-page[data-dl-page="dashboard"] .dl-transaction-list {
        gap: 0;
        min-height: 0;
    }

    .dl-client-page[data-dl-page="dashboard"] .dl-list-item {
        grid-template-columns: 32px minmax(0, 1fr) auto;
        gap: 8px;
        min-height: 48px;
        padding: 6px 0;
    }

    .dl-client-page[data-dl-page="dashboard"] .dl-transaction-icon {
        width: 28px;
        height: 28px;
        border-radius: 10px;
    }

    .dl-client-page[data-dl-page="dashboard"] .dl-transaction-icon::before {
        width: 11px;
        height: 11px;
        border-radius: 3px;
    }

    .dl-client-page[data-dl-page="dashboard"] .dl-transaction-title {
        font-size: 11.2px;
        line-height: 1.2;
    }

    .dl-client-page[data-dl-page="dashboard"] .dl-transaction-date {
        font-size: 9.4px;
        line-height: 1.25;
    }

    .dl-client-page[data-dl-page="dashboard"] .dl-transaction-amount {
        font-size: 10.4px;
        line-height: 1.2;
    }

    .dl-client-page[data-dl-page="dashboard"] .dl-transaction-actions {
        gap: 4px;
        margin-top: 5px;
    }

    .dl-client-page[data-dl-page="dashboard"] .dl-transaction-actions button {
        min-height: 24px;
        padding: 0 8px;
        font-size: 9px;
        border-radius: 8px;
    }

    .dl-client-page[data-dl-page="dashboard"] .dl-next-obligation-card .dl-client-panel-head button {
        min-height: 32px;
        padding: 0 12px;
        border-radius: 12px;
        font-size: 10.5px;
    }

    .dl-client-page[data-dl-page="dashboard"] .dl-next-obligation {
        min-height: 96px;
        gap: 5px;
        padding: 13px;
        border-radius: 16px;
    }

    .dl-client-page[data-dl-page="dashboard"] .dl-next-obligation strong {
        font-size: 12px;
        line-height: 1.25;
    }

    .dl-client-page[data-dl-page="dashboard"] .dl-next-obligation span {
        font-size: 18px;
        line-height: 1.05;
        letter-spacing: -0.025em;
    }

    .dl-client-page[data-dl-page="dashboard"] .dl-next-obligation p,
    .dl-client-page[data-dl-page="dashboard"] .dl-next-obligation .dl-client-muted {
        font-size: 10px;
        line-height: 1.3;
    }
}

@media (max-width: 380px) {
    .dl-client-app[data-dl-current-page="dashboard"] .dl-client-topbar {
        min-height: 260px;
        padding-bottom: 134px;
    }

    .dl-client-app[data-dl-current-page="dashboard"] .dl-workspace-switcher {
        grid-template-columns: minmax(0, 1fr) 42px;
        column-gap: 8px;
    }

    .dl-client-app[data-dl-current-page="dashboard"] .dl-workspace-dropdown-toggle,
    .dl-client-app[data-dl-current-page="dashboard"] .dl-workspace-add-button {
        height: 42px;
        min-height: 42px;
        border-radius: 14px;
    }

    .dl-client-app[data-dl-current-page="dashboard"] .dl-workspace-dropdown-menu {
        right: 50px;
    }

    .dl-client-page[data-dl-page="dashboard"] .dl-client-stats {
        margin-top: -122px;
    }
}


/* Duitlabs v0.3.34: mobile safe spacing for non-dashboard client pages */
@media (max-width: 760px) {
    /* Keep the dashboard fintech hero untouched; only normalize content pages that looked edge-to-edge. */
    .dl-client-page[data-dl-page="budget"],
    .dl-client-page[data-dl-page="debt"],
    .dl-client-page[data-dl-page="loans"],
    .dl-client-page[data-dl-page="assets"],
    .dl-client-page[data-dl-page="settings"],
    .dl-client-page[data-dl-page="account"] {
        padding-left: 16px;
        padding-right: 16px;
    }

    .dl-client-page[data-dl-page="budget"] .dl-budget-hero,
    .dl-client-page[data-dl-page="debt"] .dl-obligation-hero,
    .dl-client-page[data-dl-page="loans"] .dl-loan-hero,
    .dl-client-page[data-dl-page="assets"] .dl-asset-hero,
    .dl-client-page[data-dl-page="settings"] .dl-settings-hero,
    .dl-client-page[data-dl-page="account"] .dl-account-layout {
        margin-left: 0;
        margin-right: 0;
        gap: 12px;
        margin-top: 14px;
        margin-bottom: 12px;
    }

    .dl-client-page[data-dl-page="budget"] > .dl-client-panel,
    .dl-client-page[data-dl-page="debt"] > .dl-client-panel,
    .dl-client-page[data-dl-page="loans"] > .dl-client-panel,
    .dl-client-page[data-dl-page="loans"] > .dl-loan-grid,
    .dl-client-page[data-dl-page="assets"] > .dl-client-panel,
    .dl-client-page[data-dl-page="settings"] > .dl-client-panel,
    .dl-client-page[data-dl-page="settings"] > .dl-family-collaboration-panel,
    .dl-client-page[data-dl-page="account"] > .dl-client-panel {
        margin-left: 0;
        margin-right: 0;
    }

    .dl-client-page[data-dl-page="budget"] .dl-budget-info-card,
    .dl-client-page[data-dl-page="budget"] .dl-budget-meter-card,
    .dl-client-page[data-dl-page="debt"] .dl-obligation-info-card,
    .dl-client-page[data-dl-page="debt"] .dl-obligation-meter-card,
    .dl-client-page[data-dl-page="loans"] .dl-loan-info-card,
    .dl-client-page[data-dl-page="loans"] .dl-loan-meter-card,
    .dl-client-page[data-dl-page="assets"] .dl-asset-info-card,
    .dl-client-page[data-dl-page="assets"] .dl-asset-meter-card,
    .dl-client-page[data-dl-page="settings"] .dl-settings-info-card,
    .dl-client-page[data-dl-page="settings"] .dl-settings-guide-card,
    .dl-client-page[data-dl-page="account"] .dl-account-profile-card,
    .dl-client-page[data-dl-page="account"] .dl-account-plan-card,
    .dl-client-page[data-dl-page="account"] .dl-account-actions-card,
    .dl-client-page[data-dl-page="budget"] > .dl-client-panel,
    .dl-client-page[data-dl-page="debt"] > .dl-client-panel,
    .dl-client-page[data-dl-page="loans"] .dl-client-panel,
    .dl-client-page[data-dl-page="assets"] .dl-client-panel,
    .dl-client-page[data-dl-page="settings"] > .dl-client-panel,
    .dl-client-page[data-dl-page="settings"] .dl-family-collaboration-panel {
        border-radius: 22px;
    }

    .dl-client-page[data-dl-page="budget"] .dl-client-panel-head,
    .dl-client-page[data-dl-page="debt"] .dl-client-panel-head,
    .dl-client-page[data-dl-page="loans"] .dl-client-panel-head,
    .dl-client-page[data-dl-page="assets"] .dl-client-panel-head,
    .dl-client-page[data-dl-page="settings"] .dl-client-panel-head,
    .dl-client-page[data-dl-page="account"] .dl-client-panel-head {
        gap: 10px;
    }

    .dl-client-page[data-dl-page="debt"] .dl-settings-item,
    .dl-client-page[data-dl-page="loans"] .dl-settings-item,
    .dl-client-page[data-dl-page="assets"] .dl-settings-item,
    .dl-client-page[data-dl-page="settings"] .dl-settings-item {
        border-radius: 16px;
    }
}

@media (max-width: 380px) {
    .dl-client-page[data-dl-page="budget"],
    .dl-client-page[data-dl-page="debt"],
    .dl-client-page[data-dl-page="loans"],
    .dl-client-page[data-dl-page="assets"],
    .dl-client-page[data-dl-page="settings"],
    .dl-client-page[data-dl-page="account"] {
        padding-left: 14px;
        padding-right: 14px;
    }
}


/* Duitlabs v0.3.35: mobile landing checkout polish */
@media (max-width: 640px) {
  body:not(.duitlabs-app-page) .price-card.smart .recommended {
    position: static;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: max-content;
    max-width: 100%;
    margin: 0 0 12px;
    padding: 7px 10px;
    font-size: .7rem;
    line-height: 1.15;
    white-space: normal;
  }

  body:not(.duitlabs-app-page) .price-card.smart .plan-title {
    margin-top: 0;
    padding-right: 0;
  }
}
