@font-face {
  font-family: "DM Sans";
  src: url("./fonts/dm-sans.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("./fonts/manrope.woff2") format("woff2");
  font-style: normal;
  font-weight: 500 800;
  font-display: swap;
}

.tenant-menu-bottom { margin-top: auto; }
.tenant-menu-icon, .tenant-menu-context, .tenant-menu-close,
.tenant-menu-backdrop, .tenant-menu-logout, .tenant-menu-release { display: none; }
:root:not([data-automotive]) .tenant-menu-group[data-menu-automotive-group] > summary { display: none; }
:root:not([data-automotive]) .tenant-menu-group[data-menu-automotive-group] > .tenant-menu-children > a { padding: 11px 14px; font: inherit; }

:root[data-automotive] {
  --tenant-menu-width: 260px;
  --tenant-menu-ink: #344054;
  --tenant-menu-accent: #075c54;
  --tenant-menu-selected: #eaf8f6;
  --tenant-menu-border: #d9e0ea;
}
[data-automotive] .tenant-sidebar {
  width: var(--tenant-menu-width);
  height: 100dvh;
  padding: 14px 10px;
  background: #ffffff;
  color: var(--tenant-menu-ink);
  border-right: 1px solid var(--tenant-menu-border);
  color-scheme: light;
  font-family: "DM Sans", system-ui, sans-serif;
}
[data-automotive] .tenant-main { margin-left: var(--tenant-menu-width); }
[data-automotive] .tenant-topbar { left: var(--tenant-menu-width); }
[data-automotive] .tenant-topbar [data-tenant-logout] { display: none; }
[data-automotive] .tenant-menu-icon {
  display: block;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
[data-automotive] .tenant-menu-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 57px;
  padding: 9px 10px;
  border-radius: 10px;
  background: linear-gradient(120deg, #0b1639, #172b55 58%, #0b1d3a);
  color: #fff;
}
[data-automotive] .tenant-menu-brand .flow-brand {
  display: flex;
  flex: 1;
  min-width: 0;
  gap: 9px;
  padding: 0;
  color: #fff;
  font: 800 16px/1.2 "Manrope", system-ui, sans-serif;
  text-decoration: none;
}
[data-automotive] .tenant-page .tenant-menu-brand .flow-brand-mark {
  --automotive-mark-size: 34px;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  padding: 4px;
  border-radius: 8px;
}
[data-automotive] .tenant-page .tenant-menu-brand .flow-brand-mark:has(img) { --automotive-mark-size: 34px; }
[data-automotive] .tenant-menu-brand .flow-brand small { display: none; }
[data-automotive] .tenant-menu-context { display: grid; gap: 5px; margin: 18px 12px; color: #172033; }
[data-automotive] .tenant-menu-context small { font-size: 9px; letter-spacing: .12em; font-weight: 800; color: #667085; text-transform: uppercase; }
[data-automotive] .tenant-menu-context strong { font-size: 12px; line-height: 1.4; }
[data-automotive] .tenant-sidebar nav { gap: 4px; }
[data-automotive] .tenant-sidebar nav a,
[data-automotive] .tenant-sidebar nav summary,
[data-automotive] .tenant-menu-bottom :is(a,button) {
  display: flex;
  align-items: center;
  width: 100%;
  gap: 10px;
  min-height: 39px;
  padding: 9px 12px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: var(--tenant-menu-ink);
  font: 650 12px/1.3 "DM Sans", system-ui, sans-serif;
  text-align: start;
  text-decoration: none;
  cursor: pointer;
}
[data-automotive] .tenant-sidebar summary::-webkit-details-marker { display: none; }
[data-automotive] .tenant-sidebar nav summary { list-style: none; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
[data-automotive] .tenant-sidebar nav summary > span { flex: 1; }
[data-automotive] .tenant-sidebar nav :is(a,summary):hover { background: #f2f7f7; color: var(--tenant-menu-accent); }
[data-automotive] .tenant-sidebar a[aria-current="page"] { background: var(--tenant-menu-selected); border-color: #b7e8e1; color: var(--tenant-menu-accent); font-weight: 800; }
[data-automotive] .tenant-menu-group:has(a[aria-current="page"]) > summary { color: var(--tenant-menu-accent); }
[data-automotive] .tenant-sidebar details { margin: 0; }
[data-automotive] .tenant-menu-chevron { width: 14px; height: 14px; flex-basis: 14px !important; margin-left: auto; transition: transform .18s ease; }
[data-automotive] details[open] > summary > .tenant-menu-chevron { transform: rotate(90deg); }
[data-automotive] .tenant-menu-children { display: grid; gap: 2px; margin: 2px 0 7px 18px; padding-left: 8px; border-left: 1px solid #d9e6e2; }
[data-automotive] .tenant-sidebar nav .tenant-menu-children :is(a,summary) { min-height: 32px; padding: 7px 9px; font-size: 11px; }
[data-automotive] .tenant-chat-conversations > summary { letter-spacing: .06em; }
[data-automotive] .tenant-chat-conversations > .tenant-menu-children { margin-left: 14px; padding-left: 6px; }
[data-automotive] .tenant-menu-bottom { display: grid; gap: 8px; padding: 18px 8px 4px; }
[data-automotive] .tenant-menu-bottom :is(a,button) { border-color: var(--tenant-menu-border); color: #475467; }
[data-automotive] .tenant-menu-bottom :is(a,button):hover { background: #f2f7f7; color: var(--tenant-menu-accent); }
[data-automotive] .tenant-menu-release { display: block; color: #667085; text-align: center; font-size: 10px; }
[data-automotive] .tenant-sidebar :is(a,button,summary):focus-visible,
[data-automotive] [data-menu-toggle]:focus-visible { outline: 2px solid #098a80; outline-offset: 2px; }
[data-automotive] .tenant-menu-fallback { display: none; }

@media (max-width: 800px) {
  [data-automotive] .tenant-sidebar {
    width: min(290px, 86vw);
    z-index: 101;
    transform: translateX(-105%);
    visibility: hidden;
    transition: transform .2s ease, visibility .2s;
    box-shadow: 15px 0 50px #0d1b3d22;
  }
  [data-automotive] .tenant-sidebar.open { transform: translateX(0); visibility: visible; }
  [data-automotive] .tenant-main { margin-left: 0; padding-inline: 14px; }
  [data-automotive] .tenant-topbar { left: 0; padding-inline: 14px; }
  [data-automotive] .tenant-topbar .tenant-mobile-brand { display: flex; align-items: center; }
  [data-automotive] [data-menu-toggle], [data-automotive] .tenant-menu-close {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 1px solid #ffffff35;
    border-radius: 7px;
    background: #ffffff13;
    color: #ffffff;
    cursor: pointer;
  }
  [data-automotive] [data-menu-toggle] { border-color: var(--tenant-menu-border); background: #fff; color: var(--tenant-menu-ink); }
  [data-automotive] .tenant-menu-backdrop:not([hidden]) {
    display: block;
    position: fixed;
    z-index: 100;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    background: #0d1b3d82;
    cursor: pointer;
  }
}
@media (prefers-reduced-motion: reduce) {
  [data-automotive] :is(.tenant-sidebar,.tenant-menu-chevron) { transition: none; }
}
