:root {
  --accent: #38d6c0;
  --bg: #0a0e14;
  --panel-bg: #111722;
  --panel-border: #1f2937;
  --muted: #93a0b4;
  --fg: #e8edf5;
  --dark-on-accent: #04201c;
}

html, body {
  height: 100%;
  margin: 0;
}

body {
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--fg);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

#brand {
  padding: 20px 24px;
  text-align: center;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.04em;
  border-bottom: 1px solid var(--panel-border);
}

.shell {
  margin: auto; /* centers the card both ways in the remaining space */
  width: 92%;
  max-width: 880px;
  display: flex;
  border-radius: 20px;
  overflow: hidden;
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
}

/* ---- left column: image / lock is styled in lock.css ---- */

.panel {
  flex: 1;
  min-width: 0;
  box-sizing: border-box;
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.badges {
  display: flex;
  gap: 8px;
}

.badge {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--panel-border);
  font-size: 13px;
  color: var(--muted);
}

.badge-accent {
  border-color: var(--accent);
  color: var(--accent);
  font-weight: 600;
}

.pick {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.payload-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.group-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.payload-options {
  display: flex;
  gap: 12px;
}

.opt {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border-radius: 12px;
  border: 2px solid var(--panel-border);
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
}

.opt input[type="radio"] {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--accent);
}

/* Nice-to-have highlight on the selected card. :has() isn't supported on
   every old browser; where it's missing this rule is just ignored and the
   radio dot itself (always visible) still shows what's selected. */
.opt:has(input:checked) {
  border-color: var(--accent);
  background: #151e2c;
  font-weight: 600;
}

.opt-auto {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-radius: 12px;
  background: #0d1320;
  border: 1px solid var(--panel-border);
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
}

.switch {
  position: relative;
  display: inline-block;
  flex-shrink: 0;
  width: 44px;
  height: 26px;
  border-radius: 13px;
  background: #243044;
}

.switch input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.switch .knob {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--muted);
  transition: transform 0.2s ease, background 0.2s ease;
}

.switch input:checked ~ .knob {
  transform: translateX(18px);
  background: var(--dark-on-accent);
}

.switch:has(input:checked) {
  background: var(--accent);
}

.actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.btn {
  width: 100%;
  height: 56px;
  border: 0;
  border-radius: 12px;
  background: var(--accent);
  color: var(--dark-on-accent);
  font-family: inherit;
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
}

.btn:hover {
}

.btn:focus-visible,
.opt:focus-within,
.opt-auto:focus-within {
  outline: 2px solid var(--fg);
  outline-offset: 2px;
}

.count {
  margin: 0;
  min-height: 1.2em;
  text-align: center;
  font-family: "Courier New", monospace;
  font-size: 13px;
  color: var(--muted);
}

.byline {
  margin: 0;
  padding: 16px;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
}


@media (max-width: 680px) {
  .shell {
    width: 94%;
    max-width: 480px;
    flex-direction: column;
    border-radius: 16px;
  }

  .panel {
    width: 100%;
    padding: 24px;
  }

  .badges {
    flex-wrap: wrap;
  }
}
