/* ============================================================
   FICHIER     : create.css
   EMPLACEMENT : hush_send/knowme/js&css/create.css
   ROLE        : Complement de play.css pour la page de creation :
     liste de questions, barre du bas, couleurs, pastilles, fenetres.
   ============================================================ */
.wrap.create { padding-bottom: 220px; }

.head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 18px; }
.head .h1 { font-size: 26px; letter-spacing: -1px; line-height: 1.1; }
.upill {
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 99px;
  background: var(--card2); border: 1px solid var(--line); font-size: 12px; font-weight: 600; max-width: 130px;
}
.upill span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.upill svg { width: 14px; height: 14px; flex: 0 0 auto; }

/* ---------- Liste des questions ---------- */
.q {
  display: flex; align-items: center; gap: 12px; padding: 11px 6px 11px 12px; margin-bottom: 8px;
  border-radius: 16px; background: var(--card); border: 1px solid var(--line); cursor: pointer;
  transition: background .2s, border-color .2s, transform .15s var(--spring);
}
.q:active { transform: scale(.985); }
.q.on { background: color-mix(in srgb, var(--g1) 8%, transparent); border-color: color-mix(in srgb, var(--g1) 34%, transparent); }
.q.lock { opacity: .5; }
.num {
  width: 30px; height: 30px; border-radius: 50%; flex: 0 0 auto; display: grid; place-items: center;
  font-size: 12px; font-weight: 800; border: 1.2px solid var(--line2); color: var(--tx3);
}
.q.on .num { background: var(--grad); border-color: transparent; color: #fff; }
.qb { flex: 1; min-width: 0; }
.qt { font-size: 13.5px; line-height: 1.35; font-weight: 500; color: var(--tx2); word-break: break-word; }
.q.on .qt { font-weight: 600; color: var(--tx); }
.ans {
  display: inline-block; margin-top: 6px; padding: 3px 9px; border-radius: 8px; font-size: 11.5px; font-weight: 700;
  background: color-mix(in srgb, var(--g1) 14%, transparent);
}
.note { font-size: 11px; font-weight: 600; color: var(--tx3); margin-top: 4px; }
.pen { width: 36px; height: 36px; display: grid; place-items: center; background: none; border: 0; cursor: pointer; color: var(--tx3); }
.pen svg { width: 16px; height: 16px; }
.add {
  display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 50px;
  border-radius: 16px; background: var(--card); border: 1px solid var(--line);
  color: var(--tx2); font-size: 12.5px; font-weight: 600; cursor: pointer;
}
.add svg { width: 17px; height: 17px; }

/* ---------- Barre du bas ---------- */
.bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  padding: 18px 16px calc(12px + env(safe-area-inset-bottom));
  background: linear-gradient(to top, var(--bg) 72%, transparent);
}
.bar-in { max-width: 480px; margin: 0 auto; }
.cnt { display: flex; justify-content: center; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 600; color: var(--tx2); margin-bottom: 4px; }
.cnt svg { width: 14px; height: 14px; }
.warn { text-align: center; font-size: 11.5px; font-weight: 600; color: var(--ko); margin-bottom: 4px; }
.acts { display: flex; gap: 10px; margin-top: 8px; }
.acts .btn { flex: 1; }
.acts.busy { opacity: .55; pointer-events: none; }
.sq {
  width: 52px; height: 52px; flex: 0 0 auto; border-radius: 14px; background: var(--card2);
  border: 1px solid var(--line); display: grid; place-items: center; cursor: pointer;
  transition: transform .15s var(--spring);
}
.sq:active { transform: scale(.93); }
.sq svg { width: 21px; height: 21px; }
.bar ~ .toast { bottom: 160px; }

/* ---------- Fenetres ---------- */
.sheet .h2 { margin-bottom: 2px; }
.sec { margin-top: 18px; }
.sw-row { display: flex; justify-content: space-between; gap: 8px; }
.sw-row.extra { justify-content: flex-start; margin-top: 12px; }
.sw {
  width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .22); cursor: pointer;
  display: grid; place-items: center; color: #fff; flex: 0 0 auto; transition: transform .15s var(--spring);
}
.sw:active { transform: scale(.9); }
.sw.on { border: 2.2px solid var(--tx); }
.sw svg { width: 18px; height: 18px; stroke-width: 3; }
.sw.more { background: var(--card2); color: var(--tx); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  height: 42px; padding: 0 14px; border-radius: 12px; background: var(--card); border: 1px solid var(--line);
  font-size: 12.5px; font-weight: 600; cursor: pointer; transition: background .15s, border-color .15s;
}
.chip.on { background: var(--card2); border: 1.6px solid color-mix(in srgb, var(--tx) 40%, transparent); font-weight: 700; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.seg .chip { width: 100%; }
.trow { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 14px 0 10px; }
.trow b { display: block; font-size: 13px; }
.trow span { font-size: 11px; color: var(--tx2); }
.tog { width: 50px; height: 30px; border-radius: 99px; background: var(--line2); border: 0; position: relative; cursor: pointer; flex: 0 0 auto; transition: background .2s; }
.tog::after { content: ''; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; transition: transform .2s var(--spring); }
.tog.on { background: var(--ok); }
.tog.on::after { transform: translateX(20px); }
.err { font-size: 11.5px; font-weight: 600; color: var(--ko); margin-top: 6px; }
.cc { text-align: right; font-size: 11px; font-weight: 600; color: var(--tx3); margin: 6px 0 10px; }
.cc.max { color: var(--ko); }
.field.num { text-align: center; font-size: 20px; }
.danger { color: var(--ko); }