:root {
  --bg:     #0e1014;
  --fg:     #e6e6e6;
  --muted:  #777b85;
  --accent: #ffce00;
  --border: #2a2d33;
  --hover:  #1a1d22;
  --ok:     #4cd964;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 16px;
  min-height: 100vh;
}

main {
  max-width: 640px;
  margin: 0 auto;
  padding: 6vh 24px;
}

h1 {
  font-size: 3em;
  margin: 0 0 0.2em;
  letter-spacing: -0.05em;
  color: var(--accent);
}

.tag {
  color: var(--muted);
  margin: 0 0 2em;
}

.drop {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 4em 2em;
  border: 2px dashed var(--border);
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
  text-align: center;
}

.drop:hover, .drop.over {
  background: var(--hover);
  border-color: var(--accent);
}

.drop-text { font-size: 1.05em; }
.drop-hint { color: var(--muted); font-size: 0.85em; }

#progress { margin-top: 2em; }

.bar {
  height: 8px;
  background: var(--border);
  border-radius: 4px;
  overflow: hidden;
}

#bar-fill {
  height: 100%;
  width: 0%;
  background: var(--accent);
  transition: width 0.1s linear;
}

#bar-status {
  margin-top: 0.5em;
  color: var(--muted);
  font-size: 0.9em;
}

#result {
  margin-top: 2em;
  display: flex;
  gap: 0.5em;
}

#link {
  flex: 1;
  padding: 0.75em 1em;
  background: var(--hover);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--fg);
  font: inherit;
}

#link:focus { outline: 1px solid var(--accent); }

#copy {
  padding: 0.75em 1.25em;
  background: var(--accent);
  color: var(--bg);
  border: none;
  border-radius: 4px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

#copy:hover  { filter: brightness(0.95); }
#copy.copied { background: var(--ok); color: var(--bg); }

.cli {
  margin-top: 3em;
  color: var(--muted);
}

.cli summary {
  cursor: pointer;
  user-select: none;
}

.cli pre {
  background: var(--hover);
  padding: 1em;
  border-radius: 4px;
  overflow-x: auto;
  margin-top: 0.5em;
  color: var(--fg);
}

footer {
  margin-top: 4em;
  text-align: center;
  color: var(--muted);
  font-size: 0.8em;
}
