:root {
  --bg: #f4f1ed;
  --card: #ffffff;
  --text: #1c1b1a;
  --muted: #6b615a;
  --accent: #2a6f6b;
  --danger: #b94b3c;
  --border: #e0d7cf;
  font-family: "Georgia", "Times New Roman", serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: linear-gradient(120deg, #f8f2ea 0%, #e9efe9 100%);
  color: var(--text);
}

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 32px 20px 60px;
}

.hero {
  margin-bottom: 24px;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.nav-links {
  display: flex;
  gap: 14px;
  font-weight: 600;
}

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

.hero h1 {
  font-size: 2.6rem;
  margin: 0 0 8px;
}

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

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06);
  margin-bottom: 24px;
}

label {
  display: block;
  font-weight: 600;
  margin-bottom: 10px;
}

textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px;
  font-family: "Courier New", monospace;
  font-size: 0.95rem;
}

input[type="text"],
input[type="email"],
select {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 10px;
  font-family: inherit;
}

.controls {
  display: flex;
  gap: 16px;
  align-items: center;
  margin: 16px 0 20px;
}

.controls select {
  margin-left: 8px;
  padding: 4px 8px;
}

.checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
}

button {
  border: none;
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
}

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

button.danger {
  background: var(--danger);
  color: #fff;
}

button.copy {
  background: #e5eceb;
}

.error {
  color: var(--danger);
  margin-top: 12px;
}

.status {
  margin-top: 12px;
}

.result-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.table {
  width: 100%;
  border-collapse: collapse;
}

.table th,
.table td {
  text-align: left;
  padding: 8px 10px;
  border-bottom: 1px solid var(--border);
}

.button-link {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 8px;
  background: #e5eceb;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
}

.plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.plan {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px;
  background: #f7f3ee;
}

.plan ul {
  padding-left: 18px;
  color: var(--muted);
}

.search {
  display: flex;
  gap: 10px;
}

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

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

.code {
  background: #f0eee9;
  border-radius: 10px;
  padding: 16px;
  overflow-x: auto;
  font-family: "Courier New", monospace;
  font-size: 0.9rem;
}

.counts {
  margin: 12px 0 20px;
  color: var(--muted);
}

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

.inline {
  display: flex;
  gap: 8px;
  margin-top: 6px;
}

input[readonly] {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 8px;
}

.meta {
  margin-top: 12px;
  display: flex;
  justify-content: space-between;
  color: var(--muted);
}

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

  .nav {
    flex-direction: column;
    align-items: flex-start;
  }

  .search {
    flex-direction: column;
  }

  .meta {
    flex-direction: column;
    gap: 6px;
  }
}
