body.page-dashboard {
    --brand: #5547ed;
    --brand-dark: #4638dc;
    --dashboard-ink: var(--os-color-ink);
    --dashboard-muted: #8b93a7;
    --dashboard-line: var(--os-color-border);
    --dashboard-canvas: var(--os-color-canvas);
    background: var(--dashboard-canvas);
}

.page-dashboard .app-content { background: var(--dashboard-canvas); }
.page-dashboard .topbar { height: 72px; padding: 0 34px; border-bottom-color: var(--dashboard-line); background: rgba(255, 255, 255, .94); }
.page-dashboard .global-search-form { margin-right: auto; margin-left: 14px; }
.page-dashboard .search { width: min(360px, 34vw); border-color: var(--os-color-border); border-radius: 12px; background: #f8f9fb; color: var(--dashboard-ink); }
.page-dashboard .avatar { background: #5547ed; color: #fff; }
.page-dashboard .logout-btn { color: #7e8699; }

.main.main-dashboard { width: 100%; max-width: 1660px; min-height: 100dvh; padding: clamp(30px, 3.4vw, 56px) clamp(24px, 4vw, 68px) 60px; }
.dashboard-v2 { width: 100%; margin: 0 auto; color: var(--dashboard-ink); }

.dashboard-hero { display: flex; align-items: center; justify-content: space-between; gap: 28px; margin-bottom: 34px; }
.dashboard-date { display: block; margin-bottom: 15px; color: #5b50ec; font-size: 12px; font-weight: 850; letter-spacing: .16em; text-transform: uppercase; }
.dashboard-hero h1 { margin: 0; color: var(--dashboard-ink); font-size: clamp(34px, 3vw, 48px); font-weight: 820; letter-spacing: -.055em; line-height: 1.02; }
.dashboard-hero p { margin: 13px 0 0; color: var(--dashboard-muted); font-size: 16px; }
.dashboard-primary-action { min-height: 58px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 0 25px; border-radius: 16px; background: #5547ed; color: #fff; font-weight: 780; transition: background .15s ease, transform .15s ease; }
.dashboard-primary-action:hover { background: #4638dc; transform: translateY(-1px); }

.dashboard-trial-warning { min-height: 104px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 18px; margin: -8px 0 24px; padding: 19px 22px; border: 1px solid #f1c777; border-radius: 19px; background: #fffaf0; }
.dashboard-trial-warning > span { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; background: #ffedc8; color: #b7640d; font-size: 17px; }
.dashboard-trial-warning > div { min-width: 0; }
.dashboard-trial-warning small, .dashboard-trial-warning strong { display: block; }
.dashboard-trial-warning small { margin-bottom: 2px; color: #a75b0f; font-size: 10px; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.dashboard-trial-warning strong { color: var(--dashboard-ink); font-size: 17px; letter-spacing: -.02em; }
.dashboard-trial-warning p { margin: 4px 0 0; color: #7c654b; font-size: 12px; line-height: 1.55; }
.dashboard-trial-warning > a { min-height: 42px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 15px; border-radius: 12px; background: #fff; color: #8f4e0c; font-size: 11px; font-weight: 800; box-shadow: inset 0 0 0 1px #eac179; }
.dashboard-trial-warning > a:hover { color: #6f3905; transform: translateY(-1px); }

.dashboard-metric-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-bottom: 22px; }
.dashboard-metric-card { min-height: 118px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 18px; padding: 22px 28px; border: 1px solid var(--dashboard-line); border-radius: 20px; background: var(--os-color-surface); transition: border-color .15s ease, transform .15s ease; }
.dashboard-metric-card:hover { border-color: #c9c7f8; transform: translateY(-1px); }
.dashboard-metric-icon { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 15px; font-size: 18px; }
.metric-violet { background: #eeeaff; color: #6a55f4; }
.metric-green { background: #e4f8ef; color: #1aa779; }
.metric-orange { background: #fff1df; color: #ed7e1e; }
.dashboard-metric-card strong, .dashboard-metric-card small { display: block; }
.dashboard-metric-card strong { margin-bottom: 2px; color: var(--dashboard-ink); font-size: 30px; font-weight: 800; letter-spacing: -.035em; line-height: 1.1; }
.dashboard-metric-card small { color: #9aa1b2; font-size: 13px; }
.dashboard-metric-card .metric-arrow { color: #c1c6d1; font-size: 11px; }

.dashboard-workspace-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(360px, .78fr); gap: 22px; align-items: stretch; }
.dashboard-panel, .dashboard-week-panel { border: 1px solid var(--dashboard-line); border-radius: 22px; background: var(--os-color-surface); }
.dashboard-panel { overflow: hidden; }
.dashboard-panel-header { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 20px 28px; border-bottom: 1px solid var(--os-color-border); }
.dashboard-panel-header h2, .dashboard-panel-header p { margin: 0; }
.dashboard-panel-header h2 { font-size: 18px; letter-spacing: -.02em; }
.dashboard-panel-header p { margin-top: 4px; color: #9aa1b2; font-size: 12px; }
.dashboard-panel-header > a, .dashboard-panel-header > span { color: #6256ec; font-size: 12px; font-weight: 720; }
.dashboard-panel-header > a i { margin-left: 5px; font-size: 10px; }

.dashboard-appointment-list { padding: 4px 28px; }
.dashboard-appointment-row { min-height: 104px; display: grid; grid-template-columns: 64px 5px minmax(0, 1fr) auto 12px; align-items: center; gap: 18px; border-bottom: 1px solid var(--os-color-border); }
.dashboard-appointment-row:last-child { border-bottom: 0; }
.dashboard-appointment-row:hover .dashboard-appointment-main strong { color: #5547ed; }
.dashboard-appointment-row time { color: #584cf0; font-size: 15px; font-weight: 800; }
.dashboard-appointment-color { width: 5px; height: 48px; border-radius: 999px; background: var(--appointment-color); }
.dashboard-appointment-main { min-width: 0; }
.dashboard-appointment-main strong, .dashboard-appointment-main small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dashboard-appointment-main strong { color: var(--dashboard-ink); font-size: 15px; transition: color .15s ease; }
.dashboard-appointment-main small { margin-top: 7px; color: #a0a7b7; font-size: 12px; }
.dashboard-status { display: inline-flex; align-items: center; justify-content: center; min-height: 30px; padding: 0 11px; border-radius: 999px; font-size: 10px; font-weight: 800; }
.status-confirmed, .status-completed { background: #e4f8eb; color: #26955a; }
.status-planned { background: #eeedff; color: #6256ec; }
.status-warning { background: #fff1df; color: #dc751d; }
.appointment-arrow { color: #c5cad4; font-size: 10px; }
.dashboard-day-footer { min-height: 62px; display: flex; align-items: center; gap: 28px; padding: 16px 28px; border-top: 1px solid var(--os-color-border); background: #fbfbfd; color: #9aa1b2; font-size: 11px; }
.dashboard-day-footer strong { margin-right: 3px; color: #596175; font-size: 13px; }
.dashboard-empty-day { min-height: 290px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-content: center; align-items: center; gap: 16px; padding: 40px; }
.dashboard-empty-day > span { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 15px; background: #f0eeff; color: #6256ec; }
.dashboard-empty-day strong { font-size: 16px; }
.dashboard-empty-day p { margin: 3px 0 0; color: #969eaf; font-size: 12px; }
.dashboard-empty-day > a { color: #5547ed; font-size: 12px; font-weight: 780; }

.dashboard-side-panel { display: flex; min-width: 0; flex-direction: column; }
.dashboard-action-list { display: grid; gap: 10px; padding: 18px 22px 10px; }
.dashboard-action-list > a { min-height: 74px; display: grid; grid-template-columns: 44px minmax(0, 1fr) 18px; align-items: center; gap: 13px; padding: 10px 14px; border-radius: 15px; background: #f6f6ff; }
.dashboard-action-list > a:nth-child(2) { background: #f1fbf6; }
.dashboard-action-list > a:nth-child(3) { background: #fff8ef; }
.dashboard-action-list > a > span:first-child { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 13px; color: #fff; font-size: 15px; }
.dashboard-action-list .action-violet { background: #584aed; }
.dashboard-action-list .action-green { background: #1db384; }
.dashboard-action-list .action-orange { background: #f19a3e; }
.dashboard-action-list strong, .dashboard-action-list small { display: block; }
.dashboard-action-list strong { font-size: 13px; }
.dashboard-action-list small { margin-top: 3px; color: #969eaf; font-size: 11px; }
.dashboard-action-list > a > i { color: #7f8799; font-size: 11px; transition: transform .15s ease; }
.dashboard-action-list > a:hover > i { transform: translateX(3px); }

.dashboard-chart { margin: 10px 22px 0; padding: 20px 4px 16px; border-top: 1px solid var(--os-color-border); }
.dashboard-chart-heading { display: flex; align-items: baseline; justify-content: space-between; padding: 0 6px; }
.dashboard-chart-heading span { color: #747d91; font-size: 11px; font-weight: 720; }
.dashboard-chart-heading strong { font-size: 16px; }
.dashboard-bars { height: 116px; display: grid; grid-template-columns: repeat(7, 1fr); align-items: end; gap: 9px; margin-top: 12px; }
.dashboard-bar-column { height: 100%; display: grid; grid-template-rows: minmax(0, 1fr) auto; justify-items: center; gap: 7px; }
.dashboard-bar-column > span { width: 100%; height: 100%; display: flex; align-items: flex-end; justify-content: center; }
.dashboard-bar-column i { width: min(25px, 70%); min-height: 8px; display: block; border-radius: 7px 7px 2px 2px; background: linear-gradient(180deg, #6c63f4, #d9d7ff); }
.dashboard-bar-column small { color: #a6adbc; font-size: 9px; }

.dashboard-focus { margin-top: auto; border-top: 1px solid var(--os-color-border); }
.dashboard-focus--top { margin-top: 0; border-top: 0; border-bottom: 1px solid var(--os-color-border); background: #fbfbfe; }
.dashboard-focus--top > header { padding-top: 19px; }
.dashboard-focus--top .dashboard-focus-list { max-height: 246px; }
.dashboard-focus > header { display: flex; align-items: center; justify-content: space-between; padding: 15px 22px 8px; }
.dashboard-focus h3 { margin: 0; font-size: 13px; }
.dashboard-focus > header span { min-width: 23px; height: 23px; display: grid; place-items: center; border-radius: 999px; background: #fff0dd; color: #dc751d; font-size: 10px; font-weight: 800; }
.dashboard-focus-list { max-height: 180px; overflow: auto; padding: 0 14px 12px; }
.dashboard-focus-list a { display: grid; grid-template-columns: 28px minmax(0, 1fr) 10px; align-items: center; gap: 10px; padding: 9px 8px; border-radius: 11px; }
.dashboard-focus-list a:hover { background: #faf9ff; }
.dashboard-focus-list a > span:first-child { width: 25px; height: 25px; display: grid; place-items: center; border-radius: 9px; background: #fff2e2; color: #dc751d; font-size: 11px; font-weight: 850; }
.dashboard-focus-list .focus-opportunity > span:first-child { background: #eeebff; color: #5d4df0; }
.dashboard-focus-list .focus-credit > span:first-child { background: #fff0d7; color: #c86a14; }
.dashboard-focus-list strong, .dashboard-focus-list small { display: block; }
.dashboard-focus-list strong { overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.dashboard-focus-list small { margin-top: 1px; color: #6256ec; font-size: 9px; }
.dashboard-focus-list a > i { color: #bec3ce; font-size: 8px; }
.dashboard-focus-clear { display: flex; align-items: center; gap: 11px; padding: 12px 22px 20px; color: #239864; }
.dashboard-focus-clear > i { font-size: 21px; }
.dashboard-focus-clear strong, .dashboard-focus-clear small { display: block; }
.dashboard-focus-clear strong { color: var(--dashboard-ink); font-size: 11px; }
.dashboard-focus-clear small { color: #969eaf; font-size: 9px; }

.dashboard-week-panel { margin-top: 22px; overflow: hidden; }
.dashboard-week-panel > header { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 26px; border-bottom: 1px solid var(--os-color-border); }
.dashboard-week-panel h2, .dashboard-week-panel p { margin: 0; }
.dashboard-week-panel h2 { font-size: 17px; }
.dashboard-week-panel p { margin-top: 3px; color: #9aa1b2; font-size: 11px; }
.dashboard-week-panel > header a { color: #5547ed; font-size: 11px; font-weight: 760; }
.dashboard-week-panel > div { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.dashboard-week-panel article { min-width: 0; display: grid; gap: 4px; padding: 21px 26px; border-right: 1px solid var(--os-color-border); }
.dashboard-week-panel article:last-child { border-right: 0; }
.dashboard-week-panel article span, .dashboard-week-panel article small { color: #969eaf; font-size: 10px; }
.dashboard-week-panel article strong { overflow: hidden; font-size: 22px; text-overflow: ellipsis; white-space: nowrap; }
.dashboard-week-panel article .dashboard-popular-service { font-size: 15px; }

@media (max-width: 1280px) {
    .main.main-dashboard { padding-right: 32px; padding-left: 32px; }
    .dashboard-workspace-grid { grid-template-columns: minmax(0, 1.3fr) minmax(330px, .8fr); }
    .dashboard-metric-card { padding: 20px; }
}

@media (min-width: 981px) and (max-width: 1180px) {
    .dashboard-metric-card { min-height: 108px; grid-template-columns: auto minmax(0, 1fr); gap: 12px; padding: 16px; }
    .dashboard-metric-icon { width: 44px; height: 44px; border-radius: 13px; }
    .dashboard-metric-card strong { font-size: 25px; }
    .dashboard-metric-card small { font-size: 11px; line-height: 1.35; }
    .dashboard-metric-card .metric-arrow { display: none; }
}

@media (max-width: 1100px) {
    .dashboard-workspace-grid { grid-template-columns: 1fr; }
    .dashboard-side-panel { display: grid; grid-template-columns: minmax(300px, .75fr) minmax(0, 1fr); align-items: start; }
    .dashboard-side-panel > .dashboard-panel-header { grid-column: 1 / -1; }
    .dashboard-chart { align-self: stretch; margin-top: 18px; border-top: 0; border-left: 1px solid var(--os-color-border); }
    .dashboard-focus { grid-column: 1 / -1; }
}

@media (max-width: 980px) {
    .page-dashboard .app-shell { grid-template-columns: 1fr; }
    .page-dashboard .topbar { height: calc(var(--mobile-app-topbar) + env(safe-area-inset-top)); padding-right: max(16px, env(safe-area-inset-right)); padding-left: max(16px, env(safe-area-inset-left)); }
    .main.main-dashboard { min-height: 0; padding: 28px 24px 44px; }
    .dashboard-hero h1 { font-size: 36px; }
}

@media (max-width: 760px) {
    .dashboard-hero { align-items: stretch; flex-direction: column; margin-bottom: 24px; }
    .dashboard-date { margin-bottom: 9px; font-size: 10px; }
    .dashboard-hero h1 { font-size: 32px; }
    .dashboard-hero p { margin-top: 9px; font-size: 14px; }
    .dashboard-primary-action { min-height: 52px; align-self: flex-start; }
    .dashboard-trial-warning { grid-template-columns: auto minmax(0, 1fr); margin-top: 0; padding: 17px; }
    .dashboard-trial-warning > a { grid-column: 2; justify-self: start; }
    .dashboard-metric-grid { grid-template-columns: 1fr; gap: 10px; }
    .dashboard-metric-card { min-height: 88px; padding: 15px 18px; border-radius: 16px; }
    .dashboard-metric-icon { width: 46px; height: 46px; }
    .dashboard-metric-card strong { font-size: 24px; }
    .dashboard-side-panel { display: block; }
    .dashboard-chart { margin-top: 10px; border-top: 1px solid var(--os-color-border); border-left: 0; }
    .dashboard-focus { margin-top: 0; }
    .dashboard-week-panel > div { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .dashboard-week-panel article:nth-child(2) { border-right: 0; }
    .dashboard-week-panel article:nth-child(-n+2) { border-bottom: 1px solid var(--os-color-border); }
}

@media (max-width: 560px) {
    .main.main-dashboard { padding: 22px 14px 36px; }
    .dashboard-trial-warning { grid-template-columns: 1fr; }
    .dashboard-trial-warning > span { width: 42px; height: 42px; }
    .dashboard-trial-warning > a { width: 100%; grid-column: 1; }
    .dashboard-primary-action { width: 100%; }
    .dashboard-panel, .dashboard-week-panel { border-radius: 17px; }
    .dashboard-panel-header { min-height: 70px; padding: 16px 18px; }
    .dashboard-panel-header p { display: none; }
    .dashboard-appointment-list { padding: 0 16px; }
    .dashboard-appointment-row { min-height: 88px; grid-template-columns: 50px 4px minmax(0, 1fr) 10px; gap: 11px; }
    .dashboard-appointment-row .dashboard-status { display: none; }
    .dashboard-appointment-color { height: 40px; }
    .dashboard-appointment-main small { margin-top: 4px; }
    .dashboard-day-footer { flex-wrap: wrap; gap: 8px 16px; padding: 12px 16px; }
    .dashboard-empty-day { min-height: 220px; grid-template-columns: auto 1fr; padding: 26px 20px; }
    .dashboard-empty-day > a { grid-column: 2; }
    .dashboard-action-list { padding: 14px; }
    .dashboard-week-panel > header { padding: 17px 18px; }
    .dashboard-week-panel > header a { display: none; }
    .dashboard-week-panel article { padding: 17px; }
    .dashboard-week-panel article strong { font-size: 19px; }
}

/* Compact daily dashboard */
.dashboard-workspace-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.72fr) minmax(380px, .96fr);
    gap: 20px;
    align-items: stretch;
}

.dashboard-panel {
    overflow: hidden;
    border: 1px solid var(--dashboard-line);
    border-radius: 18px;
    background: var(--os-color-surface);
    box-shadow: 0 8px 28px rgba(39, 42, 68, .035);
}

.dashboard-day-panel {
    min-width: 0;
    min-height: 650px;
    display: flex;
    flex-direction: column;
}

.dashboard-panel-header {
    min-height: 98px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 19px 26px;
    border-bottom: 1px solid var(--dashboard-line);
}

.dashboard-panel-heading {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 15px;
}

.dashboard-panel-heading h2,
.dashboard-panel-heading p {
    margin: 0;
}

.dashboard-panel-heading h2 {
    color: var(--dashboard-ink);
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -.025em;
}

.dashboard-panel-heading p {
    margin-top: 4px;
    color: var(--dashboard-muted);
    font-size: 13px;
}

.dashboard-section-icon {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    flex: 0 0 54px;
    border-radius: 16px;
    font-size: 19px;
}

.dashboard-section-icon--violet {
    background: color-mix(in srgb, #6657f5 11%, var(--os-color-surface));
    color: #5a4df0;
}

.dashboard-section-icon--orange {
    background: color-mix(in srgb, #f38a24 12%, var(--os-color-surface));
    color: #ee7a13;
}

.dashboard-view-all {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex: 0 0 auto;
    padding: 0 17px;
    border-radius: 999px;
    background: color-mix(in srgb, #6657f5 8%, var(--os-color-surface));
    color: #5a4df0;
    font-size: 12px;
    font-weight: 800;
    transition: background .16s ease, transform .16s ease;
}

.dashboard-view-all:hover {
    background: color-mix(in srgb, #6657f5 14%, var(--os-color-surface));
    transform: translateY(-1px);
}

.dashboard-view-all i {
    font-size: 11px;
}

.dashboard-day-body {
    position: relative;
    min-height: 450px;
    flex: 1;
    overflow: hidden;
}

.dashboard-day-body.has-appointments .dashboard-time-grid {
    display: none;
}

.dashboard-day-body.has-appointments .dashboard-appointment-list {
    padding-left: 26px;
}

.dashboard-time-grid {
    position: absolute;
    inset: 21px 27px 18px;
    display: grid;
    grid-template-rows: repeat(10, minmax(0, 1fr));
    pointer-events: none;
}

.dashboard-time-grid > span {
    min-height: 0;
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    align-items: start;
    gap: 11px;
}

.dashboard-time-grid time {
    color: color-mix(in srgb, var(--dashboard-muted) 82%, transparent);
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
}

.dashboard-time-grid i {
    display: block;
    margin-top: 4px;
    border-top: 1px dashed color-mix(in srgb, var(--dashboard-line) 84%, transparent);
}

.dashboard-empty-day {
    position: relative;
    z-index: 1;
    min-height: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 0;
    padding: 48px 76px;
    text-align: center;
}

.dashboard-empty-day > span {
    width: 76px;
    height: 76px;
    display: grid;
    place-items: center;
    margin-bottom: 20px;
    border-radius: 24px;
    background: color-mix(in srgb, #78829b 9%, var(--os-color-surface));
    color: #77819a;
    font-size: 29px;
}

.dashboard-empty-day strong {
    color: var(--dashboard-ink);
    font-size: 22px;
    font-weight: 820;
    letter-spacing: -.035em;
}

.dashboard-empty-day p {
    margin: 8px 0 18px;
    color: var(--dashboard-muted);
    font-size: 14px;
}

.dashboard-empty-day > a {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 0 21px;
    border-radius: 10px;
    background: #5847f5;
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    transition: background .16s ease, transform .16s ease;
}

.dashboard-empty-day > a:hover {
    background: #4938e8;
    transform: translateY(-1px);
}

.dashboard-appointment-list {
    position: relative;
    z-index: 1;
    display: grid;
    align-content: start;
    gap: 0;
    padding: 0 26px;
}

.dashboard-appointment-row {
    min-height: 116px;
    display: grid;
    grid-template-columns: 78px 5px minmax(0, 1fr) auto 12px;
    align-items: center;
    gap: 18px;
    padding: 18px 8px;
    border: 0;
    border-bottom: 1px solid var(--dashboard-line);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    transition: background .16s ease;
}

.dashboard-appointment-row:hover {
    background: color-mix(in srgb, #6657f5 3%, var(--os-color-surface));
}

.dashboard-appointment-row time {
    color: #584cf0;
    font-size: 18px;
    font-weight: 820;
}

.dashboard-appointment-row .dashboard-appointment-color {
    width: 5px;
    height: 64px;
}

.dashboard-appointment-row .dashboard-appointment-main strong {
    font-size: 18px;
    font-weight: 800;
}

.dashboard-appointment-row .dashboard-appointment-main small {
    margin-top: 7px;
    font-size: 14px;
}

.dashboard-appointment-row .dashboard-status {
    min-height: 38px;
    padding: 0 16px;
    font-size: 11px;
}

.dashboard-day-footer {
    min-height: 88px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    padding: 0;
    border-top: 1px solid var(--dashboard-line);
    background: var(--os-color-surface);
}

.dashboard-day-footer > span {
    min-width: 0;
    display: flex;
    justify-content: center;
    flex-direction: column;
    gap: 2px;
    padding: 16px 25px;
    border-right: 1px solid var(--dashboard-line);
}

.dashboard-day-footer > span:last-child {
    border-right: 0;
}

.dashboard-day-footer strong,
.dashboard-day-footer small {
    display: block;
    margin: 0;
}

.dashboard-day-footer strong {
    color: var(--dashboard-ink);
    font-size: 20px;
    font-weight: 820;
}

.dashboard-day-footer small {
    overflow: hidden;
    color: var(--dashboard-muted);
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dashboard-side-stack {
    min-width: 0;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    gap: 20px;
}

.dashboard-focus,
.dashboard-focus--top {
    min-height: 0;
    margin: 0;
    border: 1px solid var(--dashboard-line);
    background: var(--os-color-surface);
}

.dashboard-focus--top > header {
    min-height: 82px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 14px 20px;
    border-bottom: 0;
}

.dashboard-focus--top > header h2 {
    margin: 0;
}

.dashboard-focus-count {
    min-width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    padding: 0 11px;
    border-radius: 13px;
    background: color-mix(in srgb, #f38a24 11%, var(--os-color-surface));
    color: #e87813;
    font-size: 13px;
    font-weight: 850;
}

.dashboard-focus--top .dashboard-focus-list {
    max-height: 350px;
    overflow: auto;
    padding: 0 15px 16px;
}

.dashboard-focus-list a {
    min-height: 55px;
    display: grid;
    grid-template-columns: 35px minmax(0, 1fr) 10px;
    align-items: center;
    gap: 11px;
    padding: 7px 8px;
    border-radius: 10px;
}

.dashboard-focus-list a:hover {
    background: color-mix(in srgb, #6657f5 4%, var(--os-color-surface));
}

.dashboard-focus-list a > span:first-child {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    background: color-mix(in srgb, #f38a24 11%, var(--os-color-surface));
    color: #e87813;
    font-size: 12px;
}

.dashboard-focus-list .focus-opportunity > span:first-child {
    background: color-mix(in srgb, #6657f5 11%, var(--os-color-surface));
    color: #5d4df0;
}

.dashboard-focus-list strong,
.dashboard-focus-list small {
    display: block;
}

.dashboard-focus-list strong {
    overflow: hidden;
    color: var(--dashboard-ink);
    font-size: 12px;
    font-weight: 770;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dashboard-focus-list small {
    margin-top: 2px;
    color: #6256ec;
    font-size: 10px;
    font-weight: 650;
}

.dashboard-focus-list a > i {
    color: color-mix(in srgb, var(--dashboard-muted) 70%, transparent);
    font-size: 9px;
}

.dashboard-focus-clear {
    min-height: 120px;
    justify-content: center;
    padding: 20px;
}

.dashboard-quick-panel .dashboard-panel-header {
    min-height: 82px;
    padding: 14px 20px;
}

.dashboard-quick-panel .dashboard-section-icon {
    width: 48px;
    height: 48px;
    flex-basis: 48px;
    border-radius: 15px;
}

.dashboard-quick-panel .dashboard-panel-header > span {
    color: #5c4ff0;
    font-size: 11px;
    font-weight: 800;
}

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

.dashboard-action-grid > a {
    position: relative;
    min-width: 0;
    min-height: 96px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 10px;
    grid-template-rows: auto auto;
    align-content: center;
    align-items: center;
    gap: 9px 7px;
    padding: 12px 13px;
    border: 1px solid var(--dashboard-line);
    border-radius: 13px;
    background: color-mix(in srgb, #6657f5 4%, var(--os-color-surface));
    color: var(--dashboard-ink);
    transition: border-color .16s ease, background .16s ease, transform .16s ease;
}

.dashboard-action-grid > a:hover {
    border-color: color-mix(in srgb, #6657f5 38%, var(--dashboard-line));
    background: color-mix(in srgb, #6657f5 7%, var(--os-color-surface));
    transform: translateY(-1px);
}

.dashboard-action-grid > a > span {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: color-mix(in srgb, #6657f5 11%, var(--os-color-surface));
    color: #5a4df0;
    font-size: 14px;
}

.dashboard-action-grid strong {
    grid-column: 1 / -1;
    color: var(--dashboard-ink);
    font-size: 11px;
    font-weight: 780;
    line-height: 1.35;
    white-space: nowrap;
}

.dashboard-action-grid > a > i {
    position: static;
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    color: color-mix(in srgb, var(--dashboard-muted) 70%, transparent);
    font-size: 9px;
}

@media (max-width: 1280px) {
    .dashboard-workspace-grid {
        grid-template-columns: minmax(0, 1.45fr) minmax(350px, .92fr);
    }

    .dashboard-action-grid {
        grid-template-columns: repeat(3, minmax(90px, 1fr));
    }
}

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

    .dashboard-day-panel {
        min-height: 600px;
    }

    .dashboard-side-stack {
        grid-template-columns: minmax(0, 1fr) minmax(420px, 1fr);
        grid-template-rows: none;
        align-items: stretch;
    }
}

@media (max-width: 760px) {
    .dashboard-panel-header,
    .dashboard-quick-panel .dashboard-panel-header {
        min-height: 78px;
        padding: 13px 16px;
    }

    .dashboard-section-icon {
        width: 46px;
        height: 46px;
        flex-basis: 46px;
        border-radius: 14px;
    }

    .dashboard-panel-heading h2 {
        font-size: 17px;
    }

    .dashboard-view-all {
        min-height: 38px;
        padding: 0 13px;
    }

    .dashboard-day-panel {
        min-height: 540px;
    }

    .dashboard-day-body,
    .dashboard-empty-day {
        min-height: 380px;
    }

    .dashboard-time-grid {
        right: 16px;
        left: 16px;
    }

    .dashboard-appointment-list {
        padding: 0 16px;
    }

    .dashboard-day-body.has-appointments .dashboard-appointment-list {
        padding-left: 16px;
    }

    .dashboard-side-stack {
        display: grid;
        grid-template-columns: 1fr;
    }

    .dashboard-action-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .dashboard-panel-heading {
        gap: 11px;
    }

    .dashboard-panel-heading p {
        display: none;
    }

    .dashboard-view-all {
        font-size: 0;
    }

    .dashboard-view-all i {
        margin: 0;
        font-size: 11px;
    }

    .dashboard-day-panel {
        min-height: 500px;
    }

    .dashboard-day-body,
    .dashboard-empty-day {
        min-height: 345px;
    }

    .dashboard-empty-day {
        padding: 40px 24px;
    }

    .dashboard-empty-day > span {
        width: 66px;
        height: 66px;
        margin-bottom: 16px;
        border-radius: 20px;
        font-size: 24px;
    }

    .dashboard-empty-day strong {
        font-size: 19px;
    }

    .dashboard-time-grid > span {
        grid-template-columns: 46px minmax(0, 1fr);
        gap: 7px;
    }

    .dashboard-appointment-list {
        padding-left: 15px;
    }

    .dashboard-appointment-row {
        grid-template-columns: 45px 4px minmax(0, 1fr) 9px;
        gap: 9px;
        min-height: 92px;
        padding: 12px 4px;
    }

    .dashboard-appointment-row time {
        font-size: 14px;
    }

    .dashboard-appointment-row .dashboard-appointment-color {
        height: 48px;
    }

    .dashboard-appointment-row .dashboard-appointment-main strong {
        font-size: 15px;
    }

    .dashboard-appointment-row .dashboard-appointment-main small {
        font-size: 12px;
    }

    .dashboard-day-footer > span {
        padding: 13px 10px;
    }

    .dashboard-day-footer strong {
        font-size: 17px;
    }

    .dashboard-day-footer small {
        font-size: 10px;
    }

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

    .dashboard-action-grid > a {
        min-height: 66px;
        display: grid;
        grid-template-columns: 24px minmax(0, 1fr) 10px;
        align-items: center;
        gap: 11px;
        padding: 10px 13px;
    }

    .dashboard-action-grid > a > span {
        width: 24px;
        height: 24px;
        border-radius: 7px;
        font-size: 11px;
    }

    .dashboard-action-grid strong {
        grid-column: 2;
        grid-row: 1;
        white-space: normal;
    }

    .dashboard-action-grid > a > i {
        grid-column: 3;
        grid-row: 1;
    }

}

/* Dashboardoverzicht gebaseerd op de compacte commerciële Sovado-presentatie. */
.page-company-app.page-dashboard .main.main-dashboard {
    --dashboard-page-gutter: clamp(24px, 3vw, 46px);
    max-width: 1560px;
    padding: 0 var(--dashboard-page-gutter) 42px;
}

.page-dashboard .dashboard-v2 {
    font-family: "DM Sans", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.dashboard-toolbar {
    min-height: 68px;
    position: relative;
    z-index: 75;
    display: grid;
    grid-template-columns: minmax(280px, 750px) auto;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    margin: 0;
    padding: 8px clamp(18px, 2.2vw, 34px);
    border-bottom: 1px solid #e9eaf1;
    background: #fff;
}
.dashboard-toolbar-without-search { grid-template-columns: auto; justify-content: end; }

.dashboard-search {
    width: 100%;
    min-height: 46px;
    position: relative;
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 0 15px;
    border: 1px solid #e7e9f1;
    border-radius: 11px;
    background: color-mix(in srgb, var(--os-color-surface) 90%, #f4f6fb);
    color: #78839c;
}

.dashboard-search > i { font-size: 15px; }
.dashboard-search input { min-width: 0; border: 0; outline: 0; background: transparent; color: var(--dashboard-ink); font: inherit; font-size: 13px; }
.dashboard-search input::placeholder { color: #9ba4b7; }
.dashboard-search kbd { min-width: 36px; padding: 4px 6px; border: 0; border-radius: 6px; background: #f3f4f8; color: #78839c; font: 600 10px/1 "DM Sans", sans-serif; text-align: center; }
.dashboard-search:focus-within { border-color: #beb7fb; box-shadow: 0 0 0 3px rgba(85, 71, 237, .08); }
.dashboard-search.is-open,
.dashboard-search.is-open:focus-within {
    border-color: #beb7fb;
    border-bottom-color: transparent;
    border-radius: 11px 11px 0 0;
    background: #fff;
    box-shadow: none;
}

.dashboard-search-popdown {
    position: absolute;
    top: calc(100% - 1px);
    right: -1px;
    left: -1px;
    z-index: 80;
    overflow: hidden;
    border: 1px solid #e3e5ee;
    border-top: 0;
    border-radius: 0 0 11px 11px;
    background: #fff;
    box-shadow: 0 14px 34px rgba(28, 33, 58, .10);
}
.dashboard-search.is-open .dashboard-search-popdown { border-color: #beb7fb; }
.dashboard-search-popdown[hidden] { display: none; }
.dashboard-search-popdown-head { min-height: 42px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 6px 10px 6px 15px; border-bottom: 1px solid #eceef4; }
.dashboard-search-popdown-head strong { color: #596276; font-size: 12px; font-weight: 680; }
.dashboard-search-popdown-head button { width: 32px; height: 32px; display: grid; flex: 0 0 32px; place-items: center; border: 0; border-radius: 8px; background: transparent; color: #8b94a6; cursor: pointer; box-shadow: none; }
.dashboard-search-popdown-head button:hover,
.dashboard-search-popdown-head button:focus-visible { outline: 0; background: #f2f0ff; color: #5848e9; }
.dashboard-search-results { max-height: min(510px, calc(100vh - 170px)); overflow-y: auto; overscroll-behavior: contain; padding: 7px; }
.dashboard-search-group + .dashboard-search-group { margin-top: 5px; padding-top: 6px; border-top: 1px solid #f0f1f5; }
.dashboard-search-group-label { min-height: 30px; display: flex; align-items: center; justify-content: space-between; padding: 3px 9px; color: #8a93a6; }
.dashboard-search-group-label > span { font-size: 11px; font-weight: 800; letter-spacing: .055em; text-transform: uppercase; }
.dashboard-search-group-label > small { min-width: 22px; padding: 3px 6px; border-radius: 999px; background: #f1efff; color: #6251ed; font-size: 10px; font-weight: 750; text-align: center; }
.dashboard-search-result { min-height: 62px; display: grid; grid-template-columns: 40px minmax(0, 1fr) 18px; align-items: center; gap: 11px; padding: 8px 10px; border-radius: 10px; color: #273047; }
.dashboard-search-result:hover,
.dashboard-search-result.is-active { background: #f3f1ff; color: #4f40df; }
.dashboard-search-result-icon { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 11px; background: #f1efff; color: #6251ed; font-size: 14px; }
.dashboard-search-result-body { min-width: 0; display: grid; gap: 3px; }
.dashboard-search-result-path { min-width: 0; display: flex; align-items: center; gap: 7px; white-space: nowrap; }
.dashboard-search-result-path > span { flex: 0 0 auto; color: #7f899f; font-size: 12px; font-weight: 650; }
.dashboard-search-result-path > i { flex: 0 0 auto; color: #b0b6c5; font-size: 8px; }
.dashboard-search-result-path > strong { min-width: 0; overflow: hidden; color: #252c40; font-size: 13px; font-weight: 750; text-overflow: ellipsis; }
.dashboard-search-result-body > small { overflow: hidden; color: #8a93a6; font-size: 11px; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.dashboard-search-result-arrow { color: #a5adbd; font-size: 10px; }
.dashboard-search-result:hover .dashboard-search-result-path > strong,
.dashboard-search-result.is-active .dashboard-search-result-path > strong,
.dashboard-search-result:hover .dashboard-search-result-arrow,
.dashboard-search-result.is-active .dashboard-search-result-arrow { color: #4f40df; }
.dashboard-search-state { min-height: 82px; display: flex; align-items: center; justify-content: flex-start; gap: 12px; padding: 16px 20px; color: #7f899e; text-align: left; }
.dashboard-search-state > span:first-child { width: 36px; height: 36px; display: grid; flex: 0 0 36px; place-items: center; border-radius: 10px; background: #f2f0ff; color: #6654ef; }
.dashboard-search-state strong,
.dashboard-search-state small { display: block; }
.dashboard-search-state strong { color: #343b50; font-size: 13px; }
.dashboard-search-state small { max-width: 620px; font-size: 12px; line-height: 1.45; }
.dashboard-search-popdown-help { min-height: 38px; display: flex; align-items: center; gap: 16px; padding: 7px 16px; border-top: 1px solid #eceef4; background: #fafbfc; color: #929aad; font-size: 10px; font-weight: 650; }

.dashboard-toolbar-actions { display: flex; align-items: center; gap: 0; }
.dashboard-theme-toggle {
    width: 42px;
    height: 42px;
    display: grid;
    flex: 0 0 42px;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #77829a;
    font: inherit;
    font-size: 16px;
    cursor: pointer;
}
.dashboard-theme-toggle:hover { background: transparent; color: var(--os-color-accent-text, #5948ef); }
.dashboard-theme-toggle:focus-visible { outline: 3px solid rgba(85, 71, 237, .18); outline-offset: 2px; }
.dashboard-theme-toggle:disabled { opacity: .55; cursor: wait; }
.dashboard-theme-toggle > span[aria-hidden="true"] { grid-area: 1 / 1; display: grid; place-items: center; }
.dashboard-theme-toggle-sun { visibility: hidden; }
html[data-theme="dark"] .dashboard-theme-toggle-moon { visibility: hidden; }
html[data-theme="dark"] .dashboard-theme-toggle-sun { visibility: visible; }
.dashboard-notification-link { position: relative; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; color: #77829a; font-size: 16px; }
.dashboard-notification-link:hover { background: transparent; color: var(--os-color-accent-text, #5948ef); }
.dashboard-notification-link > [data-notifications-dot] { position: absolute; top: 4px; right: 4px; width: 11px; height: 11px; border: 2px solid var(--os-color-surface); border-radius: 50%; background: #f04438; }

.dashboard-company-menu {
    position: relative;
    flex: 0 0 42px;
    min-width: 42px;
    margin-inline-start: 14px;
}
.dashboard-noah-toggle { flex: 0 0 42px; margin-inline-start: 8px; }
.dashboard-noah-toggle:not([hidden]) + .dashboard-company-menu { margin-inline-start: 8px; }

.dashboard-company-switcher {
    width: 42px;
    height: 42px;
    min-width: 42px;
    min-height: 42px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
    list-style: none;
    transition: background .16s ease;
}

.dashboard-company-switcher::-webkit-details-marker { display: none; }
.dashboard-company-switcher:hover { background: color-mix(in srgb, #6657f5 5%, var(--os-color-surface)); }
.dashboard-company-switcher:focus-visible { outline: 3px solid rgba(85, 71, 237, .18); outline-offset: 2px; }
.dashboard-company-avatar { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--os-color-primary-border); border-radius: 50%; background: var(--os-color-selected); color: var(--os-color-accent-text); font-size: 15px; font-weight: 700; transition: background .16s ease, border-color .16s ease; }
.dashboard-company-switcher:hover .dashboard-company-avatar,
.dashboard-company-menu[open] .dashboard-company-avatar { border-color: var(--os-color-accent-text); background: var(--os-color-primary-soft); }

.dashboard-company-menu-panel {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 70;
    width: min(220px, calc(100vw - 28px));
    max-height: calc(100vh - 96px);
    overflow: auto;
    padding: 6px;
    border: 1px solid var(--os-color-border);
    border-radius: 12px;
    background: var(--os-color-surface);
    box-shadow: 0 16px 40px rgba(30, 35, 61, .12);
}

.dashboard-company-menu-panel nav { display: grid; gap: 2px; }
.dashboard-company-menu-panel nav > a {
    min-height: 40px;
    display: flex;
    align-items: center;
    padding: 9px 12px;
    border-radius: 7px;
    color: var(--os-color-ink);
    text-decoration: none;
    white-space: nowrap;
}
.dashboard-company-menu-panel nav > a:hover,
.dashboard-company-menu-panel nav > a:focus-visible { outline: 0; background: var(--os-color-selected); color: var(--os-color-accent-text); }
.dashboard-company-menu-panel nav strong { overflow: hidden; font-size: 13px; font-weight: 550; text-overflow: ellipsis; }
.dashboard-company-menu-logout { margin: 5px 0 0; padding-top: 5px; border-top: 1px solid var(--os-color-border); }
.dashboard-company-menu-logout button { width: 100%; min-height: 40px; display: flex; align-items: center; gap: 9px; padding: 9px 12px; border: 0; border-radius: 7px; background: transparent; color: var(--os-color-danger, #c6424d); font: inherit; font-size: 13px; font-weight: 550; cursor: pointer; box-shadow: none; }
.dashboard-company-menu-logout button:hover,
.dashboard-company-menu-logout button:focus-visible { outline: 0; background: #fff2f3; }

.page-dashboard .dashboard-hero { min-height: 0; align-items: flex-start; margin-bottom: 14px; padding: 10px 0 12px; }
.page-dashboard .dashboard-date { margin-bottom: 9px; font-size: 10px; font-weight: 800; }
.page-dashboard .dashboard-hero h1 { font-size: clamp(36px, 3.2vw, 48px); font-weight: 700; letter-spacing: -.055em; }
.page-dashboard .dashboard-hero h1 em { color: #5943f2; font-style: normal; }
.page-dashboard .dashboard-hero p { margin-top: 5px; color: #7c879e; font-size: 15px; }
.dashboard-hero-actions { display: flex; align-items: center; gap: 14px; padding-top: 26px; }
.dashboard-primary-action, .dashboard-secondary-action { min-height: 50px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 0 22px; border-radius: 12px; font-size: 13px; font-weight: 700; }
.page-dashboard .dashboard-primary-action { min-height: 50px; border-radius: 12px; box-shadow: none; }
.dashboard-secondary-action { border: 1px solid #e5e7ef; background: var(--os-color-surface); color: #5547ed; }
.dashboard-secondary-action:hover { border-color: #c9c4fa; background: #faf9ff; }

.page-dashboard .dashboard-metric-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 20px; }
.page-dashboard .dashboard-metric-card { min-height: 96px; gap: 14px; padding: 16px 18px; border-radius: 14px; box-shadow: 0 7px 24px rgba(42, 45, 72, .025); }
.page-dashboard .dashboard-metric-icon { width: 48px; height: 48px; flex: 0 0 48px; border-radius: 13px; font-size: 17px; }
.metric-yellow { background: #fff5df; color: #eda809; }
.dashboard-metric-value { display: flex; align-items: center; gap: 8px; }
.page-dashboard .dashboard-metric-card strong { margin: 0; font-size: 24px; font-weight: 750; }
.page-dashboard .dashboard-metric-card small { margin-top: 2px; font-size: 11px; }
.dashboard-metric-value b { padding: 4px 7px; border-radius: 999px; font-size: 9px; font-weight: 800; }
.dashboard-metric-value b.is-up { background: #e8f8ef; color: #0f9f66; }
.dashboard-metric-value b.is-down { background: #fff0ef; color: #d64d45; }
.dashboard-metric-progress { width: 100%; max-width: 92px; height: 5px; display: block; overflow: hidden; margin-top: 7px; border-radius: 99px; background: #e8e6f5; }
.dashboard-metric-progress i { width: var(--metric-progress); height: 100%; display: block; border-radius: inherit; background: linear-gradient(90deg, #826df4, #6552ef); }

.page-dashboard .dashboard-workspace-grid { grid-template-columns: minmax(0, 1.65fr) minmax(370px, .95fr); gap: 16px; align-items: start; }
.page-dashboard .dashboard-main-stack { min-width: 0; display: grid; gap: 20px; }
.page-dashboard .dashboard-main-stack .dashboard-metric-grid { margin-bottom: 0; }
.page-dashboard .dashboard-panel { border-radius: 15px; box-shadow: 0 8px 28px rgba(39, 42, 68, .025); }
.page-dashboard .dashboard-day-panel { min-height: 594px; }
.page-dashboard .dashboard-panel-header { min-height: 78px; padding: 14px 20px; }
.page-dashboard .dashboard-panel-heading { gap: 12px; }
.page-dashboard .dashboard-panel-heading h2 { font-size: 17px; font-weight: 750; }
.page-dashboard .dashboard-panel-heading p { margin-top: 2px; font-size: 11px; }
.page-dashboard .dashboard-section-icon { width: 46px; height: 46px; flex-basis: 46px; border-radius: 13px; font-size: 17px; }

.dashboard-day-controls { display: flex; align-items: center; gap: 7px; }
.dashboard-day-controls a { min-height: 36px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 0 14px; border: 1px solid #e4e7ef; border-radius: 9px; background: var(--os-color-surface); color: var(--dashboard-ink); font-size: 10px; font-weight: 700; }
.dashboard-day-controls a:first-child { width: 36px; padding: 0; }
.dashboard-day-controls a:hover { border-color: #c8c3f8; color: #5849ed; }
.dashboard-day-controls i { font-size: 8px; }

.page-dashboard .dashboard-day-body { min-height: 478px; overflow: hidden; }
.page-dashboard .dashboard-day-body.has-appointments { min-height: 478px; padding: 14px 0; }
.page-dashboard .dashboard-day-body.has-appointments .dashboard-appointment-list { padding: 0 20px; }
.page-dashboard .dashboard-appointment-list { min-height: 450px; display: grid; grid-template-columns: 48px minmax(0, 1fr); align-content: stretch; }
.dashboard-time-axis, .dashboard-appointment-lane { position: relative; min-height: 450px; }
.dashboard-time-axis time { position: absolute; top: var(--timeline-position); right: 9px; color: #8390ab; font-size: 10px; transform: translateY(-50%); }
.dashboard-appointment-lane { border-left: 1px solid #e7e9f1; }
.dashboard-timeline-lines { position: absolute; inset: 0; pointer-events: none; }
.dashboard-timeline-lines span { position: absolute; top: var(--timeline-position); right: 0; left: 0; height: 1px; border-top: 1px dashed #e7e9f1; }
.page-dashboard .dashboard-appointment-row { position: absolute; z-index: 1; top: var(--appointment-top); right: 0; left: 0; min-height: 50px; height: max(50px, var(--appointment-height)); display: grid; grid-template-columns: 58px minmax(0, 1fr); align-items: stretch; gap: 8px; padding: 3px 0; border: 0; }
.page-dashboard .dashboard-appointment-row:hover { z-index: 2; background: transparent; }
.page-dashboard .dashboard-appointment-hour { display: flex; align-items: flex-start; justify-content: center; flex-direction: column; color: #667591; font-weight: 650; }
.page-dashboard .dashboard-appointment-hour time, .page-dashboard .dashboard-appointment-hour small { display: block; color: inherit; font-size: 10px; line-height: 1.35; }
.page-dashboard .dashboard-appointment-hour small { font-weight: 500; }
.dashboard-appointment-card { position: relative; min-height: 44px; display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 12px; overflow: hidden; padding: 8px 12px 8px 16px; border-radius: 8px; background: color-mix(in srgb, var(--appointment-color) 11%, var(--os-color-surface)); }
.dashboard-appointment-card::before { content: ''; position: absolute; inset: 0 auto 0 0; width: 3px; background: var(--appointment-color); }
.page-dashboard .dashboard-appointment-main strong { font-size: 12px; font-weight: 700; }
.page-dashboard .dashboard-appointment-main small { margin-top: 2px; color: #74809a; font-size: 10px; }
.dashboard-appointment-employee { display: inline-flex; align-items: center; gap: 7px; color: #68748d; }
.dashboard-appointment-employee i { width: 26px; height: 26px; display: grid; place-items: center; border: 1px solid color-mix(in srgb, var(--appointment-color) 28%, white); border-radius: 50%; background: color-mix(in srgb, var(--appointment-color) 16%, white); color: color-mix(in srgb, var(--appointment-color) 72%, #384258); font-size: 9px; font-style: normal; font-weight: 800; }
.dashboard-appointment-employee small { max-width: 80px; overflow: hidden; font-size: 9px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.dashboard-appointment-meta { display: flex; align-items: center; gap: 14px; color: color-mix(in srgb, var(--appointment-color) 75%, #536079); }
.page-dashboard .dashboard-appointment-meta time { color: inherit; font-size: 10px; font-weight: 600; }
.dashboard-appointment-meta > span { width: 20px; display: grid; place-items: center; font-size: 11px; }

.dashboard-day-add { padding: 10px 20px 16px; }
.dashboard-day-add a { min-height: 48px; display: flex; align-items: center; justify-content: center; gap: 9px; border: 1px dashed #d7d9e6; border-radius: 10px; color: #5547ed; font-size: 12px; font-weight: 700; }
.dashboard-day-add a:hover { border-color: #aaa2f5; background: #faf9ff; }

.page-dashboard .dashboard-empty-day { min-height: 456px; }
.page-dashboard .dashboard-time-grid { inset: 18px 20px 12px; }

.page-dashboard .dashboard-side-stack { display: grid; grid-template-rows: auto auto auto; gap: 16px; }
.page-dashboard .dashboard-quick-panel { border-radius: 18px; }
.page-dashboard .dashboard-quick-panel .dashboard-panel-header { min-height: 70px; padding: 13px 20px 10px; border-bottom: 0; }
.page-dashboard .dashboard-quick-panel .dashboard-panel-heading { gap: 12px; }
.page-dashboard .dashboard-quick-panel .dashboard-panel-heading h2 { font-size: 18px; font-weight: 750; }
.page-dashboard .dashboard-quick-panel .dashboard-section-icon {
    width: 28px;
    height: 28px;
    flex-basis: 28px;
    border-radius: 0;
    background: transparent;
    color: #747e9a;
    font-size: 18px;
}
.page-dashboard .dashboard-action-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; padding: 0 16px 17px; }
.page-dashboard .dashboard-action-grid > a {
    min-height: 112px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 12px;
    padding: 14px 9px;
    border: 0;
    border-radius: 14px;
    background: linear-gradient(145deg, #f6f4ff 0%, #f1efff 100%);
    text-align: center;
    box-shadow: none;
}
.page-dashboard .dashboard-action-grid > a:hover {
    border-color: transparent;
    background: linear-gradient(145deg, #f0edff 0%, #e9e5ff 100%);
    box-shadow: none;
    transform: translateY(-2px);
}
.page-dashboard .dashboard-action-grid > a:focus-visible {
    outline: 3px solid rgba(88, 71, 245, .22);
    outline-offset: 2px;
}
.page-dashboard .dashboard-action-grid > a > span {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    border-radius: 0;
    background: transparent;
    color: #5b45f3;
    font-size: 25px;
}
.page-dashboard .dashboard-action-grid > a.is-pos-action { background: linear-gradient(145deg, #f6f4ff 0%, #f1efff 100%); }
.page-dashboard .dashboard-action-grid > a.is-pos-action:hover { background: linear-gradient(145deg, #f0edff 0%, #e9e5ff 100%); }
.page-dashboard .dashboard-action-grid > a.is-pos-action > span { background: transparent; color: #5b45f3; }
.page-dashboard .dashboard-action-grid strong {
    height: auto;
    color: #20243c;
    font-size: 14px;
    font-weight: 650;
    line-height: 1.35;
    white-space: normal;
}

.page-dashboard .dashboard-focus--top > header { min-height: 62px; padding: 10px 16px 6px; }
.page-dashboard .dashboard-focus-count { min-width: 32px; height: 32px; border-radius: 11px; font-size: 11px; }
.page-dashboard .dashboard-focus--top .dashboard-focus-list { max-height: 278px; padding: 0 12px 12px; }
.page-dashboard .dashboard-focus-list a { min-height: 58px; grid-template-columns: 36px minmax(0, 1fr) 10px; }
.page-dashboard .dashboard-focus-list strong { font-size: 11px; }
.page-dashboard .dashboard-focus-list small { color: #8690a5; font-size: 9px; }

.dashboard-growth-card { width: 100%; min-width: 0; max-width: 100%; min-height: 190px; display: grid; grid-template-columns: minmax(0, 1.16fr) minmax(0, .84fr); overflow: hidden; border: 1px solid #ddd8ff; border-radius: 18px; background: linear-gradient(135deg, #f5f1ff 0%, #f0edff 56%, #e6ebff 100%); box-shadow: 0 8px 26px rgba(73, 59, 184, .06); transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease; }
.dashboard-growth-card:hover { border-color: #c7befb; box-shadow: 0 12px 30px rgba(73, 59, 184, .12); transform: translateY(-1px); }
.dashboard-growth-card:focus-visible { outline: 3px solid rgba(88, 71, 245, .22); outline-offset: 2px; }
.dashboard-growth-copy { min-width: 0; display: flex; align-items: flex-start; justify-content: center; flex-direction: column; padding: 20px 12px 20px 22px; }
.dashboard-growth-copy > small { padding: 0; border-radius: 0; background: transparent; color: #6755ec; font-size: 11px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.dashboard-growth-copy > strong { margin-top: 10px; color: #1f2238; font-size: clamp(16px, 1.35vw, 20px); font-weight: 750; line-height: 1.18; letter-spacing: -.025em; }
.dashboard-growth-copy > span { margin-top: 7px; color: #75809b; font-size: 12px; line-height: 1.45; }
.dashboard-growth-copy > b { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; margin-top: 14px; padding: 0 17px; border: 0; border-radius: 10px; background: linear-gradient(135deg, #5946f4, #684cf2); color: #fff; font-size: 12px; font-weight: 700; box-shadow: none; }
.dashboard-growth-copy > b i { font-size: 10px; }
.dashboard-growth-preview { position: relative; min-width: 0; max-width: calc(100% - 13px); align-self: stretch; margin: 17px 13px 0 0; padding: 25px 0 0; overflow: hidden; border: 1px solid rgba(87,75,189,.14); border-bottom: 0; border-radius: 10px 10px 0 0; background: #fff; box-shadow: 0 14px 28px rgba(62,53,132,.14); }
.dashboard-growth-preview > .dashboard-growth-browser-bar { position: absolute; inset: 0 0 auto; height: 25px; display: flex; align-items: center; gap: 4px; padding: 0 8px; border-bottom: 1px solid #ececf3; background: #fff; font-style: normal; }
.dashboard-growth-browser-bar > b { width: 5px; height: 5px; flex: 0 0 5px; border-radius: 50%; background: #c2c6d5; }
.dashboard-growth-hero { position: absolute; inset: 25px 0 0; display: block; overflow: hidden; background: #c5b5a9; }
.dashboard-growth-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(75,54,42,.46), rgba(75,54,42,.02) 66%); }
.dashboard-growth-hero > img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: 61% center; }
.dashboard-growth-hero > strong { position: absolute; top: 24px; left: 11px; z-index: 1; color: #fff; font-family: Georgia, "Times New Roman", serif; font-size: 13px; font-weight: 500; line-height: 1.04; letter-spacing: -.03em; }
.dashboard-growth-site-nav { position: absolute; right: 8px; bottom: 0; left: 8px; z-index: 2; height: 40px; display: flex; align-items: center; gap: 5px; padding: 5px 7px; border-radius: 8px 8px 0 0; background: rgba(255,255,255,.96); box-shadow: 0 -3px 12px rgba(41,33,85,.08); }
.dashboard-growth-site-nav .platform-logo-icon, .dashboard-growth-site-nav .platform-logo-icon img { width: 16px; height: 16px; }
.dashboard-growth-site-nav > b { width: 13px; height: 3px; margin-left: auto; border-radius: 99px; background: #d6d2cf; }
.dashboard-growth-site-nav > b + b { width: 9px; margin-left: 0; }
.dashboard-growth-site-nav > b:last-child { width: 6px; }

@media (max-width: 1280px) {
    .page-dashboard .dashboard-metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .page-dashboard .dashboard-workspace-grid { grid-template-columns: minmax(0, 1.45fr) minmax(340px, .9fr); }
}

@media (max-width: 1100px) {
    .page-dashboard .dashboard-workspace-grid { grid-template-columns: 1fr; }
    .page-dashboard .dashboard-side-stack { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: auto auto; }
    .page-dashboard .dashboard-growth-card { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
    .page-company-app.page-dashboard .main.main-dashboard { --dashboard-page-gutter: 14px; padding: 0 var(--dashboard-page-gutter) 34px; }
    .dashboard-toolbar { min-height: 54px; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; margin-bottom: 20px; padding: 5px 6px; }
    .dashboard-search { width: 100%; }
    .dashboard-search-popdown { right: -1px; left: -1px; width: auto; }
    .dashboard-search-results { max-height: min(440px, calc(100vh - 150px)); }
    .dashboard-search-result { grid-template-columns: 38px minmax(0, 1fr) 14px; gap: 9px; }
    .dashboard-search-result-icon { width: 38px; height: 38px; }
    .dashboard-search-popdown-help { gap: 10px; }
    .dashboard-search kbd { display: none; }
    .dashboard-company-menu-panel { right: 0; }
    .dashboard-toolbar-actions { gap: 0; }
    .page-dashboard .dashboard-hero { min-height: 0; flex-direction: column; margin-bottom: 10px; }
    .page-dashboard .dashboard-hero h1 { font-size: 34px; }
    .dashboard-hero-actions { width: 100%; padding-top: 4px; }
    .dashboard-primary-action, .dashboard-secondary-action { flex: 1; padding: 0 12px; }
    .page-dashboard .dashboard-metric-grid { grid-template-columns: 1fr 1fr; }
    .page-dashboard .dashboard-metric-card { min-height: 86px; grid-template-columns: auto minmax(0, 1fr); padding: 12px; }
    .page-dashboard .dashboard-metric-icon { width: 42px; height: 42px; }
    .page-dashboard .dashboard-metric-card .metric-arrow { display: none; }
    .page-dashboard .dashboard-day-controls a:nth-child(2) { display: none; }
    .page-dashboard .dashboard-side-stack { grid-template-columns: 1fr; }
    .page-dashboard .dashboard-growth-card { grid-column: auto; }
}

@media (max-width: 520px) {
    .page-dashboard .dashboard-metric-grid { grid-template-columns: 1fr; }
    .page-dashboard .dashboard-metric-card { min-height: 78px; }
    .page-dashboard .dashboard-panel-heading p { display: none; }
    .dashboard-day-controls a:last-child { display: none; }
    .page-dashboard .dashboard-day-body.has-appointments .dashboard-appointment-list { padding: 0 10px; }
    .page-dashboard .dashboard-appointment-list { grid-template-columns: 40px minmax(0, 1fr); }
    .page-dashboard .dashboard-appointment-row { grid-template-columns: 42px minmax(0, 1fr); }
    .dashboard-appointment-card { grid-template-columns: minmax(0, 1fr) auto; gap: 7px; padding-right: 8px; }
    .dashboard-appointment-employee small { display: none; }
    .dashboard-appointment-meta time { display: none; }
    .page-dashboard .dashboard-action-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; padding-right: 10px; padding-left: 10px; }
    .page-dashboard .dashboard-action-grid > a { min-height: 104px; padding-right: 6px; padding-left: 6px; }
    .page-dashboard .dashboard-action-grid strong { font-size: 12px; }
    .dashboard-growth-card { min-height: 210px; grid-template-columns: minmax(0, 1.22fr) minmax(0, .78fr); }
    .dashboard-growth-copy { padding: 18px 8px 18px 16px; }
    .dashboard-growth-copy > strong { font-size: 16px; }
    .dashboard-growth-copy > span { font-size: 11px; }
    .dashboard-growth-copy > b { min-height: 40px; margin-top: 11px; padding: 0 12px; font-size: 11px; }
    .dashboard-growth-preview { margin-right: 8px; }
}

html[data-theme="dark"] .dashboard-search,
html[data-theme="dark"] .dashboard-company-switcher,
html[data-theme="dark"] .dashboard-secondary-action,
html[data-theme="dark"] .dashboard-day-controls a { border-color: var(--os-color-border); background: var(--os-color-surface); }
html[data-theme="dark"] .dashboard-theme-toggle:hover { background: transparent; color: var(--os-color-accent-text); }
html[data-theme="dark"] .dashboard-toolbar,
html[data-theme="dark"] .dashboard-company-menu-panel { border-color: var(--os-color-border); background: var(--os-color-surface); }
html[data-theme="dark"] .dashboard-search-popdown { border-color: var(--os-color-border); background: var(--os-color-surface); }
html[data-theme="dark"] .dashboard-search-popdown-head,
html[data-theme="dark"] .dashboard-search-group + .dashboard-search-group,
html[data-theme="dark"] .dashboard-search-popdown-help { border-color: var(--os-color-border); }
html[data-theme="dark"] .dashboard-search-popdown-help { background: var(--os-color-surface-muted); }
html[data-theme="dark"] .dashboard-search-result { color: var(--os-color-text); }
html[data-theme="dark"] .dashboard-search-result:hover,
html[data-theme="dark"] .dashboard-search-result.is-active { background: var(--os-color-selected); }
html[data-theme="dark"] .dashboard-search-result-path > strong,
html[data-theme="dark"] .dashboard-search-state strong { color: var(--os-color-ink); }
html[data-theme="dark"] .dashboard-company-menu-panel nav > a { color: var(--os-color-text); }
html[data-theme="dark"] .dashboard-company-menu-panel nav > a:hover,
html[data-theme="dark"] .dashboard-company-menu-panel nav > a:focus-visible { background: var(--os-color-surface-strong); }
html[data-theme="dark"] .dashboard-company-menu-logout { border-color: var(--os-color-border); }
html[data-theme="dark"] .dashboard-search kbd { background: var(--os-color-surface-strong); color: var(--os-color-text-secondary); }
html[data-theme="dark"] .dashboard-growth-card { border-color: var(--os-color-border); background: linear-gradient(135deg, #292448, #252a3c); }
html[data-theme="dark"] .dashboard-growth-preview { border-color: var(--os-color-border); background: var(--os-color-surface-strong); }
html[data-theme="dark"] .page-dashboard .dashboard-action-grid > a,
html[data-theme="dark"] .page-dashboard .dashboard-action-grid > a.is-pos-action { background: linear-gradient(145deg, #2a2841, #25233a); }
html[data-theme="dark"] .page-dashboard .dashboard-action-grid > a:hover,
html[data-theme="dark"] .page-dashboard .dashboard-action-grid > a.is-pos-action:hover { background: linear-gradient(145deg, #322e51, #2b2847); }
html[data-theme="dark"] .page-dashboard .dashboard-action-grid strong,
html[data-theme="dark"] .dashboard-growth-copy > strong { color: var(--os-color-ink); }
html[data-theme="dark"] .dashboard-growth-copy > span { color: var(--os-color-text-secondary); }

.dashboard-confetti-layer {
    position: fixed;
    inset: 0;
    z-index: 10000;
    pointer-events: none;
    overflow: hidden;
}

.dashboard-welcome-form > .dashboard-confetti-layer.is-welcome-foreground {
    position: absolute;
    z-index: 5;
    border-radius: inherit;
}

.dashboard-confetti-piece {
    position: absolute;
    top: 0;
    left: 0;
    display: block;
    box-shadow: 0 1px 2px rgba(25, 22, 60, .12);
    will-change: transform, opacity;
}

.dashboard-confetti-cannon {
    position: absolute;
    bottom: -8px;
    width: 22px;
    height: 78px;
    border-radius: 11px 11px 5px 5px;
    background: linear-gradient(180deg, #8378ff 0%, #4b3fd2 100%);
    box-shadow: 0 8px 22px rgba(75, 63, 210, .3);
    opacity: 0;
    transform-origin: 50% 100%;
}

.dashboard-confetti-cannon::after {
    content: '';
    position: absolute;
    top: -24px;
    left: 50%;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 209, 85, .9) 0 9%, rgba(255, 143, 90, .45) 28%, rgba(255, 143, 90, 0) 68%);
    transform: translateX(-50%) scale(.2);
    opacity: 0;
}

.dashboard-confetti-cannon.is-left {
    left: 6px;
    transform: rotate(34deg) translateY(18px);
}

.dashboard-confetti-cannon.is-right {
    right: 6px;
    transform: rotate(-34deg) translateY(18px);
}

.dashboard-confetti-layer.is-firing .dashboard-confetti-cannon.is-left {
    animation: dashboard-cannon-left 1050ms cubic-bezier(.18,.8,.28,1) both;
}

.dashboard-confetti-layer.is-firing .dashboard-confetti-cannon.is-right {
    animation: dashboard-cannon-right 1050ms cubic-bezier(.18,.8,.28,1) both;
}

.dashboard-confetti-layer.is-firing .dashboard-confetti-cannon::after {
    animation: dashboard-cannon-flash 620ms ease-out 100ms both;
}

.dashboard-confetti-message {
    position: fixed;
    bottom: max(24px, env(safe-area-inset-bottom));
    left: 50%;
    z-index: 10001;
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: min(360px, calc(100vw - 32px));
    padding: 12px 16px;
    border: 1px solid rgba(91, 77, 245, .18);
    border-radius: 16px;
    background: rgba(255, 255, 255, .96);
    color: #292451;
    box-shadow: 0 18px 48px rgba(35, 29, 94, .2);
    pointer-events: none;
    transform: translate(-50%, 18px);
    animation: dashboard-confetti-message 5s cubic-bezier(.2,.75,.25,1) both;
    backdrop-filter: blur(14px);
}

.dashboard-confetti-message > span:first-child {
    display: grid;
    place-items: center;
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: linear-gradient(135deg, #5b4df5, #8d63f6);
    color: #fff;
}

.dashboard-confetti-message > span:last-child {
    display: grid;
    gap: 2px;
}

.dashboard-confetti-message strong,
.dashboard-confetti-message small {
    display: block;
}

.dashboard-confetti-message strong {
    font-size: .95rem;
}

.dashboard-confetti-message small {
    color: #716c88;
    font-size: .8rem;
}

@keyframes dashboard-cannon-left {
    0% { opacity: 0; transform: rotate(34deg) translateY(18px); }
    16%, 62% { opacity: 1; transform: rotate(34deg) translateY(0); }
    100% { opacity: 0; transform: rotate(34deg) translateY(24px); }
}

@keyframes dashboard-cannon-right {
    0% { opacity: 0; transform: rotate(-34deg) translateY(18px); }
    16%, 62% { opacity: 1; transform: rotate(-34deg) translateY(0); }
    100% { opacity: 0; transform: rotate(-34deg) translateY(24px); }
}

@keyframes dashboard-cannon-flash {
    0% { opacity: 0; transform: translateX(-50%) scale(.2); }
    28% { opacity: 1; transform: translateX(-50%) scale(1); }
    100% { opacity: 0; transform: translateX(-50%) scale(1.45); }
}

@keyframes dashboard-confetti-message {
    0% { opacity: 0; transform: translate(-50%, 18px) scale(.96); }
    8%, 78% { opacity: 1; transform: translate(-50%, 0) scale(1); }
    100% { opacity: 0; transform: translate(-50%, 8px) scale(.98); }
}

@media (max-width: 980px) {
    .dashboard-confetti-message {
        bottom: calc(82px + env(safe-area-inset-bottom));
    }
}

@media (prefers-reduced-motion: reduce) {
    .dashboard-confetti-layer {
        display: none;
    }

    .dashboard-confetti-message {
        animation: none;
        transform: translate(-50%, 0);
    }
}
