/* PHASE1 v1 - Premium Generator UI */
.gen-shell { max-width: 1100px; margin: 22px auto; padding: 0 16px; }
.gen-card { background: #fff; border: 1px solid rgba(15,23,42,.08); border-radius: 14px; box-shadow: 0 6px 20px rgba(15,23,42,.06); overflow: hidden; }
.gen-head { padding: 16px 18px; border-bottom: 1px solid rgba(15,23,42,.08); display:flex; align-items:center; justify-content:space-between; gap:12px; }
.gen-title { font-size: 18px; font-weight: 700; margin: 0; }
.gen-sub { margin: 2px 0 0; color: rgba(15,23,42,.65); font-size: 13px; }
.pill { font-size:12px; padding:6px 10px; border-radius:999px; background: rgba(37,99,235,.10); color:#1d4ed8; border: 1px solid rgba(37,99,235,.18); white-space:nowrap; }
.grid2 { display:grid; grid-template-columns: 1.05fr .95fr; gap: 14px; padding: 14px; }
@media (max-width: 980px){ .grid2{ grid-template-columns:1fr; } }

.stepper { display:flex; gap:8px; flex-wrap:wrap; padding:12px 14px; }
.step { padding:8px 10px; border-radius:10px; border:1px solid rgba(15,23,42,.10); color: rgba(15,23,42,.75); font-size:13px; cursor:pointer; user-select:none; }
.step.active { border-color: rgba(37,99,235,.35); background: rgba(37,99,235,.06); color:#1d4ed8; font-weight:600; }

.panel { border:1px solid rgba(15,23,42,.08); border-radius:12px; padding: 12px; }
.panel h3 { margin:0 0 10px; font-size:14px; }
.field { margin: 10px 0; }
.label { display:block; font-size:12px; color: rgba(15,23,42,.70); margin: 0 0 6px; }
.input, .textarea, .select {
  width:100%; border:1px solid rgba(15,23,42,.12); border-radius:10px;
  padding:10px 12px; font-size:14px; outline:none; background:#fff;
}
.textarea { min-height: 110px; resize: vertical; }
.row2 { display:grid; grid-template-columns:1fr 1fr; gap:10px; }
@media (max-width: 520px){ .row2{ grid-template-columns:1fr; } }

.btnbar { display:flex; gap:10px; margin-top: 12px; flex-wrap:wrap; }
.btn2 {
  border:1px solid rgba(15,23,42,.12); background:#fff; border-radius:10px;
  padding:10px 12px; cursor:pointer; font-weight:600; font-size:14px;
}
.btn2.primary { background:#2563eb; color:#fff; border-color: rgba(37,99,235,.40); }
.btn2.ghost { background: rgba(15,23,42,.03); }
.btn2:disabled{ opacity:.55; cursor:not-allowed; }

.platform-tabs { display:flex; gap:8px; flex-wrap:wrap; }
.tab { padding:8px 10px; border-radius:10px; border:1px solid rgba(15,23,42,.10); font-size:13px; cursor:pointer; }
.tab.active { background: rgba(16,185,129,.08); border-color: rgba(16,185,129,.30); color:#047857; font-weight:700; }
.tab.locked { opacity:.55; cursor:not-allowed; }
.badge { margin-left:6px; font-size:11px; padding:2px 6px; border-radius:999px; border:1px solid rgba(15,23,42,.12); background: rgba(15,23,42,.03); }

.blocks { display:grid; grid-template-columns: 1fr 1fr; gap:10px; }
@media (max-width: 520px){ .blocks{ grid-template-columns:1fr; } }
.chk { display:flex; gap:8px; align-items:flex-start; padding:10px; border:1px solid rgba(15,23,42,.08); border-radius:12px; }
.chk input { margin-top:3px; }
.chk b { font-size:13px; }
.chk small { display:block; color: rgba(15,23,42,.65); margin-top:2px; }

.res-block { border:1px solid rgba(15,23,42,.08); border-radius:12px; padding: 12px; margin: 0 0 10px; }
.res-block h4 { margin:0 0 8px; font-size:13px; display:flex; align-items:center; justify-content:space-between; gap:10px;}
pre.out { margin:0; white-space:pre-wrap; word-break:break-word; background: rgba(15,23,42,.03); border:1px solid rgba(15,23,42,.06); padding:10px; border-radius:10px; font-size:13px; }
.small2 { font-size:12px; color: rgba(15,23,42,.65); }
hr.sep { border:0; border-top:1px solid rgba(15,23,42,.08); margin: 12px 0; }
/* PHASE1.1 - polish */
body { background: linear-gradient(180deg, rgba(37,99,235,.06), rgba(255,255,255,0) 260px); }

.gen-card { border-radius: 16px; }
.gen-head { background: linear-gradient(180deg, rgba(37,99,235,.06), rgba(255,255,255,0)); }
.gen-title { font-size: 20px; letter-spacing: -0.2px; }
.gen-sub { font-size: 13px; }

.stepper { padding: 10px 14px 0; }
.step { border-radius: 999px; padding: 8px 12px; }
.step.active { box-shadow: 0 6px 18px rgba(37,99,235,.10); }

.panel { background: #fff; }
.label { font-weight: 600; color: rgba(15,23,42,.78); }
.small2 { line-height: 1.45; }

.btn2.primary { box-shadow: 0 8px 24px rgba(37,99,235,.18); }
.btn2.primary:hover { transform: translateY(-1px); }
.btn2 { transition: transform .12s ease, box-shadow .12s ease; }

.helper {
  margin-top: 6px;
  font-size: 12px;
  color: rgba(15,23,42,.60);
}

.toast {
  position: fixed;
  right: 16px;
  bottom: 16px;
  background: #0f172a;
  color: #fff;
  padding: 10px 12px;
  border-radius: 12px;
  box-shadow: 0 14px 40px rgba(0,0,0,.25);
  font-size: 13px;
  z-index: 9999;
  opacity: 0;
  transform: translateY(8px);
  transition: all .18s ease;
}
.toast.show { opacity: 1; transform: translateY(0); }

.loadingMask {
  position: fixed;
  inset: 0;
  background: rgba(255,255,255,.72);
  backdrop-filter: blur(3px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9998;
}
.loadingMask.show { display: flex; }
.loadingBox {
  background: #fff;
  border: 1px solid rgba(15,23,42,.10);
  border-radius: 14px;
  padding: 14px 16px;
  box-shadow: 0 20px 60px rgba(15,23,42,.18);
  min-width: 260px;
}
.loadingBox b { display:block; margin-bottom: 6px; }
.loadingDots { color: rgba(15,23,42,.70); font-size: 13px; }
/* HOTFIX: если где-то остался слой, который ловит клики */
.loadingMask { display:none !important; pointer-events:none !important; }
.toast { pointer-events:none; }

