/* DRIVE-OS menu v1: namespaced; no Tailwind/Vite build is needed. */
body.drive-menu-shell-v1 { --drive-nav-width: 272px; }
body.drive-menu-shell-v1 > #drive-sidebar-v1 {
    box-sizing: border-box; position: fixed; inset: 0 auto 0 0;
    width: var(--drive-nav-width); height: 100vh; height: 100dvh;
    padding: 0; overflow-x: hidden; overflow-y: auto; z-index: 40;
    background: #f5f7fb; border-right: 1px solid #dce3ed;
    color: #24324a; font: 14px/1.4 system-ui, -apple-system, "Segoe UI", sans-serif;
}
body.drive-menu-shell-v1 > #drive-main-v1 {
    box-sizing: border-box; min-width: 0; max-width: none; width: auto;
    margin-left: var(--drive-nav-width); margin-right: 0; padding: 24px;
}
/* The inspected Agent Console caps .dc-shell at 1680px. Remove only that cap. */
body.drive-menu-agent-v1 #drive-main-v1 .dc-shell {
    box-sizing: border-box; width: 100%; max-width: none; margin-left: 0; margin-right: 0;
}
#drive-sidebar-v1 *, #drive-sidebar-v1 *::before, #drive-sidebar-v1 *::after { box-sizing: border-box; }
#drive-sidebar-v1 [hidden] { display: none !important; }
#drive-sidebar-v1 .drive-nav-mobile { display: none; }
#drive-sidebar-v1 .drive-nav-panel { padding: 16px 12px 28px; }
#drive-sidebar-v1 .drive-nav-brand { padding: 12px 12px 16px; }
#drive-sidebar-v1 .drive-nav-brand > strong { font-size: 24px; letter-spacing: .04em; color: #142641; }
#drive-sidebar-v1 .drive-nav-brand img { max-width: 170px; height: auto; display: block; }
#drive-sidebar-v1 .drive-nav-brand p { font-size: 11px; font-weight: 600; color: #637189; margin: 5px 0 0; }
#drive-sidebar-v1 .drive-nav-tools { padding: 0 5px 12px; }
#drive-sidebar-v1 .drive-nav-tools label { font-size: 11px; font-weight: 650; display: block; margin-bottom: 5px; }
#drive-sidebar-v1 input[type="search"] {
    display: block; width: 100%; min-width: 0; background: #fff; color: #172b46;
    border: 1px solid #cbd5e1; border-radius: 7px; padding: 8px 10px; font: inherit;
}
#drive-sidebar-v1 .drive-nav-actions { display: flex; justify-content: space-between; gap: 6px; margin-top: 7px; }
#drive-sidebar-v1 .drive-nav-actions button { background: transparent; border: 0; font: inherit; font-size: 11px; color: #496482; cursor: pointer; padding: 3px 1px; }
#drive-sidebar-v1 .drive-nav-group { margin: 4px 0; border: 1px solid transparent; border-radius: 8px; }
#drive-sidebar-v1 .drive-nav-group[open] { border-color: #dce4ef; background: #fff; }
#drive-sidebar-v1 .drive-nav-group > summary {
    display: flex; align-items: center; gap: 9px; padding: 10px 8px;
    font-weight: 700; font-size: 12px; cursor: pointer; list-style: none; user-select: none;
}
#drive-sidebar-v1 summary::-webkit-details-marker { display: none; }
#drive-sidebar-v1 summary::marker { content: ''; }
#drive-sidebar-v1 .drive-nav-group > summary:hover { background: #e9eff7; border-radius: 7px; }
#drive-sidebar-v1 .drive-nav-group[data-active="1"] > summary { color: #1856b5; }
#drive-sidebar-v1 .drive-nav-icon { width: 18px; text-align: center; font-size: 16px; flex: 0 0 18px; }
#drive-sidebar-v1 .drive-nav-chevron { margin-left: auto; font-size: 19px; transform: rotate(0deg); }
#drive-sidebar-v1 .drive-nav-group[open] > summary .drive-nav-chevron { transform: rotate(90deg); }
#drive-sidebar-v1 .drive-nav-items { padding: 0 6px 8px 19px; }
#drive-sidebar-v1 .drive-nav-link, #drive-sidebar-v1 .drive-nav-compat a.nav-link {
    display: block; padding: 8px 9px; margin: 2px 0; line-height: 1.4;
    border-radius: 6px; text-decoration: none; color: #415269; font-size: 12px;
    font-weight: 450; overflow-wrap: anywhere;
}
#drive-sidebar-v1 .drive-nav-link:hover, #drive-sidebar-v1 .drive-nav-compat a:hover { background: #eef3fa; color: #1a4d93; }
#drive-sidebar-v1 .drive-nav-link.is-active, #drive-sidebar-v1 .drive-nav-compat a[aria-current="page"] {
    background: #e8f0fe; color: #174faa; font-weight: 700; box-shadow: inset 3px 0 #2563eb;
}
#drive-sidebar-v1 .drive-nav-compat ul { list-style: none; margin: 0; padding: 0; }
#drive-sidebar-v1 .drive-nav-compat li { list-style: none; }
#drive-sidebar-v1 .drive-nav-compat span.nav-link { font-size: 10px; letter-spacing: .015em; color: #697a91; padding: 6px 9px 2px; }
#drive-sidebar-v1 .drive-nav-account { border-top: 1px solid #dce3ed; margin-top: 18px; padding: 12px 6px 0; }
#drive-sidebar-v1 .drive-nav-diagnostics { font-size: 11px; overflow-wrap: anywhere; margin-bottom: 12px; }
#drive-sidebar-v1 .drive-nav-diagnostics > summary { cursor: pointer; color: #697a91; }
#drive-sidebar-v1 .drive-nav-diagnostics > div { margin-top: 8px; padding: 8px; border-radius: 6px; background: #fff7db; }
#drive-sidebar-v1 .drive-nav-logout { display: block; width: 100%; text-align: left; padding: 8px 10px; border-radius: 6px; border: 1px solid #dce3ed; color: #8f3242; background: transparent; font: inherit; cursor: pointer; }
#drive-sidebar-v1 .drive-nav-empty { margin: 12px 8px; font-size: 12px; color: #697a91; }
#drive-sidebar-v1 a:focus-visible, #drive-sidebar-v1 button:focus-visible, #drive-sidebar-v1 summary:focus-visible, #drive-sidebar-v1 input:focus-visible {
    outline: 3px solid #7ca8ec; outline-offset: 2px;
}
@media (max-width: 900px) {
    body.drive-menu-shell-v1 > #drive-sidebar-v1 { position: relative; inset: auto; width: 100%; height: auto; max-height: none; border-right: 0; border-bottom: 1px solid #dce3ed; }
    body.drive-menu-shell-v1 > #drive-main-v1 { margin-left: 0; padding: 12px; }
    #drive-sidebar-v1 .drive-nav-mobile { display: flex; align-items: center; justify-content: space-between; cursor: pointer; padding: 13px 16px; font-weight: 750; list-style: none; }
    #drive-sidebar-v1 .drive-nav-panel { padding-top: 0; }
    #drive-sidebar-v1 .drive-nav-link, #drive-sidebar-v1 .drive-nav-compat a.nav-link { min-height: 40px; display: flex; align-items: center; }
}
@media print {
    body.drive-menu-shell-v1 > #drive-sidebar-v1 { display: none; }
    body.drive-menu-shell-v1 > #drive-main-v1 { margin-left: 0; padding: 0; }
}
