@import url("./accordflow-theme.css");


  body.app-shell-body {
    margin: 0;
    min-height: 100vh;
    font-family: var(--app-shell-font-family);
    background:
      var(--app-shell-page-bg);
    color: var(--app-shell-text);
    display: flex;
    flex-direction: column;
    align-items: stretch !important;
    justify-content: flex-start !important;
    overflow-x: hidden;
  }

  .app-shell {
    position: relative;
    isolation: isolate;
    display: grid;
    grid-template-columns: var(--app-shell-sidebar-width) minmax(0, 1fr);
    min-height: 100vh;
    width: 100%;
    color: var(--app-shell-text);
  }

  .app-shell__overlay {
    display: none;
  }

  .app-shell__sidebar {
    position: sticky;
    top: 0;
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
    padding: 2.25rem 1.75rem 2.5rem;
    background: var(--app-shell-surface);
    border-right: 1px solid var(--app-shell-border);
    min-height: 100vh;
    box-shadow: var(--app-shell-shadow-lg);
    backdrop-filter: var(--app-shell-sidebar-backdrop);
    z-index: 2;
  }

  .app-shell__brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
    font-size: 1.05rem;
    letter-spacing: 0.01em;
    color: var(--app-shell-text-strong);
  }

  .app-shell__brand-mark {
    display: block;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    object-fit: contain;
  }

  .app-shell__nav {
    display: grid;
    gap: 0.6rem;
  }

  .app-shell__nav-group-label {
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    color: var(--app-shell-text-muted);
    padding: 0.1rem 0.25rem 0.1rem 0.9rem;
  }

  .app-shell__nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.35rem;
  }

  .app-shell__nav-item {
    margin: 0;
  }

  .app-shell__nav-link {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 0.7rem;
    padding: 0.65rem 1rem;
    border-radius: var(--app-shell-radius-md);
    color: inherit;
    text-decoration: none;
    border: 1px solid transparent;
    transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
    font-weight: 500;
  }

  .app-shell__nav-icon {
    width: 1.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
  }

  .app-shell__nav-label {
    text-align: left;
  }

  .app-shell__nav-link:hover,
  .app-shell__nav-link:focus-visible {
    border-color: var(--app-shell-border-strong);
    background: rgba(148, 163, 184, 0.16);
    transform: translateY(-1px);
    outline: none;
  }

  .app-shell__nav-link[aria-current='page'] {
    border-color: transparent;
    background: rgba(56, 189, 248, 0.16);
    color: var(--app-shell-text-strong);
    box-shadow: inset 0 0 0 1px rgba(56, 189, 248, 0.55);
  }

  .app-shell__nav-badge {
    font-size: 0.75rem;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    background: rgba(56, 189, 248, 0.16);
    color: var(--app-shell-accent);
    border: 1px solid rgba(56, 189, 248, 0.3);
  }

  .app-shell__workspace {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    backdrop-filter: blur(12px);
  }

  .app-shell__header {
    position: sticky;
    top: 0;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.75rem clamp(1.5rem, 4vw, 3rem) 1.5rem;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.92), rgba(2, 6, 23, 0.9));
    border-bottom: 1px solid rgba(148, 163, 184, 0.18);
    z-index: 1;
  }

  .app-shell__menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.45);
    background: rgba(15, 23, 42, 0.7);
    color: var(--app-shell-text-strong);
    cursor: pointer;
  }

  .app-shell__menu-toggle:focus-visible {
    outline: 2px solid rgba(56, 189, 248, 0.5);
    outline-offset: 2px;
  }

  .app-shell__menu-toggle-icon {
    position: relative;
    width: 18px;
    height: 2px;
    background: currentColor;
  }

  .app-shell__menu-toggle-icon::before,
  .app-shell__menu-toggle-icon::after {
    content: '';
    position: absolute;
    left: 0;
    width: 18px;
    height: 2px;
    background: currentColor;
    transition: transform 160ms ease;
  }

  .app-shell__menu-toggle-icon::before {
    transform: translateY(-6px);
  }

  .app-shell__menu-toggle-icon::after {
    transform: translateY(6px);
  }

  .app-shell__titles {
    display: grid;
    gap: 0.35rem;
  }

  .app-shell__title {
    margin: 0;
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--app-shell-text-strong);
  }

  .app-shell__subtitle {
    margin: 0;
    color: var(--app-shell-text-muted);
    max-width: 720px;
    line-height: 1.55;
  }

  .app-shell__main {
    flex: 1;
    display: flex;
    justify-content: center;
    padding: 2.25rem clamp(1.5rem, 5vw, 3.5rem) 3rem;
  }

  .app-shell__main-content {
    width: min(1100px, 100%);
  }

  .app-shell__footer {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid rgba(148, 163, 184, 0.16);
    font-size: 0.85rem;
    color: var(--app-shell-text-muted);
  }

  @media (max-width: 1080px) {
    .app-shell {
      grid-template-columns: minmax(0, 1fr);
    }

    .app-shell__overlay {
      position: fixed;
      inset: 0;
      background: rgba(2, 6, 23, 0.7);
      opacity: 0;
      pointer-events: none;
      transition: opacity 200ms ease;
      display: block;
      z-index: 3;
    }

    .app-shell__sidebar {
      position: fixed;
      inset: 0 auto 0 0;
      width: min(84vw, 320px);
      transform: translateX(-100%);
      transition: transform 220ms ease;
      border-right: 1px solid rgba(148, 163, 184, 0.32);
    }

    .app-shell__menu-toggle {
      display: inline-flex;
    }

    .app-shell--sidebar-open .app-shell__sidebar {
      transform: translateX(0);
    }

    .app-shell--sidebar-open .app-shell__overlay {
      opacity: 1;
      pointer-events: auto;
    }

    .app-shell__header {
      position: sticky;
      top: 0;
    }
  }
