/* Layout & Utility Classes (Zero Tailwind CDN dependency) */
    .container-wb {
      width: 100%;
      max-width: 72rem;
      margin: 0 auto;
      padding-left: 1rem;
      padding-right: 1rem;
    }

    @media (min-width: 640px) {
      .container-wb {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
      }
    }

    .wb-header {
      position: relative;
      z-index: 20;
      border-bottom: 2px solid var(--border-px);
      background: rgba(7, 11, 20, 0.88);
      backdrop-filter: blur(10px);
      -webkit-backdrop-filter: blur(10px);
    }

    .wb-header-bar {
      padding-top: 0.75rem;
      padding-bottom: 0.75rem;
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      justify-content: space-between;
      gap: 0.75rem;
    }

    .wb-main {
      position: relative;
      z-index: 10;
      flex: 1;
      padding-top: 1.5rem;
      padding-bottom: 1.5rem;
      display: flex;
      flex-direction: column;
      gap: 1.25rem;
    }

    .wb-footer {
      position: relative;
      z-index: 20;
      border-top: 2px solid var(--border-px);
      background: rgba(7, 11, 20, 0.90);
      backdrop-filter: blur(10px);
      -webkit-backdrop-filter: blur(10px);
      margin-top: auto;
      padding-top: 1rem;
      padding-bottom: 1rem;
      font-size: 0.75rem;
      color: var(--text-muted);
    }

    .flex-row { display: flex; align-items: center; }
    .flex-wrap { flex-wrap: wrap; }
    .justify-between { justify-content: space-between; }
    .items-start { align-items: flex-start; }
    .items-end { align-items: flex-end; }
    .flex-1 { flex: 1 1 0%; }
    .shrink-0 { flex-shrink: 0; }
    .min-w-0 { min-width: 0; }
    .w-full { width: 100%; }

    .gap-1 { gap: 0.25rem; }
    .gap-1-5 { gap: 0.375rem; }
    .gap-2 { gap: 0.5rem; }
    .gap-2-5 { gap: 0.625rem; }
    .gap-3 { gap: 0.75rem; }
    .gap-4 { gap: 1rem; }
    .gap-5 { gap: 1.25rem; }

    .stack-1 > * + * { margin-top: 0.25rem; }
    .stack-2 > * + * { margin-top: 0.5rem; }
    .stack-2-5 > * + * { margin-top: 0.625rem; }
    .stack-3 > * + * { margin-top: 0.75rem; }
    .stack-4 > * + * { margin-top: 1rem; }
    .stack-5 > * + * { margin-top: 1.25rem; }

    .grid-2 {
      display: grid;
      grid-template-columns: 1fr;
      gap: 1rem;
    }
    @media (min-width: 1024px) {
      .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
    }

    .grid-3 {
      display: grid;
      grid-template-columns: 1fr;
      gap: 1rem;
    }
    @media (min-width: 768px) {
      .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    }

    .grid-4 {
      display: grid;
      grid-template-columns: 1fr;
      gap: 1rem;
    }
    @media (min-width: 640px) {
      .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    }
    @media (min-width: 1024px) {
      .grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    }

    .grid-sm-2 {
      display: grid;
      grid-template-columns: 1fr;
      gap: 0.75rem;
    }
    @media (min-width: 640px) {
      .grid-sm-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    }

/* Tables */
    .table-wrap {
      overflow-x: auto;
      border: 2px solid var(--border-px);
      border-radius: 2px;
      background: var(--bg-input);
    }

    table.wb-table {
      width: 100%;
      border-collapse: collapse;
      text-align: left;
      font-size: 0.75rem;
    }

    table.wb-table th {
      padding: 0.625rem;
      background: var(--bg-ctrl);
      border-bottom: 2px solid var(--border-px);
      color: var(--text-muted);
      font-weight: 600;
    }

    table.wb-table td {
      padding: 0.625rem;
      border-bottom: 1px solid rgba(30, 45, 74, 0.55);
    }

    table.wb-table tr.row-hover:hover {
      background: rgba(19, 29, 51, 0.65);
    }

    table.wb-table tr.row-selected {
      background: var(--bg-ctrl);
      box-shadow: inset 3px 0 0 var(--accent);
    }

    /* Toast & Modal */
    #toastStack {
      position: fixed;
      bottom: 1rem;
      right: 1rem;
      z-index: 50;
      display: flex;
      flex-direction: column;
      gap: 0.5rem;
      max-width: 24rem;
      width: calc(100vw - 2rem);
      pointer-events: none;
    }

    .modal-backdrop {
      position: fixed;
      inset: 0;
      z-index: 50;
      background: rgba(3, 6, 14, 0.78);
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 1rem;
    }

    .modal-box {
      max-width: 38rem;
      width: 100%;
      max-height: 84vh;
      display: flex;
      flex-direction: column;
      padding: 0;
    }

    .page-dimmed {
      filter: grayscale(80%);
    }
