:root {
  color-scheme: dark;
  font-family: Inter, system-ui, sans-serif;
  background: #101317;
  color: #f3f6fa;
  --muted: #aab6c5;
  --line: #303944;
  --surface: #171c23;
  --accent: #8ed5ff;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
.top {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap;
  gap: .7rem; padding: 1rem max(1.25rem, calc((100% - 70rem) / 2));
  border-bottom: 1px solid var(--line); background: #14181e;
}
.top > span:first-child { letter-spacing: .02em; }
.divider { color: #768598; margin: 0 .4rem; }
#quota { color: var(--accent); font-size: .9rem; font-weight: 650; }
main { max-width: 72.5rem; margin: 0 auto; padding: clamp(1rem, 4vw, 2.5rem) 1.25rem; }
.intro { margin-bottom: 1.75rem; }
h1 { margin: 0 0 .65rem; font-size: clamp(1.85rem, 4vw, 3.05rem); line-height: 1.12; letter-spacing: -.035em; }
.intro p, .help, .privacy { color: var(--muted); line-height: 1.5; }
.workspace { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
section { min-width: 0; padding: 1rem; border: 1px solid var(--line); border-radius: .8rem; background: var(--surface); }
h2 { margin: 0 0 .8rem; font-size: 1.05rem; }
.preview {
  display: grid; place-items: center; height: clamp(13rem, 32vw, 24rem); overflow: hidden;
  border-radius: .5rem; text-align: center; background-color: #11161c;
}
.preview img { width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.drop { border: 1px dashed #516175; }
.drop.drag { border-color: var(--accent); background-color: #213a4c; }
.drop p { margin: .6rem 0 0; color: var(--muted); }
.checker {
  background-color: #252d37;
  background-image: conic-gradient(#303b48 25%, transparent 0 50%, #303b48 0 75%, transparent 0);
  background-size: 24px 24px;
}
#placeholder { background: #171c23; color: #d0d8e4; padding: .45rem .7rem; border-radius: .3rem; }
.help, .privacy { font-size: .875rem; }
#details { overflow-wrap: anywhere; }
button {
  min-height: 2.65rem; padding: .55rem .9rem; border: 1px solid transparent; border-radius: .4rem;
  background: var(--accent); color: #0a1c2a; font: inherit; font-weight: 650; cursor: pointer;
}
button.secondary { border-color: #526478; color: #e4edf8; background: transparent; }
button:focus-visible { outline: 2px solid #c3eaff; outline-offset: 3px; }
button:disabled { color: #a4aebb; background: #293340; cursor: default; }
.actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.status { min-height: 1.5rem; margin: 1rem 0; color: var(--accent); overflow-wrap: anywhere; }
.status[data-state="failed"], .status[data-state="expired"] { color: #ffb4aa; }
@media (max-width: 700px) {
  .workspace { grid-template-columns: minmax(0, 1fr); }
  main { padding-inline: .85rem; }
  section { padding: .8rem; }
}

.privacy-details { margin: 1.75rem 0; font-size: .9rem; }
.privacy-details h2 { font-size: 1rem; }
.privacy-details a { color: inherit; text-underline-offset: .18em; }
