.deeplex-sidebar-brand {
  display: block;
  width: fit-content;
  margin: 0 auto;
}

.sidebar-logo-frame,
.mobile-sidebar-logo-frame {
  display: grid;
  place-items: center;
  border: 0;
  background: transparent;
}

.sidebar-logo-frame {
  width: 190px;
  height: 90px;
}

.sidebar-logo-image,
.mobile-sidebar-logo-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.main-nav .nav-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.main-nav a[aria-current="page"] .nav-icon {
  color: #b9dfcd;
}

.mobile-sidebar-logo-frame {
  width: 112px;
  height: 38px;
}

/* Todas las pantallas comparten este armazón. Las vistas no pueden modificarlo. */
:root {
  --app-sidebar-width: 244px;
  --app-content-max-width: 1380px;
  --app-content-padding-x: clamp(24px, 4.5vw, 68px);
  --app-content-padding-top: 48px;
  --app-content-padding-bottom: 80px;
}

html {
  overflow-y: scroll;
  scrollbar-gutter: stable;
}

.app-shell {
  grid-template-columns: var(--app-sidebar-width) minmax(0, 1fr);
}

.sidebar {
  position: fixed;
  z-index: 5;
  inset: 0 auto 0 0;
  width: var(--app-sidebar-width);
  height: 100vh;
  padding: 30px 22px 24px;
  color: #f4f8f5;
  background:
    radial-gradient(circle at 10% 90%, rgb(169 199 180 / 12%), transparent 28%),
    #0d2923;
}

.workspace {
  grid-column: 2;
  min-width: 0;
}

.topbar {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 30px;
  border-bottom: 1px solid var(--line);
  padding: 0 clamp(24px, 4vw, 58px);
  background: rgb(255 255 255 / 92%);
  backdrop-filter: none;
}

.topbar > .mobile-brand,
.topbar > .mobile-back {
  display: none;
}

.preview-status {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 11px;
}

.preview-status > span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #3e9b73;
  box-shadow: 0 0 0 4px rgb(62 155 115 / 12%);
}

.content,
.query-content,
.findings-content,
.analysis-content,
.admin-content {
  width: 100%;
  max-width: var(--app-content-max-width);
  margin-right: auto;
  margin-left: auto;
  padding: var(--app-content-padding-top) var(--app-content-padding-x) var(--app-content-padding-bottom);
}

.user-menu {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: 0;
  border-left: 1px solid var(--line);
  padding-left: 28px;
  font-size: 12px;
}

.avatar {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  color: var(--forest);
  background: var(--mint);
  font-size: 11px;
  font-weight: 750;
}

.user-menu > span:last-child {
  width: clamp(150px, 18vw, 260px);
  min-width: 0;
}

.user-menu strong,
.user-menu small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-menu strong {
  font-size: 12px;
}

.user-menu small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
}

.main-nav {
  display: block;
  margin-top: 52px;
}

.main-nav a {
  min-height: 46px;
  padding: 0 13px;
  color: rgb(244 248 245 / 68%);
  font-size: 13px;
  font-weight: 650;
}

.main-nav a[aria-current="page"] {
  background: rgb(255 255 255 / 9%);
}


.sidebar-principle {
  border: 1px solid rgb(255 255 255 / 12%);
  border-radius: 10px;
  padding: 16px;
}

.sidebar-principle strong {
  color: rgb(244 248 245 / 82%);
  font-size: 13px;
  line-height: 1.5;
}

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

  .sidebar {
    display: none;
  }

  .workspace {
    grid-column: auto;
  }
}

.mobile-navigation-header,
.mobile-navigation-layer {
  display: none;
}

@media (max-width: 980px) {
  .topbar {
    position: sticky;
    z-index: 4;
    top: 0;
    height: 64px;
    justify-content: space-between;
    padding: 0 18px;
    background: rgb(255 255 255 / 96%);
  }

  .content,
  .query-content,
  .findings-content,
  .analysis-content,
  .admin-content {
    padding: 34px 18px 70px;
  }

  .topbar > .mobile-brand,
  .topbar > .mobile-back,
  .topbar > .preview-status {
    display: none;
  }

  .topbar .user-menu {
    display: flex;
    margin-left: auto;
    border: 0;
    padding: 0;
  }

  .topbar .user-menu > span:last-child {
    display: none;
  }

  .mobile-navigation-header {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 11px;
  }

  .mobile-menu-button,
  .mobile-menu-close {
    display: inline-grid;
    width: 40px;
    height: 40px;
    flex: 0 0 auto;
    place-items: center;
    border: 1px solid #d8e1dc;
    border-radius: 9px;
    color: #163b32;
    background: #fff;
    font: 500 26px/1 "Manrope", Arial, sans-serif;
    cursor: pointer;
  }

  .mobile-menu-button svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-width: 1.8;
  }

  .mobile-menu-button:focus-visible,
  .mobile-menu-close:focus-visible,
  .mobile-main-nav a:focus-visible {
    outline: 3px solid rgb(36 125 103 / 24%);
    outline-offset: 2px;
  }

  .mobile-page-title {
    overflow: hidden;
    color: #17221f;
    font-size: 14px;
    font-weight: 750;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mobile-navigation-layer:not([hidden]) {
    position: fixed;
    z-index: 30;
    inset: 0;
    display: block;
  }

  .mobile-navigation-backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    background: rgb(7 29 25 / 58%);
    cursor: pointer;
  }

  .mobile-navigation-panel {
    position: absolute;
    inset: 0 auto 0 0;
    width: min(84vw, 320px);
    padding: 22px 18px;
    color: #f4f8f5;
    background:
      radial-gradient(circle at 10% 90%, rgb(169 199 180 / 12%), transparent 28%),
      #0d2923;
    box-shadow: 18px 0 48px rgb(0 0 0 / 24%);
  }

  .mobile-navigation-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .mobile-navigation-logo-frame {
    display: grid;
    place-items: center;
    width: 188px;
    height: 58px;
  }

  .mobile-navigation-logo-frame img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
  }

  .mobile-menu-close {
    border-color: rgb(255 255 255 / 18%);
    color: #f4f8f5;
    background: rgb(255 255 255 / 8%);
  }

  .mobile-main-nav {
    display: grid;
    gap: 4px;
    margin-top: 30px;
  }

  .mobile-main-nav a {
    display: flex;
    min-height: 50px;
    align-items: center;
    gap: 13px;
    border-radius: 9px;
    padding: 0 14px;
    color: rgb(244 248 245 / 72%);
    font-size: 14px;
    font-weight: 650;
    text-decoration: none;
  }


  .mobile-main-nav a[aria-current="page"] {
    color: #fff;
    background: rgb(255 255 255 / 10%);
  }

  .mobile-main-nav .nav-icon {
    width: 19px;
    height: 19px;
    flex: 0 0 auto;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.7;
  }

  .mobile-main-nav a[aria-current="page"] .nav-icon {
    color: #b9dfcd;
  }

  .mobile-navigation-open {
    overflow: hidden;
  }
}
.loading-placeholder {
  min-height: 92px;
  border: 1px solid #e0e7e3;
  border-radius: 10px;
  background: linear-gradient(100deg, #f4f7f5 25%, #fbfcfb 38%, #f4f7f5 55%);
  background-size: 220% 100%;
  animation: app-loading-sheen 1.2s ease-in-out infinite;
}

@keyframes app-loading-sheen {
  to { background-position-x: -220%; }
}

@media (prefers-reduced-motion: reduce) {
  .loading-placeholder {
    animation: none;
  }
}




