.page {
  max-width: 560px;
  margin: 0 auto;
  width: 100%;
}

.page-header h1 {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 6px;
  color: var(--ink);
}
.page-header p {
  margin: 0;
  color: var(--sub);
  font-size: 13.5px;
}

.tool {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}

.alert {
  border-radius: var(--radius);
  padding: 14px 18px;
  font-size: 14px;
  line-height: 1.75;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 24px;
}
.alert-icon { flex-shrink: 0; margin-top: 2px; }
.alert.ok {
  background: var(--ok-soft);
  border: 1px solid #bbf7d0;
  color: #15653a;
}
.alert.error {
  background: var(--danger-soft);
  border: 1px solid #fca5a5;
  color: #991b1b;
}
.alert ul { margin: 6px 0 0; padding-left: 18px; }
.alert ul li { margin-bottom: 2px; }

.form { display: flex; flex-direction: column; gap: 20px; }

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

.field-label {
  font-family: "JetBrains Mono", monospace;
  font-size: 10.5px;
  letter-spacing: 0.18em;
  color: var(--muted);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 8px;
}
.required {
  background: var(--accent-soft);
  color: var(--accent-deep);
  font-size: 9.5px;
  font-weight: 600;
  padding: 1px 6px;
  border-radius: 999px;
  letter-spacing: 0.06em;
}
.optional {
  color: var(--muted);
  font-size: 9.5px;
  letter-spacing: 0.06em;
}

.field input,
.field textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: "Noto Sans JP", sans-serif;
  font-size: 14px;
  line-height: 1.7;
  background: var(--surface);
  color: var(--ink);
  transition: border-color 140ms ease, box-shadow 140ms ease;
  appearance: none;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input::placeholder,
.field textarea::placeholder { color: var(--muted); }
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.submit-btn {
  appearance: none;
  width: 100%;
  padding: 13px 24px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background 140ms ease, transform 140ms ease;
  margin-top: 4px;
}
.submit-btn:hover { background: var(--accent-deep); }
.submit-btn:active { transform: scale(0.98); }
