@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@500;600;700;800&display=swap");

:root {
  --oe-portal-blue: #10509C;
  --oe-portal-aqua: #9AD0DA;
  --oe-portal-ink: #18344e;
  --oe-portal-muted: #557184;
  --oe-portal-sidebar: #e3f2f5;
  --oe-portal-sidebar-border: #c5e2e8;
}

.clean-shell {
  min-height: 100dvh;
}

.clean-sidebar {
  position: sticky;
  top: 0;
  width: 238px;
  height: 100dvh;
  flex: 0 0 238px;
  gap: 19px;
  padding: 22px 17px;
  overflow: hidden;
  color: var(--oe-portal-ink);
  background: var(--oe-portal-sidebar);
  border-right: 1px solid var(--oe-portal-sidebar-border);
}

.clean-brand {
  flex: 0 0 auto;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  text-align: center;
}

.clean-brand-mark {
  display: block;
  width: min(100%, 188px);
  height: auto;
  object-fit: contain;
}

.clean-brand strong[data-portal-brand] {
  color: var(--oe-portal-ink);
  font: 800 15px/1.2 Manrope, sans-serif;
  letter-spacing: -.035em;
}

.clean-brand span[data-portal-brand-sub] {
  color: #64878a;
  font: 600 10px/1.35 "DM Sans", sans-serif;
  letter-spacing: .04em;
}

.clean-mode {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--oe-portal-aqua);
  border-radius: 12px;
}

.clean-mode button {
  min-height: 42px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--oe-portal-ink);
  font: 600 13px/1.2 "DM Sans", sans-serif;
  transition: background-color .18s ease, color .18s ease;
}

.clean-mode button:hover {
  background: #ffffffbf;
}

.clean-mode button.active {
  background: var(--oe-portal-blue);
  color: #fff;
  font-weight: 700;
}

.clean-nav {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 5px;
  min-height: 0;
  max-height: none;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-color: #9bcbd3 transparent;
  scrollbar-width: thin;
}

.clean-nav button {
  flex: 0 0 auto;
  min-height: 45px;
  padding: 10px 13px;
  border: 0;
  border-radius: 13px;
  background: transparent;
  color: #38576b;
  text-align: left;
  font: 600 13px/1.3 "DM Sans", sans-serif;
  transition: background-color .18s ease, color .18s ease, transform .18s ease;
}

.clean-nav button:hover {
  background: #ffffffbf;
  color: var(--oe-portal-blue);
  transform: translateX(2px);
}

.clean-nav button.active {
  background: var(--oe-portal-blue);
  color: #fff;
  box-shadow: 0 8px 18px #10509c2b;
}

.clean-sidebar button:focus-visible {
  outline: 3px solid var(--oe-portal-blue);
  outline-offset: 2px;
}

@media (max-width: 960px) and (min-width: 761px) {
  .clean-sidebar {
    width: 205px;
    flex-basis: 205px;
  }

  .clean-brand-mark {
    width: min(100%, 165px);
  }
}

@media (max-width: 760px) {
  .clean-shell {
    display: block;
  }

  .clean-sidebar {
    position: static;
    width: 100%;
    height: auto;
    min-width: 0;
    padding: 12px 14px 10px;
    gap: 10px;
    overflow: visible;
  }

  .clean-brand {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr);
    grid-template-rows: auto auto;
    column-gap: 10px;
    row-gap: 2px;
    align-items: center;
    text-align: left;
  }

  .clean-brand-mark {
    grid-row: 1 / span 2;
    width: 56px;
    height: 56px;
  }

  .clean-brand strong[data-portal-brand] {
    align-self: end;
    font-size: 14px;
  }

  .clean-brand span[data-portal-brand-sub] {
    align-self: start;
    text-align: left;
  }

  .clean-mode {
    align-self: flex-start;
    width: min(100%, 300px);
  }

  .clean-nav {
    display: flex;
    flex-direction: row;
    gap: 5px;
    width: 100%;
    min-height: 46px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 1px 1px 5px;
    -webkit-overflow-scrolling: touch;
  }

  .clean-nav button {
    min-height: 42px;
    white-space: nowrap;
  }

  .clean-main {
    min-width: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .clean-mode button,
  .clean-nav button {
    transition: none;
  }
}
