
:root {
  --bg: #0b1020;
  --panel: #111a2b;
  --text: #e6e6e6;
  --muted: #a6b0c3;
  --primary: #7aa2f7;
  --accent: #7dcfff;
  --ok: #9ece6a;
  --warn: #e0af68;
  --danger: #f7768e;
  --ring: rgba(122,162,247,0.35);
}

body[data-theme="calm"] {
  --bg: #0b1020;
  --panel: #101827;
  --text: #e6eef9;
  --muted: #9fb0c6;
  --primary: #14b8a6;
  --accent: #06b6d4;
  --ok: #22c55e;
  --warn: #f59e0b;
  --danger: #ef4444;
  --ring: rgba(20,184,166,0.35);
}

body[data-theme="warm"] {
  --bg: #1f1410;
  --panel: #2a1a15;
  --text: #ffeede;
  --muted: #e6c7b5;
  --primary: #ff8a5b;
  --accent: #ffd166;
  --ok: #c3f584;
  --warn: #ffb703;
  --danger: #ef476f;
  --ring: rgba(255,138,91,0.35);
}

body[data-theme="night"] {
  --bg: #0a0a0f;
  --panel: #111118;
  --text: #e5e7eb;
  --muted: #9ca3af;
  --primary: #6366f1;
  --accent: #22d3ee;
  --ok: #84cc16;
  --warn: #f59e0b;
  --danger: #f43f5e;
  --ring: rgba(99,102,241,0.35);
}

body[data-theme="contrast"] {
  --bg: #000;
  --panel: #000;
  --text: #fff;
  --muted: #ddd;
  --primary: #00ffff;
  --accent: #ffff00;
  --ok: #00ff00;
  --warn: #ffaa00;
  --danger: #ff0044;
  --ring: rgba(0,255,255,0.6);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  background: var(--bg);
  color: var(--text);
  transition: background 200ms ease, color 200ms ease;
}
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px;
}

.panel {
  background: var(--panel);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 6px 24px rgba(0,0,0,0.25);
}

.button {
  background: var(--primary);
  color: #000;
  border: none;
  padding: 10px 14px;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 120ms ease, box-shadow 120ms ease, opacity 120ms ease;
}
.button:hover { transform: translateY(-1px); box-shadow: 0 10px 24px var(--ring); }
.button:disabled { opacity: 0.6; cursor: not-allowed; }

.input, .select, .textarea {
  width: 100%;
  background: rgba(255,255,255,0.02);
  color: var(--text);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 10px 12px;
  border-radius: 12px;
  outline: none;
  transition: border-color 120ms;
}
.input:focus, .select:focus, .textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 8px var(--ring);
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 900px) {
  .grid-2 { grid-template-columns: 1fr; }
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  font-size: 12px;
  color: var(--muted);
  border: 1px solid rgba(255,255,255,0.08);
}

.kokoro-title {
  font-weight: 800;
  letter-spacing: 0.4px;
}

hr.divider {
  border: none;
  border-top: 1px solid rgba(255,255,255,0.08);
  margin: 16px 0;
}
