:root {
    --kalp-navy-950: #031735;
    --kalp-navy-900: #06224a;
    --kalp-navy-800: #0a3269;
    --kalp-blue-700: #075fd8;
    --kalp-blue-600: #0877ee;
    --kalp-cyan-500: #08a7e8;
    --kalp-cyan-100: #dff6ff;
    --kalp-ink: #0c1d3b;
    --kalp-text: #203753;
    --kalp-muted: #61738d;
    --kalp-line: #dce6f2;
    --kalp-soft: #f4f8fd;
    --kalp-white: #ffffff;
    --kalp-success: #0b9464;
    --kalp-danger: #cf3d4f;
    --kalp-radius-sm: 12px;
    --kalp-radius: 18px;
    --kalp-radius-lg: 24px;
    --kalp-shadow-sm: 0 8px 24px rgba(7, 36, 76, .07);
    --kalp-shadow: 0 18px 52px rgba(7, 36, 76, .11);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

.visually-hidden {
    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;
}

body.kalp-app,
body:has(.kalp-workspace-bar) {
    min-height: 100vh;
    color: var(--kalp-text);
    background:
        radial-gradient(circle at 92% -8%, rgba(8, 167, 232, .14), transparent 28rem),
        linear-gradient(180deg, #f9fbff 0%, #f2f6fc 100%) !important;
    font-family: Inter, "Segoe UI", Arial, sans-serif !important;
    -webkit-font-smoothing: antialiased;
}

body:has(.kalp-workspace-bar) .hero {
    padding-top: 34px;
}

body:has(.kalp-workspace-bar) .hero .glass-card,
body:has(.kalp-workspace-bar) .hero .section-card,
body:has(.kalp-workspace-bar) .hero .panel {
    color: #fff !important;
    border-color: rgba(255, 255, 255, .22) !important;
    background: rgba(255, 255, 255, .10) !important;
    box-shadow: none !important;
    backdrop-filter: blur(12px);
}

body:has(.kalp-workspace-bar) .hero .glass-card .text-secondary,
body:has(.kalp-workspace-bar) .hero .section-card .text-secondary,
body:has(.kalp-workspace-bar) .hero .panel .text-secondary {
    color: rgba(255, 255, 255, .7) !important;
}

.kalp-skip-link {
    position: fixed;
    top: -80px;
    left: 18px;
    z-index: 10000;
    padding: 10px 14px;
    border-radius: 10px;
    color: #fff;
    background: var(--kalp-blue-700);
    font-weight: 800;
    text-decoration: none;
}

.kalp-skip-link:focus { top: 12px; }

.kalp-workspace-bar {
    position: sticky;
    top: 0;
    z-index: 1090;
    min-height: 72px;
    border-bottom: 1px solid rgba(220, 230, 242, .9);
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 8px 28px rgba(7, 36, 76, .06);
    backdrop-filter: blur(18px);
}

.kalp-workspace-inner {
    width: min(1520px, calc(100% - 40px));
    min-height: 72px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
}

.kalp-workspace-brand {
    min-width: 0;
    display: inline-flex;
    align-items: center;
    gap: 13px;
    color: var(--kalp-ink);
    text-decoration: none;
}

.kalp-workspace-brand img {
    width: 46px;
    height: 46px;
    object-fit: contain;
    flex: 0 0 46px;
}

.kalp-brand-copy { line-height: 1.05; }
.kalp-brand-name { font-size: 1.05rem; font-weight: 850; letter-spacing: -.02em; }
.kalp-brand-product { margin-top: 5px; color: var(--kalp-muted); font-size: .72rem; font-weight: 750; letter-spacing: .04em; text-transform: uppercase; }

.kalp-workspace-nav {
    display: flex;
    align-items: center;
    gap: 5px;
}

.kalp-workspace-nav a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    padding: 0 13px;
    border-radius: 11px;
    color: #40536f;
    font-size: .86rem;
    font-weight: 750;
    text-decoration: none;
    transition: color .18s ease, background .18s ease, transform .18s ease;
}

.kalp-workspace-nav a:hover,
.kalp-workspace-nav a:focus-visible {
    color: var(--kalp-blue-700);
    background: #edf5ff;
}

.kalp-workspace-nav .kalp-nav-primary {
    color: #fff;
    background: linear-gradient(135deg, var(--kalp-blue-700), var(--kalp-blue-600));
    box-shadow: 0 9px 22px rgba(7, 95, 216, .2);
}

.kalp-workspace-nav .kalp-nav-primary:hover,
.kalp-workspace-nav .kalp-nav-primary:focus-visible {
    color: #fff;
    background: var(--kalp-navy-800);
    transform: translateY(-1px);
}

.kalp-mobile-menu {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid var(--kalp-line);
    border-radius: 11px;
    color: var(--kalp-ink);
    background: #fff;
}

/* Common module surfaces. These rules intentionally sit after each legacy
   page's inline CSS, so presentation changes without changing page behavior. */
body:has(.kalp-workspace-bar) .page-shell,
body:has(.kalp-workspace-bar) main.page-shell,
body:has(.kalp-workspace-bar) .page-wrap {
    width: min(1520px, calc(100% - 40px)) !important;
    max-width: 1520px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

body:has(.kalp-workspace-bar) .glass-card,
body:has(.kalp-workspace-bar) .panel,
body:has(.kalp-workspace-bar) .section-box,
body:has(.kalp-workspace-bar) .analysis-card,
body:has(.kalp-workspace-bar) .status-strip,
body:has(.kalp-workspace-bar) .topbar {
    border: 1px solid var(--kalp-line) !important;
    border-radius: var(--kalp-radius) !important;
    background: rgba(255, 255, 255, .97) !important;
    box-shadow: var(--kalp-shadow-sm) !important;
}

body:has(.kalp-workspace-bar) .hero {
    background:
        radial-gradient(circle at 86% 10%, rgba(8, 167, 232, .26), transparent 20rem),
        linear-gradient(120deg, var(--kalp-navy-950), var(--kalp-navy-800) 58%, #0757a3) !important;
}

body:has(.kalp-workspace-bar) h1,
body:has(.kalp-workspace-bar) h2,
body:has(.kalp-workspace-bar) h3,
body:has(.kalp-workspace-bar) h4,
body:has(.kalp-workspace-bar) h5,
body:has(.kalp-workspace-bar) h6,
body:has(.kalp-workspace-bar) .section-title,
body:has(.kalp-workspace-bar) .panel-title {
    color: var(--kalp-ink);
    letter-spacing: -.02em;
}

body:has(.kalp-workspace-bar) .hero h1,
body:has(.kalp-workspace-bar) .hero h2,
body:has(.kalp-workspace-bar) .hero h3,
body:has(.kalp-workspace-bar) .hero h4,
body:has(.kalp-workspace-bar) .hero h5,
body:has(.kalp-workspace-bar) .hero h6 { color: #fff; }

body:has(.kalp-workspace-bar) .text-secondary,
body:has(.kalp-workspace-bar) .section-subtitle,
body:has(.kalp-workspace-bar) .panel-copy { color: var(--kalp-muted) !important; }

body:has(.kalp-workspace-bar) .btn-primary,
body:has(.kalp-workspace-bar) .primary-button,
body:has(.kalp-workspace-bar) .download-button {
    border-color: var(--kalp-blue-700) !important;
    color: #fff !important;
    background: linear-gradient(135deg, var(--kalp-blue-700), var(--kalp-blue-600)) !important;
    box-shadow: 0 9px 22px rgba(7, 95, 216, .18);
}

body:has(.kalp-workspace-bar) .btn-success {
    border-color: var(--kalp-blue-700) !important;
    background: var(--kalp-blue-700) !important;
}

body:has(.kalp-workspace-bar) .btn,
body:has(.kalp-workspace-bar) button,
body:has(.kalp-workspace-bar) input,
body:has(.kalp-workspace-bar) select,
body:has(.kalp-workspace-bar) textarea { border-radius: var(--kalp-radius-sm); }

body:has(.kalp-workspace-bar) .btn:focus-visible,
body:has(.kalp-workspace-bar) button:focus-visible,
body:has(.kalp-workspace-bar) a:focus-visible,
body:has(.kalp-workspace-bar) input:focus-visible,
body:has(.kalp-workspace-bar) select:focus-visible,
body:has(.kalp-workspace-bar) textarea:focus-visible {
    outline: 3px solid rgba(8, 119, 238, .25) !important;
    outline-offset: 2px;
}

body:has(.kalp-workspace-bar) .drop-zone,
body:has(.kalp-workspace-bar) .upload-control,
body:has(.kalp-workspace-bar) .upload-box,
body:has(.kalp-workspace-bar) .upload-panel {
    border-color: #9dc8f7 !important;
    background: linear-gradient(180deg, #fafdff, #f1f7ff) !important;
}

body:has(.kalp-workspace-bar) .drop-zone:hover,
body:has(.kalp-workspace-bar) .upload-control:hover,
body:has(.kalp-workspace-bar) .upload-box:hover {
    border-color: var(--kalp-blue-600) !important;
}

body:has(.kalp-workspace-bar) .kv,
body:has(.kalp-workspace-bar) .stat-card,
body:has(.kalp-workspace-bar) .summary-card,
body:has(.kalp-workspace-bar) .metric-card {
    border-color: var(--kalp-line) !important;
    border-radius: 15px !important;
    background: linear-gradient(180deg, #fff, #f8fbff) !important;
}

body:has(.kalp-workspace-bar) .kv .label,
body:has(.kalp-workspace-bar) .stat-label,
body:has(.kalp-workspace-bar) .summary-label {
    color: #63758f !important;
    font-size: .72rem !important;
    font-weight: 850 !important;
    letter-spacing: .075em !important;
}

body:has(.kalp-workspace-bar) .kv .value,
body:has(.kalp-workspace-bar) .stat-value,
body:has(.kalp-workspace-bar) .summary-value {
    color: var(--kalp-ink) !important;
    overflow-wrap: anywhere;
}

body:has(.kalp-workspace-bar) .table {
    --bs-table-bg: transparent;
    --bs-table-striped-bg: #f7faff;
    color: var(--kalp-text);
}

body:has(.kalp-workspace-bar) .table th {
    color: #526985;
    background: #f3f7fc !important;
    border-color: var(--kalp-line) !important;
    font-size: .72rem;
    font-weight: 850;
    letter-spacing: .045em;
    text-transform: uppercase;
}

body:has(.kalp-workspace-bar) .table td { border-color: var(--kalp-line) !important; }

body:has(.kalp-workspace-bar) .nav-pills .nav-link.active,
body:has(.kalp-workspace-bar) .page-tab .nav-link.active,
body:has(.kalp-workspace-bar) .page-nav .nav-link.active {
    color: #fff !important;
    background: var(--kalp-blue-700) !important;
}

body:has(.kalp-workspace-bar) .mini-badge,
body:has(.kalp-workspace-bar) .status-pill,
body:has(.kalp-workspace-bar) .pill,
body:has(.kalp-workspace-bar) .page-pill {
    color: #075eb8 !important;
    border-color: #cbe4fb !important;
    background: #eaf6ff !important;
}

body:has(.kalp-workspace-bar) .raw,
body:has(.kalp-workspace-bar) .raw-text,
body:has(.kalp-workspace-bar) .text-box {
    color: #dceaff !important;
    background: var(--kalp-navy-950) !important;
    border-color: #173b68 !important;
}

.kalp-module-context {
    width: min(1520px, calc(100% - 40px));
    margin: 14px auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    color: var(--kalp-muted);
    font-size: .82rem;
}

.kalp-module-context strong { color: var(--kalp-ink); }

.kalp-site-footer {
    margin-top: 44px;
    padding: 28px 0;
    color: rgba(255, 255, 255, .76);
    background: var(--kalp-navy-950);
}

.kalp-site-footer-inner {
    width: min(1520px, calc(100% - 40px));
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.kalp-site-footer-brand { display: flex; align-items: center; gap: 12px; }
.kalp-site-footer-brand img { width: 44px; height: 44px; padding: 5px; border-radius: 12px; background: #fff; object-fit: contain; }
.kalp-site-footer strong { color: #fff; }

@media (max-width: 900px) {
    .kalp-workspace-inner { width: min(100% - 24px, 1520px); }
    .kalp-workspace-nav {
        display: none;
        position: absolute;
        top: 64px;
        left: 12px;
        right: 12px;
        padding: 10px;
        flex-direction: column;
        align-items: stretch;
        border: 1px solid var(--kalp-line);
        border-radius: 14px;
        background: #fff;
        box-shadow: var(--kalp-shadow);
    }
    .kalp-workspace-nav.is-open { display: flex; }
    .kalp-workspace-nav a { justify-content: flex-start; }
    .kalp-mobile-menu { display: inline-grid; place-items: center; }
    .kalp-module-context { width: min(100% - 24px, 1520px); }
}

@media (max-width: 767.98px) {
    .kalp-brand-product { display: none; }
    .kalp-workspace-brand img { width: 40px; height: 40px; flex-basis: 40px; }
    .kalp-workspace-bar,
    .kalp-workspace-inner { min-height: 64px; }
    body:has(.kalp-workspace-bar) .page-shell,
    body:has(.kalp-workspace-bar) main.page-shell,
    body:has(.kalp-workspace-bar) .page-wrap { width: min(100% - 24px, 1520px) !important; }
    .kalp-site-footer-inner { width: min(100% - 24px, 1520px); align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

/* Authenticated application shell -------------------------------------------------
   A single navigation system is shared by customer, admin, PDF and OCR screens. */
:root {
    --kalp-sidebar-width: 264px;
    --kalp-app-gutter: clamp(16px, 2vw, 30px);
}

body:has(.kalp-sidebar) {
    padding-left: var(--kalp-sidebar-width);
}

.kalp-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 1200;
    width: var(--kalp-sidebar-width);
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    color: #d7e6fb;
    background:
        radial-gradient(circle at 18% 10%, rgba(8, 167, 232, .18), transparent 17rem),
        linear-gradient(165deg, #061b3d 0%, #062958 58%, #041a38 100%);
    border-right: 1px solid rgba(159, 203, 255, .17);
    box-shadow: 12px 0 34px rgba(3, 23, 53, .12);
    overflow: hidden;
}

.kalp-sidebar::after {
    content: "";
    position: absolute;
    right: -78px;
    bottom: 70px;
    width: 210px;
    height: 210px;
    border: 1px solid rgba(31, 177, 255, .13);
    border-radius: 50%;
    box-shadow: 0 0 0 38px rgba(31, 177, 255, .035), 0 0 0 78px rgba(31, 177, 255, .025);
    pointer-events: none;
}

.kalp-sidebar-brand {
    position: relative;
    z-index: 1;
    min-height: 84px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 17px 18px;
    border-bottom: 1px solid rgba(194, 220, 255, .13);
}

.kalp-sidebar-brand > a {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    text-decoration: none;
}

.kalp-sidebar-brand img {
    width: 44px;
    height: 44px;
    padding: 5px;
    flex: 0 0 44px;
    border-radius: 12px;
    background: #fff;
    object-fit: contain;
    box-shadow: 0 10px 24px rgba(1, 11, 28, .22);
}

.kalp-sidebar-brand span { min-width: 0; display: grid; gap: 3px; }
.kalp-sidebar-brand strong { font-size: 1.08rem; font-weight: 850; letter-spacing: -.025em; }
.kalp-sidebar-brand small { color: #9fb7d5; font-size: .63rem; font-weight: 800; letter-spacing: .075em; text-transform: uppercase; white-space: nowrap; }

.kalp-sidebar-close {
    display: none;
    width: 36px;
    height: 36px;
    border: 1px solid rgba(255, 255, 255, .18);
    color: #fff;
    background: rgba(255, 255, 255, .08);
}

.kalp-sidebar-nav {
    position: relative;
    z-index: 1;
    min-height: 0;
    flex: 1;
    padding: 16px 12px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(158, 195, 238, .28) transparent;
}

.kalp-nav-group + .kalp-nav-group {
    margin-top: 18px;
    padding-top: 17px;
    border-top: 1px solid rgba(194, 220, 255, .10);
}

.kalp-nav-label {
    display: block;
    margin: 0 10px 7px;
    color: #7f9bbb;
    font-size: .64rem;
    font-weight: 850;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.kalp-sidebar-nav a {
    position: relative;
    min-height: 42px;
    display: flex;
    align-items: center;
    gap: 11px;
    margin: 3px 0;
    padding: 9px 11px;
    border: 1px solid transparent;
    border-radius: 11px;
    color: #c7d7eb;
    font-size: .82rem;
    font-weight: 700;
    text-decoration: none;
    transition: color .18s ease, background .18s ease, border-color .18s ease, transform .18s ease;
}

.kalp-sidebar-nav a i {
    width: 20px;
    color: #8fb4dd;
    font-size: .92rem;
    text-align: center;
    transition: color .18s ease;
}

.kalp-sidebar-nav a:hover,
.kalp-sidebar-nav a:focus-visible {
    color: #fff;
    border-color: rgba(148, 208, 255, .16);
    background: rgba(255, 255, 255, .075);
    transform: translateX(2px);
}

.kalp-sidebar-nav a.is-active {
    color: #fff;
    border-color: rgba(123, 206, 255, .25);
    background: linear-gradient(100deg, rgba(9, 102, 227, .96), rgba(7, 138, 240, .78));
    box-shadow: 0 10px 24px rgba(0, 75, 176, .24);
}

.kalp-sidebar-nav a.is-active::before {
    content: "";
    position: absolute;
    left: -12px;
    width: 3px;
    height: 22px;
    border-radius: 0 8px 8px 0;
    background: #6ee5ff;
    box-shadow: 0 0 14px rgba(110, 229, 255, .8);
}

.kalp-sidebar-nav a.is-active i { color: #fff; }

.kalp-sidebar-account {
    position: relative;
    z-index: 1;
    margin: 10px 12px 14px;
    padding: 11px;
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr) 34px;
    align-items: center;
    gap: 9px;
    border: 1px solid rgba(184, 214, 248, .14);
    border-radius: 13px;
    background: rgba(255, 255, 255, .065);
}

.kalp-account-avatar {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    color: #fff;
    background: linear-gradient(135deg, #0877ee, #08a7e8);
    font-weight: 850;
}

.kalp-account-copy { min-width: 0; display: grid; gap: 2px; }
.kalp-account-copy strong { overflow: hidden; color: #fff; font-size: .76rem; text-overflow: ellipsis; white-space: nowrap; }
.kalp-account-copy span { overflow: hidden; color: #8fa9c7; font-size: .64rem; text-overflow: ellipsis; white-space: nowrap; }
.kalp-account-action { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 9px; color: #a8c1dd; text-decoration: none; }
.kalp-account-action:hover { color: #fff; background: rgba(255, 255, 255, .1); }

.kalp-sidebar-overlay {
    position: fixed;
    inset: 0;
    z-index: 1190;
    display: none;
    border: 0;
    border-radius: 0 !important;
    background: rgba(3, 18, 42, .58);
    backdrop-filter: blur(3px);
}

body:has(.kalp-sidebar) .kalp-workspace-bar {
    min-height: 82px;
    border-bottom-color: var(--kalp-line);
}

body:has(.kalp-sidebar) .kalp-workspace-inner {
    width: 100%;
    min-height: 82px;
    padding: 10px var(--kalp-app-gutter);
}

.kalp-workspace-title-wrap,
.kalp-header-actions,
.kalp-header-profile {
    display: flex;
    align-items: center;
}

.kalp-workspace-title-wrap { min-width: 0; gap: 12px; }
.kalp-workspace-eyebrow { margin-bottom: 2px; color: #6c809a; font-size: .63rem; font-weight: 850; letter-spacing: .105em; text-transform: uppercase; }
.kalp-workspace-title { color: var(--kalp-ink); font-size: 1.08rem; font-weight: 850; letter-spacing: -.02em; line-height: 1.16; }
.kalp-workspace-subtitle { margin-top: 3px; color: var(--kalp-muted); font-size: .72rem; }
.kalp-header-actions { gap: 10px; }

.kalp-security-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 36px;
    padding: 0 11px;
    border: 1px solid #d8e5f3;
    border-radius: 10px;
    color: #526984;
    background: #f7faff;
    font-size: .7rem;
    font-weight: 750;
}

.kalp-security-chip i { color: var(--kalp-success); }

.kalp-header-profile {
    min-width: 0;
    gap: 9px;
    padding: 5px 9px 5px 5px;
    border: 1px solid #dce6f2;
    border-radius: 12px;
    color: var(--kalp-text);
    background: #fff;
    text-decoration: none;
}

.kalp-header-profile > span:first-child {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    flex: 0 0 34px;
    border-radius: 9px;
    color: #fff;
    background: linear-gradient(135deg, var(--kalp-blue-700), var(--kalp-cyan-500));
    font-size: .75rem;
    font-weight: 850;
}

.kalp-header-profile-copy { min-width: 0; display: grid; line-height: 1.15; }
.kalp-header-profile-copy strong { max-width: 150px; overflow: hidden; color: var(--kalp-ink); font-size: .72rem; text-overflow: ellipsis; white-space: nowrap; }
.kalp-header-profile-copy small { margin-top: 3px; color: var(--kalp-muted); font-size: .62rem; }
.kalp-header-login { min-height: 38px; display: inline-flex; align-items: center; padding: 0 14px; border-radius: 10px; color: #fff; background: var(--kalp-blue-700); font-size: .75rem; font-weight: 800; text-decoration: none; }

.kalp-content-anchor { display: block; }
.kalp-module-context {
    width: auto;
    min-height: 58px;
    margin: 0 var(--kalp-app-gutter) 18px;
    padding: 10px 14px;
    border-bottom: 1px solid var(--kalp-line);
}

.kalp-module-context > span:first-child { display: grid; gap: 3px; }
.kalp-module-context strong { font-size: .82rem; }
.kalp-module-context small { color: var(--kalp-muted); font-size: .68rem; }
.kalp-context-state { display: inline-flex; align-items: center; gap: 7px; color: #49708f; font-size: .68rem; font-weight: 800; }
.kalp-context-state i { color: #16a66c; font-size: .45rem; box-shadow: 0 0 0 4px rgba(22, 166, 108, .1); border-radius: 50%; }

body:has(.kalp-sidebar) .page-shell,
body:has(.kalp-sidebar) main.page-shell,
body:has(.kalp-sidebar) .page-wrap {
    width: calc(100% - (var(--kalp-app-gutter) * 2)) !important;
    max-width: 1540px !important;
}

body:has(.kalp-sidebar) .kalp-site-footer-inner {
    width: calc(100% - (var(--kalp-app-gutter) * 2));
    max-width: 1540px;
}

@media (max-width: 1100px) {
    :root { --kalp-sidebar-width: 238px; }
    .kalp-sidebar-brand small { font-size: .57rem; }
    .kalp-security-chip { display: none; }
}

@media (max-width: 900px) {
    body:has(.kalp-sidebar) { padding-left: 0; }
    .kalp-sidebar {
        width: min(286px, calc(100vw - 42px));
        transform: translateX(-105%);
        transition: transform .24s ease;
    }
    .kalp-sidebar.is-open { transform: translateX(0); }
    .kalp-sidebar-close { display: grid; place-items: center; }
    body.kalp-nav-open { overflow: hidden; }
    body.kalp-nav-open .kalp-sidebar-overlay { display: block; }
    .kalp-mobile-menu { display: grid; place-items: center; }
    body:has(.kalp-sidebar) .kalp-workspace-inner { width: 100%; }
}

@media (max-width: 560px) {
    body:has(.kalp-sidebar) .kalp-workspace-bar,
    body:has(.kalp-sidebar) .kalp-workspace-inner { min-height: 72px; }
    .kalp-workspace-eyebrow,
    .kalp-workspace-subtitle,
    .kalp-header-profile-copy { display: none; }
    .kalp-workspace-title { max-width: 48vw; overflow: hidden; font-size: .92rem; text-overflow: ellipsis; white-space: nowrap; }
    .kalp-header-profile { padding-right: 5px; }
    .kalp-module-context { margin-bottom: 12px; }
    .kalp-module-context small { display: none; }
}
