code { font: 0.9em "DejaVu Sans Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace; }
.community-lead code, .upstream-head code, .log code { color: var(--paper); }

.make { align-items: end; }

.controls { display: grid; gap: 1.5rem; align-content: end; }
.control { display: grid; gap: 0.6rem; justify-items: start; }
.control-label { font-size: 0.875rem; color: var(--muted); }

.controls .tabs { padding-bottom: 0.6rem; border-bottom: 1px solid var(--line); }
.controls .tabs .tab-mark { bottom: -1px; }
.device-note { margin: 0; max-width: 22rem; font-size: 0.875rem; line-height: 1.45; color: var(--berry); }

.color { gap: 0.6rem; padding-left: 0.45rem; font: 600 0.9375rem "DejaVu Sans Mono", ui-monospace, Menlo, monospace; }
.color input { width: 1.9rem; height: 1.9rem; padding: 0; border: 0; border-radius: 0.5rem; background: none; cursor: pointer; }
.color input::-webkit-color-swatch-wrapper { padding: 0; }
.color input::-webkit-color-swatch { border: 1px solid var(--line); border-radius: 0.5rem; }
.color input::-moz-color-swatch { border: 1px solid var(--line); border-radius: 0.5rem; }

.btn:focus-within { outline: 2px solid var(--berry); outline-offset: 3px; }
.btn:disabled { opacity: 0.4; cursor: not-allowed; }
.btn:disabled:active, .btn.is-pressed:disabled { transform: none; }
.btn-primary:disabled:hover { background: var(--berry); }
label.btn { cursor: pointer; }

.slots-wrap { padding-top: clamp(3rem, 6vw, 4.5rem); }
.slots { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2.5rem clamp(1.25rem, 3vw, 2.5rem); }
.slot { display: grid; grid-row: span 5; grid-template-rows: subgrid; row-gap: 0; align-content: start; min-width: 0; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.slot-main { border-top: 2px solid var(--berry); }
.slot .server-about { margin: 0 0 1.25rem; font-size: 0.9375rem; }
.slot .server-name { margin-bottom: 0.5rem; }

.phone {
  width: min(100%, 14rem);
  position: relative;
  aspect-ratio: 1080 / 2400;
  padding: 4%;
  border-radius: 1.75rem;
  border: 1px solid var(--line);
  background: var(--raised);
  cursor: pointer;
  transition: border-color 160ms var(--ease-out), transform 160ms var(--ease-out);
}
.phone:hover { border-color: var(--control-edge); }
.phone.is-over { border-color: var(--berry); transform: scale(1.01); }
.phone canvas { display: block; width: 100%; height: 100%; border-radius: 1.2rem; background: #000; }
.phone-empty {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  text-align: center;
  font-size: 0.875rem;
  color: var(--muted);
  pointer-events: none;
}
.slot.has-image .phone-empty { display: none; }

.slot-meta { margin: 0.9rem 0 0; min-height: 1.35em; font-size: 0.875rem; color: var(--muted); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.slot-meta.is-warn { color: var(--berry); }
.slot-actions { display: flex; flex-wrap: wrap; align-items: flex-start; align-content: flex-start; gap: 0.5rem; margin-top: 0.9rem; }

.export-wrap { padding-top: clamp(3.5rem, 7vw, 5.5rem); }
.drive .status { margin: 0 0 0.5rem; font-size: 1.0625rem; font-weight: 600; color: var(--paper); }
.drive .status.is-error { color: var(--berry); }

.notes { list-style: none; margin: 0; padding: 0; }
.notes li { padding: 0.65rem 0; color: #d2d2d7; line-height: 1.5; }
.format-note { margin: 0; color: var(--muted); max-width: var(--measure); line-height: 1.6; }

@media (max-width: 64rem) {
  .slots { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 30rem) {
  .phone { border-radius: 1.25rem; }
  .phone canvas { border-radius: 0.85rem; }
  .slot-actions .btn { flex: 1 1 auto; padding: 0 0.8rem; }
  .drive .hero-actions .btn { flex: 1 1 100%; }
}
