.shell-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: var(--space-6);
  min-height: var(--header-height);
  padding: 0 28px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(221, 226, 238, 0.8);
}

.shell-header__left,
.shell-header__right {
  display: flex;
  align-items: center;
}

.shell-header__left {
  gap: var(--space-7);
  flex: 1;
}

.shell-header__right {
  gap: 14px;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.brand-mark {
  position: relative;
  width: 34px;
  height: 34px;
}

.brand-mark__ring,
.brand-mark__dot {
  position: absolute;
  inset: 0;
}

.brand-mark__ring {
  border-radius: 50%;
  border: 4px solid #48c0d3;
  border-right-color: #5e78ff;
  transform: rotate(-22deg);
}

.brand-mark__dot {
  inset: auto 4px 6px auto;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #44c3ad;
}

.brand-text {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  min-height: var(--header-height);
}

.primary-nav__item {
  position: relative;
  padding: 22px 22px 20px;
  color: var(--color-text-subtle);
  font-size: 15px;
  transition: color var(--transition-fast), background var(--transition-fast);
}

.primary-nav__item:hover {
  color: var(--color-text);
}

.primary-nav__item.is-active {
  color: #ffffff;
  background: var(--color-primary);
}

.header-chip {
  padding: 8px 12px;
  border-radius: var(--radius-xs);
  background: #f0f3fb;
  color: var(--color-text-subtle);
  font-size: 13px;
}

.header-icon-button {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: var(--color-primary);
  box-shadow: 0 8px 16px rgba(85, 118, 255, 0.22);
}

.header-icon-button--ghost {
  color: var(--color-text);
  background: #ffffff;
  border: 2px solid rgba(47, 56, 80, 0.2);
  box-shadow: none;
}

.shell-main {
  padding: 12px 18px 20px;
}

.workspace-card {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(221, 226, 238, 0.9);
  border-radius: 14px;
  min-height: calc(100vh - 110px);
  overflow: hidden;
}

.workspace-card__body {
  padding: 0 20px 20px;
}

.table-shell {
  overflow: auto;
  border: 1px solid var(--color-border);
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  background: #ffffff;
}

.drawer {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 50;
}

.drawer.is-open {
  display: block;
}

.drawer__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(39, 47, 72, 0.42);
}

.drawer__panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(860px, 100%);
  height: 100%;
  background: linear-gradient(180deg, #eef1ff 0%, #ffffff 160px);
  box-shadow: var(--shadow-drawer);
  display: flex;
  flex-direction: column;
}

.drawer__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: 24px 22px 18px;
}

.drawer__title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
}

.drawer__close {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  color: var(--color-text-subtle);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.drawer__content {
  padding: 0 22px 20px;
  overflow: auto;
}

.launchpad-page {
  min-height: 100vh;
}

.shell-header--launchpad {
  position: relative;
  top: auto;
  align-items: flex-start;
  padding: 28px 32px 20px;
}

.launchpad-title-block h1 {
  margin: 6px 0 10px;
  font-size: clamp(28px, 4vw, 42px);
}

.launchpad-copy {
  margin: 0;
  max-width: 760px;
  line-height: 1.7;
  color: var(--color-text-subtle);
}

.launchpad-main {
  padding: 18px 32px 32px;
}

.launchpad-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}

@media (max-width: 1024px) {
  .shell-header {
    padding-inline: 16px;
  }

  .primary-nav {
    overflow: auto;
    width: 100%;
  }

  .drawer__panel {
    width: 100%;
  }
}
