:root {
  --background: #0e0e0e;
  --foreground: #c8c8c8;
  --card: #161616;
  --primary: #00ff41;
  --primary-foreground: #0e0e0e;
  --secondary: #1a1a1a;
  --muted-foreground: #666666;
  --destructive: #ff4444;
  --border: #2a2a2a;
  color-scheme: dark;
  font-size: 20px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: ui-monospace, "SFMono-Regular", "JetBrains Mono", Menlo, Consolas, "Liberation Mono", "Courier New", monospace;
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

button {
  border-radius: 0;
  cursor: pointer;
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-header,
.site-footer {
  border-bottom: 1px solid var(--border);
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.brand-name {
  color: var(--primary);
  font-size: 1.1rem;
  font-weight: 700;
}

.brand-tagline,
.muted {
  color: var(--muted-foreground);
}

.brand-tagline {
  font-size: 0.7rem;
}

.site-nav {
  display: flex;
  gap: 1.5rem;
  color: var(--muted-foreground);
  font-size: 0.75rem;
}

.site-nav a:hover,
.site-nav a:focus {
  color: var(--foreground);
}

main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 1rem;
}

.shell {
  width: min(100%, 40rem);
}

.panel {
  border: 1px solid var(--border);
  background: var(--card);
}

.label {
  color: var(--muted-foreground);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
}

.limits {
  margin-bottom: 1.5rem;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.72rem;
}

.limits-list,
.success-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
}

.limit-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.icon {
  width: 1rem;
  color: var(--primary);
}

.drop-zone {
  width: 100%;
  min-height: 16rem;
  border: 2px dashed var(--border);
  background: var(--card);
  color: var(--foreground);
  padding: 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition: border-color 160ms ease;
}

.drop-zone:hover,
.drop-zone:focus,
.drop-zone.is-dragging {
  border-color: var(--primary);
  outline: none;
}

.upload-mark {
  margin-bottom: 1rem;
  color: var(--muted-foreground);
  font-size: 1.8rem;
}

.drop-zone.is-dragging .upload-mark {
  color: var(--primary);
}

.primary-line {
  margin-bottom: 0.25rem;
  font-size: 0.85rem;
}

.secondary-line {
  color: var(--muted-foreground);
  font-size: 0.72rem;
}

.hidden-input {
  display: none;
}

.selected-actions,
.success-actions {
  margin-top: 0.75rem;
  display: flex;
  gap: 0.5rem;
}

.button {
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted-foreground);
  padding: 0.55rem 0.85rem;
  font-size: 0.72rem;
  transition: color 160ms ease, border-color 160ms ease, background 160ms ease, opacity 160ms ease;
}

.button:hover,
.button:focus {
  border-color: var(--muted-foreground);
  color: var(--foreground);
  outline: none;
}

.button-primary {
  flex: 1;
  border-color: var(--primary);
  background: var(--primary);
  color: var(--primary-foreground);
  font-size: 0.8rem;
}

.button-primary:hover,
.button-primary:focus {
  border-color: var(--primary);
  color: var(--primary-foreground);
  opacity: 0.9;
}

.button-outline {
  border-color: var(--primary);
  color: var(--primary);
}

.button-outline:hover,
.button-outline:focus {
  background: var(--primary);
  color: var(--primary-foreground);
}

.icon-button {
  width: 2.3rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.progress-panel,
.success-panel,
.download-panel,
.error-page,
.curl-panel {
  margin-top: 0.75rem;
  padding: 1rem;
}

.progress-panel,
.success-panel,
.download-panel {
  padding: 1.5rem;
}

.progress-head {
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
}

.progress-value {
  color: var(--primary);
}

.progress-track {
  height: 0.25rem;
  background: var(--secondary);
  overflow: hidden;
}

.progress-bar {
  width: 0%;
  height: 100%;
  background: var(--primary);
  transition: width 100ms linear;
}

.progress-bytes {
  margin-top: 0.75rem;
  color: var(--muted-foreground);
  font-size: 0.7rem;
}

.success-panel,
.download-panel {
  border-color: var(--primary);
}

.success-head {
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.status-ok {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary);
  font-size: 0.75rem;
}

.status-dot {
  width: 0.5rem;
  height: 0.5rem;
  background: var(--primary);
  border-radius: 50%;
}

.field {
  margin-bottom: 1rem;
  font-size: 0.75rem;
}

.field-label {
  margin-bottom: 0.25rem;
  color: var(--muted-foreground);
}

.success-meta {
  margin-bottom: 1rem;
  font-size: 0.72rem;
}

.download-note {
  color: var(--muted-foreground);
  font-size: 0.72rem;
}

.share-link {
  border: 1px solid var(--border);
  background: var(--secondary);
  padding: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.share-link code {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--foreground);
  font-size: 0.8rem;
}

.copy-link {
  border: 0;
  background: transparent;
  color: var(--muted-foreground);
  font-size: 0.72rem;
  padding: 0;
  flex: 0 0 auto;
}

.copy-link:hover,
.copy-link:focus {
  color: var(--primary);
  outline: none;
}

.curl-panel {
  margin-top: 2rem;
  font-size: 0.7rem;
}

.command {
  margin-top: 0.25rem;
  overflow-x: auto;
  white-space: nowrap;
}

.error-page {
  border-color: var(--destructive);
}

.error-page h1 {
  margin: 0.75rem 0;
  color: var(--destructive);
  font-size: 1rem;
}

.error-page p {
  margin: 0;
  font-size: 0.8rem;
}

section {
  border-top: 1px solid var(--border);
  padding: 3rem 1.5rem;
}

.section-inner {
  width: min(100%, 40rem);
  margin: 0 auto;
}

.section-label {
  margin-bottom: 1rem;
}

.section-copy {
  font-size: 0.8rem;
}

.section-copy p {
  margin: 0 0 0.75rem;
}

.donate-copy {
  margin-top: 0;
  margin-bottom: 1.5rem;
}

.donate-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.donate-row {
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.donate-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.coin {
  color: var(--primary);
  font-size: 0.72rem;
}

.coin-label {
  color: var(--muted-foreground);
  font-size: 0.68rem;
}

.donate-address {
  overflow-wrap: anywhere;
  font-size: 0.68rem;
}

.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--border);
  border-bottom: 0;
  color: var(--muted-foreground);
  font-size: 0.68rem;
}

[hidden] {
  display: none !important;
}

@media (max-width: 640px) {
  .site-header,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .brand {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.25rem;
  }

  .site-nav {
    width: 100%;
    justify-content: space-between;
  }

  main {
    padding: 2.5rem 1rem;
  }

  .drop-zone {
    min-height: 13rem;
    padding: 2rem 1rem;
  }

  .selected-actions,
  .success-actions {
    flex-direction: column;
  }

  .icon-button {
    width: 100%;
  }
}
