/* VINAR Pro Shell — Premium SaaS layout */

.app-bg-ambient.hidden { display: none !important; }

@media (min-width: 1024px) {
  body.shell-pro-active {
    background: var(--bg);
  }

  body.shell-pro-active .app-shell {
    max-width: none;
    margin: 0;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
  }

  .shell-pro {
    display: grid;
    flex: 1;
    width: 100%;
    min-height: 100dvh;
    background: var(--bg);
  }

  .shell-pro--vinar {
    grid-template-columns: 220px minmax(0, 1fr);
    grid-template-rows: var(--topbar-h, 56px) 1fr;
    grid-template-areas:
      "topbar topbar"
      "left   main";
  }

  .shell-pro--app {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: var(--topbar-h, 56px) 1fr;
    grid-template-areas:
      "topbar"
      "main";
  }

  .shell-pro-topbar {
    grid-area: topbar;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 20px;
    background: var(--s1);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    min-height: var(--topbar-h, 56px);
  }

  .shell-pro-logo {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-1);
    text-decoration: none;
    flex-shrink: 0;
  }

  .shell-pro-topbar-center {
    flex: 1;
    display: flex;
    justify-content: center;
    min-width: 0;
  }

  .shell-pro-topbar-center .ecosystem-nav {
    border: none;
    background: transparent;
    padding: 0;
    min-height: auto;
  }

  .shell-pro-topbar-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
  }

  .shell-pro-action {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-2);
    text-decoration: none;
    padding: 8px 12px;
    border-radius: var(--r-pill);
  }

  .shell-pro-action:hover {
    background: var(--s2);
    color: var(--text-1);
  }

  .shell-pro-action--btn {
    border: 1px solid var(--border);
    background: var(--s1);
    cursor: pointer;
    font-family: inherit;
  }

  .shell-pro-left {
    grid-area: left;
    background: var(--s1);
    border-right: 1px solid var(--border);
    overflow-y: auto;
    padding: 12px 10px;
  }

  .shell-pro-main {
    grid-area: main;
    overflow-y: auto;
    min-height: 0;
    padding: 20px 24px 32px;
    background: var(--bg);
  }

  .shell-pro--app .shell-pro-main {
    padding: 0;
  }

  body.shell-pro-active.shell-pro-app .back-header {
    display: none;
  }

  .shell-pro-active .bottom-nav {
    display: none !important;
  }

  .sidebar-nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-height: 40px;
    padding: 8px 12px;
    border: none;
    border-radius: var(--r-md);
    background: transparent;
    color: var(--text-2);
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    margin-bottom: 2px;
  }

  .sidebar-nav-item svg {
    width: 18px;
    height: 18px;
    stroke-width: 1.75;
    flex-shrink: 0;
    opacity: 0.75;
  }

  .sidebar-nav-item:hover {
    background: var(--s2);
    color: var(--text-1);
  }

  .sidebar-nav-item.is-active {
    background: var(--brand-primary-dim);
    color: var(--brand-primary);
    font-weight: 600;
  }

  .sidebar-nav-item.is-active svg {
    opacity: 1;
  }
}

@media (max-width: 1023px) {
  .shell-pro { display: none !important; }
}
