:root{
  --bg:#0b0f19;
  --panel:#111827;
  --panel2:#0f172a;
  --text:#e5e7eb;
  --muted:#94a3b8;
  --border:#1f2937;
  --accent:#60a5fa;
  --good:#34d399;
  --bad:#fb7185;
}

*{ box-sizing:border-box; }
html,body{ margin:0; padding:0; }
body{
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans JP", sans-serif;
  background: linear-gradient(180deg, var(--bg), #070a12);
  color:var(--text);
}

a{ color:var(--accent); text-decoration:none; }
a:hover{ text-decoration:underline; }

.container{ max-width: 1100px; margin:0 auto; padding: 0 16px; }
.site-header{ border-bottom:1px solid var(--border); background: rgba(17,24,39,.7); backdrop-filter: blur(10px); position: sticky; top:0; z-index:10;}
.header-inner{ display:flex; align-items:center; justify-content:space-between; padding:12px 0; gap:16px; }
.brand{ font-weight:800; letter-spacing:.5px; }
.nav{ display:flex; gap:14px; flex-wrap:wrap; color:var(--muted); }
.nav a{ color:var(--muted); }
.nav a:hover{ color:var(--text); }

.site-footer{ margin-top: 40px; border-top:1px solid var(--border); background: rgba(17,24,39,.5); }
.footer-inner{ padding:16px 0; color:var(--muted); display:flex; gap:10px; align-items:center; flex-wrap:wrap; }
.sep{ opacity:.5; }

main{ padding: 22px 0 40px; }
.h1{ font-size: 28px; margin: 10px 0 6px; }
.sub{ color:var(--muted); margin: 0 0 18px; line-height:1.6; }

.card{
  background: linear-gradient(180deg, rgba(17,24,39,.9), rgba(15,23,42,.85));
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
}

.grid{ display:grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 920px){
  .grid.two{ grid-template-columns: 1fr 1fr; }
}

.label{ font-size: 13px; color:var(--muted); margin-bottom:8px; }
textarea{
  width:100%;
  min-height: 360px;
  resize: vertical;
  background: rgba(3,7,18,.5);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  line-height: 1.5;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 13px;
}

.controls{ display:flex; gap:10px; flex-wrap:wrap; align-items:end; }
.field{ display:flex; flex-direction:column; gap:6px; }
input[type="number"], input[type="text"], select{
  background: rgba(3,7,18,.5);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 10px;
}

.btnrow{ display:flex; gap:10px; flex-wrap:wrap; }
button{
  border: 1px solid var(--border);
  background: rgba(96,165,250,.12);
  color: var(--text);
  padding: 10px 12px;
  border-radius: 12px;
  cursor:pointer;
}
button:hover{ background: rgba(96,165,250,.18); }
button.secondary{ background: rgba(148,163,184,.08); }
button.danger{ background: rgba(251,113,133,.12); }
.badge{
  display:inline-flex; align-items:center; gap:6px;
  padding: 6px 10px; border-radius: 999px;
  border:1px solid var(--border);
  color: var(--muted);
  font-size: 12px;
}
.badge .dot{ width:8px; height:8px; border-radius:99px; background: var(--good); display:inline-block; }
.badge.warn .dot{ background: #fbbf24; }
.badge.err .dot{ background: var(--bad); }

.kbd{
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
  padding: 2px 6px;
  border:1px solid var(--border);
  border-radius: 8px;
  color: var(--muted);
}

.small{ font-size: 12px; color: var(--muted); line-height:1.6; }
hr{ border:0; border-top:1px solid var(--border); margin: 14px 0; }

.notice{
  border:1px dashed rgba(148,163,184,.35);
  background: rgba(148,163,184,.06);
  border-radius: 12px;
  padding: 12px;
  color: var(--muted);
  line-height:1.6;
}