:root {
    --enterprise-ui-navy: #071b33;
    --enterprise-ui-gold: #c9972b;
    --enterprise-ui-bg: #f4f7fa;
    --enterprise-ui-card: #fff;
    --enterprise-ui-border: #dce3ea;
    --enterprise-ui-muted: #5f6f7f;
    --enterprise-ui-success: #087f5b;
    --enterprise-ui-danger: #b42318;
    --enterprise-ui-radius: 12px;
}

[data-bs-theme="dark"] {
    --enterprise-ui-navy: #e8eef6;
    --enterprise-ui-bg: #0b1220;
    --enterprise-ui-card: #111827;
    --enterprise-ui-border: #2a374a;
    --enterprise-ui-muted: #a6b2c2;
}

.home-menu { display:none; }
.home-nav-group.is-open .home-menu { display:block; }
.home-platform-menu .home-mega-menu { inset-inline-start:auto; inset-inline-end:0; max-width:calc(100vw - 16px); }
.home-mega-menu { width: min(760px, calc(100vw - 32px)); padding: 14px; }
.home-mega-menu__head { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:4px 6px 12px; border-bottom:1px solid var(--home-border); }
.home-mega-menu__head a { color:var(--home-gold); font-weight:900; }
.home-mega-menu__grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:6px; padding-top:10px; }
.home-mega-menu__grid a { display:grid; grid-template-columns:auto 1fr; gap:10px; align-items:center; min-height:48px; padding:8px 10px; border-radius:8px; }
.home-mega-menu__grid a:hover,.home-mega-menu__grid a.is-active { background:var(--home-hover); color:var(--home-gold); }
.home-mega-menu__grid svg { width:20px; height:20px; }

.platform-section-bar { position:sticky; top:56px; z-index:45; display:grid; grid-template-columns:auto minmax(0,1fr); align-items:center; gap:14px; padding:8px clamp(12px,2vw,28px); background:color-mix(in srgb,var(--enterprise-ui-card) 96%,transparent); border-bottom:1px solid var(--enterprise-ui-border); box-shadow:0 6px 16px rgba(7,27,51,.05); }
.platform-section-bar__identity { display:flex; align-items:center; gap:8px; min-width:max-content; }
.platform-section-bar__identity>span { display:grid; place-items:center; width:30px; height:30px; color:var(--enterprise-ui-gold); background:rgba(201,151,43,.12); border-radius:8px; }
.platform-section-bar__identity a { color:var(--enterprise-ui-muted); font-size:.78rem; font-weight:800; }
.platform-section-bar nav { display:flex; gap:5px; overflow-x:auto; scrollbar-width:thin; padding:2px 0 4px; }
.platform-section-bar nav a { flex:0 0 auto; padding:7px 10px; color:var(--enterprise-ui-muted); border:1px solid transparent; border-radius:8px; font-size:.8rem; font-weight:800; text-decoration:none; white-space:nowrap; }
.platform-section-bar nav a:hover,.platform-section-bar nav a.is-active { color:var(--enterprise-ui-navy); background:var(--enterprise-ui-bg); border-color:var(--enterprise-ui-border); }
.platform-section-bar nav a.is-active { color:var(--enterprise-ui-gold); }

.platforms-page,.enterprise-workbench-page { width:min(1440px,calc(100% - 32px)); margin:0 auto; padding:32px 0 56px; color:var(--enterprise-ui-navy); }
.platforms-hero,.workbench-hero { display:flex; align-items:center; justify-content:space-between; gap:24px; padding:clamp(24px,4vw,42px); color:#fff; background:linear-gradient(135deg,#071b33,#16395d); border-radius:18px; box-shadow:0 20px 50px rgba(7,27,51,.15); }
.platforms-hero h1,.workbench-hero h1 { margin:4px 0 10px; font-size:clamp(2rem,4vw,3.4rem); font-weight:900; }
.platforms-hero p,.workbench-hero span { max-width:820px; margin:0; color:#dbe6f1; line-height:1.7; }
.platforms-kicker,.workbench-hero p { margin:0; color:#e7bd62; font-size:.78rem; font-weight:900; letter-spacing:.12em; text-transform:uppercase; }
.platforms-hero aside { display:grid; grid-template-columns:auto 1fr; gap:2px 10px; align-items:center; min-width:230px; padding:16px; background:rgba(255,255,255,.08); border:1px solid rgba(255,255,255,.14); border-radius:12px; }
.platforms-hero aside svg { grid-row:1/3; width:28px; height:28px; color:#e7bd62; }
.platforms-hero aside small { color:#c8d5e2; }
.workbench-hero>a { padding:10px 14px; color:#fff; border:1px solid rgba(255,255,255,.3); border-radius:9px; text-decoration:none; font-weight:850; white-space:nowrap; }

.platform-card-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(330px,1fr)); gap:18px; margin-top:24px; }
.platform-card { display:flex; flex-direction:column; min-height:390px; padding:22px; background:var(--enterprise-ui-card); border:1px solid var(--enterprise-ui-border); border-radius:var(--enterprise-ui-radius); box-shadow:0 12px 34px rgba(7,27,51,.06); }
.platform-card>header { display:flex; gap:12px; align-items:center; }
.platform-card__icon { display:grid; place-items:center; width:48px; height:48px; color:var(--enterprise-ui-gold); background:rgba(201,151,43,.12); border-radius:12px; }
.platform-card__icon svg { width:25px; height:25px; }
.platform-card h2 { margin:0 0 5px; font-size:1.2rem; }
.platform-status { display:inline-flex; padding:4px 8px; color:var(--enterprise-ui-success); background:rgba(8,127,91,.1); border-radius:999px; font-size:.72rem; font-weight:900; }
.platform-card>p { min-height:72px; margin:18px 0; color:var(--enterprise-ui-muted); line-height:1.6; }
.platform-card dl { display:grid; gap:5px; margin:0; font-size:.82rem; }
.platform-card dt { color:var(--enterprise-ui-navy); font-weight:900; }
.platform-card dd { margin:0 0 8px; color:var(--enterprise-ui-muted); line-height:1.5; }
.platform-card__sections { display:flex; flex-wrap:wrap; gap:6px; margin:8px 0 18px; }
.platform-card__sections a { padding:5px 8px; color:var(--enterprise-ui-navy); background:var(--enterprise-ui-bg); border:1px solid var(--enterprise-ui-border); border-radius:999px; font-size:.72rem; font-weight:800; text-decoration:none; }
.platform-card footer { display:flex; justify-content:space-between; align-items:center; gap:12px; margin-top:auto; padding-top:14px; border-top:1px solid var(--enterprise-ui-border); }
.platform-card footer span { color:var(--enterprise-ui-muted); font-size:.75rem; }
.platform-primary-action { display:inline-flex; align-items:center; gap:6px; color:var(--enterprise-ui-gold); font-weight:900; text-decoration:none; }
.platform-empty { display:grid; place-items:center; gap:10px; margin-top:24px; padding:52px 24px; text-align:center; background:var(--enterprise-ui-card); border:1px dashed var(--enterprise-ui-border); border-radius:var(--enterprise-ui-radius); }
.platform-empty svg { width:34px; height:34px; color:var(--enterprise-ui-gold); }

.enterprise-workbench { margin-top:22px; padding:22px; background:var(--enterprise-ui-card); border:1px solid var(--enterprise-ui-border); border-radius:var(--enterprise-ui-radius); box-shadow:0 12px 34px rgba(7,27,51,.06); }
.workbench-boundary { display:flex; align-items:center; gap:12px; margin-bottom:18px; padding:12px 14px; background:var(--enterprise-ui-bg); border-inline-start:4px solid var(--enterprise-ui-gold); border-radius:8px; }
.workbench-boundary span { color:var(--enterprise-ui-muted); }
.workbench-toolbar,.workbench-form-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); gap:12px; align-items:end; }
.workbench-toolbar label,.workbench-action-form label { display:grid; gap:6px; color:var(--enterprise-ui-muted); font-size:.82rem; font-weight:800; }
.workbench-toolbar input,.workbench-toolbar select,.workbench-action-form input,.workbench-action-form textarea { width:100%; padding:10px 11px; color:var(--enterprise-ui-navy); background:var(--enterprise-ui-card); border:1px solid var(--enterprise-ui-border); border-radius:8px; }
.workbench-toolbar button,.workbench-action-form>button,.workbench-pagination button,.workbench-report-actions a { min-height:42px; padding:9px 15px; color:#fff; background:var(--enterprise-ui-navy); border:0; border-radius:8px; font-weight:900; text-decoration:none; }
.workbench-action-form>button { margin-top:14px; }
.workbench-status { display:flex; align-items:center; gap:9px; min-height:58px; color:var(--enterprise-ui-muted); }
.workbench-status.is-error { color:var(--enterprise-ui-danger); }
.workbench-status.is-success { color:var(--enterprise-ui-success); }
.workbench-spinner { width:18px; height:18px; border:2px solid var(--enterprise-ui-border); border-top-color:var(--enterprise-ui-gold); border-radius:50%; animation:enterprise-spin .7s linear infinite; }
.workbench-status.is-ready .workbench-spinner { display:none; }
.workbench-results { overflow:auto; }
.workbench-results table { width:100%; min-width:720px; border-collapse:collapse; }
.workbench-results th,.workbench-results td { padding:10px 12px; text-align:start; border-bottom:1px solid var(--enterprise-ui-border); font-size:.82rem; vertical-align:top; }
.workbench-results th { color:var(--enterprise-ui-muted); background:var(--enterprise-ui-bg); font-weight:900; text-transform:capitalize; }
.workbench-results pre { max-height:520px; margin:0; padding:16px; overflow:auto; color:var(--enterprise-ui-navy); background:var(--enterprise-ui-bg); border-radius:8px; font-size:.78rem; }
.workbench-badge { display:inline-flex; padding:4px 7px; background:var(--enterprise-ui-bg); border:1px solid var(--enterprise-ui-border); border-radius:999px; font-size:.72rem; font-weight:850; }
.workbench-empty { padding:42px 20px; text-align:center; color:var(--enterprise-ui-muted); background:var(--enterprise-ui-bg); border-radius:8px; }
.workbench-pagination { display:flex; justify-content:flex-end; align-items:center; gap:10px; margin-top:14px; }
.workbench-report-actions { display:flex; align-items:center; justify-content:space-between; gap:18px; padding:22px; background:var(--enterprise-ui-bg); border-radius:10px; }
.workbench-report-actions h2,.workbench-report-actions p { margin:0 0 5px; }
.workbench-report-actions a { display:inline-flex; margin-inline-start:6px; }
@keyframes enterprise-spin { to { transform:rotate(360deg); } }

@media (max-width:1180px) { .platform-section-bar { top:54px; grid-template-columns:1fr; gap:5px; } .platform-section-bar__identity strong { margin-inline-end:auto; } }
@media (max-width:760px) {
    .home-mega-menu__grid { grid-template-columns:1fr; }
    .platforms-page,.enterprise-workbench-page { width:min(100% - 20px,1440px); padding-top:18px; }
    .platforms-hero,.workbench-hero,.workbench-report-actions { align-items:flex-start; flex-direction:column; }
    .platforms-hero aside { width:100%; }
    .platform-card-grid { grid-template-columns:1fr; }
    .platform-card { min-height:auto; }
    .platform-card footer { align-items:flex-start; flex-direction:column; }
    .enterprise-workbench { padding:14px; }
    .workbench-boundary { align-items:flex-start; flex-direction:column; }
}

[dir="rtl"] .platform-primary-action svg { transform:scaleX(-1); }
.site-footer-version { color:inherit; text-decoration:none; opacity:.82; }


/* Corrective enterprise navigation: bounded desktop menu and off-canvas mobile drawer. */
.home-nav-groups {
    overflow: visible;
}
.home-platform-menu .home-mega-menu {
    width: min(760px, calc(100vw - 32px));
    max-width: calc(100vw - 16px);
    max-height: min(70vh, 620px);
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
}
.home-mega-menu__grid {
    align-items: start;
}
.home-mega-menu__grid a {
    min-width: 0;
}
.home-mega-menu__grid a span {
    overflow-wrap: anywhere;
}
.home-mobile-backdrop[hidden],
.home-mobile-panel[hidden] {
    display: none !important;
}
.home-mobile-backdrop {
    position: fixed;
    inset: 0;
    z-index: 9005 !important;
    border: 0;
    background: rgba(7, 27, 51, .58);
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
    cursor: default;
}
[data-home-mobile-menu].home-mobile-panel {
    position: fixed !important;
    inset-block: 0;
    inset-inline-start: auto !important;
    inset-inline-end: 0 !important;
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    left: auto !important;
    box-sizing: border-box;
    z-index: 9010 !important;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    width: min(390px, 92vw) !important;
    height: 100vh !important;
    height: 100dvh !important;
    max-height: none !important;
    padding: 0 !important;
    overflow: hidden !important;
    color: var(--home-navy);
    background: var(--home-card);
    border: 0;
    border-inline-start: 1px solid var(--home-border);
    border-radius: 0;
    box-shadow: -18px 0 48px rgba(7, 27, 51, .22);
    animation: enterpriseDrawerIn 180ms ease-out both;
}
[dir="rtl"] [data-home-mobile-menu].home-mobile-panel {
    inset-inline-start: 0 !important;
    inset-inline-end: auto !important;
    right: auto !important;
    left: 0 !important;
    border-inline-start: 0;
    border-inline-end: 1px solid var(--home-border);
    box-shadow: 18px 0 48px rgba(7, 27, 51, .22);
}
.home-mobile-panel__head {
    position: sticky;
    top: 0 !important;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 58px;
    padding: 10px 14px;
    background: var(--home-card);
    border-bottom: 1px solid var(--home-border);
}
.home-mobile-panel__head strong {
    color: var(--home-navy);
    font-size: 1rem;
    letter-spacing: .02em;
}
.home-mobile-panel__head button {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    padding: 0 !important;
    color: var(--home-navy);
    background: var(--home-hover);
    border: 1px solid var(--home-border);
    border-radius: 9px;
}
.home-mobile-panel__head button:hover,
.home-mobile-panel__head button:focus-visible {
    color: var(--home-gold);
    outline: none;
    box-shadow: var(--home-focus);
}
.home-mobile-panel__head svg {
    width: 20px;
    height: 20px;
}
.home-mobile-panel__content {
    min-height: 0;
    padding: 10px 12px max(20px, env(safe-area-inset-bottom));
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
}
.home-mobile-panel__content > a,
.home-mobile-group__links a {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 10px 12px;
    color: var(--home-navy);
    border-radius: 8px;
    font-size: .95rem;
    line-height: 1.3;
    text-decoration: none;
    white-space: normal;
}
.home-mobile-panel__content > a:hover,
.home-mobile-panel__content > a:focus-visible,
.home-mobile-group__links a:hover,
.home-mobile-group__links a:focus-visible,
.home-mobile-panel a.is-active {
    color: var(--home-gold);
    background: var(--home-hover);
    outline: none;
}
.mobile-nav-label {
    margin: 14px 10px 5px;
    color: var(--home-muted);
    font-size: .75rem;
    font-weight: 850;
    letter-spacing: .06em;
    text-transform: uppercase;
}
.home-mobile-group {
    margin: 7px 0;
    border: 1px solid var(--home-border);
    border-radius: 10px;
    background: color-mix(in srgb, var(--home-card) 94%, var(--home-hover));
}
.home-mobile-group summary {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    padding: 10px 12px;
    color: var(--home-navy);
    border-radius: 9px;
    cursor: pointer;
    font-size: .95rem;
    font-weight: 850;
    list-style: none;
}
.home-mobile-group summary::-webkit-details-marker {
    display: none;
}
.home-mobile-group summary:focus-visible {
    outline: none;
    box-shadow: var(--home-focus);
}
.home-mobile-group summary > svg:last-child {
    transition: transform 160ms ease;
}
.home-mobile-group[open] summary > svg:last-child {
    transform: rotate(180deg);
}
.home-mobile-group__links {
    padding: 2px 7px 8px;
    border-top: 1px solid var(--home-border);
}
.home-mobile-group__links a {
    min-height: 42px;
    padding-inline-start: 36px;
}
[dir="rtl"] .home-mobile-group__links a {
    padding-inline-start: 36px;
}
body.is-mobile-menu-open {
    overflow: hidden !important;
    touch-action: none;
}
@keyframes enterpriseDrawerIn {
    from { opacity: 0; transform: translateX(18px); }
    to { opacity: 1; transform: translateX(0); }
}
[dir="rtl"] .home-mobile-panel {
    animation-name: enterpriseDrawerInRtl;
}
@keyframes enterpriseDrawerInRtl {
    from { opacity: 0; transform: translateX(-18px); }
    to { opacity: 1; transform: translateX(0); }
}
@media (min-width: 1181px) {
    .home-mobile-backdrop,
    .home-mobile-panel {
        display: none !important;
    }
}
@media (max-width: 760px) {
    .home-mega-menu__grid {
        grid-template-columns: 1fr;
    }
}
@media (prefers-reduced-motion: reduce) {
    .home-mobile-panel,
    .home-menu {
        animation: none !important;
        transition: none !important;
    }
}
