
    .app-container {
      display: flex !important;
      flex-direction: row !important;
      height: 100vh;
      width: 100%;
      position: relative;
      overflow: hidden;
    }

    .sidebar {
      width: 250px !important;
      min-width: 250px !important;
      background: var(--surface) !important;
      border-right: 1px solid var(--line) !important;
      display: flex !important;
      flex-direction: column !important;
      transition: width .2s cubic-bezier(0.4, 0, 0.2, 1), min-width .2s cubic-bezier(0.4, 0, 0.2, 1);
      flex-shrink: 0 !important;
      z-index: 50 !important;
      position: relative !important;
      top: 0 !important;
      left: 0 !important;
      height: 100vh !important;
      overflow-y: auto;
      overflow-x: hidden;
      box-sizing: border-box !important;
    }

    .sidebar.collapsed {
      width: 72px !important;
      min-width: 72px !important;
      overflow: visible !important;
    }

    .sidebar.collapsed .sidebar-header {
      flex-direction: column;
      align-items: center;
      justify-content: center;
      padding: 14px 6px;
      gap: 10px;
    }

    .sidebar.collapsed .sidebar-brand {
      justify-content: center;
      gap: 0;
    }

    .sidebar.collapsed .brand-logo {
      width: 38px;
      height: 38px;
    }


    .sidebar-header {
      padding: 18px 16px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      border-bottom: 1px solid var(--line);
      gap: 10px;
    }

    .sidebar-brand {
      display: flex;
      align-items: center;
      gap: 10px;
      overflow: hidden;
      white-space: nowrap;
    }

    .brand-logo {
      width: 40px;
      height: 40px;
      border-radius: 12px;
      background: var(--brand-strong);
      color: #fff;
      display: grid;
      place-items: center;
      font-size: 1.15rem;
      font-weight: 800;
      flex-shrink: 0;
    }

    .brand-text {
      font-weight: 800;
      font-size: 1.1rem;
      letter-spacing: -.02em;
    }

    .sidebar-nav {
      display: flex;
      flex-direction: column;
      gap: 4px;
      padding: 14px 10px;
      flex: 1;
    }

    .sidebar-footer-nav {
      padding: 14px 10px;
      border-top: 1px solid var(--line);
      margin-top: auto;
    }

    .sidebar-link {
      display: flex;
      align-items: center;
      gap: 12px;
      padding: 11px 14px;
      border-radius: 12px;
      border: none;
      background: transparent;
      color: var(--muted);
      font-weight: 750;
      font-size: .88rem;
      cursor: pointer;
      transition: all .15s ease;
      white-space: nowrap;
      text-align: left;
      width: 100%;
    }

    .sidebar-link:hover {
      color: var(--text);
      background: var(--surface-2);
    }

    .sidebar-link.active {
      background: var(--brand-strong);
      color: #ffffff !important;
      box-shadow: 0 4px 12px color-mix(in srgb, var(--brand-strong) 25%, transparent);
    }

    .sidebar.collapsed .link-text,
    .sidebar.collapsed .brand-text {
      display: none;
    }

    .sidebar.collapsed .sidebar-link {
      justify-content: center;
      padding: 12px;
    }

    .sidebar-link .svg-icon {
      width: 20px;
      height: 20px;
      flex-shrink: 0;
    }

    .main-content {
      flex: 1 1 auto;
      height: 100vh;
      overflow-y: auto;
      overflow-x: hidden;
      padding: 20px 24px 40px;
      min-width: 0;
      display: flex;
      flex-direction: column;
      box-sizing: border-box;
    }

    .top-actions-bar {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 16px;
      margin-bottom: 22px;
      flex-wrap: wrap;
    }

    .page-title {
      margin: 0;
      font-size: 1.6rem;
      font-weight: 800;
      letter-spacing: -.03em;
    }

    .page-sub {
      margin: 2px 0 0;
      color: var(--muted);
      font-size: .84rem;
      font-weight: 600;
    }

    .top-right-actions {
      display: flex;
      align-items: center;
      gap: 8px;
      flex-wrap: wrap;
    }

    /* TOP PILL TOOLBAR (BARRA DE FERRAMENTAS FIXA E ELEGANTE) */
    .pill-toolbar {
      display: inline-flex;
      align-items: center;
      gap: 4px;
      padding: 4px 6px;
      background: var(--surface-2);
      border: 1px solid var(--line);
      border-radius: 999px;
      box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
      flex-wrap: nowrap;
      backdrop-filter: blur(8px);
    }

    .toolbar-divider {
      width: 1px;
      height: 20px;
      background: var(--line);
      margin: 0 2px;
      flex-shrink: 0;
    }

    .toolbar-btn {
      width: 38px;
      height: 38px;
      border-radius: 999px;
      border: 1px solid transparent;
      background: transparent;
      color: var(--text);
      display: inline-flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      position: relative;
      flex-shrink: 0;
      transition: background .18s ease, transform .15s ease, color .18s ease, border-color .18s ease;
    }

    .toolbar-btn:hover,
    .toolbar-btn:focus-visible {
      background: var(--surface);
      border-color: var(--line);
      color: var(--brand-strong);
      transform: scale(1.06);
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
      outline: none;
    }

    .toolbar-btn:active {
      transform: scale(0.96);
    }

    .toolbar-btn.active {
      background: var(--brand-strong) !important;
      color: #ffffff !important;
      border-color: var(--brand-strong) !important;
    }

    .toolbar-btn.active .svg-icon {
      stroke: #ffffff;
    }

    .toolbar-btn .svg-icon {
      width: 19px;
      height: 19px;
      stroke-width: 2;
    }

    .top-actions-bar {
      position: relative;
      z-index: 20;
      overflow: visible;
    }

    .pill-toolbar {
      position: relative;
      z-index: 20;
      overflow: visible;
    }



    .foot {
      margin-top: 40px;
      padding-top: 20px;
      border-top: 1px solid var(--line);
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 14px;
      flex-wrap: wrap;
      color: var(--muted);
      font-size: .82rem;
    }