/* Topbar */
.topbar,
.wrap {
  position: relative;
  z-index: 1;
}

.topbar {
  height: 78px;
  background: #fff;
  border-bottom: 4px solid var(--brand);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  gap: 12px;
}

.topbar .slot {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  min-width: 160px;
}

.topbar .slot.left {
  justify-content: flex-start;
}

.topbar .slot.center {
  flex: 1 1 auto;
  justify-content: center;
  min-width: 0;
}

.topbar .slot.right {
  justify-content: flex-end;
}

.topbar img {
  height: 26px;
  width: auto;
  opacity: .98;
}

.byline {
  font-size: 12px;
  font-weight: 700;
  color: #94a3b8;
  white-space: nowrap;
  user-select: none;
}

/* Main wrapper */
.wrap {
  max-width: 1400px;
  margin: 28px auto 56px;
  padding: 0 18px;
}

/* Grid layout */
.grid {
  display: grid;
  grid-template-columns: 1fr 1.65fr;
  gap: 22px;
  align-items: stretch;
}

/* Cards */
.card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
  display: flex;
  flex-direction: column;
  height: 860px;
  overflow: hidden;
}

.card-scroll {
  overflow: auto;
  padding-right: 6px;
  -webkit-overflow-scrolling: touch;
}

/* Two column layout */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

/* Mobile/Tablet responsiveness */
@media (max-width: 980px) {
  .grid {
    grid-template-columns: 1fr;
  }

  .two-col {
    grid-template-columns: 1fr;
  }

  .card {
    height: auto;
  }

  .topbar .slot.left,
  .topbar .slot.right {
    display: none;
  }

  .topbar {
    justify-content: center;
  }

  .topbar .slot.center {
    flex: 0 0 auto;
  }

  .wm-col {
    width: 110px;
  }

  .wm-item {
    font-size: 14px;
  }
}

/* Small mobile adjustments */
@media (max-width: 640px) {
  .wrap {
    margin: 16px auto 32px;
    padding: 0 12px;
  }

  .card {
    padding: 18px;
    border-radius: 14px;
  }

  .topbar {
    height: 64px;
    padding: 0 12px;
  }

  .topbar img {
    height: 22px;
  }
}
