/* AUREA DEX Kit — form page theme (fixed AUREA house style). */
:root {
  --bg: #0A0F1E;
  --surface: #111830;
  --border: #39415F;
  --text: #EDF0FA;
  --muted: #A7ACC2;
  --faint: #8B90A5;
  --accent: #F5C542;
  --accent2: #9B6BFF;
}
* { box-sizing: border-box; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: "Segoe UI", "Hiragino Kaku Gothic ProN", "Noto Sans JP", sans-serif;
  line-height: 1.65;
}
a { color: var(--accent); }
.site-header {
  display: flex; align-items: center; gap: 10px; padding: 13px 20px;
  border-bottom: 1px solid var(--border); background: var(--surface);
  position: sticky; top: 0; z-index: 5;
}
.brand-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #0B0F1E; font-weight: 800; box-shadow: 0 0 14px var(--accent);
}
.brand-name { font-weight: 700; font-size: 17px; }
.brand-sub { color: var(--accent2); font-weight: 700; }
.header-link { margin-left: auto; font-size: 14px; font-weight: 600; text-decoration: none; }
.hero { padding: 46px 20px 6px; text-align: center; }
.hero-kicker {
  color: var(--accent2); font-weight: 700; letter-spacing: .18em;
  text-transform: uppercase; font-size: 12.5px; margin: 0 0 6px;
}
.hero h1 {
  margin: 0 0 10px; font-size: clamp(28px, 5.5vw, 44px); font-weight: 800; line-height: 1.3;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.tagline { color: var(--muted); font-size: 15.5px; max-width: 720px; margin: 0 auto; }
.layout {
  display: grid; grid-template-columns: 1fr; gap: 20px;
  max-width: 1180px; margin: 0 auto; padding: 26px 16px 10px;
  align-items: start;
}
@media (min-width: 960px) {
  .layout { grid-template-columns: 1.15fr .85fr; }
  .output-panel { position: sticky; top: 84px; }
}
.kit-form, .output-panel {
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px;
  padding: 22px; box-shadow: 0 0 22px -10px var(--accent2);
}
.kit-form h2 { font-size: 17px; margin: 22px 0 12px; color: var(--accent); }
.kit-form h2:first-child { margin-top: 0; }
.output-panel h2 { font-size: 17px; margin: 0 0 12px; color: var(--accent); }
.output-panel h3 { font-size: 15px; margin: 18px 0 8px; }
.field { display: block; margin-bottom: 14px; border: none; padding: 0; }
.field > span, .field legend {
  display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 5px; color: var(--text);
}
.field small { display: block; color: var(--faint); font-size: 12.5px; margin-top: 4px; }
.req { color: var(--accent); font-style: normal; font-size: 11.5px; margin-left: 4px; }
.field input[type="text"], .field input[type="url"], .field input[type="email"],
.field input[type="number"], .field textarea, .field select {
  width: 100%; background: var(--bg); color: var(--text);
  border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; font-size: 14.5px;
  font-family: inherit;
}
.field input:focus, .field textarea:focus { outline: 2px solid var(--accent2); outline-offset: 0; border-color: var(--accent2); }
.field input[type="color"] {
  width: 100%; height: 42px; background: var(--bg);
  border: 1px solid var(--border); border-radius: 10px; padding: 4px; cursor: pointer;
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }
.checks { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.checks label { font-size: 14px; display: inline-flex; gap: 6px; align-items: center; cursor: pointer; }
.checks input { accent-color: var(--accent2); width: 16px; height: 16px; }
.note { color: var(--muted); font-size: 13px; }
.note code, .steps code { color: var(--accent); font-size: 12.5px; }
.btn {
  display: inline-block; border: 1px solid var(--border); border-radius: 10px;
  padding: 9px 18px; font-size: 14px; font-weight: 700; cursor: pointer;
  background: var(--bg); color: var(--text); font-family: inherit;
}
.btn-gold {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #0B0F1E; border: none; box-shadow: 0 0 16px -4px var(--accent);
}
.btn-ghost { background: transparent; }
.btn-lg { padding: 13px 22px; font-size: 15.5px; }
.btn-block { width: 100%; }
#jsonOut {
  background: var(--bg); border: 1px solid var(--border); border-radius: 12px;
  padding: 14px; font-size: 12.5px; line-height: 1.55; overflow: auto;
  max-height: 430px; white-space: pre; color: var(--text);
}
.output-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.steps { margin: 0; padding-left: 20px; color: var(--muted); font-size: 13.5px; }
.steps li { margin-bottom: 6px; }
.field.invalid input { border-color: #E5484D; }
.form-error { color: #FF8A8E; font-size: 13.5px; margin: 10px 0 0; }
.site-footer {
  border-top: 1px solid var(--border); padding: 22px 20px 30px;
  color: var(--muted); font-size: 13px; text-align: center;
  max-width: 860px; margin: 20px auto 0;
}
