.dashboard-page {
    background:
        radial-gradient(circle at top right, rgba(118, 104, 255, 0.10), transparent 26rem),
        radial-gradient(circle at left 15%, rgba(37, 125, 255, 0.12), transparent 22rem),
        linear-gradient(180deg, #f4f7fb 0%, #eef3f8 100%);
}

.dashboard-page .app-main {
    padding: 1.35rem 1.35rem 2.75rem;
}

.dashboard-page .app-sidebar {
    background:
        radial-gradient(circle at top, rgba(111, 93, 255, 0.22), transparent 17rem),
        linear-gradient(180deg, #0f1830 0%, #091327 100%);
}

.dashboard-studio {
    display: grid;
    gap: 0.75rem;
}

.dashboard-header {
    display: block;
    padding: 0;
    margin-bottom: 0;
}

.dashboard-topbar {
    display: grid;
    grid-template-columns: 240px minmax(320px, 1fr) auto;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.workspace-select-area {
    align-self: center;
}

.dashboard-search-area {
    min-width: 0;
}

.dashboard-actions-area {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.75rem;
    flex-wrap: nowrap;
}

.dashboard-welcome {
    margin-top: 0;
    margin-bottom: 2rem;
}

.dashboard-welcome-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 360px);
    gap: 1rem;
    align-items: start;
    margin-bottom: 1.5rem;
}

.dashboard-business-card {
    min-width: 0;
}

.dashboard-business-card .employee-business-card {
    width: 100%;
    max-width: 100%;
}

@media (max-width: 992px) {
    .dashboard-topbar {
        grid-template-columns: 1fr;
    }

    .dashboard-actions-area {
        justify-content: flex-start;
        flex-wrap: wrap;
    }
}

@media (max-width: 600px) {
    .dashboard-page .app-main {
        padding: 1rem 1rem 2rem;
    }

    .dashboard-topbar {
        display: grid;
        grid-template-columns: 1fr;
        gap: .85rem;
        margin-bottom: 1rem;
    }

    .dashboard-search-area,
    .dashboard-actions-area,
    .dashboard-welcome,
    .dashboard-business-area {
        width: 100%;
        min-width: 0;
    }

    .dashboard-actions-area {
        display: grid;
        grid-template-columns: 1fr;
        gap: .75rem;
        justify-content: stretch;
    }

    .dashboard-icon-row {
        display: flex;
        flex-wrap: wrap;
        gap: .65rem;
    }

    .dashboard-hero,
    .dashboard-intro-row,
    .dashboard-welcome-row {
        display: grid;
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .dashboard-business-area {
        order: 1;
    }

    .dashboard-welcome {
        order: 2;
        margin-top: 0;
    }

    .dashboard-welcome h1 {
        font-size: clamp(2rem, 11vw, 3rem);
        line-height: 1.05;
    }

    .employee-business-card,
    .business-profile-card,
    .workspace-business-card {
        position: static !important;
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .dashboard-stats-grid,
    .dashboard-metrics-grid {
        grid-template-columns: 1fr;
    }

    .hero-stats {
        grid-template-columns: 1fr;
    }
}

.dashboard-header__greeting {
    min-width: 0;
}

.workspace-topbar__left,
.workspace-topbar__right {
    display: flex;
    align-items: center;
    gap: 0.9rem;
}

.workspace-topbar__left {
    flex: 1 1 auto;
    min-width: 0;
    flex-wrap: wrap;
}

.workspace-topbar__right {
    flex: 0 0 auto;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.workspace-icon-btn {
    width: 2.85rem;
    height: 2.85rem;
    border: 1px solid rgba(18, 32, 59, 0.10);
    border-radius: 1rem;
    background: #ffffff;
    color: #1a2a4b;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.workspace-search {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.78rem 0.95rem;
    border-radius: 1rem;
    background: #f7f9fc;
    border: 1px solid rgba(18, 32, 59, 0.08);
}

.workspace-search i {
    color: #6c7a96;
}

.workspace-search input {
    width: 100%;
    min-width: 0;
    border: 0;
    background: transparent;
    color: #1b2740;
    outline: none;
    font-size: 0.96rem;
}

.workspace-search__shortcut {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.24rem 0.46rem;
    border-radius: 0.5rem;
    background: #ffffff;
    border: 1px solid rgba(18, 32, 59, 0.08);
    color: #7c8aa4;
    font-size: 0.78rem;
    font-weight: 700;
    white-space: nowrap;
}

.workspace-language-pill {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.5rem 0.75rem;
    border-radius: 1rem;
    background: #ffffff;
    border: 1px solid rgba(18, 32, 59, 0.08);
}

.workspace-language-pill__current {
    font-size: 0.84rem;
    font-weight: 700;
    color: #44516b;
}

.workspace-language-pill .language-switcher {
    gap: 0.45rem;
}

.workspace-language-pill .language-switcher__label {
    display: none;
}

.workspace-language-pill .language-switcher__select {
    min-width: 6.2rem;
    border-radius: 0.9rem;
    background: #f7f9fc;
}

.workspace-pulse {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.workspace-signal {
    min-width: 2.8rem;
    padding: 0.62rem 0.75rem;
    border-radius: 0.9rem;
    background: #f7f9fc;
    border: 1px solid rgba(18, 32, 59, 0.08);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.42rem;
    color: #475570;
    font-size: 0.86rem;
    font-weight: 700;
}

.workspace-signal--link {
    text-decoration: none;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.workspace-signal--link:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(15, 29, 58, 0.08);
    border-color: rgba(224, 77, 77, 0.2);
    color: #475570;
}

.workspace-user {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.4rem 0.45rem 0.4rem 0.4rem;
    border-radius: 1rem;
    background: #ffffff;
    border: 1px solid rgba(18, 32, 59, 0.08);
}

.workspace-user__avatar,
.workspace-user__photo {
    width: 3rem;
    height: 3rem;
    border-radius: 1rem;
    flex: 0 0 auto;
}

.workspace-user__avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #3149db, #6f66ff);
    color: #ffffff;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.workspace-user__photo {
    object-fit: cover;
    border: 1px solid rgba(18, 32, 59, 0.08);
}

.workspace-user__meta {
    display: grid;
    gap: 0.15rem;
    min-width: 0;
}

.workspace-user__meta strong {
    color: #162238;
    font-size: 0.95rem;
    white-space: nowrap;
}

.workspace-user__meta span {
    color: #70809b;
    font-size: 0.82rem;
    white-space: nowrap;
}

.workspace-kicker {
    margin: 0 0 0.35rem;
    color: #7a88a1;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.workspace-title {
    margin: 0;
    color: #162238;
    font-family: "Bahnschrift", "Segoe UI Variable Display", "Segoe UI", sans-serif;
    font-size: clamp(2rem, 3vw, 2.55rem);
    font-weight: 700;
}

.workspace-lead {
    margin: 0.45rem 0 0;
    color: #5f6e89;
    font-size: 1rem;
    line-height: 1.65;
}

.workspace-date-pill {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.82rem 1rem;
    border-radius: 1rem;
    background: #ffffff;
    border: 1px solid rgba(18, 32, 59, 0.08);
    color: #34455f;
    font-weight: 600;
    white-space: nowrap;
}

.stat-grid,
.hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.9rem;
    align-items: stretch;
}

.stat-card,
.hero-stat-card {
    display: flex;
    gap: 0.78rem;
    align-items: flex-start;
    height: 100%;
    min-width: 0;
    padding: 0.95rem 1rem;
    border-radius: 1.2rem;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(18, 32, 59, 0.08);
    box-shadow: 0 12px 32px rgba(15, 29, 58, 0.08);
}

.hero-stat-card__icon {
    width: 2.7rem;
    height: 2.7rem;
    border-radius: 0.9rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    flex: 0 0 auto;
}

.hero-stat-card__content {
    min-width: 0;
    flex: 1 1 auto;
    display: grid;
    gap: 0.18rem;
}

.hero-stat-card__label {
    display: block;
    min-width: 0;
    color: #6b7994;
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.hero-stat-card strong {
    display: block;
    min-width: 0;
    margin-top: 0.1rem;
    color: #17223a;
    font-family: "Bahnschrift", "Segoe UI Variable Display", "Segoe UI", sans-serif;
    font-size: clamp(1.45rem, 1.9vw, 1.85rem);
    line-height: 1.05;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.hero-stat-card small {
    display: block;
    min-width: 0;
    margin-top: 0.15rem;
    color: #71809a;
    font-size: 0.82rem;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.hero-stat-card__metric {
    margin-top: 0.35rem;
    color: #5d6c86;
    font-size: 0.8rem;
    font-weight: 700;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.hero-stat-card__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 0.25rem 0.55rem;
    margin-top: 0.4rem;
    min-width: 0;
}

.hero-stat-card__meta .hero-stat-card__metric {
    margin-top: 0;
    flex: 1 1 12rem;
}

.hero-stat-card__metric--positive {
    color: #1b9961;
}

.hero-stat-card__metric--negative {
    color: #d9534f;
}

.hero-stat-card__link {
    color: #d54a4a;
    font-size: 0.8rem;
    font-weight: 700;
    line-height: 1.25;
    text-decoration: none;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.hero-stat-card__link:hover {
    color: #b63d3d;
    text-decoration: underline;
}

.hero-stat-card__meter {
    height: 0.28rem;
    margin-top: 0.55rem;
    border-radius: 999px;
    background: #e7edf7;
    overflow: hidden;
}

.hero-stat-card__meter span {
    display: block;
    height: 100%;
    border-radius: inherit;
}

.hero-stat-card--violet .hero-stat-card__icon {
    background: rgba(111, 102, 255, 0.12);
    color: #5f58ef;
}

.hero-stat-card--violet .hero-stat-card__meter span {
    background: linear-gradient(90deg, #8d82ff, #5f58ef);
}

.hero-stat-card--green .hero-stat-card__icon {
    background: rgba(27, 153, 97, 0.12);
    color: #168d59;
}

.hero-stat-card--green .hero-stat-card__meter span {
    background: linear-gradient(90deg, #36c57d, #16935c);
}

.hero-stat-card--amber .hero-stat-card__icon {
    background: rgba(243, 156, 18, 0.14);
    color: #da8d0a;
}

.hero-stat-card--amber .hero-stat-card__meter span {
    background: linear-gradient(90deg, #ffb84c, #da8d0a);
}

.hero-stat-card--red .hero-stat-card__icon {
    background: rgba(224, 77, 77, 0.12);
    color: #d73d3d;
}

.hero-stat-card--red .hero-stat-card__meter span {
    background: linear-gradient(90deg, #ff8a8a, #dc4949);
}

.hero-stat-card--blue .hero-stat-card__icon {
    background: rgba(45, 114, 255, 0.12);
    color: #2f72ff;
}

.hero-stat-card--blue .hero-stat-card__meter span {
    background: linear-gradient(90deg, #70a8ff, #2f72ff);
}

.dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(19rem, 0.9fr);
    gap: 1rem;
}

.dashboard-main,
.dashboard-side {
    display: grid;
    gap: 1rem;
    align-content: start;
}

.workspace-card {
    padding: 1.2rem;
    border-radius: 1.55rem;
    border: 1px solid rgba(18, 32, 59, 0.08);
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(14px);
    box-shadow: 0 14px 42px rgba(15, 29, 58, 0.08);
}

.workspace-card--side {
    padding: 1.1rem 1.1rem 1rem;
}

.workspace-card__header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.workspace-card__header h2 {
    margin: 0;
    color: #162238;
    font-size: 1.18rem;
    font-weight: 700;
}

.workspace-card__header p {
    margin: 0.28rem 0 0;
    color: #72819a;
    font-size: 0.92rem;
    line-height: 1.5;
}

.workspace-link,
.department-table__action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 0.82rem;
    border-radius: 0.85rem;
    border: 1px solid rgba(18, 32, 59, 0.08);
    background: #ffffff;
    color: #4254d0;
    font-size: 0.84rem;
    font-weight: 700;
    text-decoration: none;
}

.workspace-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 0.82rem;
    border-radius: 0.85rem;
    background: #f7f9fc;
    border: 1px solid rgba(18, 32, 59, 0.08);
    color: #43526a;
    font-size: 0.84rem;
    font-weight: 700;
}

.attendance-chart {
    position: relative;
    min-height: 21.5rem;
    padding: 0.2rem 0 2.3rem 3rem;
}

.attendance-chart svg {
    width: 100%;
    height: 19rem;
    display: block;
}

.attendance-chart__gridline {
    stroke: rgba(26, 39, 73, 0.08);
    stroke-width: 1;
}

.attendance-chart__focus-line {
    stroke: rgba(95, 88, 239, 0.18);
    stroke-width: 1;
    stroke-dasharray: 4 6;
}

.attendance-chart__area {
    fill: rgba(111, 102, 255, 0.14);
}

.attendance-chart__line {
    fill: none;
    stroke: #5f58ef;
    stroke-width: 3.25;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.attendance-chart__dot {
    fill: #5f58ef;
    stroke: #ffffff;
    stroke-width: 2.5;
}

.attendance-chart__dot--focus {
    fill: #2f72ff;
    r: 5.5;
}

.attendance-chart__callout {
    position: absolute;
    min-width: 7rem;
    padding: 0.78rem 0.82rem;
    border-radius: 1rem;
    background: #ffffff;
    border: 1px solid rgba(18, 32, 59, 0.08);
    box-shadow: 0 14px 28px rgba(15, 29, 58, 0.12);
    text-align: center;
    z-index: 1;
}

.attendance-chart__callout strong {
    display: block;
    color: #162238;
    font-size: 1.15rem;
    font-weight: 700;
}

.attendance-chart__callout span {
    display: block;
    margin-top: 0.18rem;
    color: #72819a;
    font-size: 0.82rem;
}

.attendance-chart__y-axis {
    position: absolute;
    inset: 0 auto 2.3rem 0;
    width: 2.7rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: #7c8aa4;
    font-size: 0.78rem;
}

.attendance-chart__x-axis {
    position: absolute;
    inset: auto 0 0 3rem;
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 0.4rem;
    color: #7c8aa4;
    font-size: 0.8rem;
    text-align: center;
}

.overview-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.85rem;
}

.overview-metric {
    padding: 0.95rem 1rem;
    border-radius: 1rem;
    background: #f7f9fc;
    border: 1px solid rgba(18, 32, 59, 0.06);
}

.overview-metric span {
    display: block;
    color: #71809a;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.overview-metric strong {
    display: block;
    margin-top: 0.55rem;
    color: #17223a;
    font-size: 1.45rem;
    font-family: "Bahnschrift", "Segoe UI Variable Display", "Segoe UI", sans-serif;
}

.quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(11.5rem, 1fr));
    gap: 0.9rem;
}

.quick-action {
    display: grid;
    gap: 0.6rem;
    padding: 1rem;
    border-radius: 1.15rem;
    background: #f7f9fc;
    border: 1px solid rgba(18, 32, 59, 0.06);
    color: #17223a;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.quick-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(15, 29, 58, 0.08);
    color: #17223a;
}

.quick-action__icon {
    width: 3rem;
    height: 3rem;
    border-radius: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
}

.quick-action strong {
    font-size: 0.96rem;
}

.quick-action small {
    color: #6d7d96;
    line-height: 1.55;
}

.quick-action--violet .quick-action__icon {
    background: rgba(111, 102, 255, 0.12);
    color: #5f58ef;
}

.quick-action--green .quick-action__icon {
    background: rgba(27, 153, 97, 0.12);
    color: #16935c;
}

.quick-action--blue .quick-action__icon {
    background: rgba(45, 114, 255, 0.12);
    color: #2f72ff;
}

.quick-action--amber .quick-action__icon {
    background: rgba(243, 156, 18, 0.14);
    color: #da8d0a;
}

.quick-action--indigo .quick-action__icon {
    background: rgba(68, 84, 208, 0.12);
    color: #4454d0;
}

.quick-action--rose .quick-action__icon {
    background: rgba(220, 73, 121, 0.12);
    color: #d33971;
}

.quick-action--slate .quick-action__icon {
    background: rgba(71, 85, 105, 0.12);
    color: #475569;
}

.quick-action__badge {
    padding: 0.5rem 0.8rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
    align-self: flex-start;
}

.quick-action__badge--pending {
    background: rgba(243, 156, 18, 0.14);
    color: #b36d00;
}

.quick-action__badge--approved {
    background: rgba(45, 114, 255, 0.14);
    color: #2454c6;
}

.quick-action__badge--released {
    background: rgba(27, 153, 97, 0.14);
    color: #1b915d;
}

.quick-action__status-list {
    max-width: 100%;
}

.department-table-wrap {
    overflow-x: auto;
}

.department-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
    border-radius: 1rem;
    border: 1px solid rgba(18, 32, 59, 0.06);
    background: #ffffff;
}

.department-table thead th {
    padding: 0.95rem 1rem;
    background: #f7f9fc;
    color: #6e7c96;
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    text-align: left;
    white-space: nowrap;
}

.department-table tbody td {
    padding: 1rem;
    border-top: 1px solid rgba(18, 32, 59, 0.06);
    color: #5e6d87;
    white-space: nowrap;
}

.department-table tbody td strong {
    color: #162238;
    font-size: 0.96rem;
}

.department-table__action--muted {
    color: #9aa7bf;
    background: #f7f9fc;
}

.stack-list,
.branch-list,
.alert-list {
    display: grid;
    gap: 0.8rem;
}

.stack-item,
.branch-item,
.alert-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.85rem 0.9rem;
    border-radius: 1rem;
    background: #f7f9fc;
    border: 1px solid rgba(18, 32, 59, 0.06);
}

.stack-avatar,
.branch-avatar {
    width: 2.85rem;
    height: 2.85rem;
    border-radius: 0.95rem;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(135deg, #4454d0, #6f66ff);
    color: #ffffff;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.stack-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.stack-item__content,
.branch-item__content,
.alert-item__content {
    min-width: 0;
    flex: 1 1 auto;
    display: grid;
    gap: 0.18rem;
}

.stack-item__content strong,
.branch-item__content strong,
.alert-item__content strong {
    color: #162238;
    font-size: 0.95rem;
}

.stack-item__content span,
.branch-item__content span,
.stack-item__content small,
.branch-item__content small,
.alert-item__content small {
    color: #72819a;
    font-size: 0.82rem;
}

.stack-status,
.branch-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.42rem 0.75rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    white-space: nowrap;
}

.stack-status--success,
.branch-status--success {
    background: rgba(27, 153, 97, 0.12);
    color: #16935c;
}

.stack-status--warning,
.branch-status--warning {
    background: rgba(243, 156, 18, 0.14);
    color: #da8d0a;
}

.stack-status--danger,
.branch-status--danger {
    background: rgba(220, 73, 73, 0.12);
    color: #d73d3d;
}

.stack-status--neutral,
.branch-status--neutral {
    background: rgba(120, 132, 154, 0.12);
    color: #66758e;
}

.stack-date {
    color: #6d7d96;
    font-size: 0.84rem;
    font-weight: 700;
    white-space: nowrap;
}

.alert-item {
    align-items: flex-start;
}

.alert-item__icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.85rem;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
}

.alert-item--success .alert-item__icon {
    background: rgba(27, 153, 97, 0.12);
    color: #16935c;
}

.alert-item--warning .alert-item__icon {
    background: rgba(243, 156, 18, 0.14);
    color: #da8d0a;
}

.alert-item--danger .alert-item__icon {
    background: rgba(220, 73, 73, 0.12);
    color: #d73d3d;
}

.alert-item--info .alert-item__icon {
    background: rgba(45, 114, 255, 0.12);
    color: #2f72ff;
}

.dashboard-assistant-launcher {
    position: fixed;
    right: 1.5rem;
    bottom: 1.5rem;
    z-index: 40;
    display: inline-flex;
    align-items: center;
    gap: 0.9rem;
    padding: 0.9rem 1rem;
    border: 0;
    border-radius: 1.25rem;
    background: linear-gradient(135deg, #0f1d3a, #1d3261 58%, #b68a3d 128%);
    box-shadow: 0 22px 46px rgba(13, 25, 50, 0.28);
    color: #ffffff;
    text-align: left;
}

.dashboard-assistant-launcher__icon {
    width: 3rem;
    height: 3rem;
    border-radius: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.14);
    font-size: 1.05rem;
    flex: 0 0 auto;
}

.dashboard-assistant-launcher__content {
    display: grid;
    gap: 0.12rem;
}

.dashboard-assistant-launcher__content strong {
    font-size: 0.96rem;
    font-weight: 700;
}

.dashboard-assistant-launcher__content small {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.45;
}

.assistant-overlay[hidden] {
    display: none !important;
}

.assistant-overlay {
    position: fixed;
    inset: 0;
    z-index: 60;
    display: grid;
    place-items: center;
    padding: 1.25rem;
}

.assistant-open {
    overflow: hidden;
}

.assistant-overlay__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(9, 18, 37, 0.6);
    backdrop-filter: blur(6px);
}

.assistant-panel {
    position: relative;
    width: min(72rem, 100%);
    max-height: min(90vh, 58rem);
    display: grid;
    gap: 1rem;
    padding: 1.35rem;
    border-radius: 1.7rem;
    background:
        radial-gradient(circle at top right, rgba(182, 138, 61, 0.12), transparent 28%),
        linear-gradient(180deg, #fefefe, #f7f9fc 78%);
    border: 1px solid rgba(18, 32, 59, 0.08);
    box-shadow: 0 32px 80px rgba(8, 18, 36, 0.28);
    overflow: hidden;
}

.assistant-panel__header {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 1rem;
}

.assistant-panel__eyebrow {
    margin: 0 0 0.4rem;
    color: #8a6b2f;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.assistant-panel__header h2 {
    margin: 0;
    color: #162238;
    font-size: 1.6rem;
    font-weight: 700;
}

.assistant-panel__lead {
    margin: 0.42rem 0 0;
    color: #65748e;
    line-height: 1.65;
}

.assistant-panel__close {
    width: 2.85rem;
    height: 2.85rem;
    border: 0;
    border-radius: 0.95rem;
    background: #f2f5fb;
    color: #42526c;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.assistant-panel__context {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    align-items: center;
}

.assistant-context-pill,
.assistant-context-link {
    display: inline-flex;
    align-items: center;
    gap: 0.42rem;
    padding: 0.62rem 0.85rem;
    border-radius: 999px;
    background: #ffffff;
    border: 1px solid rgba(18, 32, 59, 0.08);
    color: #42526c;
    font-size: 0.82rem;
    text-decoration: none;
}

.assistant-context-pill strong {
    color: #162238;
    font-weight: 700;
}

.assistant-context-link {
    color: #2f72ff;
    font-weight: 700;
}

.assistant-panel__body {
    min-height: 0;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(17rem, 0.75fr);
    gap: 1rem;
}

.assistant-conversation,
.assistant-suggestion-panel {
    min-height: 0;
    border-radius: 1.35rem;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(18, 32, 59, 0.08);
}

.assistant-conversation {
    padding: 1rem;
    overflow-y: auto;
    display: grid;
    gap: 0.85rem;
    align-content: start;
}

.assistant-message {
    display: flex;
    align-items: start;
    gap: 0.8rem;
}

.assistant-message--user {
    justify-content: flex-end;
}

.assistant-message__avatar {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 0.95rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0f1d3a, #2d447f);
    color: #ffffff;
    font-size: 0.95rem;
    flex: 0 0 auto;
}

.assistant-message--user .assistant-message__avatar {
    order: 2;
    background: linear-gradient(135deg, #4454d0, #6f66ff);
}

.assistant-message__bubble {
    max-width: min(34rem, 100%);
    padding: 1rem 1.05rem;
    border-radius: 1.15rem;
    background: #f7f9fc;
    border: 1px solid rgba(18, 32, 59, 0.06);
    color: #52627d;
}

.assistant-message__bubble--welcome {
    background: linear-gradient(180deg, rgba(15, 29, 58, 0.04), rgba(182, 138, 61, 0.07));
}

.assistant-message__bubble strong {
    display: block;
    color: #162238;
    font-size: 1rem;
}

.assistant-message__bubble p {
    margin: 0.45rem 0 0;
    line-height: 1.65;
}

.assistant-message__text {
    margin: 0;
    color: #ffffff;
}

.assistant-message--user .assistant-message__bubble {
    background: linear-gradient(135deg, #4454d0, #5f58ef);
    color: #ffffff;
    border-color: transparent;
}

.assistant-answer-card {
    display: grid;
    gap: 0.82rem;
}

.assistant-answer-card__eyebrow {
    color: #8a6b2f;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.assistant-answer-card__steps {
    margin: 0;
    padding-left: 1.1rem;
    color: #52627d;
    display: grid;
    gap: 0.5rem;
}

.assistant-answer-card__links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.assistant-inline-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.55rem 0.78rem;
    border-radius: 0.9rem;
    background: #ffffff;
    border: 1px solid rgba(18, 32, 59, 0.08);
    color: #2f72ff;
    font-size: 0.84rem;
    font-weight: 700;
    text-decoration: none;
}

.assistant-answer-card__followup {
    display: grid;
    gap: 0.55rem;
}

.assistant-answer-card__followup span {
    color: #6d7d96;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.assistant-followup-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.assistant-followup {
    padding: 0.6rem 0.75rem;
    border-radius: 0.9rem;
    background: rgba(111, 102, 255, 0.08);
    border: 1px solid rgba(111, 102, 255, 0.16);
    color: #4655d4;
    font-size: 0.82rem;
    font-weight: 700;
    text-align: left;
}

.assistant-message--loading .assistant-message__bubble {
    color: #6a7891;
    font-style: italic;
}

.assistant-suggestion-panel {
    padding: 1rem;
    overflow-y: auto;
    display: grid;
    gap: 0.9rem;
    align-content: start;
}

.assistant-suggestion-panel__header {
    display: grid;
    gap: 0.22rem;
}

.assistant-suggestion-panel__header strong {
    color: #162238;
    font-size: 1rem;
}

.assistant-suggestion-panel__header span {
    color: #72819a;
    font-size: 0.84rem;
}

.assistant-suggestion-list {
    display: grid;
    gap: 0.75rem;
}

.assistant-suggestion {
    display: grid;
    gap: 0.3rem;
    padding: 0.9rem;
    border-radius: 1rem;
    border: 1px solid rgba(18, 32, 59, 0.08);
    background: #f7f9fc;
    text-align: left;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.assistant-suggestion:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(15, 29, 58, 0.08);
    border-color: rgba(68, 84, 208, 0.18);
}

.assistant-suggestion span {
    color: #8a6b2f;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.assistant-suggestion strong {
    color: #162238;
    font-size: 0.92rem;
    line-height: 1.5;
}

.assistant-composer {
    display: grid;
    gap: 0.65rem;
}

.assistant-composer__label {
    color: #162238;
    font-size: 0.88rem;
    font-weight: 700;
}

.assistant-composer__row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.8rem;
    align-items: end;
}

.assistant-composer textarea {
    min-height: 4.5rem;
    padding: 0.9rem 1rem;
    border-radius: 1rem;
    border: 1px solid rgba(18, 32, 59, 0.12);
    background: #ffffff;
    color: #162238;
    resize: vertical;
}

.assistant-composer textarea:focus {
    outline: none;
    border-color: rgba(68, 84, 208, 0.5);
    box-shadow: 0 0 0 0.2rem rgba(68, 84, 208, 0.12);
}

.assistant-composer__submit {
    min-width: 7rem;
    padding: 0.9rem 1rem;
    border: 0;
    border-radius: 1rem;
    background: linear-gradient(135deg, #4454d0, #5f58ef);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    font-weight: 700;
}

.assistant-composer__submit:disabled {
    opacity: 0.72;
    cursor: progress;
}

.assistant-composer__hint {
    margin: 0;
    color: #72819a;
    font-size: 0.82rem;
}

.workspace-empty {
    display: grid;
    place-items: center;
    gap: 0.65rem;
    min-height: 14rem;
    padding: 1.4rem;
    border-radius: 1rem;
    background: #f7f9fc;
    border: 1px dashed rgba(18, 32, 59, 0.14);
    color: #73829c;
    text-align: center;
}

.workspace-empty--compact {
    min-height: 8rem;
}

.workspace-empty i {
    font-size: 1.25rem;
}

@media (max-width: 1199.98px) {
    .dashboard-grid,
    .dashboard-header {
        grid-template-columns: 1fr;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .assistant-panel__body {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 991.98px) {
    .dashboard-header {
        align-items: stretch;
    }

    .dashboard-header,
    .workspace-topbar__left,
    .workspace-topbar__right {
        flex-direction: column;
    }

    .workspace-topbar__right {
        align-items: stretch;
    }

    .workspace-language-pill,
    .workspace-user {
        width: 100%;
    }

    .workspace-pulse {
        justify-content: space-between;
    }

    .stat-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }

    .overview-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hero-stat-card__meta {
        flex-direction: column;
        align-items: flex-start;
    }

    .assistant-overlay {
        padding: 0.85rem;
    }

    .assistant-panel {
        max-height: 94vh;
    }

    .assistant-composer__row {
        grid-template-columns: 1fr;
    }

    .assistant-composer__submit {
        width: 100%;
    }
}

@media (max-width: 767.98px) {
    .dashboard-page .app-main {
        padding: 1rem 1rem 2rem;
    }

    .dashboard-header,
    .workspace-card,
    .hero-stat-card {
        padding: 0.9rem;
        border-radius: 1.15rem;
    }

    .stat-grid {
        grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    }

    .overview-metrics {
        grid-template-columns: 1fr;
    }

    .quick-actions-grid {
        grid-template-columns: 1fr;
    }

    .attendance-chart {
        min-height: 20rem;
        padding-left: 2.4rem;
    }

    .attendance-chart__x-axis {
        inset-inline-start: 2.4rem;
        font-size: 0.72rem;
    }

    .attendance-chart__y-axis {
        width: 2.1rem;
        font-size: 0.72rem;
    }

    .department-table thead {
        display: none;
    }

    .department-table,
    .department-table tbody,
    .department-table tr,
    .department-table td {
        display: block;
        width: 100%;
    }

    .department-table tr {
        padding: 0.9rem 0;
    }

    .department-table tbody td {
        padding: 0.35rem 0;
        border: 0;
        white-space: normal;
    }

    .dashboard-assistant-launcher {
        left: 1rem;
        right: 1rem;
        bottom: 1rem;
        width: auto;
    }

    .assistant-panel {
        padding: 1rem;
        border-radius: 1.2rem;
    }

    .assistant-panel__header,
    .assistant-panel__context {
        gap: 0.8rem;
    }

    .assistant-context-pill,
    .assistant-context-link {
        width: 100%;
        justify-content: center;
    }

    .assistant-message {
        gap: 0.6rem;
    }

    .assistant-message__avatar {
        width: 2.4rem;
        height: 2.4rem;
        border-radius: 0.85rem;
    }

    .assistant-message__bubble {
        max-width: 100%;
    }
}
