/* ── Console (index.html) ─────────────────────────────────────── */
:root {
  --bg: #0b1020;
  --panel: #101a34;
  --panel-2: #0f172a;
  --line: #273556;
  --line-2: #334155;
  --text: #e5e7eb;
  --muted: #cbd5e1;
  --primary: #4f46e5;
  --primary-hover: #4338ca;
  --ok: #10b981;
  --danger: #ef4444;
  --info: #0ea5e9;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: Inter, Arial, sans-serif;
  background: radial-gradient(1100px 600px at 15% -20%, #1d2b56 0%, var(--bg) 45%);
  color: var(--text);
}

.container { max-width: 1280px; margin: 0 auto; padding: 20px; }
.hero { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 10px; }
.hero-right { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.hero h1 { margin: 0; font-size: 28px; }
.muted { color: var(--muted); }

.badge { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 999px; padding: 7px 12px; background: rgba(16, 26, 52, 0.7); color: #e2e8f0; font-size: 12px; }
.dot { width: 8px; height: 8px; border-radius: 999px; background: var(--ok); }

.tabs { display: flex; gap: 8px; margin: 14px 0 18px; }
.tabs button { border: 1px solid var(--line-2); border-radius: 10px; background: var(--panel-2); color: #e2e8f0; padding: 10px 14px; cursor: pointer; font-weight: 600; }
.tabs button.active { background: var(--primary); border-color: var(--primary); }

.panel { display: none; }
.panel.active { display: block; }

.grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 14px; }
.card { background: linear-gradient(180deg, rgba(19,27,51,0.95) 0%, rgba(14,22,43,0.95) 100%); border: 1px solid var(--line); border-radius: 12px; padding: 14px; }
.col-6 { grid-column: span 6; }
.col-12 { grid-column: span 12; }
.card h3 { margin: 2px 0 10px; font-size: 16px; }

label { display: block; margin: 10px 0 6px; font-size: 12px; color: #e2e8f0; }
input, textarea, select { width: 100%; border-radius: 8px; border: 1px solid var(--line-2); background: var(--panel-2); color: #e2e8f0; padding: 10px; outline: none; }
input:focus, textarea:focus, select:focus { border-color: #667eea; }
textarea { min-height: 88px; resize: vertical; }

button { border: 0; border-radius: 8px; background: var(--primary); color: #fff; padding: 10px; cursor: pointer; font-weight: 600; }
button:hover { background: var(--primary-hover); }
button:disabled { opacity: 0.65; cursor: not-allowed; }

.row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.out-wrap { position: relative; margin-top: 8px; }
.copy { position: absolute; right: 70px; top: 8px; width: auto; font-size: 12px; padding: 5px 8px; border-radius: 6px; }
.clear-out { position: absolute; right: 8px; top: 8px; width: auto; font-size: 12px; padding: 5px 8px; border-radius: 6px; background: #334155; }
.clear-out:hover { background: #475569; }

pre { white-space: pre-wrap; word-break: break-word; background: var(--panel-2); border: 1px solid var(--line); border-radius: 8px; padding: 10px; min-height: 136px; margin: 0; }

.tips { margin: 0 0 16px; padding: 10px 12px; border: 1px dashed #3c4f7f; border-radius: 10px; background: rgba(17,28,54,0.45); color: #cbd5e1; font-size: 13px; }
.quick-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0 0 14px; }
.pill-btn { width: auto; border-radius: 999px; padding: 8px 12px; }

.toast-host { position: fixed; right: 18px; bottom: 18px; z-index: 50; display: flex; flex-direction: column; gap: 8px; max-width: min(92vw, 420px); }
.toast { border-radius: 10px; border: 1px solid var(--line-2); background: rgba(15,23,42,0.97); color: #e2e8f0; padding: 10px 12px 14px; box-shadow: 0 8px 24px rgba(0,0,0,0.35); font-size: 13px; opacity: 0; transform: translateY(8px); transition: all 0.2s; }
.toast.show { opacity: 1; transform: translateY(0); }
.toast.success { border-left: 4px solid var(--ok); }
.toast.error { border-left: 4px solid var(--danger); }
.toast.info { border-left: 4px solid var(--info); }

@media (max-width: 980px) {
  .col-6 { grid-column: span 12; }
  .row { grid-template-columns: 1fr; }
  .quick-actions { grid-template-columns: 1fr; }
}
