.page {
  min-height: 100vh;
}

.card {
  width: 100%;
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  background: var(--ds-color-canvas);
}

.brand {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--ds-space-5);
  padding: 20px clamp(16px, 2.4vw, 32px);
  background: var(--brand-primary);
  color: var(--ds-color-on-primary);
}

.brand-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.brand-link:hover {
  opacity: 0.94;
}

.brand-name {
  color: var(--ds-color-on-primary);
  font-family: var(--ds-font-display);
  font-size: 20px;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.brand-sub {
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 13px;
  line-height: 1.4;
  font-weight: 700;
}

.brand-right {
  justify-content: flex-end;
  color: rgba(255, 255, 255, 0.9);
  font-size: 13px;
  line-height: 1.4;
}

.brand-right .btn-ghost,
.brand .ui-switch {
  color: var(--ds-color-on-primary);
}

.brand-right .btn-ghost {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
}

.brand-right .btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.14);
}

.ui-switch {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.ui-switch-btn {
  min-height: 30px;
  padding: 0 10px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 12px;
  line-height: 1;
  font-weight: 800;
  cursor: pointer;
}

.ui-switch-btn.active {
  background: var(--brand-accent);
  color: var(--ds-color-on-accent);
}

.content {
  width: 100%;
  padding: 24px clamp(16px, 2.4vw, 32px) 40px;
  background: var(--ds-color-canvas);
}

.content > * {
  width: 100%;
}

.foot {
  padding: 16px clamp(16px, 2.4vw, 32px) 24px;
  border-top: 1px solid var(--ds-color-border-soft);
  background: var(--ds-color-surface-muted);
  font-size: 12px;
  line-height: 1.5;
}

.foot .muted {
  color: var(--ds-color-text-muted);
}

@media (max-width: 900px) {
  .content {
    padding: var(--ds-space-5);
  }
}

@media (max-width: 700px) {
  .brand {
    padding: 18px 16px;
    flex-direction: column;
    align-items: flex-start;
  }

  .content {
    padding: 16px;
  }

  .foot {
    padding: 14px 16px 18px;
  }
}
