:root {
  --bg-1: #ecfeff;
  --bg-2: #dbeafe;
  --surface: #ffffff;
  --surface-alt: #f8fafc;
  --text: #0f172a;
  --muted: #334155;
  --primary: #0f766e;
  --primary-2: #0369a1;
  --border: #cbd5e1;
  --ok: #065f46;
  --warn: #b45309;
  --shadow: 0 14px 30px rgba(15, 23, 42, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  line-height: 1.55;
  background: radial-gradient(circle at 12% 0%, #fde68a 0%, var(--bg-1) 30%, var(--bg-2) 100%);
}

a {
  color: var(--primary-2);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.site-wrap {
  width: min(1040px, 92vw);
  margin: 0 auto;
  padding: 22px 0 40px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
}

.brand-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  box-shadow: 0 0 0 6px rgba(15, 118, 110, 0.18);
}

.nav-links {
  display: flex;
  gap: 14px;
  font-size: 0.95rem;
  flex-wrap: wrap;
}

.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.hero {
  padding: 26px;
  margin-bottom: 18px;
}

.hero h1 {
  margin: 0 0 8px;
  font-size: clamp(1.55rem, 3.9vw, 2.2rem);
}

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

.grid {
  display: grid;
  gap: 14px;
}

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

.card {
  padding: 18px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, #ffffff 0%, var(--surface-alt) 100%);
}

.card h2,
.card h3 {
  margin: 0 0 8px;
}

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

.card ul {
  margin: 0;
  padding-left: 18px;
}

.form-grid {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  margin-bottom: 14px;
}

label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.92rem;
  color: var(--muted);
}

input,
select,
textarea,
button {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 11px 12px;
  font-size: 1rem;
  background: #fff;
  font-family: inherit;
}

input:focus,
select:focus,
textarea:focus,
button:focus {
  outline: 2px solid rgba(3, 105, 161, 0.25);
  outline-offset: 1px;
}

textarea {
  min-height: 120px;
  resize: vertical;
}

button {
  border: 0;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
}

button:hover {
  filter: brightness(1.03);
}

.actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.actions button {
  min-width: 190px;
  flex: 1;
}

.result {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface-alt);
}

.result strong {
  font-size: 1.08rem;
}

.result.ok {
  border-color: rgba(6, 95, 70, 0.28);
}

.result.warn {
  border-color: rgba(180, 83, 9, 0.32);
}

.result ul {
  margin: 10px 0 0;
  padding-left: 18px;
}

.mono {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

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

@media (max-width: 700px) {
  .site-wrap {
    width: min(1040px, 94vw);
    padding-top: 14px;
  }

  .hero,
  .card {
    padding: 16px;
  }
}
