/* Color + type tokens now live in /static/tokens.css. */

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "IBM Plex Sans", -apple-system, "Segoe UI", system-ui, sans-serif;
  font-feature-settings: "ss01" on, "ss03" on, "cv02" on;
  background: var(--page);
  color: var(--ink);
  line-height: 1.5;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 24px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.topbar .brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.topbar .brand::before {
  content: "🔒";
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  background: var(--accent);
  color: #fff;
  border-radius: 8px;
  font-size: 15px;
}

.topbar .brand strong {
  font-size: 1.1rem;
  letter-spacing: 0.04em;
  margin-right: 4px;
}

.topbar .brand .badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  background: rgba(39, 93, 114, 0.12);
  color: var(--accent-dark);
  font-size: 0.78rem;
  font-weight: 600;
}

.topbar nav a,
.topbar nav .topbar-link {
  margin-left: 20px;
  padding: 12px 4px;
  display: inline-block;
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  background: transparent;
  border: none;
  font: inherit;
  cursor: pointer;
}

.topbar nav .topbar-link {
  color: var(--accent);
  font-size: 0.9rem;
}

.topbar nav .topbar-link:hover { color: var(--accent-dark); }

.topbar nav a.active { color: var(--accent); }
.topbar nav a:hover  { color: var(--ink); }

.hero {
  max-width: 640px;
  margin: 40px auto;
  padding: 32px;
  background: var(--surface);
  border-radius: 12px;
  border: 1px solid var(--line);
  box-shadow: 0 4px 20px rgba(0,0,0,0.04);
}

h1 { margin: 0 0 6px 0; font-size: 1.8rem; }
.lead { margin: 0 0 24px 0; color: var(--muted); }

.session > summary {
  cursor: pointer;
  color: var(--muted);
  font-size: 0.9rem;
  padding: 6px 0;
  border-bottom: 1px solid var(--line);
}

.session label,
.advanced label,
.recipient {
  display: flex;
  flex-direction: column;
  margin: 10px 0;
  font-size: 0.9rem;
  color: var(--muted);
  gap: 4px;
}

.session input,
.advanced input[type="number"],
.recipient input {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 0.95rem;
  color: var(--ink);
  background: var(--surface);
  font-family: inherit;
}

.recipient input { font-size: 1.05rem; }

.inline-check {
  flex-direction: row;
  align-items: center;
  gap: 8px;
  color: var(--ink);
}

.drop-zone {
  margin: 20px 0;
  padding: 36px 24px;
  border: 2px dashed var(--line);
  border-radius: 10px;
  background: #fafafa;
  text-align: center;
  cursor: pointer;
  transition: background 120ms, border-color 120ms;
}

.drop-zone:hover,
.drop-zone:focus,
.drop-zone.is-over {
  background: #f0f7ff;
  border-color: #60a5fa;
  outline: none;
}

.drop-zone .drop-icon { font-size: 40px; margin-bottom: 6px; }
.drop-zone p { margin: 4px 0; color: var(--muted); }
.drop-zone strong { color: var(--ink); }

.file-summary:not(:empty) {
  margin-top: 12px;
  font-size: 0.85rem;
  color: var(--accent-dark);
  font-weight: 600;
}

.advanced > summary {
  cursor: pointer;
  color: var(--muted);
  font-size: 0.9rem;
  padding: 6px 0;
}

button.primary {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 8px;
  background: var(--accent);
  color: white;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 120ms;
  margin-top: 12px;
}

button.primary:hover:not(:disabled) { background: var(--accent-dark); }
button:focus-visible,
a:focus-visible,
input:focus,
select:focus,
textarea:focus,
.drop-zone:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}
button.primary:disabled { background: #9ca3af; cursor: not-allowed; }
button.primary.big { padding: 16px; font-size: 1.05rem; }

.result {
  margin-top: 28px;
  padding: 20px;
  background: #ecfdf5;
  border: 1px solid #10b981;
  border-radius: 8px;
}

.result h2 { margin: 0 0 6px 0; color: var(--ok); }

.share-url-row {
  display: flex;
  gap: 8px;
  margin: 12px 0;
}

.share-url-row input {
  flex: 1;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 4px;
  font-family: monospace;
  font-size: 0.82rem;
}

.share-url-row button {
  padding: 8px 14px;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
}

.hint { font-size: 0.82rem; color: var(--muted); margin: 4px 0; }
.hint a { color: var(--accent); text-decoration: none; }

.error-box {
  margin-top: 16px;
  padding: 10px 14px;
  background: #fee2e2;
  color: var(--error);
  border: 1px solid #fca5a5;
  border-radius: 6px;
  font-size: 0.9rem;
}
