@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;600;700&family=Source+Serif+4:wght@400;600&display=swap');

:root {
  --bg: #f6f1e8;
  --bg-deep: #efe5d5;
  --ink: #1e1a16;
  --muted: #5a5046;
  --accent: #0f7a6a;
  --accent-soft: #bfe2da;
  --highlight: #f4b942;
  --card: #fffaf3;
  --stroke: #e1d6c6;
  --shadow: 0 12px 30px rgba(30, 26, 22, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Space Grotesk", "Source Serif 4", serif;
  color: var(--ink);
  background: radial-gradient(circle at top, #ffffff 0%, var(--bg) 45%, var(--bg-deep) 100%);
}

.page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 48px 20px 80px;
  display: grid;
  gap: 28px;
}

.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px;
  align-items: center;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 12px;
  color: var(--muted);
  margin: 0 0 12px;
}

h1 {
  font-size: clamp(32px, 4vw, 48px);
  margin: 0 0 12px;
}

.sub {
  font-size: 16px;
  color: var(--muted);
  margin: 0;
}

.hero-card {
  background: linear-gradient(135deg, #fff7ea, #fdf3df);
  border: 1px solid var(--stroke);
  border-radius: 18px;
  padding: 18px 20px;
  box-shadow: var(--shadow);
}

.hero-card h3 {
  margin-top: 0;
  margin-bottom: 12px;
}

.hero-card ul {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
}

.panel {
  background: var(--card);
  border-radius: 20px;
  padding: 24px;
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow);
  animation: floatIn 0.6s ease both;
}

@keyframes floatIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.panel-header {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 18px;
}

.panel-header p {
  margin: 0;
  color: var(--muted);
}

.tac-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

input[type="text"],
input[type="number"],
textarea {
  font-family: "Space Grotesk", sans-serif;
  border: 1px solid var(--stroke);
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 15px;
  background: #fff;
  min-width: 220px;
}

textarea {
  width: 100%;
  margin-top: 12px;
  min-height: 180px;
}

button {
  font-family: "Space Grotesk", sans-serif;
  border-radius: 12px;
  padding: 10px 18px;
  font-size: 14px;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

button:hover {
  transform: translateY(-1px);
}

.primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 8px 18px rgba(15, 122, 106, 0.22);
}

.ghost {
  background: #fff;
  border: 1px solid var(--stroke);
  color: var(--ink);
}

.danger {
  border-color: #e1b6a8;
  color: #8f2f20;
  background: #fff5f1;
}

.info-box {
  border: 1px dashed #d7c7b3;
  border-radius: 12px;
  padding: 10px 14px;
  color: var(--muted);
  font-size: 14px;
  min-width: 180px;
  background: #fffdf7;
}

.download {
  color: var(--ink);
  background: var(--highlight);
  border-radius: 12px;
  padding: 10px 16px;
  text-decoration: none;
}

.hidden {
  display: none;
}

.tac-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.tac-chip {
  border: 1px solid var(--stroke);
  padding: 6px 10px;
  border-radius: 999px;
  background: #fff;
  cursor: pointer;
  font-size: 13px;
}

.tac-chip.active {
  background: var(--accent-soft);
  border-color: var(--accent);
}

.mode-toggle {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
  font-size: 15px;
}

.mode-panel {
  display: grid;
  gap: 12px;
}

.field-row {
  display: grid;
  gap: 6px;
}

.action-row {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 16px;
  flex-wrap: wrap;
}

.result-meta {
  color: var(--muted);
  font-size: 14px;
}

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

.auth-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 20px;
}

.auth-card {
  width: min(460px, 100%);
  background: var(--card);
  border-radius: 22px;
  padding: 28px;
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow);
  animation: floatIn 0.6s ease both;
}

.auth-form {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 18px;
  flex-wrap: wrap;
}

.auth-form input[type="password"] {
  flex: 1 1 220px;
}

.auth-hint {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 720px) {
  .hero {
    grid-template-columns: 1fr;
  }
  .tac-row {
    flex-direction: column;
  }
  .auth-form {
    flex-direction: column;
    align-items: stretch;
  }
}
