:root {
  color-scheme: dark;
  --ink: #080808;
  --panel: #111214;
  --line: #343434;
  --paper: #f1f0eb;
  --muted: #aaa7a1;
  --signal: #df4c2d;
  font-family: Arial, Helvetica, sans-serif;
}
* { box-sizing: border-box; }
html { background: var(--ink); color: var(--paper); }
body { margin: 0; min-height: 100vh; background: radial-gradient(circle at 75% 0%, #1b1411 0, transparent 32rem), var(--ink); }
button, input, select { font: inherit; }
button, .quiet-button { cursor: pointer; }
[hidden] { display: none !important; }
.eyebrow, .wordmark, button, .quiet-button, .slot-page, .count {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: Impact, Oswald, sans-serif; text-transform: uppercase; line-height: .92; }
h1 { margin-bottom: 0; font-size: clamp(3.5rem, 9vw, 8rem); }
h2 { margin: .9rem 0 .7rem; font-size: clamp(2.5rem, 5vw, 4.7rem); }
h3 { margin: .5rem 0 1.2rem; font-size: 1.6rem; }
p { color: var(--muted); line-height: 1.55; }
header {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  min-height: 72px; padding: 0 clamp(1rem, 3vw, 2.5rem);
  border-bottom: 1px solid var(--line); background: rgba(8, 8, 8, .92); backdrop-filter: blur(14px);
}
.wordmark { color: var(--paper); text-decoration: none; font-size: .9rem; }
.header-actions { display: flex; gap: .6rem; }
.quiet-button { border: 1px solid var(--line); background: transparent; color: var(--paper); padding: .8rem 1rem; text-decoration: none; }
main { width: min(1180px, calc(100% - 2rem)); margin: 0 auto; padding-bottom: 6rem; }
.intro { display: grid; grid-template-columns: 1.3fr .7fr; gap: 2rem; align-items: end; padding: clamp(4rem, 9vw, 8rem) 0 3rem; }
.intro p { max-width: 32rem; margin-bottom: .6rem; font-size: 1.05rem; }
.eyebrow, .slot-page { color: var(--signal); }
.panel { margin-bottom: 1.2rem; padding: clamp(1.2rem, 3vw, 2rem); border: 1px solid var(--line); background: rgba(17, 18, 20, .78); }
.upload-panel { display: grid; grid-template-columns: .75fr 1.25fr; gap: 2rem; align-items: center; }
.dropzone { display: grid; place-items: center; min-height: 190px; border: 1px dashed #626262; text-align: center; transition: .2s ease; }
.dropzone:hover, .dropzone.is-over { border-color: var(--signal); background: rgba(223, 76, 45, .08); }
.dropzone input { position: absolute; opacity: 0; pointer-events: none; }
.dropzone strong { margin-bottom: .35rem; font: 700 1rem ui-monospace, monospace; text-transform: uppercase; letter-spacing: .12em; }
.dropzone span { color: var(--muted); }
.upload-list { grid-column: 1 / -1; display: grid; gap: .4rem; }
.upload-item { display: flex; justify-content: space-between; padding: .7rem 0; border-top: 1px solid var(--line); color: var(--muted); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 1rem; }
button { border: 0; background: var(--signal); color: var(--paper); padding: 1rem 1.2rem; }
button:disabled { opacity: .5; cursor: wait; }
.message { min-height: 1.4rem; margin: 0 0 1rem; color: var(--paper); }
.message.is-error { color: #ff9a85; }
.slots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.slot { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 1.2rem; padding: 1rem; border: 1px solid var(--line); }
.slot-preview { min-height: 125px; display: grid; place-items: center; overflow: hidden; background: #202124; color: var(--muted); font-size: .8rem; text-align: center; }
.slot-preview img { width: 100%; height: 100%; min-height: 125px; object-fit: cover; }
select { width: 100%; border: 1px solid var(--line); background: var(--ink); color: var(--paper); padding: .8rem; }
.library { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.media-card { border: 1px solid var(--line); background: var(--ink); }
.media-card img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: #202124; }
.media-meta { display: flex; justify-content: space-between; align-items: center; gap: .5rem; padding: .7rem; }
.media-meta code { overflow: hidden; color: var(--muted); font-size: .7rem; text-overflow: ellipsis; white-space: nowrap; }
.delete-button { background: transparent; color: #ff9a85; padding: .35rem; font-size: .7rem; }
.empty { padding: 3rem 0; text-align: center; }
.login { min-height: 100vh; display: grid; place-items: center; padding: 1rem; }
.login-card { width: min(440px, 100%); padding: 2rem; border: 1px solid var(--line); background: var(--panel); }
.login-card h1 { margin: 1rem 0; font-size: 3.5rem; }
.login-card label { display: grid; gap: .5rem; color: var(--muted); }
.login-card input { width: 100%; margin-bottom: 1rem; border: 1px solid var(--line); background: var(--ink); color: var(--paper); padding: 1rem; }
.login-card button { width: 100%; }
@media (max-width: 820px) {
  .intro, .upload-panel { grid-template-columns: 1fr; }
  .slots { grid-template-columns: 1fr; }
  .library { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  header { align-items: flex-start; padding-block: 1rem; }
  .header-actions { flex-direction: column; align-items: stretch; }
  .quiet-button { padding: .65rem; font-size: .65rem; }
  .intro { padding-top: 4rem; }
  .section-heading { align-items: flex-start; flex-direction: column; }
  .section-heading button { width: 100%; }
  .slot { grid-template-columns: 1fr; }
  .library { grid-template-columns: 1fr; }
}

.slot-name { display: grid; gap: .35rem; margin-top: .8rem; color: var(--muted); font-size: .8rem; }
.slot-name input { width: 100%; padding: .65rem .75rem; border: 1px solid var(--line); background: transparent; color: inherit; font: inherit; }
