:root {
  --cv-sidebar-width: 236px;
}

.cv-profile-sidebar {
  display: none;
}

.cv-client-dashboard {
  margin: 14px 0 4px;
}

.cv-client-dashboard-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 9px;
}

.cv-client-dashboard-head h3 {
  font-size: 15px;
}

.cv-client-dashboard-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.cv-dashboard-tile {
  min-height: 96px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  padding: 13px;
  border: 1px solid #2b3221;
  border-radius: 17px;
  background: linear-gradient(145deg, #192016, #11150e);
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition: transform .16s ease, border-color .2s ease, background .2s ease;
}

.cv-dashboard-tile:hover,
.cv-dashboard-tile:focus-visible {
  border-color: rgba(174, 234, 43, .48);
  background: linear-gradient(145deg, #1d2816, #12170f);
}

.cv-dashboard-tile:active {
  transform: scale(.98);
}

.cv-dashboard-icon {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: #222a1b;
  color: var(--lime);
  font-size: 20px;
  line-height: 1;
}

.cv-dashboard-label {
  display: block;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
}

.cv-dashboard-help {
  display: block;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.35;
  margin-top: 3px;
}

.cv-stock-filters {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding: 2px 1px 7px;
  margin: 12px 0 2px;
  scrollbar-width: thin;
}

.cv-stock-filter {
  flex: 0 0 auto;
  min-height: 37px;
  padding: 8px 11px;
  border-radius: 12px;
  border: 1px solid #303828;
  background: #171c13;
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
  cursor: pointer;
}

.cv-stock-filter.on {
  color: var(--ink);
  background: linear-gradient(135deg, var(--lime), #8bd923);
  border-color: var(--lime);
}

@media (min-width: 840px) {
  body.cv-workspace-mode {
    justify-content: flex-start;
    padding: 18px;
  }

  body.cv-workspace-mode .phone[data-space="pro"],
  body.cv-workspace-mode .phone[data-space="dealer"],
  body.cv-workspace-mode .phone[data-space="fleet"],
  body.cv-workspace-mode .phone[data-space="admin"] {
    width: min(1180px, calc(100vw - 36px));
    max-width: none;
    min-height: calc(100vh - 36px);
    display: grid;
    grid-template-columns: var(--cv-sidebar-width) minmax(0, 1fr);
    grid-template-areas: "sidebar content";
    align-items: stretch;
    border-radius: 24px;
  }

  body.cv-workspace-mode .phone[data-space="pro"] > .view,
  body.cv-workspace-mode .phone[data-space="dealer"] > .view,
  body.cv-workspace-mode .phone[data-space="fleet"] > .view,
  body.cv-workspace-mode .phone[data-space="admin"] > .view {
    grid-area: content;
    min-width: 0;
    min-height: calc(100vh - 36px);
    border-left: 1px solid rgba(174, 234, 43, .1);
  }

  body.cv-workspace-mode .phone[data-space="pro"] > nav,
  body.cv-workspace-mode .phone[data-space="dealer"] > nav,
  body.cv-workspace-mode .phone[data-space="fleet"] > nav,
  body.cv-workspace-mode .phone[data-space="admin"] > nav {
    display: none !important;
  }

  body.cv-workspace-mode .screen {
    padding: 24px 28px 30px;
  }

  body.cv-workspace-mode .cv-profile-sidebar {
    grid-area: sidebar;
    min-height: calc(100vh - 36px);
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 22px 14px 16px;
    background: radial-gradient(circle at 10% 0, rgba(174, 234, 43, .1), transparent 26%), #0b0e08;
  }

  .cv-sidebar-brand {
    padding: 3px 9px 9px;
  }

  .cv-sidebar-brand strong {
    display: block;
    color: var(--text);
    font-size: 17px;
    letter-spacing: -.3px;
  }

  .cv-sidebar-brand span {
    display: block;
    color: var(--muted);
    font-size: 11px;
    margin-top: 4px;
  }

  .cv-sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 6px;
  }

  .cv-sidebar-link {
    width: 100%;
    min-height: 46px;
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border: 1px solid transparent;
    border-radius: 13px;
    background: transparent;
    color: #b8beae;
    text-align: left;
    font-size: 13px;
    font-weight: 750;
    cursor: pointer;
  }

  .cv-sidebar-link:hover,
  .cv-sidebar-link:focus-visible {
    color: var(--text);
    background: #151a11;
    border-color: #293021;
  }

  .cv-sidebar-link.on {
    color: var(--ink);
    background: linear-gradient(135deg, var(--lime), #8bd923);
    border-color: var(--lime);
    box-shadow: 0 8px 22px rgba(174, 234, 43, .14);
  }

  .cv-sidebar-link-icon {
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(255, 255, 255, .06);
    font-size: 16px;
  }

  .cv-sidebar-link.on .cv-sidebar-link-icon {
    background: rgba(9, 11, 7, .12);
  }

  .cv-sidebar-footer {
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid #252b20;
  }

  .cv-sidebar-country {
    display: block;
    padding: 0 9px 10px;
    color: var(--muted);
    font-size: 10px;
  }

  .cv-sidebar-logout {
    width: 100%;
    min-height: 42px;
    border: 1px solid #303828;
    border-radius: 12px;
    background: #151a11;
    color: var(--text);
    font-size: 12px;
    font-weight: 750;
    cursor: pointer;
  }

  body.cv-workspace-mode .screen > .tiles,
  body.cv-workspace-mode .screen > .card,
  body.cv-workspace-mode .screen > details,
  body.cv-workspace-mode .screen > .legal-note,
  body.cv-workspace-mode .screen > form,
  body.cv-workspace-mode .screen > div:not(.persistent-brand-bar):not(.section-head):not(.row):not(.eyebrow):not(.folder-tabs):not(.cv-stock-filters) {
    max-width: 920px;
  }

  body.cv-comfort.cv-workspace-mode .cv-profile-sidebar {
    background: radial-gradient(circle at 10% 0, rgba(127, 168, 34, .12), transparent 26%), #f2f6eb;
  }
}

@media (max-width: 839px) {
  .cv-profile-sidebar {
    display: none !important;
  }
}
