/* Page frame: header bar, centred shell, options grid. */

.topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.topbar__inner {
  max-width: var(--shell-width);
  margin: 0 auto;
  padding: var(--sp-3) var(--sp-4);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  min-width: 0;
}

.brand__mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: var(--radius);
  background: var(--accent);
  color: var(--accent-ink);
}

.brand__text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.brand__text strong {
  font-size: var(--step-1);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.brand__sub {
  font-size: var(--step--1);
  color: var(--ink-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.shell {
  max-width: var(--shell-width);
  margin: 0 auto;
  padding: var(--sp-5) var(--sp-4) var(--sp-7);
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}

/* Options panels share one two-column grid. */
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--sp-5);
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-5);
  box-shadow: var(--shadow-1);
}

.panel[hidden] {
  display: none;
}

@media (min-width: 40rem) {
  .panel {
    grid-template-columns: 1fr 1fr;
    column-gap: var(--sp-6);
  }

  .field--wide {
    grid-column: 1 / -1;
  }
}

.footnote {
  padding: 0 var(--sp-1);
  color: var(--ink-2);
  font-size: var(--step--1);
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  text-wrap: pretty;
}
