:root {
  color-scheme: light;
  --bg: #e8eef1;
  --ink: #122028;
  --muted: #5a6d78;
  --card: #f7fafb;
  --line: #c5d2d9;
  --accent: #1a4d6d;
  --accent-text: #fff;
  --err: #8b1e1e;
  --ok: #1b5e3a;
  font-family: "Segoe UI", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100dvh;
  background:
    radial-gradient(1200px 600px at 10% -10%, #cfe0ea 0%, transparent 55%),
    radial-gradient(900px 500px at 100% 0%, #d9e8df 0%, transparent 50%),
    var(--bg);
  color: var(--ink);
}

.shell {
  max-width: 28rem;
  margin: 0 auto;
  padding: 1.25rem 1rem 2.5rem;
}

.top {
  margin-bottom: 1.25rem;
}

.brand {
  margin: 0;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
}

h1 {
  margin: 0.35rem 0 0.25rem;
  font-size: 1.65rem;
  line-height: 1.2;
}

.muted {
  color: var(--muted);
}

.small {
  font-size: 0.85rem;
}

.card,
#upload-view {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1rem;
}

label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.95rem;
}

input[type='email'],
input[type='password'],
select {
  font: inherit;
  padding: 0.7rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

button,
.action-btn {
  font: inherit;
  border-radius: 10px;
  border: 1px solid var(--line);
  padding: 0.85rem 1rem;
  background: #fff;
  cursor: pointer;
  text-align: center;
}

button.primary,
.action-btn.primary {
  background: var(--accent);
  color: var(--accent-text);
  border-color: var(--accent);
}

button.ghost {
  background: transparent;
  border-color: transparent;
  color: var(--accent);
  padding: 0.35rem 0.5rem;
}

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

.actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
}

.meta-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
}

.queue {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.queue li {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.55rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  font-size: 0.9rem;
}

.queue button {
  padding: 0.2rem 0.45rem;
  font-size: 0.8rem;
}

.err {
  color: var(--err);
  margin: 0;
}

.ok {
  color: var(--ok);
  margin: 0;
}

[hidden] {
  display: none !important;
}
