/* SPK visual system: shared scale, surfaces, type and responsive layout. */
:root {
    --spk-ink: #142338;
    --spk-muted: #53647a;
    --spk-line: #dce5ed;
    --spk-canvas: #f3f6f8;
    --spk-surface: #fff;
    --spk-navy: #10263b;
    --spk-shadow: 0 12px 34px rgba(16, 38, 59, .055);
    --spk-radius: 12px;
}

html { scroll-behavior: smooth; }
body { color: var(--spk-ink); font-family: Inter, "Segoe UI", Arial, sans-serif; }
a { color: var(--link-color, #175eaa); }
:where(a, button, input, select, textarea):focus-visible {
    outline: 3px solid rgba(30, 103, 180, .75);
    outline-offset: 3px;
}
.skip-link {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 9999;
    padding: 10px 16px;
    border-radius: 9px;
    background: #fff;
    color: #10263b;
    transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }

/* Motion system: short, purposeful transitions using compositor-safe properties. */
:root {
    --spk-motion-enter: 320ms;
    --spk-motion-exit: 150ms;
    --spk-motion-ease-out: cubic-bezier(.22, 1, .36, 1);
    --spk-motion-ease-in: cubic-bezier(.4, 0, 1, 1);
}

@keyframes spk-auth-card-enter {
    from { opacity: 0; transform: translateY(18px) scale(.985); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes spk-auth-side-enter {
    from { opacity: 0; transform: translateX(-18px); }
    to { opacity: 1; transform: translateX(0); }
}
@keyframes spk-auth-form-enter {
    from { opacity: 0; transform: translateX(18px); }
    to { opacity: 1; transform: translateX(0); }
}
@keyframes spk-workspace-enter {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.auth-page .auth-card {
    animation: spk-auth-card-enter 380ms var(--spk-motion-ease-out) both;
    will-change: opacity, transform;
}
.auth-login .auth-side {
    animation: spk-auth-side-enter 360ms 70ms var(--spk-motion-ease-out) both;
}
.auth-login .auth-form {
    animation: spk-auth-form-enter 360ms 120ms var(--spk-motion-ease-out) both;
}
.auth-register .auth-card .card-body {
    animation: spk-auth-form-enter 360ms 80ms var(--spk-motion-ease-out) both;
}
.auth-page.auth-is-submitting .auth-card {
    animation: none;
    opacity: .92;
    transform: translateY(-2px) scale(.995);
    transition: opacity var(--spk-motion-exit) var(--spk-motion-ease-in),
                transform var(--spk-motion-exit) var(--spk-motion-ease-in);
}

/* Signed-in workspace */
body[data-role] {
    --sidebar-width: 240px;
    --sidebar-small-width: 78px;
    --navbar-height: 68px;
    --page-background: var(--spk-canvas);
    --border-color: var(--spk-line);
    --text-dark: var(--spk-ink);
    --text-muted: var(--spk-muted);
    --card-radius: var(--spk-radius);
    --soft-shadow: var(--spk-shadow);
    --spk-accent: #2868b8;
    --spk-accent-soft: #e8f1fd;
    background: var(--spk-canvas);
    font-size: 15px;
    line-height: 1.55;
}
body[data-role]::after {
    content: "";
    position: fixed;
    z-index: 1100;
    top: 0;
    right: 0;
    left: var(--sidebar-width);
    height: 3px;
    background: var(--spk-accent);
    pointer-events: none;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--spk-motion-exit) var(--spk-motion-ease-out);
}
body[data-role] .page-content {
    animation: spk-workspace-enter var(--spk-motion-enter) var(--spk-motion-ease-out) both;
    transform-origin: center top;
}
body[data-role].is-page-leaving::after { transform: scaleX(1); }
body[data-role].is-page-leaving .page-content {
    animation: none;
    opacity: 0;
    transform: translateY(-6px);
    transition: opacity var(--spk-motion-exit) var(--spk-motion-ease-in),
                transform var(--spk-motion-exit) var(--spk-motion-ease-in);
}
body[data-role].is-page-leaving .sidebar-link.active { transform: scale(.98); }
body[data-role="admin"] {
    --spk-navy: #29283e;
    --spk-accent: #6457a5;
    --spk-accent-soft: #f0eef9;
    --royal-blue: #6457a5;
    --royal-blue-dark: #51448f;
    --link-color: #51448f;
}
body[data-role="jkkk"] {
    --spk-navy: #103b37;
    --spk-accent: #237d69;
    --spk-accent-soft: #e7f4ee;
    --royal-blue: #237d69;
    --royal-blue-dark: #186653;
    --link-color: #186653;
}
body[data-role="entrepreneur"] {
    --spk-navy: #0d3268;
    --spk-accent: #2367ce;
    --spk-accent-soft: #e8f1fd;
    --royal-blue: #2367ce;
    --royal-blue-dark: #1954ad;
    --link-color: #1954ad;
}

body[data-role] .sidebar,
body[data-role="admin"] .sidebar,
body[data-role="jkkk"] .sidebar,
body[data-role="entrepreneur"] .sidebar {
    background: var(--spk-navy) !important;
    border-right: 1px solid rgba(255, 255, 255, .08);
}
body[data-role] .sidebar-brand {
    min-height: 92px;
    padding: 18px 20px;
    border-bottom-color: rgba(255, 255, 255, .11);
}
body[data-role] .brand-icon {
    width: 44px;
    min-width: 44px;
    height: 44px;
    border-radius: 13px;
    background: var(--spk-accent);
    box-shadow: 0 6px 18px rgba(0, 0, 0, .14);
}
body[data-role] .brand-icon i,
body[data-role] .brand-icon i::before {
    display: block;
    line-height: 1;
    vertical-align: 0;
}
body[data-role] .brand-name { display: block; color: white; font-size: 22px; letter-spacing: -.04em; line-height: 1.25; }
body[data-role] .brand-text span { color: #bfd0df; font-size: 11px; letter-spacing: .01em; }
body[data-role] .sidebar-label {
    padding: 27px 23px 12px;
    color: #92a9bd;
    font-size: 11px;
    letter-spacing: .12em;
}
body[data-role] .sidebar-menu { padding: 0 12px; }
body[data-role] .sidebar-link {
    min-height: 48px;
    gap: 14px;
    margin-bottom: 5px;
    padding: 11px 13px;
    border-radius: 11px;
    color: #cbd9e6;
    font-size: 14px;
    font-weight: 550;
    line-height: 1.25;
}
body[data-role] .sidebar-link i {
    display: inline-grid;
    width: 22px;
    min-width: 22px;
    height: 22px;
    place-items: center;
    font-size: 18px;
    line-height: 1;
}
body[data-role] .sidebar-link i::before { vertical-align: 0; }
body[data-role] .sidebar-link:hover { background: rgba(255, 255, 255, .09); color: #fff; }
body[data-role] .sidebar-link.active,
body[data-role="admin"] .sidebar-link.active,
body[data-role="jkkk"] .sidebar-link.active,
body[data-role="entrepreneur"] .sidebar-link.active {
    background: var(--spk-accent) !important;
    color: #fff !important;
    box-shadow: none;
}
body[data-role] .sidebar-bottom { padding: 14px 12px 20px; }
body[data-role] .logout-link:hover { background: rgba(220, 86, 86, .16); }

body[data-role] .main-wrapper { min-width: 0; }
body[data-role] .top-navbar {
    min-height: var(--navbar-height);
    padding: 12px clamp(20px, 3vw, 42px);
    gap: 16px;
    background: rgba(255, 255, 255, .96);
    box-shadow: none;
}
body[data-role] .navbar-left { min-width: 0; gap: 17px; }
body[data-role] .navbar-left > div { min-width: 0; }
body[data-role] .page-title {
    font-size: clamp(18px, 1.7vw, 22px);
    font-weight: 750;
    letter-spacing: -.025em;
    line-height: 1.25;
}
body[data-role] .page-subtitle { margin-top: 3px; color: var(--spk-muted); font-size: 12px; }
body[data-role] .sidebar-toggle,
body[data-role] .notification-button {
    width: 44px;
    min-width: 44px;
    height: 44px;
    border-color: var(--spk-line);
    border-radius: 11px;
    color: var(--spk-ink);
    cursor: pointer;
}
body[data-role] .user-menu {
    min-height: 48px;
    gap: 11px;
    padding: 4px 7px;
    border-radius: 12px;
    cursor: pointer;
}
body[data-role] .user-avatar { background: var(--spk-accent); }
body[data-role] .user-details strong { max-width: 190px; font-size: 13px; }
body[data-role] .user-details small { margin-top: 2px; font-size: 11px; }
body[data-role] .user-dropdown {
    min-width: 234px;
    padding: 8px;
    border-radius: 14px;
    box-shadow: 0 18px 50px rgba(16, 38, 59, .15);
}
body[data-role] .btn-primary {
    border-color: var(--spk-accent);
    background: var(--spk-accent);
    color: #fff;
}
body[data-role] .btn-primary:hover,
body[data-role] .btn-primary:focus-visible { border-color: var(--spk-navy); background: var(--spk-navy); color: #fff; }
body[data-role] .btn-outline-primary { border-color: var(--spk-accent); color: var(--spk-accent); }
body[data-role] .btn-outline-primary:hover { border-color: var(--spk-accent); background: var(--spk-accent); color: #fff; }
body[data-role] .text-primary { color: var(--spk-accent) !important; }
body[data-role] .bg-primary-subtle { background: var(--spk-accent-soft) !important; }
body[data-role] .dropdown-item { min-height: 42px; display: flex; align-items: center; font-size: 13px; }
body[data-role] .page-content {
    width: 100%;
    max-width: 1560px;
    min-width: 0;
    margin-inline: auto;
    padding: clamp(20px, 2.5vw, 38px) clamp(18px, 3vw, 44px) 52px;
}
body[data-role] .page-content .row > * { min-width: 0; }
body[data-role] .page-content .content-card { min-width: 0; overflow-wrap: anywhere; }
body[data-role] canvas { max-width: 100%; }
body[data-role] .page-content > :last-child { margin-bottom: 0 !important; }
body[data-role] .dashboard-footer { padding-inline: clamp(18px, 3vw, 44px); background: transparent; font-size: 12px; }

/* Cards, headings and dashboard rhythm */
body[data-role] .content-card,
body[data-role] .stat-card,
body[data-role] .admin-dashboard .content-card,
body[data-role] .dashboard-stat-grid .stat-card {
    border: 1px solid var(--spk-line);
    border-radius: var(--spk-radius);
    background: var(--spk-surface);
    box-shadow: var(--spk-shadow);
}
body[data-role] .content-card,
body[data-role] .admin-dashboard .content-card { padding: clamp(20px, 2.2vw, 30px); }
body[data-role] .content-card.mb-4,
body[data-role] .admin-dashboard #welcomeCard { margin-bottom: 24px !important; }
body[data-role] .page-content > .row.mb-4,
body[data-role] .admin-dashboard .admin-stat-row,
body[data-role] .admin-dashboard .admin-chart-row,
body[data-role] .admin-dashboard .admin-recent-row {
    --bs-gutter-x: 1.25rem;
    --bs-gutter-y: 1.25rem;
    margin-bottom: 24px !important;
}
body[data-role] .stat-card,
body[data-role] .admin-dashboard .stat-card {
    min-height: 122px;
    height: 100%;
    padding: 23px 22px;
}
body[data-role] .stat-card > .d-flex,
body[data-role] .stat-card > div > .d-flex { gap: 12px; }
body[data-role] .stat-card p,
body[data-role] .admin-dashboard .stat-card p,
body[data-role] .dashboard-stat-label {
    margin-bottom: 10px !important;
    color: var(--spk-muted) !important;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
}
body[data-role] .stat-card h3,
body[data-role] .admin-dashboard .stat-card h3,
body[data-role] .dashboard-stat-value {
    font-size: clamp(23px, 2.1vw, 30px);
    font-weight: 750;
    letter-spacing: -.035em;
    line-height: 1.2;
    overflow-wrap: anywhere;
}
body[data-role] .stat-card > div > span,
body[data-role] .dashboard-stat-icon {
    width: 48px !important;
    min-width: 48px;
    height: 48px !important;
    border-radius: 13px !important;
}
body[data-role] .card-heading,
body[data-role] .admin-dashboard .card-heading {
    margin: 0 0 7px;
    color: var(--spk-ink);
    font-size: clamp(17px, 1.45vw, 20px);
    font-weight: 720;
    letter-spacing: -.018em;
    line-height: 1.35;
}
body[data-role] .section-description,
body[data-role] .admin-dashboard .section-description {
    color: var(--spk-muted);
    font-size: 13px;
    line-height: 1.55;
}
body[data-role] #welcomeCard {
    position: relative;
    overflow: hidden;
    border-color: #d7e5ed;
    background: linear-gradient(110deg, #fff 0%, #f4f8fb 100%);
}
body[data-role] #welcomeCard::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 5px;
    background: var(--spk-accent);
}
body[data-role] #welcomeCard .card-heading { font-size: clamp(21px, 2vw, 27px); }
body[data-role] .dashboard-hero::after { background: var(--spk-accent-soft); }
body[data-role] .dashboard-kicker { background: var(--spk-accent-soft); color: var(--spk-accent); font-size: 11px; }
body[data-role] .dashboard-training-card,
body[data-role] .dashboard-business-item,
body[data-role] .dashboard-profile-header {
    border-color: var(--spk-line);
    border-radius: 13px;
    background: #f8fafb;
}
body[data-role] .dashboard-training-card { padding: 20px; }
body[data-role] .admin-dashboard .admin-doughnut-wrap { max-width: 320px; }
body[data-role] .dashboard-chart-area { height: 255px; }
body[data-role] .dashboard-chart-area-wide { height: 235px; }

/* Dense information remains readable and scrolls within its card. */
body[data-role] .table-responsive { width: 100%; overflow-x: auto; border-radius: 12px; }
body[data-role] .mobile-table-hint { display: none; }
body[data-role] .table { min-width: 620px; color: var(--spk-ink); font-size: 13px; }
body[data-role] .table thead th,
body[data-role] .admin-dashboard .table thead th {
    padding: 14px 16px;
    border-bottom: 1px solid var(--spk-line);
    background: #f4f7f9;
    color: #53657a;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .06em;
    vertical-align: middle;
}
body[data-role] .table tbody td,
body[data-role] .admin-dashboard .table tbody td {
    padding: 15px 16px;
    border-color: #e9eef2;
    font-size: 13px;
    line-height: 1.45;
    vertical-align: middle;
}
body[data-role] .table tbody tr:hover td { background: #f9fbfc; }
body[data-role] .table td .btn + .btn { margin-left: 4px; }
body[data-role] .status-badge {
    min-height: 26px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.35;
    white-space: nowrap;
}
body[data-role] .pagination { flex-wrap: wrap; gap: 5px; }
body[data-role] .page-link { display: grid; place-items: center; min-width: 42px; min-height: 42px; border-radius: 9px !important; }

/* Forms and actions */
body[data-role] .form-label,
.auth-page .form-label { margin-bottom: 7px; color: #34475b; font-size: 13px; font-weight: 650; }
body[data-role] .form-control,
body[data-role] .form-select,
.auth-page .form-control,
.auth-page .form-select {
    min-height: 46px;
    padding: 10px 13px;
    border: 1px solid #cbd8e3;
    border-radius: 10px;
    background-color: #fff;
    color: var(--spk-ink);
    font-size: 14px;
    line-height: 1.4;
}
body[data-role] textarea.form-control,
.auth-page textarea.form-control { min-height: 110px; }
body[data-role] .form-control:focus,
body[data-role] .form-select:focus,
.auth-page .form-control:focus,
.auth-page .form-select:focus {
    border-color: var(--spk-accent, #2868b8);
    box-shadow: 0 0 0 3px rgba(40, 104, 184, .14);
}
body[data-role] .btn,
.auth-page .btn,
.public-page .btn {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 9px 16px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.3;
    text-align: center;
    white-space: normal;
}
body[data-role] .btn-sm { min-height: 38px; padding: 7px 12px; font-size: 12px; }
body[data-role] .btn > .bi,
.auth-page .btn > .bi,
.public-page .btn > .bi {
    display: inline-grid;
    width: 1.1em;
    height: 1.1em;
    flex: 0 0 auto;
    place-items: center;
    line-height: 1;
}
body[data-role] .btn > .bi::before,
.auth-page .btn > .bi::before,
.public-page .btn > .bi::before { vertical-align: 0; }
body[data-role] .btn:disabled,
body[data-role] .btn.disabled,
.auth-page .btn:disabled,
.auth-page .btn.disabled { opacity: .58; cursor: not-allowed; box-shadow: none; }
body[data-role] .btn[aria-busy="true"],
.auth-page .btn[aria-busy="true"] { pointer-events: none; }
body[data-role] .is-invalid,
.auth-page .is-invalid { border-color: #c94f56 !important; }
body[data-role] .invalid-feedback,
.auth-page .invalid-feedback { color: #a8343c; font-size: 12px; }
body[data-role] .content-card form > .text-end,
body[data-role] .content-card form > .d-flex.justify-content-end,
body[data-role] .content-card form .row > .col-12.d-flex.justify-content-end {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}
body[data-role] .table td.no-print { white-space: nowrap; }
body[data-role] .table td .table-actions {
    display: inline-flex !important;
    width: max-content;
    max-width: none;
    align-items: center;
    flex-wrap: nowrap !important;
    gap: 7px !important;
    vertical-align: middle;
}
body[data-role] .table td .table-actions form { display: inline-flex !important; flex: 0 0 auto; margin: 0; }
body[data-role] .table td .table-actions .btn:not(.with-label) {
    display: inline-grid;
    width: 44px;
    min-width: 44px;
    height: 44px;
    min-height: 44px;
    padding: 0;
    place-items: center;
    border-radius: 10px;
    line-height: 1;
}
body[data-role] .table td .table-actions .btn.with-label {
    min-height: 44px;
    padding: 7px 13px;
    white-space: nowrap;
}
body[data-role] .table td .table-actions .btn > .bi { margin: 0 !important; }
body[data-role] .table td .table-actions .btn + .btn { margin-left: 0 !important; }
body[data-role] .table td .table-actions .btn-info {
    border-color: #cfe6fb;
    background: #eaf5ff;
    color: #1761ae !important;
}
body[data-role] .table td .table-actions .btn-warning {
    border-color: #f5e5bc;
    background: #fff5dc;
    color: #865b12;
}
body[data-role] .table td .table-actions .btn-secondary {
    border-color: #d7e0e8;
    background: #edf2f5;
    color: #475a70;
}
body[data-role] .table td .table-actions .btn-danger {
    border-color: #f4d1d3;
    background: #fdf0f1;
    color: #b43843;
}
body[data-role] .table td .table-actions .btn-primary {
    border-color: var(--spk-accent-soft);
    background: var(--spk-accent-soft);
    color: var(--spk-accent);
}
body[data-role] .table td .table-actions .btn:hover {
    border-color: var(--spk-navy);
    background: var(--spk-navy);
    color: #fff !important;
}
body[data-role] .table td .table-actions .btn-danger:hover {
    border-color: #ad3340;
    background: #ad3340;
}
body[data-role] .table td .table-actions .btn-warning:hover {
    border-color: #946116;
    background: #946116;
}
body[data-role] .input-group > .input-group-text,
.auth-page .input-group > .input-group-text { border-color: #cbd8e3; background: #f7f9fb !important; }
body[data-role] .alert,
.auth-page .alert { border-radius: 12px; padding: 14px 17px; }
body[data-role] .modal-content { border: 1px solid var(--spk-line); border-radius: 18px; box-shadow: 0 24px 70px rgba(16, 38, 59, .18); }
body[data-role] .modal { z-index: 1200; }
body[data-role] .modal-backdrop { z-index: 1190; }
body[data-role] .modal-dialog { margin-top: 1rem; margin-bottom: 1rem; }
body[data-role] .modal-dialog-scrollable { height: calc(100vh - 2rem); height: calc(100dvh - 2rem); }
body[data-role] .modal-dialog-scrollable .modal-content > form { display: flex; flex-direction: column; min-height: 0; overflow: hidden; }
body[data-role] .modal-dialog-scrollable .modal-body { min-height: 0; overflow-y: auto; overflow-wrap: anywhere; }
body[data-role] .modal-dialog-scrollable .modal-header { position: sticky; top: 0; z-index: 2; background: var(--spk-surface); }
body[data-role] .modal-dialog-scrollable .modal-footer { position: sticky; bottom: 0; z-index: 2; background: var(--spk-surface); }
body[data-role] .modal .btn-close { flex: 0 0 auto; min-width: 44px; min-height: 44px; padding: 12px; opacity: .75; }
body[data-role] .modal .btn-close:hover,
body[data-role] .modal .btn-close:focus { opacity: 1; background-color: #eef3f8; }
body[data-role] .modal-header,
body[data-role] .modal-footer { padding: 19px 24px; border-color: var(--spk-line); }
body[data-role] .modal-body { padding: 24px; }
body[data-role] .business-review-modal { z-index: 1200; background: rgba(15, 23, 42, .48); padding: 18px; }
body[data-role] .business-review-content { display: flex; flex-direction: column; overflow: hidden; border-radius: 14px; max-height: calc(100vh - 36px); max-height: calc(100dvh - 36px); }
body[data-role] .business-review-body { min-height: 0; overflow-y: auto; overflow-wrap: anywhere; }
body[data-role] .business-review-header,
body[data-role] .business-review-footer { flex-shrink: 0; }
body[data-role] .business-review-close { flex-shrink: 0; }
body[data-role] .swal2-container { z-index: 1300; }
body[data-role] .swal2-popup { max-height: calc(100vh - 2rem); max-height: calc(100dvh - 2rem); overflow-y: auto; }
body[data-role] .business-review-header { position: sticky; top: 0; background: white; z-index: 1; }
body[data-role] .business-review-close { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 8px; font-size: 25px; }
body[data-role] .business-review-close:hover { background: #f0f3f7; color: var(--spk-ink); }
body[data-role] .business-review-footer { align-items: center; gap: 10px; flex-wrap: wrap; }
body[data-role] .business-document-link { background: var(--spk-accent); }

/* Sign in and registration */
.auth-page {
    --spk-accent: #165dd1;
    background: #f3f7fd;
    font-size: 15px;
}
.auth-page .container { max-width: 1120px; }
.auth-page .auth-card {
    border: 1px solid var(--spk-line) !important;
    border-radius: 24px !important;
    box-shadow: 0 25px 65px rgba(16, 38, 59, .09) !important;
}
.auth-login .auth-card { max-width: 920px !important; }
.auth-register .auth-card { max-width: 940px !important; }
.auth-login .auth-side {
    position: relative;
    min-height: 550px;
    padding: 56px !important;
    background: linear-gradient(150deg, #073d9d, #1261d7) !important;
}
.auth-login .auth-side::after {
    content: none;
}
.auth-login .auth-side > * { position: relative; z-index: 1; }
.auth-page .auth-brand-mark {
    display: inline-grid !important;
    width: 60px !important;
    height: 60px !important;
    place-items: center !important;
    border-radius: 16px !important;
    line-height: 1;
}
.auth-page .auth-brand-mark i,
.auth-page .auth-brand-mark i::before { display: block; line-height: 1; vertical-align: 0; }
.auth-login .auth-brand-mark { color: #165dd1 !important; }
.auth-login .auth-brand-mark-mobile { margin: 0 auto 12px; background: #e8f1ff; }
.auth-register .auth-brand-mark { background: #165dd1 !important; }
.auth-login .auth-side h1 { font-size: 42px; letter-spacing: -.05em; }
.auth-login .auth-side h5 { max-width: 270px; font-size: 20px; line-height: 1.35; }
.auth-login .auth-form { padding: clamp(30px, 5vw, 64px) !important; }
.auth-page h2 { color: var(--spk-ink); letter-spacing: -.03em; }
.auth-page .btn-primary {
    border-color: #165dd1;
    background: #165dd1;
    color: #fff;
}
.auth-page .btn-primary:hover,
.auth-page .btn-primary:focus-visible { border-color: #0b47aa; background: #0b47aa; color: #fff; }
.auth-page .btn-secondary { border-color: #dce5ef; background: #eef2f7; color: #34465c; }
.auth-page .btn-secondary:hover { border-color: #cbd7e4; background: #e2e9f1; color: #20354c; }
.auth-page .input-group-text { display: grid; min-width: 46px; place-items: center; }
.auth-page .input-group-text .bi,
.auth-page .input-group-text .bi::before { display: block; line-height: 1; vertical-align: 0; }
.auth-page .input-group .btn-outline-secondary { min-width: 46px; padding-inline: 0; border-color: #cbd8e3; }
.auth-login .auth-form form { max-width: 440px; }
.auth-page a.fw-semibold { color: #145bbf; }
.auth-register form > .d-flex.justify-content-end { align-items: center; }
.auth-register .card-body { padding: clamp(25px, 4vw, 55px) !important; }
.auth-register h5.border-bottom { margin-top: 32px !important; padding-bottom: 13px !important; border-color: var(--spk-line) !important; color: var(--spk-ink); }

/* Public entry page */
.public-page { color: var(--spk-ink); font-size: 15px; }
.public-page .public-navbar { background: rgba(16, 38, 59, .97); box-shadow: 0 8px 26px rgba(16, 38, 59, .13); }
.public-page .public-navbar .container { min-height: 70px; }
.public-page .brand-logo { background: #337ab2; }
.public-page .navbar-nav { gap: 4px !important; }
.public-page .navbar-nav .nav-link { padding: 10px 13px; border-radius: 9px; font-size: 14px; }
.public-page .navbar-nav .nav-link:hover { background: rgba(255, 255, 255, .09); }
.public-page .hero-section {
    min-height: min(740px, 90vh);
    padding: 135px 0 90px;
    background: radial-gradient(circle at 84% 30%, #245b79 0%, transparent 32%), linear-gradient(135deg, #0e2638, #183f58 68%, #23566e);
}
.public-page .hero-section .row { --bs-gutter-x: 4rem; }
.public-page .hero-section h1 { font-size: clamp(3.5rem, 7vw, 6rem); line-height: .95; }
.public-page .hero-section h2 { max-width: 650px; font-size: clamp(1.5rem, 3vw, 2.4rem); line-height: 1.22; }
.public-page .hero-section p { font-size: 1.06rem; line-height: 1.65; }
.public-page .hero-visual { max-width: 420px; min-height: 365px; border-radius: 28px; }
.public-page .hero-building { font-size: clamp(6rem, 10vw, 9rem); }
.public-page .hero-mini-card { border-radius: 15px; }
.public-page .section-space { padding: clamp(60px, 7vw, 100px) 0; }
.public-page .section-grey { background: #f3f6f8; }
.public-page .section-label { color: #2868b8; font-size: 12px; }
.public-page .section-title { color: var(--spk-ink); letter-spacing: -.035em; }
.public-page .service-card,
.public-page .training-card { border-color: var(--spk-line); border-radius: 18px; box-shadow: var(--spk-shadow); }
.public-page .service-icon { background: #e8f1fd; color: #2868b8; }
.public-page .about-panel { border-radius: 21px; background: var(--spk-navy); box-shadow: var(--spk-shadow); }
.public-page .public-footer { background: #0d2234; }

@media (max-width: 991.98px) {
    body[data-role]::after { left: 0; }
    body[data-role] .sidebar { width: var(--sidebar-width) !important; }
    body[data-role] .top-navbar { padding-inline: 20px; }
    body[data-role] .page-content { padding-inline: 20px; }
    body[data-role] .sidebar-close { top: 26px; }
    body[data-role].sidebar-open { overflow: hidden; }
    .public-page .hero-section { min-height: auto; padding-top: 130px; }
    .public-page .hero-section .row { --bs-gutter-x: 1.5rem; }
}
@media (max-width: 575.98px) {
    .auth-page { font-size: 16px; padding-bottom: 84px !important; }
    .auth-page .form-control,
    .auth-page .form-select { font-size: 16px; }
    .auth-page a.fw-semibold,
    .auth-page a.text-secondary.small { display: inline-flex; min-width: 44px; min-height: 44px; align-items: center; justify-content: center; padding-block: 10px; margin-block: -10px; }
    body[data-role] .form-control,
    body[data-role] .form-select,
    body[data-role] textarea.form-control { font-size: 16px; }
    body[data-role] .sidebar-close { top: 20px; right: 5px; width: 44px; height: 44px; }
    body[data-role] .workspace-breadcrumb a { display: inline-flex; min-width: 44px; min-height: 44px; align-items: center; justify-content: center; padding-block: 12px; margin-block: -12px; }
    body[data-role] .btn-sm { min-height: 44px; }
    body[data-role] .page-content { padding-bottom: 92px; }
    body[data-role] .table-responsive { overscroll-behavior-inline: contain; }
    body[data-role] .mobile-table-hint {
        display: flex;
        align-items: center;
        gap: 8px;
        margin: 0 0 10px;
        color: var(--spk-muted);
        font-size: 12px;
        line-height: 1.45;
    }
    body[data-role] .mobile-table-hint .bi { color: var(--spk-accent); font-size: 16px; }
    body[data-role] .table .actions-column { position: static; box-shadow: none; }
    body[data-role] .top-navbar { min-height: 68px; padding: 10px 15px; }
    body[data-role] .navbar-left { gap: 10px; }
    body[data-role] .page-title { max-width: none; font-size: 17px; white-space: normal; }
    body[data-role] .page-content { padding: 19px 14px 38px; }
    body[data-role] .content-card,
    body[data-role] .admin-dashboard .content-card { padding: 19px; }
    body[data-role] .stat-card,
    body[data-role] .admin-dashboard .stat-card { min-height: 108px; padding: 18px; }
    body[data-role] .card-heading,
    body[data-role] .admin-dashboard .card-heading { font-size: 17px; }
    body[data-role] .content-card .d-flex.justify-content-between { flex-wrap: wrap; gap: 10px; }
    body[data-role] .content-card .d-flex.justify-content-between > .btn { flex-shrink: 0; }
    body[data-role] .dashboard-footer { gap: 4px; padding: 14px; }
    .auth-page { padding: 16px !important; }
    .auth-page .auth-form { padding: 27px 22px !important; }
    .auth-page .auth-card { border-radius: 18px !important; }
    .public-page .hero-section { padding: 115px 0 60px; }
    .public-page .hero-visual { min-height: 290px; }
    .public-page .section-space { padding: 58px 0; }
}
/* Workspace composition: one heading, a quiet toolbar, then the working surface. */
body[data-role] .workspace-name { font-size: 13px; font-weight: 600; color: var(--spk-muted); }
body[data-role] .workspace-heading { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 25px; }
body[data-role] .workspace-heading h1 { margin: 9px 0 0; font-size: clamp(25px, 2.5vw, 32px); line-height: 1.2; font-weight: 720; letter-spacing: -.04em; }
body[data-role] .workspace-breadcrumb { display: flex; flex-wrap: wrap; gap: 9px; align-items: center; font-size: 12px; color: var(--spk-muted); }
body[data-role] .workspace-breadcrumb a { color: var(--spk-muted); }
body[data-role] .workspace-breadcrumb a:hover { color: var(--spk-accent); text-decoration: underline; }
body[data-role] .workspace-breadcrumb .bi { font-size: 9px; }
body[data-role] .workspace-role { display: inline-flex; align-items: center; gap: 8px; padding: 7px 11px; border: 1px solid var(--spk-line); border-radius: 7px; background: white; font-size: 12px; font-weight: 600; white-space: nowrap; }
body[data-role] .workspace-role > span { width: 7px; height: 7px; border-radius: 50%; background: var(--spk-accent); }
body[data-role] .sidebar-brand { min-height: 85px; padding: 20px 17px; gap: 10px; }
body[data-role] .brand-text span { display: block; max-width: 142px; white-space: normal; line-height: 1.45; margin-top: 4px; }
body[data-role] .brand-icon { width: 39px; min-width: 39px; height: 39px; border-radius: 10px; box-shadow: none; }
body[data-role] .sidebar-link { font-weight: 500; border-radius: 8px; }
body[data-role] .sidebar-link.active { position: relative; }
body[data-role] .sidebar-link.active::after { content: ''; width: 5px; height: 5px; border-radius: 50%; background: white; margin-left: auto; }
body[data-role].sidebar-collapsed .sidebar-link.active::after { display: none; }
body[data-role] .top-navbar { border-bottom: 1px solid var(--spk-line); background: #fff; }
body[data-role] .user-avatar { width: 36px; height: 36px; font-size: 13px; border-radius: 50%; }
body[data-role] .user-menu:hover { background: var(--spk-canvas); }
body[data-role] .content-card { box-shadow: 0 2px 3px rgba(18, 32, 54, .02); }
body[data-role] .page-toolbar { border: 0; box-shadow: none; background: transparent; padding: 0 0 21px; border-bottom: 1px solid var(--spk-line); border-radius: 0; }
body[data-role] .page-toolbar .card-heading { font-size: 17px; }
body[data-role] .page-toolbar > .d-flex { align-items: center; }
body[data-role] .page-toolbar .btn { align-self: center; flex-shrink: 0; }
body[data-role] .dashboard-welcome { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 28px 32px; margin-bottom: 24px; background: var(--spk-accent-soft) !important; border: 1px solid var(--spk-line); border-radius: 14px; }
body[data-role] .dashboard-welcome::before { display: none; }
body[data-role] .dashboard-welcome h2 { margin: 10px 0; font-size: clamp(21px, 2vw, 27px); line-height: 1.3; letter-spacing: -.035em; font-weight: 700; }
body[data-role] .dashboard-welcome p { max-width: 510px; margin: 0; color: var(--spk-muted); font-size: 14px; line-height: 1.6; }
body[data-role] .eyebrow { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--spk-accent); font-weight: 700; }
body[data-role] .welcome-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
body[data-role] .welcome-actions .btn { gap: 9px; }
body[data-role] .workspace-illustration { width: 240px; max-width: 30%; height: auto; flex-shrink: 0; color: var(--spk-accent); }
body[data-role] .stat-card { box-shadow: none; border-top: 3px solid var(--spk-accent-soft); }
body[data-role] .stat-card h3 { font-variant-numeric: tabular-nums; }
body[data-role] .stat-card p { font-size: 13px; }
body[data-role] .text-info { color: #16728a !important; }
body[data-role] .text-warning { color: #98650d !important; }
body[data-role] .text-success { color: #23704d !important; }
body[data-role] .status-pending, body[data-role] .status-upcoming { background: #fff3d6; color: #87590b; }
body[data-role] .status-active, body[data-role] .status-approved, body[data-role] .status-open { background: #e4f5ec; color: #206b4b; }
body[data-role] .status-inactive, body[data-role] .status-cancelled, body[data-role] .status-rejected { background: #fcebed; color: #a43342; }
body[data-role] .table { --bs-table-bg: transparent; margin-bottom: 0; }
body[data-role] .table th { white-space: nowrap; }
body[data-role] .table tbody tr:last-child td { border-bottom: 0; }
body[data-role] .table tbody td { background: white; overflow-wrap: normal; word-break: normal; white-space: nowrap; }
body[data-role] .table td[colspan] { white-space: normal; }
body[data-role] .table .actions-column { position: sticky; right: 0; z-index: 1; box-shadow: -1px 0 0 var(--spk-line); }
body[data-role] .table thead .actions-column { z-index: 2; }
body[data-role] .filter-form > .row > .d-flex { justify-content: flex-end; }
body[data-role] .filter-form .btn.flex-fill { flex: 0 0 auto !important; }
body[data-role] .table thead th { background: #f6f8fa; color: #526075; text-transform: uppercase; }
body[data-role] .table-responsive { border: 1px solid var(--spk-line); border-radius: 9px; scrollbar-width: thin; }
body[data-role] .table-responsive:focus-visible { outline: 3px solid var(--spk-accent); outline-offset: 3px; }
body[data-role] .table td[colspan].text-center { padding: 42px 24px; color: var(--spk-muted); background: #fafbfd; }
body[data-role] .empty-state { padding: 38px 22px; border: 1px dashed #cbd5e1; border-radius: 12px; background: #fafbfd; text-align: center; color: var(--spk-muted); }
body[data-role] .empty-state > i { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; color: var(--spk-accent); background: var(--spk-accent-soft); font-size: 25px; margin-bottom: 12px; }
body[data-role] .empty-state p:last-child { margin-bottom: 0; }
body[data-role] .form-control::placeholder { color: #778395; opacity: 1; }
body[data-role] .form-control:disabled, body[data-role] .form-control[readonly], body[data-role] .form-select:disabled { background: #f3f5f8; color: #566579; }
body[data-role] .form-select { padding-right: 38px; }
body[data-role] .form-text { font-size: 12px; line-height: 1.5; margin-top: 7px; }
body[data-role] form .row.g-3 { --bs-gutter-y: 1.25rem; }
body[data-role] .form-actions { display: flex; justify-content: flex-end; align-items: center; flex-wrap: wrap; gap: 10px; border-top: 1px solid var(--spk-line); margin-top: 26px !important; padding-top: 20px; }
body[data-role] .form-actions > .btn { margin: 0 !important; }
body[data-role] .btn { gap: 7px; font-weight: 600; transition: background-color .15s, border-color .15s, box-shadow .15s; }
body[data-role] .btn-secondary { background: #fff; border-color: #ccd5df; color: #43536a; }
body[data-role] .btn-secondary:hover { background: #edf1f6; border-color: #a7b6c6; color: #21354d; }
body[data-role] .btn:active { box-shadow: inset 0 1px 3px rgba(0,0,0,.12); }
body[data-role] .btn-sm { min-height: 40px; }
body[data-role] .alert { border-width: 0 0 0 3px; font-size: 14px; }
body[data-role] .alert-danger { color: #9d2934; background: #fff0f1; border-color: #c54856; }
body[data-role] .alert-success { color: #166247; background: #eaf8f0; border-color: #24805e; }
body[data-role] .spk-table-pagination button.active, body[data-role] .spk-table-pagination button:hover:not(:disabled), body[data-role] .page-item.active .page-link { background: var(--spk-accent); border-color: var(--spk-accent); color: white; }
body[data-role] .spk-table-pagination button { min-height: 44px; min-width: 44px; }
body[data-role] .dashboard-footer { padding-bottom: 60px; }
.auth-login .auth-side { padding: 38px !important; }
.auth-login .auth-side .text-white-50 { color: #dceaff !important; font-size: 14px; }
.auth-login .auth-illustration { display: block; width: 100%; max-height: 185px; object-fit: contain; margin-top: 28px; }
.auth-page .btn { gap: 8px; }
@media (min-width: 992px) {
    body[data-role].sidebar-collapsed .sidebar-brand { padding-inline: 19px; }
    body[data-role].sidebar-collapsed .sidebar-link { padding-inline: 15px; }
    body[data-role] .filter-form > .row > div { flex: 1 1 160px; width: auto; }
    body[data-role] .filter-form > .row > div:first-child { flex-grow: 2; }
    body[data-role] .filter-form > .row > .d-flex.gap-2 { flex: 0 0 auto; width: auto; }
    body[data-role] .filter-form > .row > .col-12 { flex-basis: 100%; }
}
@media (max-width: 991.98px) {
    body[data-role] .workspace-name { max-width: 280px; font-size: 12px; }
    body[data-role] .sidebar-brand { padding-right: 43px; }
    body[data-role] .sidebar-close { right: 8px; width: 36px; height: 36px; top: 24px; }
    body[data-role] .dashboard-welcome { padding: 24px; }
}
@media (max-width: 575.98px) {
    body[data-role] .workspace-name { max-width: 195px; font-size: 11px; line-height: 1.4; display: block; }
    body[data-role] .workspace-heading { align-items: flex-start; gap: 12px; margin-bottom: 22px; }
    body[data-role] .workspace-role { display: none; }
    body[data-role] .workspace-breadcrumb { font-size: 11px; }
    body[data-role] .dashboard-welcome { padding: 22px; }
    body[data-role] .workspace-illustration { display: none; }
    body[data-role] .page-toolbar { padding: 0 0 20px; }
    body[data-role] .page-toolbar > .d-flex { align-items: stretch; }
    body[data-role] .page-toolbar .btn { align-self: stretch; }
    body[data-role] .form-actions > .btn { flex: 1 1 auto; }
    body[data-role] .welcome-actions .btn { flex: 1 1 auto; }
    body[data-role] .modal-header, body[data-role] .modal-body, body[data-role] .modal-footer { padding: 18px; }
    body[data-role] .sidebar-close { top: 20px; right: 5px; width: 44px; height: 44px; }
    body[data-role] .btn-sm { min-height: 44px; }
    body[data-role] .page-content { padding-bottom: 92px; }
    body[data-role] .mobile-table-hint { padding-right: 92px; }
    .auth-page { padding-bottom: 84px !important; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
    .auth-page .auth-card,
    .auth-login .auth-side,
    .auth-login .auth-form,
    .auth-register .auth-card .card-body,
    body[data-role] .page-content { animation: none !important; opacity: 1 !important; transform: none !important; }
    body[data-role]::after { display: none; }
}
@media print {
    body[data-role] .table { min-width: 0; font-size: 10px; }
    body[data-role] .table tbody td, body[data-role] .table thead th { padding: 6px; white-space: normal; font-size: 10px; }
    body[data-role] .table-responsive { overflow: visible; border: 0; }
    body[data-role] .table .actions-column { position: static; }
    body[data-role] .page-content { max-width: none; padding: 0 !important; }
    body[data-role] .content-card,
    body[data-role] .stat-card { box-shadow: none; border-color: #d7d7d7; }
}
