:root {
  --accent: #001c3d;
  --accent-soft: #00a2db;
  --accent-warm: #e84e10;
  --bg: #f5f8fb;
  --border: #e5e7eb;
  --border-soft: #f0f2f7;
  --card: #ffffff;
  --muted: #4b5563;
  --text: #111827;
  --width: 836px;
  --pad: 22px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 18px;
  color: var(--text);
  background:
    linear-gradient(180deg, rgba(0, 162, 219, 0.08), rgba(255, 255, 255, 0) 28%),
    linear-gradient(135deg, rgba(0, 28, 61, 0.04), rgba(0, 28, 61, 0)),
    var(--bg);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.shell {
  width: 100%;
  max-width: var(--width);
  overflow: hidden;
  border: 1px solid rgba(0, 28, 61, 0.08);
  border-radius: 22px;
  background: var(--card);
  box-shadow: 0 20px 48px rgba(0, 28, 61, 0.1);
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px var(--pad);
  border-bottom: 1px solid var(--border-soft);
  background: linear-gradient(180deg, rgba(0, 162, 219, 0.06), rgba(255, 255, 255, 0));
}

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

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-org {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand-title {
  font-size: 1rem;
  font-weight: 650;
  letter-spacing: 0.2px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pill {
  padding: 3px 9px;
  border: 1px solid rgba(0, 28, 61, 0.12);
  border-radius: 999px;
  color: var(--accent);
  background: rgba(255, 255, 255, 0.92);
  font-size: 0.82rem;
  white-space: nowrap;
}

.progress {
  width: 100%;
  height: 4px;
  overflow: hidden;
  margin: 0 var(--pad);
  border-radius: 999px;
  background: #eef2f7;
}

.bar {
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-soft));
  transition: width 0.35s ease;
}

.wrap {
  position: relative;
  overflow: hidden;
  height: 440px;
}

.track {
  display: flex;
  width: 100%;
  transition: transform 0.38s cubic-bezier(0.2, 0.7, 0.2, 1);
  will-change: transform;
}

.slide {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 100%;
  padding: 26px var(--pad) 18px;
}

.q {
  margin: 6px 0 2px;
  font-size: 1.35rem;
  font-weight: 650;
  line-height: 1.35;
}

.hint {
  color: var(--muted);
  font-size: 0.95rem;
}

.opts {
  display: grid;
  gap: 10px;
}

@media (min-width: 640px) {
  .opts {
    grid-template-columns: 1fr 1fr;
  }
}

label.opt {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
}

label.opt:hover {
  border-color: #d1d5db;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.04);
}

label.opt input {
  transform: scale(1.15);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px var(--pad) 18px;
  border-top: 1px solid var(--border-soft);
}

.btn {
  padding: 10px 14px;
  border: 1px solid rgba(0, 28, 61, 0.14);
  border-radius: 10px;
  color: var(--text);
  background: #fff;
  cursor: pointer;
}

.btn[disabled] {
  opacity: 0.35;
  cursor: not-allowed;
}

.btn.primary {
  border-color: var(--accent);
  color: #fff;
  background: var(--accent);
}

.btn.export {
  border-color: var(--accent-warm);
  color: #fff;
  background: var(--accent-warm);
}

.result-card,
.status-card {
  max-height: 320px;
  overflow: auto;
  padding: 14px;
  border: 1px solid rgba(0, 28, 61, 0.08);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(0, 162, 219, 0.04), #fafcff);
}

.status-card.error {
  border-color: #f1c3c3;
  background: #fff7f7;
}

.tag {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 8px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: #374151;
  font-size: 0.78rem;
}

.warn {
  border-color: #f5d48b;
  background: #fff9e6;
}

details {
  margin-top: 6px;
}

details summary {
  cursor: pointer;
}

ol,
ul {
  margin: 8px 0 0;
  padding-left: 20px;
}

.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.subtle {
  color: #6b7280;
  font-size: 0.9rem;
}

.disclaimer {
  margin: 10px 0 0 8px;
  color: #6b7280;
  font-size: 0.88rem;
}

.gs {
  margin-top: 8px;
}

.gs a {
  color: var(--accent);
  text-decoration: none;
}

.gs a:hover {
  text-decoration: underline;
}

@media (max-width: 700px) {
  header {
    align-items: flex-start;
    flex-direction: column;
  }

  .header-actions {
    width: 100%;
    justify-content: space-between;
  }

  .brand {
    width: 100%;
  }
}
