:root {
  color-scheme: light;
  --bg: #f5f7fb;
  --panel: #ffffff;
  --ink: #172033;
  --muted: #667085;
  --line: #d9e1ee;
  --accent: #1f6feb;
  --accent-dark: #1558be;
  --danger: #b42318;
  --success: #067647;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: var(--bg);
}

button,
input {
  font: inherit;
}

.app-shell {
  width: min(1120px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 40px 0;
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(360px, 1.1fr);
  gap: 24px;
  align-items: start;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 28px;
  box-shadow: 0 16px 40px rgba(22, 34, 51, 0.08);
}

.auth-panel {
  position: sticky;
  top: 24px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 12px;
  font-size: 2rem;
}

h2 {
  margin-bottom: 0;
  font-size: 1.45rem;
}

h3 {
  margin-bottom: 16px;
  font-size: 1.05rem;
}

.lede {
  color: var(--muted);
  line-height: 1.6;
}

.stack {
  display: grid;
  gap: 16px;
}

label {
  display: grid;
  gap: 8px;
  color: #344054;
  font-weight: 650;
}

input[type="email"],
input[type="text"] {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 11px 12px;
  color: var(--ink);
  background: #fff;
}

input:focus {
  outline: 3px solid rgba(31, 111, 235, 0.18);
  border-color: var(--accent);
}

.inline {
  display: flex;
  gap: 12px;
  align-items: end;
}

.grow {
  flex: 1;
}

button {
  border: 0;
  border-radius: 6px;
  padding: 11px 16px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

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

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

button.ghost {
  color: var(--accent);
  background: transparent;
  border: 1px solid var(--line);
}

button.ghost:hover {
  background: #eff5ff;
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.drop-zone {
  min-height: 220px;
  border: 1px dashed #98a2b3;
  border-radius: 8px;
  place-items: center;
  text-align: center;
  padding: 24px;
  color: var(--ink);
  background: #fbfdff;
}

.drop-zone.dragging {
  border-color: var(--accent);
  background: #eff5ff;
}

.drop-zone input {
  width: 100%;
  max-width: 320px;
}

.drop-zone span {
  display: block;
  margin-top: 12px;
  font-size: 1rem;
}

.drop-zone small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-weight: 500;
}

progress {
  width: 100%;
  height: 10px;
  accent-color: var(--accent);
}

.status {
  min-height: 24px;
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.status.error {
  color: var(--danger);
}

.status.ok {
  color: var(--success);
}

.result {
  margin-top: 24px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
}

dl {
  display: grid;
  gap: 12px;
  margin: 0;
}

dl div {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 16px;
  align-items: start;
}

dt {
  color: var(--muted);
  font-weight: 700;
}

dd {
  margin: 0;
  overflow-wrap: anywhere;
}

@media (max-width: 820px) {
  .app-shell {
    grid-template-columns: 1fr;
    padding: 24px 0;
  }

  .auth-panel {
    position: static;
  }

  .inline {
    display: grid;
  }

  dl div {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}
