:root {
    --blue-950: #08245a;
    --blue-900: #083b8f;
    --blue-800: #0649aa;
    --blue-700: #0757c7;
    --blue-600: #0b6de3;
    --blue-100: #dbeafe;
    --blue-50: #eff6ff;
    --slate-950: #020617;
    --slate-900: #0f172a;
    --slate-700: #334155;
    --slate-600: #475569;
    --slate-500: #64748b;
    --slate-300: #cbd5e1;
    --slate-200: #e2e8f0;
    --slate-100: #f1f5f9;
    --slate-50: #f8fafc;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: Inter, "Noto Sans", "Noto Sans JP", "Noto Sans Arabic", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    overflow-x: hidden;
}

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

img {
    height: auto;
}

button,
input {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
    outline: 3px solid rgba(14, 165, 233, .32);
    outline-offset: 2px;
}

.is-hidden {
    display: none !important;
}

.brand-mark {
    display: inline-flex;
    width: 2.75rem;
    height: 2.75rem;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    border-radius: .9rem;
    background: #fff;
    color: var(--blue-700);
    box-shadow: 0 10px 30px rgba(0, 25, 80, .16);
}

.brand-mark svg {
    width: 1.8rem;
    height: 1.8rem;
}

.brand-mark-blue {
    background: var(--blue-700);
    color: #fff;
}

.brand-mark-small {
    width: 2.4rem;
    height: 2.4rem;
    border-radius: .8rem;
}

.brand-orb {
    position: absolute;
    border-radius: 9999px;
    filter: blur(2px);
    pointer-events: none;
}

.brand-orb-one {
    top: -12rem;
    right: -10rem;
    width: 30rem;
    height: 30rem;
    background: radial-gradient(circle at 35% 35%, rgba(103, 232, 249, .48), rgba(8, 59, 143, .05) 70%);
}

.brand-orb-two {
    bottom: -13rem;
    left: -10rem;
    width: 31rem;
    height: 31rem;
    border: 1px solid rgba(255, 255, 255, .16);
    background: rgba(255, 255, 255, .05);
}

.auth-brand-panel {
    isolation: isolate;
    min-height: 100vh;
    min-height: 100dvh;
    overflow: hidden;
    padding: clamp(2rem, 4vw, 4rem) clamp(2.25rem, 5vw, 5.5rem) clamp(1.75rem, 3vw, 3rem);
    background: linear-gradient(135deg, #031a42 0%, #05295e 47%, #063c91 100%);
}

.auth-shell,
.auth-form-panel {
    min-height: 100vh;
    min-height: 100dvh;
}

.auth-form-panel {
    padding-top: max(2.5rem, env(safe-area-inset-top));
    padding-right: max(1.25rem, env(safe-area-inset-right));
    padding-bottom: max(2.5rem, env(safe-area-inset-bottom));
    padding-left: max(1.25rem, env(safe-area-inset-left));
    background:
        radial-gradient(circle at 52% 43%, rgba(239, 246, 255, .72), transparent 42%),
        #fff;
}

.auth-brand-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background: linear-gradient(90deg, rgba(0, 13, 43, .15), rgba(0, 17, 54, .03) 70%, transparent);
    pointer-events: none;
}

.auth-brand-link {
    width: fit-content;
    font-size: clamp(1.6rem, 2.5vw, 2.7rem);
    font-weight: 780;
    letter-spacing: -.035em;
    line-height: 1;
    text-shadow: 0 4px 18px rgba(0, 10, 38, .22);
}

.auth-brand-symbol {
    display: inline-flex;
    width: clamp(2.65rem, 4vw, 4.25rem);
    height: clamp(3.2rem, 4.8vw, 5rem);
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
}

.auth-brand-symbol svg {
    width: 100%;
    height: 100%;
    overflow: visible;
}

.auth-brand-symbol-mobile {
    width: 2.15rem;
    height: 2.6rem;
    color: var(--blue-700);
}

.auth-brand-copy {
    width: 100%;
    max-width: 44rem;
    padding: clamp(2.5rem, 6vh, 5.5rem) 0 clamp(1.5rem, 4vh, 3rem);
}

.auth-brand-copy h1 {
    margin: 0;
    color: #fff;
    font-size: clamp(2.25rem, 3.5vw, 3.75rem);
    font-weight: 790;
    letter-spacing: -.04em;
    line-height: 1.18;
    text-wrap: balance;
    text-shadow: 0 5px 24px rgba(0, 8, 34, .22);
}

.auth-brand-copy h1 span {
    white-space: nowrap;
}

.auth-brand-copy > p {
    max-width: 39rem;
    margin: clamp(1rem, 2.6vh, 1.75rem) 0 0;
    color: #65a9ff;
    font-size: clamp(1rem, 1.65vw, 1.45rem);
    font-weight: 560;
    line-height: 1.45;
}

.auth-benefits {
    width: min(100%, 31rem);
    margin: clamp(1.4rem, 3.5vh, 2.8rem) 0 0;
    padding: 0;
    list-style: none;
}

.auth-benefits li {
    display: flex;
    min-height: clamp(3.8rem, 7vh, 5.4rem);
    align-items: center;
    gap: 1.25rem;
    border-bottom: 1px solid rgba(151, 194, 255, .32);
    color: #fff;
    font-size: clamp(1rem, 1.5vw, 1.32rem);
    font-weight: 650;
    line-height: 1.3;
}

.auth-benefits li:last-child {
    border-bottom: 0;
}

.auth-benefit-check {
    display: inline-flex;
    width: clamp(2.55rem, 3.6vw, 3.35rem);
    height: clamp(2.55rem, 3.6vw, 3.35rem);
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(143, 202, 255, .48);
    border-radius: 50%;
    background: linear-gradient(145deg, #1284ff, #075ceb);
    box-shadow: 0 8px 22px rgba(0, 72, 218, .38), inset 0 1px 0 rgba(255, 255, 255, .25);
}

.auth-benefit-check svg {
    width: 58%;
    height: 58%;
}

.auth-brand-footer {
    margin: 0;
    color: rgba(219, 234, 254, .68);
    font-size: .8rem;
    line-height: 1.4;
}

.auth-form-container {
    max-width: 34rem;
}

.auth-form-toolbar {
    display: flex;
    min-height: 3.25rem;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 2rem;
}

@media (min-width: 1024px) {
    .auth-form-toolbar-brand-only {
        display: none;
    }
}

.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.language-selector {
    position: relative;
    display: inline-flex;
    min-width: 12.5rem;
    min-height: 2.75rem;
    align-items: center;
    border: 1px solid #cbd5e1;
    border-radius: .75rem;
    background: #fff;
    color: #0f172a;
    box-shadow: 0 2px 8px rgba(15, 23, 42, .06);
}

.language-selector:focus-within {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .16);
}

.language-selector-flag {
    position: absolute;
    inset-inline-start: .75rem;
    z-index: 1;
    width: 1.5rem;
    height: 1.125rem;
    border: 1px solid rgba(15, 23, 42, .12);
    border-radius: .2rem;
    object-fit: cover;
    pointer-events: none;
}

.language-selector-control {
    width: 100%;
    min-height: 2.75rem;
    appearance: none;
    border: 0;
    border-radius: inherit;
    padding: .55rem 2.25rem .55rem 2.75rem;
    background: transparent;
    color: inherit;
    font: inherit;
    font-size: .82rem;
    font-weight: 700;
    cursor: pointer;
    outline: none;
}

[dir="rtl"] .language-selector-control {
    padding-right: 2.75rem;
    padding-left: 2.25rem;
}

.language-selector-control:disabled {
    cursor: wait;
    opacity: .65;
}

.language-selector-chevron {
    position: absolute;
    inset-inline-end: .65rem;
    width: 1.1rem;
    height: 1.1rem;
    color: #64748b;
    pointer-events: none;
}

@media (max-width: 639px) {
    .auth-form-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .auth-form-toolbar > a {
        align-self: flex-start;
    }

    .language-selector {
        width: 100%;
    }
}

/* Festoar Pro brand assets */
.dashboard-page .sidebar-brand {
    min-width: 0;
    max-width: calc(100% - 3.4rem);
    flex: 1 1 auto;
}

.dashboard-page .sidebar-brand-logo {
    display: inline-flex;
    min-width: 0;
    align-items: center;
}

.dashboard-page .sidebar-brand-logo img {
    display: block;
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

.dashboard-page .sidebar-brand-logo-full {
    width: 12rem;
}

.dashboard-page .sidebar-brand-logo-compact {
    display: none;
    width: 2.9rem;
    height: 2.9rem;
}

.dashboard-page .sidebar-company-icon img {
    display: block;
    width: 1.22rem;
    height: 1.22rem;
    object-fit: contain;
}

.dashboard-page .company-card-icon-brand {
    border: 1px solid #d5e2fa;
    padding: .52rem;
    background:
        radial-gradient(circle at 78% 20%, rgba(115, 151, 255, .2), transparent 45%),
        linear-gradient(145deg, #f7f9ff, #eaf1ff);
    box-shadow: 0 9px 24px rgba(64, 91, 172, .11), inset 0 0 0 1px rgba(255, 255, 255, .85);
}

.dashboard-page .company-card-icon-brand img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

@media (min-width: 1024px) {
    html.sidebar-is-collapsed .dashboard-page .sidebar-brand {
        max-width: none;
    }

    html.sidebar-is-collapsed .dashboard-page .sidebar-brand-logo-full {
        display: none;
    }

    html.sidebar-is-collapsed .dashboard-page .sidebar-brand-logo-compact {
        display: inline-flex;
    }
}

@media (max-width: 380px) {
    .dashboard-page .sidebar-brand-logo-full {
        width: 10.8rem;
    }
}

/* Branded transition loader */
html.page-is-loading,
html.page-is-loading body {
    overflow: hidden;
    cursor: progress;
}

.page-transition-loader[hidden] {
    display: none !important;
}

.page-transition-loader {
    position: fixed;
    z-index: 9999;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 1.25rem;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    background:
        radial-gradient(circle at 50% 44%, rgba(82, 113, 245, .28), transparent 21rem),
        rgba(1, 8, 31, .67);
    backdrop-filter: blur(10px) saturate(125%);
    -webkit-backdrop-filter: blur(10px) saturate(125%);
    transition: opacity .2s ease, visibility .2s ease;
}

.page-transition-loader.is-active {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
}

.page-loader-symbol {
    display: block;
    width: clamp(4.75rem, 12vw, 6rem);
    aspect-ratio: 1;
    animation: page-loader-symbol-spin 1.35s cubic-bezier(.55, .08, .42, .92) infinite;
    filter:
        drop-shadow(0 16px 24px rgba(0, 3, 28, .4))
        drop-shadow(0 0 22px rgba(105, 119, 255, .52));
    transform-origin: center;
}

.page-loader-symbol img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

@keyframes page-loader-symbol-spin {
    0% { transform: rotate(0deg) scale(.93); }
    45% { transform: rotate(168deg) scale(1.04); }
    55% { transform: rotate(192deg) scale(1.04); }
    100% { transform: rotate(360deg) scale(.93); }
}

@media (prefers-reduced-motion: reduce) {
    .page-loader-symbol {
        animation: none !important;
        transform: none !important;
    }
}

/* Dedicated notifications workspace. */
.dashboard-page .notification-trigger {
    text-decoration: none;
}

.dashboard-page .notifications-page-shell {
    width: 100%;
}

.dashboard-page .notifications-page-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.25rem;
    margin-bottom: 1.25rem;
}

.dashboard-page .notifications-page-heading .eyebrow {
    color: #0757c7;
    font-size: .75rem;
    font-weight: 850;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.dashboard-page .notifications-page-heading h1 {
    margin-top: .35rem;
    color: #071441;
    font-size: clamp(1.8rem, 3vw, 2.35rem);
    font-weight: 820;
    line-height: 1.12;
    letter-spacing: -.035em;
}

.dashboard-page .notifications-page-heading-copy > p:last-child {
    max-width: 42rem;
    margin-top: .45rem;
    color: #667598;
    font-size: .92rem;
    line-height: 1.55;
}

.dashboard-page .notifications-page-unread-count {
    flex: 0 0 auto;
    border-radius: 999px;
    padding: .55rem .85rem;
    background: #fee2e2;
    color: #b91c1c;
    font-size: .75rem;
    font-weight: 800;
}

.dashboard-page .notifications-inbox {
    overflow: hidden;
    border: 1px solid #dfe6f0;
    border-radius: 1.2rem;
    background: #fff;
    box-shadow: 0 12px 34px rgba(20, 42, 86, .07);
}

.dashboard-page .notifications-inbox-header {
    display: flex;
    min-height: 4.25rem;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    border-bottom: 1px solid #e5ebf4;
    padding: .9rem 1.25rem;
    background: #fbfcff;
}

.dashboard-page .notifications-inbox-header h2 {
    color: #122044;
    font-size: 1.05rem;
    font-weight: 820;
}

.dashboard-page .notifications-page-list {
    max-height: none;
}

.dashboard-page .notifications-page-list .notification-item {
    min-height: 7.25rem;
    align-items: flex-start;
    gap: .9rem;
    border-inline-start: 4px solid transparent;
    padding: 1.15rem 1.25rem;
    transition: background-color .18s ease, border-color .18s ease;
}

.dashboard-page .notifications-page-list .notification-item-unread {
    border-inline-start-color: #dc2626;
    background: #fff7f7;
}

[dir="rtl"] .dashboard-page .notifications-page-list .notification-item-unread {
    background: #fff7f7;
}

.dashboard-page .notifications-page-list .notification-item-read {
    border-inline-start-color: #16a34a;
    background: #f5fbf7;
}

.dashboard-page .notifications-page-list .notification-item-unread .notification-item-dot {
    background: #dc2626;
    box-shadow: 0 0 0 4px rgba(220, 38, 38, .1);
}

.dashboard-page .notifications-page-list .notification-item-read .notification-item-dot {
    background: #16a34a;
    box-shadow: 0 0 0 4px rgba(22, 163, 74, .1);
}

.dashboard-page .notifications-page-list .notification-item-heading h3 {
    font-size: .95rem;
}

.dashboard-page .notification-state {
    flex: 0 0 auto;
    border-radius: 999px;
    padding: .25rem .58rem;
    font-size: .62rem;
    font-weight: 850;
    letter-spacing: .025em;
    text-transform: uppercase;
}

.dashboard-page .notification-state-unread {
    background: #fee2e2;
    color: #b91c1c;
}

.dashboard-page .notification-state-read {
    background: #dcfce7;
    color: #15803d;
}

.dashboard-page .notifications-page-list .notification-item-copy > p {
    display: block;
    max-width: 60rem;
    margin-top: .5rem;
    overflow: visible;
    color: #536382;
    font-size: .84rem;
    line-height: 1.55;
    -webkit-line-clamp: unset;
}

.dashboard-page .notifications-page-list .notification-item-meta button {
    border-radius: .55rem;
    padding: .38rem .55rem;
    background: #dcfce7;
    color: #15803d;
    font-size: .72rem;
    font-weight: 800;
}

.dashboard-page .notifications-page-list .notification-item-meta button:hover {
    background: #bbf7d0;
    text-decoration: none;
}

.dashboard-page .notifications-inbox .notification-status {
    min-height: 2rem;
    padding: .5rem 1.25rem;
    color: #15803d;
    font-weight: 700;
}

.dashboard-page.notifications-page .notification-admin {
    margin-top: 1.5rem;
}

.dashboard-page.notifications-manage-page .notification-admin {
    margin-top: 0;
}

@media (max-width: 639px) {
    .dashboard-page .notifications-page-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .dashboard-page .notifications-page-unread-count {
        white-space: normal;
    }

    .dashboard-page .notifications-inbox-header,
    .dashboard-page .notifications-page-list .notification-item {
        padding-right: .9rem;
        padding-left: .9rem;
    }

    .dashboard-page .notifications-page-list .notification-item-heading,
    .dashboard-page .notifications-page-list .notification-item-meta {
        align-items: flex-start;
        flex-direction: column;
    }
}

.auth-form-title {
    color: #061747;
    font-size: clamp(2rem, 3.2vw, 3rem);
    letter-spacing: -.045em;
    line-height: 1.08;
}

.auth-form-subtitle {
    color: #53658f;
    font-size: clamp(1rem, 1.5vw, 1.18rem);
}

.auth-form-panel .form-label {
    color: #071744;
    font-size: .92rem;
}

.auth-form-panel .form-control {
    height: 3.75rem;
    border-color: #b9c3d9;
    border-radius: .72rem;
    padding-right: .95rem;
    padding-left: .95rem;
    color: #071744;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .025);
}

.auth-form-panel .form-control-with-icon {
    padding-inline-start: 3.35rem;
}

.auth-form-panel .form-control-password {
    padding-inline-end: 3.35rem;
}

.form-control-icon {
    position: absolute;
    top: 50%;
    inset-inline-start: 1.05rem;
    z-index: 1;
    display: inline-flex;
    width: 1.45rem;
    height: 1.45rem;
    transform: translateY(-50%);
    align-items: center;
    justify-content: center;
    color: #68769b;
    pointer-events: none;
}

.form-control-icon svg {
    width: 100%;
    height: 100%;
}

.auth-form-panel .button-large {
    min-height: 3.75rem;
    border-radius: .72rem;
    background: linear-gradient(135deg, #1169ff, #0757ed);
    font-size: 1rem;
    box-shadow: 0 12px 28px rgba(7, 87, 237, .2);
}

.eyebrow {
    margin: 0;
    color: var(--blue-700);
    font-size: .75rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.form-group {
    min-width: 0;
}

.form-label {
    display: block;
    margin: 0 0 .5rem;
    color: var(--slate-700);
    font-size: .875rem;
    font-weight: 700;
}

.form-control-wrap {
    position: relative;
}

.form-control {
    display: block;
    width: 100%;
    height: 3.15rem;
    border: 1px solid var(--slate-300);
    border-radius: .85rem;
    background: #fff;
    padding: .7rem .95rem;
    color: var(--slate-900);
    font-size: 1rem;
    transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}

.form-control-with-icon {
    padding-inline-start: 3.15rem;
}

.form-control-password {
    padding-inline-end: 3rem;
}

.form-control::placeholder {
    color: #94a3b8;
}

.form-control:hover {
    border-color: #94a3b8;
}

.form-control:focus {
    border-color: var(--blue-600);
    outline: none;
    box-shadow: 0 0 0 4px rgba(11, 109, 227, .12);
}

.form-control-error {
    border-color: #ef4444;
}

.form-control-error:focus {
    border-color: #dc2626;
    box-shadow: 0 0 0 4px rgba(239, 68, 68, .1);
}

.form-error {
    min-height: 1rem;
    margin: .35rem 0 0;
    color: #c81e1e;
    font-size: .75rem;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

.password-toggle {
    position: absolute;
    top: 50%;
    inset-inline-end: .25rem;
    display: inline-flex;
    width: 2.75rem;
    height: 2.75rem;
    transform: translateY(-50%);
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: .6rem;
    background: transparent;
    color: var(--slate-500);
    cursor: pointer;
}

.password-toggle:hover {
    background: var(--slate-100);
    color: var(--blue-700);
}

.password-toggle svg {
    width: 1.2rem;
    height: 1.2rem;
}

.checkbox-control {
    width: 1.05rem;
    height: 1.05rem;
    flex: 0 0 auto;
    border-radius: .3rem;
    accent-color: var(--blue-700);
}

.touch-label {
    min-height: 2.75rem;
}

.button-primary,
.button-secondary,
.button-danger {
    display: inline-flex;
    min-height: 2.8rem;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    border: 1px solid transparent;
    border-radius: .85rem;
    padding: .7rem 1.15rem;
    font-size: .9rem;
    font-weight: 750;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    transition: transform .16s ease, background-color .16s ease, box-shadow .16s ease;
}

.button-primary {
    background: linear-gradient(135deg, var(--blue-600), var(--blue-800));
    color: #fff;
    box-shadow: 0 9px 20px rgba(7, 87, 199, .18);
}

.button-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 13px 24px rgba(7, 87, 199, .24);
}

.button-secondary {
    border-color: var(--slate-300);
    background: #fff;
    color: var(--slate-700);
}

.button-secondary:hover {
    background: var(--slate-50);
}

.button-danger {
    background: #dc2626;
    color: #fff;
}

.button-danger:hover {
    background: #b91c1c;
}

.button-large {
    min-height: 3.25rem;
    border-radius: .9rem;
    font-size: .98rem;
}

button[disabled] {
    opacity: .72;
    cursor: wait;
    transform: none !important;
}

.button-spinner {
    width: 1.15rem;
    height: 1.15rem;
    border: 2px solid rgba(255, 255, 255, .38);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin .7s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.alert {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: .7rem;
    margin: 0 0 1.15rem;
    border: 1px solid;
    border-radius: .9rem;
    padding-block: .85rem;
    padding-inline: .9rem 2.5rem;
    font-size: .85rem;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.alert p {
    margin: 0;
}

.alert-icon {
    display: inline-flex;
    flex: 0 0 auto;
}

.alert-icon svg {
    width: 1.15rem;
    height: 1.15rem;
}

.alert-close {
    position: absolute;
    top: 50%;
    inset-inline-end: .1rem;
    display: inline-flex;
    width: 2.75rem;
    height: 2.75rem;
    transform: translateY(-50%);
    align-items: center;
    justify-content: center;
    border: 0;
    background: transparent;
    color: currentColor;
    font-size: 1.3rem;
    line-height: 1;
    cursor: pointer;
    opacity: .65;
}

.alert-success { border-color: #a7f3d0; background: #ecfdf5; color: #065f46; }
.alert-error { border-color: #fecaca; background: #fef2f2; color: #991b1b; }
.alert-warning { border-color: #fde68a; background: #fffbeb; color: #92400e; }
.alert-info { border-color: #bfdbfe; background: #eff6ff; color: #1e40af; }

.app-sidebar {
    width: min(18rem, calc(100vw - 2.5rem));
    height: 100vh;
    height: 100dvh;
    max-width: 100%;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding-top: max(1.5rem, env(safe-area-inset-top));
    padding-right: max(1.25rem, env(safe-area-inset-right));
    padding-bottom: max(1.5rem, env(safe-area-inset-bottom));
    padding-left: max(1.25rem, env(safe-area-inset-left));
    box-shadow: 20px 0 45px rgba(2, 6, 23, .07);
}

.sidebar-backdrop {
    display: none;
}

.app-header {
    height: calc(5rem + env(safe-area-inset-top));
    gap: .75rem;
    padding-top: env(safe-area-inset-top);
    padding-right: max(1.25rem, env(safe-area-inset-right));
    padding-left: max(1.25rem, env(safe-area-inset-left));
}

.app-main,
.module-main {
    padding-right: max(1.25rem, env(safe-area-inset-right));
    padding-left: max(1.25rem, env(safe-area-inset-left));
    padding-bottom: max(2rem, env(safe-area-inset-bottom));
}

.module-header > div {
    padding-right: max(1.25rem, env(safe-area-inset-right));
    padding-left: max(1.25rem, env(safe-area-inset-left));
}

.module-header {
    padding-top: env(safe-area-inset-top);
}

.app-sidebar.is-open {
    translate: 0;
    transform: translateX(0);
}

.sidebar-backdrop.is-open {
    display: block !important;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: .8rem;
    border-radius: .9rem;
    padding: .75rem .85rem;
    color: #94a3b8;
    font-size: .9rem;
    font-weight: 650;
    text-decoration: none;
    transition: background-color .16s ease, color .16s ease;
}

.sidebar-link svg {
    width: 1.3rem;
    height: 1.3rem;
}

.sidebar-link:hover {
    background: rgba(255, 255, 255, .06);
    color: #fff;
}

.sidebar-link-active {
    background: linear-gradient(135deg, rgba(11, 109, 227, .28), rgba(14, 165, 233, .12));
    color: #fff;
    box-shadow: inset 0 0 0 1px rgba(96, 165, 250, .16);
}

.icon-button,
.icon-button-dark {
    display: inline-flex;
    width: 2.75rem;
    height: 2.75rem;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: .75rem;
    background: var(--slate-100);
    color: var(--slate-700);
    cursor: pointer;
}

.icon-button:hover { background: var(--slate-200); }
.icon-button-dark { background: rgba(255,255,255,.07); color: #cbd5e1; }
.icon-button-dark:hover { background: rgba(255,255,255,.13); color: #fff; }
.icon-button svg, .icon-button-dark svg { width: 1.25rem; height: 1.25rem; }

.avatar {
    display: inline-flex;
    width: 2.65rem;
    height: 2.65rem;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    border-radius: .85rem;
    background: linear-gradient(135deg, #dbeafe, #e0f2fe);
    color: var(--blue-800);
    font-size: .8rem;
    font-weight: 850;
    box-shadow: inset 0 0 0 1px rgba(37, 99, 235, .12);
}

.avatar-small {
    width: 2.35rem;
    height: 2.35rem;
    border-radius: .75rem;
}

.dashboard-hero {
    min-height: 13.5rem;
    isolation: isolate;
}

.hero-grid {
    position: absolute;
    inset: 0;
    z-index: -1;
    opacity: .12;
    background-image: linear-gradient(rgba(255,255,255,.7) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.7) 1px, transparent 1px);
    background-size: 36px 36px;
    mask-image: linear-gradient(90deg, black, transparent 80%);
}

.hero-balloons {
    position: absolute;
    right: 5%;
    bottom: -22%;
    width: 20rem;
    height: 18rem;
    opacity: .72;
    pointer-events: none;
}

.hero-balloons span {
    position: absolute;
    display: block;
    width: 8rem;
    height: 10rem;
    border: 1px solid rgba(255,255,255,.28);
    border-radius: 52% 48% 50% 50%;
    background: linear-gradient(145deg, rgba(255,255,255,.3), rgba(255,255,255,.04));
    transform: rotate(-15deg);
}

.hero-balloons span:nth-child(1) { left: 1rem; top: 3rem; }
.hero-balloons span:nth-child(2) { left: 7rem; top: 0; width: 9rem; height: 11rem; transform: rotate(11deg); }
.hero-balloons span:nth-child(3) { left: 12rem; top: 5.5rem; width: 7rem; height: 9rem; transform: rotate(20deg); }

.module-card {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--slate-200);
    border-radius: 1.4rem;
    background: #fff;
    padding: 1.5rem;
    box-shadow: 0 10px 32px rgba(15, 23, 42, .055);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.module-card h3,
.module-card p,
.module-action {
    overflow-wrap: anywhere;
}

.module-card::after {
    content: "";
    position: absolute;
    top: -5rem;
    right: -5rem;
    width: 10rem;
    height: 10rem;
    border-radius: 999px;
    background: var(--blue-50);
    opacity: .55;
    pointer-events: none;
}

.module-card:hover {
    transform: translateY(-3px);
    border-color: #bfdbfe;
    box-shadow: 0 20px 45px rgba(15, 23, 42, .09);
}

.module-card-locked {
    background: #fbfcfe;
}

.module-card-locked:hover {
    transform: none;
    border-color: var(--slate-200);
    box-shadow: 0 10px 32px rgba(15, 23, 42, .055);
}

.module-icon {
    position: relative;
    z-index: 1;
    display: inline-flex;
    width: 3.35rem;
    height: 3.35rem;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    border-radius: 1rem;
    color: var(--blue-700);
    background: var(--blue-50);
    box-shadow: inset 0 0 0 1px #dbeafe;
}

.module-icon svg {
    width: 1.8rem;
    height: 1.8rem;
}

.module-icon-agendafest { background: #ecfdf5; color: #047857; box-shadow: inset 0 0 0 1px #d1fae5; }
.module-icon-calculafest { background: #f5f3ff; color: #6d28d9; box-shadow: inset 0 0 0 1px #ede9fe; }

.status-badge {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    border-radius: 999px;
    padding: .35rem .65rem;
    font-size: .7rem;
    font-weight: 750;
}

.status-dot {
    width: .4rem;
    height: .4rem;
    border-radius: 999px;
    background: currentColor;
}

.status-active { background: #ecfdf5; color: #047857; }
.status-locked { background: var(--slate-100); color: var(--slate-600); }

.module-action {
    display: inline-flex;
    width: 100%;
    min-height: 2.85rem;
    align-items: center;
    justify-content: space-between;
    gap: .7rem;
    border-radius: .85rem;
    background: var(--blue-50);
    padding: .7rem .9rem;
    color: var(--blue-800);
    font-size: .85rem;
    font-weight: 750;
    text-decoration: none;
    transition: background-color .16s ease, color .16s ease;
}

.module-action:hover { background: var(--blue-700); color: #fff; }
.module-action svg { width: 1.15rem; height: 1.15rem; }
.module-action-disabled { justify-content: center; background: var(--slate-100); color: var(--slate-500); cursor: not-allowed; }
.module-action-disabled:hover { background: var(--slate-100); color: var(--slate-500); }

.modal.is-open {
    display: flex !important;
}

.modal {
    display: none;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding-top: max(1rem, env(safe-area-inset-top));
    padding-right: max(1rem, env(safe-area-inset-right));
    padding-bottom: max(1rem, env(safe-area-inset-bottom));
    padding-left: max(1rem, env(safe-area-inset-left));
}

.module-page h1,
.module-page h2,
.module-page h3,
.module-page h4,
.module-page p {
    overflow-wrap: anywhere;
}

.modal-panel {
    max-height: calc(100dvh - 2rem - env(safe-area-inset-top) - env(safe-area-inset-bottom));
    overflow-y: auto;
    overscroll-behavior: contain;
    animation: modal-in .18s ease-out;
}

@keyframes modal-in {
    from { opacity: 0; transform: translateY(8px) scale(.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 767px) {
    .hero-balloons {
        right: -8rem;
        opacity: .32;
    }
}

@media (max-width: 639px) {
    .form-control {
        font-size: 1rem;
    }

    .button-primary,
    .button-secondary,
    .button-danger,
    .module-action {
        min-height: 2.75rem;
    }
}

@media (min-width: 640px) {
    .auth-form-panel {
        padding-right: max(2.5rem, env(safe-area-inset-right));
        padding-left: max(2.5rem, env(safe-area-inset-left));
    }

    .app-header,
    .app-main,
    .module-main,
    .module-header > div {
        padding-right: max(2rem, env(safe-area-inset-right));
        padding-left: max(2rem, env(safe-area-inset-left));
    }
}

@media (min-width: 1024px) {
    .auth-shell {
        grid-template-columns: minmax(0, 1fr) minmax(26rem, 1fr);
    }

    .auth-brand-panel {
        background-image:
            linear-gradient(90deg, rgba(0, 13, 43, .08), transparent 68%),
            url("../images/auth-panel-bg.jpg");
        background-position: center;
        background-size: cover;
    }

    .auth-form-panel {
        padding-right: max(2rem, env(safe-area-inset-right));
        padding-left: max(2rem, env(safe-area-inset-left));
    }

    .app-main {
        padding-right: max(2.5rem, env(safe-area-inset-right));
        padding-left: max(2.5rem, env(safe-area-inset-left));
    }
}

@media (min-width: 1280px) {
    .auth-shell {
        grid-template-columns: minmax(0, 1.16fr) minmax(29rem, .84fr);
    }

    .auth-form-panel {
        padding-right: max(3.5rem, env(safe-area-inset-right));
        padding-left: max(3.5rem, env(safe-area-inset-left));
    }
}

@media (max-width: 359px) {
    .auth-form-panel {
        padding-right: max(1rem, env(safe-area-inset-right));
        padding-left: max(1rem, env(safe-area-inset-left));
    }

    .app-header {
        padding-right: max(1rem, env(safe-area-inset-right));
        padding-left: max(1rem, env(safe-area-inset-left));
    }

    .dashboard-hero,
    .module-card {
        border-radius: 1.15rem;
    }

    .module-card {
        padding: 1.2rem;
    }

    .hero-balloons {
        display: none;
    }
}

@media (min-width: 1024px) and (max-width: 1279px) {
    .auth-brand-copy h1 {
        font-size: clamp(1.95rem, 3vw, 2.35rem);
    }

    .auth-brand-copy > p {
        max-width: 29rem;
        font-size: 1rem;
    }

    .auth-benefits li {
        font-size: 1rem;
    }

}

@media (min-width: 1024px) and (max-height: 820px) {
    .auth-brand-panel {
        padding-top: 1.8rem;
        padding-bottom: 1.5rem;
    }

    .auth-brand-copy {
        padding-top: 1.8rem;
        padding-bottom: 1rem;
    }

    .auth-brand-copy h1 {
        font-size: clamp(1.95rem, 3vw, 3rem);
    }

    .auth-brand-copy > p {
        margin-top: .9rem;
        font-size: 1rem;
    }

    .auth-benefits {
        margin-top: 1rem;
    }

    .auth-benefits li {
        min-height: 3.55rem;
        font-size: 1rem;
    }

    .auth-benefit-check {
        width: 2.35rem;
        height: 2.35rem;
    }

}

@media (min-width: 1024px) and (max-height: 650px) {
    .auth-brand-panel {
        padding-top: 1.5rem !important;
        padding-bottom: 1.5rem !important;
    }

    .auth-brand-footer {
        display: none;
    }

    .auth-brand-copy {
        padding-top: 1.1rem;
        padding-bottom: 0;
    }

    .auth-brand-copy > p {
        max-width: 31rem;
        margin-top: .65rem;
        line-height: 1.35;
    }

    .auth-benefits {
        margin-top: .65rem;
    }

    .auth-benefits li {
        min-height: 3rem;
    }
}

@media (min-width: 1024px) {
    .app-sidebar {
        translate: 0 !important;
        transform: translateX(0) !important;
    }

    .sidebar-backdrop,
    .sidebar-backdrop.is-open {
        display: none !important;
    }
}

@media (hover: none) {
    .module-card:hover,
    .button-primary:hover {
        transform: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        transition-duration: .01ms !important;
    }
}

/* Dashboard — visual direction based on the supplied Festoar reference. */
.dashboard-page {
    --dashboard-navy: #061544;
    --dashboard-blue: #0646dc;
    --dashboard-muted: #61719e;
    background: #f7f9fd;
    color: var(--dashboard-navy);
}

.dashboard-page .app-shell {
    background:
        radial-gradient(circle at 82% 20%, rgba(217, 230, 255, .2), transparent 31rem),
        #f7f9fd;
}

.dashboard-page .app-sidebar {
    isolation: isolate;
    width: min(19.5rem, calc(100vw - 2rem));
    border-radius: 0 1.15rem 0 0;
    overflow: hidden auto;
    -ms-overflow-style: none;
    scrollbar-width: none;
    padding: max(1.95rem, env(safe-area-inset-top)) 1.125rem max(2.65rem, env(safe-area-inset-bottom));
    background:
        radial-gradient(ellipse 145% 58% at 48% 107%, rgba(4, 76, 204, .32), transparent 61%),
        linear-gradient(154deg, #061e5d 0%, #001039 51%, #03174b 100%);
    box-shadow: 16px 0 42px rgba(10, 35, 89, .08);
}

.dashboard-page .app-sidebar::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

.dashboard-page .app-sidebar::before,
.dashboard-page .app-sidebar::after {
    content: "";
    position: absolute;
    z-index: 0;
    left: 50%;
    border: 1px solid rgba(27, 99, 224, .32);
    border-radius: 50%;
    pointer-events: none;
}

.dashboard-page .app-sidebar::before {
    bottom: 0;
    width: 37rem;
    height: 25rem;
    transform: translateX(-54%) rotate(4deg);
    background: linear-gradient(180deg, rgba(13, 68, 174, .24), rgba(2, 29, 91, .12) 62%);
}

.dashboard-page .app-sidebar::after {
    bottom: 0;
    width: 30rem;
    height: 19.5rem;
    transform: translateX(-45%) rotate(-5deg);
    border-color: rgba(31, 104, 237, .27);
}

.dashboard-page .app-sidebar > * {
    position: relative;
    z-index: 1;
}

.dashboard-page .sidebar-brand-row {
    padding: 0 .35rem;
}

.dashboard-page .sidebar-brand {
    gap: .9rem;
}

.dashboard-page .brand-mark-small {
    width: 3rem;
    height: 3rem;
    border-radius: .8rem;
    color: #0748df;
    box-shadow: 0 12px 26px rgba(0, 7, 34, .22);
}

.dashboard-page .brand-mark-small svg {
    width: 2rem;
    height: 2rem;
}

.dashboard-page .sidebar-brand-name {
    color: #fff;
    font-size: 1.08rem;
    font-weight: 700;
    letter-spacing: -.018em;
}

.dashboard-page .sidebar-collapse-button {
    width: 2.75rem;
    height: 2.75rem;
    border: 1px solid rgba(83, 131, 229, .18);
    border-radius: .8rem;
    background: rgba(9, 47, 126, .4);
    color: #dbe8ff;
}

.dashboard-page .sidebar-nav {
    margin-top: 3.45rem;
}

.dashboard-page .sidebar-nav-label {
    padding: 0 .65rem;
    color: #92a6d4;
    font-size: .76rem;
    font-weight: 500;
    letter-spacing: .08em;
}

.dashboard-page .sidebar-admin-label {
    margin-top: 1.7rem;
}

.dashboard-page .sidebar-link {
    min-height: 3.15rem;
    gap: .9rem;
    margin-top: .65rem;
    border-radius: .9rem;
    padding: .55rem 1rem;
    color: #c4d2f0;
    font-size: 1rem;
    font-weight: 650;
}

.dashboard-page .sidebar-link svg {
    width: 1.35rem;
    height: 1.35rem;
}

.dashboard-page .sidebar-link-active {
    border: 1px solid rgba(62, 131, 255, .65);
    background: linear-gradient(102deg, #074be2 0%, rgba(24, 68, 170, .7) 100%);
    box-shadow: 0 10px 30px rgba(0, 49, 173, .22), inset 0 1px 0 rgba(255, 255, 255, .08);
    color: #fff;
}

.dashboard-page .sidebar-account {
    min-height: 7.25rem;
    margin-right: .1rem;
    margin-left: .1rem;
    border-color: rgba(66, 118, 220, .3);
    border-radius: 1.15rem;
    padding: .8rem;
    background: rgba(2, 25, 78, .58);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .025);
    backdrop-filter: blur(8px);
}

.dashboard-page .sidebar-account-user {
    gap: .7rem;
}

.dashboard-page .sidebar-account-avatar {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: .7rem;
    background: linear-gradient(145deg, #fff, #e9f0ff);
    color: #0746d8;
    font-size: .85rem;
}

.dashboard-page .sidebar-account-name {
    font-size: .9rem;
    line-height: 1.3;
}

.dashboard-page .sidebar-account-email {
    margin-top: .15rem;
    color: #9fb0d8;
    font-size: .75rem;
}

.dashboard-page .sidebar-logout-button {
    min-height: 2.75rem;
    margin-top: .75rem;
    border-color: rgba(91, 140, 232, .46);
    border-radius: .85rem;
    background: rgba(2, 22, 70, .3);
    color: #eef4ff;
    font-size: .85rem;
}

.dashboard-page .sidebar-logout-button:hover {
    border-color: rgba(112, 159, 247, .72);
    background: rgba(17, 56, 135, .48);
}

.dashboard-page .sidebar-logout-button svg {
    width: 1.3rem;
    height: 1.3rem;
}

.dashboard-page .app-header {
    height: calc(6.5rem + env(safe-area-inset-top));
    padding-top: env(safe-area-inset-top);
    border-color: #e3e9f3;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 1px 0 rgba(18, 47, 104, .02);
}

.dashboard-page .app-header-leading {
    gap: 1.45rem;
}

.dashboard-page .app-header-menu {
    width: 3.55rem;
    height: 3.55rem;
    border: 1px solid #e1e7f0;
    border-radius: .9rem;
    background: #fff;
    color: #40578f;
    box-shadow: 0 7px 22px rgba(19, 50, 103, .08);
}

.dashboard-page .app-header-menu:hover {
    background: #f7f9fd;
}

.dashboard-page .app-header-menu svg {
    width: 1.5rem;
    height: 1.5rem;
}

.dashboard-page .app-header-kicker {
    color: #0746d8;
    font-size: 1.05rem;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -.005em;
}

.dashboard-page .app-header-subtitle {
    margin-top: .2rem;
    color: #64739d;
    font-size: 1rem;
    line-height: 1.25;
}

.dashboard-page .app-header-user {
    gap: .85rem;
}

.dashboard-page .app-header-tool-button {
    position: relative;
    display: inline-flex;
    width: 3.25rem;
    height: 3.25rem;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    border: 1px solid #dce5f2;
    border-radius: .9rem;
    background: #fff;
    color: #284678;
    box-shadow: 0 7px 18px rgba(19, 50, 103, .07);
    cursor: pointer;
    transition: border-color .16s ease, background-color .16s ease, color .16s ease, transform .16s ease, box-shadow .16s ease;
}

.dashboard-page .app-header-tool-button:hover,
.dashboard-page .notification-popover.is-open .notification-trigger {
    border-color: #afc8f4;
    background: #eef5ff;
    color: #0757c7;
    box-shadow: 0 9px 22px rgba(7, 70, 216, .12);
    transform: translateY(-1px);
}

.dashboard-page .app-header-tool-button:focus-visible {
    outline: 3px solid rgba(37, 99, 235, .26);
    outline-offset: 2px;
}

.dashboard-page .app-header-tool-button svg {
    width: 1.45rem;
    height: 1.45rem;
}

.dashboard-page .notification-popover {
    position: relative;
    display: inline-flex;
    flex: 0 0 auto;
}

.dashboard-page .notification-count {
    position: absolute;
    inset-block-start: -.42rem;
    inset-inline-end: -.42rem;
    display: inline-flex;
    min-width: 1.35rem;
    height: 1.35rem;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
    border-radius: 999px;
    padding: 0 .27rem;
    background: #dc2626;
    color: #fff;
    font-size: .65rem;
    font-weight: 850;
    line-height: 1;
    box-shadow: 0 3px 8px rgba(185, 28, 28, .28);
}

.dashboard-page .notification-panel {
    position: absolute;
    z-index: 60;
    inset-block-start: calc(100% + .8rem);
    inset-inline-end: 0;
    width: min(25rem, calc(100vw - 2rem));
    max-height: min(39rem, calc(100vh - 8rem));
    overflow: hidden;
    border: 1px solid #dde6f2;
    border-radius: 1.1rem;
    background: #fff;
    color: #14213d;
    box-shadow: 0 22px 60px rgba(15, 35, 73, .2);
}

.dashboard-page .notification-panel:focus-visible {
    outline: 3px solid rgba(37, 99, 235, .24);
    outline-offset: 2px;
}

.dashboard-page .notification-panel-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    border-bottom: 1px solid #e7edf5;
    padding: 1.05rem 1.1rem .9rem;
}

.dashboard-page .notification-panel-eyebrow {
    color: #0757c7;
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.dashboard-page .notification-panel-header h2 {
    margin-top: .15rem;
    color: #071441;
    font-size: 1.05rem;
    font-weight: 800;
}

.dashboard-page .notification-read-all {
    border: 0;
    border-radius: .4rem;
    padding: .3rem .45rem;
    background: transparent;
    color: #0757c7;
    font-size: .72rem;
    font-weight: 750;
    cursor: pointer;
}

.dashboard-page .notification-read-all:focus-visible {
    outline: 2px solid rgba(23, 105, 232, .38);
    outline-offset: 2px;
}

.dashboard-page .notification-read-all:hover {
    text-decoration: underline;
}

.dashboard-page .notification-list {
    max-height: min(31rem, calc(100vh - 14rem));
    overflow-y: auto;
    overscroll-behavior: contain;
}

.dashboard-page .notification-item {
    position: relative;
    display: flex;
    gap: .7rem;
    border-bottom: 1px solid #edf1f7;
    padding: .95rem 1.05rem;
    background: #fff;
}

.dashboard-page .notification-item:last-child {
    border-bottom: 0;
}

.dashboard-page .notification-item-unread {
    background: linear-gradient(90deg, #eef5ff, #f8fbff);
}

[dir="rtl"] .dashboard-page .notification-item-unread {
    background: linear-gradient(-90deg, #eef5ff, #f8fbff);
}

.dashboard-page .notification-item-dot {
    width: .48rem;
    height: .48rem;
    flex: 0 0 auto;
    margin-top: .38rem;
    border-radius: 50%;
    background: #cbd5e1;
}

.dashboard-page .notification-item-unread .notification-item-dot {
    background: #1769e8;
    box-shadow: 0 0 0 4px rgba(23, 105, 232, .1);
}

.dashboard-page .notification-item-copy {
    min-width: 0;
    flex: 1;
}

.dashboard-page .notification-item-heading,
.dashboard-page .notification-item-meta {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: .65rem;
}

.dashboard-page .notification-item-heading h3 {
    min-width: 0;
    color: #122044;
    font-size: .86rem;
    font-weight: 800;
    overflow-wrap: anywhere;
}

.dashboard-page .notification-unread-label {
    flex: 0 0 auto;
    border-radius: 999px;
    padding: .18rem .42rem;
    background: #dbeafe;
    color: #0757c7;
    font-size: .58rem;
    font-weight: 800;
    text-transform: uppercase;
}

.dashboard-page .notification-item-copy > p {
    display: -webkit-box;
    margin-top: .35rem;
    overflow: hidden;
    color: #5b6b8d;
    font-size: .78rem;
    line-height: 1.45;
    overflow-wrap: anywhere;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.dashboard-page .notification-item-meta {
    align-items: center;
    margin-top: .55rem;
}

.dashboard-page .notification-item-meta time {
    color: #8793ad;
    font-size: .67rem;
}

.dashboard-page .notification-item-meta button {
    border: 0;
    background: transparent;
    color: #0757c7;
    font-size: .68rem;
    font-weight: 750;
    cursor: pointer;
}

.dashboard-page .notification-item-meta button:hover {
    text-decoration: underline;
}

.dashboard-page .notification-empty {
    display: flex;
    min-height: 14rem;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    text-align: center;
}

.dashboard-page .notification-empty > span {
    display: inline-flex;
    width: 3.2rem;
    height: 3.2rem;
    align-items: center;
    justify-content: center;
    border-radius: 1rem;
    background: #eef4ff;
    color: #4770b8;
}

.dashboard-page .notification-empty svg {
    width: 1.55rem;
    height: 1.55rem;
}

.dashboard-page .notification-empty strong {
    margin-top: .8rem;
    color: #14213d;
    font-size: .92rem;
}

.dashboard-page .notification-empty p {
    margin-top: .25rem;
    color: #71809f;
    font-size: .76rem;
}

.dashboard-page .notification-status {
    min-height: 1.6rem;
    border-top: 1px solid #edf1f7;
    padding: .35rem 1.05rem;
    color: #5b6b8d;
    font-size: .68rem;
}

.dashboard-page .helium-remaining-shortcut {
    display: inline-flex;
    min-width: 14rem;
    max-width: 18.5rem;
    min-height: 3.25rem;
    flex: 0 1 auto;
    align-items: center;
    justify-content: center;
    gap: .6rem;
    border: 1px solid #0757c7;
    border-radius: .9rem;
    padding: .45rem .85rem;
    background: linear-gradient(135deg, #1769e8, #0757c7);
    color: #fff;
    font-size: .8rem;
    font-weight: 800;
    line-height: 1.2;
    text-align: start;
    text-decoration: none;
    box-shadow: 0 8px 18px rgba(7, 70, 216, .22);
    transition: border-color .16s ease, background-color .16s ease, color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.dashboard-page .helium-remaining-shortcut:hover,
.dashboard-page .helium-remaining-shortcut-active {
    border-color: #0647a8;
    background: linear-gradient(135deg, #0d5cd5, #0647a8);
    color: #fff;
    box-shadow: 0 10px 22px rgba(7, 70, 216, .28);
    transform: translateY(-1px);
}

.dashboard-page .helium-remaining-return-shortcut {
    border-color: #15803d;
    background: linear-gradient(135deg, #22c55e, #15803d);
    color: #fff;
    box-shadow: 0 8px 18px rgba(21, 128, 61, .24);
}

.dashboard-page .helium-remaining-return-shortcut:hover {
    border-color: #116a33;
    background: linear-gradient(135deg, #19964c, #116a33);
    color: #fff;
    box-shadow: 0 10px 22px rgba(21, 128, 61, .3);
}

.dashboard-page .helium-remaining-shortcut-icon {
    display: inline-flex;
    width: 2rem;
    height: 2rem;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    border-radius: .65rem;
    background: rgba(255, 255, 255, .16);
    color: #fff;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18);
}

.dashboard-page .helium-remaining-shortcut-icon svg {
    width: 1.35rem;
    height: 1.35rem;
}

.dashboard-page .helium-remaining-shortcut-label {
    min-width: 0;
    overflow-wrap: anywhere;
}

.dashboard-page .app-header .language-selector {
    width: clamp(10rem, 16vw, 12.5rem);
    min-width: 10rem;
}

.dashboard-page .app-header-user-copy {
    max-width: 15.5rem;
}

.dashboard-page .app-header-user-name {
    color: #071441;
    font-size: 1rem;
    font-weight: 750;
}

.dashboard-page .app-header-user-role {
    margin-top: .22rem;
    color: #61709a;
    font-size: .8rem;
}

.dashboard-page .app-header-avatar {
    width: 3.4rem;
    height: 3.4rem;
    border-radius: 50%;
    background: linear-gradient(145deg, #edf3ff, #e7eefb);
    color: #0747db;
    font-size: .88rem;
    box-shadow: none;
}

.dashboard-page .app-header-chevron {
    width: 1.35rem;
    height: 1.35rem;
    margin-inline-start: -.5rem;
    color: #36518c;
}

.support-modal-panel {
    max-width: 38rem;
    padding: 0;
    overflow: hidden;
}

.support-modal-heading {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: .9rem;
    align-items: start;
    padding: 1.4rem 1.45rem 1.15rem;
    background: linear-gradient(135deg, #eff6ff, #fff);
}

.support-modal-heading-icon {
    display: inline-flex;
    width: 3rem;
    height: 3rem;
    align-items: center;
    justify-content: center;
    border-radius: .9rem;
    background: linear-gradient(145deg, #1769e8, #0757c7);
    color: #fff;
    box-shadow: 0 8px 18px rgba(7, 87, 199, .22);
}

.support-modal-heading-icon svg {
    width: 1.55rem;
    height: 1.55rem;
}

.support-modal-heading p {
    color: #0757c7;
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.support-modal-heading h2 {
    margin-top: .12rem;
    color: #071441;
    font-size: 1.35rem;
    font-weight: 850;
}

.support-modal-heading div > span {
    display: block;
    margin-top: .3rem;
    color: #61709a;
    font-size: .82rem;
    line-height: 1.45;
}

.support-modal-close {
    width: 2.5rem;
    height: 2.5rem;
}

.support-channel-list {
    display: grid;
    gap: .85rem;
    padding: 1.1rem 1.45rem;
}

.support-channel {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: .9rem;
    border: 1px solid #e2e8f1;
    border-radius: 1rem;
    padding: 1rem;
    background: #fff;
}

.support-channel-icon {
    display: inline-flex;
    width: 2.8rem;
    height: 2.8rem;
    align-items: center;
    justify-content: center;
    border-radius: .8rem;
}

.support-channel-icon svg {
    width: 1.55rem;
    height: 1.55rem;
}

.support-channel-whatsapp .support-channel-icon {
    background: #dcfce7;
    color: #15803d;
}

.support-channel-email .support-channel-icon {
    background: #dbeafe;
    color: #0757c7;
}

.support-channel-copy h3 {
    color: #14213d;
    font-size: .95rem;
    font-weight: 800;
}

.support-channel-copy strong {
    display: block;
    margin-top: .12rem;
    color: #33446b;
    font-size: .78rem;
    overflow-wrap: anywhere;
}

.support-channel-copy p {
    margin-top: .38rem;
    color: #687797;
    font-size: .76rem;
    line-height: 1.5;
}

.support-channel-copy a {
    display: inline-flex;
    min-height: 2.45rem;
    align-items: center;
    gap: .45rem;
    margin-top: .7rem;
    border-radius: .7rem;
    padding: .5rem .75rem;
    color: #fff;
    font-size: .76rem;
    font-weight: 800;
    text-decoration: none;
}

.support-channel-whatsapp a {
    background: #168b4b;
}

.support-channel-email a {
    background: #0757c7;
}

.support-channel-copy a:hover {
    filter: brightness(.94);
}

.support-channel-copy a svg {
    width: 1rem;
    height: 1rem;
}

[dir="rtl"] .support-channel-copy a svg {
    transform: scaleX(-1);
}

.support-availability-note {
    display: flex;
    align-items: flex-start;
    gap: .6rem;
    border-top: 1px solid #e8edf5;
    padding: .85rem 1.45rem 1.15rem;
    background: #f8fafc;
    color: #61709a;
}

.support-availability-note svg {
    width: 1.15rem;
    height: 1.15rem;
    flex: 0 0 auto;
    margin-top: .05rem;
    color: #0757c7;
}

.support-availability-note p {
    font-size: .73rem;
    line-height: 1.5;
}

.dashboard-page .notification-admin {
    margin-top: 2.5rem;
    border: 1px solid #dfe6f0;
    border-radius: 1.35rem;
    background: #fff;
    box-shadow: 0 14px 38px rgba(20, 42, 86, .08);
    overflow: hidden;
}

.dashboard-page .notification-admin-heading {
    display: flex;
    gap: .9rem;
    align-items: center;
    border-bottom: 1px solid #e5ebf4;
    padding: 1.35rem 1.45rem;
    background: linear-gradient(135deg, #f1f6ff, #fff);
}

.dashboard-page .notification-admin-heading-icon {
    display: inline-flex;
    width: 3.15rem;
    height: 3.15rem;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    border-radius: .9rem;
    background: #0757c7;
    color: #fff;
}

.dashboard-page .notification-admin-heading-icon svg {
    width: 1.55rem;
    height: 1.55rem;
}

.dashboard-page .notification-admin-heading p {
    color: #0757c7;
    font-size: .7rem;
    font-weight: 850;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.dashboard-page .notification-admin-heading h2 {
    margin-top: .12rem;
    color: #071441;
    font-size: 1.25rem;
    font-weight: 850;
}

.dashboard-page .notification-admin-heading div > span {
    display: block;
    margin-top: .22rem;
    color: #637296;
    font-size: .8rem;
}

.dashboard-page .notification-admin-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(18rem, .9fr);
}

.dashboard-page .notification-compose {
    display: grid;
    gap: 1rem;
    padding: 1.4rem;
}

.dashboard-page .notification-audience legend,
.dashboard-page .notification-compose-field > label,
.dashboard-page .notification-compose-label-row label {
    color: #24365f;
    font-size: .76rem;
    font-weight: 800;
}

.dashboard-page .notification-audience-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .7rem;
    margin-top: .5rem;
}

.dashboard-page .notification-audience-options label {
    position: relative;
    cursor: pointer;
}

.dashboard-page .notification-audience-options input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.dashboard-page .notification-audience-options label > span {
    display: grid;
    min-height: 6.5rem;
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-rows: auto auto;
    gap: .18rem .55rem;
    align-content: center;
    border: 1px solid #dce4ef;
    border-radius: .85rem;
    padding: .8rem;
    background: #fbfcfe;
    transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease;
}

.dashboard-page .notification-audience-options input:checked + span {
    border-color: #1769e8;
    background: #eef5ff;
    box-shadow: 0 0 0 3px rgba(23, 105, 232, .09);
}

.dashboard-page .notification-audience-options input:focus-visible + span {
    outline: 3px solid rgba(37, 99, 235, .24);
    outline-offset: 2px;
}

.dashboard-page .notification-audience-options svg {
    width: 1.3rem;
    height: 1.3rem;
    grid-row: 1 / span 2;
    color: #1769e8;
}

.dashboard-page .notification-audience-options strong {
    color: #17264a;
    font-size: .8rem;
}

.dashboard-page .notification-audience-options small {
    color: #6c7a98;
    font-size: .68rem;
    line-height: 1.35;
}

.dashboard-page .notification-compose-field {
    display: grid;
    gap: .42rem;
}

.dashboard-page .notification-compose-field input,
.dashboard-page .notification-compose-field select,
.dashboard-page .notification-compose-field textarea {
    width: 100%;
    border: 1px solid #d8e1ed;
    border-radius: .75rem;
    background: #fff;
    color: #17264a;
    font-size: .82rem;
    outline: none;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.dashboard-page .notification-compose-field input,
.dashboard-page .notification-compose-field select {
    min-height: 2.85rem;
    padding: .65rem .8rem;
}

.dashboard-page .notification-compose-field textarea {
    min-height: 8rem;
    padding: .75rem .8rem;
    line-height: 1.5;
    resize: vertical;
}

.dashboard-page .notification-compose-field input:focus,
.dashboard-page .notification-compose-field select:focus,
.dashboard-page .notification-compose-field textarea:focus {
    border-color: #1769e8;
    box-shadow: 0 0 0 3px rgba(23, 105, 232, .1);
}

.dashboard-page .notification-compose-label-row {
    display: flex;
    justify-content: space-between;
    gap: .8rem;
}

.dashboard-page .notification-compose-label-row span {
    color: #8793aa;
    font-size: .67rem;
}

.dashboard-page .notification-submit {
    display: inline-flex;
    min-height: 2.9rem;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    border: 0;
    border-radius: .78rem;
    padding: .7rem 1rem;
    background: linear-gradient(135deg, #1769e8, #0757c7);
    color: #fff;
    font-size: .82rem;
    font-weight: 850;
    cursor: pointer;
    box-shadow: 0 9px 20px rgba(7, 87, 199, .18);
}

.dashboard-page .notification-submit:hover {
    filter: brightness(.95);
}

.dashboard-page .notification-submit svg {
    width: 1.15rem;
    height: 1.15rem;
}

.dashboard-page .notification-history {
    min-width: 0;
    border-inline-start: 1px solid #e5ebf4;
    background: #f8fafc;
}

.dashboard-page .notification-history-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .8rem;
    border-bottom: 1px solid #e5ebf4;
    padding: 1rem 1.15rem;
}

.dashboard-page .notification-history-heading h3 {
    color: #17264a;
    font-size: .88rem;
    font-weight: 850;
}

.dashboard-page .notification-history-heading span {
    display: inline-flex;
    min-width: 1.55rem;
    height: 1.55rem;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #e5edfa;
    color: #4b6089;
    font-size: .68rem;
    font-weight: 800;
}

.dashboard-page .notification-history-list {
    max-height: 31rem;
    overflow-y: auto;
}

.dashboard-page .notification-history-list article {
    border-bottom: 1px solid #e5ebf4;
    padding: 1rem 1.15rem;
}

.dashboard-page .notification-history-item-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .65rem;
}

.dashboard-page .notification-history-item-heading span {
    border-radius: 999px;
    padding: .18rem .5rem;
    font-size: .61rem;
    font-weight: 800;
}

.dashboard-page .notification-history-item-heading .is-general {
    background: #dbeafe;
    color: #0757c7;
}

.dashboard-page .notification-history-item-heading .is-individual {
    background: #f3e8ff;
    color: #7e22ce;
}

.dashboard-page .notification-history-item-heading time {
    color: #8b96ab;
    font-size: .65rem;
}

.dashboard-page .notification-history-list h4 {
    margin-top: .5rem;
    color: #17264a;
    font-size: .82rem;
    font-weight: 800;
    overflow-wrap: anywhere;
}

.dashboard-page .notification-history-list p {
    display: -webkit-box;
    margin-top: .3rem;
    overflow: hidden;
    color: #63718e;
    font-size: .72rem;
    line-height: 1.45;
    overflow-wrap: anywhere;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.dashboard-page .notification-history-list small {
    display: block;
    margin-top: .45rem;
    color: #7e22ce;
    font-size: .66rem;
    font-weight: 700;
}

.dashboard-page .notification-history-empty {
    display: grid;
    min-height: 15rem;
    place-items: center;
    align-content: center;
    gap: .65rem;
    padding: 2rem;
    color: #8290aa;
    text-align: center;
}

.dashboard-page .notification-history-empty svg {
    width: 2rem;
    height: 2rem;
}

.dashboard-page .notification-history-empty p {
    max-width: 15rem;
    font-size: .76rem;
}

.dashboard-page .app-main {
    padding-top: 2.125rem;
    background: transparent;
}

.dashboard-page .dashboard-shell {
    max-width: none;
}

.dashboard-page .dashboard-hero {
    position: relative;
    min-height: 12.5rem;
    border-radius: 1.25rem;
    padding: 1.15rem 2.5rem;
    background:
        url("../images/dashboard-hero-art.svg") center / 100% 100% no-repeat,
        linear-gradient(118deg, rgba(0, 26, 116, .08), transparent 52%),
        linear-gradient(158deg, #074adc 0%, #073ec5 42%, #052f9f 68%, #2462d6 100%);
    box-shadow: 0 12px 28px rgba(7, 39, 125, .16);
}

.dashboard-page .dashboard-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    border-radius: inherit;
    background: linear-gradient(165deg, transparent 0 58%, rgba(0, 26, 117, .1) 79%, transparent 100%);
    pointer-events: none;
}

.dashboard-page .dashboard-hero::after {
    content: "";
    position: absolute;
    z-index: 0;
    left: 31%;
    bottom: -20.2rem;
    width: 55rem;
    height: 27rem;
    border: 1px solid rgba(104, 168, 255, .29);
    border-radius: 50%;
    transform: rotate(-3deg);
    pointer-events: none;
}

.dashboard-page .dashboard-hero::after,
.dashboard-page .hero-grid,
.dashboard-page .hero-balloons {
    display: none;
}

.dashboard-page .dashboard-hero-content {
    max-width: 36rem;
}

.dashboard-page .dashboard-hero-badge {
    min-height: 2.25rem;
    border-radius: .8rem;
    padding: .4rem .8rem;
    background: rgba(109, 160, 255, .28);
    color: #fff;
    font-size: .88rem;
    font-weight: 650;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .07);
}

.dashboard-page .dashboard-hero-badge svg {
    width: 1.1rem;
    height: 1.1rem;
    color: #5ce0d8;
}

.dashboard-page .dashboard-hero-title {
    margin-top: 1rem;
    color: #fff;
    font-size: 2.6rem;
    font-weight: 780;
    line-height: 1.08;
    letter-spacing: -.038em;
    overflow-wrap: anywhere;
}

.dashboard-page .dashboard-hero-description {
    max-width: 28rem;
    margin-top: .7rem;
    color: #eff4ff;
    font-size: 1rem;
    line-height: 1.55;
}

.dashboard-page .hero-grid {
    z-index: 1;
    inset: 0 0 auto auto;
    width: 6rem;
    height: 7rem;
    opacity: .45;
    background-image: radial-gradient(circle, rgba(213, 231, 255, .9) 1px, transparent 1.15px);
    background-size: .78rem .78rem;
    mask-image: linear-gradient(135deg, transparent 0, #000 25%, #000 70%, transparent 100%);
}

.dashboard-page .hero-balloons {
    inset: 0;
    width: auto;
    height: auto;
    opacity: 1;
    overflow: hidden;
}

.dashboard-page .hero-balloons span {
    position: absolute;
    border-radius: 50%;
    background: transparent;
}

.dashboard-page .hero-balloons span:nth-child(1) {
    top: -31rem;
    right: -8rem;
    left: auto;
    width: 49rem;
    height: 43rem;
    border: 5.5rem solid rgba(96, 153, 255, .095);
    transform: rotate(-15deg);
}

.dashboard-page .hero-balloons span:nth-child(2) {
    top: -23rem;
    right: -2rem;
    left: auto;
    width: 36rem;
    height: 32rem;
    border: 4.8rem solid rgba(104, 165, 255, .11);
    transform: rotate(-17deg);
}

.dashboard-page .hero-balloons span:nth-child(3) {
    right: -8.5rem;
    bottom: -21rem;
    left: auto;
    top: auto;
    width: 55rem;
    height: 28rem;
    border: 1px solid rgba(105, 168, 255, .34);
    background: linear-gradient(180deg, rgba(35, 104, 229, .17), rgba(1, 42, 147, .05));
    transform: rotate(-8deg);
}

.dashboard-page .dashboard-section-heading {
    margin-top: 2.25rem;
}

.dashboard-page .dashboard-eyebrow {
    color: #0746d8;
    font-size: .82rem;
    font-weight: 800;
    line-height: 1.25rem;
}

.dashboard-page .dashboard-section-title {
    margin-top: .38rem;
    color: #071441;
    font-size: 1.82rem;
    font-weight: 780;
    line-height: 2.25rem;
    letter-spacing: -.025em;
}

.dashboard-page .dashboard-section-description {
    margin-top: .5rem;
    color: #68769d;
    font-size: 1rem;
    line-height: 1.5rem;
}

.dashboard-page .module-count-badge {
    display: inline-flex;
    min-height: 2.5rem;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    border-radius: .9rem;
    padding: .55rem 1.12rem;
    background: #edf3ff;
    color: #0646d9;
    font-size: .88rem;
    font-weight: 750;
}

.dashboard-page .module-grid {
    margin-top: 1.08rem;
    gap: 1.65rem;
}

.dashboard-page .dashboard-section-heading,
.dashboard-page .module-grid {
    margin-right: .45rem;
    margin-left: .45rem;
}

.dashboard-page .module-card {
    display: flex;
    min-height: 20.8rem;
    flex-direction: column;
    border-color: #e2e7f0;
    border-radius: 1.2rem;
    padding: 1.6rem;
    padding-bottom: 1.5rem;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 10px 28px rgba(17, 43, 91, .055);
}

.dashboard-page .module-card::after {
    display: none;
}

.dashboard-page .module-icon {
    width: 4.45rem;
    height: 4.45rem;
    border-radius: .9rem;
}

.dashboard-page .module-icon svg {
    width: 2.55rem;
    height: 2.55rem;
}

.dashboard-page .module-icon-calculadora-helio {
    background: #eef4ff;
    color: #074af0;
    box-shadow: inset 0 0 0 1px #e0eaff;
}

.dashboard-page .module-icon-agendafest {
    background: #e9faf4;
    color: #059669;
    box-shadow: inset 0 0 0 1px #d6f3e8;
}

.dashboard-page .module-icon-calculafest {
    background: #f5f2ff;
    color: #762ae9;
    box-shadow: inset 0 0 0 1px #ece5ff;
}

.dashboard-page .module-card .status-badge {
    min-height: 2.4rem;
    gap: .38rem;
    padding: .52rem .9rem;
    font-size: .86rem;
    font-weight: 700;
}

.dashboard-page .module-card .status-active {
    background: #e7f8f1;
    color: #079669;
}

.dashboard-page .module-card .status-icon {
    width: 1.05rem;
    height: 1.05rem;
    flex: 0 0 auto;
}

.dashboard-page .module-card-copy {
    margin-top: 1.65rem;
}

.dashboard-page .module-card-title {
    color: #071441;
    font-size: 1.4rem;
    font-weight: 780;
    line-height: 1.75rem;
    letter-spacing: -.025em;
}

.dashboard-page .module-card-description {
    min-height: 0;
    margin-top: .55rem;
    color: #63739e;
    font-size: 1.05rem;
    line-height: 1.62;
}

.dashboard-page .module-card-footer {
    margin-top: auto;
    padding-top: .8rem;
}

.dashboard-page .module-action {
    min-height: 3.65rem;
    border-radius: .8rem;
    padding: .85rem 1.15rem;
    background: #eef4ff;
    color: #0646db;
    font-size: 1rem;
    font-weight: 750;
}

.dashboard-page .module-action:hover {
    background: #0646db;
    color: #fff;
}

.dashboard-page .module-action svg {
    width: 1.4rem;
    height: 1.4rem;
}

.dashboard-page a:focus-visible,
.dashboard-page button:focus-visible {
    outline: 2px solid #fff;
    box-shadow: 0 0 0 4px #1769e8;
}

@media (min-width: 1024px) {
    .dashboard-page .app-shell {
        padding-left: 19.5rem !important;
    }

    .dashboard-page .app-header {
        padding-right: max(1.25rem, env(safe-area-inset-right));
        padding-left: max(2.05rem, env(safe-area-inset-left));
    }

    .dashboard-page .app-main {
        padding-right: max(1.85rem, env(safe-area-inset-right));
        padding-left: max(2.3rem, env(safe-area-inset-left));
    }
}

@media (max-width: 1023px) {
    .dashboard-page .app-sidebar {
        border-radius: 0 1.15rem 1.15rem 0;
    }

    .dashboard-page .app-header {
        height: calc(5rem + env(safe-area-inset-top));
    }

    .dashboard-page .app-header-menu {
        width: 3rem;
        height: 3rem;
    }

    .dashboard-page .app-main {
        padding-top: 1.75rem;
    }

    .dashboard-page .dashboard-hero {
        min-height: 12.75rem;
    }

    .dashboard-page .dashboard-hero-title {
        font-size: clamp(2.2rem, 5vw, 2.55rem);
    }
}

@media (max-width: 1199px) {
    .dashboard-page .app-header-user-copy {
        display: none;
    }

    .dashboard-page .notification-admin-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-page .notification-history {
        border-top: 1px solid #e5ebf4;
        border-inline-start: 0;
    }
}

@media (max-width: 1279px) {
    .dashboard-page .app-header-copy,
    .dashboard-page .app-header-user-copy {
        display: none;
    }
}

@media (max-width: 767px) {
    .dashboard-page .hero-balloons {
        right: 0;
        opacity: .58;
    }

    .dashboard-page .module-card {
        min-height: 20rem;
    }
}

@media (max-width: 639px) {
    .dashboard-page .app-header {
        height: calc(4.5rem + env(safe-area-inset-top));
        padding-right: max(1rem, env(safe-area-inset-right));
        padding-left: max(1rem, env(safe-area-inset-left));
    }

    .dashboard-page .app-header-leading {
        gap: .85rem;
    }

    .dashboard-page .app-header-copy {
        display: none;
    }

    .dashboard-page .helium-remaining-shortcut {
        width: 2.75rem;
        min-width: 2.75rem;
        min-height: 2.75rem;
        gap: 0;
        border-radius: .78rem;
        padding: .3rem;
        font-size: .68rem;
    }

    .dashboard-page .helium-remaining-shortcut-label {
        display: none;
    }

    .dashboard-page .helium-remaining-shortcut-icon {
        width: 1.85rem;
        height: 1.85rem;
        border-radius: .55rem;
    }

    .dashboard-page .helium-remaining-shortcut-icon svg {
        width: 1.2rem;
        height: 1.2rem;
    }

    .dashboard-page.helium-module-page .app-header {
        height: calc(4.5rem + env(safe-area-inset-top));
        align-items: center;
        gap: .35rem;
        padding-top: env(safe-area-inset-top);
    }

    .dashboard-page.helium-module-page .app-header-leading {
        flex: 0 0 auto;
    }

    .dashboard-page.helium-module-page .app-header-user {
        min-width: 0;
        flex: 1 1 auto;
        justify-content: flex-end;
        gap: .25rem;
    }

    .dashboard-page.helium-module-page .helium-remaining-shortcut {
        position: static;
        width: clamp(7.25rem, 42vw, 12.5rem);
        max-width: 12.5rem;
        min-width: 0;
        min-height: 2.5rem;
        flex: 0 1 auto;
        gap: .35rem;
        padding: .28rem .4rem;
        font-size: .75rem;
        line-height: 1.05;
        text-align: start;
    }

    .dashboard-page.helium-module-page .app-header [data-modal-open="support-center-modal"] {
        position: relative;
        right: auto;
        bottom: auto;
        left: auto;
    }

    .dashboard-page.helium-module-page .helium-remaining-shortcut .helium-remaining-shortcut-label {
        display: inline;
        white-space: normal;
    }

    .dashboard-page.helium-module-page .helium-remaining-shortcut-icon {
        width: 1.6rem;
        height: 1.6rem;
    }

    .dashboard-page.helium-module-page .helium-remaining-shortcut-icon svg {
        width: 1.05rem;
        height: 1.05rem;
    }

    .dashboard-page.helium-module-page .app-header-menu,
    .dashboard-page.helium-module-page .app-header-tool-button,
    .dashboard-page.helium-module-page .app-header-avatar {
        width: 2.5rem;
        height: 2.5rem;
    }

    .dashboard-page.helium-module-page .app-header-account-trigger {
        min-height: 2.5rem;
    }

    .dashboard-page .app-header-menu {
        width: 2.75rem;
        height: 2.75rem;
        border-radius: .75rem;
    }

    .dashboard-page .app-header-kicker {
        font-size: .82rem;
    }

    .dashboard-page .app-header-subtitle,
    .dashboard-page .app-header-user-copy,
    .dashboard-page .app-header-chevron {
        display: none;
    }

    .dashboard-page .app-header-avatar {
        width: 2.75rem;
        height: 2.75rem;
        border-radius: .85rem;
    }

    .dashboard-page .app-header-user {
        gap: .42rem;
    }

    .dashboard-page .app-header-tool-button {
        width: 2.75rem;
        height: 2.75rem;
        border-radius: .78rem;
    }

    .dashboard-page .app-header-tool-button svg {
        width: 1.3rem;
        height: 1.3rem;
    }

    .dashboard-page .notification-panel {
        position: fixed;
        inset-block-start: calc(4.5rem + env(safe-area-inset-top) + .45rem);
        inset-inline: max(.75rem, env(safe-area-inset-left)) max(.75rem, env(safe-area-inset-right));
        width: auto;
        max-height: calc(100vh - 6rem - env(safe-area-inset-top));
    }

    .dashboard-page .notification-list {
        max-height: calc(100vh - 12rem - env(safe-area-inset-top));
    }

    .support-modal {
        padding: .75rem;
    }

    .support-modal-heading {
        gap: .7rem;
        padding: 1rem;
    }

    .support-modal-heading-icon {
        width: 2.6rem;
        height: 2.6rem;
    }

    .support-modal-heading h2 {
        font-size: 1.12rem;
    }

    .support-channel-list {
        padding: .85rem;
    }

    .support-channel {
        gap: .7rem;
        padding: .8rem;
    }

    .support-channel-icon {
        width: 2.45rem;
        height: 2.45rem;
    }

    .support-availability-note {
        padding: .75rem .9rem .9rem;
    }

    .dashboard-page .notification-admin {
        margin-top: 1.5rem;
        border-radius: 1rem;
    }

    .dashboard-page .notification-admin-heading,
    .dashboard-page .notification-compose {
        padding: 1rem;
    }

    .dashboard-page .notification-audience-options {
        grid-template-columns: 1fr;
    }

    .dashboard-page .app-main {
        padding: 1.25rem max(1rem, env(safe-area-inset-right)) max(2rem, env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-left));
    }

    .dashboard-page .dashboard-hero {
        min-height: 13rem;
        border-radius: 1.1rem;
        padding: 1.1rem;
        background-position: right center, center, center;
        background-size: auto 100%, auto, auto;
    }

    .dashboard-page .dashboard-hero-content {
        max-width: 25rem;
    }

    .dashboard-page .dashboard-hero-badge {
        min-height: 2.15rem;
        font-size: .78rem;
    }

    .dashboard-page .dashboard-hero-title {
        margin-top: 1rem;
        font-size: clamp(1.9rem, 9vw, 2.35rem);
        line-height: 1.08;
    }

    .dashboard-page .dashboard-hero-description {
        margin-top: .7rem;
        font-size: .93rem;
        line-height: 1.5;
    }

    .dashboard-page .hero-grid {
        width: 5rem;
        height: 7rem;
        opacity: .3;
    }

    .dashboard-page .dashboard-section-heading {
        margin-top: 1.75rem;
        align-items: flex-start;
    }

    .dashboard-page .dashboard-section-title {
        font-size: 1.55rem;
        line-height: 2rem;
    }

    .dashboard-page .module-count-badge {
        min-height: 2.25rem;
        padding: .45rem .8rem;
        font-size: .78rem;
    }

    .dashboard-page .module-grid {
        margin-top: 1rem;
        gap: 1rem;
    }

    .dashboard-page .module-card {
        min-height: 19.5rem;
        border-radius: 1rem;
        padding: 1.2rem;
    }

    .dashboard-page .module-icon {
        width: 3.8rem;
        height: 3.8rem;
    }

    .dashboard-page .module-icon svg {
        width: 2.15rem;
        height: 2.15rem;
    }

    .dashboard-page .module-card-copy {
        margin-top: 1.25rem;
    }

    .dashboard-page .module-action {
        min-height: 3.4rem;
    }
}

/* Full-bleed artwork for the three dashboard modules. The original PNG is
   kept lossless and rendered as three exact 724 × 724 sprite frames. */
.dashboard-page .module-card-with-art {
    isolation: isolate;
    min-height: 0;
    aspect-ratio: 1.43 / 1;
    border-color: rgba(255, 255, 255, .82);
    padding: 0;
    background: #071b57;
    box-shadow: 0 16px 34px rgba(16, 36, 82, .16);
}

.dashboard-page .module-card-with-art::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg, transparent 31%, rgba(1, 15, 58, .12) 47%, rgba(1, 12, 45, .93) 100%);
    pointer-events: none;
}

.dashboard-page .module-card-agendafest::before {
    background: linear-gradient(180deg, transparent 31%, rgba(0, 53, 29, .1) 47%, rgba(0, 46, 28, .92) 100%);
}

.dashboard-page .module-card-calculafest::before {
    background: linear-gradient(180deg, transparent 31%, rgba(35, 5, 91, .1) 47%, rgba(31, 4, 76, .93) 100%);
}

.dashboard-page .module-card-with-art .module-card-media {
    position: absolute;
    inset: 0;
    z-index: 0;
    display: block;
    overflow: hidden;
}

.dashboard-page .module-card-with-art .module-card-art {
    position: absolute;
    inset: 0;
    display: block;
    max-width: none;
    background-image: url("../images/dashboard-module-cards.png");
    background-repeat: no-repeat;
    background-position-y: center;
    background-size: 310% auto;
    image-rendering: auto;
}

.dashboard-page .module-card-art-calculadora-helio {
    background-position-x: .8%;
}

.dashboard-page .module-card-art-agendafest {
    background-position-x: 49.8%;
}

.dashboard-page .module-card-art-calculafest {
    background-position-x: 98.9%;
}

.dashboard-page .module-card-with-art:hover .module-card-art {
    transform: none;
}

.dashboard-page .module-card-with-art.module-card-locked .module-card-art {
    filter: saturate(.55);
    opacity: .74;
}

.dashboard-page .module-card-with-art.module-card-locked::before {
    background: linear-gradient(180deg, rgba(11, 20, 42, .17), rgba(5, 13, 35, .95));
}

.dashboard-page .module-card-with-art .status-badge {
    position: absolute;
    top: 1rem;
    inset-inline-end: 1rem;
    z-index: 3;
    min-height: 2rem;
    border: 1px solid rgba(255, 255, 255, .7);
    padding: .38rem .72rem;
    background: rgba(247, 255, 252, .92);
    font-size: .74rem;
    box-shadow: 0 8px 20px rgba(4, 24, 58, .14);
    backdrop-filter: blur(8px);
}

.dashboard-page .module-card-with-art .status-locked {
    background: rgba(248, 250, 252, .92);
}

.dashboard-page .module-card-with-art .module-card-copy {
    position: absolute;
    right: 1.5rem;
    bottom: 4.3rem;
    left: 1.5rem;
    z-index: 2;
    margin: 0;
}

.dashboard-page .module-card-with-art .module-card-title {
    color: #fff;
    font-size: 1.2rem;
    line-height: 1.45rem;
    text-shadow: 0 2px 12px rgba(1, 8, 30, .28);
}

.dashboard-page .module-card-with-art .module-card-description {
    display: -webkit-box;
    min-height: 0;
    margin-top: .4rem;
    overflow: hidden;
    color: rgba(255, 255, 255, .86);
    font-size: .8rem;
    line-height: 1.35;
    text-shadow: 0 2px 10px rgba(1, 8, 30, .24);
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.dashboard-page .module-card-with-art .module-card-footer {
    position: absolute;
    right: .75rem;
    bottom: .75rem;
    left: .75rem;
    z-index: 2;
    margin: 0;
    padding: 0;
}

.dashboard-page .module-card-with-art .module-action {
    min-height: 2.75rem;
    border: 1px solid rgba(255, 255, 255, .58);
    background: rgba(255, 255, 255, .91);
    color: #0646db;
    box-shadow: 0 8px 24px rgba(1, 14, 47, .15);
    backdrop-filter: blur(10px);
}

.dashboard-page .module-card-agendafest .module-action {
    color: #087a4b;
}

.dashboard-page .module-card-calculafest .module-action {
    color: #6d24d8;
}

.dashboard-page .module-card-calculadora-helio .module-action:hover {
    border-color: #0754e8;
    background: #0754e8;
    color: #fff;
}

.dashboard-page .module-card-agendafest .module-action:hover {
    border-color: #07965d;
    background: #07965d;
    color: #fff;
}

.dashboard-page .module-card-calculafest .module-action:hover {
    border-color: #7426df;
    background: #7426df;
    color: #fff;
}

@media (max-width: 419px) {
    .dashboard-page .module-card-with-art {
        aspect-ratio: 1.25 / 1;
    }

    .dashboard-page .module-card-with-art .module-card-copy {
        right: 1.2rem;
        bottom: 4.3rem;
        left: 1.2rem;
    }

    .dashboard-page .module-card-with-art .module-card-title {
        font-size: 1.12rem;
    }

    .dashboard-page .module-card-with-art .module-card-description {
        font-size: .78rem;
    }
}

.dashboard-page .sidebar-modules-label {
    margin-top: 1.45rem;
}

.dashboard-page .sidebar-module-list {
    display: grid;
    gap: .42rem;
    margin-top: .65rem;
}

.dashboard-page .sidebar-module-link {
    display: flex;
    min-height: 2.85rem;
    align-items: center;
    gap: .75rem;
    border: 1px solid rgba(74, 119, 211, .2);
    border-radius: .78rem;
    padding: .48rem .7rem;
    background: rgba(5, 32, 91, .52);
    color: #d2def7;
    font-size: .88rem;
    font-weight: 650;
    text-decoration: none;
    transition: border-color .16s ease, background-color .16s ease, color .16s ease, transform .16s ease;
}

.dashboard-page .sidebar-module-link-calculadora-helio {
    border-color: rgba(49, 111, 238, .24);
    background: linear-gradient(90deg, rgba(13, 71, 183, .28), rgba(4, 31, 89, .48));
}

.dashboard-page .sidebar-module-link-agendafest {
    border-color: rgba(19, 157, 113, .2);
    background: linear-gradient(90deg, rgba(4, 112, 79, .2), rgba(4, 31, 89, .48));
}

.dashboard-page .sidebar-module-link-calculafest {
    border-color: rgba(131, 77, 229, .22);
    background: linear-gradient(90deg, rgba(92, 42, 172, .22), rgba(4, 31, 89, .48));
}

.dashboard-page a.sidebar-module-link:hover {
    border-color: rgba(87, 139, 240, .25);
    background: rgba(21, 67, 158, .38);
    color: #fff;
    transform: translateX(2px);
}

.dashboard-page .sidebar-module-icon {
    display: inline-flex;
    width: 1.9rem;
    height: 1.9rem;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    border-radius: .58rem;
    background: rgba(30, 92, 216, .24);
    color: #77a8ff;
}

.dashboard-page .sidebar-module-icon svg {
    width: 1.15rem;
    height: 1.15rem;
}

.dashboard-page .sidebar-module-link-agendafest .sidebar-module-icon {
    background: rgba(5, 150, 105, .18);
    color: #5ee0b0;
}

.dashboard-page .sidebar-module-link-calculafest .sidebar-module-icon {
    background: rgba(126, 58, 237, .2);
    color: #b794ff;
}

.dashboard-page .sidebar-module-name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dashboard-page .sidebar-module-link-disabled {
    cursor: not-allowed;
    opacity: .5;
}

/* Integrated module workspace */
.dashboard-page a.sidebar-module-link.sidebar-module-link-active {
    border-color: rgba(92, 148, 255, .78);
    background: linear-gradient(102deg, rgba(7, 75, 226, .92), rgba(20, 61, 158, .82));
    color: #fff;
    box-shadow: 0 9px 24px rgba(0, 31, 110, .28), inset 0 1px 0 rgba(255, 255, 255, .12);
}

.dashboard-page a.sidebar-module-link-agendafest.sidebar-module-link-active {
    border-color: rgba(51, 211, 153, .62);
    background: linear-gradient(102deg, rgba(4, 128, 88, .85), rgba(3, 63, 90, .76));
}

.dashboard-page a.sidebar-module-link-calculafest.sidebar-module-link-active {
    border-color: rgba(167, 119, 255, .67);
    background: linear-gradient(102deg, rgba(112, 44, 207, .86), rgba(44, 35, 126, .78));
}

.dashboard-page a.sidebar-module-link.sidebar-module-link-active:hover {
    color: #fff;
    transform: translateX(2px);
    filter: brightness(1.05);
}

.dashboard-page.module-page .module-app-main {
    min-width: 0;
}

.dashboard-page.module-page .module-workspace {
    --module-accent: #0b5ae8;
    --module-accent-dark: #073cb4;
    --module-accent-rgb: 11, 90, 232;
    --module-soft: #edf4ff;
    --module-soft-border: #dce8ff;
    --module-hero-start: #0637b8;
    --module-hero-middle: #0757dd;
    --module-hero-end: #2673e8;
    width: 100%;
    max-width: 94rem;
    margin: 0 auto;
}

.dashboard-page.module-page .module-workspace-green {
    --module-accent: #079669;
    --module-accent-dark: #047857;
    --module-accent-rgb: 7, 150, 105;
    --module-soft: #eafaf4;
    --module-soft-border: #d1f3e6;
    --module-hero-start: #036a4a;
    --module-hero-middle: #079669;
    --module-hero-end: #25b75f;
}

.dashboard-page.module-page .module-workspace-purple {
    --module-accent: #762ae9;
    --module-accent-dark: #5c1fc0;
    --module-accent-rgb: 118, 42, 233;
    --module-soft: #f5f1ff;
    --module-soft-border: #e9e0ff;
    --module-hero-start: #42149b;
    --module-hero-middle: #6820ce;
    --module-hero-end: #9633ed;
}

.dashboard-page.module-page .module-workspace-hero {
    position: relative;
    isolation: isolate;
    display: flex;
    min-height: 13rem;
    overflow: hidden;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 1.25rem;
    padding: 2rem clamp(1.75rem, 3.2vw, 3.25rem);
    background:
        radial-gradient(circle at 74% -20%, rgba(255, 255, 255, .22), transparent 32%),
        linear-gradient(125deg, var(--module-hero-start), var(--module-hero-middle) 58%, var(--module-hero-end));
    box-shadow: 0 13px 32px rgba(var(--module-accent-rgb), .2);
}

.dashboard-page.module-page .module-workspace-hero::before,
.dashboard-page.module-page .module-workspace-hero::after {
    content: "";
    position: absolute;
    z-index: -1;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 50%;
    pointer-events: none;
}

.dashboard-page.module-page .module-workspace-hero::before {
    right: -7rem;
    bottom: -14rem;
    width: min(52rem, 62vw);
    height: 25rem;
    transform: rotate(-9deg);
    background: linear-gradient(160deg, rgba(255, 255, 255, .09), transparent 62%);
}

.dashboard-page.module-page .module-workspace-hero::after {
    right: 10%;
    bottom: -20rem;
    width: min(59rem, 68vw);
    height: 27rem;
    opacity: .65;
}

.dashboard-page.module-page .module-workspace-hero-art {
    position: absolute;
    z-index: -1;
    inset: 0 0 auto auto;
    width: 12rem;
    height: 9rem;
    opacity: .36;
    background-image: radial-gradient(circle, rgba(255, 255, 255, .82) 1px, transparent 1.2px);
    background-size: .75rem .75rem;
    -webkit-mask-image: linear-gradient(135deg, transparent 4%, #000 34%, #000 72%, transparent 100%);
    mask-image: linear-gradient(135deg, transparent 4%, #000 34%, #000 72%, transparent 100%);
    pointer-events: none;
}

.dashboard-page.module-page .module-workspace-hero-copy {
    position: relative;
    z-index: 1;
    width: min(100%, 42rem);
    padding-inline-end: 7rem;
}

.dashboard-page.module-page .module-access-badge {
    display: inline-flex;
    min-height: 2.25rem;
    align-items: center;
    gap: .48rem;
    border: 1px solid rgba(255, 255, 255, .13);
    border-radius: .78rem;
    padding: .4rem .78rem;
    background: rgba(255, 255, 255, .16);
    color: #fff;
    font-size: .82rem;
    font-weight: 700;
    line-height: 1.2;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
    backdrop-filter: blur(8px);
}

.dashboard-page.module-page .module-access-badge svg {
    width: 1.12rem;
    height: 1.12rem;
    flex: 0 0 auto;
    color: #8ef2d0;
}

.dashboard-page.module-page .module-workspace-hero h1 {
    margin: .9rem 0 0;
    color: #fff;
    font-size: clamp(2.15rem, 3.5vw, 2.8rem);
    font-weight: 790;
    letter-spacing: -.04em;
    line-height: 1.08;
    text-wrap: balance;
}

.dashboard-page.module-page .module-workspace-hero p {
    max-width: 36rem;
    margin: .65rem 0 0;
    color: rgba(255, 255, 255, .9);
    font-size: 1rem;
    line-height: 1.55;
}

.dashboard-page.module-page .module-workspace-hero-icon {
    position: absolute;
    z-index: 1;
    top: 50%;
    inset-inline-end: clamp(2rem, 5vw, 5rem);
    display: inline-flex;
    width: clamp(5.2rem, 7vw, 6.7rem);
    height: clamp(5.2rem, 7vw, 6.7rem);
    transform: translateY(-50%) rotate(2deg);
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: 1.5rem;
    background: linear-gradient(145deg, rgba(255, 255, 255, .24), rgba(255, 255, 255, .08));
    color: #fff;
    box-shadow: 0 18px 38px rgba(0, 24, 75, .22), inset 0 1px 0 rgba(255, 255, 255, .22);
    backdrop-filter: blur(10px);
}

.dashboard-page.module-page .module-workspace-hero-icon svg {
    width: 55%;
    height: 55%;
}

.dashboard-page.module-page .module-workspace-panel {
    margin-top: 1.5rem;
    border: 1px solid #e1e7f1;
    border-radius: 1.25rem;
    padding: clamp(1.35rem, 2.6vw, 2rem);
    background: rgba(255, 255, 255, .97);
    box-shadow: 0 12px 34px rgba(20, 46, 92, .06);
}

.dashboard-page.module-page .module-workspace-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.5rem;
}

.dashboard-page.module-page .module-workspace-eyebrow {
    margin: 0;
    color: var(--module-accent);
    font-size: .76rem;
    font-weight: 800;
    letter-spacing: .055em;
    line-height: 1.25;
    text-transform: uppercase;
}

.dashboard-page.module-page .module-workspace-heading h2 {
    margin: .38rem 0 0;
    color: var(--dashboard-navy);
    font-size: clamp(1.45rem, 2.4vw, 1.85rem);
    font-weight: 780;
    letter-spacing: -.028em;
    line-height: 1.2;
}

.dashboard-page.module-page .module-workspace-heading p:not(.module-workspace-eyebrow) {
    max-width: 46rem;
    margin: .5rem 0 0;
    color: var(--dashboard-muted);
    font-size: .95rem;
    line-height: 1.55;
}

.dashboard-page.module-page .module-connected-badge {
    display: inline-flex;
    min-height: 2.35rem;
    flex: 0 0 auto;
    align-items: center;
    gap: .42rem;
    border-radius: 999px;
    padding: .5rem .82rem;
    background: #e8f8f1;
    color: #078c63;
    font-size: .78rem;
    font-weight: 750;
}

.dashboard-page.module-page .module-connected-badge svg {
    width: 1rem;
    height: 1rem;
    flex: 0 0 auto;
}

.dashboard-page.module-page .module-feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.dashboard-page.module-page .module-feature-card {
    min-width: 0;
    border: 1px solid var(--module-soft-border);
    border-radius: 1rem;
    padding: 1.2rem;
    background: linear-gradient(145deg, #fff, var(--module-soft));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .75);
}

.dashboard-page.module-page .module-feature-icon {
    display: inline-flex;
    width: 2.65rem;
    height: 2.65rem;
    align-items: center;
    justify-content: center;
    border-radius: .8rem;
    background: rgba(var(--module-accent-rgb), .11);
    color: var(--module-accent);
    box-shadow: inset 0 0 0 1px rgba(var(--module-accent-rgb), .08);
}

.dashboard-page.module-page .module-feature-icon svg {
    width: 1.3rem;
    height: 1.3rem;
}

.dashboard-page.module-page .module-feature-card h3 {
    margin: .9rem 0 0;
    color: var(--dashboard-navy);
    font-size: 1rem;
    font-weight: 760;
    line-height: 1.35;
}

.dashboard-page.module-page .module-feature-card p {
    margin: .42rem 0 0;
    color: var(--dashboard-muted);
    font-size: .85rem;
    line-height: 1.55;
}

.dashboard-page.module-page .module-workspace-note {
    display: flex;
    min-height: 5rem;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    margin-top: 1.25rem;
    border: 1px solid #e5eaf2;
    border-radius: 1rem;
    padding: 1rem 1.2rem;
    background: #f8faff;
}

.dashboard-page.module-page .module-workspace-note strong {
    color: var(--dashboard-navy);
    font-size: .9rem;
}

.dashboard-page.module-page .module-workspace-note p {
    margin: .25rem 0 0;
    color: var(--dashboard-muted);
    font-size: .82rem;
    line-height: 1.45;
}

.dashboard-page.module-page .module-dashboard-link {
    display: inline-flex;
    min-height: 2.7rem;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    border: 1px solid var(--module-soft-border);
    border-radius: .8rem;
    padding: .62rem .9rem;
    background: var(--module-soft);
    color: var(--module-accent-dark);
    font-size: .82rem;
    font-weight: 750;
    text-decoration: none;
    transition: border-color .16s ease, background-color .16s ease, color .16s ease, transform .16s ease;
}

.dashboard-page.module-page .module-dashboard-link:hover {
    border-color: var(--module-accent);
    background: var(--module-accent);
    color: #fff;
    transform: translateX(2px);
}

.dashboard-page.module-page .module-dashboard-link svg {
    width: 1.08rem;
    height: 1.08rem;
}

@media (max-width: 1199px) {
    .dashboard-page.module-page .module-feature-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .dashboard-page.module-page .module-workspace-hero-copy {
        padding-inline-end: 5rem;
    }

    .dashboard-page.module-page .module-workspace-hero-icon {
        inset-inline-end: 1.5rem;
        width: 4.5rem;
        height: 4.5rem;
        border-radius: 1.15rem;
        opacity: .82;
    }

    .dashboard-page.module-page .module-workspace-heading,
    .dashboard-page.module-page .module-workspace-note {
        align-items: flex-start;
        flex-direction: column;
    }

    .dashboard-page.module-page .module-connected-badge {
        align-self: flex-start;
    }

    .dashboard-page.module-page .module-dashboard-link {
        width: 100%;
    }
}

@media (max-width: 639px) {
    .dashboard-page.module-page .module-workspace-hero {
        min-height: 12rem;
        border-radius: 1.1rem;
        padding: 1.35rem;
    }

    .dashboard-page.module-page .module-workspace-hero-copy {
        padding-inline-end: 0;
    }

    .dashboard-page.module-page .module-workspace-hero h1 {
        max-width: calc(100% - 3.6rem);
        font-size: clamp(1.85rem, 9vw, 2.25rem);
    }

    .dashboard-page.module-page .module-workspace-hero p {
        max-width: calc(100% - 2rem);
        font-size: .9rem;
        line-height: 1.48;
    }

    .dashboard-page.module-page .module-workspace-hero-icon {
        top: 1.25rem;
        inset-inline-end: 1.25rem;
        width: 3.2rem;
        height: 3.2rem;
        transform: none;
        border-radius: .9rem;
        opacity: .62;
    }

    .dashboard-page.module-page .module-workspace-panel {
        margin-top: 1rem;
        border-radius: 1.1rem;
        padding: 1.1rem;
    }

    .dashboard-page.module-page .module-feature-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: .8rem;
        margin-top: 1.15rem;
    }

    .dashboard-page.module-page .module-feature-card {
        padding: 1rem;
    }

    .dashboard-page.module-page .module-workspace-note {
        gap: .85rem;
        margin-top: 1rem;
        padding: 1rem;
    }
}

/* Internationalization — Japanese typography and Arabic right-to-left UI. */
html:lang(ja) body {
    font-family: "Noto Sans JP", "Yu Gothic", "Hiragino Kaku Gothic ProN", Meiryo, "Segoe UI", sans-serif;
}

html:lang(ar) body {
    font-family: "Noto Sans Arabic", Tahoma, "Segoe UI", Arial, sans-serif;
}

html:lang(ja) :is(.eyebrow, .sidebar-nav-label, .app-header-kicker, .dashboard-eyebrow, .module-workspace-eyebrow),
html:lang(ar) :is(.eyebrow, .sidebar-nav-label, .app-header-kicker, .dashboard-eyebrow, .module-workspace-eyebrow) {
    letter-spacing: 0;
    text-transform: none;
}

html:lang(ja) :is(h1, h2, h3, h4, p, label, button, a, .status-badge),
html:lang(ar) :is(h1, h2, h3, h4, p, label, button, a, .status-badge) {
    overflow-wrap: anywhere;
}

html:lang(ja) .auth-brand-copy h1 span,
html:lang(ar) .auth-brand-copy h1 span {
    white-space: normal;
}

html:lang(ja) :is(.auth-brand-copy h1, .auth-form-title, .dashboard-hero-title, .module-workspace-hero h1),
html:lang(ar) :is(.auth-brand-copy h1, .auth-form-title, .dashboard-hero-title, .module-workspace-hero h1) {
    letter-spacing: 0;
}

html:lang(ar) :is(.auth-brand-copy h1, .auth-form-title, .dashboard-hero-title, .module-workspace-hero h1) {
    line-height: 1.28;
}

html:lang(ja) .dashboard-page .sidebar-module-name,
html:lang(ar) .dashboard-page .sidebar-module-name {
    overflow: visible;
    line-height: 1.35;
    text-overflow: clip;
    white-space: normal;
}

html:lang(ja) .dashboard-page .module-card-with-art .module-card-description,
html:lang(ar) .dashboard-page .module-card-with-art .module-card-description {
    display: block;
    overflow: visible;
    -webkit-line-clamp: unset;
}

html:lang(ja) .dashboard-page .module-card-with-art,
html:lang(ar) .dashboard-page .module-card-with-art {
    min-height: 23rem;
    aspect-ratio: auto;
}

html:lang(ja) :is(.sidebar-account-name, .sidebar-account-email, .app-header-user-name, .app-header-kicker),
html:lang(ar) :is(.sidebar-account-name, .sidebar-account-email, .app-header-user-name, .app-header-kicker) {
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
}

.modal-panel {
    text-align: start;
}

.app-header-user-copy {
    text-align: end;
}

[dir="rtl"] .app-sidebar {
    right: 0 !important;
    left: auto !important;
    translate: 100% 0;
    transform: none;
    box-shadow: -20px 0 45px rgba(2, 6, 23, .07);
}

[dir="rtl"] .app-sidebar.is-open {
    translate: 0;
    transform: none;
}

[dir="rtl"] .dashboard-page .app-sidebar {
    border-radius: 1.15rem 0 0 0;
    box-shadow: -16px 0 42px rgba(10, 35, 89, .08);
}

[dir="rtl"] :is(.sidebar-account-name, .sidebar-account-email, .app-header-user-name) {
    unicode-bidi: plaintext;
}

[dir="rtl"] :is(input[type="email"], input[type="tel"]) {
    direction: ltr;
    text-align: left;
}

[dir="rtl"] :is(.sidebar-collapse-button, .sidebar-logout-button, .module-dashboard-link, a.module-action) svg {
    transform: scaleX(-1);
}

[dir="rtl"] .dashboard-page a.sidebar-module-link:hover,
[dir="rtl"] .dashboard-page a.sidebar-module-link.sidebar-module-link-active:hover,
[dir="rtl"] .dashboard-page.module-page .module-dashboard-link:hover {
    transform: translateX(-2px);
}

@media (min-width: 1024px) {
    [dir="rtl"] .app-sidebar {
        translate: 0 !important;
        transform: none !important;
    }

    [dir="rtl"] .app-shell,
    [dir="rtl"] .dashboard-page .app-shell {
        padding-right: 19.5rem !important;
        padding-left: 0 !important;
    }
}

@media (max-width: 1023px) {
    [dir="rtl"] .dashboard-page .app-sidebar {
        border-radius: 1.15rem 0 0 1.15rem;
    }
}

/* Shared authenticated shell footer and account menu. */
.dashboard-page .app-shell {
    display: flex;
    min-width: 0;
    min-height: 100vh;
    min-height: 100dvh;
    flex-direction: column;
}

.dashboard-page .app-main {
    width: 100%;
    min-width: 0;
    flex: 1 0 auto;
}

.dashboard-page .app-footer {
    display: flex;
    width: 100%;
    flex: 0 0 auto;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: .65rem 1.5rem;
    border-top: 1px solid #e3e9f3;
    padding: 1rem max(1.25rem, env(safe-area-inset-right)) max(1rem, env(safe-area-inset-bottom)) max(1.25rem, env(safe-area-inset-left));
    background: rgba(255, 255, 255, .78);
    color: #64739d;
    font-size: .75rem;
    line-height: 1.55;
    text-align: start;
}

.dashboard-page .app-footer-versions {
    display: flex;
    min-width: 0;
    flex-wrap: wrap;
    align-items: center;
    gap: .35rem .65rem;
}

.dashboard-page .app-footer p {
    margin: 0;
    overflow-wrap: anywhere;
    unicode-bidi: plaintext;
}

.dashboard-page .app-footer bdi {
    white-space: nowrap;
}

.dashboard-page .account-menu {
    position: relative;
    flex: 0 0 auto;
}

.dashboard-page .app-header-account-trigger {
    display: inline-flex;
    min-height: 3.75rem;
    align-items: center;
    justify-content: flex-end;
    gap: .85rem;
    border: 1px solid transparent;
    border-radius: 1rem;
    padding: .2rem .3rem .2rem .55rem;
    background: transparent;
    color: #071441;
    text-align: end;
    cursor: pointer;
    transition: border-color .16s ease, background-color .16s ease, box-shadow .16s ease;
}

.dashboard-page .app-header-account-trigger:hover,
.dashboard-page .account-menu.is-open .app-header-account-trigger {
    border-color: #e1e7f0;
    background: #f7f9fd;
}

.dashboard-page .app-header-account-trigger:focus-visible {
    outline: 2px solid #1769e8;
    outline-offset: 2px;
    box-shadow: none;
}

.dashboard-page .app-header-account-trigger .app-header-user-name,
.dashboard-page .app-header-account-trigger .app-header-user-role {
    display: block;
}

.dashboard-page .app-header-account-trigger .app-header-chevron {
    transition: transform .16s ease;
}

.dashboard-page .account-menu.is-open .app-header-chevron {
    transform: rotate(180deg);
}

.dashboard-page .account-menu-panel {
    position: absolute;
    z-index: 50;
    inset-block-start: calc(100% + .65rem);
    inset-inline-end: 0;
    width: min(20rem, calc(100vw - 2rem));
    max-height: calc(100vh - 7rem);
    max-height: calc(100dvh - 7rem);
    overflow-y: auto;
    overscroll-behavior: contain;
    border: 1px solid #dfe6f1;
    border-radius: 1rem;
    background: #fff;
    box-shadow: 0 20px 48px rgba(7, 20, 65, .16), 0 4px 14px rgba(7, 20, 65, .08);
    color: #071441;
    text-align: start;
}

.dashboard-page .account-menu-panel[hidden] {
    display: none;
}

.dashboard-page .account-menu-summary {
    display: grid;
    gap: .2rem;
    border-bottom: 1px solid #e8edf5;
    padding: 1rem 1.1rem .9rem;
    background: #f8faff;
}

.dashboard-page .account-menu-summary strong {
    overflow-wrap: anywhere;
    font-size: .9rem;
    line-height: 1.35;
}

.dashboard-page .account-menu-summary span {
    overflow-wrap: anywhere;
    color: #64739d;
    font-size: .76rem;
    line-height: 1.4;
    unicode-bidi: plaintext;
}

.dashboard-page .account-menu-item {
    display: flex;
    min-height: 3.25rem;
    align-items: center;
    gap: .75rem;
    margin: .45rem;
    border-radius: .72rem;
    padding: .7rem .75rem;
    color: #17356f;
    font-size: .86rem;
    font-weight: 700;
    line-height: 1.35;
    text-decoration: none;
    transition: background-color .16s ease, color .16s ease;
}

.dashboard-page .account-menu-item:hover {
    background: #edf4ff;
    color: #0746d8;
}

.dashboard-page .account-menu-item:focus-visible {
    outline: 2px solid #1769e8;
    outline-offset: -2px;
    box-shadow: none;
}

.dashboard-page .account-menu-item svg {
    width: 1.2rem;
    height: 1.2rem;
    flex: 0 0 auto;
}

@media (min-width: 1024px) {
    .dashboard-page .app-sidebar {
        transition-property: width, padding, box-shadow;
        transition-duration: .22s;
        transition-timing-function: ease;
    }

    .dashboard-page .app-shell {
        transition-property: padding-left, padding-right;
        transition-duration: .22s;
        transition-timing-function: ease;
    }

    .dashboard-page .app-footer {
        padding-right: max(1.85rem, env(safe-area-inset-right));
        padding-left: max(2.3rem, env(safe-area-inset-left));
    }

    .dashboard-page .sidebar-collapse-button svg {
        transition: transform .2s ease;
    }

    html.sidebar-is-collapsed .dashboard-page .app-sidebar {
        width: 5.75rem;
        padding-right: .625rem;
        padding-left: .625rem;
    }

    html.sidebar-is-collapsed .dashboard-page .app-shell {
        padding-left: 5.75rem !important;
    }

    html.sidebar-is-collapsed[dir="rtl"] .dashboard-page .app-shell {
        padding-right: 5.75rem !important;
        padding-left: 0 !important;
    }

    html.sidebar-is-collapsed .dashboard-page .sidebar-brand-row {
        flex-direction: column;
        justify-content: center;
        gap: .7rem;
        padding-right: 0;
        padding-left: 0;
    }

    html.sidebar-is-collapsed .dashboard-page .sidebar-brand {
        width: 100%;
        justify-content: center;
        gap: 0;
    }

    html.sidebar-is-collapsed .dashboard-page :is(
        .sidebar-brand-name,
        .sidebar-nav-label,
        .sidebar-link > span,
        .sidebar-module-name,
        .sidebar-account-copy,
        .sidebar-logout-button > span
    ) {
        display: none !important;
    }

    html.sidebar-is-collapsed .dashboard-page .sidebar-nav {
        margin-top: 1.55rem;
    }

    html.sidebar-is-collapsed .dashboard-page .sidebar-link {
        min-height: 3.1rem;
        justify-content: center;
        gap: 0;
        padding-right: .5rem;
        padding-left: .5rem;
    }

    html.sidebar-is-collapsed .dashboard-page .sidebar-link svg {
        flex: 0 0 auto;
    }

    html.sidebar-is-collapsed .dashboard-page .sidebar-module-list {
        gap: .5rem;
        margin-top: .9rem;
    }

    html.sidebar-is-collapsed .dashboard-page .sidebar-module-link {
        min-height: 3rem;
        justify-content: center;
        gap: 0;
        padding: .45rem;
    }

    html.sidebar-is-collapsed .dashboard-page .sidebar-module-icon {
        width: 2.1rem;
        height: 2.1rem;
    }

    html.sidebar-is-collapsed .dashboard-page a.sidebar-module-link:hover,
    html.sidebar-is-collapsed .dashboard-page a.sidebar-module-link.sidebar-module-link-active:hover {
        transform: none;
    }

    html.sidebar-is-collapsed .dashboard-page .sidebar-account {
        min-height: 0;
        margin-right: 0;
        margin-left: 0;
        padding: .7rem .35rem;
        border-radius: .9rem;
    }

    html.sidebar-is-collapsed .dashboard-page .sidebar-account-user {
        justify-content: center;
        gap: 0;
    }

    html.sidebar-is-collapsed .dashboard-page .sidebar-account-avatar {
        width: 2.8rem;
        height: 2.8rem;
    }

    html.sidebar-is-collapsed .dashboard-page .sidebar-logout-button {
        width: 2.75rem;
        min-height: 2.75rem;
        height: 2.75rem;
        gap: 0;
        margin: .7rem auto 0;
        padding: 0;
    }

    html.sidebar-is-collapsed .dashboard-page .sidebar-collapse-button svg {
        transform: rotate(180deg);
    }

    html.sidebar-is-collapsed[dir="rtl"] .dashboard-page .sidebar-collapse-button svg {
        transform: scaleX(-1) rotate(180deg);
    }
}

@media (max-width: 639px) {
    .dashboard-page .app-footer {
        align-items: flex-start;
        flex-direction: column;
        gap: .55rem;
        padding-right: max(1rem, env(safe-area-inset-right));
        padding-left: max(1rem, env(safe-area-inset-left));
    }

    .dashboard-page .app-footer-versions {
        display: grid;
        gap: .22rem;
    }

    .dashboard-page .app-footer-versions > [aria-hidden="true"] {
        display: none;
    }

    .dashboard-page .app-header-account-trigger {
        min-height: 2.75rem;
        gap: 0;
        border-radius: .85rem;
        padding: 0;
    }

    .dashboard-page .account-menu-panel {
        inset-block-start: calc(100% + .55rem);
        width: min(18.5rem, calc(100vw - 2rem));
        max-height: calc(100vh - 5.75rem);
        max-height: calc(100dvh - 5.75rem);
    }
}

/* Administrative company catalogue. Native details/summary keeps the
   company-to-module hierarchy usable without adding JavaScript. */
.dashboard-page .company-list {
    display: grid;
    gap: 1rem;
    margin: 1.08rem .45rem 0;
}

.dashboard-page .company-card {
    overflow: hidden;
    border: 1px solid #dce5f3;
    border-radius: 1.2rem;
    background: rgba(255, 255, 255, .98);
    box-shadow: 0 10px 28px rgba(17, 43, 91, .055);
    transition: border-color .18s ease, box-shadow .18s ease;
}

.dashboard-page .company-card[open] {
    border-color: #c8d8f2;
    box-shadow: 0 16px 38px rgba(17, 43, 91, .09);
}

.dashboard-page .company-card-summary {
    display: flex;
    min-height: 7.5rem;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1.25rem 1.4rem;
    list-style: none;
    color: #071441;
    text-align: start;
    cursor: pointer;
    transition: background-color .18s ease;
}

.dashboard-page .company-card-summary::-webkit-details-marker {
    display: none;
}

.dashboard-page .company-card-summary::marker {
    content: "";
}

.dashboard-page .company-card-summary:hover {
    background: #f8faff;
}

.dashboard-page .company-card-summary:focus-visible {
    outline: 2px solid #1769e8;
    outline-offset: -4px;
}

.dashboard-page .company-card-identity {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 1rem;
}

.dashboard-page .company-card-icon {
    display: inline-flex;
    width: 4.25rem;
    height: 4.25rem;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    border-radius: 1rem;
    background: linear-gradient(145deg, #eaf2ff, #f6f9ff);
    color: #0750df;
    box-shadow: inset 0 0 0 1px #dce8ff;
}

.dashboard-page .company-card-icon svg {
    width: 2.25rem;
    height: 2.25rem;
}

.dashboard-page .company-card-copy {
    display: grid;
    min-width: 0;
    gap: .3rem;
}

.dashboard-page .company-card-status {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    gap: .4rem;
    color: #087956;
    font-size: .72rem;
    font-weight: 800;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: .055em;
}

.dashboard-page .company-card-status-dot {
    width: .48rem;
    height: .48rem;
    flex: 0 0 auto;
    border-radius: 999px;
    background: #0caf78;
    box-shadow: 0 0 0 3px #daf7ec;
}

.dashboard-page .company-card-title {
    overflow-wrap: anywhere;
    font-size: 1.35rem;
    line-height: 1.6rem;
    letter-spacing: -.02em;
}

.dashboard-page .company-card-description {
    max-width: 48rem;
    overflow-wrap: anywhere;
    color: #64739a;
    font-size: .9rem;
    line-height: 1.45;
}

.dashboard-page .company-card-controls {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: .75rem;
}

.dashboard-page .company-module-count {
    display: inline-flex;
    min-height: 2.15rem;
    align-items: center;
    justify-content: center;
    border-radius: .72rem;
    padding: .42rem .7rem;
    background: #eef4ff;
    color: #1856c8;
    font-size: .76rem;
    font-weight: 750;
    white-space: nowrap;
}

.dashboard-page .company-card-toggle {
    display: inline-flex;
    min-height: 2.7rem;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    border: 1px solid #d8e3f5;
    border-radius: .78rem;
    padding: .55rem .75rem;
    background: #fff;
    color: #0750d8;
    font-size: .8rem;
    font-weight: 750;
    white-space: nowrap;
}

.dashboard-page .company-card-toggle svg {
    width: 1.05rem;
    height: 1.05rem;
    transition: transform .18s ease;
}

.dashboard-page .company-card-toggle-close {
    display: none;
}

.dashboard-page .company-card[open] .company-card-toggle-open {
    display: none;
}

.dashboard-page .company-card[open] .company-card-toggle-close {
    display: inline;
}

.dashboard-page .company-card[open] .company-card-toggle svg {
    transform: rotate(180deg);
}

.dashboard-page .company-card-body {
    border-top: 1px solid #e3eaf5;
    padding: 1.4rem;
    background: linear-gradient(180deg, #f8faff, #f5f8fd);
}

.dashboard-page .company-modules-heading {
    display: flex;
    align-items: center;
    gap: .65rem;
    margin-bottom: 1rem;
    color: #1a3268;
}

.dashboard-page .company-modules-heading-icon {
    display: inline-flex;
    width: 2rem;
    height: 2rem;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    border-radius: .6rem;
    background: #e7efff;
    color: #0750df;
}

.dashboard-page .company-modules-heading-icon svg {
    width: 1.05rem;
    height: 1.05rem;
}

.dashboard-page .company-modules-heading h3 {
    font-size: .92rem;
    font-weight: 800;
    line-height: 1.3;
}

.dashboard-page .company-module-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.dashboard-page .company-modules-empty {
    border: 1px dashed #cfd9e8;
    border-radius: .9rem;
    padding: 1.25rem;
    background: rgba(255, 255, 255, .72);
    color: #68769d;
    font-size: .88rem;
    line-height: 1.5;
    text-align: center;
}

.dashboard-page .sidebar-company-list {
    display: grid;
    gap: .8rem;
    margin-top: .65rem;
}

.dashboard-page .sidebar-company-group {
    min-width: 0;
}

.dashboard-page .sidebar-company-toggle {
    display: flex;
    width: 100%;
    min-height: 2.85rem;
    min-width: 0;
    align-items: center;
    gap: .55rem;
    border: 1px solid rgba(112, 146, 213, .12);
    border-radius: .72rem;
    padding: .42rem .55rem;
    list-style: none;
    background: rgba(30, 55, 104, .24);
    color: #c6d4ef;
    cursor: pointer;
    transition: border-color .18s ease, background-color .18s ease, color .18s ease;
}

.dashboard-page .sidebar-company-toggle::-webkit-details-marker {
    display: none;
}

.dashboard-page .sidebar-company-toggle::marker {
    content: "";
}

.dashboard-page .sidebar-company-toggle:hover,
.dashboard-page .sidebar-company-group[open] > .sidebar-company-toggle {
    border-color: rgba(113, 157, 238, .28);
    background: rgba(42, 76, 141, .38);
    color: #fff;
}

.dashboard-page .sidebar-company-toggle:focus-visible {
    outline: 2px solid #79a7ff;
    outline-offset: 2px;
}

.dashboard-page .sidebar-company-name {
    overflow: hidden;
    flex: 1 1 auto;
    min-width: 0;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: .9rem;
    font-weight: 780;
    line-height: 1.3;
}

.dashboard-page .sidebar-company-icon {
    display: inline-flex;
    width: 1.55rem;
    height: 1.55rem;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    border-radius: .45rem;
    background: rgba(80, 130, 227, .16);
    color: #8aacec;
}

.dashboard-page .sidebar-company-icon svg {
    width: .9rem;
    height: .9rem;
}

.dashboard-page .sidebar-company-chevron {
    display: inline-flex;
    width: 1rem;
    height: 1rem;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    color: #8fa9d7;
}

.dashboard-page .sidebar-company-chevron svg {
    width: .9rem;
    height: .9rem;
    transition: transform .18s ease;
}

.dashboard-page .sidebar-company-group[open] .sidebar-company-chevron svg {
    transform: rotate(180deg);
}

.dashboard-page .sidebar-company-modules {
    gap: .35rem;
    margin-top: .45rem;
    border-inline-start: 1px solid rgba(112, 146, 213, .2);
    padding-inline-start: .55rem;
}

@media (max-width: 1023px) {
    .dashboard-page .company-module-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    html.sidebar-is-collapsed .dashboard-page .sidebar-company-name {
        display: none;
    }

    html.sidebar-is-collapsed .dashboard-page .sidebar-company-toggle {
        justify-content: center;
        padding-right: 0;
        padding-left: 0;
    }

    html.sidebar-is-collapsed .dashboard-page .sidebar-company-chevron {
        display: none;
    }

    html.sidebar-is-collapsed .dashboard-page .sidebar-company-list {
        gap: .5rem;
        margin-top: .9rem;
    }

    html.sidebar-is-collapsed .dashboard-page .sidebar-company-modules {
        gap: .5rem;
        margin-top: 0;
        border-inline-start: 0;
        padding-inline-start: 0;
    }
}

@media (max-width: 639px) {
    .dashboard-page .company-list {
        gap: .8rem;
        margin-top: 1rem;
    }

    .dashboard-page .company-card {
        border-radius: 1rem;
    }

    .dashboard-page .company-card-summary {
        min-height: 0;
        align-items: flex-start;
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }

    .dashboard-page .company-card-identity {
        width: 100%;
        align-items: flex-start;
    }

    .dashboard-page .company-card-icon {
        width: 3.5rem;
        height: 3.5rem;
        border-radius: .85rem;
    }

    .dashboard-page .company-card-icon svg {
        width: 1.9rem;
        height: 1.9rem;
    }

    .dashboard-page .company-card-title {
        font-size: 1.18rem;
        line-height: 1.45rem;
    }

    .dashboard-page .company-card-controls {
        width: 100%;
        justify-content: space-between;
    }

    .dashboard-page .company-card-body {
        padding: 1rem;
    }

    .dashboard-page .company-module-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* Administrative user management */
.user-management-shell {
    width: 100%;
}

.user-management-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.5rem;
}

.user-management-heading h1 {
    margin-top: .45rem;
    color: #081634;
    font-size: clamp(1.8rem, 4vw, 2.45rem);
    font-weight: 800;
    letter-spacing: -.035em;
    line-height: 1.12;
}

.user-management-heading > div > p:last-child {
    max-width: 46rem;
    margin-top: .7rem;
    color: #607095;
    font-size: .95rem;
    line-height: 1.7;
}

.user-management-count {
    flex: 0 0 auto;
    border: 1px solid #dce5f4;
    border-radius: 999px;
    padding: .48rem .8rem;
    background: #fff;
    color: #61719e;
    font-size: .82rem;
    font-weight: 750;
    box-shadow: 0 5px 16px rgba(12, 35, 77, .04);
}

.user-management-search {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: .65rem;
    margin-top: 1.7rem;
    border: 1px solid #e0e7f2;
    border-radius: 1.1rem;
    padding: .75rem;
    background: #fff;
    box-shadow: 0 10px 30px rgba(13, 39, 83, .045);
}

.user-management-search .form-control {
    height: 2.85rem;
    padding-inline-start: 2.8rem;
}

.user-management-search-icon {
    position: absolute;
    z-index: 1;
    top: 1.56rem;
    inset-inline-start: 1.65rem;
    display: inline-flex;
    width: 1rem;
    height: 1rem;
    align-items: center;
    justify-content: center;
    color: #71809f;
    pointer-events: none;
}

.user-management-search-icon svg {
    width: 1rem;
    height: 1rem;
}

.user-management-search .button-secondary {
    min-width: 6.4rem;
}

.user-management-clear {
    display: inline-flex;
    min-height: 2.8rem;
    align-items: center;
    justify-content: center;
    border-radius: .75rem;
    padding: .6rem .75rem;
    color: #536587;
    font-size: .85rem;
    font-weight: 700;
    text-decoration: none;
}

.user-management-clear:hover {
    background: #f3f6fb;
    color: #0757c7;
}

.user-management-list {
    display: grid;
    gap: .9rem;
    margin-top: 1.25rem;
}

.managed-user-card {
    scroll-margin-top: 7rem;
    overflow: hidden;
    border: 1px solid #dfe7f3;
    border-radius: 1.15rem;
    background: #fff;
    box-shadow: 0 8px 28px rgba(13, 39, 83, .045);
}

.managed-user-card[open] {
    border-color: #c9d8f0;
    box-shadow: 0 16px 40px rgba(13, 39, 83, .075);
}

.managed-user-card:target {
    border-color: #7aa9f8;
    box-shadow: 0 0 0 4px rgba(7, 87, 199, .1), 0 16px 40px rgba(13, 39, 83, .075);
}

.managed-user-summary {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto auto;
    gap: .9rem;
    min-height: 5.25rem;
    align-items: center;
    padding: .9rem 1.1rem;
    list-style: none;
    cursor: pointer;
    transition: background-color .18s ease;
}

.managed-user-summary::-webkit-details-marker {
    display: none;
}

.managed-user-summary::marker {
    content: "";
}

.managed-user-summary:hover {
    background: #f8faff;
}

.managed-user-summary:focus-visible {
    outline: 3px solid rgba(7, 87, 199, .28);
    outline-offset: -3px;
}

.managed-user-avatar {
    display: inline-flex;
    width: 2.8rem;
    height: 2.8rem;
    align-items: center;
    justify-content: center;
    border-radius: .8rem;
    background: linear-gradient(145deg, #eaf2ff, #dbe9ff);
    color: #0757c7;
    font-size: .86rem;
    font-weight: 850;
}

.managed-user-identity {
    display: grid;
    min-width: 0;
    gap: .18rem;
}

.managed-user-identity strong {
    overflow: hidden;
    color: #101d39;
    font-size: .98rem;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.managed-user-identity > span {
    overflow: hidden;
    color: #71809f;
    font-size: .8rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.managed-user-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: .4rem;
}

.managed-user-role,
.managed-user-status {
    display: inline-flex;
    min-height: 1.65rem;
    align-items: center;
    border-radius: 999px;
    padding: .25rem .56rem;
    font-size: .7rem;
    font-weight: 800;
    line-height: 1;
}

.managed-user-role {
    background: #f0f4fa;
    color: #52627e;
}

.managed-user-role.is-admin {
    background: #e8f0ff;
    color: #0646c9;
}

.managed-user-status {
    background: #f3f4f6;
    color: #596579;
}

.managed-user-status.is-active {
    background: #e8f8ef;
    color: #087443;
}

.managed-user-status.is-pending {
    background: #fff6dd;
    color: #9a5e00;
}

.managed-user-status.is-blocked {
    background: #fff0f0;
    color: #bd2626;
}

.managed-user-chevron {
    display: inline-flex;
    width: 1.8rem;
    height: 1.8rem;
    align-items: center;
    justify-content: center;
    border-radius: .55rem;
    color: #71809f;
}

.managed-user-chevron svg {
    width: 1.05rem;
    height: 1.05rem;
    transition: transform .18s ease;
}

.managed-user-card[open] .managed-user-chevron svg {
    transform: rotate(180deg);
}

.managed-user-body {
    border-top: 1px solid #e7edf6;
    padding: 1.1rem;
    background: #fbfcff;
}

.managed-user-meta {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .7rem;
    margin: 0;
}

.managed-user-meta > div {
    min-width: 0;
    border: 1px solid #e3eaf4;
    border-radius: .8rem;
    padding: .65rem .75rem;
    background: #fff;
}

.managed-user-meta dt {
    color: #7684a0;
    font-size: .68rem;
    font-weight: 750;
    letter-spacing: .035em;
    text-transform: uppercase;
}

.managed-user-meta dd {
    overflow: hidden;
    margin: .25rem 0 0;
    color: #263653;
    font-size: .82rem;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.managed-user-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .9rem;
    margin-top: .9rem;
}

.managed-user-panel {
    min-width: 0;
    border: 1px solid #dfe7f3;
    border-radius: .95rem;
    padding: 1rem;
    background: #fff;
}

.managed-user-panel-heading {
    display: flex;
    align-items: flex-start;
    gap: .7rem;
}

.managed-user-panel-icon {
    display: inline-flex;
    width: 2.25rem;
    height: 2.25rem;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    border-radius: .65rem;
    background: #eaf2ff;
    color: #0757c7;
}

.managed-user-panel-icon.is-password {
    background: #f1edff;
    color: #6b45c9;
}

.managed-user-panel-icon svg {
    width: 1.18rem;
    height: 1.18rem;
}

.managed-user-panel-heading h2 {
    color: #172440;
    font-size: .92rem;
    font-weight: 820;
    line-height: 1.35;
}

.managed-user-panel-heading p {
    margin-top: .2rem;
    color: #71809f;
    font-size: .76rem;
    line-height: 1.45;
}

.managed-module-list {
    display: grid;
    gap: .5rem;
    margin-top: .9rem;
    border: 0;
    padding: 0;
}

.managed-module-option {
    display: flex;
    min-height: 3.45rem;
    align-items: center;
    gap: .65rem;
    border: 1px solid #e1e8f3;
    border-radius: .75rem;
    padding: .55rem .65rem;
    background: #fbfcff;
    cursor: pointer;
    transition: border-color .18s ease, background-color .18s ease;
}

.managed-module-option:hover {
    border-color: #bbcef0;
    background: #f5f8ff;
}

.managed-module-option:has(input:focus-visible) {
    outline: 3px solid rgba(7, 87, 199, .2);
    outline-offset: 1px;
}

.managed-module-option-copy {
    display: grid;
    min-width: 0;
    gap: .1rem;
}

.managed-module-option-copy strong {
    overflow: hidden;
    color: #263653;
    font-size: .8rem;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.managed-module-option-copy > span {
    color: #74819b;
    font-size: .68rem;
    font-weight: 650;
}

.managed-module-free {
    margin-inline-start: auto;
    border-radius: 999px;
    padding: .22rem .45rem;
    background: #e7f8ef;
    color: #087443;
    font-size: .63rem;
    font-weight: 850;
    white-space: nowrap;
}

.managed-user-admin-access {
    display: flex;
    align-items: center;
    gap: .55rem;
    margin-top: .9rem;
    border: 1px solid #cfe0fb;
    border-radius: .75rem;
    padding: .75rem;
    background: #f0f6ff;
    color: #164d9e;
    font-size: .78rem;
    font-weight: 720;
    line-height: 1.5;
}

.managed-user-admin-access svg {
    width: 1.25rem;
    height: 1.25rem;
    flex: 0 0 auto;
}

.managed-password-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .65rem;
    margin-top: .9rem;
}

.managed-password-fields .form-label {
    font-size: .74rem;
}

.managed-password-fields .form-control {
    height: 2.8rem;
    font-size: .86rem;
}

.managed-password-notice {
    margin-top: .15rem;
    color: #78859e;
    font-size: .7rem;
    line-height: 1.45;
}

.managed-user-submit {
    width: 100%;
    margin-top: .8rem;
}

.user-management-empty {
    margin-top: 1.25rem;
    border: 1px dashed #cdd8e8;
    border-radius: 1.15rem;
    padding: 3.2rem 1.5rem;
    background: #fff;
    text-align: center;
}

.user-management-empty > span {
    display: inline-flex;
    width: 3.4rem;
    height: 3.4rem;
    align-items: center;
    justify-content: center;
    border-radius: .9rem;
    background: #edf3fc;
    color: #597199;
}

.user-management-empty svg {
    width: 1.75rem;
    height: 1.75rem;
}

.user-management-empty h2 {
    margin-top: 1rem;
    color: #172440;
    font-size: 1.05rem;
    font-weight: 800;
}

.user-management-empty p {
    margin-top: .4rem;
    color: #71809f;
    font-size: .85rem;
}

@media (max-width: 900px) {
    .managed-user-actions {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 639px) {
    .user-management-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: .85rem;
    }

    .user-management-search {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .user-management-search .button-secondary {
        min-width: 0;
        padding-inline: .85rem;
    }

    .user-management-clear {
        grid-column: 1 / -1;
        min-height: 2.2rem;
    }

    .managed-user-summary {
        grid-template-columns: auto minmax(0, 1fr) auto;
        gap: .7rem;
        padding: .8rem;
    }

    .managed-user-badges {
        grid-column: 2 / -1;
        grid-row: 2;
        justify-content: flex-start;
    }

    .managed-user-chevron {
        grid-column: 3;
        grid-row: 1;
    }

    .managed-user-body {
        padding: .75rem;
    }

    .managed-user-meta {
        grid-template-columns: minmax(0, 1fr);
    }

    .managed-user-actions {
        gap: .7rem;
        margin-top: .7rem;
    }

    .managed-user-panel {
        padding: .8rem;
    }

    .managed-password-fields {
        grid-template-columns: minmax(0, 1fr);
        gap: .2rem;
    }
}
