*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  overflow: hidden;
  height: 100vh;
}

button { font-family: inherit; cursor: pointer; }
input, textarea, select { font-family: inherit; }

.wb-app { display: flex; flex-direction: column; height: 100vh; }

.wb-landing {
  height: 100vh;
  background: var(--navy);
  display: flex;
  color: white;
}
.wb-landing-left {
  width: 55%;
  padding: 60px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.wb-landing-right {
  width: 45%;
  background: rgba(255,255,255,0.03);
  border-left: 1px solid rgba(255,255,255,0.06);
  padding: 48px 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}

.wb-topbar {
  height: var(--wb-topbar-height);
  background: var(--wb-topbar-bg);
  display: flex;
  align-items: center;
  padding: 0 14px;
  gap: 8px;
  flex-shrink: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.wb-shell { display: flex; height: calc(100vh - var(--wb-topbar-height)); }

.wb-rail {
  width: var(--wb-rail-width);
  background: var(--wb-rail-bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 10px;
  gap: 4px;
  flex-shrink: 0;
  border-right: 1px solid rgba(255,255,255,0.04);
  overflow-y: auto;
}

.wb-main {
  flex: 1;
  display: flex;
  overflow: hidden;
}

.wb-panel {
  flex: 1;
  background: var(--surface);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.wb-panel-header {
  padding: 14px 20px 0;
  flex-shrink: 0;
}
.wb-panel-content {
  flex: 1;
  overflow-y: auto;
  padding: 0 20px 20px;
}
.wb-panel-footer {
  padding: 12px 20px;
  border-top: 1px solid var(--border);
  background: #FAFBFC;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.wb-drawer {
  width: var(--wb-drawer-width-collapsed);
  background: #F8FAFC;
  border-left: 1px solid var(--border);
  flex-shrink: 0;
  transition: width 0.2s ease;
  overflow: hidden;
}
.wb-drawer.wb-drawer--open {
  width: var(--wb-drawer-width-expanded);
}

@media (max-width: 768px) {
  .wb-shell { flex-direction: column-reverse; }
  .wb-rail {
    width: 100%;
    height: 56px;
    flex-direction: row;
    padding: 0 8px;
    gap: 2px;
    overflow-x: auto;
    border-right: none;
    border-top: 1px solid rgba(255,255,255,0.04);
  }
  .wb-drawer { display: none; }
}
