:root {
  color-scheme: light dark;
  --future-blue: #08a4de;
  --future-blue-hover: #0790c4;
  --deep-roots-blue: #0a436a;

  --bg: #ffffff;
  --panel-bg: #ffffff;
  --border: #d8e3ea;
  --text: #0a436a;
  --muted: #4d6b80;
  --accent: #08a4de;
  --accent-hover: #0790c4;
  --danger: #b3261e;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a436a;
    --panel-bg: #0d4f7d;
    --border: #1a5c85;
    --text: #ffffff;
    --muted: #bcd6e6;
    --accent: #08a4de;
    --accent-hover: #2bb8ec;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Aptos", "Aptos Body", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
}

h1, h2, .link-btn, button {
  font-family: "Myriad Pro", "Myriad Pro Bold", "Aptos Display", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-weight: 700;
}

header {
  padding: 2rem 1.5rem 1rem;
  text-align: center;
}

.logo {
  max-width: 220px;
  width: 40%;
  height: auto;
  margin: 0 auto 1rem;
  display: block;
}

h1 { margin: 0 0 0.25rem; font-size: 1.8rem; color: var(--deep-roots-blue); }
@media (prefers-color-scheme: dark) {
  h1 { color: #ffffff; }
}
.subtitle { margin: 0; color: var(--muted); font-family: "Aptos", "Aptos Body", -apple-system, sans-serif; font-weight: 400; }

main {
  max-width: 720px;
  margin: 0 auto;
  padding: 1rem 1.5rem 3rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.panel {
  background: var(--panel-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
}

.panel h2 { margin-top: 0; font-size: 1.15rem; }
.optional { color: var(--muted); font-weight: normal; font-size: 0.85em; }
.hint { color: var(--muted); font-size: 0.9rem; margin-top: -0.5rem; }
.hint-inline { color: var(--muted); font-weight: normal; font-size: 0.85em; }

.dropzone {
  border: 2px dashed var(--border);
  border-radius: 10px;
  padding: 1.5rem;
  text-align: center;
  color: var(--muted);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.dropzone.dragover {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 8%, transparent);
}

.dropzone-links {
  margin: 0.4rem 0 0;
  font-size: 0.85rem;
}

.link-btn {
  appearance: none;
  -webkit-appearance: none;
  background: none;
  border: none;
  padding: 0.15em 0.05em;
  margin: 0;
  color: var(--accent);
  text-decoration: underline;
  cursor: pointer;
  font-size: inherit;
  line-height: inherit;
}

.link-btn:hover,
.link-btn:focus,
.link-btn:active {
  background: none;
  color: var(--accent-hover);
}

.file-list {
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0;
  max-height: 200px;
  overflow-y: auto;
}

.file-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.4rem 0.2rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}

.file-list li:last-child { border-bottom: none; }

.file-list .remove {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  color: var(--danger);
  font-size: 0.85rem;
  background: none;
  border: none;
}

.file-list .remove:hover { background: none; }

label {
  display: block;
  margin-top: 1.25rem;
  font-weight: 600;
  font-size: 0.9rem;
}

textarea {
  width: 100%;
  margin-top: 0.5rem;
  padding: 0.6rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-family: "Aptos", "Aptos Body", inherit;
  font-size: 0.9rem;
  resize: vertical;
}

.actions {
  margin-top: 1rem;
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

button {
  appearance: none;
  -webkit-appearance: none;
  padding: 0.55rem 1.1rem;
  border-radius: 8px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: white;
  font-size: 0.9rem;
  cursor: pointer;
}

button:hover:not(:disabled) { background: var(--accent-hover); }

button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

#clear-btn {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}

.status {
  margin-top: 0.75rem;
  font-size: 0.88rem;
  color: var(--muted);
  white-space: pre-line;
}

.status.error { color: var(--danger); }
.status.success { color: #1a7f37; }
