.badge-shell {
  width: min(1180px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 16px 0 64px;
}

.brand-panel,
.tool-panel,
.footer {
  border: 2px solid var(--line);
  background: var(--panel-bg);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.brand-panel {
  display: grid;
  grid-template-columns: minmax(140px, 260px) 1fr;
  gap: 20px;
  align-items: center;
  min-height: 0;
  padding: 16px 24px;
  position: relative;
  overflow: hidden;
}

.brand-panel::before,
.brand-panel::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  opacity: 0.9;
  pointer-events: none;
}

.brand-panel::before {
  width: 96px;
  height: 96px;
  right: 28px;
  top: -32px;
  background: var(--red-500);
}

.brand-panel::after {
  width: 72px;
  height: 72px;
  left: -20px;
  bottom: -20px;
  background: var(--blue-500);
}

.brand-logo {
  width: min(100%, 260px);
  max-height: 110px;
  object-fit: contain;
  justify-self: center;
  position: relative;
  z-index: 1;
}

.brand-copy {
  position: relative;
  z-index: 1;
}

.brand-copy h1,
.panel-heading h2 {
  margin: 0;
  line-height: 0.96;
  letter-spacing: 0;
}

.brand-copy h1 {
  font-size: clamp(2.2rem, 4.5vw, 3.5rem);
}

.lede {
  max-width: 36rem;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.45;
}

.workspace {
  display: grid;
  grid-template-columns: minmax(260px, 0.92fr) minmax(320px, 1.08fr);
  grid-template-areas:
    "upload preview"
    "actions preview";
  gap: 14px;
  margin-top: 14px;
  align-items: start;
}

.tool-panel {
  padding: 18px 20px;
}

.upload-panel { grid-area: upload; }
.preview-panel { grid-area: preview; }
.actions-panel { grid-area: actions; }

.panel-heading {
  margin-bottom: 18px;
}

.compact-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.panel-heading h2 {
  font-size: clamp(1.55rem, 3vw, 2.25rem);
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  text-transform: uppercase;
}

.footer {
  width: min(1180px, calc(100vw - 32px));
  margin: -64px auto 24px;
  box-shadow: var(--shadow);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 16px;
}

.footer-inner p {
  margin: 0;
  color: var(--muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.github-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text);
  font-weight: 700;
}

.github-link svg {
  width: 18px;
  height: 18px;
}

