:root {
  --bg: #f3f5f7;
  --surface: #ffffff;
  --surface-alt: #eef3f8;
  --text: #15202b;
  --muted: #4f5f6d;
  --accent: #0f766e;
  --accent-2: #155e75;
  --border: #d5dde4;
  --danger: #b42318;
  --ok: #027a48;
  --shadow: 0 10px 30px rgba(17, 24, 39, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  background: radial-gradient(circle at 20% 0%, #f8fbff 0%, #eef3f8 45%, #e7edf3 100%);
  color: var(--text);
  line-height: 1.55;
}

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

a:hover {
  text-decoration: underline;
}

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

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

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

.brand-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, #0f766e, #155e75);
  box-shadow: 0 0 0 6px rgba(15, 118, 110, 0.12);
}

.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: 28px;
  margin-bottom: 20px;
}

.hero h1 {
  margin: 0 0 8px;
  font-size: clamp(1.6rem, 4vw, 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;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbfd 100%);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.card h2,
.card h3 {
  margin-top: 0;
  margin-bottom: 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(190px, 1fr));
  margin-bottom: 14px;
}

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

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

input:focus,
select:focus,
button:focus {
  outline: 2px solid rgba(21, 94, 117, 0.18);
  outline-offset: 1px;
}

button {
  border: none;
  background: linear-gradient(135deg, #0f766e, #155e75);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}

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

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

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

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

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

.result.ok {
  border-color: rgba(2, 122, 72, 0.28);
}

.result.warn {
  border-color: rgba(180, 35, 24, 0.22);
}

.footnote {
  margin-top: 16px;
  font-size: 0.88rem;
  color: var(--muted);
}

.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.12);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 600;
  margin-left: 8px;
}

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

@media (max-width: 700px) {
  .hero,
  .card {
    padding: 16px;
  }

  .site-wrap {
    width: min(1024px, 94vw);
    padding-top: 14px;
  }
}
